/* =============================================================================
   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;
}


/* =============================================================================
   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;
}
body { font-family: 'Outfit', sans-serif; }

/* ── Menu item list ───────────────────────────────────────── */
.gs-menu-list { display: flex; flex-direction: column; gap: 8px; }

.gs-menu-item {
    display: grid;
    grid-template-columns: 28px 1fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    transition: border-color .2s, box-shadow .2s;
}
.gs-menu-item:hover { border-color: var(--border-mid); box-shadow: var(--shadow-sm); }

.gs-drag-handle {
    cursor: grab;
    color: var(--text-faint);
    font-size: 1.1rem;
    display: flex; align-items: center;
    padding: 2px;
    border-radius: 4px;
    transition: color .15s;
}
.gs-drag-handle:hover { color: var(--text-muted); }
.gs-drag-handle:active { cursor: grabbing; }

.gs-menu-item.dragging {
    opacity: .45;
    border: 2px dashed var(--accent);
    background: #eff6ff;
}
.gs-menu-item.drag-over {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}

.gs-menu-item .gs-item-input {
    padding: 6px 10px;
    border: 1px solid var(--border-base);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-body);
    background: var(--bg-white);
    width: 100%;
    transition: border-color .2s;
}
.gs-menu-item .gs-item-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 0.12rem rgba(13,110,253,.2);
}
.gs-item-input.path-input { font-family: 'Courier New', monospace; font-size: 0.8rem; color: var(--text-muted); }
.gs-item-input.key-input  { font-family: 'Courier New', monospace; font-size: 0.8rem; color: var(--text-muted); }

/* key-input wrapper — mirrors gs-icon-wrap layout so grid treats it identically */
.gs-key-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
}
.gs-key-wrap .gs-item-input {
    width: 100%;
}

/* icon picker wrapper */
.gs-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.gs-icon-wrap .gs-item-input {
    padding-left: 32px;
}
.gs-icon-preview {
    position: absolute;
    left: 8px;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    line-height: 1;
}

.gs-item-del {
    width: 30px; height: 30px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--text-faint);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.gs-item-del:hover { background: var(--danger-soft-bg); color: var(--danger); }

/* ── Add item row ─────────────────────────────────────────── */
.gs-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    padding: 14px;
    padding-bottom: 16px;
    background: var(--bg-white);
    border: 1.5px dashed var(--border-mid);
    border-radius: var(--radius-md);
    margin-top: 4px;
    margin-bottom: 2px;   /* prevent border clipping at card bottom */
    overflow: visible;
    transition: border-color .2s;
}
.gs-add-row:focus-within { border-color: var(--accent); }

/* Each field wrapper inside the add-row */
.gs-add-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 140px;   /* grow, shrink, min-width */
    min-width: 0;
}
.gs-add-field.field-name { flex: 2 1 160px; }
.gs-add-field.field-path { flex: 2 1 160px; }
.gs-add-field.field-icon { flex: 1 1 120px; }
.gs-add-field.field-key  { flex: 1 1 120px; }

.gs-add-field-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-faint);
    white-space: nowrap;
}

/* Add button always on its own baseline */
.gs-add-row .gs-add-btn {
    flex: 0 0 auto;
    align-self: flex-end;
    height: 38px;
}

.gs-add-btn {
    height: 38px;
    padding: 0 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
    transition: background .2s;
}
.gs-add-btn:hover { background: var(--accent-dark); }

/* ── Section card header with count badge ─────────────────── */
.gs-item-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: #eff6ff;
    color: var(--accent);
    margin-left: 8px;
}

/* ── Column labels ────────────────────────────────────────── */
.gs-col-labels {
    display: grid;
    grid-template-columns: 28px 1fr 1fr 1fr 1fr auto;
    gap: 10px;
    padding: 0 12px;
    margin-bottom: 4px;
}
.gs-col-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-faint);
}

