/* ==========================================================================
   SMM Snap — "Obsidian" theme v4.0 (2026 redesign)
   Design system: CSS custom properties, dark-first, light mode via html.light
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root,
html.dark {
  --bg: #09090b;
  --bg-2: #0d0f17;
  --surface: #121521;
  --surface-2: #171a29;
  --surface-3: #1e2236;
  --glass: rgba(18, 21, 33, .72);
  --glass-strong: rgba(13, 15, 23, .86);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #eceef6;
  --text-2: #a3a8c3;
  --text-3: #7c83a6;
  --fg-accent: #a5b4fc;
  --fg-success: #34d399;
  --fg-warning: #fbbf24;
  --fg-danger: #f87171;
  --fg-info: #60a5fa;
  --fg-cyan: #67e8f9;
  --fg-violet: #c4b5fd;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --accent-soft: rgba(99, 102, 241, .14);
  --accent-ring: rgba(99, 102, 241, .45);
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-wide: linear-gradient(120deg, #6366f1 0%, #8b5cf6 45%, #06b6d4 100%);
  --grad-text: linear-gradient(100deg, #a5b4fc 0%, #c4b5fd 40%, #67e8f9 100%);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, .14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, .14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, .14);
  --info: #3b82f6;
  --info-soft: rgba(59, 130, 246, .14);
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(99, 102, 241, .35), 0 12px 40px -10px rgba(99, 102, 241, .55);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar-w: 268px;
  --sidebar-w-collapsed: 84px;
  --topbar-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --scrollbar: rgba(255, 255, 255, .14);
  color-scheme: dark;
}

html.light {
  --bg: #f5f6fb;
  --bg-2: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --surface-3: #eff1f8;
  --glass: rgba(255, 255, 255, .78);
  --glass-strong: rgba(255, 255, 255, .92);
  --border: rgba(15, 23, 42, .08);
  --border-strong: rgba(15, 23, 42, .16);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #626e84;
  --fg-accent: #4f46e5;
  --fg-success: #047857;
  --fg-warning: #b45309;
  --fg-danger: #b91c1c;
  --fg-info: #1d4ed8;
  --fg-cyan: #0e7490;
  --fg-violet: #6d28d9;
  --accent-soft: rgba(99, 102, 241, .10);
  --grad-text: linear-gradient(100deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -14px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 80px -24px rgba(15, 23, 42, .28);
  --scrollbar: rgba(15, 23, 42, .18);
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: var(--fg-accent); text-decoration: none; transition: color .2s var(--ease); }
html.light a { color: #4f46e5; }
a:hover, a:focus { color: var(--accent-3); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--text); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
code, kbd, pre, samp { font-family: var(--mono); }
::selection { background: rgba(139, 92, 246, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); }
.text-muted { color: var(--text-3) !important; }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nowrap { white-space: nowrap; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(139, 92, 246, .55); }

/* Ambient background */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient::before, .ambient::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%;
  filter: blur(120px); opacity: .22;
}
.ambient::before { top: -25vw; left: -10vw; background: radial-gradient(circle, #6366f1 0%, transparent 65%); }
.ambient::after { bottom: -30vw; right: -15vw; background: radial-gradient(circle, #06b6d4 0%, transparent 65%); opacity: .14; }
html.light .ambient::before { opacity: .12; }
html.light .ambient::after { opacity: .08; }
.ambient .grid-lines {
  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 at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: .5;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: -.005em; line-height: 1;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text);
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s;
  box-shadow: none; text-shadow: none;
}
.btn:hover, .btn:focus { color: var(--text); background: var(--surface-3); border-color: var(--border-strong); outline: none; }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-ring); }
.btn:active { transform: translateY(1px) scale(.99); box-shadow: none; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn-primary, .btn-main, .btn-success {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--grad); color: #fff !important; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 24px -10px rgba(99, 102, 241, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary::after, .btn-main::after, .btn-success::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .22) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover, .btn-main:hover, .btn-success:hover,
.btn-primary:focus, .btn-main:focus, .btn-success:focus { background: var(--grad); color: #fff; border-color: rgba(255, 255, 255, .2); box-shadow: var(--glow); }
.btn-primary:hover::after, .btn-main:hover::after, .btn-success:hover::after { transform: translateX(120%); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover, .btn-ghost:focus { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-outline, .btn-default, .btn-border { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover, .btn-default:hover, .btn-border:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.btn-danger { background: var(--danger-soft); border-color: rgba(239, 68, 68, .35); color: var(--fg-danger); }
html.light .btn-danger { color: #b91c1c; }
.btn-danger:hover, .btn-danger:focus { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-block { display: flex; width: 100%; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); }
.btn-icon.btn-sm { width: 34px; height: 34px; }

/* ---------- 4. Forms ---------- */
label, .control-label { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: .005em; }
.form-group { margin-bottom: 18px; }
.form-control {
  display: block; width: 100%; height: 46px; padding: 10px 14px;
  font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
html.light .form-control { background: #fff; }
.form-control::placeholder { color: var(--text-3); opacity: 1; }
.form-control:hover { border-color: rgba(139, 92, 246, .45); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); background: var(--surface); }
.form-control[readonly], .form-control[disabled], span.form-control[disabled] { background: var(--surface-2); color: var(--text-2); cursor: default; }
textarea.form-control { height: auto; min-height: 120px; resize: vertical; }
select.form-control {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23a3a8c3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select.form-control option { background: var(--surface); color: var(--text); }
select[multiple].form-control { height: auto; background-image: none; }
.help-block { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.has-error .form-control, .form-control.is-invalid:not(:placeholder-shown):invalid { border-color: var(--danger); }
.has-error .help-block, .has-error .control-label { color: var(--fg-danger); }
.input-group { position: relative; display: flex; width: 100%; align-items: stretch; }
.input-group .form-control { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-btn, .input-group-addon { display: flex; }
.input-group-addon { align-items: center; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 0; color: var(--text-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13px; }
.input-group-btn .btn { height: 100%; border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.input-group .input-group-addon:first-child { border-left: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.checkbox, .radio { margin: 0 0 14px; }
.checkbox label, .radio label { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text-2); cursor: pointer; margin: 0; padding: 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; cursor: pointer; }
.field-icon { position: relative; }
.field-icon > i:first-child { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 14px; pointer-events: none; z-index: 2; }
.field-icon .form-control { padding-left: 42px; }
.field-icon .pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--text-3); border-radius: 8px; cursor: pointer; }
.field-icon .pw-toggle:hover { color: var(--text); background: var(--surface-3); }
.field-icon.has-toggle .form-control { padding-right: 46px; }

/* Datetime picker (core) */
.bootstrap-datetimepicker-widget.dropdown-menu { background: var(--surface) !important; border: 1px solid var(--border-strong) !important; border-radius: var(--radius) !important; color: var(--text); box-shadow: var(--shadow-lg); padding: 10px; }
.bootstrap-datetimepicker-widget table td.active, .bootstrap-datetimepicker-widget table td.active:hover { background: var(--accent) !important; }
.bootstrap-datetimepicker-widget table td.day:hover, .bootstrap-datetimepicker-widget table td.hour:hover, .bootstrap-datetimepicker-widget table td.minute:hover, .bootstrap-datetimepicker-widget table thead tr:first-child th:hover { background: var(--surface-3) !important; }
.bootstrap-datetimepicker-widget.dropdown-menu::before, .bootstrap-datetimepicker-widget.dropdown-menu::after { display: none !important; }

/* ---------- 5. Alerts ---------- */
.alert {
  position: relative; display: block;
  padding: 14px 44px 14px 46px; margin-bottom: 18px;
  border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font-size: 14px; line-height: 1.55;
  animation: fadeUp .4s var(--ease) both;
}
.alert::before { position: absolute; left: 17px; top: 14px; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 15px; line-height: 1.5; }
.alert:not(.alert-success):not(.alert-danger):not(.alert-warning):not(.alert-info) { padding-left: 16px; }
.alert-success { background: var(--success-soft); border-color: rgba(16, 185, 129, .35); }
.alert-success::before { content: "\f058"; color: var(--success); }
.alert-danger { background: var(--danger-soft); border-color: rgba(239, 68, 68, .35); }
.alert-danger::before { content: "\f06a"; color: var(--danger); }
.alert-warning { background: var(--warning-soft); border-color: rgba(245, 158, 11, .35); }
.alert-warning::before { content: "\f071"; color: var(--warning); }
.alert-info { background: var(--info-soft); border-color: rgba(59, 130, 246, .35); }
.alert-info::before { content: "\f05a"; color: var(--info); }
.alert a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.alert .close {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2); font-size: 20px; line-height: 1; opacity: 1; text-shadow: none; cursor: pointer;
}
.alert .close:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.alert-body { flex: 1; min-width: 0; word-break: break-word; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
#notify-wrapper { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3000; min-width: 280px; max-width: 92vw; box-shadow: var(--shadow-lg); }

/* ---------- 6. Cards / surfaces ---------- */
.card, .well, .panel {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.card { padding: 22px; }
.card-glass { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.card-pad-lg { padding: 28px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.card-title .ico, .ico-chip {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-soft); color: var(--fg-accent); font-size: 15px; flex: 0 0 auto;
}
html.light .card-title .ico, html.light .ico-chip { color: #4f46e5; }
.card-sub { margin: 4px 0 0; color: var(--text-3); font-size: 13px; }
.well { padding: 18px 20px; color: var(--text-2); }
.well p:last-child { margin-bottom: 0; }
.panel-body { padding: 18px 20px; }
.card-gradient-border { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-wide) border-box; }

/* ---------- 7. Status pills / badges ---------- */
.pill, .badge-soft {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  border-radius: 99px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.no-dot::before { display: none; }
.pill-success, .status-completed { background: var(--success-soft); color: var(--fg-success); border-color: rgba(16, 185, 129, .25); }
.pill-warning, .status-pending, .status-partial, .status-paused { background: var(--warning-soft); color: var(--fg-warning); border-color: rgba(245, 158, 11, .25); }
.pill-info, .status-inprogress, .status-processing, .status-active { background: var(--info-soft); color: var(--fg-info); border-color: rgba(59, 130, 246, .25); }
.pill-danger, .status-canceled, .status-error, .status-rejected, .status-expired { background: var(--danger-soft); color: var(--fg-danger); border-color: rgba(239, 68, 68, .25); }
.pill-accent { background: var(--accent-soft); color: var(--fg-accent); border-color: rgba(99, 102, 241, .3); }
html.light .pill-success, html.light .status-completed { color: #047857; }
html.light .pill-warning, html.light .status-pending, html.light .status-partial, html.light .status-paused { color: #b45309; }
html.light .pill-info, html.light .status-inprogress, html.light .status-processing, html.light .status-active { color: #1d4ed8; }
html.light .pill-danger, html.light .status-canceled, html.light .status-error, html.light .status-rejected, html.light .status-expired { color: #b91c1c; }
html.light .pill-accent { color: #4338ca; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; }

/* ---------- 8. Tables ---------- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); margin-bottom: 20px; }
.table-scroll > .table { margin: 0; border: 0; }
.table { width: 100%; max-width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 20px; background: transparent; color: var(--text); font-size: 13.5px; }
.table > thead > tr > th {
  position: sticky; top: 0; z-index: 1;
  padding: 13px 16px; background: var(--surface-2); color: var(--text-3);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border); border-top: 0;
}
.table > tbody > tr > td { padding: 14px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.table > tbody > tr:first-child > td { border-top: 0; }
.table > tbody > tr { transition: background .15s; }
.table > tbody > tr:hover > td { background: rgba(99, 102, 241, .05); }
.table-bordered { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-bordered > tbody > tr > td, .table-bordered > thead > tr > th { border-left: 0; border-right: 0; }
.width-40 { width: 40%; }
td.td-id, .td-id { font-family: var(--mono); color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
td.td-money { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.td-link { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-link a { color: var(--text-2); }

/* ---------- 9. Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 24px; list-style: none; }
.pagination > li { display: inline-flex; }
.pagination > li > a, .pagination > li > span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-weight: 600; font-size: 13px; float: none; margin: 0; line-height: 1;
}
.pagination > li > a:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -8px rgba(99, 102, 241, .8); }
.pagination > li:first-child > a, .pagination > li:last-child > a { border-radius: var(--radius-sm); }

/* ---------- 10. Dropdowns ---------- */
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 1200; min-width: 220px; max-height: 70vh; overflow: auto;
  padding: 8px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--glass-strong); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.dd.open > .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu.left { right: auto; left: 0; transform-origin: top left; }
.dd-menu.up { top: auto; bottom: calc(100% + 10px); }
.dd-label { padding: 8px 10px 6px; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.dd-item, .dd-menu li > a {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px;
  color: var(--text-2); font-size: 13.5px; font-weight: 500; background: transparent; border: 0; text-align: left; cursor: pointer;
}
.dd-item > *, .dd-menu li > a > * { pointer-events: none; }
.dd-item:hover, .dd-menu li > a:hover, .dd-menu li.active > a, .dd-item.active { background: var(--accent-soft); color: var(--text); }
.dd-item .dd-meta, .dd-menu li > a .dd-meta { margin-left: auto; color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.dd-menu ul { list-style: none; margin: 0; padding: 0; }
.dd-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-menu { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; }
.dropdown-menu > li > a { color: var(--text-2); border-radius: 8px; padding: 8px 12px; }
.dropdown-menu > li > a:hover { background: var(--accent-soft); color: var(--text); }

/* ---------- 11. Modals (theme + Bootstrap core) ---------- */
.snap-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.snap-modal.open { display: flex; }
.snap-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .2s ease both; }
.snap-modal-dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  animation: popIn .28s var(--ease) both;
}
.snap-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.snap-modal-title { margin: 0; font-size: 17px; font-weight: 700; }
.snap-modal-body { padding: 18px 22px; }
.snap-modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 22px; }
.snap-modal-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-3); color: var(--text-2); cursor: pointer; font-size: 15px; }
.snap-modal-close:hover { color: var(--text); background: var(--accent-soft); }
.modal-backdrop { background: #05060a; }
.modal-backdrop.in { opacity: .65; }
.modal-content { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); color: var(--text); }
.modal-header { border-bottom: 1px solid var(--border); padding: 18px 22px; }
.modal-header .close { color: var(--text-2); opacity: 1; text-shadow: none; font-size: 24px; }
.modal-title { font-weight: 700; }
.modal-body { padding: 20px 22px; }
.modal-footer { border-top: 1px solid var(--border); padding: 16px 22px; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.kv > div { padding: 11px 14px; border-top: 1px solid var(--border); font-size: 13.5px; word-break: break-word; }
.kv > div:nth-child(-n+2) { border-top: 0; }
.kv > div:nth-child(odd) { color: var(--text-3); background: var(--surface-2); font-weight: 600; font-size: 12.5px; }

/* ---------- 12. Toast ---------- */
.toast-stack { position: fixed; z-index: 4000; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 240px; max-width: 380px; padding: 13px 16px;
  background: var(--glass-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  color: var(--text); font-size: 13.5px; font-weight: 500; animation: toastIn .35s var(--ease) both;
}
.toast.out { animation: toastOut .3s var(--ease) both; }
.toast i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--success-soft); color: var(--success); flex: 0 0 auto; }
.toast.toast-error i { background: var(--danger-soft); color: var(--danger); }
.toast.toast-info i { background: var(--accent-soft); color: var(--fg-accent); }

/* ---------- 13. App shell (authenticated) ---------- */
.app { position: relative; z-index: 1; min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1100; width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: var(--glass); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-right: 1px solid var(--border);
  transition: width .3s var(--ease), transform .3s var(--ease);
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: var(--topbar-h); padding: 0 16px 0 20px; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text) !important; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand img { height: 34px; width: auto; display: block; }
/* j30x… (.logo-light) = white-text logo for dark UI; f7g5… (.logo-dark) = dark-text logo for light UI */
.brand .logo-dark { display: none; }
html.light .brand .logo-light { display: none; }
html.light .brand .logo-dark { display: block; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 16px; box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .9); flex: 0 0 auto; }
.brand-text { white-space: nowrap; overflow: hidden; }
.sidebar-collapse-btn { flex: 0 0 auto; }
.sidebar-scroll { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 16px 12px; }
.balance-card {
  position: relative; overflow: hidden; padding: 16px; margin-bottom: 18px; border-radius: var(--radius);
  background: var(--grad-wide); color: #fff; box-shadow: 0 16px 40px -18px rgba(99, 102, 241, .9);
}
.balance-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.balance-card .bc-label { font-size: 11.5px; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.balance-card .bc-value { margin: 4px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-family: var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balance-card .btn { position: relative; z-index: 1; height: 36px; width: 100%; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(6px); font-size: 13px; }
.balance-card .btn:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.nav-label { padding: 14px 12px 8px; font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; margin: 2px 0;
  border-radius: 11px; color: var(--text-2) !important; font-weight: 600; font-size: 13.8px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-item i { width: 20px; text-align: center; font-size: 15px; color: var(--text-3); transition: color .2s; flex: 0 0 auto; }
.nav-item span { overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: var(--surface-2); color: var(--text) !important; }
.nav-item:hover i { color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--text) !important; }
.nav-item.active i { color: var(--fg-accent); }
html.light .nav-item.active i { color: #4f46e5; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 4px 4px 0; background: var(--grad); box-shadow: 0 0 12px rgba(99, 102, 241, .8); }
.nav-item .badge { margin-left: auto; }
.sidebar-foot { flex: 0 0 auto; padding: 12px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--text) !important; }
.user-chip:hover { background: var(--surface-2); }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; flex: 0 0 auto; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
.user-chip .uc-meta { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; }
.user-chip .uc-name { display: block; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .uc-sub { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .uc-arrow { flex: 0 0 auto; margin-left: auto; color: var(--text-3); }

.main { position: relative; min-height: 100vh; margin-left: var(--sidebar-w); transition: margin .3s var(--ease); display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 1000; height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: var(--glass); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.topbar-title { min-width: 0; }
.topbar-title h1 { margin: 0; font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title .crumb { font-size: 12px; color: var(--text-3); font-weight: 500; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-family: var(--font); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
}
.tb-btn:hover, .dd.open > .tb-btn { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.tb-btn.icon-only { padding: 0; width: 40px; }
.tb-btn .caret-i { font-size: 10px; opacity: .6; }
.balance-pill { background: var(--accent-soft); border-color: rgba(99, 102, 241, .3); color: var(--text); font-family: var(--font); }
.balance-pill i { color: var(--fg-accent); }
html.light .balance-pill i { color: #4f46e5; }
.theme-toggle .fa-sun { display: none; }
html.light .theme-toggle .fa-sun { display: inline-block; }
html.light .theme-toggle .fa-moon { display: none; }
.content { position: relative; z-index: 1; flex: 1 0 auto; width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px; }
.app-footer { padding: 18px 28px 26px; color: var(--text-3); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.app-footer a { color: var(--text-3); }
.app-footer a:hover { color: var(--text); }
.only-mobile { display: none !important; }

/* Collapsed sidebar (desktop) */
@media (min-width: 992px) {
  html.sb-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
  html.sb-collapsed .main { margin-left: var(--sidebar-w-collapsed); }
  html.sb-collapsed .sidebar .brand-text,
  html.sb-collapsed .sidebar .brand img,
  html.sb-collapsed .sidebar .nav-item span,
  html.sb-collapsed .sidebar .nav-label,
  html.sb-collapsed .sidebar .balance-card,
  html.sb-collapsed .sidebar .uc-meta,
  html.sb-collapsed .sidebar .uc-arrow,
  html.sb-collapsed .sidebar .nav-item .badge { display: none !important; }
  html.sb-collapsed .sidebar .brand-mark { display: inline-grid !important; }
  html.sb-collapsed .sidebar-brand { padding: 0 12px; justify-content: center; flex-direction: column; gap: 4px; height: auto; min-height: var(--topbar-h); padding-top: 12px; padding-bottom: 12px; }
  html.sb-collapsed .nav-item { justify-content: center; padding: 0; }
  html.sb-collapsed .nav-item i { font-size: 17px; }
  html.sb-collapsed .user-chip { justify-content: center; }
  html.sb-collapsed .sidebar-collapse-btn i { transform: rotate(180deg); }
}
.brand .brand-mark.only-collapsed { display: none; }

/* Mobile drawer */
.sidebar-backdrop { position: fixed; inset: 0; z-index: 1090; background: rgba(5, 6, 10, .6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
@media (max-width: 991px) {
  .sidebar { transform: translateX(-105%); box-shadow: var(--shadow-lg); background: var(--glass-strong); }
  html.sb-open .sidebar { transform: none; }
  html.sb-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  .main { margin-left: 0; }
  .topbar { padding: 0 14px; gap: 8px; }
  .content { padding: 18px 14px 96px; }
  .only-mobile { display: inline-flex !important; }
  .hide-mobile { display: none !important; }
  .sidebar-collapse-btn { display: none !important; }
  .app-footer { padding-bottom: 96px; }
}
@media (max-width: 575px) {
  .topbar-title h1 { font-size: 16px; }
  .tb-btn .tb-text { display: none; }
  .balance-pill .tb-text { display: inline; }
}

/* Mobile bottom navigation */
.bottom-nav {
  position: fixed; z-index: 1050; left: 12px; right: 12px; bottom: 12px; height: 64px;
  display: none; align-items: center; justify-content: space-around; padding: 0 6px;
  background: var(--glass-strong); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1; height: 100%; color: var(--text-3) !important; font-size: 10.5px; font-weight: 600; }
.bottom-nav a i { font-size: 17px; }
.bottom-nav a.active { color: var(--text) !important; }
.bottom-nav a.active i { color: var(--fg-accent); }
.bottom-nav a.bn-cta i { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -26px; border-radius: 16px; background: var(--grad); color: #fff !important; box-shadow: var(--glow); font-size: 18px; }
@media (max-width: 991px) { .bottom-nav { display: flex; } }

/* ---------- 14. Page scaffolding ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.page-head p { margin: 4px 0 0; color: var(--text-3); font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.toolbar .grow { flex: 1 1 240px; }
.search-box { position: relative; }
.search-box > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-box .form-control { padding-left: 42px; }
.search-box .kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--text-3); border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 6px; pointer-events: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; flex: 0 0 auto;
  border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2) !important;
  font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--border-strong); color: var(--text) !important; }
.chip.active { background: var(--accent-soft); border-color: rgba(99, 102, 241, .5); color: var(--text) !important; box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .25); }
.chip .chip-count { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.sticky-col { position: sticky; top: calc(var(--topbar-h) + 20px); }
@media (max-width: 1199px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: minmax(0, 1fr); } .sticky-col { position: static; } }
@media (max-width: 767px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } .grid { gap: 14px; } .card { padding: 18px; } .page-head h2 { font-size: 20px; } }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s; }
.kpi:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.kpi::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 102, 241, .18), transparent 70%); pointer-events: none; }
.kpi-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 18px; flex: 0 0 auto; background: var(--accent-soft); color: var(--fg-accent); }
.kpi:nth-child(2) .kpi-ico { background: rgba(6, 182, 212, .14); color: var(--fg-cyan); }
.kpi:nth-child(3) .kpi-ico { background: var(--success-soft); color: var(--fg-success); }
.kpi:nth-child(4) .kpi-ico { background: rgba(139, 92, 246, .16); color: var(--fg-violet); }
html.light .kpi-ico { color: #4f46e5 !important; }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.kpi-value { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.kpi > div:last-child { min-width: 0; }
@media (max-width: 1199px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kpis { gap: 10px; } .kpi { padding: 14px; gap: 10px; } .kpi-ico { width: 38px; height: 38px; font-size: 15px; border-radius: 11px; } .kpi-value { font-size: 16px; } .kpi-label { font-size: 10.5px; } }

/* Empty state */
.empty { text-align: center; padding: 56px 20px; color: var(--text-3); }
.empty .empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--fg-accent); font-size: 24px; margin-bottom: 14px; }
.empty h4 { color: var(--text); margin-bottom: 6px; font-size: 16px; }

/* ---------- 15. New order ---------- */
.no-hero { position: relative; overflow: hidden; padding: 22px 24px; margin-bottom: 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: radial-gradient(1200px 300px at 0% 0%, rgba(99, 102, 241, .18), transparent 60%), radial-gradient(800px 260px at 100% 100%, rgba(6, 182, 212, .12), transparent 60%), var(--surface); }
.order-card .card-head { margin-bottom: 14px; }
.picker-search { margin-bottom: 14px; }
.picker-search .search-results {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px); max-height: 420px; overflow: auto; padding: 6px;
  background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none;
}
.picker-search.open .search-results { display: block; }
.picker-field { margin-bottom: 16px; }
.picker { position: relative; }
.picker-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 44px 10px 12px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text);
  font-family: var(--font); font-size: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s;
  position: relative;
}
html.light .picker-btn { background: #fff; }
.picker-btn:hover { border-color: rgba(139, 92, 246, .5); }
.picker.open .picker-btn, .picker-btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); outline: none; }
.picker-btn::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); transition: transform .2s; }
.picker.open .picker-btn::after { transform: translateY(-50%) rotate(180deg); }
.picker-btn .pb-main { flex: 1; min-width: 0; }
.picker-btn .pb-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-btn .pb-sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plat-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface-3); color: var(--text); font-size: 16px; flex: 0 0 auto; overflow: hidden; }
.plat-ico img { width: 100%; height: 100%; object-fit: cover; }
.plat-ico.p-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: #fff; }
.plat-ico.p-tiktok { background: #111; color: #fff; box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55; }
.plat-ico.p-youtube { background: #ff0033; color: #fff; }
.plat-ico.p-twitter { background: #000; color: #fff; border: 1px solid var(--border-strong); }
.plat-ico.p-facebook { background: #1877f2; color: #fff; }
.plat-ico.p-telegram { background: #229ed9; color: #fff; }
.plat-ico.p-spotify { background: #1db954; color: #fff; }
.plat-ico.p-twitch { background: #9146ff; color: #fff; }
.plat-ico.p-discord { background: #5865f2; color: #fff; }
.plat-ico.p-linkedin { background: #0a66c2; color: #fff; }
.plat-ico.p-threads { background: #000; color: #fff; }
.plat-ico.p-snapchat { background: #fffc00; color: #111; }
.plat-ico.p-pinterest { background: #e60023; color: #fff; }
.plat-ico.p-reddit { background: #ff4500; color: #fff; }
.plat-ico.p-kick { background: #53fc18; color: #111; }
.plat-ico.p-soundcloud { background: #ff5500; color: #fff; }
.plat-ico.p-whatsapp { background: #25d366; color: #fff; }
.plat-ico.p-google { background: #fff; color: #4285f4; }
.plat-ico.p-favorite { background: rgba(245, 158, 11, .18); color: var(--fg-warning); }
.plat-ico.emoji { font-size: 19px; background: var(--surface-3); }
.picker-pop {
  position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--glass-strong); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: none; overflow: hidden;
}
.picker.open .picker-pop { display: block; animation: popIn .18s var(--ease) both; }
.picker-pop .pp-search { padding: 10px; border-bottom: 1px solid var(--border); }
.picker-pop .pp-search .form-control { height: 40px; }
.picker-list { max-height: 380px; overflow-y: auto; padding: 6px; }
.p-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 11px; background: transparent; color: var(--text); text-align: left; font-family: var(--font); cursor: pointer; }
.p-opt:hover, .p-opt.kb { background: var(--surface-3); }
.p-opt.active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .35); }
.p-opt .po-main { flex: 1; min-width: 0; }
.p-opt .po-title { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-opt .po-sub { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
.p-opt .po-id { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); padding: 3px 7px; border-radius: 7px; background: var(--surface-3); flex: 0 0 auto; align-self: flex-start; }
.p-opt.active .po-id { background: var(--accent); color: #fff; }
.p-opt .po-price { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--text); flex: 0 0 auto; align-self: center; white-space: nowrap; }
.p-opt .po-count { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); flex: 0 0 auto; }
.p-empty { padding: 26px 12px; text-align: center; color: var(--text-3); font-size: 13px; }
.p-group { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
mark { background: rgba(139, 92, 246, .3); color: inherit; border-radius: 3px; padding: 0 1px; }

#order-form #fields .form-group { animation: fadeUp .3s var(--ease) both; }
.charge-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 6px 0 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px dashed rgba(99, 102, 241, .45); }
.charge-box label { margin: 0; color: var(--text-2); }
.charge-box #charge { width: auto; max-width: 60%; height: auto; padding: 0; text-align: right; background: transparent !important; border: 0 !important; box-shadow: none !important; font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--text) !important; }
.info-card .info-name { font-size: 15.5px; font-weight: 700; line-height: 1.45; margin: 4px 0 14px; word-break: break-word; }
.info-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.info-stat { padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.info-stat .is-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.info-stat .is-value { font-size: 14.5px; font-weight: 700; color: var(--text); font-family: var(--mono); margin-top: 2px; word-break: break-word; }
.info-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.info-desc-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
#service_description { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.7; color: var(--text-2); max-height: 420px; overflow: auto; word-break: break-word; }
#service_description a { color: var(--fg-accent); }
.info-placeholder { text-align: center; padding: 30px 10px; color: var(--text-3); }
.info-placeholder i { font-size: 28px; margin-bottom: 10px; display: block; opacity: .6; }
.order-success { border: 1px solid rgba(16, 185, 129, .35); background: linear-gradient(135deg, rgba(16, 185, 129, .12), transparent 60%), var(--surface); }
.order-success .kv { margin-top: 12px; }

/* ---------- 16. Services page ---------- */
.svc-cat { margin-bottom: 18px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.svc-cat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; }
.svc-cat-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; flex: 1; min-width: 0; }
.svc-cat-head .chev { color: var(--text-3); transition: transform .2s; }
.svc-cat.collapsed .chev { transform: rotate(-90deg); }
.svc-cat.collapsed .svc-cat-body { display: none; }
.svc-cat-body { overflow-x: auto; }
.svc-cat-body .table { margin: 0; }
.svc-cat-body .table > thead > tr > th { position: static; }
.svc-name { font-weight: 600; line-height: 1.45; min-width: 260px; }
.svc-desc-btn { font-size: 12px; }
.favbox { cursor: pointer; color: var(--text-3); font-size: 15px; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; transition: all .2s; }
.favbox:hover { background: var(--warning-soft); color: var(--fg-warning); }
.favbox .fas.fa-star { color: var(--fg-warning); }
.svc-desc-row td { background: var(--surface-2) !important; color: var(--text-2); font-size: 13px; line-height: 1.7; }

/* ---------- 17. Orders / generic list cards ---------- */
.list-cards { display: grid; gap: 12px; }
.lc { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s var(--ease); }
.lc:hover { border-color: var(--border-strong); }
.lc-id { font-family: var(--mono); font-size: 12px; color: var(--text-2); padding: 6px 9px; border-radius: 9px; background: var(--surface-3); cursor: pointer; white-space: nowrap; }
.lc-main { min-width: 0; }
.lc-title { font-weight: 600; font-size: 14px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.lc-meta b { color: var(--text-2); font-weight: 600; }
.lc-meta a { color: var(--text-2); }
.lc-meta .lc-link { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.lc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.progress-mini { width: 120px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-mini > span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
@media (max-width: 767px) {
  .lc { grid-template-columns: 1fr; gap: 10px; }
  .lc-side { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .lc-meta .lc-link { max-width: 220px; }
}
.status-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); scrollbar-width: none; }
.status-tabs::-webkit-scrollbar { display: none; }
.status-tabs a { flex: 0 0 auto; padding: 8px 14px; border-radius: 10px; color: var(--text-2) !important; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status-tabs a:hover { background: var(--surface-2); color: var(--text) !important; }
.status-tabs a.active { background: var(--grad); color: #fff !important; box-shadow: 0 6px 18px -8px rgba(99, 102, 241, .8); }

/* ---------- 18. Add funds ---------- */
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.method {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 64px;
  border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; text-align: left;
  color: var(--text); font-family: var(--font); font-weight: 600; font-size: 13.5px; transition: all .2s var(--ease);
}
.method:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.method.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }
.method .m-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); color: var(--fg-accent); flex: 0 0 auto; }
.method .m-check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-size: 9px; color: transparent; }
.method.active .m-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.method .m-name { line-height: 1.35; padding-right: 16px; word-break: normal; overflow-wrap: break-word; hyphens: none; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.quick-amounts button { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-family: var(--mono); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.quick-amounts button:hover { border-color: var(--accent); color: var(--text); }
#amount-fields .form-group { margin-bottom: 16px; }
.addfunds-form .form-group label { display: block; }

/* ---------- 19. Tickets ---------- */
.subject-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.subject-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-family: var(--font); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .2s var(--ease); }
.subject-tab i { font-size: 18px; color: var(--text-3); }
.subject-tab:hover { border-color: var(--border-strong); color: var(--text); }
.subject-tab.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 3px var(--accent-ring); }
.subject-tab.active i { color: var(--fg-accent); }
.ticket-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; transition: all .2s var(--ease); }
.ticket-item:hover { border-color: var(--border-strong); transform: translateX(2px); }
.ticket-item.unread { border-color: rgba(99, 102, 241, .5); background: linear-gradient(90deg, var(--accent-soft), transparent 60%), var(--surface); }
.ticket-item .ti-main { flex: 1; min-width: 0; }
.ticket-item .ti-subject { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-item .ti-date { font-size: 12px; color: var(--text-3); }
.thread { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 20px; }
.msg { max-width: min(78%, 640px); padding: 14px 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; line-height: 1.65; word-break: break-word; animation: fadeUp .35s var(--ease) both; }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-color: transparent; border-bottom-right-radius: 6px; }
.msg.support { align-self: flex-start; border-bottom-left-radius: 6px; }
.msg .msg-meta { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 11.5px; opacity: .75; }
.msg .msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.msg .msg-files img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid rgba(255, 255, 255, .15); }
.msg .msg-files a.file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: rgba(0, 0, 0, .15); color: inherit; font-size: 12.5px; }
.msg-text { white-space: pre-line; }
.tickets-uploader { margin-top: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5, 6, 10, .88); cursor: zoom-out; animation: fadeIn .2s both; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: var(--shadow-lg); }

/* ---------- 20. Account / affiliates / API ---------- */
.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.profile-card .pc-main { flex: 1; min-width: 200px; }
.profile-card .pc-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.profile-card .pc-mail { color: var(--text-3); font-size: 13.5px; }
.key-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-2); font-family: var(--mono); font-size: 13px; }
html.light .key-box { background: var(--surface-2); }
.key-box .kb-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.key-box .kb-val.masked { filter: blur(5px); user-select: none; }
.ref-box { position: relative; overflow: hidden; padding: 26px; border-radius: var(--radius-lg); background: radial-gradient(600px 200px at 0% 0%, rgba(99, 102, 241, .25), transparent 70%), radial-gradient(500px 200px at 100% 100%, rgba(6, 182, 212, .18), transparent 70%), var(--surface); border: 1px solid var(--border); margin-bottom: 20px; }
.ref-box h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.progress-bar-wrap { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px; }
.progress-bar-wrap > span { display: block; height: 100%; background: var(--grad-wide); border-radius: 99px; transition: width 1s var(--ease); }
.stat-tile { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-tile .st-label { font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.stat-tile .st-value { font-size: 20px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; word-break: break-word; }
.code-block { position: relative; margin: 10px 0 24px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: #0b0d14; overflow: hidden; }
html.light .code-block { background: #0f172a; }
.code-block .cb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px 9px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #94a3b8; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; }
.code-block .cb-dots { display: inline-flex; gap: 6px; margin-right: 10px; }
.code-block .cb-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; display: inline-block; }
.code-block .cb-dots i:nth-child(2) { background: #f59e0b; }
.code-block .cb-dots i:nth-child(3) { background: #10b981; }
.code-block pre { margin: 0; padding: 16px; background: transparent; border: 0; border-radius: 0; color: #e2e8f0; font-size: 12.5px; line-height: 1.7; overflow: auto; max-height: 460px; white-space: pre; }
.code-block code { background: transparent; color: inherit; padding: 0; font-size: inherit; white-space: pre; }
.code-block .j-key { color: #a5b4fc; }
.code-block .j-str { color: #86efac; }
.code-block .j-num { color: #fcd34d; }
.code-block .j-bool { color: #f0abfc; }
.code-block .cb-copy { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #cbd5e1; font-size: 11.5px; cursor: pointer; font-family: var(--font); }
.code-block .cb-copy:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.api-method { scroll-margin-top: calc(var(--topbar-h) + 20px); }
.api-method h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 34px 0 14px; }
.api-method h3 .pill { font-family: var(--mono); }
.api-toc { display: flex; flex-wrap: wrap; gap: 8px; }
code { font-family: var(--mono); font-size: .92em; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--fg-violet); }
html.light code { color: #6d28d9; }
pre { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }

/* Child panels */
.panel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cp-card { padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.cp-card .cp-domain { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; word-break: break-all; }
.cp-card .cp-favicon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.cp-card .cp-favicon img { width: 20px; height: 20px; }
.ns-list { display: grid; gap: 8px; margin: 8px 0 18px; }
.ns-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.ns-item:hover { border-color: var(--accent); }
.price-tag { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px dashed rgba(99, 102, 241, .45); margin-bottom: 18px; font-weight: 600; }
.price-tag b { font-family: var(--mono); font-size: 20px; }

/* Updates */
.update-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.update-item .u-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface-3); flex: 0 0 auto; }
.u-ico.u-new { background: var(--success-soft); color: var(--fg-success); }
.u-ico.u-down { background: var(--info-soft); color: var(--fg-info); }
.u-ico.u-up { background: var(--danger-soft); color: var(--fg-danger); }
.u-ico.u-on { background: var(--success-soft); color: var(--fg-success); }
.u-ico.u-off { background: var(--warning-soft); color: var(--fg-warning); }
.u-ico.u-del { background: var(--danger-soft); color: var(--fg-danger); }
.update-item .u-main { flex: 1; min-width: 0; }
.update-item .u-title { font-weight: 600; font-size: 13.8px; line-height: 1.45; }
.update-item .u-text { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.update-item .u-date { font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* Blog / static content */
.prose { color: var(--text-2); font-size: 15px; line-height: 1.8; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.prose table td, .prose table th { border: 1px solid var(--border); padding: 8px 10px; }
.blog-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.blog-card .bc-img { aspect-ratio: 16 / 9; background: var(--surface-3); overflow: hidden; }
.blog-card .bc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .bc-img img { transform: scale(1.04); }
.blog-card .bc-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card .bc-title { font-weight: 700; font-size: 16px; color: var(--text); line-height: 1.4; }
.blog-card .bc-text { color: var(--text-3); font-size: 13.5px; flex: 1; }
.blog-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; border: 1px solid var(--border); }
.blog-hero-img img { width: 100%; display: block; }

/* ---------- 21. Guest shell ---------- */
.guest { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.gnav { position: sticky; top: 0; z-index: 1000; padding: 14px 0; transition: padding .3s var(--ease); }
.gnav-inner {
  display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 10px 0 18px;
  border-radius: 18px; border: 1px solid var(--border);
  background: var(--glass); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow);
}
.gnav-links { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.gnav-links a { padding: 8px 12px; border-radius: 10px; color: var(--text-2) !important; font-weight: 600; font-size: 13.8px; white-space: nowrap; }
.gnav-links a:hover { color: var(--text) !important; background: var(--surface-2); }
.gnav-links a.active { color: var(--text) !important; background: var(--accent-soft); }
.gnav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gnav-mobile { display: none; }
@media (max-width: 991px) {
  .gnav-links { display: none; }
  .gnav-mobile { display: inline-flex; }
  .gnav-actions .hide-sm { display: none !important; }
  .wrap { padding: 0 14px; }
  .gnav { padding: 10px 0; }
}
.mobile-menu { position: fixed; inset: 0; z-index: 1500; display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .mm-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, .6); backdrop-filter: blur(4px); animation: fadeIn .2s both; }
.mobile-menu .mm-panel { position: absolute; top: 12px; left: 12px; right: 12px; padding: 14px; border-radius: 20px; background: var(--glass-strong); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); animation: popIn .25s var(--ease) both; max-height: calc(100vh - 24px); overflow: auto; }
.mobile-menu .mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mobile-menu .mm-links a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--text) !important; font-weight: 600; }
.mobile-menu .mm-links a:hover, .mobile-menu .mm-links a.active { background: var(--accent-soft); }
.mobile-menu .mm-links a i { width: 20px; text-align: center; color: var(--text-3); }
.mobile-menu .mm-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.guest-main { min-height: 60vh; }
.guest-page { padding: 34px 0 60px; }

/* Footer */
.site-footer { position: relative; z-index: 1; margin-top: 60px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(99, 102, 241, .04)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding: 56px 0 36px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text-2) !important; font-size: 14px; }
.footer-grid ul a:hover { color: var(--text) !important; }
.footer-about p { color: var(--text-3); font-size: 13.5px; line-height: 1.7; margin: 14px 0; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2) !important; transition: all .2s var(--ease); }
.footer-social a:hover { color: #fff !important; background: var(--grad); border-color: transparent; transform: translateY(-2px); }
.payments-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.payments-row img { height: 30px; width: auto; padding: 6px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--border); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 30px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; }
.footer-seo { padding: 0 0 24px; color: var(--text-3); font-size: 12px; line-height: 1.8; opacity: .8; }
.footer-seo p { margin: 0; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 22. Home / sign-in ---------- */
.hero { position: relative; padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--glass); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 20px; }
.eyebrow .dot { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 20px; }
.hero .lead { font-size: 17px; color: var(--text-2); line-height: 1.7; max-width: 580px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-stats .hs-value { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats .hs-label { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.auth-card { position: relative; padding: 30px; border-radius: var(--radius-xl); background: var(--glass); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.auth-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(99, 102, 241, .7), transparent 35%, transparent 65%, rgba(6, 182, 212, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.auth-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-card .auth-sub { color: var(--text-3); font-size: 14px; margin-bottom: 22px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 18px; font-size: 13px; }
.auth-row .checkbox { margin: 0; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.google-wrap { display: flex; justify-content: center; min-height: 44px; max-width: 100%; overflow: hidden; border-radius: 10px; }
.google-wrap iframe { max-width: 100% !important; }
.google-wrap .g_id_signin { width: 100%; display: flex; justify-content: center; }
.captcha-wrap { display: flex; justify-content: center; margin: 4px 0 16px; overflow: hidden; }
.auth-page { min-height: calc(100vh - 220px); display: flex; align-items: center; justify-content: center; padding: 30px 0 60px; }
.auth-page .auth-card { width: 100%; max-width: 460px; }
.auth-page .auth-card.wide { max-width: 560px; }
.auth-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; font-size: 22px; margin-bottom: 16px; box-shadow: var(--glow); }
.otp-input { text-align: center; font-family: var(--mono); font-size: 26px !important; letter-spacing: .5em; height: 60px !important; font-weight: 700; padding-left: .5em !important; }
.marquee { position: relative; overflow: hidden; padding: 18px 0; margin: 10px 0 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text-2); white-space: nowrap; }
.marquee-item i { font-size: 18px; }
.section { padding: 70px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-accent); margin-bottom: 12px; }
html.light .section-head .kicker { color: #4f46e5; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.section-head p { color: var(--text-2); font-size: 16px; }
.feature { position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden; }
.feature:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, .4); box-shadow: var(--shadow); }
.feature .f-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--accent-soft); color: var(--fg-accent); font-size: 20px; margin-bottom: 18px; }
html.light .feature .f-ico { color: #4f46e5; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.7; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step .s-num { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--fg-accent); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; }
.step .s-num::before { content: ""; width: 24px; height: 2px; background: var(--grad); border-radius: 2px; }
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.7; }
.testi { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; break-inside: avoid; margin-bottom: 18px; }
.testi .stars { color: #fbbf24; font-size: 12px; letter-spacing: 2px; }
.testi p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.7; }
.testi .t-who { display: flex; align-items: center; gap: 10px; }
.testi .t-name { font-weight: 700; font-size: 14px; }
.testi .t-role { font-size: 12.5px; color: var(--text-3); }
.testi-cols { columns: 3 300px; column-gap: 18px; }
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: rgba(99, 102, 241, .45); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); font-size: 12px; transition: transform .25s var(--ease); flex: 0 0 auto; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--text-2); line-height: 1.75; font-size: 14.5px; }
.cta-band { position: relative; overflow: hidden; padding: 48px; border-radius: var(--radius-xl); background: var(--grad-wide); color: #fff; text-align: center; box-shadow: 0 30px 80px -30px rgba(99, 102, 241, .8); }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 16px; margin-bottom: 24px; }
.cta-band .btn { background: #fff; color: #312e81 !important; border: 0; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.cta-band .btn:hover { background: #fff; color: #1e1b4b !important; transform: translateY(-1px); }
.cta-band::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: 40px 40px; mask-image: radial-gradient(ellipse at center, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.cta-band > * { position: relative; }
@media (max-width: 991px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .hero { padding: 26px 0 20px; } .section { padding: 48px 0; } .cta-band { padding: 34px 20px; } }

/* Legacy home sections kept from the old theme (platform cards + SEO article) */
.legacy-section { padding: 50px 0; }
.legacy-section .container, .legacy-section .grid-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.legacy-section .col-span-12 { width: 100%; }
.platform1-cards-section h2, .smmpanel h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.platform1-cards-section .grid-container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.platform1-cards-header { grid-column: 1 / -1; text-align: center; max-width: 760px; margin: 0 auto 20px; }
.platform1-cards-header h2 i { display: none; }
.platform1-cards-subtitle { font-size: 16px; font-weight: 600; color: var(--text-2); }
.platform1-cards-description { color: var(--text-3); font-size: 14.5px; }
.platform1-card { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s; }
.platform1-card:hover { transform: translateY(-3px); border-color: rgba(99, 102, 241, .4); }
.platform1-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; font-size: 22px; margin-bottom: 14px; background: var(--grad); }
.platform1-icon.instagram-gradient { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.platform1-icon.tiktok-gradient { background: #111; box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55; }
.platform1-icon.youtube-gradient { background: #ff0033; }
.platform1-icon.twitter-gradient { background: #000; border: 1px solid var(--border-strong); }
.platform1-card-title { font-size: 16px; margin-bottom: 8px; }
.platform1-card-text { color: var(--text-2); font-size: 13.8px; line-height: 1.7; margin: 0; }
@media (max-width: 991px) { .platform1-cards-section .grid-container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .platform1-cards-section .grid-container { grid-template-columns: minmax(0, 1fr); } }
.smmpanel { color: var(--text-2); }
.smmpanel .smmpanel-content, .smmpanel article { padding: 34px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); }
.smmpanel h3 { font-size: 19px; margin-top: 1.6em; }
.smmpanel p, .smmpanel li { line-height: 1.85; font-size: 14.5px; }
.smmpanel ul, .smmpanel ol { padding-left: 22px; }
.smmpanel table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.smmpanel td, .smmpanel th { padding: 10px 12px; border: 1px solid var(--border); }
.smmpanel img { border-radius: var(--radius); }
.seo-collapse { position: relative; max-height: 520px; overflow: hidden; transition: max-height .5s var(--ease); }
.seo-collapse::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.seo-collapse.expanded { max-height: none; }
.seo-collapse.expanded::after { display: none; }
.seo-toggle { display: flex; justify-content: center; margin-top: 14px; }

/* ---------- 23. Misc + Bootstrap leftovers ---------- */
.tooltip-inner { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-family: var(--font); }
.tooltip.top .tooltip-arrow { border-top-color: var(--surface-3); }
.nav-pills > li > a { border-radius: 10px; color: var(--text-2); }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover { background: var(--grad); }
.list-group-item { background: var(--surface); border-color: var(--border); color: var(--text); }
.close { color: var(--text-2); opacity: .8; text-shadow: none; }
.text-success { color: var(--success) !important; } .text-danger { color: var(--danger) !important; } .text-warning { color: var(--warning) !important; }
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: 8px !important; } .mt-3 { margin-top: 16px !important; } .mt-4 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 8px !important; } .mb-3 { margin-bottom: 16px !important; } .mb-4 { margin-bottom: 24px !important; }
.gap-2 { gap: 8px; } .flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .flex-wrap { flex-wrap: wrap; } .w-100 { width: 100%; }
.perfectuploader, .tickets-uploader .btn { font-family: var(--font); }
#uploader-button, .tickets-uploader button { height: 40px; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); background: var(--surface-2); color: var(--text-2); padding: 0 14px; font-weight: 600; }
#uploader-button:hover, .tickets-uploader button:hover { border-color: var(--accent); color: var(--text); }
.g-recaptcha { display: inline-block; }
iframe[src*="recaptcha"] { border-radius: 8px; }

/* Skeleton */
.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.4s infinite; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: fadeUp .45s var(--ease) backwards; }

/* ---------- 24. Keyframes ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* RTL */
html[dir="rtl"] .sidebar { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--border); }
html[dir="rtl"] .main { margin-left: 0; margin-right: var(--sidebar-w); }
html[dir="rtl"] .nav-item.active::before { left: auto; right: -12px; }
html[dir="rtl"] .alert { padding: 14px 46px 14px 44px; }
html[dir="rtl"] .alert .close { right: auto; left: 10px; }
html[dir="rtl"] .alert::before { left: auto; right: 17px; }
@media (min-width: 992px) { html[dir="rtl"].sb-collapsed .main { margin-right: var(--sidebar-w-collapsed); margin-left: 0; } }
@media (max-width: 991px) { html[dir="rtl"] .sidebar { transform: translateX(105%); } html[dir="rtl"].sb-open .sidebar { transform: none; } html[dir="rtl"] .main { margin-right: 0; } }

/* ==========================================================================
   25. v4.1 — UI/UX polish pass
   ========================================================================== */

/* ---- 25.1 Bootstrap 3 compatibility layer ----
   The core still drives Bootstrap 3 JS (modal, tooltip, collapse, alert, datetimepicker),
   but Bootstrap's CSS is not loaded. These rules give those plugins the layout they expect. */
.fade { opacity: 0; transition: opacity .2s linear; }
.fade.in { opacity: 1; }
.collapse { display: none; }
.collapse.in { display: block; }
tr.collapse.in { display: table-row; }
.collapsing { position: relative; height: 0; overflow: hidden; transition: height .3s var(--ease); }
.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 2050; display: none; overflow: hidden; outline: 0; -webkit-overflow-scrolling: touch; }
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
.modal-dialog { position: relative; width: auto; margin: 16px; }
.modal.fade .modal-dialog { opacity: 0; transform: translateY(-14px) scale(.98); transition: transform .28s var(--ease), opacity .28s var(--ease); }
.modal.in .modal-dialog { opacity: 1; transform: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 2040; background: #05060a; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in { opacity: .7; }
.modal-content { position: relative; background-clip: padding-box; outline: 0; overflow: hidden; }
.modal-header { display: flex; align-items: center; gap: 12px; }
.modal-header .modal-title { order: 0; flex: 1; margin: 0; font-size: 17px; line-height: 1.35; }
.modal-header .close { order: 1; margin: 0 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); font-size: 22px; line-height: 1; border: 0; padding: 0; cursor: pointer; }
.modal-header .close:hover { color: var(--text); background: var(--accent-soft); }
.modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.modal-footer .btn + .btn { margin-left: 0; }
.modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; }
@media (min-width: 768px) { .modal-dialog { width: 560px; margin: 64px auto; } .modal-sm { width: 380px; } }
@media (min-width: 992px) { .modal-lg { width: 880px; } }

.tooltip { position: absolute; z-index: 3070; display: block; font-family: var(--font); font-size: 12px; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; opacity: 0; filter: none; pointer-events: none; }
.tooltip.in { opacity: 1; }
.tooltip.top { margin-top: -4px; padding: 6px 0; }
.tooltip.right { margin-left: 4px; padding: 0 6px; }
.tooltip.bottom { margin-top: 4px; padding: 6px 0; }
.tooltip.left { margin-left: -4px; padding: 0 6px; }
.tooltip-inner { max-width: 260px; box-shadow: var(--shadow); text-align: left; }
.tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; }
.tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -6px; border-width: 6px 6px 0; border-top-color: var(--surface-3); }
.tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -6px; border-width: 6px 6px 6px 0; border-right-color: var(--surface-3); }
.tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -6px; border-width: 0 6px 6px; border-bottom-color: var(--surface-3); }
.tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -6px; border-width: 6px 0 6px 6px; border-left-color: var(--surface-3); }
.popover { position: absolute; z-index: 3060; display: none; max-width: 300px; padding: 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); color: var(--text); font-size: 13px; }
.popover-title { margin: 0; padding: 10px 14px; font-size: 13.5px; font-weight: 700; border-bottom: 1px solid var(--border); }
.popover-content { padding: 10px 14px; color: var(--text-2); }
.popover > .arrow { display: none; }

.dropdown, .dropup, .btn-group { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1300; display: none; float: none; min-width: 180px; margin: 6px 0 0; list-style: none; font-size: 13.5px; text-align: left; }
.open > .dropdown-menu { display: block; }
.dropdown-menu-right, .pull-right > .dropdown-menu { right: 0; left: auto; }
.dropdown-menu > li > a { display: block; clear: both; white-space: nowrap; }
.dropdown-menu .divider { height: 1px; margin: 6px 0; background: var(--border); }
.caret { display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.btn-group { display: inline-flex; }
.btn-group > .btn + .btn { margin-left: -1px; }

.row { display: flex; flex-wrap: wrap; margin-left: -8px; margin-right: -8px; }
.row > [class*="col-"] { position: relative; width: 100%; min-height: 1px; padding-left: 8px; padding-right: 8px; }
.row > [class*="col-xs-6"] { width: 50%; }
.row > [class*="col-xs-4"] { width: 33.333%; }
@media (min-width: 768px) { .row > .col-sm-6 { width: 50%; } .row > .col-sm-4 { width: 33.333%; } .row > .col-sm-3 { width: 25%; } .row > .col-sm-8 { width: 66.666%; } }
@media (min-width: 992px) { .row > .col-md-6 { width: 50%; } .row > .col-md-4 { width: 33.333%; } .row > .col-md-3 { width: 25%; } .row > .col-md-8 { width: 66.666%; } .row > .col-md-12 { width: 100%; } }
@media (min-width: 1200px) { .row > .col-lg-6 { width: 50%; } .row > .col-lg-4 { width: 33.333%; } .row > .col-lg-3 { width: 25%; } }
.container, .container-fluid { width: 100%; margin: 0 auto; padding: 0 16px; }
.container { max-width: 1240px; }

.pull-right { float: right !important; } .pull-left { float: left !important; }
.text-center { text-align: center !important; } .text-right { text-align: right !important; } .text-left { text-align: left !important; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.clearfix::after, .row::after { content: ""; display: table; clear: both; }
.row::after { display: none; }
.list-unstyled { list-style: none; padding-left: 0; }
.list-inline { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.label { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.label-success { background: var(--success-soft); color: var(--fg-success); }
.label-danger { background: var(--danger-soft); color: var(--fg-danger); }
.label-warning { background: var(--warning-soft); color: var(--fg-warning); }
.label-info, .label-primary { background: var(--info-soft); color: var(--fg-info); }
.progress { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-bottom: 12px; }
.progress-bar { height: 100%; background: var(--grad); color: #fff; font-size: 10px; text-align: center; transition: width .6s var(--ease); }
.nav { list-style: none; padding-left: 0; margin: 0; }
.nav-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.nav-tabs > li > a { display: block; padding: 10px 14px; border-radius: 10px 10px 0 0; color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.nav-tabs > li.active > a { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; }
.visible-xs, .visible-sm { display: none !important; }
@media (max-width: 767px) { .visible-xs { display: block !important; } .hidden-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } .hidden-sm { display: none !important; } }
@media (min-width: 992px) { .hidden-md, .hidden-lg { display: none !important; } }
.has-success .form-control { border-color: var(--success); }
.has-warning .form-control { border-color: var(--warning); }
.has-error .form-control:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, .25); }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-control-static { padding: 10px 0; margin: 0; color: var(--text); }
.input-group-btn .btn { height: 46px; }
.input-group-btn:last-child .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group .form-control:only-child { border-radius: var(--radius-sm); }
.btn-big-secondary, .clear-datetime { color: var(--text-2); }
.panel-heading { padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 700; }
.panel-footer { padding: 14px 20px; border-top: 1px solid var(--border); }
.ml-1 { margin-left: 4px; } .mr-1 { margin-right: 4px; }
.w-full { width: 100%; }

/* Native select / option contrast (Windows + Linux render the popup with these colours) */
select, select.form-control { color-scheme: inherit; }
select.form-control option, select.form-control optgroup { background-color: var(--surface); color: var(--text); }
html.dark select.form-control option, :root:not(.light) select.form-control option { background-color: #171a29; color: #eceef6; }
html.light select.form-control option { background-color: #ffffff; color: #0f172a; }
select.form-control option:disabled { color: var(--text-3); }
.form-control[disabled], .form-control:disabled { cursor: not-allowed; opacity: .85; }
input[type="number"].form-control { -moz-appearance: textfield; }
input[type="number"].form-control::-webkit-outer-spin-button, input[type="number"].form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.form-control:-webkit-autofill, .form-control:-webkit-autofill:hover, .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-2) inset; transition: background-color 9999s ease-out 0s;
}
html.light .form-control:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; }

/* Light-mode code: keep code blocks dark-on-dark readable */
.code-block code, html.light .code-block code { color: inherit; background: transparent; padding: 0; }
html.light .code-block .j-key { color: #a5b4fc; }
.code-block pre code .j-key { color: #a5b4fc; }

/* Close buttons always visible */
.close { font-size: 22px; line-height: 1; color: var(--text-2); opacity: 1; background: transparent; border: 0; cursor: pointer; }
.close:hover, .close:focus { color: var(--text); opacity: 1; }

/* ---- 25.2 Focus & interaction polish ---- */
.chip:focus-visible, .p-opt:focus-visible, .nav-item:focus-visible, .method:focus-visible, .subject-tab:focus-visible, .tb-btn:focus-visible, .picker-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kpi-value, .td-money, .po-price, .is-value, #charge, .bc-value, .st-value, .price-tag b { font-variant-numeric: tabular-nums; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::before { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; z-index: 2; visibility: visible; }
.btn-outline.is-loading::before, .btn-default.is-loading::before { border-color: var(--border-strong); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Theme toggle icon animation */
.theme-toggle i { transition: transform .45s var(--ease), opacity .3s; }
.theme-toggle:hover i { transform: rotate(-24deg) scale(1.08); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, border-color .35s ease, color .25s ease, fill .25s ease !important; }

/* Topbar quick add-funds */
.tb-add { background: var(--grad); color: #fff !important; border-color: transparent; box-shadow: 0 8px 22px -12px rgba(99, 102, 241, .9); }
.tb-add:hover { color: #fff !important; background: var(--grad); filter: brightness(1.08); border-color: transparent; }
.topbar-title .crumb { display: block; line-height: 1.2; margin-bottom: 1px; }
@media (max-width: 1199px) { .tb-add .tb-text { display: none; } .tb-add { width: 40px; padding: 0; } }

/* Collapsed sidebar tooltips */
@media (min-width: 992px) {
  html.sb-collapsed .nav-item[data-tip]:hover::after,
  html.sb-collapsed .nav-item[data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%);
    padding: 6px 10px; border-radius: 8px; white-space: nowrap; font-size: 12.5px; font-weight: 600;
    background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow); z-index: 20; pointer-events: none;
    animation: fadeIn .15s ease both;
  }
  html.sb-collapsed .sidebar-scroll { overflow: visible; }
  html.sb-collapsed .sidebar .nav-item .badge { display: inline-flex !important; position: absolute; top: 4px; right: 10px; min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; }
}
html.sb-open, html.sb-open body { overflow: hidden; }

/* Smooth scroll with offset for sticky header */
html { scroll-padding-top: calc(var(--topbar-h) + 16px); }

/* ---- 25.3 Chips / pills: scroll hints + arrows ---- */
.chips-wrap { position: relative; }
.chips { -webkit-mask-image: none; mask-image: none; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.chips.can-right { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.chips.can-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.chips.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.chips-arrow { position: absolute; top: 0; height: 36px; width: 32px; display: none; place-items: center; z-index: 3; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; box-shadow: var(--shadow); font-size: 12px; }
.chips-arrow:hover { color: var(--text); border-color: var(--accent); }
.chips-arrow.prev { left: -4px; } .chips-arrow.next { right: -4px; }
@media (hover: hover) and (min-width: 768px) {
  .chips-wrap.can-left .chips-arrow.prev, .chips-wrap.can-right .chips-arrow.next { display: grid; }
}
.chip.active .chip-count { color: var(--fg-accent); }
.chip i { font-size: 13px; width: 14px; text-align: center; }

/* ---- 25.4 New order ---- */
.step-label { display: flex; align-items: center; gap: 8px; }
.step-no { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: var(--accent-soft); color: var(--fg-accent); font-size: 11px; font-weight: 800; font-family: var(--mono); flex: 0 0 auto; }
.fields-divider { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; color: var(--text-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.fields-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.search-box .search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: none; place-items: center; border: 0; border-radius: 8px; background: var(--surface-3); color: var(--text-2); cursor: pointer; font-size: 13px; z-index: 3; }
.search-box .search-clear:hover { color: var(--text); background: var(--accent-soft); }
.search-box.has-value .search-clear { display: grid; }
.search-box.has-value .kbd { display: none; }
.search-box.has-value .form-control { padding-right: 46px; }
.picker-search .search-results { max-height: min(460px, 60vh); }
.picker-search .p-group { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -6px; z-index: 2; background: var(--glass-strong); backdrop-filter: blur(12px); margin: -6px -6px 4px; padding: 10px 16px 8px; border-bottom: 1px solid var(--border); }
.picker-search .p-group kbd { font-family: var(--mono); font-size: 10px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--border-strong); color: var(--text-3); text-transform: none; letter-spacing: 0; background: transparent; }
.p-opt .po-price { padding: 4px 8px; border-radius: 8px; background: var(--surface-3); font-size: 12px; }
.p-opt.active .po-price { background: rgba(99, 102, 241, .22); }
.p-opt .po-sub i { margin-right: 3px; }
.picker-btn .po-id { font-family: var(--mono); font-size: 12px; color: var(--fg-accent); padding: 4px 8px; border-radius: 8px; background: var(--accent-soft); flex: 0 0 auto; font-weight: 700; }
.picker-btn .pb-sub .pb-rate { color: var(--text); font-weight: 700; font-family: var(--mono); }
.picker-btn .pb-title { line-height: 1.4; }
@media (max-width: 575px) {
  .picker-btn { min-height: 60px; }
  .picker-btn .pb-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; }
  .picker-pop { position: fixed; left: 10px; right: 10px; top: auto; bottom: 10px; max-height: 78vh; display: none; flex-direction: column; z-index: 1600; border-radius: 20px; }
  .picker.open .picker-pop { display: flex; animation: sheetUp .25s var(--ease) both; }
  .picker-pop .picker-list { max-height: none; flex: 1; }
  .picker.open::before { content: ""; position: fixed; inset: 0; z-index: 1590; background: rgba(5, 6, 10, .55); backdrop-filter: blur(3px); animation: fadeIn .2s both; }
  .picker-search .search-results { position: fixed; left: 10px; right: 10px; top: auto; bottom: 10px; max-height: 70vh; z-index: 1600; border-radius: 20px; }
  .picker-search.open::before { content: ""; position: fixed; inset: 0; z-index: 1590; background: rgba(5, 6, 10, .55); backdrop-filter: blur(3px); }
  .picker-search.open > input { position: relative; z-index: 1601; }
  .picker-search.open > i, .picker-search.open .search-clear { z-index: 1602; }
}
@keyframes sheetUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
#fields .form-group.fields:not(.hidden) { animation: fadeUp .28s var(--ease) both; }
#fields .help-block.min-max { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 3px 9px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-family: var(--mono); }
#fields .row > [class*="col-"] .help-block.min-max { margin-bottom: 4px; }
#fields #order_min .row > [class*="col-"]:first-child { display: flex; flex-direction: column; }
#fields #order_min .row { row-gap: 10px; }
@media (min-width: 576px) { #fields #order_min .row > [class*="col-"], #fields #order_delay .row > [class*="col-"] { width: 50%; } }
#fields #order_min .row { align-items: flex-start; }
#fields textarea.form-control { min-height: 130px; font-size: 13.5px; line-height: 1.6; }
#fields .checkbox { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
#fields label .fa-exclamation-circle, #fields label .fa-circle-exclamation { color: var(--text-3); cursor: help; margin-left: 4px; }
#fields input[readonly]:not(#charge), #fields input[disabled] { background: var(--surface-2); }
.charge-box { padding: 16px 18px; background: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(139, 92, 246, .08)); border-style: solid; border-color: rgba(99, 102, 241, .35); }
.charge-box label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.charge-box label i { color: var(--fg-accent); }
.charge-box #charge { font-size: 24px; letter-spacing: -.02em; transition: color .2s; }
.charge-box.is-zero #charge { color: var(--text-3) !important; }
.order-card .checkbox label { line-height: 1.5; align-items: flex-start; }
.order-card .checkbox input { margin-top: 2px; flex: 0 0 auto; }
.info-card { overflow: hidden; }
.info-card .info-name { font-size: 15px; }
#service_description { max-height: 360px; white-space: normal; overscroll-behavior: contain; }
#service_description .panel-body { padding: 0; }
#service_description a { text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
#svc-info-body .plat-ico { width: 40px; height: 40px; }
.info-stat .is-value { font-size: 14px; }
.info-stat.is-accent { background: var(--accent-soft); border-color: rgba(99, 102, 241, .3); }
.info-stat.is-accent .is-value { color: var(--text); }
.info-badges:empty { display: none; }
.kpi[title] { cursor: default; }
.kpi .kpi-value small { font-size: .62em; color: var(--text-3); font-weight: 700; margin-left: 3px; }
.sticky-col { align-self: start; } .sticky-col.no-stick { position: static; }

/* ---- 25.5 Services page ---- */
.svc-cat-head { position: sticky; top: var(--topbar-h); z-index: 5; }
.is-guest .svc-cat-head { top: 92px; }
.svc-cat { overflow: visible; }
.svc-cat > .svc-cat-head { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.svc-cat.collapsed > .svc-cat-head { border-radius: var(--radius-lg); border-bottom-color: transparent; }
.svc-cat-body { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.td-id.copyable { cursor: pointer; }
.td-id.copyable:hover { color: var(--fg-accent); }
.td-id.copyable::after { content: "\f0c5"; font-family: "Font Awesome 6 Free"; font-weight: 400; margin-left: 6px; font-size: 11px; opacity: 0; transition: opacity .15s; }
.td-id.copyable:hover::after { opacity: .8; }
.svc-desc-row td { padding: 16px 18px !important; }
.svc-desc-row .sd-inner { max-width: 820px; }
@media (max-width: 767px) {
  .svc-cat-body { overflow: visible; }
  .svc-cat-body .table, .svc-cat-body .table tbody { display: block; }
  .svc-cat-body .table thead { display: none; }
  .svc-cat-body .table tr[data-svc-row] {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "fav id act" "name name name" "rate mm mm" "time time time";
    gap: 6px 10px; padding: 14px 16px; border-top: 1px solid var(--border); align-items: center;
  }
  .svc-cat-body .table tr[data-svc-row]:first-child { border-top: 0; }
  .svc-cat-body .table tr[data-svc-row] > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; min-width: 0; }
  .svc-cat-body .table tr[data-svc-row] > td:empty { display: none; }
  .svc-cat-body tr[data-svc-row] .td-fav { grid-area: fav; }
  .svc-cat-body tr[data-svc-row] .td-id { grid-area: id; justify-self: start; padding: 3px 8px !important; border-radius: 7px; background: var(--surface-3) !important; }
  .svc-cat-body tr[data-svc-row] .svc-name { grid-area: name; min-width: 0; font-size: 13.5px; }
  .svc-cat-body tr[data-svc-row] .td-money { grid-area: rate; font-size: 15px; }
  .svc-cat-body tr[data-svc-row] .td-mm { grid-area: mm; justify-self: end; text-align: right; }
  .svc-cat-body tr[data-svc-row] .td-time { grid-area: time; color: var(--text-3) !important; }
  .svc-cat-body tr[data-svc-row] .td-time:not(:empty)::before { content: "\f017"; font-family: "Font Awesome 6 Free"; font-weight: 400; margin-right: 6px; }
  .svc-cat-body tr[data-svc-row] .td-act { grid-area: act; justify-self: end; display: flex !important; gap: 6px; }
  .svc-cat-body tr[data-svc-row]:not(:has(.td-fav)) { grid-template-areas: "id id act" "name name name" "rate mm mm" "time time time"; }
  .svc-cat-body .table tr.svc-desc-row { display: block; }
  .svc-cat-body .table tr.svc-desc-row.hidden { display: none; }
  .svc-cat-body .table tr.svc-desc-row td { display: block; }
  .svc-cat-body .table > tbody > tr:hover > td { background: transparent; }
  .svc-cat-head { padding: 12px 14px; }
  .svc-cat-head h3 { font-size: 13.5px; }
  .toolbar #svc-cat-filter { flex: 1 1 100% !important; }
}

/* ---- 25.6 Tables: scroll shadows ---- */
.table-scroll {
  background:
    linear-gradient(90deg, var(--surface) 30%, transparent) left center / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--surface) 30%, transparent) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .35), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .35), transparent) right center / 14px 100% no-repeat scroll,
    var(--surface);
}
html.light .table-scroll {
  background:
    linear-gradient(90deg, var(--surface) 30%, transparent) left center / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--surface) 30%, transparent) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, .14), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, .14), transparent) right center / 14px 100% no-repeat scroll,
    var(--surface);
}
.table-scroll .table > tbody > tr > td { background-clip: padding-box; }

/* ---- 25.7 Mass order ---- */
.mo-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.mo-meta .mo-count b { color: var(--text); font-family: var(--mono); }
.mo-meta .mo-bad { color: var(--fg-warning); }
#links { line-height: 1.75; tab-size: 4; }

/* ---- 25.8 Orders ---- */
.lc-id { transition: background .15s, color .15s; }
.lc-id:hover { background: var(--accent-soft); color: var(--text); }
.lc-meta .lc-link { color: var(--text-2); }
.lc-meta .lc-link:hover { color: var(--fg-accent); }
.lc-meta i { opacity: .7; margin-right: 2px; }

/* ---- 25.9 Mobile shell ---- */
@media (max-width: 991px) {
  .content { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .app-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .bottom-nav { bottom: calc(10px + env(safe-area-inset-bottom)); padding-bottom: 0; }
  .toast-stack { bottom: calc(92px + env(safe-area-inset-bottom)); left: 12px; right: 12px; align-items: center; }
  .toast { max-width: 100%; width: 100%; }
  .sidebar { width: min(86vw, 320px); }
  .sidebar-scroll { overscroll-behavior: contain; }
  .topbar-title h1 { font-size: 16px; }
  .dd-menu { max-width: calc(100vw - 24px); }
}
@media (max-width: 480px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .card { padding: 16px; border-radius: 18px; }
  .card-pad-lg { padding: 18px; }
  .page-head { margin-bottom: 16px; }
  .page-head .btn { height: 40px; padding: 0 14px; font-size: 13px; }
  .split { gap: 14px; }
  .btn-lg { height: 50px; }
  .chip { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .topbar .tb-btn { height: 38px; min-width: 38px; }
  .topbar .tb-btn.icon-only { width: 38px; }
  .bottom-nav a { font-size: 10px; }
}
.bottom-nav a { position: relative; transition: color .2s; }
.bottom-nav a.active::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-accent); }
.bottom-nav a.bn-cta.active::after { display: none; }

/* ---- 25.10 Misc ---- */
.faq-item .faq-body { animation: fadeUp .3s var(--ease) both; }
.faq-item summary:hover { color: var(--fg-accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.pagination > li > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pagination > .disabled > a, .pagination > .disabled > span { opacity: .45; pointer-events: none; }
.pager { display: flex; justify-content: center; }
.empty p { color: var(--text-3); }
::placeholder { color: var(--text-3); }
.alert { color: var(--text); }
.alert strong { color: var(--text); }
html.light .alert .close:hover { background: rgba(15, 23, 42, .06); }
.well { background: var(--surface); }
.well a { text-decoration: underline; text-underline-offset: 3px; }
hr { border-top-color: var(--border); }
img[src=""] { display: none; }
a.kpi { color: var(--text) !important; text-decoration: none; }
a.kpi:hover { border-color: rgba(99, 102, 241, .45); }
a.kpi:hover .kpi-ico { transform: scale(1.06); }
.kpi-ico { transition: transform .25s var(--ease); }
.plat-ico.p-bluesky { background: #0085ff; color: #fff; }
.plat-ico.p-deezer { background: linear-gradient(135deg, #a238ff, #ff0092); color: #fff; }
.plat-ico.p-quora { background: #b92b27; color: #fff; }
.plat-ico.p-medium { background: #111; color: #fff; }
.plat-ico.p-vk { background: #0077ff; color: #fff; }
.plat-ico.p-likee { background: linear-gradient(135deg, #ff3c6e, #ff9a3c); color: #fff; }
.plat-ico.p-clubhouse { background: #f1efe3; color: #111; }
.plat-ico.p-github { background: #24292f; color: #fff; }
.plat-ico.p-behance { background: #1769ff; color: #fff; }
.plat-ico.p-podcast { background: #8b5cf6; color: #fff; }
.plat-ico.p-website { background: linear-gradient(135deg, #06b6d4, #6366f1); color: #fff; }
.plat-ico.p-other { background: var(--surface-3); color: var(--text-2); }
.topbar-title .crumb a:hover { color: var(--text) !important; }
.quick-amounts button { transition: all .18s var(--ease); }
.quick-amounts button.active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px var(--accent-ring); }
/* Mobile home: put the sign-in card right under the headline */
@media (max-width: 991px) {
  .hero-grid { gap: 18px; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { order: 1; justify-self: start; margin-bottom: 0; }
  .hero-copy > h1 { order: 2; margin-bottom: 0; font-size: clamp(30px, 8.4vw, 44px); }
  .hero-grid > .auth-card { order: 3; }
  .hero-copy > .lead { order: 4; margin-bottom: 0; font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-copy > .hero-cta { order: 5; margin-bottom: 0; }
  .hero-copy > .hero-stats { order: 6; }
  .auth-card { padding: 22px 18px; }
}
@media (max-width: 480px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { gap: 16px 22px; }
  .hero-stats .hs-value { font-size: 22px; }
}
/* Account key box never overflows */
.key-box { min-width: 0; max-width: 100%; }
@media (max-width: 575px) { .key-box { flex-basis: 100% !important; } .profile-card .avatar-lg { width: 52px; height: 52px; font-size: 22px; } }
.page-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
@media (max-width: 767px) { .page-head h1 { font-size: 20px; } }
.auth-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.02em; }

/* Mobile sheets must escape the content stacking context (above bottom nav) */
@media (max-width: 575px) {
  .content:has(.picker.open), .content:has(.picker-search.open) { z-index: 1600; transform: none; animation: none; }
  html:has(.picker.open) body, html:has(.picker-search.open) body { overflow: hidden; }
  .picker-pop, .picker-search .search-results { bottom: calc(10px + env(safe-area-inset-bottom)); }
}

#charge::placeholder { color: var(--text-3); opacity: .8; }

@media (max-width: 575px) {
  .search-slot { display: flow-root; min-height: 64px; }
  .picker-search.open { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; z-index: 1610; }
  .picker-search.open .form-control { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
  .picker-search.open .search-results { top: calc(70px + env(safe-area-inset-top)); max-height: none; }
}

/* ===== 26. Real-data polish (naokus audit) ===== */
.d-block { display: block !important; }
.split > * { min-width: 0; }
.ticket-item { min-width: 0; }
.ticket-item .ti-main { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.ticket-item .ti-subject { display: block; }
.ticket-item .ti-date { font-variant-numeric: tabular-nums; }
.ticket-item .pill { flex: 0 0 auto; }
.ticket-item .lc-id { flex: 0 0 auto; }
.lc-sid { color: var(--text-3); }
.lc-gone { color: var(--text-3); font-weight: 500; font-style: italic; }
.lc-id { justify-self: start; align-self: start; }
@media (min-width: 768px) { .lc-id { align-self: center; } }
.list-more { margin-top: 12px; }
.list-more i { font-size: 11px; margin-right: 4px; }
.status-tabs.can-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.status-tabs.can-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.status-tabs.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.toolbar .status-tabs { min-width: 0; }
@media (max-width: 767px) {
  .toolbar > .search-box, .toolbar > form.search-box { flex: 1 1 100% !important; }
  .toolbar .status-tabs.grow { flex: 1 1 100%; }
  .ticket-item { gap: 10px; padding: 12px 14px; }
  .ticket-item .lc-id { font-size: 11px; padding: 5px 7px; }
}
select.form-control { text-overflow: ellipsis; }
/* services table: fit wide currencies + favourites column without horizontal scroll */
@media (min-width: 768px) {
  .svc-name { min-width: 200px; }
  .svc-cat-body .td-time { white-space: normal; min-width: 84px; max-width: 120px; line-height: 1.35; }
  .svc-cat-body .td-money { white-space: nowrap; }
  .svc-cat-body .table > thead > tr > th, .svc-cat-body .table > tbody > tr > td { padding-left: 12px; padding-right: 12px; }
}

/* ===== 27. Drip-feed ===== */
.df-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.df-stat { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.df-stat .df-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.df-stat .df-label i { font-size: 10px; color: var(--fg-accent); }
.df-stat > b { display: block; margin-top: 3px; font-size: 15px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.df-stat > b a { color: var(--fg-accent); }
.df-stat .df-of { color: var(--text-3); font-weight: 600; }
.df-stat .progress-bar-wrap { height: 6px; margin: 8px 0 0; }
.df-total { background: var(--accent-soft); border-color: rgba(99, 102, 241, .28); }
@media (max-width: 767px) { .df-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .df-stat > b { font-size: 14px; } }

/* new order: drip-feed fields */
#dripfeed #order_check:not(.hidden) { padding: 14px 16px; margin-bottom: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
#dripfeed #order_check:has(input#field-orderform-fields-check:checked) { border-color: rgba(99, 102, 241, .5); box-shadow: 0 0 0 3px var(--accent-ring); }
#dripfeed .form-group__checkbox { display: flex; align-items: center; gap: 12px; margin: 0; }
#dripfeed .form-group__checkbox-label { display: inline-flex; margin: 0; cursor: pointer; }
#dripfeed .form-group__checkbox .checkmark { display: none; }
#dripfeed .form-group__label-title { margin: 0; font-weight: 700; color: var(--text); cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 8px; }
#dripfeed .form-group__label-title::before { content: "\f043"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; color: var(--fg-accent); }
#dripfeed .depend-fields:not(.hidden) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); animation: fadeUp .25s var(--ease) both; }
#dripfeed .depend-fields .form-group { margin: 0; min-width: 0; }
#dripfeed .depend-fields .control-label { font-size: 12px; }
#dripfeed #field-orderform-fields-total-quantity { font-family: var(--mono); font-weight: 700; background: var(--accent-soft); border-color: rgba(99, 102, 241, .28); color: var(--text); cursor: default; }
@media (max-width: 575px) { #dripfeed .depend-fields:not(.hidden) { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* live-test fixes: long charge values (tiny rates) and empty description */
.charge-box #charge { flex: 1 1 0; min-width: 0; max-width: none; width: 100%; text-overflow: ellipsis; }
.charge-box label { flex: 0 0 auto; }
.charge-box #charge.is-long { font-size: 20px; }
.charge-box #charge.is-xlong { font-size: 16px; }
@media (max-width: 575px) { .charge-box #charge { font-size: 20px; } .charge-box #charge.is-long { font-size: 17px; } .charge-box #charge.is-xlong { font-size: 14px; } }
.info-desc-title:has(+ #service_description.hidden) { display: none; }

/* =====================================================================
   28. v5 "Obsidian Pro" — command palette, favorites, quick strip,
       quantity chips, link helper, services feature chips, API tabs,
       guest trust strip / platform pills, auth benefits
   ===================================================================== */
.cmdk-btn { gap: 8px; }
.cmdk-btn svg { flex: 0 0 auto; }
.cmdk-btn kbd { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 6px; line-height: 1.5; background: transparent; box-shadow: none; }
.cmdk { position: fixed; inset: 0; z-index: 1300; display: none; }
.cmdk.open { display: block; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: cmdkFade .16s var(--ease); }
html.light .cmdk-backdrop { background: rgba(20, 22, 40, .35); }
.cmdk-panel { position: relative; width: min(640px, calc(100vw - 24px)); margin: 10vh auto 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: min(620px, 78vh); animation: cmdkIn .18s var(--ease); }
.cmdk-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-3); }
.cmdk-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 500 16px/1.4 var(--font); padding: 4px 0; }
.cmdk-input::placeholder { color: var(--text-3); }
.cmdk-head kbd, .cmdk-foot kbd { font-family: var(--mono); font-size: 10.5px; color: var(--text-2); border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 6px; background: var(--surface-2); box-shadow: none; margin: 0 2px; }
.cmdk-list { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.cmdk-group { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 10px 10px 6px; }
.cmdk-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; min-height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); text-align: start; cursor: pointer; font: inherit; }
.cmdk-item.kb { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.cmdk-item .ci-ico { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--fg-accent); font-size: 13px; }
.cmdk-item .ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cmdk-item .ci-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .ci-id { color: var(--fg-accent); font-size: 12.5px; }
.cmdk-item .ci-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .ci-rate { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.cmdk-item .ci-fav { color: var(--warning); display: inline-flex; }
.cmdk-item .ci-go { color: var(--text-3); font-size: 11px; transform: scaleX(-1) rotate(90deg); opacity: 0; }
[dir="rtl"] .cmdk-item .ci-go { transform: rotate(90deg); }
.cmdk-item.kb .ci-go { opacity: 1; }
.cmdk-empty { padding: 26px 16px; text-align: center; color: var(--text-3); font-size: 13.5px; line-height: 1.6; }
.cmdk-empty b { color: var(--text-2); }
.cmdk-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes cmdkFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 575px) { .cmdk-panel { margin-top: 12px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); } .cmdk-foot { display: none; } }

/* favorites */
.fav-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); cursor: pointer; transition: color .15s, background .15s, transform .15s; margin-inline-start: auto; margin-inline-end: 8px; }
.fav-toggle:hover { color: var(--warning); transform: scale(1.06); }
.fav-toggle.on { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.fav-toggle svg path, .svc-star svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav-toggle.on svg path, .svc-star.on svg path { fill: currentColor; }
.svc-star { color: var(--text-3); padding-inline: 7px; }
.svc-star:hover, .svc-star.on { color: var(--warning); }
.quick-strip { margin: -4px 0 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.quick-strip .qs-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); padding: 2px 2px; }
.quick-strip .qs-hint svg { color: var(--warning); flex: 0 0 auto; }
.qs-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.qs-tab { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--font); color: var(--text-2); background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 7px 11px; cursor: pointer; min-height: 32px; }
.qs-tab svg { color: var(--warning); }
.qs-tab.active { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.qs-chip { max-width: 260px; }
.qs-chip .mono { color: var(--fg-accent); font-size: 12px; }
.qs-chip .qs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.qty-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qty-chip { font: 600 12.5px/1 var(--mono); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; min-height: 34px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.qty-chip:hover { border-color: var(--accent-ring); color: var(--text); }
.qty-chip.active { background: var(--accent-soft); border-color: var(--accent-ring); color: var(--fg-accent); }
.link-hint { margin-top: 7px; font-size: 12.5px; color: var(--fg-warning); display: flex; gap: 7px; align-items: flex-start; line-height: 1.45; }
.link-hint i { margin-top: 2px; }
.feat-chips { margin-top: -4px; }

/* API code tabs */
.code-tabs .card-head { flex-wrap: wrap; gap: 10px; }
.ct-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.ct-tab { font: 600 12.5px/1 var(--font); color: var(--text-2); background: transparent; border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; min-height: 32px; }
.ct-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.code-tabs .code-block { margin: 0; }
.code-tabs pre { max-height: 420px; }

/* guest: platform pills + trust strip */
.section-tight { padding-top: 34px; padding-bottom: 10px; }
.plat-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.plat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .15s, border-color .15s, background .15s; }
.plat-pill:hover { transform: translateY(-2px); border-color: var(--accent-ring); color: var(--text); text-decoration: none; }
.plat-pill i { font-size: 16px; color: var(--fg-accent); }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.ts-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.ts-item i { color: var(--fg-success); }

/* auth pages: benefits column */
.auth-split { gap: 28px; align-items: center; flex-wrap: wrap; }
.auth-benefits { flex: 0 1 320px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--glass); }
.auth-benefits h2 { font-size: 18px; margin: 0 0 14px; }
.auth-benefits ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.auth-benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.auth-benefits li i { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--fg-accent); font-size: 12px; }
@media (max-width: 991px) { .auth-split { flex-direction: column; } .auth-benefits { flex-basis: auto; width: 100%; max-width: 560px; } }
