/* =========================================================
   MEHERAB — design system (green) (light + dark)
   ========================================================= */
:root {
  --bg: #f0fbf5;
  --bg-2: #e6f7ee;
  --surface: #ffffff;
  --surface-2: #f6fdf9;
  --surface-3: #e8f8ef;
  --border: #d9f0e3;
  --border-strong: #bfe4cf;
  --text: #0b2a1e;
  --text-2: #2a5444;
  --muted: #5f8273;
  --primary: #10b981;
  --primary-2: #0d9488;
  --primary-soft: rgba(16, 185, 129, .12);
  --primary-text: #047857;
  --accent: #14c8e6;
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, .1);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, .12);
  --danger: #e11d48;
  --danger-soft: rgba(225, 29, 72, .1);
  --info: #0284c7;
  --info-soft: rgba(2, 132, 199, .1);
  --purple: #9333ea;
  --purple-soft: rgba(147, 51, 234, .1);
  --shadow-sm: 0 1px 2px rgba(17, 20, 42, .05);
  --shadow: 0 1px 3px rgba(17, 20, 42, .05), 0 8px 24px -8px rgba(17, 20, 42, .1);
  --shadow-lg: 0 24px 60px -20px rgba(6, 78, 59, .28);
  --grad: linear-gradient(120deg, #16a34a 0%, #10b981 55%, #0d9488 100%);
  --grad-soft: linear-gradient(120deg, rgba(34, 197, 94, .12), rgba(13, 148, 136, .08));
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --sidebar-w: 264px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #05130d;
  --bg-2: #081b13;
  --surface: #0b1f17;
  --surface-2: #0f281d;
  --surface-3: #143425;
  --border: #1a3d2d;
  --border-strong: #24543e;
  --text: #e6fbf0;
  --text-2: #b9e3cf;
  --muted: #7ca592;
  --primary-soft: rgba(52, 211, 153, .15);
  --primary-text: #34d399;
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, .14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, .14);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, .14);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, .14);
  --purple: #c084fc;
  --purple-soft: rgba(192, 132, 252, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; transition: background .25s, color .25s;
}
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: none; opacity: .9; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
::selection { background: rgba(16, 185, 129, .25); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px } .gap-2 { gap: 12px } .gap-3 { gap: 20px } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); }