/* ── Responsive: existing items list ─────────────────────── */
@media (max-width: 767px) {
    .gs-menu-item { grid-template-columns: 28px 1fr 1fr auto; }
    .gs-menu-item input.path-input,
    .gs-menu-item .gs-key-wrap { display: none; }
    .gs-col-labels { grid-template-columns: 28px 1fr 1fr auto; }
    .gs-col-label.path-label,
    .gs-col-label.key-label   { display: none; }
}
@media (max-width: 575px) {
    .gs-menu-item { grid-template-columns: 28px 1fr auto; }
    .gs-menu-item .gs-icon-wrap { display: none; }
    .gs-col-labels { grid-template-columns: 28px 1fr auto; }
    .gs-col-label.icon-label   { display: none; }
}
/* Add-row uses flex-wrap — fields reflow naturally at any width */
@media (max-width: 479px) {
    .gs-add-field { flex: 1 1 100%; }
    .gs-add-row .gs-add-btn { width: 100%; justify-content: center; }
}

/* ── Tab nav ─────────────────────────────────────────────── */
.gs-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    padding: 5px;
    flex-wrap: wrap;
}
.gs-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
    white-space: nowrap;
}
.gs-tab-btn.active {
    background: var(--bg-white);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.gs-tab-btn:hover:not(.active) {
    background: var(--bg-white);
    color: var(--text-body);
}
.gs-tab-btn i { font-size: 1rem; }

/* ── Section cards ───────────────────────────────────────── */
.gs-section {
    display: none;
    animation: fadeIn .3s ease forwards;
}
.gs-section.active { display: block; }

.gs-card {
    background: var(--bg-white);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: visible;
}
.gs-card-header {
    padding: 18px 24px 14px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}
.gs-card-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.gs-card-icon.blue   { background: #eff6ff; color: var(--accent); }
.gs-card-icon.purple { background: #f5f3ff; color: #6366f1; }
.gs-card-icon.green  { background: var(--success-soft-bg); color: var(--success); }
.gs-card-icon.orange { background: var(--warning-soft-bg); color: var(--warning); }
.gs-card-icon.red    { background: var(--danger-soft-bg); color: var(--danger); }
.gs-card-icon.slate  { background: var(--bg-subtle); color: var(--text-muted); }

.gs-card-title { font-size: 1rem; font-weight: 700; color: var(--text-heading); margin: 0; }
.gs-card-subtitle { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.gs-card-body { padding: 22px 24px; overflow: visible; }

/* ── Toggle switch ───────────────────────────────────────── */
.gs-toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.gs-toggle-row:last-child { border-bottom: none; padding-bottom: 0; }
.gs-toggle-row:first-child { padding-top: 0; }
.gs-toggle-label { font-weight: 600; color: var(--text-body); font-size: 0.9rem; margin-bottom: 2px; }
.gs-toggle-desc  { font-size: 0.78rem; color: var(--text-muted); }

.gs-switch {
    position: relative;
    width: 44px; height: 24px;
    flex-shrink: 0;
}
.gs-switch input { opacity: 0; width: 0; height: 0; }
.gs-switch-track {
    position: absolute; inset: 0;
    background: var(--border-mid);
    border-radius: 50px;
    cursor: pointer;
    transition: background .25s;
}
.gs-switch-track::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.gs-switch input:checked + .gs-switch-track { background: var(--accent); }
.gs-switch input:checked + .gs-switch-track::after { transform: translateX(20px); }

/* ── Image upload preview ────────────────────────────────── */
.gs-img-upload {
    border: 2px dashed var(--border-mid);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
    overflow: hidden;
}
.gs-img-upload:hover { border-color: var(--accent); background: #f0f6ff; }
.gs-img-upload img { max-height: 64px; max-width: 100%; object-fit: contain; }
.gs-img-upload input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.gs-img-placeholder i { font-size: 2rem; color: var(--text-faint); }
.gs-img-placeholder span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* chip styles removed — replaced by gs-menu-list */

/* ── Maintenance banner ──────────────────────────────────── */
.gs-maintenance-banner {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all .3s;
}
.gs-maintenance-banner.on  { background: var(--danger-soft-bg); color: var(--danger-text); border: 1px solid #fca5a5; }
.gs-maintenance-banner.off { background: var(--success-soft-bg); color: var(--success-text); border: 1px solid #86efac; }

/* ── Save button bar ─────────────────────────────────────── */
.gs-save-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
}
.btn-gs-save {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-gs-save:hover { background: var(--accent-dark); box-shadow: var(--shadow-accent); }
.btn-gs-save.loading { opacity: .7; pointer-events: none; }
.btn-gs-save.loading i::before { content: "\F116"; animation: gs-spin .6s linear infinite; display: inline-block; }

@keyframes gs-spin { to { transform: rotate(360deg); } }

/* ── Toast ───────────────────────────────────────────────── */
.gs-toast {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9999;
    background: var(--text-heading);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    transform: translateY(20px);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    max-width: 340px;
}
.gs-toast.show { transform: translateY(0); opacity: 1; }
.gs-toast.success i { color: #4ade80; }
.gs-toast.error   i { color: #f87171; }

/* ── Page header ─────────────────────────────────────────── */
.gs-page-header {
    margin-bottom: 24px;
}
.gs-page-header h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 2px;
}
.gs-page-header p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ── Rich-text editor toolbar ────────────────────────────── */
.gs-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-base);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.gs-editor-toolbar button {
    width: 32px; height: 32px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 5px;
    color: var(--text-body);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s;
}
.gs-editor-toolbar button:hover  { background: var(--bg-white); border-color: var(--border-base); }
.gs-editor-toolbar button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.gs-editor-toolbar .gs-sep {
    width: 1px; background: var(--border-base);
    align-self: stretch; margin: 2px 4px;
}
.gs-editor-toolbar select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border-base);
    border-radius: 5px;
    background: var(--bg-white);
    color: var(--text-body);
    font-size: 0.8rem;
    cursor: pointer;
}
.gs-rte-area {
    min-height: 260px;
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid var(--border-base);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 16px 18px;
    background: var(--bg-white);
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.7;
    outline: none;
}
.gs-rte-area:focus { border-color: var(--accent); box-shadow: 0 0 0 0.12rem rgba(13,110,253,.18); }
.gs-rte-area h1,.gs-rte-area h2,.gs-rte-area h3 { font-weight: 700; margin: .6em 0 .3em; }
.gs-rte-area h1 { font-size: 1.5rem; } .gs-rte-area h2 { font-size: 1.2rem; } .gs-rte-area h3 { font-size: 1rem; }
.gs-rte-area a  { color: var(--accent); }
.gs-rte-area ul,.gs-rte-area ol { padding-left: 1.4em; margin: .4em 0; }
.gs-rte-area blockquote { border-left: 3px solid var(--border-mid); padding-left: 12px; color: var(--text-muted); margin: .4em 0; }
.gs-rte-area table { border-collapse: collapse; width: 100%; margin: .4em 0; }
.gs-rte-area th,.gs-rte-area td { border: 1px solid var(--border-base); padding: 6px 10px; }
.gs-rte-area th { background: var(--bg-subtle); font-weight: 600; }
.gs-legal-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.gs-legal-tab  {
    padding: 7px 18px; border: 1px solid var(--border-base);
    border-radius: var(--radius-pill);
    background: transparent; color: var(--text-muted);
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: all .2s;
}
.gs-legal-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.gs-legal-panel { display: none; } .gs-legal-panel.active { display: block; }

/* ── Social links grid ───────────────────────────────────── */
.gs-social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gs-social-item { display: flex; flex-direction: column; gap: 5px; }
.gs-social-label {
    display: flex; align-items: center; gap: 7px;
    font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .4px;
}
.gs-social-label i { font-size: 1.1rem; }
.gs-social-facebook  { color: #1877f2; }
.gs-social-instagram { color: #e1306c; }
.gs-social-x         { color: #000; }
.gs-social-telegram  { color: #0088cc; }
.gs-social-discord   { color: #5865f2; }
.gs-social-linkedin  { color: #0a66c2; }
.gs-social-youtube   { color: #ff0000; }
.gs-social-tiktok    { color: #010101; }
.gs-social-whatsapp  { color: #25d366; }

/* ── Footer section builder ──────────────────────────────── */
.gs-footer-section-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}
.gs-footer-section-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    cursor: grab;
}
.gs-footer-section-header:active { cursor: grabbing; }
.gs-footer-section-title-input {
    flex: 1;
    border: none; background: transparent;
    font-weight: 700; font-size: 0.9rem; color: var(--text-heading);
    outline: none;
}
.gs-footer-section-title-input::placeholder { color: var(--text-faint); }
.gs-footer-links-list { padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; }
.gs-footer-link-row {
    display: flex; align-items: center; gap: 8px;
}
.gs-footer-link-row input[type=text] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-base);
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    background: var(--bg-white);
    color: var(--text-body);
    transition: border-color .2s;
}
.gs-footer-link-row input[type=text]:focus { outline: none; border-color: var(--accent); }
.gs-footer-link-row input[type=text].url-input { font-family: monospace; font-size: 0.78rem; color: var(--text-muted); }
.gs-footer-link-newtab {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.75rem; color: var(--text-muted); white-space: nowrap;
    cursor: pointer;
}
.gs-footer-add-link {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 10px 10px 14px;
}
.gs-footer-add-link button {
    font-size: 0.78rem; font-weight: 600;
    padding: 4px 12px; border: 1px dashed var(--border-mid);
    border-radius: var(--radius-sm); background: transparent;
    color: var(--text-muted); cursor: pointer;
    transition: border-color .2s, color .2s;
}
.gs-footer-add-link button:hover { border-color: var(--accent); color: var(--accent); }
.gs-footer-add-section {
    margin-top: 10px;
    padding: 10px 14px;
    border: 1.5px dashed var(--border-mid);
    border-radius: var(--radius-md);
    text-align: center;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
    transition: border-color .2s, color .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.gs-footer-add-section:hover { border-color: var(--accent); color: var(--accent); }
.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; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}
.inv-product-card {
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    transition: box-shadow .2s;
}
.inv-product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.inv-product-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--bg-subtle);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--text-muted); flex-shrink: 0;
}
.inv-addon-badge {
    font-size: .7rem; padding: 2px 8px; border-radius: 20px;
    background: #eff3ff; color: #3d5afe; border: 1px solid #c5ceff;
    display: inline-block; margin: 2px 2px 0 0;
}
.inv-billing-badge {
    font-size: .72rem; padding: 2px 8px; border-radius: 20px;
    background: var(--bg-subtle); color: var(--text-muted);
    border: 1px solid var(--border-base); display: inline-block;
}
.inv-user-product-link {
    font-size: .78rem; color: var(--accent); font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border: 1px solid var(--accent); border-radius: 20px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.inv-user-product-link:hover { background: var(--accent); color: #fff; }
/* 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; }
}

@keyframes spin {
    0%   { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}


/* =============================================================================
   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;
}

[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-body {
  background-color: var(--upv-card-bg);
}
.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; }


/* =============================================================================
   FORMS
   ============================================================================= */
.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-link:hover i { color: var(--accent-deep); }

.up-side-active .up-side-link {
    background-color: #eff6ff;
    color: var(--accent-deep);
}

.up-side-active .up-side-link i { 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-balance-chip:hover {
    background: var(--bg-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.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-cart-btn:hover { color: var(--accent); }

.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);
}

.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;
}

@media (max-width: 767.98px) {
    .profile-sidebar { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}

.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);
}

/* Logo area */
.up-side-logo {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}
.up-side-logo-img {
    max-height: 55px;
    width: auto;
}

/* 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;
}
.sidebar-backdrop.show { display: block; }

/* ── 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;
    }
}
@media (max-width: 575.98px) {
    .main-content > .container-fluid,
    .main-content > .container,
    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}
@media (max-width: 479.98px) {
    .main-content > .container-fluid,
    .main-content > .container,
    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !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;
    }
}

@media (max-width: 479.98px) {
    .custom-nb-balance-chip {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
}

/* --------------------------------------------------------------------------
   SERVICE HEADER
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .service-header {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

@media (max-width: 575.98px) {
    .service-header {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-lg);
        text-align: center;
    }

    .service-header .d-flex {
        flex-direction: column;
        align-items: center !important;
        gap: 1rem;
    }

    .btn-renew {
        width: 100%;
        padding: 12px 20px;
    }
}

/* --------------------------------------------------------------------------
   PRODUCT STORE – PRODUCT CARDS
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .card-img-wrapper {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .card-img-wrapper {
        height: 180px;
    }

    /* Always show image switcher buttons on mobile (no hover) */
    .img-switcher {
        opacity: 1;
        pointer-events: auto;
    }

    .price-tag {
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   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;
    }
}

@media (max-width: 575.98px) {
    .up-product-view .category-line {
        display: none; /* Too cramped on phones */
    }

    .up-product-view .category-header {
        margin-bottom: 1rem;
    }
}

/* --------------------------------------------------------------------------
   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;
    }
}

@media (max-width: 767.98px) {
    .up-details-view .price-display-box {
        padding: 14px;
    }

    .up-details-view .btn-buy {
        height: 52px;
        font-size: 1rem;
    }

    .up-details-view .quantity-control {
        max-width: 120px;
        height: 42px;
    }
}

@media (max-width: 575.98px) {
    .up-details-view .btn-buy {
        width: 100%;
    }

    .up-details-view .up-card-main {
        border-radius: var(--radius-lg);
    }
}

/* --------------------------------------------------------------------------
   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;
    }
}

@media (max-width: 767.98px) {
    /* Stack filter bar items vertically */
    .up-modern-grid .up-filter-bar {
        flex-direction: column !important;
        gap: 0.75rem;
    }

    .up-modern-grid .up-filter-bar > * {
        width: 100% !important;
    }

    .up-modern-grid .up-stat-card {
        padding: 0.75rem 1rem;
        gap: 10px;
    }

    /* Reduce action button margin for tighter rows */
    .up-modern-grid .up-btn-action {
        margin: 0 1px;
    }
}

@media (max-width: 575.98px) {
    /* Make tables horizontally scrollable without page overflow */
    .up-modern-grid .table-responsive {
        font-size: 0.82rem;
    }

    .up-modern-grid .up-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .up-modern-grid .up-product-img {
        width: 36px;
        height: 36px;
    }

    .up-modern-grid .up-product-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
}

/* --------------------------------------------------------------------------
   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;
    }
}

@media (max-width: 575.98px) {
    .dash-modern-v2 .stat-value {
        font-size: 1.15rem;
    }

    .dash-modern-v2 .stat-label {
        font-size: 0.75rem;
    }
}

/* --------------------------------------------------------------------------
   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; }
}

@media (max-width: 575.98px) {
    .table-fixed {
        /* Allow fixed-layout tables to scroll rather than overflow */
        table-layout: auto;
    }
}

/* --------------------------------------------------------------------------
   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;
    }
}

@media (max-width: 575.98px) {
    .profile-sidebar {
        padding: 1.5rem 1rem;
    }

    #profileAvatar {
        width: 90px;
        height: 90px;
    }

    .info-value {
        font-size: 0.92rem;
        margin-bottom: 1rem;
    }
}

/* 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;
    }
}

@media (max-width: 575.98px) {
    .up-ticket-system .up-back-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .up-ticket-view .up-chat-container {
        max-height: 320px;
    }

    .up-ticket-view .up-bubble {
        max-width: 95%;
    }

    /* Make reply wrapper full-width */
    .up-ticket-view .up-reply-wrapper {
        border-radius: 10px;
    }

    .replies {
        max-height: 300px;
    }

    .reply {
        max-width: 90%;
    }
}

/* --------------------------------------------------------------------------
   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);
}

/* ══════════════════════════════════════════════════════════════════════════
   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; }
}