:root {
  --navy: #0a2029;
  --navy2: #123540;
  --ink: #102a32;
  --muted: #687b7d;
  --line: #d7e1df;
  --bg: #edf2ef;
  --white: #fbfdfc;
  --teal: #008d70;
  --teal2: #006e59;
  --green: #087a5e;
  --amber: #b78b37;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(13, 44, 49, .075);
}

body {
  background:
    linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,.42)),
    radial-gradient(circle at 80% 4%, rgba(0,141,112,.10), transparent 27%),
    #e8eeeb;
}

.sidebar {
  width: 264px;
  padding: 28px 20px 24px;
  background:
    radial-gradient(circle at 0 0, rgba(28,175,142,.18), transparent 31%),
    radial-gradient(circle at 100% 100%, rgba(203,164,84,.11), transparent 28%),
    #092029;
  border-right: 1px solid rgba(255,255,255,.07);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.38) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 66%);
}

.sidebar > * { position: relative; z-index: 1; }
.app-shell { margin-left: 264px; }

.brand { padding: 0 10px 34px; gap: 13px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px 15px 15px 5px;
  color: #f7f2e5;
  background: linear-gradient(145deg, #11a787 0%, #08715e 72%);
  box-shadow: inset 0 1px rgba(255,255,255,.28), 0 12px 28px rgba(0,0,0,.22);
}
.brand small { color: #8eaaa8; letter-spacing: 2.8px; }
.rail-caption { padding: 0 14px 10px; color: #668680; font: 700 9px Manrope; letter-spacing: 1.8px; }

.nav-list { gap: 6px; }
.nav-list a {
  position: relative;
  color: #99aeac;
  border: 1px solid transparent;
  padding: 13px 14px;
  border-radius: 12px;
}
.nav-list a::after {
  content: "";
  position: absolute;
  right: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}
.nav-list a:hover, .nav-list a.active {
  color: #f7faf8;
  background: linear-gradient(90deg, rgba(14,158,128,.19), rgba(14,158,128,.06));
  border-color: rgba(66,205,175,.12);
}
.nav-list a.active::after { background: #d3ad5c; box-shadow: 0 0 0 4px rgba(211,173,92,.12); }
.nav-list a span { color: #46cbb0; font-size: 18px; }

.sidebar-foot {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 14px;
  padding: 14px;
}

.topbar {
  height: 76px;
  padding: 0 38px;
  background: rgba(244,248,246,.78);
  border-bottom: 1px solid rgba(142,165,162,.25);
}
.topbar-context { display: flex; align-items: center; gap: 10px; }
.context-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(0,141,112,.10); }
.context-separator { color: #afbfbc; }
.context-date { font-size: 11px; color: #879794; font-weight: 600; }
.user-avatar { border-radius: 50%; background: #d8ebe5; color: #086c59; border: 1px solid #c0ddd5; }
.logout { border-left: 1px solid var(--line); margin-left: 5px; padding-left: 15px; }

.main-content { padding: 38px 42px 64px; }
.page-head { margin-bottom: 30px; position: relative; }
.page-head::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 3px;
  left: 0;
  top: -11px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), #d3ad5c);
}
.page-head h1 { color: #0b2932; font-size: 30px; letter-spacing: -1.25px; }
.page-head p { color: #72827f; }

.btn { border-radius: 10px; letter-spacing: .1px; }
.btn-primary {
  background: linear-gradient(135deg, #009579, #00715c);
  box-shadow: 0 10px 22px rgba(0,126,101,.19), inset 0 1px rgba(255,255,255,.2);
}
.btn-primary:hover { background: linear-gradient(135deg, #007f68, #005f4f); }
.btn-dark { background: #102d36; }
.btn-soft { background: #e1eee9; color: #145f51; }

.card, .stat-card {
  background: rgba(251,253,252,.92);
  border-color: rgba(182,202,198,.6);
  box-shadow: var(--shadow);
}
.dashboard-grid, .dashboard-grid > *, .card, .table-wrap { min-width: 0; }
.table-wrap { max-width: 100%; }
.card { position: relative; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px rgba(255,255,255,.7);
}

.stats { gap: 14px; }
.stat-card { min-height: 132px; padding: 22px; border-radius: 16px 16px 16px 5px; }
.stat-card:nth-child(2n) { border-radius: 16px 16px 5px 16px; }
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 37%;
  background: linear-gradient(90deg, #009579, transparent);
}
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #c19b4d, transparent); }
.stat-card strong { color: #0d3038; }
.stat-card .trend { color: #778a86; }
.stat-icon { background: #e0eee9; border: 1px solid #cee1da; border-radius: 50%; }

.balance-hero {
  min-height: 215px;
  padding: 32px;
  border-radius: 22px 22px 22px 7px;
  background:
    linear-gradient(115deg, rgba(8,34,43,.98), rgba(12,66,68,.96)),
    #09242c;
  box-shadow: 0 22px 48px rgba(10,41,48,.18);
}
.balance-hero::before {
  content: "₺";
  position: absolute;
  right: 34px;
  bottom: -56px;
  font: 800 205px Manrope;
  color: rgba(255,255,255,.035);
  transform: rotate(-7deg);
}
.balance-hero::after { width: 230px; height: 230px; border-width: 1px; border-color: rgba(211,173,92,.2); right: -40px; top: -90px; }
.balance-hero h2 { font-size: 38px; color: #fbf9f1; }
.balance-hero small { color: #79cabb; letter-spacing: 1.2px; }
.balance-meta { border-top: 1px solid rgba(255,255,255,.10); padding-top: 17px; }

.card-head h2 { color: #14333a; }
.data-table th { color: #758783; background: rgba(232,239,236,.55); }
.data-table tbody tr { transition: background .18s; }
.data-table tbody tr:hover { background: #f2f7f4; }
.compact-table { min-width: 520px; }
.badge { border: 1px solid #d7e2df; background: #eef3f1; }
.badge.success { border-color: #c4e5db; }
.quick-item { background: #f7faf8; border-color: #dce6e3; }
.quick-item:hover { border-color: #a9d1c6; transform: translateX(2px); transition: .18s; }
.quick-icon { border-radius: 12px 12px 12px 4px; background: #dfefe9; }

.payment-summary {
  background:
    radial-gradient(circle at 100% 0, rgba(211,173,92,.16), transparent 35%),
    linear-gradient(145deg,#09232c,#12434a);
  border: 0;
  border-radius: 20px 20px 20px 6px;
}
.payment-summary::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.field input, .field select, .field textarea { border-color: #c9d7d3; background: #fcfefd; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(0,141,112,.09); }

.auth-body { background: #0a222b; }
.auth-layout { grid-template-columns: 1.12fr .88fr; }
.auth-visual {
  background:
    radial-gradient(circle at 12% 14%, rgba(0,171,137,.24), transparent 31%),
    radial-gradient(circle at 83% 82%, rgba(211,173,92,.13), transparent 25%),
    #09242d;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 35% 48%, #000, transparent 66%);
}
.auth-copy h1 { color: #faf9f1; text-shadow: 0 12px 40px rgba(0,0,0,.18); }
.auth-copy .kicker { color: #55d7bc; }
.auth-panel { background: #f1f5f2; position: relative; }
.auth-panel::before { content: ""; position: absolute; left: 0; top: 9%; bottom: 9%; width: 1px; background: linear-gradient(transparent,#b9cbc6,transparent); }
.login-box { padding: 16px; }
.login-box h2 { color: #102e36; }
.login-box .btn { min-height: 50px; }
.demo-box { border: 1px solid #d6e2de; background: #e8f0ed; }

@media(max-width:1050px) {
  .app-shell { margin-left: 0; }
  .auth-layout { grid-template-columns: 1fr; }
}
@media(max-width:680px) {
  .main-content { padding: 29px 15px 44px; }
  .topbar { padding: 0 14px; }
  .topbar-context .context-separator, .topbar-context .context-date { display: none; }
  .page-head h1 { font-size: 25px; }
  .stat-card { min-height: 112px; }
  .balance-hero { min-height: 195px; }
  .compact-table { min-width: 500px; }
}

/* 2026 Anthracite corporate identity */
:root {
  --navy: #1c1f23;
  --navy2: #30343a;
  --ink: #262a2f;
  --muted: #74777b;
  --line: #d9d7d2;
  --bg: #ecebe8;
  --white: #fcfbf8;
  --teal: #a47d49;
  --teal2: #80603a;
  --green: #58636a;
  --amber: #a47d49;
  --shadow: 0 18px 50px rgba(33, 35, 38, .09);
}
body { background: radial-gradient(circle at 82% 2%, rgba(164,125,73,.09), transparent 28%), #efeeeb; }
.sidebar { background: radial-gradient(circle at 10% 0, rgba(164,125,73,.13), transparent 28%), linear-gradient(180deg,#202328,#17191c); border-right-color: rgba(255,255,255,.06); }
.brand-mark { color:#fff8ed; background: linear-gradient(145deg,#6c7279,#33373c); box-shadow: inset 0 1px rgba(255,255,255,.24),0 12px 28px rgba(0,0,0,.28); }
.brand small,.rail-caption { color:#8f8d88; }
.nav-list a { color:#aaa9a5; }
.nav-list a:hover,.nav-list a.active { color:#fff; background:linear-gradient(90deg,rgba(164,125,73,.18),rgba(164,125,73,.035)); border-color:rgba(190,151,97,.15); }
.nav-list a span { color:#c09a66; }
.nav-list a.active::after { background:#c09a66; box-shadow:0 0 0 4px rgba(192,154,102,.12); }
.secure-dot,.context-mark { background:#b28a55; box-shadow:0 0 0 5px rgba(178,138,85,.11); }
.topbar { background:rgba(244,243,240,.82); border-bottom-color:rgba(120,119,116,.22); }
.user-avatar { background:#e5e1da; color:#4b4e52; border-color:#d3cec5; }
.page-head::before { background:linear-gradient(90deg,#2f3439,#b28a55); }
.page-head h1,.card-head h2,.login-box h2 { color:#25292e; }
.btn-primary { background:linear-gradient(135deg,#3b4046,#202328); border:1px solid #4f555b; box-shadow:0 10px 22px rgba(31,34,38,.2),inset 0 1px rgba(255,255,255,.13); }
.btn-primary:hover { background:linear-gradient(135deg,#2e3237,#15171a); }
.btn-dark { background:#24272b; }
.btn-soft { background:#e9e5df; color:#594b3a; }
.stat-icon,.quick-icon { color:#70583a; background:#ece7df; border-color:#ded5c8; }
.stat-card::before { background:linear-gradient(90deg,#4e545a,transparent); }
.stat-card:nth-child(2)::before,.stat-card:nth-child(3)::before { background:linear-gradient(90deg,#ad8753,transparent); }
.balance-hero { background:radial-gradient(circle at 90% 0,rgba(180,143,91,.14),transparent 35%),linear-gradient(135deg,#2f3439,#181b1e); box-shadow:0 22px 48px rgba(28,30,33,.2); }
.balance-hero small { color:#d1ad7c; }
.balance-hero::after { border-color:rgba(190,151,97,.22); }
.data-table tbody tr:hover { background:#f1efeb; }
.badge.success { background:#e5e7e7; color:#4b555a; border-color:#d1d5d6; }
.badge.pending { background:#f3eadb; color:#806037; border-color:#e5d3b7; }
.quick-item:hover { border-color:#c8b291; }
.payment-summary { background:radial-gradient(circle at 100% 0,rgba(183,142,84,.19),transparent 35%),linear-gradient(145deg,#30343a,#1a1d20); }
.field input:focus,.field select:focus,.field textarea:focus { border-color:#8b6a42; box-shadow:0 0 0 4px rgba(139,106,66,.09); }
.auth-body { background:#191b1f; }
.auth-visual { background:radial-gradient(circle at 12% 14%,rgba(166,126,72,.19),transparent 31%),radial-gradient(circle at 83% 82%,rgba(120,127,134,.12),transparent 25%),#1d2024; }
.auth-copy .kicker { color:#c49c67; }
.auth-panel { background:#f0efec; }
.demo-box { background:#e9e7e2; border-color:#d9d5ce; }
.demo-box code { color:#665037; }

.settings-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr); gap:22px; align-items:start; }
.schedule-state { display:inline-flex; align-items:center; gap:7px; padding:7px 11px; border-radius:20px; font-size:11px; font-weight:800; }
.schedule-state::before { content:""; width:7px; height:7px; border-radius:50%; }
.schedule-state.online { background:#e5e7e7; color:#4b555a; }
.schedule-state.online::before { background:#59636a; }
.schedule-state.offline { background:#efe5d6; color:#765a35; }
.schedule-state.offline::before { background:#a47d49; }
.switch-row { display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid var(--line); background:#f7f6f3; padding:16px 18px; border-radius:14px; margin-bottom:20px; cursor:pointer; }
.switch-row strong,.switch-row small { display:block; }
.switch-row strong { font-size:13px; }
.switch-row small { margin-top:4px; color:var(--muted); font-size:11px; }
.switch-row input { position:absolute; opacity:0; pointer-events:none; width:1px; height:1px; }
.switch-ui { flex:0 0 auto; width:44px; height:24px; border-radius:30px; background:#bbbcb9; padding:3px; transition:.2s; }
.switch-ui::after { content:""; display:block; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.2); transition:.2s; }
.switch-row input:checked + .switch-ui { background:#3d4247; }
.switch-row input:checked + .switch-ui::after { transform:translateX(20px); }
.schedule-times { margin-bottom:20px; }
.day-picker { display:grid; grid-template-columns:repeat(7,1fr); gap:7px; margin:3px 0 20px; }
.day-picker input { position:absolute; opacity:0; width:1px; height:1px; }
.day-picker span { display:grid; place-items:center; min-height:38px; border:1px solid var(--line); border-radius:9px; color:#777; background:#faf9f6; font-size:11px; font-weight:700; cursor:pointer; }
.day-picker input:checked + span { color:#fff; background:#33373c; border-color:#33373c; box-shadow:0 5px 12px rgba(35,38,42,.15); }
.offline-explain { display:flex; gap:12px; padding:14px; margin:5px 0 20px; background:#f2ede6; border:1px solid #e2d7c8; border-radius:12px; color:#62594d; }
.offline-explain>span { flex:0 0 auto; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; background:#a47d49; color:#fff; font-weight:800; font-size:12px; }
.offline-explain p { margin:0; font-size:11px; line-height:1.55; }
.offline-explain strong { display:block; color:#4c4337; margin-bottom:2px; }
.queue-number { min-width:42px; height:42px; border-radius:13px; display:grid; place-items:center; color:#fff; background:#30343a; font:800 18px Manrope; }
.timeline-status { display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-bottom:1px solid #eceae5; }
.timeline-status>span { margin-top:5px; width:9px; height:9px; border-radius:50%; border:2px solid #a47d49; box-shadow:0 0 0 4px rgba(164,125,73,.09); }
.timeline-status small,.timeline-status strong { display:block; }
.timeline-status small { color:#8b8b88; font-size:9px; letter-spacing:.8px; }
.timeline-status strong { margin-top:4px; font-size:12px; }
.sync-warning { margin-top:14px; padding:11px; border-radius:10px; background:#f6eadb; color:#7c5a31; font-size:11px; }
@media(max-width:900px){.settings-layout{grid-template-columns:1fr}}
@media(max-width:560px){.day-picker{grid-template-columns:repeat(4,1fr)}}