/* ---------- Buttons ---------- */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s, border-color .2s; user-select: none;
  color: var(--text); background: var(--surface-3);
}
.btn i { font-size: 1.15em; }
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.disabled { opacity: .55; pointer-events: none; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 8px 22px -8px rgba(16, 185, 129, .6); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(16, 185, 129, .75); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--primary-soft); color: var(--primary-text); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-white { background: #fff; color: #064e3b; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-xs { --h: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 7px; color: var(--text-2); }
.form-control {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 500 14px var(--font); outline: none; transition: border-color .15s, box-shadow .15s, background .2s;
}
textarea.form-control { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.form-control {
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b90b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.form-control::placeholder { color: var(--muted); opacity: .8; }
.form-control[readonly] { background: var(--surface-2); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.input-icon > .form-control { padding-left: 42px; }
.input-group { display: flex; gap: 8px; }
.input-group .form-control { flex: 1; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-error { font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 500; font-size: 13.5px; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-title { font-size: 16px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.card-title i { color: var(--primary-text); font-size: 20px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.badge-primary { background: var(--primary-soft); color: var(--primary-text); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.tag-green { background: var(--success-soft); color: var(--success); }
.tag-blue { background: var(--info-soft); color: var(--info); }
.tag-purple { background: var(--purple-soft); color: var(--purple); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 500; border: 1px solid transparent; }
.alert i { font-size: 20px; line-height: 1.2; flex: none; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: rgba(22, 163, 74, .2); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(225, 29, 72, .2); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(217, 119, 6, .2); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: rgba(2, 132, 199, .2); }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert .alert-text { color: var(--text-2); font-weight: 500; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .link-cell { max-width: 240px; }
.table .link-cell a { color: var(--text-2); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { font-size: 42px; display: block; margin-bottom: 10px; opacity: .5; }

/* ---------- Tabs / pills ---------- */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); white-space: nowrap; }
.pill:hover { border-color: var(--primary); color: var(--primary-text); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill .count { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.pill.active .count { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.stat .stat-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; background: var(--primary-soft); color: var(--primary-text); }
.stat .stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .stat-value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.stat .stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat.c-green .stat-icon { background: var(--success-soft); color: var(--success); }
.stat.c-orange .stat-icon { background: var(--warning-soft); color: var(--warning); }
.stat.c-blue .stat-icon { background: var(--info-soft); color: var(--info); }
.stat.c-pink .stat-icon { background: var(--danger-soft); color: var(--danger); }
.stat.featured { background: var(--grad); border: 0; color: #fff; }
.stat.featured .stat-label, .stat.featured .stat-sub { color: rgba(255, 255, 255, .8); }
.stat.featured .stat-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.stat.featured::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -70px; background: rgba(255, 255, 255, .12); }

/* =========================================================
   App shell (user + admin)
   ========================================================= */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; transition: transform .25s;
}
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 20px 22px; font-weight: 800; font-size: 18px; color: var(--text); letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 20px; box-shadow: 0 8px 20px -6px rgba(16, 185, 129, .55); flex: none; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 6px 14px 20px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 16px 12px 8px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: 14px; margin-bottom: 2px; transition: background .15s, color .15s; }
.nav-link i { font-size: 19px; color: var(--muted); transition: color .15s; }
.nav-link:hover { background: var(--surface-2); color: var(--text); opacity: 1; }
.nav-link.active { background: var(--primary-soft); color: var(--primary-text); }
.nav-link.active i { color: var(--primary-text); }
.nav-link .nav-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { padding: 14px; border-top: 1px solid var(--border); }
.balance-card { padding: 16px; border-radius: 16px; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.balance-card::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -40px; top: -50px; background: rgba(255, 255, 255, .14); }
.balance-card .lbl { font-size: 12px; opacity: .85; font-weight: 600; }
.balance-card .amt { font-size: 22px; font-weight: 800; margin: 2px 0 10px; letter-spacing: -.02em; }
.balance-card .btn { position: relative; z-index: 1; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: 70px; display: flex; align-items: center; gap: 14px;
  padding: 0 28px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar .page-title { font-size: 18px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.topbar .spacer { flex: 1; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 19px; transition: background .15s, color .15s, border-color .15s; flex: none; }
.icon-btn:hover { color: var(--primary-text); border-color: var(--primary); }
.theme-toggle .ri-moon-line { display: inline; } .theme-toggle .ri-sun-line { display: none; }
[data-theme="dark"] .theme-toggle .ri-moon-line { display: none; } [data-theme="dark"] .theme-toggle .ri-sun-line { display: inline; }
.top-balance { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-text); font-weight: 800; font-size: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--grad); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 70; }
.dropdown.open .dropdown-menu { display: block; animation: pop .15s ease; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font: 600 13.5px var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu .dd-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.content { padding: 28px; flex: 1; width: 100%; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.menu-btn { display: none; }
.backdrop { position: fixed; inset: 0; background: rgba(5, 6, 15, .5); z-index: 55; display: none; backdrop-filter: blur(2px); }
.app-footer { padding: 18px 28px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--border); }

/* ---------- Order form ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.cat-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 700; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: all .15s; font-family: var(--font); }
.cat-chip i { font-size: 17px; }
.cat-chip:hover { border-color: var(--primary); color: var(--primary-text); }
.cat-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.service-info { border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--border-strong); padding: 16px; }
.service-info .si-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.si-box { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; }
.si-box .k { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.si-box .v { font-weight: 800; font-size: 15px; margin-top: 2px; }
.si-desc { white-space: pre-line; font-size: 13.5px; color: var(--text-2); max-height: 240px; overflow: auto; }
.charge-box { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 16px; }
.charge-box .charge { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; z-index: 30; display: none; padding: 6px; }
.search-results.show { display: block; }
.search-results button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; border: 0; background: none; color: var(--text); font: 500 13.5px var(--font); cursor: pointer; }
.search-results button:hover { background: var(--surface-2); }
.search-results .sr-id { color: var(--primary-text); font-weight: 800; flex: none; }
.search-results .sr-rate { margin-left: auto; color: var(--muted); font-weight: 700; flex: none; }

/* ---------- Announcements ---------- */
.announce { display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; }
.announce .a-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; font-size: 19px; background: var(--info-soft); color: var(--info); }
.announce.success .a-icon { background: var(--success-soft); color: var(--success); }
.announce.warning .a-icon { background: var(--warning-soft); color: var(--warning); }
.announce.danger .a-icon { background: var(--danger-soft); color: var(--danger); }
.announce h4 { font-size: 14px; margin: 0 0 2px; }
.announce p { margin: 0; font-size: 13px; color: var(--muted); white-space: pre-line; }

/* ---------- Service list ---------- */
.svc-cat { margin-bottom: 18px; }
.svc-cat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-weight: 800; font-size: 15px; border-bottom: 1px solid var(--border); }
.svc-cat-head .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); font-size: 18px; }

/* ---------- Payment methods ---------- */
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; }
.method .m-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface-2); transition: all .15s; text-align: center; font-weight: 700; }
.method .m-logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; }
.method input:checked + .m-box { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 4px var(--primary-soft); }
.method .m-bonus { font-size: 11px; color: var(--success); font-weight: 700; }
.pay-instr { border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 18px; }
.pay-number { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: .02em; margin: 6px 0 10px; }

/* ---------- Tickets ---------- */
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.msg.me { align-self: flex-end; background: var(--primary-soft); border-color: transparent; }
.msg.staff { align-self: flex-start; }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; display: flex; gap: 8px; }
.msg .body { white-space: pre-wrap; word-break: break-word; }

/* ---------- Code / API ---------- */
.code { background: #04140d; color: #c9f7e1; border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.6; border: 1px solid #1a3d2d; }
.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv td, .kv th { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.kv th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.copy-field { display: flex; align-items: center; gap: 8px; }
.copy-field .form-control { font-family: ui-monospace, Consolas, monospace; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 16px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: 13px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary-text); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { opacity: .45; }

/* ---------- Modal (native dialog) ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 22px; background: var(--surface); color: var(--text); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
dialog.modal.wide { width: min(820px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(5, 6, 15, .55); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .18s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-weight: 600; min-width: 240px; animation: pop .2s ease; }
.toast i { font-size: 20px; color: var(--success); }

/* ---------- Chart ---------- */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar { width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--grad); min-height: 3px; position: relative; transition: opacity .15s; }
.bar:hover { opacity: .8; }
.bar .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 4px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.bar:hover .tip { opacity: 1; }
.bar-col .bl { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.legend-list { display: flex; flex-direction: column; gap: 12px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.legend-row .meter { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.legend-row .meter span { display: block; height: 100%; border-radius: 99px; }

/* =========================================================
   Public site (landing + auth)
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-bar { height: 74px; display: flex; align-items: center; gap: 24px; }
.nav-bar .brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 6px; margin-left: 20px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--text-2); font-size: 14px; }
.nav-links a:hover { background: var(--surface); color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mobile-nav { display: none; }

.hero { position: relative; overflow: hidden; padding: 80px 0 90px; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .6; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }
.blob.b1 { width: 460px; height: 460px; background: #34d399; top: -140px; left: -120px; }
.blob.b2 { width: 380px; height: 380px; background: #a3e635; top: 40px; right: -120px; opacity: .35; }
.blob.b3 { width: 300px; height: 300px; background: #2dd4bf; bottom: -160px; left: 40%; opacity: .25; }
[data-theme="dark"] .blob { opacity: .32; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 13px; color: var(--text-2); box-shadow: var(--shadow-sm); }
.eyebrow .dot { height: 24px; padding: 0 9px; border-radius: 99px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; font-size: 11.5px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; margin: 22px 0 18px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust .t-num { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.hero-trust .t-lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-visual { position: relative; height: 470px; }
.glass { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 22px; }
.hv-main { position: absolute; inset: 30px 30px 40px 20px; padding: 22px; }
.hv-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); margin-bottom: 10px; }
.hv-row .pi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 20px; flex: none; }
.hv-row .pn { font-weight: 700; font-size: 13.5px; }
.hv-row .ps { font-size: 12px; color: var(--muted); }
.hv-row .pv { margin-left: auto; font-weight: 800; font-size: 13.5px; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.progress span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.hv-float { position: absolute; padding: 14px 16px; display: flex; align-items: center; gap: 12px; animation: float 6s ease-in-out infinite; }
.hv-float.f1 { right: -10px; top: 0; }
.hv-float.f2 { left: -24px; bottom: 6px; animation-delay: -3s; }
.hv-float .fi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.marquee { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: scroll 32s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--muted); white-space: nowrap; }
.marquee-item i { font-size: 26px; }
@keyframes scroll { to { transform: translateX(-50%); } }

.section { padding: 90px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .kicker { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--primary-text); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature .f-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; background: var(--grad-soft); color: var(--primary-text); margin-bottom: 18px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px; box-shadow: 0 10px 22px -8px rgba(16, 185, 129, .55); }
.step h3 { font-size: 17px; }
.step p { color: var(--muted); margin: 0; font-size: 14px; }
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--primary-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 60px; background: var(--grad); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 17px; margin-bottom: 26px; }
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta-band::before { width: 300px; height: 300px; left: -100px; top: -120px; }
.cta-band::after { width: 240px; height: 240px; right: -60px; bottom: -120px; }
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 14px; background: var(--surface); }
.site-footer .f-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--text-2); font-weight: 600; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); }
.auth-side > * { position: relative; }
.auth-side .brand { color: #fff; display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; }
.auth-side .brand-mark { background: rgba(255, 255, 255, .2); box-shadow: none; }
.auth-side h2 { color: #fff; font-size: 38px; letter-spacing: -.035em; margin-bottom: 14px; }
.auth-side p { color: rgba(255, 255, 255, .85); font-size: 16px; max-width: 440px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.auth-points div { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.auth-points i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 18px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 30px; letter-spacing: -.035em; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.btn-google { width: 100%; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.btn-google:hover { background: var(--surface-2); }
.btn-google svg { width: 19px; height: 19px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-theme { position: absolute; top: 20px; right: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .order-layout { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px; }
  .nav-links { display: none; }
  .mobile-nav { display: grid; }
  .site-header .nav-actions .hide-sm { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; padding: 12px 20px 18px; background: var(--surface); border-bottom: 1px solid var(--border); margin: 0; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat .stat-value { font-size: 19px; }
  .stat .stat-icon { width: 36px; height: 36px; font-size: 18px; margin-bottom: 10px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: 1fr; }
  .card-body { padding: 16px; }
  .card-header { padding: 14px 16px; }
  .top-balance { display: none; }
  .topbar .page-title { font-size: 16px; }
  .service-info .si-row { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .si-box { padding: 8px; }
  .si-box .v { font-size: 13px; }
  .hero { padding: 50px 0 60px; }
  .hero-visual { height: 380px; }
  .hv-float.f1 { right: 0; }
  .hv-float.f2 { left: 0; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 22px; }
  .msg { max-width: 92%; }
  .hide-mobile { display: none !important; }
  .toasts { left: 16px; right: 16px; }
}

/* ---------- Logo (shared) ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); letter-spacing: -.02em; min-width: 0; }
.logo img { height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.logo .logo-dark { display: none; }
[data-theme="dark"] .logo.has-dark .logo-light { display: none; }
[data-theme="dark"] .logo.has-dark .logo-dark { display: block; }
.logo .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--border); }
.upload-preview { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.upload-preview img { max-height: 48px; max-width: 200px; object-fit: contain; }
.svc-group-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.svc-group-head .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); font-size: 18px; flex: none; overflow: hidden; }
.svc-group-head .ci img { width: 100%; height: 100%; object-fit: cover; }
.svc-group.collapsed .svc-group-body { display: none; }
.svc-group.collapsed .chev { transform: rotate(-90deg); }
.chev { transition: transform .2s; }

/* ---------- MEHERAB: install-app button (PWA) + admin green accents ---------- */
.install-btn { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--grad); color: #fff; font: 700 13px var(--font); cursor: pointer; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(16, 185, 129, .9); }
.install-btn.show { display: inline-flex; }
.install-btn i { font-size: 17px; }
@media (display-mode: standalone) { .install-btn { display: none !important; } }
@media (max-width: 640px) { .topbar .install-btn .lbl { display: none; } .topbar .install-btn { width: 38px; padding: 0; justify-content: center; } }
.nav-link.active { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(16, 185, 129, .8); }
.nav-link.active i { color: #fff; }
.sidebar .brand { border-bottom: 1px solid var(--border); }
.topbar { border-bottom-color: var(--border-strong); }
.avatar { border-radius: 50%; }
.stat .stat-icon { background: var(--primary-soft); color: var(--primary-text); }
.card { border-radius: 18px; }
