:root {
  color-scheme: light;
  --premium-ink: #0f172a;
  --premium-copy: #334155;
  --premium-muted: #475569;
  --premium-line: #cbd5e1;
  --premium-blue: #1558b0;
  --premium-blue-dark: #082b59;
  --premium-surface: #ffffff;
  --premium-soft: #f5f8fc;
}

html, body {
  background: #eef3f9 !important;
  color: var(--premium-ink) !important;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

header {
  background: linear-gradient(135deg, #061a35 0%, #0b3264 55%, #124d91 100%) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 32px rgba(6,26,53,.18);
}

header h1 {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 800 !important;
  letter-spacing: -.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

header p {
  color: #dbeafe !important;
  opacity: 1 !important;
  font-weight: 500;
}

.card {
  background: var(--premium-surface) !important;
  border: 1px solid #d6e0ec !important;
  box-shadow: 0 10px 28px rgba(15,23,42,.07) !important;
}

h2, h3, h4, strong {
  color: var(--premium-ink) !important;
}

.section-heading h2,
.card > h2 {
  font-weight: 800 !important;
  letter-spacing: -.01em;
}

.database-box {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fe 100%) !important;
  border: 1px solid #d3dfec !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.database-box strong {
  color: #10233f !important;
  font-weight: 800 !important;
}

.hint {
  color: var(--premium-muted) !important;
  opacity: 1 !important;
  font-weight: 500;
}

code {
  background: #e8eef7 !important;
  color: #183b66 !important;
  border: 1px solid #d7e1ee;
  font-weight: 650;
}

input,
textarea {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #b9c8da !important;
  opacity: 1 !important;
}

input:focus,
textarea:focus {
  outline: none !important;
  border-color: #4f83c7 !important;
  box-shadow: 0 0 0 3px rgba(21,88,176,.13) !important;
}

textarea {
  box-shadow: inset 0 1px 2px rgba(15,23,42,.03);
}

button {
  opacity: 1;
  letter-spacing: -.005em;
}

button.primary,
.primary {
  background: linear-gradient(135deg, #1558b0 0%, #0c4694 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0d438d !important;
  box-shadow: 0 5px 14px rgba(21,88,176,.20) !important;
}

button.primary:hover:not(:disabled),
.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1b65c8 0%, #0e4ea3 100%) !important;
  box-shadow: 0 8px 18px rgba(21,88,176,.26) !important;
}

button.secondary,
.secondary {
  background: #e9f0f9 !important;
  color: #17365f !important;
  border: 1px solid #d1deed !important;
  box-shadow: 0 2px 5px rgba(15,23,42,.04);
}

button.secondary:hover:not(:disabled),
.secondary:hover:not(:disabled) {
  background: #dfeaf7 !important;
  color: #0f2f59 !important;
}

button:disabled {
  opacity: .68 !important;
  color: inherit;
}

.premium-shortcut {
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%) !important;
  color: #0d438d !important;
  border: 1px solid #a9c8ee !important;
  box-shadow: 0 5px 14px rgba(21,88,176,.12) !important;
  font-weight: 800 !important;
}

.premium-shortcut:hover:not(:disabled) {
  background: #e5f1ff !important;
  border-color: #79a9df !important;
  color: #082f67 !important;
}

.status {
  background: #edf3fa !important;
  color: #1e293b !important;
  border: 1px solid #dae4f0;
  font-weight: 600;
}

.status.ok {
  background: #ecfdf3 !important;
  color: #05603a !important;
  border-color: #a6f4c5 !important;
}

.status.bad {
  background: #fff1f0 !important;
  color: #9f1f17 !important;
  border-color: #fecdca !important;
}

pre {
  background: linear-gradient(180deg, #07111f 0%, #0b1627 100%) !important;
  color: #f8fafc !important;
  border: 1px solid #17263a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 7px 18px rgba(15,23,42,.10);
}

.modal-backdrop {
  background: rgba(4,15,31,.78) !important;
}

.confirm-modal {
  background: #ffffff !important;
  border-color: rgba(255,255,255,.7) !important;
  box-shadow: 0 36px 100px rgba(4,15,31,.46) !important;
}

.modal-hero {
  background: linear-gradient(135deg, #071f42 0%, #104e9f 58%, #1c69bf 100%) !important;
  color: #ffffff !important;
}

.modal-hero h3,
.modal-hero .modal-kicker {
  color: #ffffff !important;
  opacity: 1 !important;
}

.modal-hero p {
  color: #e6f0ff !important;
  opacity: 1 !important;
}

.modal-close {
  color: #ffffff !important;
  background: rgba(255,255,255,.16) !important;
}

.review-state {
  color: #055b37 !important;
}

.detail {
  background: #f9fbfd !important;
  border-color: #dfe7f0 !important;
}

.detail .label,
.money-card .label,
.items-title span {
  color: #526174 !important;
}

.detail .value {
  color: #101828 !important;
}

.money-card {
  background: #f5f9ff !important;
  border-color: #d7e4f3 !important;
}

.money-card.total {
  background: #eaf3ff !important;
  border-color: #a9c8ee !important;
}

.money-card .value {
  color: #123f7c !important;
}

.items-table th {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.items-table td {
  color: #26364a !important;
}

.impact-note {
  background: #f2f6fb !important;
  color: #3f4f63 !important;
}

.modal-footer {
  background: #f8fafc !important;
}

.modal-confirm {
  background: linear-gradient(135deg, #1558b0 0%, #0d4a9d 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0d438d !important;
}

::selection {
  background: #cfe4ff;
  color: #0f172a;
}
