/**
 * Admin + user panel — army green glass (matches main site)
 * Loaded from panel HTML (admin, dashboard, login, auth)
 *
 * Canvas #0C0F0A  Surface #161914  Elevated #2A2C26
 * Border  #3C3D37  Text #ECDFCC    Muted #A8B09A
 * Accent  #4A5C3A / #8A9A78
 */

html.panel-theme {
    --bg-oled: #080a07;
    --bg-surface: #161914;
    --bg-surface-elevated: #2a2c26;

    --glass-fill: rgba(22, 25, 20, 0.88);
    --glass-fill-hover: rgba(42, 44, 38, 0.96);
    --glass-border: #3c3d37;
    --glass-border-hover: rgba(138, 154, 120, 0.45);
    --glass-inner-light: inset 0 1px 0 rgba(236, 223, 204, 0.04);

    --neon-blue: #8a9a78;
    --neon-cyan: #c5c9a4;
    --neon-violet: #a8b09a;
    --neon-purple: #a8b09a;
    --neon-teal: #c5c9a4;
    --neon-emerald: #3fb950;

    --text-main: #ecdfcc;
    --text-muted: #a8b09a;
    --text-dim: #697565;
    --text-light: #ecdfcc;

    --gradient-cyan-teal: linear-gradient(135deg, #6b7f4a 0%, #4a5c3a 100%);
    --gradient-purple-violet: linear-gradient(135deg, #3c3d37 0%, #2a2c26 100%);
    --gradient-btn-primary: linear-gradient(180deg, #6b7f4a 0%, #4a5c3a 100%);
    --gradient-accent: linear-gradient(180deg, #6b7f4a 0%, #4a5c3a 100%);

    --primary-cyan: #8a9a78;
    --accent-gold: #d4a72c;
    --accent-green: #3fb950;

    --admin-accent: #8a9a78;
    --admin-accent-strong: #c5c9a4;
    --admin-accent-soft: rgba(107, 127, 74, 0.14);
    --admin-accent-border: rgba(107, 127, 74, 0.4);
    --admin-shadow: 0 8px 24px rgba(6, 8, 5, 0.42);
    --admin-focus: 0 0 0 3px rgba(107, 127, 74, 0.28);

    color-scheme: dark;
}

html.panel-theme,
html.panel-theme body {
    background-color: #080a07;
    color: #ecdfcc;
}

html.panel-theme ::selection {
    background: rgba(107, 127, 74, 0.32);
    color: #ecdfcc;
}

/* Caret only in real writing fields — menus/labels must not show a text cursor */
html.panel-theme,
html.site-theme-preview {
    caret-color: transparent;
}
html.panel-theme input,
html.panel-theme textarea,
html.panel-theme [contenteditable="true"],
html.panel-theme [contenteditable=""],
html.site-theme-preview input,
html.site-theme-preview textarea,
html.site-theme-preview [contenteditable="true"],
html.site-theme-preview [contenteditable=""] {
    caret-color: #ecdfcc;
}

html.panel-theme .sidebar-link,
html.panel-theme .sidebar-menu,
html.panel-theme .panel-menu-toggle,
html.panel-theme .panel-title,
html.panel-theme .metric-stat,
html.panel-theme .btn,
html.panel-theme button,
html.panel-theme .tab-btn,
html.panel-theme .nav-link,
html.site-theme-preview .navbar,
html.site-theme-preview .nav-link,
html.site-theme-preview .btn,
html.site-theme-preview button {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Hide scrollbars site-wide (main + user panel + admin). Scrolling still works. */
html.panel-theme,
html.site-theme-preview,
html.panel-theme *,
html.site-theme-preview * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
html.panel-theme ::-webkit-scrollbar,
html.site-theme-preview ::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}

/* ---- Ambient: mymt-style square grid, army-green tint ---- */
html.panel-theme .ambient-background {
    background: #080a07;
}
html.panel-theme .ambient-background::before {
    z-index: 8;
    background-color: transparent;
    background-image:
        linear-gradient(rgba(236, 223, 204, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 223, 204, 0.07) 1px, transparent 1px);
    background-size: 72px 72px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: blur(8px);
    -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
    mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
}
html.panel-theme .ambient-background::after {
    opacity: 0.06;
}
html.panel-theme .ambient-orb,
html.panel-theme .orb-blue,
html.panel-theme .orb-violet,
html.panel-theme .orb-teal {
    filter: blur(280px);
}
html.panel-theme .orb-blue {
    background: radial-gradient(circle, rgba(107, 127, 74, 0.16) 0%, transparent 72%);
    opacity: 0.28;
}
html.panel-theme .orb-violet {
    background: radial-gradient(circle, rgba(60, 61, 55, 0.2) 0%, transparent 72%);
    opacity: 0.22;
}
html.panel-theme .orb-teal {
    background: radial-gradient(circle, rgba(107, 127, 74, 0.12) 0%, transparent 72%);
    opacity: 0.2;
}
html.panel-theme .ambient-grid {
    opacity: 0;
}

/* ---- Sidebar / navbar ---- */
html.panel-theme .panel-sidebar {
    background: rgba(12, 15, 10, 0.94);
    border-left: 1px solid #3c3d37;
    box-shadow: none;
}
html.panel-theme .panel-navbar {
    background: rgba(12, 15, 10, 0.9);
    border-bottom: 1px solid #3c3d37;
    box-shadow: none;
}
html.panel-theme .sidebar-header,
html.panel-theme .sidebar-user {
    border-color: #3c3d37;
    background: #161914;
}
html.panel-theme .sidebar-link {
    border: 1px solid transparent;
    box-shadow: none;
}
html.panel-theme .sidebar-link:hover {
    background: #2a2c26;
    color: #ecdfcc;
    border-color: #3c3d37;
    box-shadow: none;
}
html.panel-theme .sidebar-link.active {
    background: var(--admin-accent-soft);
    color: #c5c9a4;
    border-color: var(--admin-accent-border);
    box-shadow: none;
    border-right: 3px solid #8a9a78;
}

/* User panel menu: flat khaki glyphs (same as main-page bento icons) */
html.panel-theme .sidebar-link .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    line-height: 0;
}
html.panel-theme .sidebar-link .icon svg {
    width: 20px;
    height: 20px;
    display: block;
    overflow: visible;
}
html.panel-theme .sidebar-link .icon svg .ei-ink { fill: #8a9a78; }
html.panel-theme .sidebar-link .icon svg .ei-soft { fill: rgba(107, 127, 74, 0.38); }
html.panel-theme .sidebar-link .icon svg .ei-line {
    fill: none;
    stroke: #8a9a78;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
html.panel-theme .sidebar-link.active .icon svg .ei-ink { fill: #c5c9a4; }
html.panel-theme .sidebar-link.active .icon svg .ei-soft { fill: rgba(197, 201, 164, 0.34); }
html.panel-theme .sidebar-link.active .icon svg .ei-line { stroke: #c5c9a4; }
html.panel-theme .user-avatar {
    background: var(--gradient-accent);
    color: #0c0f0a;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
html.panel-theme .user-avatar svg {
    width: 18px;
    height: 18px;
    display: block;
}
html.panel-theme .user-avatar svg .ei-ink { fill: #0c0f0a; }
html.panel-theme .user-avatar svg .ei-soft { fill: rgba(12, 15, 10, 0.28); }
html.panel-theme .logo-badge {
    box-shadow: none;
    border: 1px solid #3c3d37;
    background: #161914;
}

/* ---- Cards: solid surfaces, quiet borders, no lift/glow ---- */
html.panel-theme .glass-card,
html.panel-theme .panel-card,
html.panel-theme .stat-card,
html.panel-theme .metric-card {
    background: #161914;
    border: 1px solid #3c3d37;
    box-shadow: var(--glass-inner-light);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
html.panel-theme .glass-card:hover,
html.panel-theme .panel-card:hover,
html.panel-theme .stat-card:hover,
html.panel-theme .metric-card:hover {
    background: #1e211c;
    border-color: #4a4d44;
    box-shadow: var(--glass-inner-light);
    transform: none;
}
html.panel-theme .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(236, 223, 204, 0.08), transparent);
}

/* ---- Buttons ---- */
html.panel-theme .btn-primary,
html.panel-theme .btn.btn-primary {
    background: #4a5c3a;
    color: #ecdfcc;
    border: 1px solid #6b7f4a;
    box-shadow: none;
    filter: none;
}
html.panel-theme .btn-primary:hover,
html.panel-theme .btn.btn-primary:hover {
    background: #6b7f4a;
    color: #ecdfcc;
    border-color: #c5c9a4;
    box-shadow: none;
    transform: none;
    filter: none;
}
html.panel-theme .btn-secondary {
    background: #2a2c26;
    color: #ecdfcc;
    border: 1px solid #3c3d37;
    box-shadow: none;
}
html.panel-theme .btn-secondary:hover {
    background: #3c3d37;
    border-color: #5a5e54;
    color: #ecdfcc;
    box-shadow: none;
}

/* ---- Inputs / tables ---- */
html.panel-theme .search-input,
html.panel-theme .form-input,
html.panel-theme textarea.form-input,
html.panel-theme select.form-input,
html.panel-theme input[type="text"],
html.panel-theme input[type="number"],
html.panel-theme input[type="email"],
html.panel-theme input[type="password"] {
    background: #0c0f0a;
    border: 1px solid #3c3d37;
    color: #ecdfcc;
    box-shadow: none;
}
html.panel-theme .search-input:focus,
html.panel-theme .form-input:focus,
html.panel-theme textarea.form-input:focus,
html.panel-theme select.form-input:focus,
html.panel-theme input:focus,
html.panel-theme textarea:focus,
html.panel-theme select:focus {
    border-color: #8a9a78;
    outline: none;
    box-shadow: var(--admin-focus);
}
html.panel-theme .data-table th {
    color: #ecdfcc;
    background: #0c0f0a;
    border-bottom: 1px solid #3c3d37;
}
html.panel-theme .data-table td {
    border-bottom-color: #2a2c26;
}
html.panel-theme .data-table tr:hover td {
    background: rgba(107, 127, 74, 0.06);
}

/* ---- Status chips: semantic, muted, matching borders ---- */
html.panel-theme .ticket-status-replied {
    background: var(--admin-accent-soft);
    color: #c5c9a4;
    border: 1px solid var(--admin-accent-border);
    box-shadow: none;
}
html.panel-theme .invoice-status-paid,
html.panel-theme .os-active,
html.panel-theme .alert-ok {
    background: rgba(63, 185, 80, 0.12);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.35);
    box-shadow: none;
}
html.panel-theme .os-pending {
    background: rgba(210, 153, 34, 0.12);
    color: #d29922;
    border: 1px solid rgba(210, 153, 34, 0.35);
    box-shadow: none;
}

/* ---- Wallet / highlight panels ---- */
html.panel-theme .wallet-hero {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(107, 127, 74, 0.12), transparent 55%),
        #161914;
    border-color: #3c3d37;
    box-shadow: none;
}

/* ---- Modals ---- */
html.panel-theme .modal-backdrop {
    background: rgba(6, 8, 5, 0.72);
}
html.panel-theme .modal-content,
html.panel-theme .glass-modal {
    background: #161914;
    border: 1px solid #3c3d37;
    box-shadow: var(--admin-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
html.panel-theme .modal-close {
    background: #2a2c26;
    border-color: #3c3d37;
    color: #a8b09a;
}
html.panel-theme .modal-close:hover {
    background: #3c3d37;
    color: #ecdfcc;
    border-color: #5a5e54;
}

html.panel-theme .panel-title,
html.panel-theme .section-title,
html.panel-theme .modal-title,
html.panel-theme code {
    color: #ecdfcc;
}

html.panel-theme a:not(.btn):not(.sidebar-link) {
    color: #c5c9a4;
}
html.panel-theme a:not(.btn):not(.sidebar-link):hover {
    color: #ecdfcc;
}

html.panel-theme .text-gradient {
    background: none;
    -webkit-text-fill-color: #c5c9a4;
    color: #c5c9a4;
    animation: none;
}

/* ---- Kill leftover neon cyan borders / glows from panel.css ---- */
html.panel-theme .invoice-filter:hover,
html.panel-theme [class*="filter"]:hover {
    border-color: var(--admin-accent-border);
    background: var(--admin-accent-soft);
    box-shadow: none;
}

/* Common cyan-bordered chips / pills / tabs */
html.panel-theme .os-badge,
html.panel-theme .status-badge,
html.panel-theme .chip,
html.panel-theme .pill,
html.panel-theme .tag,
html.panel-theme .badge {
    box-shadow: none;
}

html.panel-theme .metric-val {
    color: #ecdfcc;
}
html.panel-theme .metric-label {
    color: #a8b09a;
}

/* Plan / selectable cards */
html.panel-theme .plan-card,
html.panel-theme .selectable,
html.panel-theme .os-card,
html.panel-theme .filter-chip,
html.panel-theme .invoice-filter {
    border-color: #3c3d37;
    box-shadow: none;
}
html.panel-theme .plan-card:hover,
html.panel-theme .selectable:hover,
html.panel-theme .os-card:hover,
html.panel-theme .filter-chip:hover {
    border-color: var(--admin-accent-border);
    background: var(--admin-accent-soft);
    box-shadow: none;
}
html.panel-theme .plan-card.active,
html.panel-theme .plan-card.selected,
html.panel-theme .selectable.active,
html.panel-theme .os-card.active,
html.panel-theme .filter-chip.active,
html.panel-theme .invoice-filter.active {
    border-color: var(--admin-accent-border);
    background: var(--admin-accent-soft);
    box-shadow: none;
}

html.panel-theme .metric-stat:hover .metric-val,
html.panel-theme .metric-stat:focus-visible .metric-val {
    color: #c5c9a4;
}
html.panel-theme .metric-stat:focus-visible {
    outline: 1px solid var(--admin-accent-border);
}

html.panel-theme .ticket-card {
    border-color: #3c3d37;
    box-shadow: none;
}
html.panel-theme .ticket-card:hover {
    border-color: var(--admin-accent-border);
    box-shadow: none;
}
html.panel-theme .ticket-id,
html.panel-theme .invoice-id,
html.panel-theme .ps-price,
html.panel-theme .plan-pick-price strong,
html.panel-theme .checkout-summary-monthly,
html.panel-theme .checkout-summary-row.total span:last-child {
    color: #c5c9a4;
}

html.panel-theme .ticket-related-box {
    background: var(--admin-accent-soft);
    border: 1px solid var(--admin-accent-border);
    box-shadow: none;
}
html.panel-theme .ticket-related-chip.server {
    border-color: var(--admin-accent-border);
    background: var(--admin-accent-soft);
}

html.panel-theme .ticket-chat-box {
    border-color: #3c3d37;
}
html.panel-theme .chat-bubble.user {
    background: var(--admin-accent-soft);
    border: 1px solid var(--admin-accent-border);
    box-shadow: none;
}

html.panel-theme .invoice-filter.active,
html.panel-theme .invoice-filter:hover {
    color: #ecdfcc;
    border-color: var(--admin-accent-border);
    background: var(--admin-accent-soft);
    box-shadow: none;
}

html.panel-theme .checkout-step-num,
html.panel-theme .plan-loc-chip {
    background: var(--admin-accent-soft);
    color: #c5c9a4;
    border: 1px solid var(--admin-accent-border);
    box-shadow: none;
}

html.panel-theme .plan-view-btn.active {
    background: var(--admin-accent-soft);
    color: #c5c9a4;
    box-shadow: none;
}
html.panel-theme .plan-sheet-head {
    background: rgba(107, 127, 74, 0.08);
    border-bottom: 1px solid var(--admin-accent-border);
}
html.panel-theme .plan-sheet-head .ps-sort-btn:hover {
    color: #c5c9a4;
    background: var(--admin-accent-soft);
}
html.panel-theme .plan-sheet-head .ps-sort-btn.is-sorted,
html.panel-theme .plan-sheet-head .ps-sort-ico.is-active {
    color: #c5c9a4;
}
html.panel-theme .plan-sheet-row.selected {
    background: var(--admin-accent-soft);
    box-shadow: inset 3px 0 0 #8a9a78;
}

html.panel-theme .plan-pick-card {
    border-color: #3c3d37;
    box-shadow: none;
}
html.panel-theme .plan-pick-card:hover {
    border-color: var(--admin-accent-border);
    transform: none;
    box-shadow: none;
}
html.panel-theme .plan-pick-card.selected {
    border-color: var(--admin-accent-border);
    background: var(--admin-accent-soft);
    box-shadow: 0 0 0 1px rgba(107, 127, 74, 0.22);
}

html.panel-theme #checkout-config-step.is-focused {
    border-color: var(--admin-accent-border);
    box-shadow: var(--admin-focus);
}
html.panel-theme .period-option.active,
html.panel-theme .pay-method-option.active {
    border-color: var(--admin-accent-border);
    background: var(--admin-accent-soft);
    box-shadow: none;
}
html.panel-theme .checkout-summary-plan {
    background: var(--admin-accent-soft);
    border: 1px solid var(--admin-accent-border);
    box-shadow: none;
}

html.panel-theme .checkout-step {
    background: #161914;
    border: 1px solid #3c3d37;
    box-shadow: none;
}

/* ---- Auth pages (login / reset / verify) ---- */
html.panel-theme body {
    background-color: #080a07;
}
html.panel-theme .auth-box,
html.panel-theme .auth-card,
html.panel-theme .auth-wrapper .glass-card {
    background: #161914;
    border: 1px solid #3c3d37;
    box-shadow: inset 0 1px 0 rgba(236, 223, 204, 0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
html.panel-theme .auth-box:hover,
html.panel-theme .auth-card:hover {
    transform: none;
    border-color: #4a4d44;
    box-shadow: inset 0 1px 0 rgba(236, 223, 204, 0.04);
}
html.panel-theme .auth-tab {
    background: #2a2c26;
    border: 1px solid #3c3d37;
    color: #a8b09a;
    box-shadow: none;
}
html.panel-theme .auth-tab.active {
    background: #4a5c3a;
    color: #ecdfcc;
    border-color: #6b7f4a;
    box-shadow: none;
}
html.panel-theme .auth-tab:hover:not(.active) {
    background: #3c3d37;
    color: #ecdfcc;
    border-color: #5a5e54;
}
html.panel-theme .form-input:focus {
    border-color: #8a9a78;
    box-shadow: 0 0 0 3px rgba(107, 127, 74, 0.28);
}
html.panel-theme .success-msg {
    color: #3fb950;
    background: rgba(63, 185, 80, 0.12);
    border: 1px solid rgba(63, 185, 80, 0.35);
}
html.panel-theme .brand-title span {
    color: #c5c9a4;
}
html.panel-theme .notif-bell .notif-badge {
    box-shadow: none;
}
html.panel-theme .notif-dropdown {
    background: rgba(12, 15, 10, 0.94);
    border-color: rgba(236, 223, 204, 0.12);
    box-shadow: inset 0 1px 0 rgba(236, 223, 204, 0.08), 0 20px 50px rgba(6, 8, 5, 0.55);
}
html.panel-theme .notif-item.unread,
html.panel-theme .notif-card.unread {
    background: rgba(107, 127, 74, 0.12);
    border-color: rgba(138, 154, 120, 0.35);
}
html.panel-theme .notif-item.unread .notif-title {
    color: #ecdfcc;
}
html.panel-theme .notif-card:hover {
    border-color: rgba(138, 154, 120, 0.45);
    box-shadow: none;
    transform: none;
}
html.panel-theme .notif-ico.is-info,
html.panel-theme .notif-detail-type.is-info {
    background: rgba(107, 127, 74, 0.16);
    border-color: rgba(138, 154, 120, 0.35);
    color: #c5c9a4;
}
html.panel-theme .notif-dot {
    background: #8a9a78;
    box-shadow: 0 0 0 3px rgba(107, 127, 74, 0.22);
}
html.panel-theme .notif-card-action {
    color: #c5c9a4;
}

/* Stop moving orb lights on panels — keep the square grid only */
html.panel-theme .ambient-orb,
html.panel-theme .orb-blue,
html.panel-theme .orb-violet,
html.panel-theme .orb-teal,
html.admin-theme .ambient-orb,
html.admin-theme .orb-blue,
html.admin-theme .orb-violet,
html.admin-theme .orb-teal {
    animation: none !important;
    opacity: 0 !important;
}

/* ==========================================================================
   Frosted glass — army green (admin + user panel)
   html.panel-theme.admin-theme
   ========================================================================== */

html.admin-theme {
    --glass-fill: rgba(22, 25, 20, 0.46);
    --glass-fill-hover: rgba(42, 44, 38, 0.58);
    --glass-border: rgba(236, 223, 204, 0.14);
    --glass-border-hover: rgba(138, 154, 120, 0.42);
    --glass-inner-light: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --admin-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 18px 48px rgba(6, 8, 5, 0.38);
}

html.admin-theme .ambient-background {
    background:
        radial-gradient(1100px 780px at 16% -14%, rgba(74, 92, 58, 0.1), transparent 60%),
        radial-gradient(980px 720px at 92% 44%, rgba(60, 61, 55, 0.08), transparent 55%),
        #080a07;
}
html.admin-theme .ambient-background::before {
    z-index: 8;
    background-color: transparent;
    background-image:
        linear-gradient(rgba(236, 223, 204, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 223, 204, 0.07) 1px, transparent 1px);
    background-size: 72px 72px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: blur(8px);
    -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
    mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
}
html.admin-theme .orb-blue,
html.admin-theme .orb-violet,
html.admin-theme .orb-teal {
    filter: blur(280px);
}
html.admin-theme .orb-blue {
    background: radial-gradient(circle, rgba(107, 127, 74, 0.16) 0%, transparent 74%);
    opacity: 0.26;
}
html.admin-theme .orb-violet {
    background: radial-gradient(circle, rgba(60, 61, 55, 0.2) 0%, transparent 74%);
    opacity: 0.2;
}
html.admin-theme .orb-teal {
    background: radial-gradient(circle, rgba(138, 154, 120, 0.12) 0%, transparent 74%);
    opacity: 0.18;
}
html.admin-theme .ambient-grid {
    opacity: 0;
}

html.admin-theme .panel-sidebar,
html.admin-theme .panel-navbar {
    background: rgba(12, 15, 10, 0.55);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-color: rgba(236, 223, 204, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.admin-theme .sidebar-header,
html.admin-theme .sidebar-user {
    background: rgba(22, 25, 20, 0.35);
    border-color: rgba(236, 223, 204, 0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html.admin-theme .glass-card,
html.admin-theme .panel-card,
html.admin-theme .stat-card,
html.admin-theme .metric-card,
html.admin-theme .ticket-card,
html.admin-theme .checkout-step,
html.admin-theme .plan-pick-card,
html.admin-theme .wallet-hero {
    background: rgba(22, 25, 20, 0.42);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(236, 223, 204, 0.12);
    box-shadow: var(--admin-shadow);
}
html.admin-theme .glass-card:hover,
html.admin-theme .panel-card:hover,
html.admin-theme .stat-card:hover,
html.admin-theme .metric-card:hover,
html.admin-theme .ticket-card:hover {
    background: rgba(42, 44, 38, 0.55);
    border-color: rgba(138, 154, 120, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 44px rgba(6, 8, 5, 0.32);
}

html.admin-theme .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
html.admin-theme .sidebar-link.active {
    background: rgba(107, 127, 74, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.admin-theme .search-input,
html.admin-theme .form-input,
html.admin-theme textarea.form-input,
html.admin-theme select.form-input {
    background: rgba(12, 15, 10, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(236, 223, 204, 0.14);
}

html.admin-theme .data-table th {
    background: rgba(12, 15, 10, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html.admin-theme .modal-backdrop {
    background: rgba(6, 8, 5, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
html.admin-theme .modal-content,
html.admin-theme .glass-modal {
    background: rgba(22, 25, 20, 0.62);
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    border: 1px solid rgba(236, 223, 204, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 28px 80px rgba(6, 8, 5, 0.5);
}

html.admin-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(236, 223, 204, 0.14);
}
html.admin-theme .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
}

/* ==========================================================================
   Public-site theme — army green (darker), no leftover blue
   html.site-theme-preview only (panels stay slate + blue)
   #0C0F0A  #161914  #4A5C3A  #697565  #ECDFCC
   ========================================================================== */

html.site-theme-preview {
    --bg-oled: #0c0f0a;
    --bg-surface: #161914;
    --bg-surface-elevated: #2a2c26;

    --glass-fill: rgba(42, 44, 38, 0.46);
    --glass-fill-hover: rgba(74, 92, 58, 0.38);
    --glass-border: rgba(236, 223, 204, 0.12);
    --glass-border-hover: rgba(138, 154, 120, 0.5);
    --glass-inner-light: inset 0 1px 0 rgba(236, 223, 204, 0.08);

    --neon-blue: #8a9a78;
    --neon-cyan: #a3b18a;
    --neon-violet: #697565;
    --neon-purple: #697565;
    --neon-teal: #8a9a78;
    --neon-emerald: #7d9a6a;

    --text-main: #ecdfcc;
    --text-muted: #a8b09a;
    --text-dim: #697565;
    --text-light: #ecdfcc;

    --gradient-cyan-teal: linear-gradient(180deg, #6b7f4a 0%, #4a5c3a 100%);
    --gradient-purple-violet: linear-gradient(135deg, #2a2c26 0%, #161914 100%);
    --gradient-btn-primary: linear-gradient(180deg, #6b7f4a 0%, #4a5c3a 100%);
    --gradient-accent: linear-gradient(180deg, #6b7f4a 0%, #4a5c3a 100%);

    --primary-cyan: #8a9a78;
    --accent-gold: #c5b07a;
    --accent-green: #7d9a6a;

    --admin-accent: #6b7f4a;
    --admin-accent-strong: #8a9a78;
    --admin-accent-soft: rgba(105, 117, 101, 0.22);
    --admin-accent-border: rgba(138, 154, 120, 0.45);
    --admin-shadow: inset 0 1px 0 rgba(236, 223, 204, 0.08), 0 18px 48px rgba(6, 8, 5, 0.5);
    --admin-focus: 0 0 0 3px rgba(107, 127, 74, 0.32);

    --theme-color: #0c0f0a;
}

html.site-theme-preview,
html.site-theme-preview body {
    background-color: #0c0f0a;
    color: #ecdfcc;
}

html.site-theme-preview ::selection {
    background: rgba(107, 127, 74, 0.4);
    color: #ecdfcc;
}

html.site-theme-preview .ambient-background {
    background:
        radial-gradient(900px 640px at 18% -12%, rgba(74, 92, 58, 0.12), transparent 58%),
        radial-gradient(820px 600px at 92% 42%, rgba(42, 44, 38, 0.14), transparent 52%),
        #0c0f0a;
}
html.site-theme-preview .ambient-background::before {
    z-index: 8;
    background-color: transparent;
    background-image:
        linear-gradient(rgba(236, 223, 204, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 223, 204, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
    mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
}
html.site-theme-preview .ambient-grid {
    opacity: 1;
    z-index: 7;
    background-image:
        linear-gradient(rgba(236, 223, 204, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 223, 204, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
    mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
}
html.site-theme-preview .orb-blue {
    background: radial-gradient(circle, rgba(107, 127, 74, 0.38) 0%, transparent 70%);
    opacity: 0.65;
    filter: blur(160px);
}
html.site-theme-preview .orb-violet {
    background: radial-gradient(circle, rgba(42, 44, 38, 0.6) 0%, transparent 70%);
    opacity: 0.5;
    filter: blur(170px);
}
html.site-theme-preview .orb-teal {
    background: radial-gradient(circle, rgba(138, 154, 120, 0.22) 0%, transparent 70%);
    opacity: 0.5;
    filter: blur(160px);
}

html.site-theme-preview .navbar {
    background: rgba(12, 15, 10, 0.62);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid rgba(236, 223, 204, 0.12);
    box-shadow: inset 0 1px 0 rgba(236, 223, 204, 0.08);
}
html.site-theme-preview .navbar.scrolled {
    background: rgba(12, 15, 10, 0.9);
    border-color: rgba(138, 154, 120, 0.32);
    box-shadow: inset 0 1px 0 rgba(236, 223, 204, 0.08), 0 16px 40px rgba(6, 8, 5, 0.45);
}
html.site-theme-preview .logo-badge {
    box-shadow: none;
    border: 1px solid rgba(236, 223, 204, 0.12);
    background: rgba(42, 44, 38, 0.55);
}
html.site-theme-preview .brand-title span {
    color: #c5c9a4;
}
html.site-theme-preview .currency-selector {
    background: rgba(12, 15, 10, 0.45);
    border-color: rgba(236, 223, 204, 0.12);
}
html.site-theme-preview .currency-btn {
    font-family: var(--font-fa), 'Vazirmatn', sans-serif;
}
html.site-theme-preview .currency-btn.active {
    background: #4a5c3a;
    color: #ecdfcc;
    box-shadow: none;
}

html.site-theme-preview .glass-card,
html.site-theme-preview .hero-main-card,
html.site-theme-preview .hero-side-card,
html.site-theme-preview .footer,
html.site-theme-preview .glass-modal {
    background: rgba(22, 25, 20, 0.5);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(236, 223, 204, 0.12);
    box-shadow: inset 0 1px 0 rgba(236, 223, 204, 0.08), 0 18px 48px rgba(6, 8, 5, 0.42);
}
html.site-theme-preview .glass-card:hover,
html.site-theme-preview.admin-theme .glass-card:hover {
    background: rgba(42, 44, 38, 0.58);
    border-color: rgba(138, 154, 120, 0.4);
    box-shadow: inset 0 1px 0 rgba(236, 223, 204, 0.1), 0 18px 44px rgba(6, 8, 5, 0.36);
}

html.site-theme-preview .btn-primary,
html.site-theme-preview .btn.btn-primary {
    background: #4a5c3a;
    color: #ecdfcc;
    border: 1px solid #6b7f4a;
    box-shadow: none;
    filter: none;
}
html.site-theme-preview .btn-primary:hover,
html.site-theme-preview .btn.btn-primary:hover {
    background: #5c6e48;
    color: #ecdfcc;
    border-color: #8a9a78;
    box-shadow: none;
    transform: none;
    filter: none;
}
html.site-theme-preview .btn-secondary {
    background: rgba(236, 223, 204, 0.05);
    color: #ecdfcc;
    border-color: rgba(236, 223, 204, 0.16);
}

html.site-theme-preview.panel-theme a:not(.btn):not(.sidebar-link) {
    color: #c5c9a4;
}
html.site-theme-preview.panel-theme a:not(.btn):not(.sidebar-link):hover {
    color: #ecdfcc;
}
html.site-theme-preview.panel-theme a.nav-link,
html.site-theme-preview.panel-theme a.nav-link:visited {
    color: #c9d1c0;
}
html.site-theme-preview.panel-theme a.nav-link:hover {
    color: #ecdfcc;
}
html.site-theme-preview .stat-val { color: #c9d1c0; }
html.site-theme-preview .stat-lbl { color: #a8b09a; }

html.site-theme-preview .text-gradient {
    background: none;
    -webkit-text-fill-color: #c5c9a4;
    color: #c5c9a4;
    animation: none;
}

html.site-theme-preview .section-tag,
html.site-theme-preview .plan-loc-chips .loc-chip,
html.site-theme-preview .plan-loc-chip {
    color: #ecdfcc;
    background: rgba(107, 127, 74, 0.16);
    border: 1px solid rgba(138, 154, 120, 0.35);
    box-shadow: none;
}
html.site-theme-preview .plan-role-ribbon.is-starter {
    color: #c5c9a4;
    background: rgba(107, 127, 74, 0.16);
    border-color: rgba(138, 154, 120, 0.35);
}
html.site-theme-preview .plan-role-ribbon.is-popular {
    color: #ecdfcc;
    background: linear-gradient(180deg, #6b7f4a 0%, #4a5c3a 100%);
    border-color: #6b7f4a;
}
html.site-theme-preview .plan-role-ribbon.is-pro {
    color: #ecdfcc;
    background: rgba(42, 44, 38, 0.65);
    border-color: rgba(236, 223, 204, 0.18);
}
html.site-theme-preview .bento-icon {
    background: linear-gradient(165deg, rgba(107, 127, 74, 0.22), rgba(74, 92, 58, 0.08));
    border: 1px solid rgba(138, 154, 120, 0.28);
    box-shadow: inset 0 1px 0 rgba(236, 223, 204, 0.06);
}
html.site-theme-preview .bento-icon svg .ei-ink { fill: #8a9a78; }
html.site-theme-preview .bento-icon svg .ei-ink-deep { fill: #6b7f4a; }
html.site-theme-preview .bento-icon svg .ei-soft { fill: rgba(107, 127, 74, 0.32); }
html.site-theme-preview .bento-icon svg .ei-line {
    fill: none;
    stroke: #8a9a78;
}
html.site-theme-preview .tab-btn.active {
    border-color: rgba(138, 154, 120, 0.45);
    box-shadow: none;
}
html.site-theme-preview .faq-item {
    background: rgba(22, 25, 20, 0.62);
    border: 1px solid rgba(236, 223, 204, 0.12);
    box-shadow: none;
}
html.site-theme-preview .faq-item:hover,
html.site-theme-preview .faq-item.active {
    background: rgba(42, 44, 38, 0.7);
    border-color: rgba(138, 154, 120, 0.4);
    box-shadow: none;
}
html.site-theme-preview .faq-question,
html.site-theme-preview .faq-question:hover,
html.site-theme-preview .faq-item.active .faq-question {
    color: #ecdfcc;
}
html.site-theme-preview .faq-icon,
html.site-theme-preview .faq-item.active .faq-icon {
    background: rgba(107, 127, 74, 0.18);
    color: #c5c9a4;
}
html.site-theme-preview .form-input:focus,
html.site-theme-preview .search-input:focus,
html.site-theme-preview input:focus,
html.site-theme-preview textarea:focus,
html.site-theme-preview select:focus {
    border-color: #8a9a78;
    box-shadow: 0 0 0 3px rgba(107, 127, 74, 0.28);
}
html.site-theme-preview .checkout-sticky-price {
    background: rgba(12, 15, 10, 0.94);
    border-color: rgba(138, 154, 120, 0.32);
}
html.site-theme-preview .checkout-period-btn.active,
html.panel-theme .checkout-period-btn.active {
    border-color: rgba(138, 154, 120, 0.55);
    background: rgba(107, 127, 74, 0.18);
    color: #ecdfcc;
}
html.site-theme-preview .checkout-pay-btn.active,
html.panel-theme .checkout-pay-btn.active {
    border-color: rgba(138, 154, 120, 0.5);
    background: rgba(107, 127, 74, 0.16);
    box-shadow: none;
}
html.site-theme-preview .checkout-pay-btn.active .pay-body strong,
html.panel-theme .checkout-pay-btn.active .pay-body strong {
    color: #ecdfcc;
}
html.site-theme-preview .checkout-auth-box,
html.panel-theme .checkout-auth-box {
    background: rgba(107, 127, 74, 0.12);
    border: 1px solid rgba(138, 154, 120, 0.32);
}
html.panel-theme altcha-widget,
html.site-theme-preview altcha-widget {
    --altcha-color-primary: #4a5c3a;
    --altcha-color-primary-content: #ecdfcc;
    --altcha-color-base: #0c0f0a;
    --altcha-color-base-content: #ecdfcc;
    --altcha-border-color: rgba(236, 223, 204, 0.16);
}
html.site-theme-preview .mobile-nav {
    background: rgba(12, 15, 10, 0.94);
    border: 1px solid rgba(236, 223, 204, 0.12);
    box-shadow: 0 20px 40px rgba(6, 8, 5, 0.55);
}
html.site-theme-preview .mobile-nav a,
html.site-theme-preview .mobile-nav a:visited {
    color: #c9d1c0;
    background: transparent;
}
html.site-theme-preview .mobile-nav a:hover,
html.site-theme-preview .mobile-nav a:focus-visible {
    background: rgba(107, 127, 74, 0.18);
    color: #ecdfcc;
}

html.site-theme-preview .plan-os-tag-windows,
html.site-theme-preview .plan-pick-badge-windows {
    color: #c5c9a4;
    background: rgba(107, 127, 74, 0.18);
    border: 1px solid rgba(138, 154, 120, 0.4);
}
html.site-theme-preview .plan-os-tag-linux,
html.site-theme-preview .plan-pick-badge-linux {
    color: #c5c9a4;
    background: rgba(107, 127, 74, 0.16);
    border: 1px solid rgba(138, 154, 120, 0.35);
}
html.site-theme-preview .plan-loc-chips .loc-chip,
html.site-theme-preview .plan-loc-chip,
html.site-theme-preview .location-tag {
    color: #ecdfcc !important;
    background: rgba(107, 127, 74, 0.16) !important;
    border: 1px solid rgba(138, 154, 120, 0.35) !important;
    box-shadow: none;
}
html.site-theme-preview #order-os,
html.site-theme-preview #order-location,
html.site-theme-preview select.form-input {
    background: rgba(12, 15, 10, 0.88) !important;
    border-color: rgba(236, 223, 204, 0.16) !important;
    color: #ecdfcc !important;
}
html.site-theme-preview .tab-btn.active {
    background: #4a5c3a;
    color: #ecdfcc;
    box-shadow: none;
}

/* User panel: checkout summary + payment card */
html.panel-theme .checkout-summary {
    background: rgba(12, 15, 10, 0.88);
    border: 1px solid rgba(236, 223, 204, 0.12);
    box-shadow: inset 0 1px 0 rgba(236, 223, 204, 0.08), 0 12px 40px rgba(6, 8, 5, 0.4);
}
html.panel-theme .checkout-summary-plan {
    background: rgba(107, 127, 74, 0.14);
    border: 1px solid rgba(138, 154, 120, 0.35);
}
html.panel-theme .period-option,
html.panel-theme .pay-method-option {
    background: rgba(22, 25, 20, 0.55);
    border-color: rgba(236, 223, 204, 0.12);
}
html.panel-theme .period-option.active,
html.panel-theme .pay-method-option.active {
    background: rgba(107, 127, 74, 0.18);
    border-color: rgba(138, 154, 120, 0.45);
    box-shadow: none;
}
html.panel-theme .checkout-summary-monthly,
html.panel-theme .checkout-summary-row.total span:last-child,
html.panel-theme .checkout-step-num {
    color: #c5c9a4;
}
html.panel-theme .plan-pick-badge-windows,
html.panel-theme .plan-os-tag-windows {
    color: #c5c9a4;
    background: rgba(107, 127, 74, 0.18);
    border: 1px solid rgba(138, 154, 120, 0.4);
}
html.panel-theme .plan-loc-chip {
    color: #ecdfcc;
    background: rgba(107, 127, 74, 0.16);
    border: 1px solid rgba(138, 154, 120, 0.35);
}
html.site-theme-preview .range-slider::-webkit-slider-thumb {
    background: #6b7f4a;
    box-shadow: none;
}
html.site-theme-preview .footer-link:hover {
    color: #c5c9a4;
}

html.site-theme-preview .plan-card:hover,
html.site-theme-preview .plan-card.popular,
html.site-theme-preview .plan-card.selected {
    border-color: rgba(138, 154, 120, 0.45);
    box-shadow: none;
}
html.site-theme-preview .ps-price,
html.site-theme-preview .plan-pick-price strong,
html.site-theme-preview .checkout-summary-monthly,
html.site-theme-preview .checkout-summary-row.total span:last-child,
html.site-theme-preview .checkout-step-num,
html.site-theme-preview .plan-view-btn.active {
    color: #c5c9a4;
}

/* Android-only scroll/GPU relief. Class set by a tiny UA script in <head>. iPhone unchanged. */
html.android-lite {
    scroll-behavior: auto !important;
}
html.android-lite .ambient-background::before {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    background-color: rgba(8, 10, 7, 0.28);
    background-image:
        linear-gradient(rgba(236, 223, 204, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 223, 204, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
}
html.android-lite .ambient-orb,
html.android-lite .orb-blue,
html.android-lite .orb-violet,
html.android-lite .orb-teal {
    animation: none !important;
    will-change: auto !important;
    filter: none !important;
    opacity: 0.18 !important;
    transform: none !important;
}
html.android-lite .text-gradient {
    animation: none !important;
}
html.android-lite .glass-card,
html.android-lite .navbar,
html.android-lite .navbar.scrolled,
html.android-lite .mobile-nav,
html.android-lite .hero-main-card,
html.android-lite .hero-side-card,
html.android-lite .footer,
html.android-lite .faq-item,
html.android-lite .glass-modal,
html.android-lite .modal-content,
html.android-lite .modal-backdrop,
html.android-lite .panel-sidebar,
html.android-lite .panel-navbar,
html.android-lite .btn-secondary,
html.android-lite .checkout-summary {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ==========================================================================
   Light appearance (optional). Default stays the current army-green dark.
   html.theme-light is set from localStorage before paint.
   ========================================================================== */

html.theme-light.panel-theme,
html.theme-light.admin-theme,
html.theme-light.site-theme-preview {
    --bg-oled: #f3efe4;
    --bg-surface: #fffcf6;
    --bg-surface-elevated: #ffffff;

    --glass-fill: rgba(255, 252, 246, 0.92);
    --glass-fill-hover: rgba(255, 255, 255, 0.98);
    --glass-border: #d5cfbf;
    --glass-border-hover: rgba(74, 92, 58, 0.42);
    --glass-inner-light: inset 0 1px 0 rgba(255, 255, 255, 0.9);

    --neon-blue: #4a5c3a;
    --neon-cyan: #3d4e30;
    --neon-violet: #5d6554;
    --neon-purple: #5d6554;
    --neon-teal: #4a5c3a;
    --neon-emerald: #2f7d4a;

    --text-main: #1c2118;
    --text-muted: #5d6554;
    --text-dim: #7a8270;
    --text-light: #1c2118;

    --gradient-cyan-teal: linear-gradient(180deg, #6b7f4a 0%, #4a5c3a 100%);
    --gradient-purple-violet: linear-gradient(135deg, #ece6d6 0%, #f3efe4 100%);
    --gradient-btn-primary: linear-gradient(180deg, #6b7f4a 0%, #4a5c3a 100%);
    --gradient-accent: linear-gradient(180deg, #6b7f4a 0%, #4a5c3a 100%);

    --primary-cyan: #4a5c3a;
    --accent-gold: #9a7b2e;
    --accent-green: #2f7d4a;

    --admin-accent: #4a5c3a;
    --admin-accent-strong: #3d4e30;
    --admin-accent-soft: rgba(74, 92, 58, 0.10);
    --admin-accent-border: rgba(74, 92, 58, 0.28);
    --admin-shadow: 0 10px 28px rgba(28, 33, 24, 0.08);
    --admin-focus: 0 0 0 3px rgba(74, 92, 58, 0.22);

    --theme-color: #f3efe4;
    color-scheme: light;
}

html.theme-light.panel-theme,
html.theme-light.panel-theme body,
html.theme-light.admin-theme,
html.theme-light.admin-theme body,
html.theme-light.site-theme-preview,
html.theme-light.site-theme-preview body {
    background-color: #f3efe4;
    color: #1c2118;
}

html.theme-light ::selection {
    background: rgba(74, 92, 58, 0.22);
    color: #1c2118;
}

html.theme-light.panel-theme input,
html.theme-light.panel-theme textarea,
html.theme-light.panel-theme [contenteditable="true"],
html.theme-light.site-theme-preview input,
html.theme-light.site-theme-preview textarea,
html.theme-light.site-theme-preview [contenteditable="true"] {
    caret-color: #1c2118;
}

html.theme-light.panel-theme .ambient-background,
html.theme-light.site-theme-preview .ambient-background {
    background: #f3efe4;
}
html.theme-light.panel-theme .ambient-background::before,
html.theme-light.site-theme-preview .ambient-background::before {
    background-image:
        linear-gradient(rgba(28, 33, 24, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 33, 24, 0.06) 1px, transparent 1px);
}
html.theme-light .ambient-grid {
    opacity: 0.18;
}
html.theme-light .orb-blue,
html.theme-light .orb-violet,
html.theme-light .orb-teal,
html.theme-light .ambient-orb {
    opacity: 0.28;
    filter: blur(90px);
}
html.theme-light.site-theme-preview .orb-blue { background: #c5c9a4; }
html.theme-light.site-theme-preview .orb-violet { background: #ece6d6; }
html.theme-light.site-theme-preview .orb-teal { background: #8a9a78; }

html.theme-light.panel-theme .panel-sidebar,
html.theme-light.admin-theme .panel-sidebar,
html.theme-light.panel-theme .panel-navbar,
html.theme-light.admin-theme .panel-navbar {
    background: rgba(255, 252, 246, 0.92);
    border-color: #d5cfbf;
    box-shadow: 0 8px 24px rgba(28, 33, 24, 0.06);
}
html.theme-light.panel-theme .sidebar-header,
html.theme-light.panel-theme .sidebar-user,
html.theme-light.admin-theme .sidebar-header,
html.theme-light.admin-theme .sidebar-user {
    background: #fffcf6;
    border-color: #d5cfbf;
}
html.theme-light.panel-theme .sidebar-link {
    color: #5d6554;
}
html.theme-light.panel-theme .sidebar-link:hover {
    background: rgba(74, 92, 58, 0.08);
    color: #1c2118;
    border-color: #d5cfbf;
}
html.theme-light.panel-theme .sidebar-link.active,
html.theme-light.admin-theme .sidebar-link.active {
    background: rgba(74, 92, 58, 0.12);
    color: #3d4e30;
    border-color: rgba(74, 92, 58, 0.28);
}
html.theme-light.panel-theme .sidebar-link .icon svg .ei-ink { fill: #4a5c3a; }
html.theme-light.panel-theme .sidebar-link.active .icon svg .ei-ink { fill: #3d4e30; }
html.theme-light.panel-theme .user-avatar {
    background: #ece6d6;
    color: #1c2118;
}
html.theme-light.panel-theme .user-avatar svg .ei-ink { fill: #4a5c3a; }
html.theme-light.panel-theme .logo-badge {
    background: #ece6d6;
    border-color: #d5cfbf;
}

html.theme-light.panel-theme .glass-card,
html.theme-light.panel-theme .panel-card,
html.theme-light.panel-theme .stat-card,
html.theme-light.panel-theme .metric-card,
html.theme-light.panel-theme .ticket-card,
html.theme-light.panel-theme .checkout-step,
html.theme-light.panel-theme .plan-pick-card,
html.theme-light.panel-theme .wallet-hero,
html.theme-light.panel-theme .auth-box,
html.theme-light.panel-theme .auth-card,
html.theme-light.panel-theme .modal-content,
html.theme-light.panel-theme .glass-modal,
html.theme-light.admin-theme .glass-card,
html.theme-light.admin-theme .panel-card,
html.theme-light.admin-theme .stat-card,
html.theme-light.admin-theme .metric-card,
html.theme-light.admin-theme .ticket-card,
html.theme-light.admin-theme .checkout-step,
html.theme-light.admin-theme .plan-pick-card,
html.theme-light.admin-theme .wallet-hero,
html.theme-light.admin-theme .modal-content,
html.theme-light.admin-theme .glass-modal,
html.theme-light.site-theme-preview .glass-card,
html.theme-light.site-theme-preview .hero-main-card,
html.theme-light.site-theme-preview .hero-side-card,
html.theme-light.site-theme-preview .footer,
html.theme-light.site-theme-preview .glass-modal {
    background: #fffcf6;
    border-color: #d5cfbf;
    color: #1c2118;
    box-shadow: 0 10px 28px rgba(28, 33, 24, 0.08);
}
html.theme-light.panel-theme .glass-card:hover,
html.theme-light.panel-theme .panel-card:hover,
html.theme-light.panel-theme .stat-card:hover,
html.theme-light.panel-theme .metric-card:hover,
html.theme-light.admin-theme .glass-card:hover,
html.theme-light.site-theme-preview .glass-card:hover {
    background: #ffffff;
    border-color: rgba(74, 92, 58, 0.42);
}

html.theme-light.site-theme-preview .navbar {
    background: rgba(255, 252, 246, 0.86);
    border: 1px solid #d5cfbf;
    box-shadow: 0 12px 32px rgba(28, 33, 24, 0.08);
}
html.theme-light.site-theme-preview .navbar.scrolled {
    background: rgba(255, 252, 246, 0.96);
    border-color: rgba(74, 92, 58, 0.28);
    box-shadow: 0 16px 40px rgba(28, 33, 24, 0.10);
}
html.theme-light.site-theme-preview .logo-badge {
    background: #ece6d6;
    border: 1px solid #d5cfbf;
}
html.theme-light.site-theme-preview .brand-title span,
html.theme-light.panel-theme .brand-title span {
    color: #4a5c3a;
}
html.theme-light.site-theme-preview .currency-selector {
    background: #ece6d6;
    border-color: #d5cfbf;
}
html.theme-light.site-theme-preview .currency-btn {
    color: #5d6554;
}
html.theme-light.site-theme-preview .currency-btn.active {
    background: #4a5c3a;
    color: #f7f4ec;
}

html.theme-light.panel-theme .btn-secondary,
html.theme-light.admin-theme .btn-secondary,
html.theme-light.site-theme-preview .btn-secondary {
    background: #fffcf6;
    border-color: #d5cfbf;
    color: #1c2118;
}
html.theme-light.panel-theme .btn-secondary:hover,
html.theme-light.admin-theme .btn-secondary:hover,
html.theme-light.site-theme-preview .btn-secondary:hover {
    background: #ece6d6;
    border-color: #4a5c3a;
    color: #1c2118;
}
html.theme-light.panel-theme .btn-primary,
html.theme-light.panel-theme .btn.btn-primary,
html.theme-light.site-theme-preview .btn-primary,
html.theme-light.site-theme-preview .btn.btn-primary {
    color: #f7f4ec;
}

html.theme-light.panel-theme .search-input,
html.theme-light.panel-theme .form-input,
html.theme-light.panel-theme textarea.form-input,
html.theme-light.panel-theme select.form-input,
html.theme-light.panel-theme input[type="text"],
html.theme-light.panel-theme input[type="number"],
html.theme-light.panel-theme input[type="email"],
html.theme-light.panel-theme input[type="password"],
html.theme-light.admin-theme .search-input,
html.theme-light.admin-theme .form-input,
html.theme-light.admin-theme textarea.form-input,
html.theme-light.admin-theme select.form-input {
    background: #ffffff;
    border-color: #d5cfbf;
    color: #1c2118;
}
html.theme-light.panel-theme .form-input:focus,
html.theme-light.panel-theme input:focus,
html.theme-light.panel-theme textarea:focus,
html.theme-light.panel-theme select:focus,
html.theme-light.site-theme-preview .form-input:focus {
    border-color: #4a5c3a;
    box-shadow: 0 0 0 3px rgba(74, 92, 58, 0.18);
}

html.theme-light.panel-theme .data-table th,
html.theme-light.admin-theme .data-table th {
    color: #1c2118;
    background: #ece6d6;
}
html.theme-light.panel-theme .data-table td {
    border-bottom-color: #ece6d6;
    color: #1c2118;
}
html.theme-light.panel-theme .data-table tr:hover td {
    background: rgba(74, 92, 58, 0.06);
}

html.theme-light.panel-theme .panel-title,
html.theme-light.panel-theme .section-title,
html.theme-light.panel-theme .modal-title,
html.theme-light.panel-theme code,
html.theme-light.panel-theme .metric-val,
html.theme-light.panel-theme .modal-close:hover {
    color: #1c2118;
}
html.theme-light.panel-theme .metric-label,
html.theme-light.panel-theme .modal-close {
    color: #5d6554;
}
html.theme-light.panel-theme a:not(.btn):not(.sidebar-link),
html.theme-light.site-theme-preview.panel-theme a:not(.btn):not(.sidebar-link) {
    color: #4a5c3a;
}
html.theme-light.panel-theme a:not(.btn):not(.sidebar-link):hover {
    color: #1c2118;
}
html.theme-light.site-theme-preview.panel-theme a.nav-link,
html.theme-light.site-theme-preview.panel-theme a.nav-link:visited {
    color: #1c2118;
}
html.theme-light .text-gradient {
    background: none;
    -webkit-text-fill-color: #4a5c3a;
    color: #4a5c3a;
}
html.theme-light.site-theme-preview .stat-val { color: #1c2118; }
html.theme-light.site-theme-preview .stat-lbl { color: #5d6554; }

html.theme-light.panel-theme .plan-card,
html.theme-light.panel-theme .selectable,
html.theme-light.panel-theme .os-card,
html.theme-light.panel-theme .filter-chip,
html.theme-light.panel-theme .invoice-filter,
html.theme-light.panel-theme .auth-tab {
    border-color: #d5cfbf;
    color: #5d6554;
    background: #fffcf6;
}
html.theme-light.panel-theme .plan-card.active,
html.theme-light.panel-theme .plan-card.selected,
html.theme-light.panel-theme .os-card.active,
html.theme-light.panel-theme .filter-chip.active,
html.theme-light.panel-theme .invoice-filter.active,
html.theme-light.panel-theme .auth-tab.active,
html.theme-light.panel-theme .period-option.active,
html.theme-light.panel-theme .pay-method-option.active {
    background: rgba(74, 92, 58, 0.10);
    border-color: rgba(74, 92, 58, 0.35);
    color: #1c2118;
}

html.theme-light.panel-theme .ticket-id,
html.theme-light.panel-theme .invoice-id,
html.theme-light.panel-theme .ps-price,
html.theme-light.panel-theme .plan-pick-price strong,
html.theme-light.panel-theme .checkout-summary-monthly,
html.theme-light.panel-theme .checkout-summary-row.total span:last-child,
html.theme-light.site-theme-preview .ps-price,
html.theme-light.site-theme-preview .plan-pick-price strong,
html.theme-light.site-theme-preview .checkout-summary-monthly,
html.theme-light.site-theme-preview .checkout-step-num,
html.theme-light.site-theme-preview .plan-view-btn.active,
html.theme-light.site-theme-preview .footer-link:hover {
    color: #4a5c3a;
}

html.theme-light.site-theme-preview .footer-social-item {
    background: #fffcf6;
    border-color: #d5cfbf;
    color: #5d6554;
}
html.theme-light.site-theme-preview .footer-social-item[href]:hover,
html.theme-light.site-theme-preview .footer-social-item[href]:focus-visible {
    color: #1c2118;
    border-color: #4a5c3a;
    background: rgba(74, 92, 58, 0.10);
}

html.theme-light.panel-theme .modal-backdrop {
    background: rgba(243, 239, 228, 0.72);
}
html.theme-light.admin-theme .modal-backdrop {
    background: rgba(28, 33, 24, 0.28);
}

html.theme-light.panel-theme .notif-dropdown {
    background: #fffcf6;
    border-color: #d5cfbf;
}
html.theme-light.panel-theme .notif-item.unread,
html.theme-light.panel-theme .notif-card.unread {
    background: rgba(74, 92, 58, 0.08);
}
html.theme-light.panel-theme .chat-bubble.user {
    background: rgba(74, 92, 58, 0.12);
    color: #1c2118;
}
html.theme-light.panel-theme .ticket-chat-box {
    border-color: #d5cfbf;
    background: #ffffff;
}

html.theme-light.site-theme-preview .section-tag,
html.theme-light.site-theme-preview .plan-loc-chips .loc-chip,
html.theme-light.site-theme-preview .plan-loc-chip,
html.theme-light.panel-theme .plan-loc-chip {
    background: rgba(74, 92, 58, 0.10);
    border-color: rgba(74, 92, 58, 0.28);
    color: #1c2118;
}
html.theme-light.site-theme-preview .faq-item {
    background: #fffcf6;
    border-color: #d5cfbf;
}
html.theme-light.site-theme-preview .faq-question,
html.theme-light.site-theme-preview .faq-item.active .faq-question {
    color: #1c2118;
}
html.theme-light.site-theme-preview .tab-btn.active {
    color: #3d4e30;
    border-color: #4a5c3a;
}
html.theme-light.site-theme-preview .bento-icon svg .ei-ink { fill: #4a5c3a; }

html.theme-light .checkout-period-btn,
html.theme-light .checkout-pay-btn {
    border-color: #d5cfbf !important;
    background: #ffffff !important;
    color: #1c2118 !important;
}
html.theme-light .checkout-period-btn.active,
html.theme-light .checkout-pay-btn.active {
    border-color: rgba(74, 92, 58, 0.45) !important;
    background: rgba(74, 92, 58, 0.12) !important;
    color: #1c2118 !important;
}
html.theme-light .checkout-pay-btn.active .pay-body strong {
    color: #4a5c3a !important;
}

html.theme-light .kb-cat {
    background: #fffcf6 !important;
}
html.theme-light [style*="color:#fff"],
html.theme-light [style*="color: #fff"],
html.theme-light [style*="color:#ffffff"],
html.theme-light [style*="color:#ECDFCC"],
html.theme-light [style*="color:#ecdfcc"] {
    color: #1c2118 !important;
}
html.theme-light [style*="background:rgba(20,20,30"],
html.theme-light [style*="background:rgba(0,242,254"],
html.theme-light [style*="background:rgba(107,127,74"] {
    background: rgba(74, 92, 58, 0.08) !important;
}

html.theme-light .stat-box,
html.theme-light .provider-tabs,
html.theme-light .slider-group,
html.theme-light .payment-card,
html.theme-light .sidebar-user,
html.theme-light .provider-info-box,
html.theme-light .location-tag,
html.theme-light .plan-price-box,
html.theme-light .customizer-summary,
html.theme-light .plan-spec-rows,
html.theme-light .server-specs-row,
html.theme-light .tickets-table th,
html.theme-light .currency-selector,
html.theme-light .kb-body pre {
    background: rgb(183 183 183 / 40%);
}
html.theme-light [style*="background: rgba(0,0,0"],
html.theme-light [style*="background:rgba(0,0,0"],
html.theme-light [style*="background: rgba(0, 0, 0"],
html.theme-light [style*="background:rgba(0, 0, 0"] {
    background: rgb(183 183 183 / 40%) !important;
}
html.theme-light .btn-primary,
html.theme-light .btn.btn-primary,
html.theme-light .btn-primary span,
html.theme-light .currency-btn.active {
    color: #f7f4ec !important;
}

html.theme-light altcha-widget {
    --altcha-color-base: #fffcf6;
    --altcha-color-base-content: #1c2118;
    --altcha-border-color: #d5cfbf;
    --altcha-color-primary: #4a5c3a;
    --altcha-color-primary-content: #f7f4ec;
}

html.theme-light.android-lite .ambient-background::before {
    background-color: rgba(243, 239, 228, 0.4);
    background-image:
        linear-gradient(rgba(28, 33, 24, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 33, 24, 0.05) 1px, transparent 1px);
}

@media (max-width: 992px) {
    html.theme-light .mobile-nav {
        background: rgba(255, 252, 246, 0.96);
        border-color: #d5cfbf;
        box-shadow: 0 16px 36px rgba(28, 33, 24, 0.10);
    }
    html.theme-light .mobile-nav a:hover,
    html.theme-light .mobile-nav a:focus-visible {
        background: rgba(74, 92, 58, 0.10);
        color: #4a5c3a;
    }
    html.theme-light .nav-toggle {
        background: #fffcf6;
        border-color: #d5cfbf;
    }
}

/* Theme toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--glass-border, #3c3d37);
    background: var(--bg-surface, #161914);
    color: var(--text-main, #ecdfcc);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.theme-toggle:hover {
    border-color: var(--glass-border-hover, rgba(138, 154, 120, 0.45));
    color: var(--admin-accent-strong, #c5c9a4);
    transform: translateY(-1px);
}
.theme-toggle svg { display: block; }
html:not(.theme-light) .theme-icon-moon { display: none; }
html.theme-light .theme-icon-sun { display: none; }
.theme-toggle-float {
    position: fixed;
    top: 1rem;
    inset-inline-start: 1rem;
    z-index: 80;
    width: 44px;
    height: 44px;
    box-shadow: var(--admin-shadow, 0 8px 24px rgba(6, 8, 5, 0.42));
}
html.theme-light .theme-toggle {
    background: #000000;
    border-color: #ffffff;
    color: #ffffff;
}
html.theme-light .theme-toggle:hover {
    background: #111111;
    border-color: #ffffff;
    color: #ffffff;
}

/* User panel — order new server (plan / payment / summary) */
html.theme-light.panel-theme .checkout-heading,
html.theme-light.panel-theme .checkout-step-title,
html.theme-light.panel-theme .checkout-summary-title,
html.theme-light.panel-theme .checkout-summary-name,
html.theme-light.panel-theme .plan-pick-name,
html.theme-light.panel-theme .ps-name-main {
    color: #1c2118;
}
html.theme-light.panel-theme .checkout-sub,
html.theme-light.panel-theme .checkout-config-hint {
    color: #5d6554;
}
html.theme-light.panel-theme .plan-filters,
html.theme-light.panel-theme .plan-sheet,
html.theme-light.panel-theme .plan-view-toggle {
    background: rgb(183 183 183 / 40%);
    border-color: #d5cfbf;
}
html.theme-light.panel-theme .plan-pick-card {
    background: #ffffff;
    border-color: #d5cfbf;
    color: #1c2118;
    box-shadow: none;
}
html.theme-light.panel-theme .plan-pick-card:hover,
html.theme-light.panel-theme .plan-pick-card.selected {
    background: #ffffff;
    border-color: #4a5c3a;
    box-shadow: 0 0 0 1px rgba(74, 92, 58, 0.2);
    transform: none;
}
html.theme-light.panel-theme .plan-pick-specs-clean span b {
    color: #1c2118;
}
html.theme-light.panel-theme .plan-pick-price {
    border-top-color: #d5cfbf;
}
html.theme-light.panel-theme .plan-sheet-head {
    background: rgba(74, 92, 58, 0.1);
    border-bottom-color: #d5cfbf;
    color: #5d6554;
}
html.theme-light.panel-theme .plan-sheet-head .ps-unit {
    color: #7a8270;
}
html.theme-light.panel-theme .plan-sheet-head .ps-sort-btn:hover,
html.theme-light.panel-theme .plan-sheet-head .ps-sort-btn.is-sorted,
html.theme-light.panel-theme .plan-sheet-head .ps-sort-ico.is-active {
    color: #4a5c3a;
    background: rgba(74, 92, 58, 0.1);
}
html.theme-light.panel-theme .plan-sheet-row {
    border-bottom-color: #d5cfbf;
    color: #1c2118;
    background: transparent;
}
html.theme-light.panel-theme .plan-sheet-row:hover {
    background: rgba(74, 92, 58, 0.06);
}
html.theme-light.panel-theme .plan-sheet-row.selected {
    background: rgba(74, 92, 58, 0.12);
    box-shadow: inset 3px 0 0 #4a5c3a;
}
html.theme-light.panel-theme .ps-price {
    color: #4a5c3a;
}
html.theme-light.panel-theme .checkout-step-num {
    background: rgba(74, 92, 58, 0.12);
    color: #4a5c3a;
    border-color: rgba(74, 92, 58, 0.28);
}
html.theme-light.panel-theme .plan-view-btn {
    color: #5d6554;
}
html.theme-light.panel-theme .plan-view-btn.active {
    background: rgba(74, 92, 58, 0.14);
    color: #4a5c3a;
}
html.theme-light.panel-theme .invoice-filter {
    background: #ffffff;
    border-color: #d5cfbf;
    color: #5d6554;
}
html.theme-light.panel-theme .invoice-filter.active,
html.theme-light.panel-theme .invoice-filter:hover {
    background: rgba(74, 92, 58, 0.12);
    border-color: #4a5c3a;
    color: #1c2118;
}
html.theme-light.panel-theme .checkout-summary {
    background: #fffcf6;
    border-color: #d5cfbf;
    box-shadow: 0 12px 32px rgba(28, 33, 24, 0.08);
}
html.theme-light.panel-theme .checkout-summary-plan {
    background: rgba(74, 92, 58, 0.08);
    border-color: rgba(74, 92, 58, 0.28);
}
html.theme-light.panel-theme .checkout-summary-block,
html.theme-light.panel-theme .checkout-summary-row.total {
    border-color: #d5cfbf;
}
html.theme-light.panel-theme .period-option,
html.theme-light.panel-theme .pay-method-option {
    background: rgb(183 183 183 / 40%);
    border-color: #d5cfbf;
    color: #1c2118;
    box-shadow: none;
}
html.theme-light.panel-theme .period-option.active,
html.theme-light.panel-theme .pay-method-option.active {
    background: rgba(74, 92, 58, 0.14);
    border-color: #4a5c3a;
    color: #1c2118;
    box-shadow: none;
}
html.theme-light.panel-theme .pay-method-body small {
    color: #5d6554;
}
html.theme-light.panel-theme .pay-method-body strong {
    color: #1c2118;
}
html.theme-light.panel-theme .checkout-summary-block-title,
html.theme-light.panel-theme .checkout-summary-label,
html.theme-light.panel-theme .checkout-summary-note,
html.theme-light.panel-theme .plan-pick-cat,
html.theme-light.panel-theme .plan-filter-count,
html.theme-light.panel-theme .form-label {
    color: #5d6554;
}
html.theme-light.panel-theme .checkout-summary-row span:last-child {
    color: #1c2118;
}
html.theme-light.panel-theme .checkout-summary-row.total span:last-child,
html.theme-light.panel-theme .checkout-summary-monthly,
html.theme-light.panel-theme .plan-pick-price strong {
    color: #4a5c3a;
}
html.theme-light.panel-theme #checkout-config-step.is-focused {
    border-color: #4a5c3a;
    box-shadow: 0 0 0 1px rgba(74, 92, 58, 0.18);
}
html.theme-light.panel-theme .os-card {
    background: #ffffff;
    border-color: #d5cfbf;
    color: #1c2118;
}
html.theme-light.panel-theme .os-card.active,
html.theme-light.panel-theme .os-card:hover {
    background: rgba(74, 92, 58, 0.1);
    border-color: #4a5c3a;
}
html.theme-light.panel-theme .plan-pick-badge-linux,
html.theme-light.panel-theme .plan-sheet-row .plan-pick-badge-linux {
    color: #166534;
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.28);
}
html.theme-light.panel-theme .plan-pick-badge-windows,
html.theme-light.panel-theme .plan-sheet-row .plan-pick-badge-windows {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.28);
}

/* Checkout payment method dropdown */
html.panel-theme .pay-select {
    position: relative;
}
html.panel-theme .checkout-summary:has(.pay-select.is-open) {
    overflow: visible;
}
html.panel-theme .pay-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.78rem 0.85rem;
    background: #0c0f0a;
    border: 1px solid #3c3d37;
    border-radius: 12px;
    color: #ecdfcc;
    font-family: inherit;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
html.panel-theme .pay-select-trigger:hover,
html.panel-theme .pay-select.is-open .pay-select-trigger {
    border-color: #8a9a78;
    box-shadow: var(--admin-focus);
}
html.panel-theme .pay-select-icon {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}
html.panel-theme .pay-select-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    align-items: flex-start;
}
html.panel-theme .pay-select-copy strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: inherit;
}
html.panel-theme .pay-select-copy small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}
html.panel-theme .pay-select-caret {
    width: 0.45rem;
    height: 0.45rem;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -0.2rem;
    opacity: 0.65;
    flex-shrink: 0;
    transition: transform 0.15s, margin 0.15s;
}
html.panel-theme .pay-select.is-open .pay-select-caret {
    transform: rotate(225deg);
    margin-top: 0.15rem;
}
html.panel-theme .pay-select-menu {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 6px);
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.35rem;
    background: #161914;
    border: 1px solid #3c3d37;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
html.panel-theme .pay-select-menu[hidden] {
    display: none;
}
html.panel-theme .pay-select-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.68rem 0.72rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #ecdfcc;
    font-family: inherit;
    text-align: right;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
html.panel-theme .pay-select-option:hover {
    background: rgba(107, 127, 74, 0.12);
}
html.panel-theme .pay-select-option.is-selected {
    background: rgba(107, 127, 74, 0.18);
    border-color: rgba(138, 154, 120, 0.45);
}

html.theme-light.panel-theme .pay-select-trigger {
    background: #ffffff;
    border-color: #d5cfbf;
    color: #1c2118;
}
html.theme-light.panel-theme .pay-select-trigger:hover,
html.theme-light.panel-theme .pay-select.is-open .pay-select-trigger {
    border-color: #4a5c3a;
    box-shadow: 0 0 0 3px rgba(74, 92, 58, 0.18);
}
html.theme-light.panel-theme .pay-select-copy small {
    color: #5d6554;
}
html.theme-light.panel-theme .pay-select-menu {
    background: #fffcf6;
    border-color: #d5cfbf;
    box-shadow: 0 16px 36px rgba(28, 33, 24, 0.12);
}
html.theme-light.panel-theme .pay-select-option {
    color: #1c2118;
}
html.theme-light.panel-theme .pay-select-option:hover {
    background: rgba(74, 92, 58, 0.08);
}
html.theme-light.panel-theme .pay-select-option.is-selected {
    background: rgba(74, 92, 58, 0.14);
    border-color: #4a5c3a;
}

/* Homepage SERVER PLANS: dark numbers/specs/locations on light cards */
html.theme-light.site-theme-preview .plan-spec-rows .k,
html.theme-light.site-theme-preview .spec-item {
    color: #5d6554;
}
html.theme-light.site-theme-preview .plan-spec-rows .v,
html.theme-light.site-theme-preview .price-val,
html.theme-light.site-theme-preview .price-val .price-num,
html.theme-light.site-theme-preview .price-hourly,
html.theme-light.site-theme-preview .price-hourly .price-num,
html.theme-light.site-theme-preview .plan-name {
    color: #1c2118 !important;
}
html.theme-light.site-theme-preview .plan-loc-chips .loc-chip,
html.theme-light.site-theme-preview .plan-loc-chips .loc-label,
html.theme-light.site-theme-preview .plan-loc-chip,
html.theme-light.site-theme-preview .location-tag {
    color: #1c2118 !important;
    background: rgba(74, 92, 58, 0.10) !important;
    border-color: rgba(74, 92, 58, 0.28) !important;
}
html.theme-light.site-theme-preview .plan-spec-rows,
html.theme-light.site-theme-preview .plan-price-box {
    border-color: #d5cfbf;
}

/* Homepage quick checkout (تسویه سریع) */
html.theme-light.site-theme-preview .checkout-sticky-price {
    background: #ffffff;
    border-color: #d5cfbf;
    box-shadow: 0 8px 20px rgba(28, 33, 24, 0.06);
}
html.theme-light.site-theme-preview .checkout-sticky-price .val,
html.theme-light.site-theme-preview #modal-plan-price,
html.theme-light.site-theme-preview #checkout-sticky-price .val,
html.theme-light.site-theme-preview #checkout-sticky-price .val .price-num {
    color: #1c2118 !important;
}
html.theme-light.site-theme-preview .checkout-sticky-price .lbl,
html.theme-light.site-theme-preview .checkout-pay-trust,
html.theme-light.site-theme-preview #order-modal .form-label {
    color: #5d6554;
}
html.theme-light.site-theme-preview #order-os,
html.theme-light.site-theme-preview #order-location,
html.theme-light.site-theme-preview #order-modal select.form-input,
html.theme-light.site-theme-preview #order-modal .form-input {
    background: #ffffff !important;
    border-color: #d5cfbf !important;
    color: #1c2118 !important;
}
html.theme-light.site-theme-preview .checkout-auth-box {
    background: rgba(74, 92, 58, 0.08);
    border-color: rgba(74, 92, 58, 0.28);
}
html.theme-light.site-theme-preview .checkout-coupon-toggle {
    color: #4a5c3a;
}
html.theme-light.site-theme-preview .close-modal-btn {
    background: #ffffff;
    border-color: #d5cfbf;
    color: #5d6554;
}
html.theme-light.site-theme-preview .close-modal-btn:hover {
    background: #ece6d6;
    color: #1c2118;
}
html.theme-light.site-theme-preview .modal-title,
html.theme-light.site-theme-preview #order-modal .modal-title {
    color: #1c2118;
}

/* Contact page cards */
html.theme-light.site-theme-preview .contact-card,
html.theme-light.site-theme-preview a.contact-card,
html.theme-light.site-theme-preview a.contact-card:visited {
    color: #1c2118;
    background: #fffcf6;
    border-color: #d5cfbf;
}
html.theme-light.site-theme-preview .contact-card:hover,
html.theme-light.site-theme-preview a.contact-card:hover {
    background: #ffffff;
    border-color: rgba(74, 92, 58, 0.45);
    color: #1c2118;
}
html.theme-light.site-theme-preview .contact-card h2,
html.theme-light.site-theme-preview .contact-value {
    color: #1c2118 !important;
}
html.theme-light.site-theme-preview .contact-card p {
    color: #5d6554;
}
html.theme-light.site-theme-preview .contact-kicker {
    color: #4a5c3a;
}

/* Terms + privacy legal pages */
html.theme-light.site-theme-preview .legal-content h2,
html.theme-light.site-theme-preview .legal-content strong {
    color: #1c2118 !important;
}
html.theme-light.site-theme-preview .legal-content h2 span {
    color: #4a5c3a;
}
html.theme-light.site-theme-preview .legal-content p,
html.theme-light.site-theme-preview .legal-content ul,
html.theme-light.site-theme-preview .legal-content li {
    color: #5d6554;
}
html.theme-light.site-theme-preview .legal-content h2 {
    border-bottom-color: #d5cfbf;
}
html.theme-light.site-theme-preview .footer-col-title {
    color: #1c2118;
}

html.theme-light.site-theme-preview .plan-os-tag-linux,
html.theme-light.site-theme-preview .plan-pick-badge-linux {
    color: #166534 !important;
    background: rgba(22, 163, 74, 0.14) !important;
    border-color: rgba(22, 163, 74, 0.32) !important;
}
html.theme-light.site-theme-preview .plan-os-tag-windows,
html.theme-light.site-theme-preview .plan-pick-badge-windows {
    color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.12) !important;
    border-color: rgba(37, 99, 235, 0.32) !important;
}
html.theme-light.site-theme-preview .plan-role-ribbon.is-starter {
    color: #3d4e30;
    background: rgba(74, 92, 58, 0.16);
    border-color: rgba(74, 92, 58, 0.38);
}

html.theme-light.panel-theme .server-control-hint {
    color: #166534;
    background: rgba(22, 163, 74, 0.16);
    border-color: rgba(22, 163, 74, 0.35);
}
html.theme-light.panel-theme .server-control-hint.is-off {
    color: #92400e;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(217, 119, 6, 0.38);
}
html.theme-light.panel-theme #impersonate-banner {
    background: rgba(74, 92, 58, 0.12) !important;
    border-color: rgba(74, 92, 58, 0.38) !important;
    color: #1c2118 !important;
}

/* ==========================================================================
   Admin dashboard metrics (user panel CSS strips .metric-card chrome)
   ========================================================================== */
html.admin-shell .metrics-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    border-bottom: 0;
    padding: 0;
    margin-bottom: 1.5rem;
}
html.admin-shell .metric-card {
    background: rgba(22, 25, 20, 0.42) !important;
    border: 1px solid rgba(236, 223, 204, 0.12) !important;
    box-shadow: var(--admin-shadow, 0 8px 24px rgba(6, 8, 5, 0.42)) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(22px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
    padding: 0.85rem 0.95rem !important;
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
html.admin-shell .metric-icon {
    display: block !important;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}
html.admin-shell .metric-val {
    font-size: 1.25rem;
    white-space: nowrap;
}
html.admin-shell .metric-label {
    font-size: 0.72rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
html.theme-light.admin-shell .metric-card {
    background: #fffcf6 !important;
    border-color: #d5cfbf !important;
    box-shadow: none !important;
}

html.admin-shell .panel-navbar-actions {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    flex-shrink: 0;
}

html.admin-shell .glass-card:has(.data-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
html.admin-shell .data-table {
    min-width: 640px;
}

/* ==========================================================================
   Admin panel — phone / small tablet
   ========================================================================== */
@media (max-width: 1024px) {
    html.admin-shell .metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    html.admin-shell .panel-navbar {
        gap: 0.5rem;
        padding: max(0.7rem, env(safe-area-inset-top, 0px)) 0.85rem 0.7rem;
        flex-wrap: nowrap;
    }
    html.admin-shell .panel-navbar .panel-title {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    html.admin-shell .panel-navbar-actions {
        gap: 0.4rem;
    }
    html.admin-shell .panel-navbar-actions .btn-sm {
        padding: 0.4rem 0.55rem;
        font-size: 0.72rem;
    }

    html.admin-shell .tab-content {
        padding: 1rem 0.85rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    html.admin-shell .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
    html.admin-shell .metric-card {
        padding: 0.7rem 0.75rem !important;
    }
    html.admin-shell .metric-val { font-size: 1.1rem; }

    html.admin-shell .tab-content [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    html.admin-shell .tab-content > div[style*="display:flex"] {
        flex-wrap: wrap !important;
        gap: 0.6rem;
    }
    html.admin-shell .tab-content > div[style*="display:flex"] > div[style*="display:flex"] {
        flex-wrap: wrap !important;
        gap: 0.4rem;
        width: 100%;
    }

    html.admin-shell .search-bar {
        flex-wrap: wrap;
        align-items: stretch;
    }
    html.admin-shell .search-bar .search-input {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
        font-size: 16px;
    }
    html.admin-shell .form-input,
    html.admin-shell select.form-input,
    html.admin-shell textarea.form-input {
        font-size: 16px;
        max-width: 100%;
    }

    html.admin-shell .user-detail-grid {
        grid-template-columns: 1fr;
    }

    html.admin-shell .data-table {
        font-size: 0.78rem;
        min-width: 720px;
    }
    html.admin-shell .data-table th,
    html.admin-shell .data-table td {
        padding: 0.65rem 0.7rem;
        vertical-align: top;
    }
    html.admin-shell .data-table .btn {
        min-height: 36px;
        font-size: 0.72rem;
        padding: 0.35rem 0.55rem;
    }

    html.admin-shell .modal-backdrop {
        padding: 0;
        align-items: flex-end;
        justify-content: stretch;
    }
    html.admin-shell .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100dvh;
        border-radius: 16px 16px 0 0;
        padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
        margin: 0;
    }
    html.admin-shell .modal-content[style*="max-width"] {
        max-width: 100% !important;
    }
    html.admin-shell .modal-content [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    html.admin-shell .modal-header {
        gap: 0.75rem;
        align-items: flex-start;
    }
    html.admin-shell .modal-title {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    html.admin-shell .btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    html.admin-shell .panel-navbar-actions .nav-user-panel-link {
        display: none;
    }
    html.admin-shell .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    html.admin-shell .metric-icon {
        font-size: 1.05rem;
    }
}

/* GPU order tab + public AI catalog: readable cards and styled selects in light mode */
html.theme-light.panel-theme .plan-spec-rows .k {
    color: #5d6554;
}
html.theme-light.panel-theme .plan-spec-rows .v,
html.theme-light.panel-theme .price-val,
html.theme-light.panel-theme .price-val .price-num,
html.theme-light.panel-theme .plan-name,
html.theme-light.panel-theme .checkout-heading,
html.theme-light.panel-theme .checkout-summary-title,
html.theme-light.panel-theme .checkout-summary-name,
html.theme-light.panel-theme .checkout-summary-block-title,
html.theme-light.panel-theme #tab-order-gpu .tickets-empty {
    color: #1c2118 !important;
}
html.theme-light.panel-theme .plan-loc-chips .loc-chip,
html.theme-light.panel-theme .plan-loc-chips .loc-label {
    color: #1c2118 !important;
    background: rgba(74, 92, 58, 0.10) !important;
    border-color: rgba(74, 92, 58, 0.28) !important;
}
html.theme-light.panel-theme .plan-spec-rows,
html.theme-light.panel-theme .plan-price-box {
    border-color: #d5cfbf;
}
html.theme-light.panel-theme .plan-card.popular {
    background: #fffcf6;
    border-color: rgba(74, 92, 58, 0.38);
    box-shadow: none;
}
html.theme-light.panel-theme .subfilter-pill {
    background: #fffcf6;
    border-color: #d5cfbf;
    color: #5d6554;
}
html.theme-light.panel-theme .subfilter-pill.active,
html.theme-light.panel-theme .subfilter-pill:hover {
    border-color: #4a5c3a;
    color: #1c2118;
    background: rgba(74, 92, 58, 0.10);
}
html.theme-light.panel-theme #tab-order-gpu .checkout-summary {
    background: #fffcf6;
    border-color: #d5cfbf;
    box-shadow: none;
}
html.theme-light.panel-theme #tab-order-gpu .checkout-summary-plan {
    background: rgba(74, 92, 58, 0.10);
    border-color: rgba(74, 92, 58, 0.28);
}
html.theme-light.panel-theme select.theme-select,
html.theme-light.site-theme-preview select.theme-select {
    background-color: #ffffff;
    border-color: #d5cfbf;
    color: #1c2118;
    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='%234a5c3a' stroke-width='1.8' stroke-linecap='round' d='M1.5 1.8L6 6.2 10.5 1.8'/%3E%3C/svg%3E");
}
html.theme-light.panel-theme select.theme-select:focus,
html.theme-light.site-theme-preview select.theme-select:focus {
    border-color: #4a5c3a;
    box-shadow: 0 0 0 3px rgba(74, 92, 58, 0.18);
}
html.theme-light.site-theme-preview .gpu-llm-toggle {
    background: #fffcf6;
    border-color: #d5cfbf;
    color: #5d6554;
}
html.theme-light.site-theme-preview .gpu-llm-toggle:has(input:checked) {
    border-color: #4a5c3a;
    color: #1c2118;
    background: rgba(74, 92, 58, 0.10);
}

