/* ═══════════════════════════════════════════════════════════════════════════
   style.css — Single source of CSS for the dashboard theme
   ─────────────────────────────────────────────────────────────────────────
   Deduplicated from original (7,824 → 8068 lines).
   All rules preserved; duplicate definitions removed (last wins).
   ─────────────────────────────────────────────────────────────────────────
   THEME-SPECIFIC sections (★) — swap these per theme:
     §1  CSS Custom Properties (tokens)
     §7  Cards & Surfaces
     §8  Sidebar layout
     §9  Navbar
     §11 Dashboard stat cards
     §16 Profile page
     §27 Dark theme overrides
   ═══════════════════════════════════════════════════════════════════════════ */

/* =============================================================================
   ROOT VARIABLES
   ============================================================================= */
:root {
    /* Brand */
    --accent:               #0d6efd;
    --accent-dark:          #004dc7;
    --accent-hover:         #1d4ed8;
    --accent-deep:          #2563eb;

    /* VPS / Post-Purchase */
    --vps-accent:           #6366f1;
    --vps-accent-dark:      #4338ca;
    --vps-border:           #e2e8f0;

    /* Backgrounds */
    --bg:                   #f4f7fa;
    --bg-soft:              #f8fafc;
    --bg-white:             #ffffff;
    --bg-subtle:            #f1f5f9;
    --glass:                rgba(255, 255, 255, 0.8);

    /* Borders */
    --border-light:         #f1f5f9;
    --border-base:          #e2e8f0;
    --border-mid:           #cbd5e1;
    --border-dark:          #e0e0e0;

    /* Text */
    --text-heading:         #1e293b;
    --text-body:            #334155;
    --text-muted:           #64748b;
    --text-faint:           #94a3b8;
    --text-dark:            #111827;

    /* Status - Success */
    --success:              #16a34a;
    --success-bg:           #dcfce7;
    --success-text:         #15803d;
    --success-soft-bg:      #f0fdf4;

    /* Status - Warning */
    --warning:              #d97706;
    --warning-bg:           #fef9c3;
    --warning-text:         #a16207;
    --warning-soft-bg:      #fffbeb;

    /* Status - Danger */
    --danger:               #dc2626;
    --danger-alt:           #e11d48;
    --danger-bg:            #fee2e2;
    --danger-text:          #b91c1c;
    --danger-soft-bg:       #fef2f2;

    /* Status - Info */
    --info:                 #0369a1;
    --info-bg:              #e0f2fe;

    /* Status - Secondary */
    --secondary-bg:         #f1f5f9;
    --secondary-text:       #475569;

    /* Skeleton */
    --skeleton-base:        #e9ecef;
    --skeleton-shimmer:     #f8f9fa;

    /* Radius */
    --radius-sm:            8px;
    --radius-md:            12px;
    --radius-lg:            16px;
    --radius-xl:            20px;
    --radius-2xl:           24px;
    --radius-pill:          50px;

    /* Shadows */
    --shadow-sm:            0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md:            0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg:            0 15px 35px rgba(0, 0, 0, 0.05);
    --shadow-accent:        0 10px 15px -3px rgba(37, 99, 235, 0.3);
    --shadow-accent-hover:  0 15px 20px -5px rgba(37, 99, 235, 0.4);

    /* Sidebar */
    --sidebar-width:        260px;
    --sidebar-collapsed:    60px;
    --sidebar-overlay:      70px;

    /* Navbar */
    --navbar-height:        70px;

    /* Sidebar active / hover */
    --side-active-bg:        #eff6ff;
    --side-active-text:      #2563eb;
    --side-hover-bg:         #f8fafc;
    --side-hover-text:       #2563eb;

    /* Scrollbar */
    --scrollbar-thumb:       #cbd5e1;
    --scrollbar-thumb-hover: #94a3b8;

    /* Navbar balance chip */
    --chip-bg:               #f8f9fa;
    --chip-border:           #e9ecef;
}

/* ═══════════════════════════════════════════════════════════
   PAGE VIEWER  —  wide two-column layout
   ═══════════════════════════════════════════════════════════ */

.upv-price-cycle { font-size:.72rem; color:var(--text-muted); margin-inline-start:.25rem; }
.upv-price-from  { font-size:.72rem; color:var(--text-muted); margin-inline-end:.15rem; }
/* ── Page-level reset ── */
.pv-outer {
    padding: 2rem 1.5rem 4rem;
    min-height: calc(100vh - 120px);
}

/* ── Two-column grid ── */
.pv-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.75rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) { .pv-grid { grid-template-columns: 240px 1fr; } }

@media (max-width: 768px)  { .pv-grid { grid-template-columns: 1fr; } }
/* ════════════════════════════════
   Page
════════════════════════════════ */
.upv-page { padding: 1.75rem 0 5rem; }

/* ════════════════════════════════
   Header card
════════════════════════════════ */
.upv-hd {
    background: linear-gradient(135deg, var(--accent, #0078d4) 0%, var(--accent-dark, #005fa3) 100%);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* subtle decorative circle */
.upv-hd::after {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    top: -80px; right: -60px;
    pointer-events: none;
}

/* row 1 — icon · name · badge */
.upv-hd-title-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
    position: relative;
    flex-wrap: wrap;
}
.upv-hd-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    background: rgba(255,255,255,.18);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.upv-hd-name {
    font-size: 1.2rem; font-weight: 700;
    flex: 1; min-width: 0;
    line-height: 1.25;
    letter-spacing: -.01em;
}

/* row 2 — meta items */
.upv-hd-meta {
    display: flex; flex-wrap: wrap;
    gap: .4rem 1.5rem;
    font-size: .78rem;
    color: rgba(255,255,255,.7);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.14);
    position: relative;
}
.upv-hd-meta-item { display: flex; align-items: center; gap: .3rem; }
.upv-hd-meta-item i { opacity: .65; }
.upv-hd-meta-item b { color: #fff; font-weight: 600; }

/* row 3 — action buttons */
.upv-hd-actions {
    display: flex; gap: .6rem; flex-wrap: wrap;
    align-items: center;
    position: relative;
}

/* ════════════════════════════════
   Status badge  upv-sb-*
════════════════════════════════ */
.upv-sb {
    display: inline-flex; align-items: center; gap: 4px;
    padding: .2rem .65rem;
    border-radius: 50px;
    font-size: .66rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .07em;
    flex-shrink: 0;
    border: 1px solid transparent;
}
/* dot */
.upv-sb::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .8;
    flex-shrink: 0;
}
.upv-sb-active    { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.upv-sb-pending   { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.upv-sb-suspended { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.upv-sb-cancelled { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.upv-sb-expired   { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }

/* ════════════════════════════════
   Buttons
════════════════════════════════ */
.upv-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem 1.2rem;
    border-radius: 8px;
    font-size: .82rem; font-weight: 600;
    cursor: pointer; border: none;
    transition: opacity .15s, transform .15s, box-shadow .15s;
    white-space: nowrap;
}
.upv-btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* Extend — white, accent text */
.upv-btn-extend {
    background: #fff;
    color: var(--accent, #0078d4);
    box-shadow: 0 1px 4px rgba(0,0,0,.15), 0 0 0 1px rgba(255,255,255,.5);
}
.upv-btn-extend:hover:not(:disabled) {
    background: #f0f7ff;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
    transform: translateY(-1px);
}

/* Cancel — transparent white outline */
.upv-btn-cancel {
    background: rgba(255,255,255,.12);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.upv-btn-cancel:hover:not(:disabled) {
    background: #ef4444;
    box-shadow: inset 0 0 0 1px #ef4444;
}

/* ════════════════════════════════
   Cancelled state card
════════════════════════════════ */
.upv-cancelled-notice {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-base, #e2e8f0);
    border-radius: 14px;
    padding: 2.5rem 1.5rem;
    text-align: center;
}
.upv-cancelled-icon {
    width: 56px; height: 56px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #94a3b8;
    margin: 0 auto 1rem;
}

/* ════════════════════════════════
   Module card
════════════════════════════════ */
.upv-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-base, #e2e8f0);
    border-radius: 14px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

/* ════════════════════════════════
   Skeleton
════════════════════════════════ */
.upv-skeleton {
    background: linear-gradient(90deg,
        var(--bg-soft, #f1f5f9) 25%,
        var(--bg-subtle, #e2e8f0) 50%,
        var(--bg-soft, #f1f5f9) 75%);
    background-size: 200% 100%;
    animation: upv-shimmer 1.4s infinite;
    border-radius: 12px;
}
@keyframes upv-shimmer {
    0%   { background-position: 200% 0 }
    100% { background-position: -200% 0 }
}

.hidden { display: none !important; }
/* ═══════════════════
   LEFT — Page nav
   ═══════════════════ */
.pv-nav-panel {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.pv-nav-header {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 0 .5rem .4rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: .25rem;
}

.pv-nav-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    text-decoration: none;
    color: var(--text-body);
    transition: all .18s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pv-nav-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: transparent;
    transition: background .18s;
}

.pv-nav-card:hover {
    border-color: var(--accent);
    background: #f5f8ff;
    color: var(--accent);
    transform: translateX(2px);
    box-shadow: 0 2px 12px rgba(13,110,253,.08);
}

.pv-nav-card:hover::before { background: var(--accent); }

.pv-nav-card.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%);
    color: var(--accent);
    box-shadow: 0 2px 16px rgba(13,110,253,.12);
}

.pv-nav-card.active::before { background: var(--accent); }

.pv-nav-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    background: var(--bg-subtle);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all .18s;
}

.pv-nav-card.active .pv-nav-icon {
    background: var(--accent);
    color: #fff;
}

.pv-nav-card:hover .pv-nav-icon {
    background: var(--accent);
    color: #fff;
}

.pv-nav-label {
    flex: 1;
    font-size: .83rem;
    font-weight: 600;
    line-height: 1.3;
}

.pv-nav-arrow {
    font-size: .7rem;
    color: var(--text-faint);
    transition: all .18s;
}

.pv-nav-card:hover .pv-nav-arrow,
.pv-nav-card.active .pv-nav-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* Mobile: horizontal scrolling nav */
@media (max-width: 768px) {
    .pv-nav-panel {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: .5rem;
        gap: .5rem;
    }
    .pv-nav-header { display: none; }
    .pv-nav-card {
        flex-shrink: 0;
        padding: .55rem .85rem;
        gap: .5rem;
        transform: none !important;
    }
    .pv-nav-icon { width: 28px; height: 28px; font-size: .82rem; }
    .pv-nav-label { font-size: .78rem; white-space: nowrap; }
    .pv-nav-arrow { display: none; }
}

/* ═══════════════════
   RIGHT — Article
   ═══════════════════ */
.pv-article {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

/* Hero banner */
.pv-hero {
    background: linear-gradient(135deg, var(--accent-deep,#2563eb) 0%, var(--vps-accent,#6366f1) 100%);
    padding: 2.75rem 3rem 2.25rem;
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    overflow: hidden;
}

.pv-hero::after {
    content: '';
    position: absolute;
    right: -40px; top: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}

.pv-hero::before {
    content: '';
    position: absolute;
    right: 60px; bottom: -60px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}

.pv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 99px;
    padding: .22rem .75rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: .9rem;
    backdrop-filter: blur(4px);
}

.pv-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 .75rem;
    letter-spacing: -.03em;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.pv-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: .78rem;
    opacity: .75;
    position: relative;
    z-index: 1;
}

.pv-hero-meta-item {
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* Content card */
.pv-content-card {
    background: var(--bg-white);
    border: 1px solid var(--border-base);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Prose */
.pv-prose {
    padding: 2.75rem 3rem;
    line-height: 1.9;
    color: var(--text-body);
    font-size: .95rem;
    max-width: 100%;
}

.pv-prose > *:first-child { margin-top: 0 !important; }

.pv-prose > *:last-child  { margin-bottom: 0 !important; }

.pv-prose h1,.pv-prose h2,.pv-prose h3,
.pv-prose h4,.pv-prose h5,.pv-prose h6 {
    color: var(--text-heading);
    font-weight: 700;
    margin: 2rem 0 .65rem;
    line-height: 1.3;
}

.pv-prose h2 {
    font-size: 1.3rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border-light);
}

.pv-prose h3 { font-size: 1.1rem; }

.pv-prose h4 { font-size: .98rem; }

.pv-prose p  { margin: 0 0 1.1rem; }

.pv-prose ul,.pv-prose ol { padding-left: 1.75rem; margin-bottom: 1.1rem; }

.pv-prose li { margin-bottom: .4rem; }

.pv-prose a  { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.pv-prose a:hover { color: var(--accent-dark); }

.pv-prose blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--bg-subtle);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: .92rem;
}

.pv-prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: .88rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border-base);
}

.pv-prose th {
    background: var(--bg-subtle);
    font-weight: 700;
    text-align: left;
    padding: .6rem .85rem;
    border-bottom: 1px solid var(--border-base);
    color: var(--text-heading);
}

.pv-prose td {
    padding: .55rem .85rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.pv-prose tr:last-child td { border-bottom: none; }

.pv-prose hr {
    border: none;
    border-top: 1px solid var(--border-base);
    margin: 2rem 0;
}

.pv-prose code {
    background: var(--bg-subtle);
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .83em;
    color: var(--danger);
    font-family: monospace;
}

.pv-prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-size: .84rem;
    line-height: 1.7;
}

.pv-prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

.pv-prose img { max-width: 100%; border-radius: var(--radius-sm); }

.pv-prose strong { color: var(--text-heading); }

/* Content footer strip */
.pv-content-footer {
    padding: 1.1rem 3rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .76rem;
    color: var(--text-faint);
}

.pv-footer-pages {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.pv-footer-page-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: .74rem;
    transition: color .15s;
}

.pv-footer-page-link:hover { color: var(--accent); }

/* Empty state */
.pv-empty {
    padding: 4rem 3rem;
    text-align: center;
    color: var(--text-faint);
}

.pv-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: .25; }

.pv-empty p { font-size: .88rem; margin: 0; }

/* ═══════════════════
   404
   ═══════════════════ */
.pv-404-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.pv-404-code {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--border-mid), var(--border-base));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
}

.pv-404-wrap h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-heading); margin: 0 0 .6rem; }

.pv-404-wrap p  { color: var(--text-muted); margin-bottom: 1.75rem; font-size: .92rem; }

/* ═══════════════════
   Icon map
   ═══════════════════ */

/* RTL */
[dir="rtl"] .pv-prose blockquote  { border-left: none; border-right: 4px solid var(--accent); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

[dir="rtl"] .pv-prose ul,[dir="rtl"] .pv-prose ol { padding-left: 0; padding-right: 1.75rem; }

[dir="rtl"] .pv-hero::after  { right: auto; left: -40px; }

[dir="rtl"] .pv-hero::before { right: auto; left: 60px; }

[dir="rtl"] .pv-nav-card:hover { transform: translateX(-2px); }

[dir="rtl"] .pv-nav-card::before { left: auto; right: 0; }

[dir="rtl"] .pv-nav-arrow { transform: scaleX(-1); }

[dir="rtl"] .pv-nav-card:hover .pv-nav-arrow,
[dir="rtl"] .pv-nav-card.active .pv-nav-arrow { transform: scaleX(-1) translateX(3px); }

.cm-section {
    max-width:1400px; margin:1.5rem auto 0;
    padding:1.75rem;
    background:var(--bg-white);
    border-radius:var(--radius-md);
    box-shadow:var(--shadow-sm);
}

/* ── Comment card ── */
.cm-card {
    border:1px solid var(--border-base);
    border-radius:var(--radius-md);
    padding:1rem 1.1rem;
    background:var(--bg-white);
    transition:box-shadow .15s;
}

.cm-card:hover { box-shadow:var(--shadow-sm); }

/* ── Reply thread indent ── */
.cm-replies {
    margin-inline-start:2.6rem;
    margin-top:.6rem;
    padding-inline-start:1rem;
    border-inline-start:2px solid var(--border-base);
}

.cm-reply-card {
    border:1px solid var(--border-light);
    border-radius:var(--radius-sm);
    padding:.75rem 1rem;
    background:var(--bg-soft);
    transition:box-shadow .15s;
}

.cm-reply-card:hover { box-shadow:var(--shadow-sm); }

/* ── Avatar ── */
.cm-avatar {
    width:36px; height:36px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-weight:700; font-size:.85rem; flex-shrink:0; color:#fff;
}

.cm-avatar-sm {
    width:28px; height:28px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-weight:700; font-size:.72rem; flex-shrink:0; color:#fff;
}

/* ── Vote column ── */
.cm-vote-col {
    display:flex; flex-direction:column;
    align-items:center; gap:1px; min-width:34px;
}

.cm-vote-btn {
    background:none; border:none; padding:2px 5px;
    border-radius:6px; cursor:pointer; color:var(--text-muted);
    font-size:.95rem; line-height:1;
    transition:color .15s, background .15s;
}

.cm-vote-btn:hover           { background:var(--bg-subtle); color:var(--text-heading); }

.cm-vote-btn.up.active       { color:var(--success); background:var(--success-bg); }

.cm-vote-btn.down.active     { color:var(--danger);  background:var(--danger-bg);  }

.cm-vote-count {
    font-size:.75rem; font-weight:700;
    color:var(--text-muted); min-width:1.5rem; text-align:center;
}

.cm-vote-count.pos { color:var(--success); }

.cm-vote-count.neg { color:var(--danger);  }

/* ── Text ── */
.cm-author   { font-weight:600; font-size:.88rem; color:var(--text-heading); }

.cm-meta     { font-size:.74rem; color:var(--text-faint); }

.cm-body     { color:var(--text-body); line-height:1.65; white-space:pre-wrap; word-break:break-word; font-size:.92rem; }

.cm-guest-badge {
    font-size:.66rem; background:var(--bg-subtle);
    color:var(--text-muted); padding:1px 6px;
    border-radius:20px; border:1px solid var(--border-base);
}

/* ── Action buttons row ── */
.cm-actions { display:flex; align-items:center; gap:.25rem; margin-top:.5rem; }

.cm-action-btn {
    background:none; border:none; padding:2px 8px;
    border-radius:6px; cursor:pointer;
    font-size:.77rem; color:var(--text-muted);
    transition:color .15s, background .15s;
    display:flex; align-items:center; gap:.3rem;
}

.cm-action-btn:hover { color:var(--accent); background:var(--bg-subtle); }

.cm-delete-btn {
    background:none; border:none; padding:2px 6px;
    border-radius:6px; cursor:pointer; color:var(--text-faint);
    font-size:.8rem; transition:color .15s, background .15s;
}

.cm-delete-btn:hover { color:var(--danger); background:var(--danger-bg); }

/* ── Reply form (inline, hidden by default) ── */
.cm-reply-form {
    margin-top:.6rem;
    padding:.75rem;
    background:var(--bg-subtle);
    border-radius:var(--radius-sm);
    border:1px solid var(--border-base);
    display:none;
}

.cm-reply-form.open { display:block; }

.cm-textarea, .cm-input {
    width:100%; border:1px solid var(--border-base);
    border-radius:var(--radius-sm); padding:.45rem .7rem;
    background:var(--bg-white); color:var(--text-body);
    font-size:.88rem; resize:vertical;
    transition:border-color .15s, box-shadow .15s;
    font-family:inherit;
}

.cm-textarea { min-height:72px; }

.cm-textarea:focus, .cm-input:focus {
    outline:none; border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(13,110,253,.1);
}

/* ── Main form card ── */
.cm-form-card {
    background:var(--bg-soft);
    border:1px solid var(--border-base);
    border-radius:var(--radius-md);
    padding:1.25rem;
    margin-bottom:1.25rem;
}

/* ── Disabled notice ── */
.cm-disabled-notice {
    text-align:center; padding:2rem;
    color:var(--text-muted); background:var(--bg-subtle);
    border-radius:var(--radius-md); border:1px dashed var(--border-mid);
}

/* ── Skeleton ── */
.cm-skel {
    background:var(--skeleton-base); border-radius:4px;
    animation:cm-pulse 1.4s ease-in-out infinite;
}

@keyframes cm-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── Admin toggle strip ── */
.cm-admin-bar {
    display:flex; align-items:center; gap:.6rem;
    padding:.5rem .75rem; border-radius:var(--radius-sm);
    background:var(--warning-soft-bg); border:1px solid var(--warning-bg);
    margin-bottom:1rem;
}

/* ══════════════════════════════════════════════════════════════
   Login Surface Widget — scoped under .lsw-wrap
══════════════════════════════════════════════════════════════ */
/* ── Scoped overrides / additions for user-products table ──────── */

/* RTL: product icon margin flip */
[dir="rtl"] .up-modern-grid .up-product-icon {
    margin-right: 0;
    margin-left: 12px;
}

/* RTL: actions column alignment */
[dir="rtl"] .up-act-th,
[dir="rtl"] .up-act-td { text-align: start !important; }

/* RTL: search input-group   LTR:[🔍][input]   RTL:[input][🔍] */
[dir="rtl"] .up-search-icon {
    order: 2;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    border-left: 1px solid var(--border-base) !important;
    border-right: 0 !important;
}

/* RTL: filter button row */
[dir="rtl"] .up-filter-end { justify-content: flex-start !important; }

/* RTL: renew modal footer stays centered */
[dir="rtl"] .up-renew-modal-footer { flex-direction: row; }

/* Category chips on rows */
.up-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: .65rem;
    font-weight: 600;
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-base);
    white-space: nowrap;
}

/* Auto-renewal toggle */
.up-renewal-switch {
    width: 40px;
    height: 22px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.up-renewal-switch input { opacity: 0; width: 0; height: 0; }

.up-renewal-slider {
    position: absolute;
    inset: 0;
    background: var(--border-mid);
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s;
}

.up-renewal-slider::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.up-renewal-switch input:checked + .up-renewal-slider { background: var(--success); }

.up-renewal-switch input:checked + .up-renewal-slider::before { transform: translateX(18px); }

.up-renewal-switch input:disabled + .up-renewal-slider { opacity: .5; cursor: not-allowed; }

/* Category filter pills in filter bar */
.up-cat-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.up-cat-filter-btn {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 600;
    border: 1.5px solid var(--border-base);
    background: var(--bg-white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}

.up-cat-filter-btn:hover,
.up-cat-filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.lsw-wrap {
    width: 100%; max-width: 440px;
    margin: 0 auto;
    font-family: inherit;
}

/* Card */
.lsw-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-base, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    overflow: hidden;
}

/* Brand strip */
.lsw-brand {
    background: var(--accent, #0d6efd);
    padding: 1.75rem 2rem 1.4rem;
    text-align: center; color: #fff;
}

.lsw-brand-logo {
    height: 30px; width: auto; object-fit: contain;
    margin-bottom: .6rem; display: block; margin-inline: auto;
    filter: brightness(0) invert(1);
}

.lsw-brand-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .15rem; }

.lsw-brand-sub  { font-size: .75rem; opacity: .82; }

/* Tabs */
.lsw-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-base, #e2e8f0);
    background: var(--bg-subtle, #f8fafc);
}

.lsw-tab {
    flex: 1; padding: .7rem .5rem; text-align: center;
    font-size: 13px; font-weight: 600; cursor: pointer;
    border: none; background: none;
    color: var(--text-muted, #64748b);
    border-bottom: 2px solid transparent;
    transition: color .12s, border-color .12s;
}

.lsw-tab.active {
    color: var(--accent, #0d6efd);
    border-bottom-color: var(--accent, #0d6efd);
    background: var(--bg-white, #fff);
}

.lsw-tab:hover:not(.active) { color: var(--text-heading, #1e293b); }

/* Body */
.lsw-body { padding: 1.6rem 1.75rem 1.25rem; }

/* Label */
.lsw-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--text-muted, #64748b);
    margin-bottom: .25rem; display: block;
}

/* Input */
.lsw-input {
    width: 100%; padding: 9px 12px; font-size: 13px;
    border: 1px solid var(--border-base, #e2e8f0);
    border-radius: 7px;
    background: var(--bg-white, #fff);
    color: var(--text-heading, #1e293b);
    transition: border-color .12s, box-shadow .12s;
    outline: none; margin-bottom: 1rem;
    appearance: none; -webkit-appearance: none;
}

.lsw-input:focus {
    border-color: var(--accent, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13,110,253,.1);
}

.lsw-input:last-of-type { margin-bottom: 0; }

/* Primary button */
.lsw-btn {
    width: 100%; padding: 10px;
    background: var(--accent, #0d6efd); color: #fff;
    border: none; border-radius: 7px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: opacity .12s; margin-top: 1.1rem;
}

.lsw-btn:hover    { opacity: .88; }

.lsw-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Google button */
.lsw-btn-google {
    width: 100%; padding: 9px 12px; margin-top: .75rem;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    background: #fff; color: #3c4043;
    border: 1px solid #dadce0; border-radius: 7px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    transition: background .12s, box-shadow .12s; text-decoration: none;
}

.lsw-btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(60,64,67,.2); color: #3c4043; }

.lsw-btn-google svg   { width: 17px; height: 17px; flex-shrink: 0; }

[data-theme="dark"] .lsw-btn-google       { background: #303134; color: #e8eaed; border-color: #5f6368; }

[data-theme="dark"] .lsw-btn-google:hover { background: #3c3e42; }

/* Divider */
.lsw-divider {
    display: flex; align-items: center; gap: 9px;
    margin: 1rem 0 0; font-size: 11px; color: var(--text-muted, #64748b);
}

.lsw-divider::before, .lsw-divider::after {
    content: ''; flex: 1; height: 1px;
    background: var(--border-base, #e2e8f0);
}

/* Alert */
.lsw-alert {
    font-size: 12px; border-radius: 7px;
    padding: 8px 12px; margin-bottom: 1rem; display: none;
}

.lsw-alert.show    { display: block; }

.lsw-alert.danger  { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

.lsw-alert.success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

/* Footer */
.lsw-footer {
    text-align: center;
    padding: .65rem 1.75rem 1.25rem;
    border-top: 1px solid var(--border-base, #e2e8f0);
    font-size: 12px; color: var(--text-muted, #64748b);
}

.lsw-footer a { color: var(--accent, #0d6efd); text-decoration: none; font-weight: 600; }

.lsw-footer a:hover { text-decoration: underline; }

/* OTP step */
.lsw-otp-wrap { text-align: center; }

.lsw-otp-icon { font-size: 3rem; margin-bottom: .75rem; }

.lsw-otp-title { font-size: 1rem; font-weight: 700; margin-bottom: .25rem;
                  color: var(--text-heading, #1e293b); }

.lsw-otp-desc  { font-size: .82rem; color: var(--text-muted, #64748b); margin-bottom: 1.25rem; }

.lsw-otp-code  {
    text-align: center; letter-spacing: .3em;
    font-size: 1.4rem; font-weight: 700;
}

.lsw-back-btn {
    background: none; border: none; cursor: pointer;
    margin-top: .75rem; font-size: 12px;
    color: var(--text-muted, #64748b);
}

.lsw-back-btn:hover { color: var(--accent, #0d6efd); }

/* ── Collapse icon via CSS pseudo — no JS class needed ── */
    #sidebarCollapseIcon::before                              { content: "\F284"; }

/* Pre-paint collapsed layout — applied by inline script above */
    [data-sidebar-collapsed="1"] #mainSidebar        { width: var(--sidebar-collapsed) !important; }

/* Footer */
    .up-footer {
        margin-left: var(--sidebar-width);
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--bg-white);
        border-top: 1px solid var(--border-base);
        padding: 2rem 2rem 1rem;
    }

.sidebar-collapsed-content ~ .up-footer { margin-left: var(--sidebar-collapsed); }

html,body { height:100%; }

/* Logos */
    .up-side-logo-img  { max-height:36px; width:auto; object-fit:contain; display:block; }

.sidebar-collapsed .up-side-logo-img,
    [data-sidebar-collapsed="1"] .up-side-logo-img  { display:none; }

.sidebar-collapsed .up-side-logo-icon,
    [data-sidebar-collapsed="1"] .up-side-logo-icon { display:block; }

@media (max-width:767.98px) {
        #mainNavbar  { left:0 !important; }
        .up-footer   { margin-left:0 !important; padding:1.5rem 1rem .8rem; }
        .up-footer__top { flex-direction:column; gap:1.5rem; }
        .up-footer__cols { gap:1.2rem; }
    }

/* ══════════════════════════════════════════════════════════
       RTL OVERRIDES — activated by dir="rtl" on <html>
    ══════════════════════════════════════════════════════════ */
    [dir="rtl"] #mainSidebar {
        left:auto; right:0;
        border-right:none; border-left:1px solid var(--border-base);
    }

[dir="rtl"] .main-content  { margin-left:0; margin-right:var(--sidebar-width); }

[dir="rtl"] #mainNavbar    { left:0; right:var(--sidebar-width); transition:right 0.3s cubic-bezier(0.4,0,0.2,1); }

[dir="rtl"] .up-footer     { margin-left:0; margin-right:var(--sidebar-width); }

[dir="rtl"] #sidebarCollapseBtn {
        left:auto; right:calc(var(--sidebar-width) - 14px);
        transition:right 0.3s cubic-bezier(0.4,0,0.2,1),background 0.2s,color 0.2s;
    }

[dir="rtl"] #sidebarCollapseBtn.collapsed { right:calc(var(--sidebar-collapsed) - 14px); }

/* RTL chevron — expanded=point right, collapsed=point left */
    [dir="rtl"] #sidebarCollapseIcon::before                              { content:"\F285" !important; }

/* Pre-paint RTL collapsed */
    [dir="rtl"][data-sidebar-collapsed="1"] #mainSidebar        { width:var(--sidebar-collapsed) !important; }

[dir="rtl"] .sidebar-collapsed-content ~ .up-footer         { margin-right:var(--sidebar-collapsed); margin-left:0; }

/* Active bar, icon margins, balance chip */
    [dir="rtl"] .up-side-active .up-side-link::before { left:auto; right:0; border-radius:3px 0 0 3px; }

[dir="rtl"] .up-side-link i                        { margin-right:0; margin-left:12px; }

[dir="rtl"] .custom-nb-balance-chip                { margin-left:0; margin-right:auto; }

/* Add Funds modal currency input-group */
    .modal[dir="rtl"] .ab-currency-addon {
        order:2; border-radius:0 var(--bs-border-radius,6px) var(--bs-border-radius,6px) 0 !important;
        border-left:1px solid var(--border-base) !important; border-right:0 !important;
    }

/* Footer bar */
    [dir="rtl"] .up-footer__bar { text-align:right; }

/* btn-close always top-right regardless of direction */
    [dir="rtl"] .btn-close,
    .modal[dir="rtl"] .btn-close {
        margin-left:0 !important;
        margin-inline-start:auto;
        margin-inline-end:0;
    }

[dir="rtl"] .modal-header,
    .modal[dir="rtl"] .modal-header { flex-direction:row; }

/* Mobile RTL — sidebar slides from the right */
    @media (max-width:767.98px) {
        [dir="rtl"] #mainSidebar           { right:0; left:auto; transform:translateX(100%); }
        [dir="rtl"] #mainSidebar.show      { transform:translateX(0); }
        [dir="rtl"] #mainNavbar            { right:0 !important; left:0 !important; }
        [dir="rtl"] .up-footer             { margin-right:0 !important; margin-left:0 !important; }
    }

/* ══════════════════════════════════════════════════════════
       LOGIN HUB MODAL
    ══════════════════════════════════════════════════════════ */
    #loginHubModal .modal-content {
        border-radius: 12px; border: none; overflow: hidden;
        box-shadow: 0 20px 60px rgba(0,0,0,.18);
    }

.lh-brand {
        background: var(--accent, #0d6efd);
        padding: 2rem 2rem 1.5rem;
        text-align: center; color: #fff; position: relative;
    }

.lh-brand-logo  { height: 32px; width: auto; object-fit: contain; margin-bottom: .75rem; filter: brightness(0) invert(1); display: block; margin-inline: auto; }

.lh-brand-name  { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .2rem; }

.lh-brand-sub   { font-size: .78rem; opacity: .8; }

.lh-body        { padding: 1.75rem 2rem 1.5rem; }

.lh-label {
        font-size: 11px; font-weight: 700; text-transform: uppercase;
        letter-spacing: .07em; color: var(--text-muted, #64748b);
        margin-bottom: .3rem; display: block;
    }

.lh-input {
        width: 100%; padding: 9px 12px; font-size: 13px;
        border: 1px solid var(--border-base, #e2e8f0);
        border-radius: 6px;
        background: var(--bg-white, #fff);
        color: var(--text-heading, #1e293b);
        transition: border-color .12s, box-shadow .12s; outline: none;
    }

.lh-input:focus {
        border-color: var(--accent, #0d6efd);
        box-shadow: 0 0 0 3px rgba(13,110,253,.12);
    }

.lh-btn-primary {
        width: 100%; padding: 10px;
        background: var(--accent, #0d6efd); color: #fff;
        border: none; border-radius: 6px;
        font-size: 13px; font-weight: 600;
        cursor: pointer; transition: opacity .12s;
    }

.lh-btn-primary:hover    { opacity: .88; }

.lh-btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.lh-btn-google {
        width: 100%; padding: 9px 12px;
        display: flex; align-items: center; justify-content: center; gap: 10px;
        background: #fff; color: #3c4043;
        border: 1px solid #dadce0; border-radius: 6px;
        font-size: 13px; font-weight: 500;
        cursor: pointer; transition: background .12s, box-shadow .12s;
        text-decoration: none;
    }

.lh-btn-google:hover     { background: #f8f9fa; box-shadow: 0 1px 6px rgba(60,64,67,.2); color: #3c4043; }

.lh-btn-google svg       { width: 18px; height: 18px; flex-shrink: 0; }

[data-theme="dark"] .lh-btn-google       { background: #303134; color: #e8eaed; border-color: #5f6368; }

[data-theme="dark"] .lh-btn-google:hover { background: #3c3e42; }

.lh-divider {
        display: flex; align-items: center; gap: 10px;
        margin: 1rem 0; font-size: 11px; color: var(--text-muted, #64748b);
    }

.lh-divider::before, .lh-divider::after {
        content: ''; flex: 1; height: 1px;
        background: var(--border-base, #e2e8f0);
    }

.lh-footer {
        text-align: center; padding: .75rem 2rem 1.5rem;
        border-top: 1px solid var(--border-base, #e2e8f0);
        font-size: 12px; color: var(--text-muted, #64748b);
    }

.lh-footer a { color: var(--accent, #0d6efd); text-decoration: none; font-weight: 600; }

.lh-footer a:hover { text-decoration: underline; }

.lh-alert { font-size: 12px; border-radius: 6px; padding: 8px 12px; margin-bottom: 1rem; display: none; }

.lh-alert.show    { display: block; }

.lh-alert.danger  { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

.lh-alert.success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

#sidebarCollapseIcon::before                              { content: "\F284"; }

.sidebar-collapsed #sidebarCollapseIcon::before           { content: "\F285" !important; }

[data-sidebar-collapsed="1"] #sidebarCollapseIcon::before { content: "\F285" !important; }

[data-sidebar-collapsed="1"] #mainSidebar        { width: var(--sidebar-collapsed) !important; }

[data-sidebar-collapsed="1"] .main-content       { margin-left: var(--sidebar-collapsed) !important; }

[data-sidebar-collapsed="1"] #sidebarCollapseBtn { left: calc(var(--sidebar-collapsed) - 14px) !important; }

[data-sidebar-collapsed="1"] #mainNavbar         { left: var(--sidebar-collapsed) !important; }

[data-sidebar-collapsed="1"] .up-footer          { margin-left: var(--sidebar-collapsed) !important; }

[dir="rtl"] .hub-back-icon {
    display: inline-block;
    transform: scaleX(-1);
}

/* Shared styles for both directions */
#support-hub-root {
    position: fixed;
    bottom: 24px;
    z-index: 9999;
}

/* LTR: Stick to the right */
[dir="ltr"] #support-hub-root {
    right: 20px;
    left: auto;
}

/* RTL: Stick to the left */
[dir="rtl"] #support-hub-root {
    left: 20px;
    right: auto;
}

/* Send icon — bi-send-fill points right, mirror in RTL */
[dir="rtl"] .hub-send-icon {
    display: inline-block;
    transform: scaleX(-1);
}

/* Launcher chat bubble icon — swap entire icon in RTL via content.
   bi-chat-right-text-fill  →  bi-chat-left-text-fill  */
[dir="rtl"] #launcherIcon.hub-launcher-icon::before {
    /* Bootstrap Icons uses ::before pseudo with font char.
       bi-chat-left-text-fill unicode: f242
       bi-chat-right-text-fill unicode: f245             */
    content: "\f242";
}

.sidebar-collapsed-content ~ .up-footer,
    .sidebar-collapsed ~ * .up-footer { margin-left: var(--sidebar-collapsed); }

.up-footer__top       { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-bottom: 1.75rem;
                            justify-content: space-between; }

.up-footer__cols      { display: flex; flex-wrap: wrap; gap: 2rem; flex: 1 1 0; }

.up-footer__col       { flex: 1 1 140px; min-width: 120px; }

.up-footer__col-title { font-size: .72rem; font-weight: 700; text-transform: uppercase;
                            letter-spacing: .07em; color: var(--text-muted); margin-bottom: .65rem; }

.up-footer__links     { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .38rem; }

.up-footer__link      { font-size: .85rem; color: var(--text-body); text-decoration: none;
                            transition: color .15s; }

.up-footer__link:hover{ color: var(--accent); }

.up-footer__social    { display: flex; flex-direction: column; gap: .75rem;
                            align-items: flex-start; flex-shrink: 0; }

.up-footer__tagline   { font-size: .82rem; color: var(--text-muted); margin: 0; }

.up-footer__social-icons { display: flex; flex-wrap: wrap; gap: .5rem; }

.up-footer__social-link  { display: flex; align-items: center; justify-content: center;
                                width: 34px; height: 34px; border-radius: 8px;
                                background: var(--bg-subtle); border: 1px solid var(--border-base);
                                color: var(--text-muted); font-size: 1rem;
                                text-decoration: none; transition: background .15s, color .15s, border-color .15s; }

.up-footer__social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.up-footer__bar       { font-size: .78rem; color: var(--text-faint);
                            padding-top: 1rem; border-top: 1px solid var(--border-light); }

html, body { height: 100%; }

body        { display: flex; flex-direction: column; min-height: 100vh; }

.main-content { flex: 1 0 auto; }

.up-footer    { flex-shrink: 0; }

.no-transitions, .no-transitions * { transition: none !important; }

#mainSidebar { border-right: 1px solid var(--border-base); }

.sidebar-collapsed .up-side-logo-img  { display: none; }

.sidebar-collapsed .up-side-logo-icon { display: block; }

[data-sidebar-collapsed="1"] .up-side-logo-img  { display: none; }

[data-sidebar-collapsed="1"] .up-side-logo-icon { display: block; }

.up-side-logo-text {
        font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
        color: var(--text-heading); white-space: nowrap; overflow: hidden;
        text-overflow: ellipsis; max-width: 140px;
        align-items: center;
    }

.up-side-logo-letter {
        width: 32px; height: 32px; border-radius: 8px;
        background: var(--accent); color: #fff;
        font-size: 1rem; font-weight: 700;
        align-items: center; justify-content: center;
        flex-shrink: 0;
    }

/* ══════════════════════════════════════════════════════════
       RTL OVERRIDES
       All physical left/right properties are mirrored.
       Activated by dir="rtl" on <html> (set by Lang system).
    ══════════════════════════════════════════════════════════ */
    .blog-article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 780px;
}

.blog-article-body h1,
.blog-article-body h2,
.blog-article-body h3  { color:var(--text-heading); font-weight:700; margin-top:2rem; }

/* Blockquote — LTR: border on left / RTL: border on right */
.blog-article-body blockquote {
    border-inline-start: 4px solid var(--accent);
    padding-inline-start: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 1.5rem 0;
}

/* Quill alignment helpers */
.blog-article-body .ql-align-center  { text-align: center; }

/* ── Skeleton ── */
.skeleton-text {
    background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px; color:transparent!important;
    pointer-events:none; user-select:none;
}

/* ── Qty stepper ── */
.qty-stepper { display:inline-flex;align-items:center;gap:4px;
               background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;padding:2px 4px; }

.btn-row-remove { width:30px;height:30px;border:none;background:transparent;border-radius:6px;
                  color:#adb5bd;cursor:pointer;transition:all .15s;
                  display:flex;align-items:center;justify-content:center;font-size:1rem; }

tr.row-saving { opacity:.5;pointer-events:none; }

/* ── Payment method cards ── */
.payment-method-card { cursor:pointer;transition:all .2s ease-in-out;border:1px solid #dee2e6; }

/* ── Status badges ── */
.up-bg-success { background-color:#28a745!important;color:#fff; }

/* ── Shipping address section ── */
#addressSection {
    border: 2px dashed var(--border-base);
    border-radius: 1rem; padding: 1.5rem;
    background: var(--bg-subtle); margin-bottom: 1.5rem; transition: border-color .2s;
}

#addressSection.addr-ok { border-style:solid; border-color:#28a745; background:#f0fff4; }

#addressSection .addr-ok-badge { display:none; }

#addressSection.addr-ok .addr-ok-badge { display:inline-flex; }

#addrSaveSpinner { display:none; }

.address-component { display:flex;flex-wrap:wrap;gap:12px; }

.address-card .selected-check {
    position:absolute;top:.5rem;right:.6rem; width:20px;height:20px;
    border-radius:50%;background:#0d6efd;color:#fff;font-size:.7rem;font-weight:700;
    display:none;align-items:center;justify-content:center;
}

.address-card.active .selected-check { display:flex; }

/* ── Delivery stepper ── */
.delivery-stepper {
    display: flex; align-items: flex-start;
    gap: 0; overflow-x: auto; padding: 1rem 0;
}

.delivery-step {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; min-width: 60px; position: relative;
    text-align: center;
}

.delivery-step:not(:last-child)::after {
    content: ''; position: absolute;
    top: 18px; left: 50%; width: 100%; height: 2px;
    background: #dee2e6; z-index: 0;
    transition: background .3s;
}

.delivery-step.done:not(:last-child)::after { background: #28a745; }

.delivery-step.active:not(:last-child)::after { background: #dee2e6; }

.step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; border: 2px solid #dee2e6;
    background: #fff; color: #adb5bd;
    position: relative; z-index: 1; transition: all .3s;
}

.delivery-step.done  .step-circle { background:#28a745; border-color:#28a745; color:#fff; }

.delivery-step.active .step-circle { background:#0d6efd; border-color:#0d6efd; color:#fff; box-shadow: 0 0 0 4px rgba(13,110,253,.15); }

.delivery-step.cancelled .step-circle { background:#dc3545; border-color:#dc3545; color:#fff; }

.step-label { font-size:.7rem; font-weight:600; margin-top:.4rem; color:#adb5bd; text-transform:uppercase; letter-spacing:.04em; }

.delivery-step.done   .step-label { color:#28a745; }

.delivery-step.active .step-label { color:#0d6efd; }

.delivery-step.cancelled .step-label { color:#dc3545; }

/* ── Promo code section ── */
.promo-section {
    border: 1.5px dashed var(--border-base); border-radius: .75rem;
    padding: 1.25rem; background: var(--bg-subtle); margin-bottom: 1.5rem;
}

.promo-applied-card {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: .5rem; padding: .75rem 1rem;
}

/* ── Ticket view RTL overrides ─────────────────────────────────────
   Most layout is flexbox and auto-reverses in RTL.
   Only physical margins on icons need targeting.
────────────────────────────────────────────────────────────────── */
/* ── Most-Wanted ribbon ── */
.upv-most-wanted {
    position: absolute;
    top: 10px;
    left: -2px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 10px 3px 8px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(239,68,68,.35);
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}

/* Subtle glow border for most-wanted cards */
.upv-card-most-wanted {
    box-shadow: 0 0 0 2px rgba(239,68,68,.18),
                0 4px 16px rgba(0,0,0,.08);
}

/* ── Old / crossed-out price ── */
.upv-price-wrap {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    flex-wrap: wrap;
}

/* =============================================================
   SUPPORT HUB – MOBILE-FIRST FLOATING WIDGET
   ============================================================= */

/* ── Launcher button ── */


.hub-launcher {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(79,70,229,0.45);
    transition: transform 0.25s, box-shadow 0.25s;
    border: none;
    outline: none;
}

.hub-launcher:hover  { transform: scale(1.08); box-shadow: 0 6px 24px rgba(79,70,229,0.55); }

.hub-launcher:active { transform: scale(0.95); }

/* ── Window ── */
.hub-window {
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: none; /* Toggle this to 'flex' via JS */
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    
    /* Smooth entrance animation */
    animation: slideUp 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

/* 3. Directional Logic (The "Proper" Way) */

/* LTR: Elements stay on the Right */
[dir="ltr"] #support-hub-root {
    right: 20px;
    left: auto;
    align-items: flex-end;
}

/* RTL: Elements stay on the Left */
[dir="rtl"] #support-hub-root {
    left: 20px;
    right: auto;
    align-items: flex-start;
}

/* ── Mobile: full-screen bottom sheet ── */
@media (max-width: 500px) {
    .hub-window {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 92dvh;               /* dynamic viewport height avoids keyboard overlap */
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
        /* Slide-up animation */
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .hub-window.open {
        transform: translateY(0);
    }

    /* Backdrop */
    #hub-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 9998;
    }
    #hub-backdrop.show { display: block; }

    /* Drag handle pill */
    .hub-window::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 2px;
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    /* Launcher: smaller, stays bottom-right */
    #support-hub-root { bottom: 16px; right: 16px; }
    .hub-launcher { width: 50px; height: 50px; }
}

/* ── Header ── */
.hub-header {
    background: #4f46e5;
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* ── Body ── */
.hub-body {
    flex: 1;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;                   /* critical: allows flex children to scroll */
}

/* ── Panes ── */
.view-pane {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
}

.view-pane.active { display: block; }

/* ── Cards ── */
.hub-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.hub-card:hover,
.hub-card:active { border-color: #4f46e5; background: #f1f5f9; }

/* ── Chat pane ── */
#paneChat {
    display: none;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

#paneChat.active {
    display: flex;
}

.hub-chat-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

/* Chat messages scroll area */
#hubChatBox {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 10px;
    min-height: 0;
}

/* Chat bubbles */
.hub-bubble-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wrapper-me    { align-items: flex-end; }

.wrapper-other { align-items: flex-start; }

.hub-bubble {
    max-width: 82%;
    padding: 9px 13px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.45;
    word-break: break-word;
}

.bubble-me    { background: #4f46e5; color: #fff; border-bottom-right-radius: 4px; }

.bubble-other { background: #e2e8f0; color: #1e293b; border-bottom-left-radius: 4px; }

@media (max-width: 500px) {
    .hub-bubble { max-width: 88%; font-size: 0.92rem; }
}

/* ── Reply input bar ── */
.hub-reply-bar {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 10px 12px;
    /* Pushes up when soft keyboard opens on iOS/Android */
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

#hubReplyForm {
    display: flex;
    gap: 8px;
    align-items: center;
}

#hubMsgInput {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 9px 16px;
    font-size: 0.9rem;
    background: #f8fafc;
    outline: none;
    min-width: 0;
}

#hubMsgInput:focus { border-color: #4f46e5; background: #fff; }

.hub-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.hub-send-btn:hover  { background: #4338ca; }

.hub-send-btn:active { transform: scale(0.92); }

/* ── Status dot ── */
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.online  { background: #10b981; box-shadow: 0 0 5px #10b981; }

.offline { background: #94a3b8; }

/* ── Misc ── */
.x-small { font-size: 0.72rem; }

.hub-spinner { display: flex; align-items: center; justify-content: center; padding: 2rem 0; }

/* Icon box — LTR: me-3 / RTL: margin-inline-end (logical) */
[dir="rtl"] .up-icon-box { margin-right: 0; margin-left: 0.75rem; }

/* Sidebar assigned icon — LTR: me-2 / RTL flip */
[dir="rtl"] #sideAssigned i { margin-right: 0; margin-left: 0.5rem; }

/* Dropdown menu — LTR opens left (end) / RTL opens right (start) */
[dir="rtl"] .ticket-dropdown-menu {
    --bs-position: start;
}

/* Reply toolbar — d-flex justify-content-between auto-reverses ✓ */
/* Send icon ms-2 is margin-inline-start = trailing side in both directions ✓ */
[dir="rtl"] .up-icon-box.ticket-header-icon {
    margin-right: 0;
    margin-left: 0.75rem;
}

/* Sidebar assigned icon — static HTML */
[dir="rtl"] #sideAssigned > i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Dropdown — LTR: opens left / RTL: opens right */
[dir="rtl"] .ticket-dropdown { --bs-position: start; }

/* Bubble timestamp text-end is "end of the element" which is correct in both ✓ */
[dir="rtl"] .inv-to-col       { text-align: start !important; }

[dir="rtl"] .inv-meta-end     { text-align: start !important; }

[dir="rtl"] .inv-subtotal-th,
[dir="rtl"] .inv-subtotal-td  { text-align: start !important; }

[dir="rtl"] #confirmButtonWrapper { justify-content: flex-start !important; }

[dir="rtl"] .inv-toast        { right: auto !important; left: 24px !important; }

[dir="rtl"] .attach-icon {
    order: 2;
    border-radius: 0 var(--bs-border-radius, 6px) var(--bs-border-radius, 6px) 0 !important;
    border-left:  1px solid var(--border-base) !important;
    border-right: 0 !important;
}

[dir="rtl"] .attach-input {
    order: 1;
    border-radius: var(--bs-border-radius, 6px) 0 0 var(--bs-border-radius, 6px) !important;
    border-right: 1px solid var(--border-base) !important;
    border-left:  0 !important;
}

[dir="rtl"] .blog-search-icon {
    order: 2;
    border-radius: 0 var(--bs-border-radius, 6px) var(--bs-border-radius, 6px) 0 !important;
    padding-right: 0.5rem;
    padding-left:  0;
}

[dir="rtl"] .blog-search-input {
    order: 1;
    border-radius: var(--bs-border-radius, 6px) 0 0 var(--bs-border-radius, 6px) !important;
    padding-left:  0.75rem !important;
    padding-right: 0 !important;
}

/* 1. Deposit input-group */
[dir="rtl"] .dep-addon {
    order: 2;
    border-radius: 0 var(--bs-border-radius, 6px) var(--bs-border-radius, 6px) 0 !important;
    border-left:  1px solid var(--border-base) !important;
    border-right: 0 !important;
}

[dir="rtl"] .dep-input {
    order: 1;
    border-radius: var(--bs-border-radius, 6px) 0 0 var(--bs-border-radius, 6px) !important;
    border-right: 1px solid var(--border-base) !important;
    border-left:  0 !important;
}

/* 2. Invoice table action column */
[dir="rtl"] .bil-act-th,
[dir="rtl"] .bil-act-td { text-align: start !important; }

[dir="rtl"] #mainSidebar {
        left: auto;
        right: 0;
        border-right: none;
        border-left: 1px solid var(--border-base);
    }

/* Main content shifts to the right instead of left */
    [dir="rtl"] .main-content {
        margin-left: 0;
        margin-right: var(--sidebar-width);
    }

/* Navbar anchors to the right of the sidebar */
    [dir="rtl"] #mainNavbar {
        left: 0;
        right: var(--sidebar-width);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

/* Footer margin mirrors */
    [dir="rtl"] .up-footer {
        margin-left: 0;
        margin-right: var(--sidebar-width);
    }

/* Collapse button flips to the right edge of the sidebar */
    [dir="rtl"] #sidebarCollapseBtn {
        left: auto;
        right: calc(var(--sidebar-width) - 14px);
        /* transition on right instead of left */
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s, color 0.2s;
    }

/* When collapsed in RTL — button tracks the collapsed width from the right */
    [dir="rtl"] #sidebarCollapseBtn.collapsed {
        left: auto;
        right: calc(var(--sidebar-collapsed) - 14px);
    }

/* Collapse icon arrow — RTL:
       Expanded  → sidebar is on the right → button should point RIGHT (F285 chevron-right)
       Collapsed → button should point LEFT  (F284 chevron-left) */
    [dir="rtl"] #sidebarCollapseIcon::before                                              { content: "\F285" !important; }

[dir="rtl"] #sidebarCollapseBtn.collapsed #sidebarCollapseIcon::before                { content: "\F284" !important; }

[dir="rtl"] [data-sidebar-collapsed="1"] #sidebarCollapseIcon::before                 { content: "\F284" !important; }

/* Pre-paint collapsed state — RTL */
    [dir="rtl"][data-sidebar-collapsed="1"] #mainSidebar        { width: var(--sidebar-collapsed) !important; }

[dir="rtl"][data-sidebar-collapsed="1"] .main-content       { margin-right: var(--sidebar-collapsed) !important; margin-left: 0 !important; }

[dir="rtl"][data-sidebar-collapsed="1"] #sidebarCollapseBtn { right: calc(var(--sidebar-collapsed) - 14px) !important; left: auto !important; }

[dir="rtl"][data-sidebar-collapsed="1"] #mainNavbar         { right: var(--sidebar-collapsed) !important; left: 0 !important; }

[dir="rtl"][data-sidebar-collapsed="1"] .up-footer          { margin-right: var(--sidebar-collapsed) !important; margin-left: 0 !important; }

/* Collapsed sidebar content RTL */
    [dir="rtl"] .sidebar-collapsed-content ~ .up-footer,
    [dir="rtl"] .sidebar-collapsed ~ * .up-footer {
        margin-right: var(--sidebar-collapsed);
        margin-left: 0;
    }

/* Sidebar menu item active bar flips side */
    [dir="rtl"] .up-side-active .up-side-link::before {
        left: auto;
        right: 0;
        border-radius: 3px 0 0 3px;
    }

/* Sidebar icon margin flips */
    [dir="rtl"] .up-side-link i {
        margin-right: 0;
        margin-left: 12px;
    }

/* Balance chip in navbar — push to right instead of auto left */
    [dir="rtl"] .custom-nb-balance-chip { margin-left: 0; margin-right: auto; }

/* ── Add Funds modal currency input-group ─────────────────────
       LTR: [$] [amount input]  — addon rounded-start, input rounded-end
       RTL: [amount input] [$]  — input rounded-start, addon rounded-end
    ── */
    .modal[dir="rtl"] .ab-currency-addon {
        order: 2;
        border-radius: 0 var(--bs-border-radius, 6px) var(--bs-border-radius, 6px) 0 !important;
        border-left:  1px solid var(--border-base) !important;
        border-right: 0 !important;
    }

/* Footer bar text alignment */
    [dir="rtl"] .up-footer__bar { text-align: right; }

/* ── btn-close always stays top-right corner ──────────────────
       Bootstrap in RTL pushes btn-close to the left via margin-right:auto.
       We override this globally so the X button is always on the right,
       which is the universal UI convention regardless of text direction.
       Two selectors needed:
         1. [dir="rtl"] on <html> — covers layout and most modals
         2. .modal[dir="rtl"]    — covers widgets that set dir directly on the modal element
    ── */
    [dir="rtl"] .btn-close,
    .modal[dir="rtl"] .btn-close {
        margin-left: 0 !important;
        margin-inline-start: auto;
        margin-inline-end: 0;
    }

/* Modal header: keep the flex row direction consistent —
       title on the left (reading start), X on the right (always) */
    [dir="rtl"] .modal-header,
    .modal[dir="rtl"] .modal-header {
        flex-direction: row;
    }

/* Mobile RTL — sidebar comes from the right */
    @media (max-width: 767.98px) {
        [dir="rtl"] #mainSidebar {
            right: 0;
            left: auto;
            transform: translateX(100%);
        }
        [dir="rtl"] #mainSidebar.show {
            transform: translateX(0);
        }
        [dir="rtl"] #mainNavbar  { right: 0 !important; left: 0 !important; }
        [dir="rtl"] .up-footer   { margin-right: 0 !important; margin-left: 0 !important; }
    }

[dir="rtl"] .selected-check {
    right: auto;
    left: -8px;
}

/* Default badge — LTR: ms-2 = margin-left / RTL: should be margin-right */
[dir="rtl"] .badge-default {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .fp-action-bar {
    border-left:  none;
    border-right: 4px solid var(--accent, #0d6efd);
}

/* fp-bar-content is flex row — RTL browser auto-reverses it ✓
   fp-bar-info text-align inherits dir ✓
   fp-bar-input-wrapper — no physical margins assumed ✓
   fp-bar-btn — no directional properties assumed ✓ */

/* Status message — text-align should follow reading direction */

[dir="rtl"] #{{ _statusId }}

/* Action column — LTR: text-end (right-aligned) / RTL: text-start (right side = start) */
[dir="rtl"] .inv-action-th,
[dir="rtl"] .inv-action-td {
    text-align: start !important;
}

[dir="rtl"] .pm-addr-col {
    border-right: none !important;
    border-left: 1px solid var(--border-base);
}

/* Address list scrollable area — LTR: padding-right for scrollbar / RTL: padding-left */
[dir="rtl"] .pm-addr-scroll {
    padding-right: 0;
    padding-left: 5px;
}

/* Card container action buttons — absolute positioned top-right in LTR */
[dir="rtl"] .u-pay-card-actions {
    right: auto;
    left: 12px;
}

/* Card number / chip row — direction-neutral (numbers always LTR) */
.u-pay-card-num { direction: ltr; unicode-bidi: plaintext; }

/* Default badge inside card — LTR: align-items-end (right) / RTL: align-items-start (left) */
[dir="rtl"] .u-pay-card-brand-col {
    align-items: flex-start !important;
}

[dir="rtl"] .btn-close,
    .modal[dir="rtl"] .btn-close {
        margin-left: 0 !important;
        margin-inline-start: auto;
        margin-inline-end: 0;
    }

/* ── Tickets table RTL overrides ───────────────────────────────────
   Subject column: text-start in LTR → text-end in RTL
   Action column:  text-end  in LTR → text-start in RTL
   Filter bar justify-content-lg-end → justify-content-lg-start in RTL
────────────────────────────────────────────────────────────────── */
.modal[dir="rtl"] .ab-currency-addon {
    order: 2;                        /* moves to the right (end) */
    border-radius: 0 6px 6px 0;     /* rounded on the right */
    border-left: 1px solid;          /* border on the inside edge */
    border-right: 0;
}

.modal[dir="rtl"] .ab-currency-input {
    order: 1;                        /* moves to the left (start) */
    border-radius: 6px 0 0 6px;     /* rounded on the left */
    border-right: 1px solid;
    border-left: 0;
}

[dir="rtl"] .btn-primary {
  /* Reverse the padding and radius manually if logical properties aren't an option */
     border-radius: 8px 8px 8px 8px !important;
}

[dir="rtl"] .tk-subject-th,
[dir="rtl"] .tk-subject-td { text-align: end !important; }

[dir="rtl"] .tk-action-th,
[dir="rtl"] .tk-action-td  { text-align: start !important; }

[dir="rtl"] .tk-filter-end { justify-content: flex-start !important; }

/* Search input-group border flip */
[dir="rtl"] .tk-search-icon {
    border-left: 0 !important;
    border-right: 1px solid var(--border-base);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[dir="rtl"] .inv-action-th,
[dir="rtl"] .inv-action-td { text-align: start !important; }

[dir="rtl"] .inv-search-icon {
    order: 3;
    border-radius: 0 var(--bs-border-radius, 6px) var(--bs-border-radius, 6px) 0 !important;
    border-left:  1px solid var(--border-base) !important;
    border-right: 0 !important;
}

[dir="rtl"] .inv-search-input {
    order: 2;
    border-radius: 0 !important;
    border-left:  1px solid var(--border-base) !important;
    border-right: 0 !important;
}

[dir="rtl"] .inv-search-btn {
    order: 1;
    border-radius: var(--bs-border-radius, 6px) 0 0 var(--bs-border-radius, 6px) !important;
}

/* Filter bar */
[dir="rtl"] .inv-filter-end { justify-content: flex-start !important; }

[dir="rtl"] .tk-search-input {
    border-right: 0 !important;
    border-left: 1px solid var(--border-base);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* =============================================================================
   RESET / GLOBAL
   ============================================================================= */
   
   
body {
    background-color: var(--bg);
    color: var(--text-body);
    /* Override Bootstrap's own CSS tokens so tables inherit correctly */
    --bs-body-bg:            var(--bg);
    --bs-body-color:         var(--text-body);
    --bs-table-bg:           #ffffff;
    --bs-table-color:        var(--text-body);
    --bs-table-striped-bg:   #f8fafc;
    --bs-table-striped-color: var(--text-body);
    --bs-table-hover-bg:     #f0f4ff;
    --bs-table-hover-color:  var(--text-body);
    --bs-table-border-color: var(--border-light);
    --bs-border-color:       var(--border-base);
    --bs-card-bg:            #ffffff;
}

/* ── Design tokens ── */
:root {
    --upv-radius:      14px;
    --upv-radius-sm:   8px;
    --upv-card-bg:     var(--bg-white);
    --upv-shadow:      0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    --upv-shadow-hover:0 16px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    --upv-img-h:       220px;
    --upv-pill-active: var(--accent);
    --upv-transition:  0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LTR: drawer slides in from the right */
#cw-dr{position:fixed;top:0;right:0;bottom:0;width:390px;max-width:96vw;background:var(--bg-white,#fff);box-shadow:-6px 0 40px rgba(0,0,0,.13);border-radius:16px 0 0 16px;z-index:1056;display:flex;flex-direction:column;transform:translateX(calc(100% + 20px));transition:transform .28s ease;overflow:hidden}

/* RTL: drawer slides in from the left */
[dir="rtl"] #cw-dr{
    right:auto;
    left:0;
    border-radius:0 16px 16px 0;
    box-shadow:6px 0 40px rgba(0,0,0,.13);
    transform:translateX(calc(-100% - 20px));
}

/* ============================================================
   my_style.css — Product card additions
   Append to existing stylesheet (or to the <style> block in
   view_products.twig if you prefer scoped styles)
============================================================ */

/* ── Most-Wanted ribbon ── */
.upv-most-wanted {
    position: absolute;
    top: 10px;
    left: -2px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 10px 3px 8px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(239,68,68,.35);
    z-index: 3;
    pointer-events: none;
    text-transform: uppercase;
}

/* Subtle card highlight for most-wanted */
.upv-card-most-wanted {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, .18), var(--shadow-card, 0 2px 8px rgba(0,0,0,.06));
}

/* ── Price with old/crossed-out price ── */
.upv-price-wrap {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    flex-wrap: wrap;
}

.upv-old-price {
    font-size: .78rem;
    color: var(--text-muted, #9ca3af);
    text-decoration: line-through;
    font-weight: 500;
}

/* ── Deliverable badge ── */
.upv-badge-deliverable {
    background: rgba(16, 185, 129, .12);
    color: #059669;
    border: 1px solid rgba(16,185,129,.25);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Draft/Hidden status indicator (admin list views) ── */
.product-status-draft  { background: rgba(245,158,11,.12); color: #b45309; border: 1px solid rgba(245,158,11,.3); }

.product-status-hidden { background: rgba(107,114,128,.1); color: #4b5563; border: 1px solid rgba(107,114,128,.2); }

.product-status-active { background: rgba(16,185,129,.1);  color: #059669; border: 1px solid rgba(16,185,129,.25); }

.ds-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow .25s, transform .25s;
    cursor: default;
}

a .ds-stat-card { cursor: pointer; }

a .ds-stat-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }

.ds-icon-wrap {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
}

.ds-icon-primary { background:#eff6ff; color:var(--accent); }

.ds-icon-warning  { background:#fefce8; color:#ca8a04; }

.ds-icon-danger   { background:#fef2f2; color:#dc2626; }

.ds-icon-success  { background:#f0fdf4; color:#16a34a; }

.ds-label {
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--text-muted); margin-bottom: .2rem;
}

.ds-value {
    font-size: 1.7rem; font-weight: 900;
    color: var(--text-heading); line-height: 1;
}

/* ── Page wrapper ── */
.upv-page { padding: 2rem 1.5rem 4rem; }

/* ── Header ── */
.upv-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.upv-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--text-heading);
    line-height: 1.1;
    margin: 0 0 .25rem;
}

.upv-subtitle { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ── Search bar ── */
.upv-search-wrap {
    position: relative;
    flex: 0 0 auto;
    width: min(100%, 380px);
}

.upv-search-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: .9rem;
}

#upv-search {
    width: 100%;
    padding: .65rem 2.8rem .65rem 2.6rem;
    border: 1.5px solid var(--border-base);
    border-radius: 50px;
    background: var(--bg-white);
    color: var(--text-heading);
    font-size: .9rem;
    outline: none;
    transition: border-color var(--upv-transition), box-shadow var(--upv-transition);
}

#upv-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13,110,253,.1);
}

#upv-clear-btn {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: .8rem;
    padding: .2rem .4rem;
    border-radius: 50%;
    transition: background var(--upv-transition), color var(--upv-transition);
    line-height: 1;
}

#upv-clear-btn:hover { background: var(--bg-subtle); color: var(--text-heading); }

/* ── Category pills ── */
.upv-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.upv-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    border: 1.5px solid var(--border-base);
    background: var(--bg-white);
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--upv-transition);
    white-space: nowrap;
}

.upv-pill:hover { border-color: var(--accent); color: var(--accent); background: #f0f7ff; }

.upv-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,110,253,.25);
}

/* ── Search alert ── */
.upv-alert {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1rem;
    border-radius: var(--upv-radius-sm);
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: .82rem;
    margin-bottom: 1.5rem;
}

.upv-alert button {
    background: none; border: none; cursor: pointer;
    color: #92400e; margin-left: auto; opacity: .7; font-size: .75rem;
}

.upv-alert button:hover { opacity: 1; }

/* ── Grid ── */
.upv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ── Card ── */
.upv-card {
    background: var(--upv-card-bg);
    border-radius: var(--upv-radius);
    box-shadow: var(--upv-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--upv-transition), transform var(--upv-transition);
    position: relative;
}

.upv-card:hover {
    box-shadow: var(--upv-shadow-hover);
    transform: translateY(-4px);
}

/* ── Image area ── */
.upv-img-wrap {
    position: relative;
    height: var(--upv-img-h);
    overflow: hidden;
    background: var(--bg-subtle);
    flex-shrink: 0;
}

.upv-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .15s, transform .4s var(--upv-transition);
}

.upv-card:hover .upv-img-wrap img { transform: scale(1.04); }

/* No-image placeholder */
.upv-no-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: .75rem;
    text-decoration: none;
    color: var(--text-faint);
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-white) 100%);
    transition: color var(--upv-transition);
}

.upv-no-img i { font-size: 2.5rem; opacity: .5; }

.upv-no-img span { font-size: .72rem; font-weight: 700; text-transform: uppercase;
                   letter-spacing: .1em; opacity: .5; }

.upv-card:hover .upv-no-img { color: var(--accent); }

.upv-card:hover .upv-no-img i, .upv-card:hover .upv-no-img span { opacity: .8; }

/* Type badge */
.upv-type-badge {
    position: absolute;
    top: .65rem;
    left: .65rem;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .25rem .6rem;
    border-radius: 50px;
    background: rgba(0,0,0,.55);
    color: #fff;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Image nav */
.upv-img-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .5rem;
    opacity: 0;
    transition: opacity var(--upv-transition);
}

.upv-img-wrap:hover .upv-img-nav { opacity: 1; }

.upv-nav-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.88);
    color: #111;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: .75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    transition: background var(--upv-transition), transform var(--upv-transition);
}

.upv-nav-btn:hover { background: #fff; transform: scale(1.1); }

/* Dots */
.upv-dots {
    position: absolute;
    bottom: .55rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .3rem;
}

.upv-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background var(--upv-transition), transform var(--upv-transition);
}

.upv-dot.active { background: #fff; transform: scale(1.3); }

/* ── Card body ── */
.upv-body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .3rem;
}

.upv-badges { display: flex; gap: .3rem; flex-wrap: wrap; min-height: 20px; }

.upv-badge {
    font-size: .6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    padding: .18rem .55rem;
    border-radius: 50px;
}

.upv-badge-danger  { background: #fee2e2; color: #b91c1c; }

.upv-badge-warning { background: #fef9c3; color: #92400e; }

.upv-badge-info    { background: #e0f2fe; color: #0369a1; }

.upv-name {
    font-size: .95rem; font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin: 0;
}

.upv-desc {
    font-size: .8rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin: 0;
}

/* ── Card footer ── */
.upv-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--border-light);
}

.upv-price { font-size: 1rem; font-weight: 800; color: var(--text-heading); }

.upv-price small { font-size: .7rem; font-weight: 500; color: var(--text-muted); margin-left: .2rem; }

.upv-price-na { font-size: .78rem; font-style: italic; color: var(--text-faint); }

.upv-btn {
    padding: .38rem 1rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    border: none;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .3rem;
    transition: background var(--upv-transition), transform var(--upv-transition), box-shadow var(--upv-transition);
    white-space: nowrap;
}

.upv-btn:hover {
    background: var(--accent-dark, #004dc7);
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(13,110,253,.3);
}

/* ── Empty / Error states ── */
.upv-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.upv-state i { font-size: 3rem; opacity: .3; display: block; margin-bottom: 1rem; }

.upv-state h5 { font-weight: 700; color: var(--text-heading); margin-bottom: .35rem; }

.upv-state p  { font-size: .85rem; margin: 0; }

/* ── Skeleton ── */
.upv-skel-card {
    background: var(--bg-white);
    border-radius: var(--upv-radius);
    box-shadow: var(--upv-shadow);
    overflow: hidden;
}

.upv-skel-img {
    height: var(--upv-img-h);
    background: linear-gradient(90deg,var(--bg-subtle) 25%,var(--border-light) 50%,var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: upv-shimmer 1.4s infinite;
}

.upv-skel-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; }

.upv-skel-line {
    border-radius: 4px;
    background: linear-gradient(90deg,var(--bg-subtle) 25%,var(--border-light) 50%,var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: upv-shimmer 1.4s infinite;
}

@keyframes upv-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Entry animation ── */
@keyframes upv-fadein { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

:root {
            --fp-bar-bg: #0f172a;
            --fp-accent: #3b82f6;
            --fp-text: #ffffff;
            --fp-input-bg: rgba(255, 255, 255, 0.1);
        }

/* The bar wrapper - Full Width, Low Height */
        .fp-action-bar {
            width: 100%;
            height: auto;
            min-height: 80px; /* Slim profile */
            background-color: var(--fp-bar-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 20px;
            box-sizing: border-box;
            color: var(--fp-text);
            font-family: 'Inter', system-ui, sans-serif;
            margin-bottom: 40px; /* Space for component below */
            border-bottom: 3px solid var(--fp-accent);
        }

.fp-bar-content {
            width: 100%;
            max-width: 1200px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

/* Branding/Text Section */
        .fp-bar-info {
            display: flex;
            align-items: center;
            gap: 15px;
            white-space: nowrap;
        }

.fp-bar-info__title {
            font-size: 1.1rem;
            font-weight: 700;
            margin: 0;
            color: var(--fp-accent);
        }

.fp-bar-info__desc {
            font-size: 0.9rem;
            color: #94a3b8;
            margin: 0;
        }

/* Form Section - Compact Row */
        .fp-bar-form {
            display: flex;
            align-items: center;
            gap: 10px;
        }

.fp-bar-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

.fp-bar-input-wrapper::before {
            content: '$';
            position: absolute;
            left: 12px;
            color: #94a3b8;
            font-weight: 600;
        }

.fp-bar-input {
            background: var(--fp-input-bg);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            color: white;
            padding: 8px 12px 8px 25px;
            width: 120px;
            font-size: 1rem;
            font-weight: 600;
            outline: none;
            transition: border-color 0.2s;
        }

.fp-bar-input:focus {
            border-color: var(--fp-accent);
        }

.fp-bar-btn {
            background-color: var(--fp-accent);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            white-space: nowrap;
            transition: transform 0.1s active;
        }

.fp-bar-btn:hover { background-color: #2563eb; }

.fp-bar-btn:disabled { opacity: 0.5; cursor: not-allowed; }

#fp-bar-status {
            font-size: 0.75rem;
            position: absolute;
            bottom: -18px;
            right: 0;
            width: 100%;
            text-align: right;
        }

/* Mobile View - Stack if narrow */
        @media (max-width: 850px) {
            .fp-bar-content { flex-direction: column; text-align: center; padding: 15px 0; }
            .fp-bar-info__desc { display: none; }
        }

.btn-modern-primary {
    background: #4f46e5;
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    border: none;
    transition: background .3s, box-shadow .3s;
}

.btn-modern-primary:hover {
    background: #4338ca;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79,70,229,.30);
}

/* Tables: white surface lifted off the page background */
.table {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
}

/* Override Bootstrap's cell-level --bs-table-bg injection */
.table > :not(caption) > * > * {
    --bs-table-bg:            #ffffff;
    --bs-table-color:         var(--text-body);
    --bs-table-striped-bg:    #f8fafc;
    --bs-table-hover-bg:      #f0f4ff;
    background-color: var(--bs-table-bg);
    color: var(--text-body);
}

.table > tbody > tr:hover > * {
    --bs-table-bg: #f0f4ff;
    background-color: var(--bs-table-bg);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg: #f8fafc;
    background-color: var(--bs-table-bg);
}

/* Wrap tables in a white card-like container */
.table-responsive,
.table-wrap,
.services-table-container,
.tickets-table-wrapper {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.profile-header-cover {
    height: 120px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 16px 16px 0 0;
}

/* Card overlapping the cover */
.profile-card-custom {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    margin-top: -60px;
}

/* Avatar */
.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-top: -75px;
}

.main-avatar {
    width: 130px;
    height: 130px;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.10);
    object-fit: cover;
}

.fade-in { animation: fadeIn .5s ease forwards; }

/* Override Bootstrap bg utilities to respect theme */
.bg-white  { background-color: var(--bg-white)  !important; }

.bg-light  { background-color: var(--bg-soft)   !important; }

.bg-dark   { background-color: var(--bg-subtle) !important; }

.text-dark { color: var(--text-heading)          !important; }

.text-muted{ color: var(--text-muted)            !important; }

.border    { border-color: var(--border-base)    !important; }

.border-bottom { border-bottom-color: var(--border-base) !important; }

.border-top    { border-top-color:    var(--border-base) !important; }

.border-end    { border-right-color:  var(--border-base) !important; }

.border-start  { border-left-color:   var(--border-base) !important; }

/* Override Bootstrap btn-light / btn-dark */
.btn-light {
    --bs-btn-bg:           var(--bg-subtle);
    --bs-btn-border-color: var(--border-base);
    --bs-btn-color:        var(--text-body);
    --bs-btn-hover-bg:     var(--bg-white);
    --bs-btn-hover-border-color: var(--border-mid);
    --bs-btn-hover-color:  var(--text-heading);
    --bs-btn-active-bg:    var(--border-base);
    --bs-btn-active-color: var(--text-heading);
}

.btn-dark {
    --bs-btn-bg:           var(--text-body);
    --bs-btn-border-color: var(--text-body);
    --bs-btn-color:        var(--bg-white);
    --bs-btn-hover-bg:     var(--text-heading);
    --bs-btn-hover-border-color: var(--text-heading);
    --bs-btn-hover-color:  var(--bg-white);
    --bs-btn-active-bg:    var(--text-heading);
    --bs-btn-active-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

.hidden {
    display: none !important;
}

.fw-800 { font-weight: 800; }

.ls-1   { letter-spacing: 1.5px; }

/* Smooth-scroll / thin scrollbars */
.table-wrap,
.up-chat-container,
.services-table-container,
.tickets-table-wrapper {
    scrollbar-width: thin;
}

.table-wrap::-webkit-scrollbar,
.up-chat-container::-webkit-scrollbar { width: 6px; }

.table-wrap::-webkit-scrollbar-thumb,
.up-chat-container::-webkit-scrollbar-thumb {
    background: #c8c8c8;
    border-radius: 10px;
}

/* ── Article body typography ── */
.blog-article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
}

.blog-article-body h1,
.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
    color: var(--text-heading);
    font-weight: 700;
    margin: 2rem 0 .75rem;
    line-height: 1.25;
}

.blog-article-body h1 { font-size: 1.8rem; }

.blog-article-body h2 { font-size: 1.45rem; }

.blog-article-body h3 { font-size: 1.2rem;  }

.blog-article-body p          { margin-bottom: 1.2rem; }

.blog-article-body ul,
.blog-article-body ol         { padding-left: 1.5rem; margin-bottom: 1.2rem; }

.blog-article-body li         { margin-bottom: .4rem; }

.blog-article-body img        { max-width: 100%; border-radius: var(--radius-md); margin: 1.2rem 0; display: block; }

.blog-article-body a          { color: var(--accent); text-decoration: underline; }

.blog-article-body a:hover    { color: var(--accent-dark); }

.blog-article-body blockquote {
    border-left: 4px solid var(--accent);
    background: var(--bg-subtle);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-article-body code {
    background: var(--bg-subtle);
    padding: .18rem .45rem;
    border-radius: 4px;
    font-size: .88em;
    color: var(--danger);
    border: 1px solid var(--border-light);
}

.blog-article-body pre {
    background: var(--text-heading);
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.2rem;
}

.blog-article-body pre code { background: none; border: none; color: inherit; padding: 0; }

.blog-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2rem;
    font-size: .93rem;
}

.blog-article-body th,
.blog-article-body td {
    padding: .6rem .9rem;
    border: 1px solid var(--border-base);
    text-align: left;
}

.blog-article-body th { background: var(--bg-subtle); font-weight: 600; color: var(--text-heading); }

/* ── Quill alignment classes — must mirror what Quill editor outputs ── */
.blog-article-body .ql-align-center  { text-align: center !important; }

.blog-article-body .ql-align-right   { text-align: right  !important; }

.blog-article-body .ql-align-justify { text-align: justify !important; }

/* Strip Quill editor chrome (border, padding) that leaks from quill.snow.css */
.blog-article-body .ql-editor { padding: 0; border: none; }

.blog-article-body .ql-container { border: none; }

/* Quill indent levels */
.blog-article-body .ql-indent-1 { padding-left: 2em; }

.blog-article-body .ql-indent-2 { padding-left: 4em; }

.blog-article-body .ql-indent-3 { padding-left: 6em; }

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes up-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* Unique Prefix: u-pay- */
    .u-pay-card-container {
        position: relative;
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        padding: 18px;
        min-height: 150px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        cursor: pointer; /* Added to show it is clickable */
    }

.u-pay-card-container:hover {
        border-color: #cbd5e0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

.u-pay-card-container.active {
        border: 2px solid #0d6efd;
        background-color: #f8fbff;
    }

.u-pay-chip-icon {
        width: 36px;
        height: 26px;
        background: #e2e8f0;
        border-radius: 4px;
        margin-bottom: 12px;
    }

.u-pay-card-num {
        font-family: 'Courier New', monospace;
        font-size: 1.15rem;
        font-weight: 700;
        color: #334155;
        letter-spacing: 1.5px;
    }

/* On-Card Buttons */
    .u-pay-card-actions {
        position: absolute;
        top: 12px;
        right: 12px;
        display: flex;
        gap: 6px;
        z-index: 5; /* Ensure buttons stay on top of the card container */
    }

.u-pay-action-btn {
        background: #f1f5f9;
        border: none;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.7rem;
        font-weight: 600;
        color: #64748b;
        transition: 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.u-pay-action-btn:hover { background: #e2e8f0; color: #0f172a; }

.u-pay-action-btn.delete:hover { background: #fee2e2; color: #ef4444; }

.u-pay-default-badge {
        font-size: 9px;
        background: #0d6efd;
        color: white;
        padding: 2px 8px;
        border-radius: 4px;
        font-weight: 700;
        text-transform: uppercase;
    }

.u-pay-spinner {
        display: none;
        width: 1rem;
        height: 1rem;
        border: 2px solid currentColor;
        border-right-color: transparent;
        border-radius: 50%;
        animation: u-pay-spin .75s linear infinite;
        vertical-align: middle;
        margin-right: 8px;
    }

.btn-sm-spinner {
        width: 0.75rem;
        height: 0.75rem;
        border-width: 1.5px;
        margin-right: 4px;
    }

@keyframes u-pay-spin { to { transform: rotate(360deg); } }

.is-loading .u-pay-spinner { display: inline-block; }

.animate-fade-in  { animation: fadeIn 0.6s ease forwards; }

.animate-slide-up { animation: slideUp 0.6s ease-out forwards; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.skeleton-text {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
        border-radius: 4px;
        color: transparent !important;
        pointer-events: none;
        user-select: none;
    }

.skeleton-row td { height: 40px; background: #fafafa; border-bottom: 5px solid #fff; }

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Quantity stepper in table */
    .qty-stepper {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 2px 4px;
    }

.qty-stepper button {
        width: 26px; height: 26px;
        border: none; background: transparent;
        border-radius: 6px;
        font-size: 0.95rem; line-height: 1;
        color: #495057; cursor: pointer;
        transition: background 0.15s;
        display: flex; align-items: center; justify-content: center;
    }

.qty-stepper button:hover:not(:disabled) { background: #e9ecef; }

.qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }

.qty-stepper span {
        min-width: 28px; text-align: center;
        font-weight: 700; font-size: 0.9rem;
        color: #212529;
    }

/* Row remove button */
    .btn-row-remove {
        width: 30px; height: 30px;
        border: none; background: transparent;
        border-radius: 6px; color: #adb5bd;
        cursor: pointer; transition: all 0.15s;
        display: flex; align-items: center; justify-content: center;
        font-size: 1rem;
    }

.btn-row-remove:hover { background: #fff0f0; color: #dc3545; }

/* Saving spinner overlay on row */
    tr.row-saving { opacity: 0.5; pointer-events: none; }

.payment-method-card { cursor: pointer; transition: all 0.2s ease-in-out; border: 1px solid #dee2e6; }

.payment-method-card:hover, .payment-method-card.active { border-color: #0d6efd; transform: translateY(-2px); }

.payment-method-card.active { border-width: 2px; box-shadow: 0 4px 15px rgba(13,110,253,0.15); }

.payment-method-card img { max-height: 30px; max-width: 100%; object-fit: contain; }

.up-bg-success { background-color: #28a745 !important; color: white; }

.up-bg-warning { background-color: #ffc107 !important; color: #000; }

.up-bg-danger  { background-color: #dc3545 !important; color: white; }

/* =============================================================================
   SKELETON LOADERS
   ============================================================================= */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--skeleton-base) 25%,
        var(--skeleton-shimmer) 50%,
        var(--skeleton-base) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

/* ─────────────────────────────────────────────────────────────
   COMPONENT TOKENS — light defaults, dark overrides via
   existing [data-theme="dark"] selector from styles.dark.css
───────────────────────────────────────────────────────────── */
.up-product-view {
  --upv-img-bg:        #f1f3f5;
  --upv-no-img-color:  #ced4da;
  --upv-no-img-label:  #adb5bd;
  --upv-card-lift:     0 8px 28px rgba(0,0,0,.11);
  --upv-card-bg:       #ffffff;
  --upv-card-border:   #e9ecef;
}

/* ── Product detail design tokens ── */
:root {
    --pd-radius:      16px;
    --pd-shadow:      0 2px 16px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
    --pd-transition:  0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Skeleton ── */
.up-skeleton {
    background: linear-gradient(90deg,var(--bg-subtle) 25%,var(--border-light) 50%,var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: pd-shimmer 1.4s infinite;
}

@keyframes pd-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Main card ── */
.pd-card {
    background: var(--bg-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 1.5rem;
}

@media (min-width:992px) { .pd-card { padding: 2.5rem; } }

/* ── Gallery ── */
.pd-main-img-wrap {
    border-radius: var(--pd-radius);
    overflow: hidden;
    background: var(--bg-subtle);
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

.pd-main-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .2s;
}

.pd-no-img {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .75rem; height: 100%; color: var(--text-faint);
    background: linear-gradient(135deg, var(--bg-subtle), var(--bg-white));
}

.pd-no-img i { font-size: 3.5rem; opacity: .35; }

.pd-no-img span { font-size: .7rem; font-weight: 700; text-transform: uppercase;
                   letter-spacing: .1em; opacity: .4; }

/* Thumbs */
.pd-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

.pd-thumb {
    width: 64px; height: 64px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--pd-transition), transform var(--pd-transition);
    opacity: .7;
}

.pd-thumb:hover { transform: scale(1.06); opacity: 1; }

.pd-thumb.active { border-color: var(--accent); opacity: 1; }

/* ── Typography ── */
.pd-badge-tag {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .28rem .75rem;
    border-radius: 50px;
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: #eff6ff; color: var(--accent);
    border: 1px solid #bfdbfe;
    margin-bottom: .75rem;
}

.pd-title {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text-heading);
    line-height: 1.15;
    margin: 0 0 .75rem;
}

.pd-desc {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.7;
    white-space: pre-line;
    margin: 0 0 1.5rem;
}

/* ── Form controls ── */
.pd-label {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-muted);
    display: block; margin-bottom: .4rem;
}

.pd-select {
    width: 100%;
    padding: .65rem .9rem;
    border: 1.5px solid var(--border-base);
    border-radius: 10px;
    background: var(--bg-subtle);
    color: var(--text-heading);
    font-size: .9rem; font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 12px;
    padding-right: 2rem;
    outline: none;
    transition: border-color var(--pd-transition), box-shadow var(--pd-transition);
}

.pd-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13,110,253,.1);
}

.pd-qty {
    width: 100%;
    padding: .65rem .9rem;
    border: 1.5px solid var(--border-base);
    border-radius: 10px;
    background: var(--bg-subtle);
    color: var(--text-heading);
    font-size: .9rem; font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color var(--pd-transition), box-shadow var(--pd-transition);
}

.pd-qty:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,110,253,.1); }

/* ── Addons ── */
.pd-addons-title {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-muted);
    margin: 1.5rem 0 .65rem;
}

.pd-addon-list { display: flex; flex-direction: column; gap: .4rem; }

.pd-addon-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 1rem;
    border: 1.5px solid var(--border-base);
    border-radius: 10px;
    background: var(--bg-white);
    cursor: pointer;
    transition: border-color var(--pd-transition), background var(--pd-transition);
}

.pd-addon-item:has(.addon-checkbox:checked) {
    border-color: var(--accent);
    background: #f0f7ff;
}

.pd-addon-item.forced {
    background: var(--bg-subtle);
    cursor: default;
}

.pd-addon-left { display: flex; align-items: center; gap: .65rem; }

.pd-addon-name { font-size: .88rem; font-weight: 600; color: var(--text-heading); }

.pd-addon-badges { display: flex; gap: .3rem; margin-top: .2rem; }

.pd-addon-badge {
    font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    padding: .15rem .5rem; border-radius: 50px;
}

.pd-addon-badge-warn   { background:#fef9c3;color:#92400e;border:1px solid #fde68a; }

.pd-addon-badge-sec    { background:var(--bg-subtle);color:var(--text-muted);border:1px solid var(--border-base); }

.pd-addon-badge-danger { background:#fee2e2;color:#b91c1c;border:1px solid #fca5a5; }

.pd-addon-price {
    font-size: .82rem; font-weight: 700;
    color: var(--accent);
    background: #eff6ff; border: 1px solid #bfdbfe;
    padding: .2rem .6rem; border-radius: 6px;
    white-space: nowrap;
}

/* Triggered addons section */
.pd-triggered-section { margin-top: 1rem; }

.pd-triggered-title {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-muted); margin-bottom: .5rem;
}

.pd-triggered-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: .65rem 1rem;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    margin-bottom: .35rem;
}

.pd-triggered-left { display: flex; align-items: center; gap: .6rem; }

.pd-triggered-name { font-size: .87rem; font-weight: 600; color: var(--text-heading); }

.pd-triggered-price {
    font-size: .8rem; font-weight: 700;
    color: #15803d;
    background: #dcfce7; border: 1px solid #86efac;
    padding: .18rem .55rem; border-radius: 6px;
}

/* ── Price box ── */
.pd-price-box {
    margin-top: 1.5rem;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-base);
    border-radius: var(--pd-radius);
    padding: 1.1rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}

.pd-price-label {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--text-muted); margin-bottom: .2rem;
}

.pd-price-value {
    font-size: 1.9rem; font-weight: 900;
    color: var(--text-heading); line-height: 1; margin: 0;
}

.pd-price-value small {
    font-size: .8rem; font-weight: 500; color: var(--text-muted);
    margin-left: .3rem; vertical-align: middle;
}

/* ── Buy button ── */
.pd-buy-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.75rem;
    border-radius: 50px;
    font-size: .9rem; font-weight: 700;
    background: var(--accent); color: #fff;
    border: none; cursor: pointer; white-space: nowrap;
    transition: background var(--pd-transition), transform var(--pd-transition), box-shadow var(--pd-transition);
    box-shadow: 0 4px 14px rgba(13,110,253,.25);
}

.pd-buy-btn:hover {
    background: var(--accent-dark, #004dc7);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,110,253,.35);
}

.pd-buy-btn:disabled { opacity: .7; transform: none; cursor: not-allowed; }

.pd-buy-btn.adding { background: var(--text-muted); }

.pd-buy-btn.added  { background: #16a34a; box-shadow: 0 4px 14px rgba(22,163,74,.3); }

/* ── Validation ── */
.is-invalid-custom {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220,53,69,.15) !important;
}

[data-theme="dark"] .up-product-view {
  --upv-img-bg:        var(--bg-subtle);
  --upv-no-img-color:  var(--text-faint);
  --upv-no-img-label:  var(--text-muted);
  --upv-card-lift:     var(--shadow-lg);
  --upv-card-bg:       var(--bg-white);
  --upv-card-border:   var(--border-base);
}

/* ── Image wrapper ── */
.up-product-view .upv-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--upv-img-bg);
}

.up-product-view .upv-img-wrap a { display: block; height: 100%; }

.up-product-view .upv-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .15s;
  display: block;
}

.up-product-view .card:hover .upv-img-wrap img { transform: scale(1.04); }

/* ── No-image placeholder ── */
.up-product-view .upv-no-img {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background: var(--upv-img-bg);
  color: var(--upv-no-img-color);
  text-decoration: none;
  transition: background .2s;
}

.up-product-view .upv-no-img i { font-size: 2.25rem; }

.up-product-view .upv-no-img span {
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--upv-no-img-label);
}

/* ── Image nav buttons (visible on card hover) ── */
.up-product-view .upv-img-nav {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}

.up-product-view .card:hover .upv-img-nav { opacity: 1; pointer-events: auto; }

/* ── Dot indicators ── */
.up-product-view .upv-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; pointer-events: none;
}

.up-product-view .upv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer; pointer-events: auto;
  transition: background .18s, transform .18s;
}

.up-product-view .upv-dot.active { background: #fff; transform: scale(1.3); }

/* ── Card surface & border ── */
.up-product-view .card {
  background-color: var(--upv-card-bg) !important;
  border: 1px solid var(--upv-card-border) !important;
  transition: transform .22s ease, box-shadow .22s ease;
}

.up-product-view .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--upv-card-lift) !important;
}

/* ── Staggered fade-up on render ── */
@keyframes upv-fade { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }

.upv-col { animation: upv-fade .3s ease both; }

.up-skeleton,
.skeleton-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 18px;
}

.skeleton-card { height: 320px; }

/* =============================================================================
   ADDRESS WIDGET — grid fix
   The widget renders containers with class="address-component" (not just the
   legacy #address-component ID), so we add a class selector alongside the ID.
   Append this block to my_style.css (or replace the two #address-component
   rules with .address-component equivalents).
   ============================================================================= */

/* Override: target class so all widget instances get the grid */
.address-component {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

/* =============================================================================
   PROFILE CARD — card-body background + radius fix
   profile-card-custom sets background on the .card but Bootstrap's .card-body
   can inherit a different bg in dark mode. Force white bg and matching radius.
   ============================================================================= */
.profile-card-custom {
    background: var(--bg-white) !important;  /* use CSS var so dark mode works */
    border-radius: 16px !important;
    border: none !important;
    overflow: visible;                        /* must be visible so avatar overlaps cover */
}

.profile-card-custom > .card-body {
    background: var(--bg-white) !important;
    border-radius: 16px !important;
    overflow: visible;                         /* clip card-body content, not the avatar */
}

/* Pretty Validation Styles */
    .is-invalid-custom {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
    }

.invalid-feedback-custom {
        color: #dc3545;
        font-size: 0.825em;
        margin-top: 0.25rem;
        display: block;
        font-weight: 500;
    }

@keyframes shake {
        0%, 100% { transform: translateX(0); }
        25%       { transform: translateX(-5px); }
        75%       { transform: translateX(5px); }
    }

.shake { animation: shake 0.2s ease-in-out 0s 2; }

.product-detail-column {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

/* Thumbnail Specific Styling */
    .thumb-img {
        width: 80px; height: 80px;
        object-fit: cover; cursor: pointer;
        transition: all 0.2s ease;
        border: 2px solid transparent;
    }

.thumb-img.active  { border-color: #0d6efd !important; }

.thumb-img:hover   { opacity: 0.8; }

#mainProductImg    { transition: opacity 0.2s ease-in-out; }

/* Add-to-cart button state variants */
    #buyBtn.added {
        background: #198754 !important;
        border-color: #198754 !important;
    }

#buyBtn.adding {
        pointer-events: none;
        opacity: .8;
    }

/* =============================================================================
   FORMS
   ============================================================================= */
   
    :root { --brand-primary: #0d6efd; }

.login-card { border-radius: 1.2rem; border: none; }

.form-control { border-radius: 0.8rem; padding: 0.75rem 1.2rem; border: 1px solid #e0e0e0; transition: 0.3s; }

.form-control:focus { box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1); border-color: var(--brand-primary); }

.btn-primary { border-radius: 0.8rem; padding: 0.75rem; font-weight: 600; background: var(--brand-primary); border: none; }

.otp-input { letter-spacing: 0.5rem; font-size: 1.8rem; text-align: center; font-weight: 800; color: var(--brand-primary); }

.glass-panel { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.2); }

.form-label {
    font-weight: 600;
    color: var(--secondary-text);
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
}

.form-control,
.form-select {
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid var(--border-base);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
    border-color: var(--accent);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

button.loading::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid var(--bg-white);
    border-top-color: transparent;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 0.6s linear infinite;
}

/* =============================================================================
   TABLES (GLOBAL)
   ============================================================================= */
.table-wrap {
    max-height: 320px;
    overflow-y: auto;
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fa !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.table tbody tr td {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.table-hover tbody tr:hover {
    background-color: #f0f4ff !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    --bs-table-accent-bg: #fafafa;
}

table.table {
    border-radius: 6px;
    overflow: hidden;
}

.table-fixed {
    table-layout: fixed;
    width: 100%;
}

/* Scrollable containers */
.services-table-container {
    max-height: 380px;
    overflow-y: auto;
}

.tickets-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
}

.tickets-table-wrapper thead th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

/* =============================================================================
   CARDS (GLOBAL)
   ============================================================================= */
.card {
    border-radius: var(--radius-md);
}

.modern-card {
    border-radius: 1rem;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.metric-card {
    transition: 0.25s ease;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.metric-card:hover .display-value {
    color: var(--accent);
}

.display-value {
    transition: color 0.3s ease;
}

@media (max-width: 576px) {
    .metric-card { padding: 6px; }
}

/* =============================================================================
   LAYOUT – SIDEBAR & MAIN CONTENT
   ============================================================================= */
.main-content {
    margin-left: var(--sidebar-collapsed);
}

@media (min-width: 992px) {
    .main-content {
        margin-left: var(--sidebar-width);
    }
}

/* Large-screen content cap: inner containers never exceed 2600px */
.main-content > .container-fluid,
.main-content > .container,
.container-fluid {
    max-width: 2600px;
}

/* On very large screens (≥2800px) center the capped container */
@media (min-width: 2800px) {
    .main-content > .container-fluid,
    .main-content > .container,
    .container-fluid {
        margin-left: auto;
        margin-right: auto;
    }
}

#fullSidebar,
#collapsedSidebar,
#expandedSidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1020;
}

#collapsedSidebar { width: var(--sidebar-collapsed); }

#expandedSidebar {
    width: var(--sidebar-overlay);
    z-index: 1050;
    transition: transform 0.3s;
}

.side-menu { width: 250px; }

/* Sidebar Nav */
.up-side-wrapper {
    width: var(--sidebar-width);
    background: var(--bg-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1040;
}

.up-side-menu {
    list-style: none;
    padding: 0 15px;
    margin: 0;
}

.up-side-item { margin-bottom: 4px; }

.up-side-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.925rem;
    transition: all 0.2s ease;
}

.up-side-link i {
    font-size: 1.15rem;
    margin-right: 12px;
    color: var(--text-faint);
    transition: inherit;
}

.up-side-link:hover {
    background-color: var(--bg-soft);
    color: var(--accent-deep);
}

.up-side-section {
    padding: 24px 18px 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--border-mid);
}

.up-side-profile-box {
    padding: 15px;
    border-top: 1px solid var(--border-light);
}

.up-side-profile-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.2s;
}

.up-side-profile-btn:hover {
    background: var(--bg-soft);
    border-color: var(--border-base);
}

/* Active menu item */
.up-side-item { position: relative; }

.up-side-active .up-side-link {
    background-color: var(--side-active-bg);
    color:            var(--side-active-text);
}

.up-side-active .up-side-link i {
    color: var(--side-active-text);
}

/* Left accent bar on active item */
.up-side-active .up-side-link::before {
    content:       '';
    position:      absolute;
    left:          0;
    top:           20%;
    height:        60%;
    width:         3px;
    border-radius: 0 3px 3px 0;
    background:    var(--side-active-text);
}

/* Hover (non-active) */
.up-side-link:hover {
    background-color: var(--side-hover-bg);
    color:            var(--side-hover-text);
}

.up-side-link:hover i {
    color: var(--side-hover-text);
}

/* Modern sidebar scrollbar */
.up-side-menu {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

.up-side-menu::-webkit-scrollbar       { width: 4px; }

.up-side-menu::-webkit-scrollbar-track { background: transparent; }

.up-side-menu::-webkit-scrollbar-thumb {
    background:    var(--scrollbar-thumb);
    border-radius: 99px;
}

.up-side-menu::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Sidebar dropdown */
.up-dropdown-menu {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-base) !important;
}

.up-dropdown-item {
    color: var(--text-body) !important;
    transition: background 0.15s;
}

.up-dropdown-item:hover {
    background: var(--bg-subtle) !important;
    color:      var(--text-heading) !important;
}

.up-dropdown-item.text-danger:hover {
    background: var(--danger-bg) !important;
    color:      var(--danger-text) !important;
}

/* =============================================================================
   LAYOUT – NAVBAR
   ============================================================================= */
.custom-nb-wrapper {
    height: var(--navbar-height);
    border-bottom: 1px solid #f0f0f0;
}

.custom-nb-spacer { height: var(--navbar-height); }

.custom-nb-balance-chip {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--skeleton-base);
    transition: all 0.3s ease;
}

.custom-nb-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.custom-nb-amount {
    font-weight: 700;
    color: var(--success);
}

.custom-nb-cart-btn {
    color: #495057;
    background: transparent;
    border: none;
    padding: 8px;
    transition: color 0.2s;
}

.custom-nb-badge {
    font-size: 0.65rem;
    padding: 0.35em 0.5em;
}

.custom-nb-lang-btn {
    border-radius: var(--radius-sm) + 2px;
    color: #495057;
}

/* Balance chip */
.custom-nb-balance-chip {
    background:    var(--chip-bg);
    border:        1px solid var(--chip-border);
    border-radius: var(--radius-pill);
    padding:       8px 16px;
    transition:    all 0.3s ease;
}

.custom-nb-balance-chip:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Cart / icon buttons */
.custom-nb-cart-btn {
    color: var(--text-body) !important;
    transition: color 0.2s;
}

.custom-nb-cart-btn:hover {
    color: var(--accent) !important;
}

/* Navbar dropdown */
.up-nb-dropdown {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-base) !important;
}

.up-nb-dropdown-item {
    color: var(--text-body) !important;
}

.up-nb-dropdown-item:hover {
    background: var(--bg-subtle) !important;
    color:      var(--text-heading) !important;
}

/* Modal */
.up-modal-content {
    background: var(--bg-white) !important;
    color: var(--text-body);
}

.up-input-addon {
    background:   var(--bg-subtle) !important;
    color:        var(--text-muted) !important;
    border-color: var(--border-base) !important;
}

/* =============================================================================
   SERVICE HEADER (Dashboard)
   ============================================================================= */
.service-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 28px;
    padding: 3.5rem;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Status Pills */
.status-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
}

.status-active    { background: var(--success-bg);   color: var(--success-text); }

.status-suspended { background: var(--danger-bg);    color: var(--danger-text); }

/* Renew Button */
.btn-renew {
    background: var(--bg-white);
    color: var(--accent);
    border: none;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.btn-renew:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* =============================================================================
   PRODUCT STORE
   ============================================================================= */
/* Category */
.category-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.25rem;
    color: #444;
    border-bottom: 2px solid #6c757d;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-weight: 600;
}

.category-line {
    height: 2px;
    background: var(--accent);
    width: 50px;
    margin-top: 5px;
    margin-bottom: 25px;
}

/* Product Card */
.card-img-wrapper {
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Image Switcher */
.img-switcher {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.product-card:hover .img-switcher { opacity: 1; }

.switch-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    pointer-events: auto;
}

.switch-btn:hover {
    background: var(--bg-white);
    color: var(--accent);
}

.price-tag {
    color: #2b2b2b;
    font-weight: 700;
    font-size: 1.1rem;
}

/* =============================================================================
   UP-PRODUCT-VIEW
   ============================================================================= */
.up-product-view .up-search-group {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-base);
}

.up-product-view .up-search-group .form-control { height: 48px; font-size: 0.95rem; }

.up-product-view .category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.up-product-view .category-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-heading);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.up-product-view .category-line {
    flex-grow: 1;
    height: 1px;
    background: var(--border-base);
    margin-left: 1.5rem;
    width: auto;
}

.up-product-view .product-card {
    border: 1px solid var(--border-light);
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: var(--bg-white);
}

.up-product-view .product-link:hover .product-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--accent-deep);
}

.up-product-view .card-img-wrapper {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
    background: var(--bg-soft);
    height: auto;
}

.up-product-view .card-img-top {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-product-view .card-body { padding: 1.5rem; }

.up-product-view .card-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.up-product-view .description {
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
}

.up-product-view .price-tag {
    color: var(--accent-deep);
    font-weight: 800;
    font-size: 1.1rem;
}

/* =============================================================================
   UP-DETAILS-VIEW (Product Detail / Purchase)
   ============================================================================= */
.up-details-view .up-card-main {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.up-details-view .product-image-container {
    background: var(--bg-soft);
    border-radius: var(--radius-xl);
    padding: 20px;
    transition: transform 0.3s ease;
}

.up-details-view .product-image-container:hover { transform: scale(1.02); }

.up-details-view .up-icon-circle {
    width: 32px;
    height: 32px;
    background: var(--bg-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.up-details-view .hover-primary:hover { color: var(--accent-deep) !important; }

.up-details-view .hover-primary:hover .up-icon-circle {
    background: var(--accent-deep);
    color: var(--bg-white);
}

.up-details-view .price-display-box {
    background: #f0f7ff;
    border-radius: 15px;
    padding: 20px;
    border: 1px dashed #bfdbfe;
}

.up-details-view .addon-item {
    cursor: pointer;
    border-radius: var(--radius-md) !important;
    margin-bottom: 8px;
    border: 1px solid var(--border-base) !important;
    transition: all 0.2s ease;
}

.up-details-view .addon-item:hover {
    background-color: var(--bg-soft);
    border-color: var(--border-mid) !important;
}

.up-details-view .form-check-input:checked + div {
    font-weight: 600;
    color: var(--accent-deep);
}

.up-details-view .quantity-control {
    max-width: 150px;
    border-radius: var(--radius-md);
    height: 48px;
    text-align: center;
    font-weight: 700;
}

.up-details-view .btn-buy {
    height: 60px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 15px;
    background: var(--accent-deep);
    box-shadow: var(--shadow-accent);
    transition: all 0.3s ease;
}

.up-details-view .btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-hover);
}

/* =============================================================================
   UP-MODERN-GRID (Tables & Data Views)
   ============================================================================= */
.up-modern-grid .up-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.up-modern-grid .up-filter-bar {
    background: var(--bg-soft);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.up-modern-grid .up-table thead th {
    background: transparent;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 15px;
}

.up-modern-grid .up-table tbody td {
    padding: 18px 15px;
    color: var(--text-body);
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

/* Badges */
.up-modern-grid .up-badge {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
}

.up-modern-grid .up-bg-success  { background: var(--success-bg);      color: var(--success-text); }

.up-modern-grid .up-bg-warning  { background: var(--warning-bg);      color: var(--warning-text); }

.up-modern-grid .up-bg-danger   { background: var(--danger-bg);       color: var(--danger-text); }

.up-modern-grid .up-bg-secondary{ background: var(--secondary-bg);    color: var(--secondary-text); }

.up-modern-grid .up-bg-info     { background: var(--info-bg);         color: var(--info); }

/* Action Buttons (shared base) */
.up-modern-grid .up-btn-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    margin: 0 2px;
}

.up-modern-grid .up-btn-view     { background: #eff6ff;              color: var(--accent-deep); }

.up-modern-grid .up-btn-view:hover { background: var(--accent-deep); color: var(--bg-white); }

.up-modern-grid .up-btn-manage     { background: #eff6ff;              color: var(--accent-deep); }

.up-modern-grid .up-btn-manage:hover { background: var(--accent-deep); color: var(--bg-white); }

.up-modern-grid .up-btn-edit     { background: #eff6ff;              color: var(--accent-deep); }

.up-modern-grid .up-btn-edit:hover { background: var(--accent-deep); color: var(--bg-white); }

.up-modern-grid .up-btn-renew     { background: var(--success-soft-bg); color: #059669; }

.up-modern-grid .up-btn-renew:hover { background: #059669;              color: var(--bg-white); }

.up-modern-grid .up-btn-download     { background: var(--success-soft-bg); color: var(--success); }

.up-modern-grid .up-btn-download:hover { background: var(--success);       color: var(--bg-white); }

.up-modern-grid .up-btn-cancel     { background: #fff1f2;              color: var(--danger-alt); }

.up-modern-grid .up-btn-cancel:hover { background: var(--danger-alt);  color: var(--bg-white); }

.up-modern-grid .up-btn-delete     { background: var(--danger-soft-bg); color: var(--danger); }

.up-modern-grid .up-btn-delete:hover { background: var(--danger);       color: var(--bg-white); }

/* Misc Grid Helpers */
.up-modern-grid .back-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.up-modern-grid .back-link:hover { color: var(--accent-deep); }

.up-modern-grid .unread-count {
    background: #ef4444;
    color: var(--bg-white);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-weight: bold;
}

.up-modern-grid .up-stat-card {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.up-modern-grid .up-product-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-subtle);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--secondary-text);
}

[dir="rtl"] .up-modern-grid .up-product-icon {
    margin-right: 0;
    margin-left: 12px;
}

/* 2. Actions column */
[dir="rtl"] .up-act-th,
[dir="rtl"] .up-act-td { text-align: start !important; }

/* 3. Search input-group
   LTR: [🔍] [input]     RTL: [input] [🔍]
*/
[dir="rtl"] .up-search-icon {
    order: 2;
    border-radius: 0 var(--bs-border-radius, 6px) var(--bs-border-radius, 6px) 0 !important;
    border-left:  1px solid var(--border-base) !important;
    border-right: 0 !important;
}

[dir="rtl"] .up-search-input {
    order: 1;
    border-radius: var(--bs-border-radius, 6px) 0 0 var(--bs-border-radius, 6px) !important;
    border-right: 1px solid var(--border-base) !important;
    border-left:  0 !important;
}

[dir="rtl"] .up-search-btn {
    order: 0;
    border-radius: var(--bs-border-radius, 6px) 0 0 var(--bs-border-radius, 6px) !important;
}

/* 4. Filter buttons row */
[dir="rtl"] .up-filter-end { justify-content: flex-start !important; }

/* Renew modal — actions row stay centered */
[dir="rtl"] .up-renew-modal-footer { flex-direction: row; }

.up-modern-grid .up-product-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    transition: transform 0.2s;
}

.up-modern-grid .up-product-img:hover { transform: scale(1.1); }

.up-modern-grid .up-flag {
    width: 22px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.up-modern-grid .up-stock-pill {
    background: var(--bg-soft);
    border: 1px solid var(--border-base);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* =============================================================================
   DASHBOARD (dash-modern-v2)
   ============================================================================= */
.dash-modern-v2 .dash-stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dash-modern-v2 .dash-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.dash-modern-v2 .icon-shape {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.dash-modern-v2 .dash-stat-card:hover .icon-shape {
    transform: scale(1.1) rotate(-5deg);
}

.dash-modern-v2 .bg-soft-primary { background: #eef2ff;                    color: var(--vps-accent); }

.dash-modern-v2 .bg-soft-warning { background: var(--warning-soft-bg);     color: var(--warning); }

.dash-modern-v2 .bg-soft-danger  { background: var(--danger-soft-bg);      color: var(--danger); }

.dash-modern-v2 .bg-soft-success { background: var(--success-soft-bg);     color: var(--success); }

.dash-modern-v2 .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.dash-modern-v2 .stat-value {
    font-size: 1.6rem;
    color: var(--text-heading);
    font-weight: 700;
}

.dash-modern-v2 .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.dash-modern-v2 .back-link:hover { color: var(--vps-accent); }

/* =============================================================================
   TICKET SYSTEM
   ============================================================================= */
/* Ticket List */
.up-ticket-system .up-glass-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
}

.up-ticket-system .up-icon-circle {
    width: 56px;
    height: 56px;
    background: #eff6ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.up-ticket-system .up-back-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    transition: 0.2s;
    border: 1px solid var(--border-light);
}

.up-ticket-system .up-back-link:hover {
    color: var(--accent-deep);
    background: #eff6ff;
    border-color: #dbeafe;
}

.up-ticket-system .up-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-faint);
    margin-bottom: 10px;
    display: block;
}

.up-ticket-system .up-input {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    border: 1px solid var(--border-base);
    background-color: var(--bg-soft);
    transition: all 0.2s ease;
}

.up-ticket-system .up-input:focus {
    background-color: var(--bg-white);
    border-color: var(--accent-deep);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.up-ticket-system .up-submit-btn {
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    background: var(--accent-deep);
    border: none;
    transition: all 0.3s;
}

.up-ticket-system .up-submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.up-ticket-system .placeholder { border-radius: 10px; }

/* Ticket Detail / Chat */
.up-ticket-view .up-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.up-ticket-view .up-icon-box {
    width: 42px;
    height: 42px;
    background: #eff6ff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.up-ticket-view .ls-1     { letter-spacing: 1px; }

.up-ticket-view .x-small  { font-size: 0.75rem; }

.up-ticket-view .up-desc-text { font-size: 0.95rem; line-height: 1.6; white-space: pre-line; }

.up-ticket-view .up-chat-container {
    max-height: 550px;
    overflow-y: auto;
    background-color: var(--bg-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.up-ticket-view .up-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.92rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.up-ticket-view .bubble-me {
    align-self: flex-end;
    background: var(--accent-deep);
    color: var(--bg-white);
    border-bottom-right-radius: 4px;
}

.up-ticket-view .bubble-other {
    align-self: flex-start;
    background: var(--bg-white);
    color: var(--text-body);
    border: 1px solid var(--border-base);
    border-bottom-left-radius: 4px;
}

.up-ticket-view .up-reply-wrapper {
    border-radius: 15px;
    background: var(--bg-white);
    overflow: hidden;
}

.up-ticket-view .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.up-ticket-view .status-dot.online  { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }

.up-ticket-view .status-dot.offline { background: var(--text-faint); }

.up-ticket-view .up-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.up-attachment-link a {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.up-attachment-link a:hover { text-decoration: underline; }

/* Legacy ticket replies */
.replies {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
}

.reply {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 20px;
    max-width: 75%;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.reply-admin { background: linear-gradient(135deg, #e9ecef, #dee2e6); margin-right: auto; }

.reply-user  { background: linear-gradient(135deg, #d1f2eb, #a3e4d7); margin-left: auto; }

.reply strong        { display: flex; align-items: center; margin-bottom: 0.25rem; }

.reply strong i      { margin-right: 6px; }

.reply small         { display: block; text-align: right; color: #6c757d; font-size: 0.8rem; margin-top: 4px; }

.reply a             { display: block; margin-top: 4px; text-decoration: none; color: var(--accent); word-break: break-all; }

.ticket-title { border-bottom: 2px solid #343a40; }

/* =============================================================================
   ADDRESS COMPONENT
   ============================================================================= */
#address-component {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.address-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-md);
    position: relative;
    border: 1px solid var(--border-dark);
    background: var(--bg-white);
    min-height: 170px;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.address-card.add-new {
    border: 2px dashed #d1d5db;
    background: #f9fafb;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.address-card.add-new:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #f0f7ff;
}

.address-card.active {
    border-color: var(--accent);
    background-color: #f8fbff;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.12);
}

.badge-default {
    background-color: #e7f1ff;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.05em;
}

.selected-check {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--bg-white);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 3px solid var(--bg-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.active .selected-check { display: flex; }

.address-title   { font-size: 1.05rem; color: var(--text-dark); }

.address-details { font-size: 0.9rem;  color: #4b5563; line-height: 1.5; }

.edit-btnA {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    padding: 0;
}

.edit-btnA:hover { text-decoration: underline; }

/* =============================================================================
   PROFILE PAGE
   ============================================================================= */
.profile-card {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--bg-white);
    transition: transform 0.3s ease;
}

.profile-sidebar {
    background: linear-gradient(135deg, var(--vps-accent) 0%, var(--vps-accent-dark) 100%);
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    color: var(--bg-white);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.avatar-container {
    position: relative;
    padding: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

#profileAvatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--bg-white);
}

.info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.info-value {
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.btn-modern {
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-back {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.btn-back:hover { color: var(--vps-accent-dark); }

.modal-content { border: none; border-radius: var(--radius-2xl); }

/* =============================================================================
   MISC / SHARED COMPONENTS
   ============================================================================= */
/* Logo */
.logo-wrapper { transition: transform 0.3s ease; }

.logo-wrapper:hover { transform: scale(1.05); }

/* Nav Tabs */
.nav-tabs .nav-link { color: #8898aa; background: transparent; }

.nav-tabs .nav-link.active {
    color: var(--accent) !important;
    background: var(--bg-white) !important;
    position: relative;
}

.nav-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

/* Sidebar Template Items */
.tpl-sidebar-item {
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: 0.2s;
}

.tpl-sidebar-item:hover {
    background-color: #f8faff;
    border-left-color: #e9ecef;
}

.tpl-sidebar-item.active {
    background-color: #f0f5ff;
    border-left-color: var(--accent);
}

/* Stat Pill */
.up-stat-pill {
    background: var(--bg-white);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    color: #32325d;
}

/* List Group Active */
.list-group-item.active {
    background-color: var(--accent) !important;
    color: var(--bg-white) !important;
    font-weight: bold;
}

.list-group-item.active i,
.list-group-item.active a i { color: var(--bg-white) !important; }

/* Sticky Save Bar */
.sticky-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-top: 1px solid var(--border-base);
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Product Editor */
.product-editor-card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    background: var(--bg-white);
    margin-bottom: 1.5rem;
}

.section-divider {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-body);
    display: flex;
    align-items: center;
}

.rule-card  { border-left: 5px solid var(--primary) !important; }

.addon-card { border-left: 5px solid var(--success) !important; background: #fafdfb; }

.cycle-input-row {
    background: var(--bg-soft);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-bottom: 5px;
}

#imagePreviewContainer {
    width: 100%;
    height: 180px;
    border: 2px dashed var(--border-base);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-soft);
    margin-bottom: 10px;
}

#imagePreviewContainer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Extra helpers */
.extra-small { font-size: 0.7rem; }

.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }

/* =============================================================================
   RESPONSIVE – COMPREHENSIVE BREAKPOINTS
   xs  < 480px   (small phones)
   sm  < 576px   (phones)
   md  < 768px   (large phones / small tablets)
   lg  < 992px   (tablets / small laptops)
   xl  < 1200px  (laptops)
   xxl ≥ 1200px  (desktops – default styles above)
   ============================================================================= */

/* --------------------------------------------------------------------------
   SHARED TOUCH / MOBILE UTILITY
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    /* Disable hover transforms on touch devices (prevents sticky states) */
    .metric-card:hover,
    .product-card:hover,
    .up-product-view .product-link:hover .product-card,
    .up-details-view .product-image-container:hover,
    .dash-modern-v2 .dash-stat-card:hover {
        transform: none;
    }

    /* Increase tap targets */
    .up-btn-action,
    .up-modern-grid .up-btn-action {
        width: 40px;
        height: 40px;
    }

    /* Prevent horizontal overflow everywhere */
    body { overflow-x: hidden; }
}

/* --------------------------------------------------------------------------
   SIDEBAR – UNIFIED SINGLE ELEMENT (#mainSidebar / .up-side-wrapper)

   TIER 1  ≥ 992px   full 260px sidebar, always visible, content offset 260px
   TIER 2  768–991px icons-only 60px strip, always visible, content offset 60px
   TIER 3  < 768px   hidden off-screen, slides in on toggle (.show class)
   -------------------------------------------------------------------------- */

/* ── Base: shared across all tiers ── */
.up-side-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1040;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                width    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Profile button layout */
.up-side-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.up-side-profile-info { flex: 1; min-width: 0; overflow: hidden; }

.up-side-chevron      { flex-shrink: 0; }

/* Backdrop (mobile drawer overlay) */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1039;
}

/* ── TIER 1: Desktop ≥992px – full 260px sidebar ── */
@media (min-width: 992px) {
    .up-side-wrapper {
        width: var(--sidebar-width); /* 260px */
        transform: translateX(0);
    }

    /* All text labels visible */
    .up-side-text,
    .up-side-section span,
    .up-side-profile-info,
    .up-side-chevron { display: block; }

    .up-side-logo-img { display: block; }

    .up-side-link {
        justify-content: flex-start;
        padding: 12px 18px;
    }
    .up-side-link i { margin-right: 12px; font-size: 1.15rem; }

    .up-side-profile-btn { justify-content: space-between; padding: 10px; }

    /* Section labels shown normally */
    .up-side-section {
        padding: 24px 18px 8px;
        font-size: 0.7rem;
        background: transparent;
        height: auto;
        overflow: visible;
    }

    .main-content { margin-left: var(--sidebar-width); }

    /* No hamburger needed */
    #sidebarToggle { display: none !important; }
}

/* ── TIER 2: Tablet 768px–991px – icons-only 60px strip ── */
@media (min-width: 768px) and (max-width: 991.98px) {
    .up-side-wrapper {
        width: var(--sidebar-collapsed); /* 60px */
        transform: translateX(0);
        overflow: visible; /* allow tooltips to escape */
    }

    /* Hide text, keep icons */
    .up-side-text,
    .up-side-profile-info,
    .up-side-chevron { display: none !important; }

    /* Section heading → thin divider */
    .up-side-section {
        padding: 6px 0;
        height: 1px;
        background: var(--border-light);
        overflow: hidden;
        font-size: 0;
        margin: 4px 8px;
        border-radius: 1px;
    }
    .up-side-section span { display: none !important; }

    /* Logo: show only icon-sized version */
    .up-side-logo { padding: 1rem 0; }
    .up-side-logo-img { max-height: 32px; }

    /* Center icons */
    .up-side-link {
        justify-content: center;
        padding: 14px 0;
        position: relative;
    }
    .up-side-link i { margin-right: 0; font-size: 1.3rem; }

    /* Tooltip on hover */
    .up-side-link:hover::after {
        content: attr(data-label);
        position: absolute;
        left: calc(100% + 10px);
        top: 50%;
        transform: translateY(-50%);
        background: var(--text-heading);
        color: #fff;
        font-size: 0.78rem;
        font-weight: 600;
        padding: 5px 12px;
        border-radius: 6px;
        white-space: nowrap;
        z-index: 2000;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    }
    /* Small arrow pointing left */
    .up-side-link:hover::before {
        content: '';
        position: absolute;
        left: calc(100% + 4px);
        top: 50%;
        transform: translateY(-50%);
        border: 5px solid transparent;
        border-right-color: var(--text-heading);
        z-index: 2001;
        pointer-events: none;
    }

    /* Profile: avatar only, centered */
    .up-side-profile-btn { justify-content: center; padding: 8px 0; }

    .main-content { margin-left: var(--sidebar-collapsed); }

    /* No hamburger needed */
    #sidebarToggle { display: none !important; }
}

/* ── TIER 3: Mobile <768px – off-screen drawer ── */
@media (max-width: 767.98px) {
    .up-side-wrapper {
        width: 270px;
        transform: translateX(-100%);
        z-index: 1040;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0,0,0,0.13);
    }

    /* Slide in */
    .up-side-wrapper.show { transform: translateX(0); }

    /* All labels visible in the drawer */
    .up-side-text,
    .up-side-profile-info,
    .up-side-chevron { display: block !important; }

    .up-side-section {
        padding: 24px 18px 8px;
        font-size: 0.7rem;
        background: transparent;
        height: auto;
        overflow: visible;
        font-size: 0.7rem;
    }
    .up-side-section span { display: inline !important; }

    .up-side-logo { padding: 1.25rem 1rem; }
    .up-side-logo-img { max-height: 45px; display: block; }

    .up-side-link {
        justify-content: flex-start;
        padding: 12px 18px;
    }
    .up-side-link i { margin-right: 12px; font-size: 1.15rem; }

    .up-side-profile-btn { justify-content: space-between; padding: 10px; }

    /* Content: full width, no left margin */
    .main-content {
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100%;
    }

    /* Hamburger button in navbar */
    #sidebarToggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: var(--bg-subtle);
        border-radius: var(--radius-md);
        color: var(--text-body);
        font-size: 1.2rem;
        cursor: pointer;
        transition: background 0.2s;
        flex-shrink: 0;
    }
    #sidebarToggle:hover { background: var(--border-base); }
}

/* ── Container padding at each mobile breakpoint ── */
@media (max-width: 991.98px) {
    .main-content > .container-fluid,
    .main-content > .container,
    .container-fluid {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* --------------------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .custom-nb-wrapper {
        height: auto;
        min-height: var(--navbar-height);
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        flex-wrap: wrap;
    }

    .custom-nb-spacer {
        height: 60px;
    }

    /* Hide balance label on very small screens, keep amount */
    .custom-nb-label {
        display: none;
    }

    .custom-nb-balance-chip {
        padding: 6px 10px;
    }
}

/* --------------------------------------------------------------------------
   SERVICE HEADER
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .service-header {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

/* --------------------------------------------------------------------------
   PRODUCT STORE – PRODUCT CARDS
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .card-img-wrapper {
        height: 200px;
    }
}

/* --------------------------------------------------------------------------
   UP-PRODUCT-VIEW
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .up-product-view .card-body {
        padding: 1rem;
    }

    .up-product-view .category-title {
        font-size: 1rem;
    }

    .up-product-view .up-search-group .form-control {
        height: 42px;
        font-size: 0.9rem;
    }
}

/* --------------------------------------------------------------------------
   UP-DETAILS-VIEW (Product Purchase Page)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .up-details-view .up-card-main {
        border-radius: var(--radius-xl);
    }

    .up-details-view .product-image-container {
        padding: 14px;
    }
}

/* --------------------------------------------------------------------------
   UP-MODERN-GRID (Tables / Data Views)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .up-modern-grid .up-filter-bar {
        padding: 14px;
    }

    .up-modern-grid .up-table thead th {
        padding: 12px 10px;
        font-size: 0.72rem;
    }

    .up-modern-grid .up-table tbody td {
        padding: 14px 10px;
        font-size: 0.88rem;
    }
}

/* --------------------------------------------------------------------------
   DASHBOARD (dash-modern-v2)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .dash-modern-v2 .stat-value {
        font-size: 1.3rem;
    }

    .dash-modern-v2 .icon-shape {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .dash-modern-v2 .dash-stat-card {
        padding: 0.75rem 1rem;
    }
}

/* --------------------------------------------------------------------------
   METRIC CARDS
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .metric-card {
        border-radius: 10px;
    }
}

@media (max-width: 479.98px) {
    .metric-card {
        padding: 4px;
    }
}

/* --------------------------------------------------------------------------
   SKELETON CARDS
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .skeleton-card {
        height: 240px;
    }
}

/* --------------------------------------------------------------------------
   FORMS & INPUTS
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .form-control,
    .form-select {
        padding: 10px;
        font-size: 0.92rem;
    }

    /* Stack input groups on tiny screens */
    .input-group > .form-control,
    .input-group > .form-select {
        min-width: 0;
    }
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .btn-modern {
        padding: 9px 18px;
        font-size: 0.9rem;
    }

    .btn-modern-primary {
        padding: 9px 18px;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   TABLES (GLOBAL)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .table thead th {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        font-size: 0.78rem;
    }

    .table tbody tr td {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        font-size: 0.88rem;
    }

    /* Reduce scrollable table heights on mobile */
    .table-wrap            { max-height: 260px; }
    .services-table-container { max-height: 300px; }
    .tickets-table-wrapper  { max-height: 320px; }
}

/* --------------------------------------------------------------------------
   CARDS (GLOBAL)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .glass-card {
        border-radius: var(--radius-xl);
        padding: 1rem !important;
    }

    .card {
        border-radius: var(--radius-sm);
    }

    .modern-card {
        border-radius: var(--radius-md);
    }
}

/* --------------------------------------------------------------------------
   PROFILE PAGE
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .profile-sidebar {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    #profileAvatar {
        width: 110px;
        height: 110px;
    }
}

/* Profile header cover + avatar wrapper */
@media (max-width: 575.98px) {
    .profile-header-cover {
        height: 90px;
    }

    .profile-card-custom {
        margin-top: -45px;
    }

    .avatar-wrapper {
        margin-top: -55px;
    }

    .main-avatar {
        width: 100px;
        height: 100px;
    }
}

/* --------------------------------------------------------------------------
   TICKET SYSTEM
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .up-ticket-system .up-glass-card {
        border-radius: var(--radius-xl);
    }

    .up-ticket-view .up-chat-container {
        max-height: 400px;
    }

    .up-ticket-view .up-bubble {
        max-width: 90%;
        padding: 10px 14px;
        font-size: 0.88rem;
    }
}

/* --------------------------------------------------------------------------
   ADDRESS COMPONENT
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    #address-component {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .address-card {
        min-height: 140px;
        padding: 1rem;
    }
}

/* --------------------------------------------------------------------------
   MODAL
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .modal-content {
        border-radius: var(--radius-xl);
        margin: 0.5rem;
    }

    .up-modal-content {
        border-radius: var(--radius-xl) !important;
    }
}

/* --------------------------------------------------------------------------
   STICKY SAVE BAR
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .sticky-save-bar {
        padding: 0.75rem 0;
    }

    .sticky-save-bar .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   MISC / SHARED
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    /* Stat pill full-width on tiny screens */
    .up-stat-pill {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    /* Section dividers shrink font */
    .section-divider {
        font-size: 0.9rem;
    }

    /* Template sidebar items stack nicely */
    .tpl-sidebar-item {
        border-left-width: 3px;
    }

    /* Status pills */
    .status-pill {
        font-size: 0.68rem;
        padding: 4px 10px;
    }
}

/* --------------------------------------------------------------------------
   RADIUS SCALE-DOWN ON SMALL SCREENS
   Keeps corners from looking oversized on tiny viewports
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    :root {
        --radius-lg:  12px;
        --radius-xl:  16px;
        --radius-2xl: 18px;
    }
}

/* --------------------------------------------------------------------------
   PRINT / FORCED LAYOUT FIXES
   -------------------------------------------------------------------------- */
@media (max-width: 359.98px) {
    /* Sub-360 (very small legacy phones) */
    body {
        font-size: 14px;
    }

    .up-modern-grid .up-table thead th,
    .up-modern-grid .up-table tbody td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .custom-nb-balance-chip {
        display: none; /* Hide balance entirely on tiny screens if needed */
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE SYSTEM — v2
   Appended to style.css  ·  Works alongside all dashboard styles above
   Fonts: Outfit (headings) + DM Sans (body)  ·  Sharp editorial SaaS aesthetic
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Landing CSS custom properties ─────────────────────────────────────── */
:root {
    --lp-accent:        #2563EB;
    --lp-accent-2:      #7C3AED;
    --lp-accent-mid:    #4F46E5;
    --lp-green:         #16a34a;
    --lp-amber:         #d97706;
    --lp-rose:          #e11d48;
    --lp-teal:          #0d9488;

    --lp-surface:       #ffffff;
    --lp-surface-2:     #f8fafc;
    --lp-surface-3:     #f1f5f9;
    --lp-dark-bg:       #0a0f1e;
    --lp-dark-surface:  #0f172a;
    --lp-dark-card:     #141e33;

    --lp-border:        #e2e8f0;
    --lp-border-mid:    #cbd5e1;

    --lp-text:          #1e293b;
    --lp-text-2:        #475569;
    --lp-text-3:        #94a3b8;

    --lp-h-font:        'Outfit', sans-serif;
    --lp-b-font:        'DM Sans', sans-serif;

    --lp-r-sm:          8px;
    --lp-r-md:          12px;
    --lp-r-lg:          16px;
    --lp-r-xl:          20px;
    --lp-r-2xl:         24px;

    --lp-shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --lp-shadow-md:     0 4px 16px rgba(0,0,0,.08);
    --lp-shadow-lg:     0 16px 48px rgba(0,0,0,.1);
    --lp-shadow-glow:   0 0 0 1px rgba(37,99,235,.15), 0 8px 32px rgba(37,99,235,.12);
}

/* ── Layout ─────────────────────────────────────────────────── */
.stats-wrap            { padding: 0; }

.stats-header          { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.stats-title           { font-size: 1.35rem; font-weight: 700; color: var(--text-heading); margin: 0; }

.stats-sub             { font-size: .8rem; color: var(--text-muted); margin: 2px 0 0; }

/* ── Filter bar ─────────────────────────────────────────────── */
.stats-filters         { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.stats-filters select,
.stats-filters input[type="date"] {
    font-size: .82rem;
    padding: 6px 10px;
    border: 1px solid var(--border-base);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-body);
    outline: none;
    transition: border-color .2s;
}

.stats-filters select:focus,
.stats-filters input[type="date"]:focus { border-color: var(--accent); }

.btn-sync {
    font-size: .82rem;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, opacity .2s;
}

.btn-sync:hover   { background: var(--accent-hover); }

.btn-sync:disabled { opacity: .6; cursor: not-allowed; }

/* ── KPI cards ──────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; margin-bottom: 22px; }

.kpi-card {
    background: var(--bg-white);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s;
}

.kpi-card:hover        { box-shadow: var(--shadow-md); }

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--kpi-color, var(--accent));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.kpi-icon {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--kpi-color, var(--accent)) 12%, transparent);
    color: var(--kpi-color, var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    margin-bottom: 10px;
}

.kpi-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 4px; }

.kpi-value { font-size: 1.45rem; font-weight: 800; color: var(--text-heading); line-height: 1; }

.kpi-sub   { font-size: .72rem; color: var(--text-faint); margin-top: 4px; }

/* ── Chart panels ───────────────────────────────────────────── */
.chart-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 20px;
    height: 100%;
}

.panel-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 16px; }

.chart-box   { position: relative; width: 100%; height: 240px; }

/* ── Whale list ─────────────────────────────────────────────── */
.whale-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 8px;
}

.whale-row:last-child { border-bottom: none; }

.whale-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--vps-accent) 100%);
    color: #fff;
    font-size: .75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.whale-name  { font-size: .82rem; font-weight: 600; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }

.whale-email { font-size: .7rem; color: var(--text-faint); }

.whale-badge {
    font-size: .73rem; font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--success-bg);
    color: var(--success-text);
    white-space: nowrap;
}

/* ── Skeleton loader ────────────────────────────────────────── */
.sk { background: var(--skeleton-base); border-radius: 4px; display: inline-block; }

.sk-anim { animation: sk-shimmer 1.3s infinite linear; background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shimmer) 50%, var(--skeleton-base) 75%); background-size: 200% 100%; }

@keyframes sk-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Alert ──────────────────────────────────────────────────── */
.stats-alert {
    display: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    margin-bottom: 16px;
}

.stats-alert.error   { background: var(--danger-bg);  color: var(--danger-text);  display: flex; align-items: center; gap: 8px; }

.stats-alert.success { background: var(--success-bg); color: var(--success-text); display: flex; }

/* ── Spinner ────────────────────────────────────────────────── */
.spin { display: inline-block; animation: spin .7s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-header { flex-direction: column; align-items: flex-start; }
}

/* ── Body / base ─────────────────────────────────────────────────────────── */
.lp-body {
    font-family: var(--lp-b-font);
    font-size: 16px;
    color: var(--lp-text);
    background: var(--lp-surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.lp-body *,
.lp-body *::before,
.lp-body *::after { box-sizing: border-box; }

/* ══════════════════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════════════════ */
.lp-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1040;
    transition: background .3s, border-color .3s, box-shadow .3s;
    border-bottom: 1px solid transparent;
}

.lp-header--solid {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--lp-border);
    box-shadow: var(--lp-shadow-sm);
}

.lp-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    height: 68px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lp-header-spacer { height: 68px; }

/* Logo */
.lp-logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }

.lp-logo-img { height: 38px; width: auto; object-fit: contain; }

.lp-logo-mark { display: none; align-items: center; gap: 0.55rem; }

.lp-logo-wordmark {
    font-family: var(--lp-h-font);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--lp-text);
    letter-spacing: -0.02em;
}

/* Nav links */
.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0 auto 0 2rem;
}

.lp-nav-link {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lp-text-2);
    border-radius: var(--lp-r-sm);
    transition: color .18s, background .18s;
    text-decoration: none;
}

.lp-nav-link:hover { color: var(--lp-accent); background: rgba(37,99,235,.06); }

.lp-nav-active { color: var(--lp-accent) !important; font-weight: 600; }

/* Nav actions */
.lp-nav-actions { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }

.lp-theme-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-sm);
    background: var(--lp-surface-2);
    color: var(--lp-text-2);
    cursor: pointer;
    transition: all .18s;
}

.lp-theme-btn:hover { border-color: var(--lp-accent); color: var(--lp-accent); background: #fff; }

/* ── CTA Buttons ──────────────────────────────────────────────────────────── */
.lp-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: var(--lp-accent);
    color: #fff !important;
    font-family: var(--lp-b-font);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--lp-r-md);
    cursor: pointer;
    text-decoration: none !important;
    transition: background .2s, box-shadow .2s, transform .15s;
    white-space: nowrap;
}

.lp-btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
    transform: translateY(-1px);
}

.lp-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: transparent;
    color: var(--lp-text) !important;
    font-family: var(--lp-b-font);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1.5px solid var(--lp-border-mid);
    border-radius: var(--lp-r-md);
    cursor: pointer;
    text-decoration: none !important;
    transition: all .2s;
    white-space: nowrap;
}

.lp-btn-ghost:hover { border-color: var(--lp-accent); color: var(--lp-accent) !important; background: rgba(37,99,235,.04); }

.lp-btn-xl { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--lp-r-lg); }

.lp-btn-white-bg {
    background: #ffffff !important;
    color: var(--lp-accent) !important;
    box-shadow: var(--lp-shadow-md);
}

.lp-btn-white-bg:hover { background: #f0f6ff !important; box-shadow: var(--lp-shadow-lg); }

.lp-btn-outline-white {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 2rem;
    border: 1.5px solid rgba(255,255,255,.45);
    border-radius: var(--lp-r-lg);
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all .2s;
    background: transparent;
    white-space: nowrap;
}

.lp-btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.lp-btn-video {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--lp-text-2) !important;
    text-decoration: none !important;
    transition: color .2s;
}

.lp-btn-video:hover { color: var(--lp-text) !important; }

.lp-play-ring {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--lp-surface-2);
    border: 1.5px solid var(--lp-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--lp-accent);
    flex-shrink: 0;
    transition: all .2s;
}

.lp-btn-video:hover .lp-play-ring { background: var(--lp-accent); color: #fff; border-color: var(--lp-accent); }

.lp-w-full { width: 100%; text-align: center; display: flex; justify-content: center; }

/* Burger */
.lp-burger {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; padding: 7px;
    border: 1.5px solid var(--lp-border);
    border-radius: var(--lp-r-sm);
    background: var(--lp-surface-2);
    cursor: pointer;
}

.lp-burger span { display: block; height: 1.5px; background: var(--lp-text); border-radius: 2px; transition: all .3s; }

.lp-burger--open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }

.lp-burger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }

.lp-burger--open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.lp-mobile-menu {
    position: fixed;
    top: 68px; right: 0;
    width: min(340px, 90vw);
    height: calc(100vh - 68px);
    background: var(--lp-surface);
    border-left: 1px solid var(--lp-border);
    transform: translateX(105%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 1039;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex; flex-direction: column; gap: 1.5rem;
}

.lp-menu--open { transform: translateX(0); }

.lp-mobile-nav { display: flex; flex-direction: column; gap: 0.25rem; }

.lp-mobile-nav a {
    display: block; padding: 0.75rem 0.85rem;
    color: var(--lp-text-2); font-weight: 500;
    border-radius: var(--lp-r-sm);
    transition: all .18s;
    text-decoration: none;
}

.lp-mobile-nav a:hover { background: var(--lp-surface-2); color: var(--lp-accent); }

.lp-mobile-cta { display: flex; flex-direction: column; gap: 0.6rem; }

.lp-overlay {
    position: fixed; inset: 68px 0 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    z-index: 1038;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}

.lp-overlay--show { opacity: 1; pointer-events: all; }

/* ══════════════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════════════ */
.lp-hero {
    position: relative;
    background: var(--lp-dark-surface);
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 6rem;
}

/* Animated grid */
.lp-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
}

/* Blobs */
.lp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.lp-blob-1 {
    width: 600px; height: 600px;
    top: -150px; right: -100px;
    background: radial-gradient(circle, rgba(37,99,235,.25), transparent 65%);
    animation: lpBlobPulse 8s ease-in-out infinite;
}

.lp-blob-2 {
    width: 500px; height: 500px;
    bottom: 0; left: -100px;
    background: radial-gradient(circle, rgba(124,58,237,.2), transparent 65%);
    animation: lpBlobPulse 10s 3s ease-in-out infinite;
}

@keyframes lpBlobPulse {
    0%,100% { transform: scale(1); opacity: .6; }
    50%      { transform: scale(1.08); opacity: 1; }
}

.lp-hero-content {
    position: relative; z-index: 1;
    text-align: center;
    padding: clamp(5rem,10vh,8rem) clamp(1.25rem,5vw,2rem) 0;
    max-width: 900px;
}

/* Eyebrow */
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    margin-bottom: 2rem;
    animation: lpFadeUp .6s ease both;
}

.lp-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: lpPulse 2s infinite;
}

@keyframes lpPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

/* Hero headline */
.lp-hero-h1 {
    font-family: var(--lp-h-font);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: lpFadeUp .65s .08s ease both;
}

.lp-hero-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255,255,255,.6);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: lpFadeUp .65s .15s ease both;
}

.lp-hero-cta {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: lpFadeUp .65s .22s ease both;
}

/* Social proof */
.lp-proof-row {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    animation: lpFadeUp .65s .3s ease both;
}

.lp-proof-avatars { display: flex; }

.lp-av {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2.5px solid var(--lp-dark-surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    margin-left: -8px;
}

.lp-av:first-child { margin-left: 0; }

.lp-av-more {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
    font-size: 0.6rem;
}

.lp-proof-text { text-align: left; }

.lp-proof-stars { color: #fbbf24; font-size: 0.75rem; letter-spacing: 2px; }

.lp-proof-text span { font-size: 0.82rem; color: rgba(255,255,255,.55); }

/* Hero mockup strip */
.lp-hero-mockup {
    position: relative; z-index: 1;
    width: min(700px, 90vw);
    margin: 3.5rem auto 0;
    background: var(--lp-dark-card);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--lp-r-xl);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
    animation: lpFadeUp .7s .35s ease both;
}

.lp-mock-bar {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.03);
}

.lp-mock-dot { width: 10px; height: 10px; border-radius: 50%; }

.lp-mock-url {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,.3);
    font-family: ui-monospace, monospace;
}

.lp-mock-body {
    display: flex; align-items: center;
    padding: 1.25rem 1.5rem;
    gap: 0;
    overflow-x: auto;
}

.lp-mock-stat {
    flex: 1; min-width: 110px;
    display: flex; flex-direction: column; align-items: center;
    gap: 0.25rem; padding: 0 1rem;
}

.lp-mock-stat span:last-child { font-size: 0.72rem; color: rgba(255,255,255,.4); text-align: center; }

.lp-mock-num {
    font-family: var(--lp-h-font);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.lp-mock-num small { font-size: .65em; font-weight: 500; color: rgba(255,255,255,.5); }

.lp-mock-divider { width: 1px; height: 40px; background: rgba(255,255,255,.08); flex-shrink: 0; }

.lp-mock-stat--green { flex-direction: row !important; gap: 0.5rem !important; }

.lp-mock-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    flex-shrink: 0;
    animation: lpPulse 2s infinite;
}

@keyframes lpFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════════
   LOGO STRIP
══════════════════════════════════════════════════════════════════════════ */
.lp-logos {
    padding: 2.5rem 0;
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
    background: var(--lp-surface-2);
    overflow: hidden;
}

.lp-logos-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lp-text-3);
    margin-bottom: 1.25rem;
}

.lp-logos-track { overflow: hidden; }

.lp-logos-inner {
    display: flex; align-items: center; gap: 2.5rem;
    width: max-content;
    animation: lpScroll 28s linear infinite;
}

@keyframes lpScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.lp-logos-track:hover .lp-logos-inner { animation-play-state: paused; }

.lp-logo-chip {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lp-text-3);
    white-space: nowrap;
    letter-spacing: .3px;
    transition: color .2s;
    cursor: default;
}

.lp-logo-chip:hover { color: var(--lp-accent); }

/* ══════════════════════════════════════════════════════════════════════════
   SECTIONS — SHARED
══════════════════════════════════════════════════════════════════════════ */
.lp-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--lp-surface);
}

.lp-section-tinted { background: var(--lp-surface-2); }

.lp-section-dark {
    background: var(--lp-dark-bg);
    color: rgba(255,255,255,.85);
}

.lp-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--lp-accent);
    margin-bottom: 1rem;
}

.lp-label-dim { color: rgba(255,255,255,.3); }

.lp-section-head-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 4rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.lp-section-h2 {
    font-family: var(--lp-h-font);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--lp-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

.lp-h2-light { color: #ffffff; }

.lp-section-p {
    font-size: 1.05rem;
    color: var(--lp-text-2);
    line-height: 1.75;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════════════════════════ */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.lp-feat-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-xl);
    padding: 1.75rem;
    transition: box-shadow .25s, border-color .25s, transform .2s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.lp-feat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(37,99,235,.15) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s;
}

.lp-feat-card:hover::before { opacity: 1; }

.lp-feat-card.lp-revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease, box-shadow .25s, border-color .25s;
}

.lp-feat-card:hover { box-shadow: var(--lp-shadow-lg); border-color: var(--lp-border-mid); transform: translateY(-4px); }

.lp-feat-card--big {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.lp-feat-card--wide { grid-column: span 2; }

.lp-feat-icon {
    width: 48px; height: 48px;
    border-radius: var(--lp-r-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.lp-feat-icon--blue   { background: rgba(37,99,235,.1);  color: var(--lp-accent); }

.lp-feat-icon--violet { background: rgba(124,58,237,.1); color: var(--lp-accent-2); }

.lp-feat-icon--green  { background: rgba(22,163,74,.1);  color: var(--lp-green); }

.lp-feat-icon--amber  { background: rgba(217,119,6,.1);  color: var(--lp-amber); }

.lp-feat-icon--rose   { background: rgba(225,29,72,.1);  color: var(--lp-rose); }

.lp-feat-icon--teal   { background: rgba(13,148,136,.1); color: var(--lp-teal); }

.lp-feat-card h3 {
    font-family: var(--lp-h-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 0.6rem;
}

.lp-feat-card p { font-size: 0.92rem; color: var(--lp-text-2); line-height: 1.7; margin-bottom: 1.25rem; flex: 1; }

.lp-feat-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lp-accent);
    text-decoration: none;
    transition: letter-spacing .2s;
}

.lp-feat-link:hover { letter-spacing: .3px; }

.lp-feat-metric {
    margin: auto 0 1.25rem;
    padding: 0.9rem 1rem;
    background: var(--lp-surface-2);
    border-radius: var(--lp-r-md);
    border: 1px solid var(--lp-border);
    display: flex; flex-direction: column; gap: 0.2rem;
}

.lp-feat-metric-num {
    font-family: var(--lp-h-font);
    font-size: 2rem;
    font-weight: 900;
    color: var(--lp-accent);
    line-height: 1;
}

.lp-feat-metric span:last-child { font-size: 0.78rem; color: var(--lp-text-3); }

.lp-feat-sparkline { height: 50px; width: 100%; margin-bottom: 1rem; }

.lp-feat-sparkline svg { width: 100%; height: 100%; }

/* ══════════════════════════════════════════════════════════════════════════
   STEPS
══════════════════════════════════════════════════════════════════════════ */
.lp-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.lp-step {
    opacity: 0; transform: translateY(20px);
}

.lp-step.lp-revealed {
    opacity: 1; transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
}

.lp-step-n {
    font-family: var(--lp-h-font);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(37,99,235,.5);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.lp-step-line {
    width: 32px; height: 2px;
    background: rgba(37,99,235,.4);
    margin-bottom: 1.25rem;
    border-radius: 2px;
}

.lp-step h4 {
    font-family: var(--lp-h-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.lp-step p { font-size: 0.9rem; color: rgba(255,255,255,.5); line-height: 1.65; margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════════════════════════════ */
.lp-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--lp-surface-2);
    border: 1px solid var(--lp-border);
    border-radius: 99px;
    padding: 0.3rem;
    margin: 0 auto 3rem;
    display: flex;
    width: fit-content;
}

.lp-bill-opt {
    padding: 0.45rem 1.1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lp-text-2);
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; gap: 0.5rem;
}

.lp-bill-active { background: #fff; color: var(--lp-text); font-weight: 600; box-shadow: var(--lp-shadow-sm); }

.lp-save-pill {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(22,163,74,.12);
    color: var(--lp-green);
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    white-space: nowrap;
}

.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.lp-plan {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-2xl);
    padding: 2rem;
    display: flex; flex-direction: column;
    position: relative;
    opacity: 0; transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease, box-shadow .25s;
}

.lp-plan.lp-revealed { opacity: 1; transform: translateY(0); }

.lp-plan:hover { box-shadow: var(--lp-shadow-lg); }

.lp-plan-featured {
    border: 2px solid var(--lp-accent);
    background: linear-gradient(160deg, #eff6ff 0%, #f8faff 100%);
    box-shadow: var(--lp-shadow-glow);
}

.lp-plan-badge-wrap { margin-bottom: 0.75rem; }

.lp-plan-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--lp-accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.lp-plan-tier {
    font-family: var(--lp-h-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 0.5rem;
}

.lp-plan-price-wrap {
    display: flex; align-items: baseline; gap: 0.1rem;
    margin-bottom: 0.6rem;
}

.lp-plan-currency { font-size: 1.2rem; font-weight: 700; color: var(--lp-text); margin-bottom: 0.15rem; }

.lp-plan-amount {
    font-family: var(--lp-h-font);
    font-size: 3rem;
    font-weight: 900;
    color: var(--lp-text);
    line-height: 1;
    letter-spacing: -0.03em;
    transition: all .3s;
}

.lp-plan-period { font-size: 0.9rem; color: var(--lp-text-3); margin-bottom: 0.15rem; }

.lp-plan-desc { font-size: 0.875rem; color: var(--lp-text-2); line-height: 1.5; margin-bottom: 1.5rem; }

.lp-plan-list {
    list-style: none; padding: 0; margin: 0 0 2rem; flex: 1;
    display: flex; flex-direction: column; gap: 0.55rem;
}

.lp-plan-list li {
    display: flex; align-items: center; gap: 0.65rem;
    font-size: 0.875rem;
}

.lp-plan-list li.on  { color: var(--lp-text); }

.lp-plan-list li.off { color: var(--lp-text-3); text-decoration: line-through; }

.lp-plan-list li.on::before {
    content: '';
    width: 16px; height: 16px; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.lp-plan-list li.off::before {
    content: '';
    width: 16px; height: 16px; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2.5'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════════════════════ */
.lp-testi-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.lp-testi {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-xl);
    padding: 1.75rem;
    opacity: 0; transform: translateY(18px);
}

.lp-testi.lp-revealed {
    opacity: 1; transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
}

.lp-testi p {
    font-size: 0.97rem;
    color: var(--lp-text-2);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.lp-testi-author { display: flex; align-items: center; gap: 0.75rem; }

.lp-testi-av {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

.lp-testi-author strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--lp-text); }

.lp-testi-author span  { font-size: 0.78rem; color: var(--lp-text-3); }

/* ══════════════════════════════════════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════════════════════════════════════ */
.lp-cta-section {
    position: relative;
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--lp-dark-surface);
    overflow: hidden;
}

.lp-cta-noise {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: .3;
    pointer-events: none;
}

.lp-cta-inner { position: relative; z-index: 1; text-align: center; }

.lp-cta-h2 {
    font-family: var(--lp-h-font);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.lp-cta-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.55);
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.lp-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════════════ */
.lp-footer {
    background: #060d1a;
    color: rgba(255,255,255,.65);
    position: relative;
}

.lp-footer-glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,.6) 30%, rgba(124,58,237,.6) 70%, transparent);
}

.lp-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem clamp(1.25rem,4vw,3rem) 2rem;
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem 2.5rem;
    margin-bottom: 3rem;
}

.lp-footer-brand .lp-logo-wordmark { color: #fff; }

.lp-footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,.4);
    line-height: 1.7;
    margin: 1rem 0 1.25rem;
    max-width: 280px;
}

.lp-footer-socials { display: flex; gap: 0.5rem; }

.lp-social {
    width: 32px; height: 32px;
    border-radius: var(--lp-r-sm);
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.45);
    transition: all .2s;
    text-decoration: none;
}

.lp-social:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }

.lp-footer-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.3);
    margin: 0 0 1rem;
}

.lp-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }

.lp-footer-col a {
    font-size: 0.875rem;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .18s;
}

.lp-footer-col a:hover { color: #fff; }

.lp-footer-col--wide {}

.lp-footer-col-sub { font-size: 0.8rem; color: rgba(255,255,255,.35); margin-bottom: 0.75rem; line-height: 1.5; }

.lp-newsletter-form {
    display: flex;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--lp-r-md);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.lp-newsletter-input {
    flex: 1; background: rgba(255,255,255,.05);
    border: none; outline: none;
    padding: 0.6rem 0.9rem;
    font-size: 0.83rem;
    color: #fff;
    font-family: var(--lp-b-font);
}

.lp-newsletter-input::placeholder { color: rgba(255,255,255,.3); }

.lp-newsletter-input.lp-input-error { background: rgba(225,29,72,.1); }

.lp-newsletter-btn {
    background: var(--lp-accent);
    border: none;
    color: #fff;
    padding: 0 1rem;
    cursor: pointer;
    display: flex; align-items: center;
    transition: background .2s;
}

.lp-newsletter-btn:hover { background: #1d4ed8; }

.lp-newsletter-fine { font-size: 0.72rem; color: rgba(255,255,255,.3); margin: 0; }

.lp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 1.5rem;
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
}

.lp-footer-copy { font-size: 0.8rem; color: rgba(255,255,255,.3); }

.lp-footer-certs { display: flex; gap: 1.25rem; }

.lp-footer-certs span {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,.25);
    letter-spacing: .3px;
}

/* ══════════════════════════════════════════════════════════════════════════
   INNER PAGE HERO (contact / terms)
══════════════════════════════════════════════════════════════════════════ */
.lp-page-hero {
    position: relative;
    padding: calc(68px + 4rem) 0 3.5rem;
    background: var(--lp-dark-surface);
    text-align: center;
    overflow: hidden;
}

.lp-page-title {
    font-family: var(--lp-h-font);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 0.85rem;
    animation: lpFadeUp .55s ease both;
}

.lp-page-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.5);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
    animation: lpFadeUp .55s .1s ease both;
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════════════════════════════ */
.lp-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.65fr;
    gap: 3rem;
    align-items: start;
}

.lp-contact-info { display: flex; flex-direction: column; gap: 1rem; }

.lp-contact-method {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-lg);
    transition: box-shadow .2s, transform .2s;
}

.lp-contact-method:hover { box-shadow: var(--lp-shadow-md); transform: translateX(3px); }

.lp-contact-method-icon {
    width: 40px; height: 40px;
    border-radius: var(--lp-r-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.lp-icon-blue   { background: rgba(37,99,235,.1);  color: var(--lp-accent); }

.lp-icon-violet { background: rgba(124,58,237,.1); color: var(--lp-accent-2); }

.lp-icon-green  { background: rgba(22,163,74,.1);  color: var(--lp-green); }

.lp-icon-amber  { background: rgba(217,119,6,.1);  color: var(--lp-amber); }

.lp-method-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--lp-text-3); margin-bottom: 0.2rem; }

.lp-method-value { font-size: 0.95rem; font-weight: 600; color: var(--lp-accent); text-decoration: none; display: block; }

.lp-method-note  { font-size: 0.78rem; color: var(--lp-text-3); margin-top: 0.15rem; }

.lp-sla-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: rgba(22,163,74,.06);
    border: 1px solid rgba(22,163,74,.18);
    border-radius: var(--lp-r-lg);
    margin-top: 0.5rem;
}

.lp-sla-pulse {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--lp-green);
    box-shadow: 0 0 10px var(--lp-green);
    flex-shrink: 0;
    animation: lpPulse 2s infinite;
}

.lp-sla-label { font-size: 0.75rem; color: var(--lp-text-3); font-weight: 500; }

.lp-sla-num   { font-family: var(--lp-h-font); font-size: 1.3rem; font-weight: 800; color: var(--lp-green); line-height: 1.2; }

/* Contact form card */
.lp-contact-form-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-2xl);
    padding: clamp(1.75rem,4vw,2.5rem);
    box-shadow: var(--lp-shadow-md);
}

.lp-form-title {
    font-family: var(--lp-h-font);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--lp-text);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.lp-form-sub { font-size: 0.9rem; color: var(--lp-text-2); margin-bottom: 1.75rem; }

/* Form inputs */
.lp-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lp-text-2);
    margin-bottom: 0.35rem;
    letter-spacing: .2px;
}

.lp-optional { font-weight: 400; color: var(--lp-text-3); }

.lp-input {
    display: block; width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--lp-border);
    border-radius: var(--lp-r-md);
    font-family: var(--lp-b-font);
    font-size: 0.9rem;
    color: var(--lp-text);
    background: var(--lp-surface);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
}

.lp-input:focus {
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.lp-select { cursor: pointer; }

.lp-textarea { resize: vertical; min-height: 120px; }

.lp-check-row {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.85rem; color: var(--lp-text-2); cursor: pointer; line-height: 1.5;
}

.lp-check { accent-color: var(--lp-accent); margin-top: 2px; flex-shrink: 0; }

.lp-check-row a { color: var(--lp-accent); text-decoration: none; }

.lp-check-row a:hover { text-decoration: underline; }

.lp-success-banner {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    background: rgba(22,163,74,.08);
    border: 1px solid rgba(22,163,74,.25);
    border-radius: var(--lp-r-md);
    padding: 0.9rem 1.1rem;
    color: var(--lp-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Spinner */
.lp-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lpSpin .6s linear infinite;
    flex-shrink: 0;
}

@keyframes lpSpin { to { transform: rotate(360deg); } }

@keyframes lpBtnShake {
    0%,100%{ transform:translateX(0) }
    20%,60%{ transform:translateX(-5px) }
    40%,80%{ transform:translateX(5px) }
}

.lp-btn-shake { animation: lpBtnShake .5s ease; }

/* FAQ */
.lp-faq { display: flex; flex-direction: column; gap: 0.5rem; }

.lp-faq-item {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-md);
    overflow: hidden;
}

.lp-faq-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem;
    background: transparent; border: none; text-align: left;
    font-family: var(--lp-b-font);
    font-size: 0.92rem; font-weight: 600; color: var(--lp-text);
    cursor: pointer;
    transition: background .15s;
}

.lp-faq-btn span { flex: 1; }

.lp-faq-btn:hover { background: var(--lp-surface-2); }

.lp-faq-chevron { flex-shrink: 0; color: var(--lp-text-3); transition: transform .3s; }

.lp-faq-answer {
    max-height: 0; overflow: hidden;
    font-size: 0.9rem; color: var(--lp-text-2); line-height: 1.7;
    padding: 0 1.25rem;
    transition: max-height .35s ease, padding .3s;
}

.lp-faq-answer--open { max-height: 200px; padding: 0 1.25rem 1.1rem; }

/* ══════════════════════════════════════════════════════════════════════════
   TERMS PAGE
══════════════════════════════════════════════════════════════════════════ */
.lp-terms-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.lp-toc {
    position: sticky; top: 88px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-xl);
    padding: 1.25rem;
}

.lp-toc-title {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--lp-text-3); margin-bottom: 0.75rem;
}

#lpTocNav { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 1.25rem; }

.lp-toc-link {
    font-size: 0.8rem;
    color: var(--lp-text-3);
    padding: 0.3rem 0.6rem;
    border-radius: var(--lp-r-sm);
    text-decoration: none;
    transition: all .18s;
    display: block;
}

.lp-toc-link:hover { color: var(--lp-accent); background: rgba(37,99,235,.06); }

.lp-toc-link.active { color: var(--lp-accent); background: rgba(37,99,235,.07); font-weight: 600; }

.lp-progress-wrap { height: 3px; background: var(--lp-surface-3); border-radius: 99px; overflow: hidden; margin-bottom: 0.4rem; }

.lp-progress-fill { height: 100%; background: var(--lp-accent); width: 0%; transition: width .15s; border-radius: 99px; }

.lp-progress-pct { font-size: 0.7rem; color: var(--lp-text-3); }

.lp-terms-article { min-width: 0; }

.lp-terms-notice {
    display: flex; align-items: flex-start; gap: 0.6rem;
    background: rgba(37,99,235,.06);
    border: 1px solid rgba(37,99,235,.15);
    border-radius: var(--lp-r-md);
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    color: var(--lp-accent);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.lp-terms-notice a { color: var(--lp-accent); font-weight: 600; text-decoration: underline; }

.lp-terms-block { margin-bottom: 2.5rem; scroll-margin-top: 100px; padding-top: 0.5rem; }

.lp-terms-block h2 {
    font-family: var(--lp-h-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--lp-border);
    letter-spacing: -0.01em;
}

.lp-terms-block p { font-size: 0.93rem; color: var(--lp-text-2); line-height: 1.8; margin-bottom: 0.9rem; }

.lp-terms-block p a { color: var(--lp-accent); text-decoration: underline; }

.lp-terms-block ul { padding-left: 0; list-style: none; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }

.lp-terms-block li { font-size: 0.9rem; color: var(--lp-text-2); line-height: 1.7; padding-left: 1.25rem; position: relative; }

.lp-terms-block li::before { content: '—'; position: absolute; left: 0; color: var(--lp-accent); font-weight: 700; }

.lp-terms-callout {
    border-left: 3px solid;
    padding: 0.85rem 1.1rem;
    border-radius: 0 var(--lp-r-sm) var(--lp-r-sm) 0;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1rem 0;
    display: flex; align-items: flex-start; gap: 0.6rem;
}

.lp-callout-info    { border-color: var(--lp-accent); background: rgba(37,99,235,.06); color: #1e40af; }

.lp-callout-green   { border-color: var(--lp-green); background: rgba(22,163,74,.06); color: #15803d; }

.lp-callout-warning { border-color: var(--lp-amber); background: rgba(217,119,6,.06); color: #92400e; }

.lp-terms-contact {
    font-size: 0.92rem;
    color: var(--lp-text-2);
    background: var(--lp-surface-2);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-md);
    padding: 1.25rem 1.5rem;
    line-height: 1.85;
}

.lp-terms-contact a { color: var(--lp-accent); text-decoration: none; }

.lp-terms-footer-sig {
    border-top: 1px solid var(--lp-border);
    padding-top: 2rem; margin-top: 1rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-size: 0.875rem; color: var(--lp-text-2);
}

/* ── Suppress ALL transitions during initial pre-paint collapse ── */
.__sb_precollapsed #mainSidebar,
.__sb_precollapsed #mainSidebar *,
.__sb_precollapsed .up-sidebar-collapse-btn,
.__sb_precollapsed .main-content {
    transition: none !important;
}

/* ── Sidebar: default shown (expanded) ── */
.up-side-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo area */
.up-side-logo {
    padding: 18px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
    min-height: 70px;
    flex-shrink: 0;
}

.up-side-logo-img  { max-height: 60px; max-width: 160px; object-fit: contain; transition: opacity 0.2s; }

.up-side-logo-icon { display: none; max-height: 40px; max-width: 40px; object-fit: contain; transition: opacity 0.2s; }

/* ── Collapse toggle button ── */
.up-sidebar-collapse-btn {
    position: fixed;
    top: 22px;
    left: calc(var(--sidebar-width) - 14px);
    z-index: 1050;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-base);
    background: var(--bg-white);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
}

.up-sidebar-collapse-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.up-sidebar-collapse-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

/* ── Tooltip on icon-only links ── */
@media (min-width: 768px) {
    .up-side-wrapper.sidebar-collapsed .up-side-link {
        position: relative;
    }

    .up-side-wrapper.sidebar-collapsed .up-side-link:hover::after {
        content: attr(data-label);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%);
        background: var(--text-heading);
        color: #fff;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 0.78rem;
        font-weight: 600;
        white-space: nowrap;
        pointer-events: none;
        z-index: 2000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .up-side-wrapper.sidebar-collapsed .up-side-link:hover::before {
        /* override the active-bar pseudo element on hover */
    }
}

/* ── COLLAPSED state (desktop) ── */
.up-side-wrapper.sidebar-collapsed {
    width: var(--sidebar-collapsed) !important;
}

.up-side-wrapper.sidebar-collapsed .up-side-text,
.up-side-wrapper.sidebar-collapsed .up-side-profile-info,
.up-side-wrapper.sidebar-collapsed .up-side-chevron,
.up-side-wrapper.sidebar-collapsed .up-side-section span,
.up-side-wrapper.sidebar-collapsed .up-side-logo-img {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    display: none;
}

.up-side-wrapper.sidebar-collapsed .up-side-logo-icon {
    display: block;
}

.up-side-wrapper.sidebar-collapsed .up-side-link {
    justify-content: center;
    padding: 12px;
}

.up-side-wrapper.sidebar-collapsed .up-side-link i {
    margin-right: 0;
    font-size: 1.25rem;
}

.up-side-wrapper.sidebar-collapsed .up-side-profile-btn {
    justify-content: center;
    padding: 8px;
}

.up-side-wrapper.sidebar-collapsed .up-side-profile-btn img {
    margin: 0;
}

/* Collapse button moves left when sidebar collapses */
.up-sidebar-collapse-btn.collapsed {
    left: calc(var(--sidebar-collapsed) - 14px);
}

.up-sidebar-collapse-btn.collapsed i {
    transform: rotate(180deg);
}

/* ── main-content shift ── */
.main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.sidebar-collapsed-content {
    margin-left: var(--sidebar-collapsed) !important;
}

/* ── Mobile: unchanged behaviour ── */
@media (max-width: 767.98px) {
    .up-side-wrapper {
        width: var(--sidebar-width) !important;
        transform: translateX(-100%);
    }

    .up-side-wrapper.show {
        transform: translateX(0);
    }

    .up-sidebar-collapse-btn {
        display: none;
    }

    .up-side-wrapper.sidebar-collapsed {
        width: var(--sidebar-width) !important;
    }

    .up-side-wrapper.sidebar-collapsed .up-side-text,
    .up-side-wrapper.sidebar-collapsed .up-side-profile-info,
    .up-side-wrapper.sidebar-collapsed .up-side-chevron,
    .up-side-wrapper.sidebar-collapsed .up-side-section span,
    .up-side-wrapper.sidebar-collapsed .up-side-logo-img {
        opacity: 1;
        width: auto;
        overflow: visible;
        display: inline-block;
    }

    .up-side-wrapper.sidebar-collapsed .up-side-logo-icon { display: none; }

    .up-side-wrapper.sidebar-collapsed .up-side-link {
        justify-content: flex-start;
        padding: 12px 18px;
    }

    .up-side-wrapper.sidebar-collapsed .up-side-link i {
        margin-right: 12px;
        font-size: 1.15rem;
    }
}

/* Sidebar backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1030;
    backdrop-filter: blur(2px);
}

.sidebar-backdrop.show { display: block; }

#cw-badge{position:absolute;top:2px;left:100%;transform:translate(-60%,-60%);background:#ef4444;color:#fff;font-size:.58rem;font-weight:800;min-width:18px;height:18px;line-height:18px;padding:0 5px;border-radius:99px;border:2px solid var(--bg-white,#fff);display:none;white-space:nowrap;text-align:center;box-sizing:border-box}

#cw-badge.on{display:block!important}

@keyframes cwBump{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.55)}}

#cw-badge.bump{animation:cwBump .25s ease}

#cw-bd{position:fixed;inset:0;background:rgba(0,0,0,.42);backdrop-filter:blur(2px);z-index:1055;opacity:0;pointer-events:none;transition:opacity .28s ease}

#cw-bd.on{opacity:1;pointer-events:all}

#cw-dr{position:fixed;top:0;right:0;bottom:0;width:390px;max-width:96vw;background:var(--bg-white,#fff);box-shadow:-6px 0 40px rgba(0,0,0,.13);border-radius:16px 0 0 16px;z-index:1056;display:flex;flex-direction:column;transform:translateX(calc(100% + 20px));transition:transform .28s ease;overflow:hidden}

#cw-dr.on{transform:translateX(0)}

/* RTL: drawer comes from the LEFT instead */
[dir="rtl"] #cw-dr {
    right: auto;
    left: 0;
    border-radius: 0 16px 16px 0;      /* corners flip */
    box-shadow: 6px 0 40px rgba(0,0,0,.13);  /* shadow flips direction */
    transform: translateX(calc(-100% - 20px)); /* slides from left */
}

[dir="rtl"] #cw-dr.on { transform: translateX(0) }

[dir="rtl"] .cw-i-est { margin-left: 0; margin-right: 4px }

[dir="rtl"] .cw-ft-est-note { text-align: left }

[dir="rtl"] .cw-submitting { border-radius: 0 16px 16px 0 }

/* ── header ─────────────────────────────────────────────────────────── */
.cw-hd{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 13px;border-bottom:1px solid var(--border-base,#e9ecef);flex-shrink:0}

.cw-hd-l{display:flex;align-items:center;gap:10px}

.cw-hd-ico{width:38px;height:38px;border-radius:10px;background:rgba(59,130,246,.12);color:var(--accent,#3b82f6);display:flex;align-items:center;justify-content:center;font-size:1.05rem}

.cw-hd-t{font-size:.92rem;font-weight:700;color:var(--text-heading,#111)}

.cw-hd-s{font-size:.68rem;color:var(--text-muted,#6b7280);margin-top:1px}

.cw-x{width:30px;height:30px;border:1px solid var(--border-base,#e9ecef);background:var(--bg-subtle,#f8f9fa);border-radius:7px;display:flex;align-items:center;justify-content:center;color:var(--text-muted,#6b7280);cursor:pointer;font-size:.78rem;transition:all .13s}

.cw-x:hover{background:var(--border-base,#e9ecef);color:var(--text-heading,#111)}

/* ── guest notice banner ─────────────────────────────────────────────── */
.cw-guest-notice{background:linear-gradient(135deg,#eff6ff,#f0fdf4);border:1px solid #bfdbfe;border-radius:10px;padding:10px 13px;display:flex;align-items:flex-start;gap:10px;flex-shrink:0;margin:10px 12px 0}

.cw-guest-notice i{color:#3b82f6;font-size:1rem;margin-top:1px;flex-shrink:0}

.cw-guest-notice-body{flex:1;min-width:0}

.cw-guest-notice-title{font-size:.78rem;font-weight:700;color:var(--text-heading,#111);margin-bottom:2px}

.cw-guest-notice-sub{font-size:.69rem;color:var(--text-muted,#6b7280);line-height:1.4}

/* ── body / states ───────────────────────────────────────────────────── */
.cw-body{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin}

.cw-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:36px 20px;text-align:center}

.cw-empty i{font-size:2.6rem;color:var(--border-base,#e9ecef)}

.cw-empty b{font-size:.92rem;color:var(--text-heading,#111)}

.cw-empty span{font-size:.76rem;color:var(--text-muted,#6b7280);max-width:180px;line-height:1.5;display:block}

.cw-spin-w{flex:1;display:flex;align-items:center;justify-content:center}

.cw-spin{width:28px;height:28px;border:3px solid var(--border-base,#e9ecef);border-top-color:var(--accent,#3b82f6);border-radius:50%;animation:cwSpin .6s linear infinite}

@keyframes cwSpin{to{transform:rotate(360deg)}}

@keyframes cwIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

/* ── item card ───────────────────────────────────────────────────────── */
.cw-item{background:var(--bg-subtle,#f8f9fa);border:1px solid var(--border-base,#e9ecef);border-radius:10px;padding:10px 12px;display:flex;align-items:flex-start;gap:10px;position:relative;transition:opacity .18s;animation:cwIn .2s ease both}

.cw-item.saving{opacity:.35;pointer-events:none}

.cw-i-ico{width:36px;height:36px;min-width:36px;border-radius:8px;background:rgba(59,130,246,.11);color:var(--accent,#3b82f6);display:flex;align-items:center;justify-content:center;font-size:.95rem}

.cw-i-info{flex:1;min-width:0}

.cw-i-name{font-weight:700;font-size:.82rem;color:var(--text-heading,#111);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.cw-i-meta{font-size:.68rem;color:var(--text-muted,#6b7280);margin-top:1px}

.cw-i-row{display:flex;align-items:center;justify-content:space-between;margin-top:7px;gap:6px}

.cw-i-price{font-size:.83rem;font-weight:700;color:var(--text-heading,#111)}

.cw-i-price small{font-weight:400;opacity:.5}

.cw-i-ctrl{display:flex;align-items:center;gap:5px}

/* ── quantity stepper ────────────────────────────────────────────────── */
.cw-step{display:inline-flex;align-items:center;background:var(--bg-white,#fff);border:1px solid var(--border-base,#e9ecef);border-radius:6px;overflow:hidden;height:24px}

.cw-step button{width:24px;height:24px;border:none;background:transparent;color:var(--text-body,#374151);font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .1s}

.cw-step button:hover:not(:disabled){background:var(--border-base,#e9ecef)}

.cw-step button:disabled{opacity:.25;cursor:not-allowed}

.cw-step span{min-width:24px;text-align:center;font-size:.76rem;font-weight:700;color:var(--text-heading,#111);border-left:1px solid var(--border-base,#e9ecef);border-right:1px solid var(--border-base,#e9ecef);line-height:24px}

.cw-rm{width:24px;height:24px;border:1px solid var(--border-base,#e9ecef);background:var(--bg-white,#fff);border-radius:6px;color:var(--text-muted,#6b7280);font-size:.72rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .12s}

.cw-rm:hover{background:#fef2f2;border-color:#ef4444;color:#ef4444}

/* ── alerts / overlays ───────────────────────────────────────────────── */
.cw-locked{background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.25);border-radius:8px;padding:8px 12px;display:flex;align-items:center;gap:8px;font-size:.72rem;color:#92400e;flex-shrink:0}

.cw-locked i{color:#f59e0b;flex-shrink:0}

.cw-err{background:#fef2f2;border:1px solid #fecaca;border-radius:7px;padding:7px 11px;font-size:.71rem;color:#ef4444;display:flex;align-items:center;gap:7px;flex-shrink:0;animation:cwIn .16s ease}

.cw-cfm{position:absolute;inset:0;border-radius:10px;background:rgba(239,68,68,.94);display:flex;align-items:center;justify-content:center;gap:7px;z-index:2;animation:cwIn .15s ease}

.cw-cfm span{color:#fff;font-size:.76rem;font-weight:600}

.cw-cfm button{border:none;border-radius:5px;padding:3px 11px;font-size:.74rem;font-weight:700;cursor:pointer}

.cw-cfm .yes{background:#fff;color:#ef4444}

.cw-cfm .no{background:rgba(255,255,255,.2);color:#fff}

/* ── guest price estimate tag ────────────────────────────────────────── */
.cw-i-est{font-size:.63rem;color:var(--text-muted,#6b7280);background:var(--bg-subtle,#f0f4ff);border:1px solid var(--border-base,#e9ecef);border-radius:4px;padding:1px 5px;margin-left:4px;vertical-align:middle}

/* ── footer ──────────────────────────────────────────────────────────── */
.cw-ft{border-top:1px solid var(--border-base,#e9ecef);padding:13px 16px 17px;flex-shrink:0;display:none;flex-direction:column;gap:8px}

.cw-ft-row{display:flex;justify-content:space-between;align-items:center}

.cw-ft-lbl{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:var(--text-muted,#6b7280)}

.cw-ft-amt{font-size:1.25rem;font-weight:800;color:var(--text-heading,#111);letter-spacing:-.02em}

.cw-ft-amt small{font-size:.52em;font-weight:500;opacity:.5}

.cw-ft-est-note{font-size:.65rem;color:var(--text-muted,#6b7280);text-align:right;margin-top:-4px}

/* checkout buttons */
.cw-go{display:flex;align-items:center;justify-content:center;padding:11px;background:var(--accent,#3b82f6);color:#fff;font-weight:700;font-size:.86rem;border-radius:10px;text-decoration:none;border:none;cursor:pointer;transition:filter .13s,transform .1s;width:100%}

.cw-go:hover{color:#fff;filter:brightness(1.1);transform:translateY(-1px)}

/* login-to-checkout button (guest) */
.cw-go-login{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px;background:linear-gradient(135deg,#1d4ed8,#7c3aed);color:#fff;font-weight:700;font-size:.86rem;border-radius:10px;border:none;cursor:pointer;transition:filter .13s,transform .1s;width:100%;text-decoration:none}

.cw-go-login:hover{color:#fff;filter:brightness(1.12);transform:translateY(-1px)}

.cw-go-login-sub{font-size:.65rem;color:var(--text-muted,#6b7280);text-align:center;margin-top:-2px}

.cw-cont{background:transparent;border:1px solid var(--border-base,#e9ecef);color:var(--text-muted,#6b7280);font-size:.76rem;font-weight:600;border-radius:8px;padding:7px;cursor:pointer;transition:all .12s;width:100%}

.cw-cont:hover{background:var(--bg-subtle,#f8f9fa);color:var(--text-body,#374151)}

/* ── submitting overlay (guest → login transition) ───────────────────── */
.cw-submitting{position:absolute;inset:0;background:rgba(255,255,255,.88);backdrop-filter:blur(3px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;z-index:10;border-radius:16px 0 0 16px}

.cw-submitting p{font-size:.82rem;font-weight:600;color:var(--text-heading,#111);margin:0}

/* ══════════════════════════════════════════════════════════════════════════
   DARK THEME OVERRIDES
══════════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
    --lp-surface:   #0f172a;
    --lp-surface-2: #141e33;
    --lp-surface-3: #1e2d45;
    --lp-border:    rgba(255,255,255,.08);
    --lp-border-mid:rgba(255,255,255,.15);
    --lp-text:      #f1f5f9;
    --lp-text-2:    #94a3b8;
    --lp-text-3:    #475569;
}

[data-theme="dark"] .lp-header--solid { background: rgba(10,15,30,.92); }

[data-theme="dark"] .lp-logos        { background: #060d1a; border-color: rgba(255,255,255,.06); }

[data-theme="dark"] .lp-section      { background: #0a0f1e; }

[data-theme="dark"] .lp-section-tinted { background: #060d1a; }

[data-theme="dark"] .lp-feat-card    { background: #141e33; }

[data-theme="dark"] .lp-feat-card--big { background: #141e33; }

[data-theme="dark"] .lp-feat-metric  { background: #0f172a; }

[data-theme="dark"] .lp-plan         { background: #141e33; }

[data-theme="dark"] .lp-plan-featured{ background: linear-gradient(160deg,#1e3a5f 0%,#141e33 100%); }

[data-theme="dark"] .lp-bill-active  { background: #1e2d45; color: #f1f5f9; }

[data-theme="dark"] .lp-billing-toggle { background: #0f172a; }

[data-theme="dark"] .lp-testi        { background: #141e33; }

[data-theme="dark"] .lp-contact-method{ background: #141e33; }

[data-theme="dark"] .lp-contact-form-card{ background: #141e33; }

[data-theme="dark"] .lp-input        { background: #0f172a; color: #f1f5f9; }

[data-theme="dark"] .lp-faq-item     { background: #141e33; }

[data-theme="dark"] .lp-faq-btn:hover{ background: #1e2d45; }

[data-theme="dark"] .lp-toc          { background: #141e33; }

[data-theme="dark"] .lp-terms-contact{ background: #0f172a; }

[data-theme="dark"] .lp-logo-wordmark{ color: #f1f5f9; }

[data-theme="dark"] .lp-mobile-menu  { background: #0a0f1e; border-color: rgba(255,255,255,.06); }

[data-theme="dark"] .lp-mobile-nav a { color: #94a3b8; }

[data-theme="dark"] .lp-mobile-nav a:hover { background: #141e33; color: #fff; }

[data-theme="dark"] .lp-play-ring    { background: #141e33; border-color: rgba(255,255,255,.1); }

[data-theme="dark"] .lp-theme-btn    { background: #141e33; border-color: rgba(255,255,255,.1); }

[data-theme="dark"] .lp-burger       { background: #141e33; border-color: rgba(255,255,255,.1); }

[data-theme="dark"] .lp-burger span  { background: #f1f5f9; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1099.98px) {
    .lp-features-grid { grid-template-columns: repeat(2,1fr); }
    .lp-feat-card--big { grid-row: span 1; }
    .lp-feat-card--wide { grid-column: span 2; }
    .lp-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .lp-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    .lp-nav-links { display: none; }
    .lp-nav-actions .lp-btn-ghost,
    .lp-nav-actions .lp-btn-primary:not(.lp-burger-skip) { display: none; }
    .lp-burger { display: flex; }
    .lp-section-head-row { grid-template-columns: 1fr; gap: 1rem; }
    .lp-pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .lp-testi-grid { grid-template-columns: 1fr; }
    .lp-contact-layout { grid-template-columns: 1fr; }
    .lp-terms-layout { grid-template-columns: 1fr; }
    .lp-toc { position: static; }
    .lp-steps-row { grid-template-columns: 1fr; gap: 2.5rem; }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 767.98px) {
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-feat-card--wide { grid-column: span 1; }
    .lp-hero-cta { flex-direction: column; align-items: center; }
    .lp-cta-btns { flex-direction: column; align-items: center; }
    .lp-mock-body { gap: 0; padding: 1rem; }
    .lp-mock-stat { min-width: 80px; }
    .lp-footer-grid { grid-template-columns: 1fr; }
    .lp-footer-bottom { flex-direction: column; text-align: center; }
    .lp-footer-certs { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 575.98px) {
    .lp-hero-h1 { font-size: 2.4rem; }
    .lp-proof-row { flex-direction: column; align-items: center; text-align: center; }
    .lp-terms-footer-sig { flex-direction: column; text-align: center; }
    .lp-hero-mockup { display: none; }
}

.rxn-page {
    min-height: calc(100vh - var(--navbar-height, 70px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: var(--bg);
}
.rxn-card {
    background: var(--bg-white);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    max-width: 540px;
    width: 100%;
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: rxn-card-in .4s ease both;
}
.rxn-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--rxn-strip-color, var(--accent));
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}
.rxn-icon-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.6rem;
    background: var(--rxn-ring-bg);
    color: var(--rxn-ring-color);
    border: 2px solid color-mix(in srgb, var(--rxn-ring-color) 18%, transparent);
    position: relative;
    z-index: 1;
}
.rxn-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}
.rxn-pill-success    { background: var(--success-bg);   color: var(--success-text);   }
.rxn-pill-danger     { background: var(--danger-bg);    color: var(--danger-text);    }
.rxn-pill-processing { background: #ede9fe;              color: #4c1d95;               }
.rxn-pill-warning    { background: var(--warning-bg);   color: var(--warning-text);   }
.rxn-pill-neutral    { background: var(--secondary-bg); color: var(--secondary-text); }
.rxn-code {
    font-size: clamp(4.5rem, 14vw, 7rem);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 1;
    color: var(--border-mid);
    margin-bottom: 0.25rem;
    user-select: none;
}
.rxn-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
}
.rxn-msg {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}
.rxn-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 1.75rem 0;
}
.rxn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.rxn-btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 26px;
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: background .2s, box-shadow .2s, transform .15s;
    box-shadow: var(--shadow-accent);
}
.rxn-btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-accent-hover);
    transform: translateY(-1px);
    color: #fff;
}
.rxn-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.rxn-btn-ghost:hover {
    background: var(--bg-subtle);
    border-color: var(--border-mid);
    color: var(--text-heading);
}
.rxn-progress-wrap {
    background: var(--bg-subtle);
    border-radius: var(--radius-pill);
    height: 6px;
    overflow: hidden;
    margin-top: 1.25rem;
}
.rxn-progress-bar {
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--vps-accent), var(--accent));
    animation: rxn-progress 2.4s ease-in-out infinite;
}
@keyframes rxn-progress {
    0%   { width: 0%;   opacity: 1;   }
    70%  { width: 85%;  opacity: 1;   }
    90%  { width: 92%;  opacity: 0.7; }
    100% { width: 100%; opacity: 0;   }
}
.rxn-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: var(--radius-2xl);
}
.rxn-dot {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    opacity: 0;
    animation: rxn-confetti 1.2s ease forwards;
    animation-delay: var(--d, 0s);
}
@keyframes rxn-confetti {
    0%   { opacity: 0; transform: translate(0,0) scale(0); }
    30%  { opacity: 1; transform: translate(var(--tx,30px),var(--ty,-40px)) scale(1.1); }
    100% { opacity: 0; transform: translate(var(--tx2,50px),var(--ty2,60px)) scale(0.4); }
}
@keyframes rxn-card-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes rxn-pop {
    0%   { transform: scale(0.5); opacity: 0; }
    65%  { transform: scale(1.12); }
    80%  { transform: scale(0.96); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes rxn-shake {
    0%,100% { transform: translateX(0); }
    15%     { transform: translateX(-7px) rotate(-3deg); }
    35%     { transform: translateX(7px)  rotate(3deg); }
    55%     { transform: translateX(-5px); }
    75%     { transform: translateX(5px); }
}
@keyframes rxn-float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}
@keyframes rxn-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.rxn-anim-pop       { animation: rxn-pop   .55s cubic-bezier(.34,1.56,.64,1) forwards; }
.rxn-anim-shake     { animation: rxn-shake .6s  ease .2s both; }
.rxn-anim-float     { animation: rxn-float 3s   ease-in-out infinite; }
.rxn-anim-spin-icon { animation: rxn-spin  1.2s linear infinite; }

[dir="rtl"] .rxn-actions { flex-direction: row-reverse; }

@media (max-width: 575.98px) {
    .rxn-card { padding: 2rem 1.25rem 1.75rem; }
    .rxn-title { font-size: 1.2rem; }
    .rxn-btn-primary,
    .rxn-btn-ghost { width: 100%; justify-content: center; }
    .rxn-actions { flex-direction: column; }
}