/*
 * ============================================================
 *  ZELICRA DESIGN SYSTEM — v2.0
 *  ZX-2 VIGIL Compliance Intelligence Platform
 *  (c) salvus.dev
 * ============================================================
 */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
    /* Primary Palette */
    --primary: #06B6D4;
    --primary-hover: #0891B2;
    --primary-light: #CFFAFE;
    --primary-bg: rgba(6, 182, 212, 0.08);

    /* Navy / Dark */
    --navy: #0A1628;
    --navy-light: #1E293B;
    --navy-mid: #152035;

    /* Backgrounds & Surfaces */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-hover: #F1F5F9;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --border-focus: #06B6D4;

    /* Status Colors */
    --success: #10B981;
    --success-bg: #ECFDF5;
    --success-border: #A7F3D0;
    --success-text: #065F46;

    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --warning-border: #FDE68A;
    --warning-text: #92400E;

    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --danger-border: #FECACA;
    --danger-text: #991B1B;

    --info: #3B82F6;
    --info-bg: #EFF6FF;
    --info-border: #BFDBFE;
    --info-text: #1E40AF;

    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Radii */
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition: 0.15s ease;
    --transition-slow: 0.3s ease;

    /* Layout */
    --sidebar-width: 260px;
    --topbar-height: 60px;
}


/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--primary-hover);
}

img, svg {
    display: inline-block;
    vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

code, pre {
    font-family: var(--font-mono);
}


/* ── Layout ──────────────────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--navy);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--navy-light) transparent;
}

.sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-brand {
    display: block;
    text-decoration: none;
    color: var(--text-inverse);
}

.sidebar-brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
    display: block;
}

.sidebar-brand-sub {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
    display: block;
}

.sidebar-admin-badge {
    margin: 12px 20px 0;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.sidebar-section-title {
    padding: 20px 20px 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: var(--primary);
    background: rgba(6, 182, 212, 0.08);
    border-left-color: var(--primary);
}

.sidebar-link-danger {
    color: rgba(239, 68, 68, 0.7);
}
.sidebar-link-danger:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 1.75;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-footer-text {
    font-size: 0.6875rem;
    color: var(--text-muted);
}


/* ── Main Content ────────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--topbar-height);
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.topbar-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
}
.topbar-toggle:hover {
    background: var(--surface-hover);
}

.topbar-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-tenant {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.topbar-user-icon {
    color: var(--text-muted);
}


/* ── Page Content ────────────────────────────────────────── */
.page-content {
    flex: 1;
    padding: 24px;
    max-width: 1400px;
    width: 100%;
}


/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}


/* ── KPI Cards ───────────────────────────────────────────── */
.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.kpi-card:hover {
    box-shadow: var(--shadow-md);
}

.kpi-card.success { border-left: 4px solid var(--success); }
.kpi-card.warning { border-left: 4px solid var(--warning); }
.kpi-card.danger  { border-left: 4px solid var(--danger); }

.kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.kpi-sub {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 4px;
}


/* ── Score Bar ───────────────────────────────────────────── */
.score-bar {
    width: 100%;
    height: 8px;
    background: var(--bg);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 6px;
}

.score-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.score-fill.green  { background: var(--success); }
.score-fill.yellow { background: var(--warning); }
.score-fill.red    { background: var(--danger); }


/* ── Data Tables ─────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.data-table thead {
    background: var(--bg);
}

.data-table th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--surface-hover);
}

.data-table .text-right {
    text-align: right;
}


/* ── Badges ──────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-default {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
}

.badge-primary {
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}


/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--text-inverse);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-outline:hover:not(:disabled) {
    background: var(--surface-hover);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-inverse);
    border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
    background: #DC2626;
    border-color: #DC2626;
    color: var(--text-inverse);
}

.btn-success {
    background: var(--success);
    color: var(--text-inverse);
    border-color: var(--success);
}
.btn-success:hover:not(:disabled) {
    background: #059669;
    border-color: #059669;
    color: var(--text-inverse);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 0.9375rem;
}

.btn-icon {
    padding: 8px;
    border-radius: var(--radius);
}


/* ── Forms ───────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-label-optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}


/* ── Checklist ───────────────────────────────────────────── */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    background: var(--surface-hover);
}

.checklist-item.completed {
    opacity: 0.6;
}

.checklist-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.checklist-check:hover {
    border-color: var(--primary);
}

.checklist-check.checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checklist-check.checked::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: solid var(--text-inverse);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.checklist-label {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checklist-label-title {
    font-weight: 600;
    color: var(--text-primary);
}

.checklist-label-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 2px;
}


/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition-slow);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
    line-height: 1;
}
.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}


/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger-border);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning-border);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info-text);
    border-color: var(--info-border);
}


/* ── Utilities ───────────────────────────────────────────── */
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

.text-primary   { color: var(--primary) !important; }
.text-success   { color: var(--success) !important; }
.text-warning   { color: var(--warning) !important; }
.text-danger    { color: var(--danger) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

.font-heading { font-family: var(--font-heading); }
.font-mono    { font-family: var(--font-mono); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.items-end      { align-items: flex-end; }

.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.overflow-hidden  { overflow: hidden; }
.overflow-auto    { overflow: auto; }

.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow    { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cursor-pointer { cursor: pointer; }


/* ── Pagination ──────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    padding: 16px 0;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--text-inverse);
    font-weight: 600;
}


/* ── Empty States ────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    max-width: 360px;
    margin: 0 auto;
}


/* ── Divider ─────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}


/* ── Tooltip ─────────────────────────────────────────────── */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--navy);
    color: var(--text-inverse);
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 300;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}


/* ── RTL Support ─────────────────────────────────────────── */
[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

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

[dir="rtl"] .sidebar-link {
    border-left: none;
    border-right: 3px solid transparent;
}

[dir="rtl"] .sidebar-link.active {
    border-right-color: var(--primary);
}

[dir="rtl"] .topbar-right {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .form-select {
    background-position: left 12px center;
    padding-right: 12px;
    padding-left: 36px;
}

[dir="rtl"] .text-right { text-align: left; }
[dir="rtl"] .text-left  { text-align: right; }

[dir="rtl"] .ml-auto { margin-left: 0; margin-right: auto; }
[dir="rtl"] .mr-auto { margin-right: 0; margin-left: auto; }

[dir="rtl"] .kpi-card.success,
[dir="rtl"] .kpi-card.warning,
[dir="rtl"] .kpi-card.danger {
    border-left: 1px solid var(--border);
}
[dir="rtl"] .kpi-card.success { border-right: 4px solid var(--success); }
[dir="rtl"] .kpi-card.warning { border-right: 4px solid var(--warning); }
[dir="rtl"] .kpi-card.danger  { border-right: 4px solid var(--danger); }


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-slow);
        box-shadow: none;
    }

    [dir="rtl"] .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    .main-content {
        margin-left: 0;
    }

    [dir="rtl"] .main-content {
        margin-right: 0;
    }

    .topbar-toggle {
        display: block;
    }

    .topbar-title {
        font-size: 1rem;
    }

    .topbar-tenant {
        display: none;
    }

    .page-content {
        padding: 16px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal {
        max-width: 100%;
        margin: 16px;
        max-height: calc(100vh - 32px);
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .kpi-value {
        font-size: 1.5rem;
    }

    .topbar {
        padding: 0 16px;
    }

    .topbar-user span:not(.topbar-user-icon) {
        display: none;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}


/* ── Print Styles ────────────────────────────────────────── */
@media print {
    .sidebar,
    .topbar,
    .topbar-toggle,
    .btn,
    .modal-overlay {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .page-content {
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ── ENHANCED UI — Modern 2026 SaaS ─────────────────────── */

/* Loading state for buttons */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.btn-outline.loading::after {
    border-color: rgba(0,0,0,0.15);
    border-top-color: var(--text-secondary);
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
[dir="rtl"] .toast-container {
    right: auto;
    left: 24px;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 0.8125rem;
    font-weight: 500;
    animation: toastIn 0.3s ease forwards;
    max-width: 380px;
}
.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-warning { border-left: 4px solid var(--warning); }
.toast.removing { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* Smooth checklist toggle */
.checklist-item {
    transition: all 0.2s ease;
}
.checklist-item.completing {
    background: var(--success-bg);
}
.checklist-item.uncompleting {
    background: var(--warning-bg);
}
.checklist-check {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.checklist-check.checked {
    animation: checkPop 0.3s ease;
}
@keyframes checkPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Enhanced card hover */
.card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    box-shadow: var(--shadow-md);
}

/* KPI card enhancements */
.kpi-card {
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-bg);
    transform: translate(30%, -30%);
    z-index: 0;
}
.kpi-card > * {
    position: relative;
    z-index: 1;
}

/* Score ring animation */
.score-fill {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--danger), var(--warning), var(--success));
    background-size: 300% 100%;
}

/* Arabic language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    height: 32px;
}
.lang-toggle-btn {
    border: none;
    background: none;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    height: 100%;
}
.lang-toggle-btn.active {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
}

/* Better table row transitions */
.data-table tbody tr {
    transition: background 0.15s ease;
}

/* Status dot indicator */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--danger); }
.status-dot.pending { background: var(--warning); }

/* Page header with breadcrumb feel */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}
.page-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Skeleton loading placeholder */
.skeleton {
    background: linear-gradient(90deg, var(--bg) 25%, var(--surface-hover) 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced form focus glow */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15), 0 1px 2px rgba(0,0,0,0.05);
}

/* Success animation for form submission */
@keyframes successFlash {
    0% { background-color: transparent; }
    30% { background-color: rgba(16, 185, 129, 0.08); }
    100% { background-color: transparent; }
}
.form-success-flash {
    animation: successFlash 1.5s ease;
}

/* Subtle page transition */
.page-content {
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile enhancements */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .toast-container {
        right: 12px;
        left: 12px;
    }
    .toast {
        max-width: 100%;
    }
    .lang-toggle {
        order: -1;
    }
}

/* Table cell KWD formatting */
.kwd-amount {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}
.kwd-amount::after {
    content: ' KWD';
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Sidebar module badge */
.sidebar-module-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--primary);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 8px;
}


/* ── GUI OVERHAUL v2.1 ────────────────────────────────── */

/* Sidebar enhancements */
.sidebar-link {
    transition: all var(--transition);
    border-left: 3px solid transparent;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2px 8px 2px 0;
    padding: 10px 16px 10px 13px;
}

.sidebar-link.active {
    border-left-color: var(--primary);
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
}

.sidebar-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(6, 182, 212, 0.3);
}

/* Tenant badge in sidebar */
.sidebar-tenant-badge {
    padding: 8px 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
}

/* Tables — zebra striping + hover + clickable rows */
.data-table tbody tr:nth-child(even) {
    background: var(--surface-hover);
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--primary-bg);
}

.data-table th a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.data-table th a:hover {
    color: var(--primary);
}

/* Card enhancements */
.card {
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}

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

/* KPI card enhancements */
.kpi-card {
    transition: all var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-bg);
    opacity: 0.5;
}

a .kpi-card { cursor: pointer; }

/* Clickable KPI card links */
a.kpi-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
a.kpi-link:hover .kpi-card {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 182, 212, 0.25);
}
a.kpi-link:active .kpi-card {
    transform: translateY(-1px);
}

/* Form enhancements */
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 6px;
    display: block;
}

/* Required field asterisk */
.form-label[for]::after { content: ''; }

/* Toast improvements */
.toast {
    animation: toastSlideIn 0.3s ease;
    backdrop-filter: blur(8px);
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to { transform: translateX(100%); opacity: 0; }
}

/* Badge refinements */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Empty state styling */
.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Modal improvements */
.modal-overlay {
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.2s ease;
}

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

.modal {
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

/* Score bar enhancements */
.score-bar {
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.score-fill {
    background: linear-gradient(90deg, var(--primary), #0891B2);
    transition: width 0.5s ease;
    border-radius: var(--radius-full);
    min-height: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

.pagination-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8125rem;
    transition: all var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Session 5 — Additional UI Polish ──────────────────── */

/* Enhanced print styles for compliance checklist */
@media print {
    .sidebar, .topbar, .topbar-toggle, .btn, .modal-overlay,
    .whatsapp-fab, [href*="wa.me"], .coming-soon-card,
    .trial-banner, .lang-toggle, .sidebar-footer {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .page-content {
        padding: 0 !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .compliance-item {
        page-break-inside: avoid;
    }

    .kpi-card {
        border: 1px solid #ddd;
        box-shadow: none !important;
    }

    .score-fill {
        background: #06B6D4 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .badge {
        border: 1px solid currentColor;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Form required asterisk consistency */
.required-mark {
    color: var(--danger);
    margin-left: 2px;
}

/* Mobile form improvements */
@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .data-table {
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .kpi-card {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .topbar-right {
        gap: 6px !important;
    }

    .topbar-tenant {
        font-size: 0.75rem !important;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Search input in list views */
.search-form {
    margin-bottom: 16px;
}

.search-form .form-input {
    max-width: 400px;
    padding-left: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .data-table {
        font-size: 0.8125rem;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-slow);
        position: fixed;
        z-index: 1000;
        height: 100vh;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    /* Stack forms on mobile */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr !important;
    }

    .topbar-right {
        gap: 8px;
    }

    .topbar-tenant {
        display: none;
    }
}

/* RTL support enhancements */
[dir="rtl"] .sidebar-link {
    border-left: none;
    border-right: 3px solid transparent;
    border-radius: var(--radius) 0 0 var(--radius);
    margin: 2px 0 2px 8px;
    padding: 10px 13px 10px 16px;
}

[dir="rtl"] .sidebar-link.active {
    border-right-color: var(--primary);
    border-left-color: transparent;
}

[dir="rtl"] .search-form .form-input {
    padding-left: 16px;
    padding-right: 36px;
    background-position: right 12px center;
}

/* Smooth page transitions */
.page-content {
    animation: pageContentFadeIn 0.2s ease;
}

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

/* Status timeline for detail pages */
.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 24px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.status-step {
    position: relative;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.status-step.active {
    color: var(--text-primary);
    font-weight: 500;
}

.status-step.completed {
    color: var(--success);
}

.status-step::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--surface);
}

.status-step.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.status-step.completed::before {
    background: var(--success);
}

/* Trial expired banner */
.trial-banner {
    background: linear-gradient(90deg, var(--warning-bg), var(--warning-border));
    color: var(--warning-text);
    padding: 12px 24px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.trial-banner a {
    background: var(--warning-text);
    color: #fff;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Print styles */
@media print {
    .sidebar, .topbar, .search-form, .btn { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* Empty States */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary, #64748B); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { color: var(--text-primary, #1E293B); margin: 0 0 8px; font-size: 18px; }
.empty-state p { margin: 0 0 20px; font-size: 14px; }

/* ── Modal form label contrast fix ──────────────────────── */
.modal .form-label,
.modal-overlay .form-label {
    color: var(--text-primary, #0F172A);
}
.modal .form-input,
.modal .form-select,
.modal .form-textarea,
.modal-overlay .form-input,
.modal-overlay .form-select,
.modal-overlay .form-textarea {
    color: var(--text-primary, #0F172A);
    background: var(--surface, #FFFFFF);
    border-color: var(--border, #E2E8F0);
}



/* ============================================================
 *  2026 VISUAL REFRESH — Session 4
 *  Glassmorphism, layered shadows, smooth transitions
 * ============================================================ */

/* === 1A: CSS Variables === */
:root {
    /* Glass effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-light: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 12px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.15), 0 0 40px rgba(6, 182, 212, 0.05);
    --shadow-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.15);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 300ms;

    /* Border radius — slightly rounder for 2026 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* === 1B: Global transitions on interactive elements === */
a, button, input, select, textarea,
.btn, .btn-primary, .btn-secondary, .btn-outline,
.card, .stat-card, .sidebar-link, .badge,
.table-row, tr, .modal-overlay {
    transition: all var(--duration-normal) var(--ease-smooth);
}

/* === 1C: Cards — glassmorphism + shadows + hover lift === */
.card, .stat-card, .content-card, .pricing-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.card:hover, .stat-card:hover, .pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.2);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
}

.pricing-card.active, .pricing-card.current {
    border-color: #06B6D4;
    box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
}

/* === 1D: Buttons — gradient + press effect === */
.btn-primary, button[type="submit"]:not(.btn-outline):not(.btn-secondary) {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm), 0 2px 8px rgba(6, 182, 212, 0.25);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-primary:hover, button[type="submit"]:not(.btn-outline):not(.btn-secondary):hover {
    background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%);
    box-shadow: var(--shadow-md), 0 4px 16px rgba(6, 182, 212, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active, button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary, .btn-outline {
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-secondary:hover, .btn-outline:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #06B6D4;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-danger, button.delete {
    border-radius: var(--radius-md) !important;
    transition: all var(--duration-normal) var(--ease-smooth) !important;
}

.btn-danger:hover, button.delete:hover {
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
    transform: translateY(-1px);
}

/* === 1E: Sidebar — glass effect + active glow === */
.sidebar {
    background: linear-gradient(180deg, #0A1628 0%, #0F1D32 50%, #0A1628 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-link, .sidebar a {
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
}

.sidebar-link:hover, .sidebar a:hover {
    background: rgba(6, 182, 212, 0.08);
}

.sidebar-link.active, .sidebar a.active {
    background: rgba(6, 182, 212, 0.1) !important;
    border-left: 3px solid #06B6D4;
    box-shadow: inset 4px 0 12px rgba(6, 182, 212, 0.1);
}

/* RTL active border fix */
[dir="rtl"] .sidebar-link.active, [dir="rtl"] .sidebar a.active {
    border-left: none;
    border-right: 3px solid #06B6D4;
    box-shadow: inset -4px 0 12px rgba(6, 182, 212, 0.1);
}

/* === 1F: Tables — clean, modern, hover highlights === */
table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

table thead th {
    background: rgba(15, 23, 42, 0.04);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    padding: 12px 16px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.8);
}

table tbody tr {
    transition: all var(--duration-fast) var(--ease-smooth);
}

table tbody tr:hover {
    background: rgba(6, 182, 212, 0.04);
}

table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    vertical-align: middle;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* === 1G: Badges/status pills === */
.badge, .status-badge {
    border-radius: var(--radius-full) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    padding: 3px 10px !important;
    transition: all var(--duration-fast) var(--ease-smooth);
}

/* === 1H: Modals — backdrop blur + slide-up === */
.modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(10, 22, 40, 0.6) !important;
    transition: opacity var(--duration-slow) var(--ease-smooth);
}

.modal {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-xl) !important;
    animation: modalSlideUp var(--duration-slow) var(--ease-spring);
    border: 1px solid rgba(226, 232, 240, 0.3);
}

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

/* === 1I: Form inputs — focus glow === */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="tel"],
input[type="url"], input[type="search"], select, textarea {
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--duration-normal) var(--ease-smooth);
    background: rgba(255, 255, 255, 0.8);
}

input:focus, select:focus, textarea:focus {
    border-color: #06B6D4 !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12), var(--shadow-sm) !important;
    outline: none !important;
    background: white;
}

/* === 1J: Scrollbar — thin, branded === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
}

/* === 1K: Progress bar === */
.progress-bar, [class*="progress"] {
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar > div, [class*="progress"] > div {
    transition: width 0.8s var(--ease-smooth);
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #06B6D4, #22D3EE);
}

/* === 1L: Page content fade-in === */
.main-content, .content-area, main {
    animation: contentFadeIn var(--duration-slow) var(--ease-smooth);
}

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

/* === 1M: Topbar — subtle glass === */
.topbar, .top-bar, header.app-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* === 1N: Checkbox + toggle === */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid #CBD5E1;
    transition: all var(--duration-fast) var(--ease-smooth);
    cursor: pointer;
    accent-color: #06B6D4;
}

input[type="checkbox"]:checked {
    border-color: #06B6D4;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}

input[type="checkbox"]:hover {
    border-color: #06B6D4;
}

/* === 1O: Empty states === */
.empty-state {
    padding: 48px 24px;
    text-align: center;
}

.empty-state p {
    color: #94A3B8;
    font-size: 15px;
    line-height: 1.6;
}

/* === 1P: Toast/flash animation === */
.flash-message, .toast, .alert {
    animation: toastSlideIn 0.4s var(--ease-spring);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === End 2026 Visual Refresh === */

/* BUG-01 Fix: Pricing cards need overflow:visible for POPULAR badge */
#pricing-cards .card {
    overflow: visible;
}



/* ═══════════════════════════════════════════════════════════════
   DARK MODE + GLASSMORPHISM THEME
   Toggle with data-theme="dark" on <html>
   ═══════════════════════════════════════════════════════════════ */

/* ── Theme Toggle Button ────────────────────────────────────── */
.theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 7px 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #8899b4;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: var(--primary-bg, rgba(6, 182, 212, 0.1));
  color: var(--primary, #06b6d4);
  transform: scale(1.08);
}
.theme-toggle svg {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.theme-toggle:active svg {
  transform: rotate(180deg) scale(0.9);
}
/* Theme toggle in dark topbar */
[data-theme=dark] .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #8899b4;
}
[data-theme=dark] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f0f4fc;
}


/* Sun visible in dark mode, moon visible in light mode */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }


/* ── Dark Mode CSS Variables ────────────────────────────────── */
[data-theme="dark"] {
  /* Core backgrounds */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-page: #0a0e17;

  /* Glassmorphism card backgrounds */
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-bg-hover: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-blur: 16px;
  --glass-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Text */
  --text-dark-primary: #f0f4fc;
  --text-dark-secondary: #8899b4;
  --text-dark-muted: #5a6b87;

  /* Override light-mode vars */
  --text-primary: #f0f4fc;
  --text-secondary: #8899b4;

  /* Borders */
  --border-dark: #1e2d4a;
  --border-dark-light: #2a3d5e;
  --border-color: #1e2d4a;

  /* Inputs */
  --input-dark-bg: rgba(255, 255, 255, 0.03);
  --input-dark-border: rgba(255, 255, 255, 0.1);

  /* Accent glow */
  --accent-glow: rgba(99, 102, 241, 0.2);
  --cyan-glow: rgba(34, 211, 238, 0.15);
}


/* === PAGE BACKGROUND === */
[data-theme="dark"] body,
[data-theme="dark"] .main-content,
[data-theme="dark"] .content-wrapper {
  background: var(--bg-primary) !important;
  color: var(--text-dark-primary);
}

[data-theme="dark"] .page-content {
  background: transparent;
}

/* Subtle gradient mesh background on body for depth */
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above the gradient */
[data-theme="dark"] .app-layout,
[data-theme="dark"] .main-content,
[data-theme="dark"] .content-wrapper,
[data-theme="dark"] main {
  position: relative;
  z-index: 1;
}

/* Sidebar must stay position:fixed in dark mode */
[data-theme="dark"] .sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  z-index: 100 !important;
  overflow-y: auto;
}


/* === GLASSMORPHISM CARDS === */
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .checklist-card,
[data-theme="dark"] .compliance-card,
[data-theme="dark"] .content-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .kpi-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .stat-card:hover,
[data-theme="dark"] .dashboard-card:hover,
[data-theme="dark"] .kpi-card:hover,
[data-theme="dark"] .pricing-card:hover {
  background: var(--glass-bg-hover) !important;
  border-color: var(--glass-border-hover) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glass-inner-shadow);
  transform: translateY(-2px);
}

[data-theme="dark"] .card-body {
  background: transparent !important;
}

/* Card headers inside glass cards */
[data-theme="dark"] .card-header,
[data-theme="dark"] .card .card-header {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid var(--glass-border) !important;
}

[data-theme="dark"] .card-footer {
  background: rgba(255, 255, 255, 0.02) !important;
  border-top: 1px solid var(--glass-border) !important;
}

[data-theme="dark"] .card-title {
  color: var(--text-dark-primary);
}


/* === TEXT COLORS === */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .card-title, [data-theme="dark"] .page-title,
[data-theme="dark"] label, [data-theme="dark"] strong,
[data-theme="dark"] .card strong, [data-theme="dark"] .card b {
  color: var(--text-dark-primary) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span:not(.badge):not(.sidebar *):not(.status-badge),
[data-theme="dark"] div:not(.sidebar):not(.sidebar *):not(.badge):not(.status-badge),
[data-theme="dark"] td,
[data-theme="dark"] li {
  color: var(--text-dark-secondary);
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] small,
[data-theme="dark"] .help-text,
[data-theme="dark"] .form-hint {
  color: var(--text-dark-muted) !important;
}

[data-theme="dark"] .text-secondary {
  color: var(--text-dark-secondary) !important;
}

[data-theme="dark"] a {
  color: var(--primary);
}


/* === KPI CARDS === */
[data-theme="dark"] .kpi-value {
  color: var(--text-dark-primary);
}

[data-theme="dark"] .kpi-label {
  color: var(--text-dark-muted);
}

[data-theme="dark"] .kpi-sub {
  color: var(--text-dark-secondary);
}

[data-theme="dark"] .kpi-card::before {
  background: rgba(6, 182, 212, 0.06);
}


/* === TOPBAR — glass effect === */
[data-theme="dark"] .topbar {
  background: rgba(17, 24, 39, 0.7) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="dark"] .topbar-title {
  color: var(--text-dark-primary);
}

[data-theme="dark"] .topbar-tenant {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
  color: var(--text-dark-secondary);
}

[data-theme="dark"] .topbar-user {
  color: var(--text-dark-secondary);
}

[data-theme="dark"] .topbar-user-icon {
  color: var(--text-dark-muted);
}

[data-theme="dark"] .topbar-toggle {
  color: var(--text-dark-secondary);
}
[data-theme="dark"] .topbar-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}


/* === LANG TOGGLE === */
[data-theme="dark"] .lang-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
}

[data-theme="dark"] .lang-toggle-btn {
  color: var(--text-dark-muted);
}

[data-theme="dark"] .lang-toggle-btn.active {
  background: var(--primary);
  color: white;
}


/* === TABLES === */
[data-theme="dark"] table thead th,
[data-theme="dark"] .data-table thead,
[data-theme="dark"] .data-table th {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-dark-muted) !important;
  border-bottom: 1px solid var(--glass-border) !important;
}

[data-theme="dark"] table tbody td,
[data-theme="dark"] .data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  color: var(--text-dark-secondary) !important;
}

[data-theme="dark"] table tbody tr:hover,
[data-theme="dark"] .data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] table tbody tr:hover td,
[data-theme="dark"] .data-table tbody tr:hover td {
  color: var(--text-dark-primary) !important;
}

[data-theme="dark"] .data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

[data-theme="dark"] .data-table th a {
  color: var(--text-dark-muted);
}

[data-theme="dark"] .data-table th a:hover {
  color: var(--primary);
}


/* === FORM INPUTS === */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: var(--input-dark-bg) !important;
  border: 1px solid var(--input-dark-border) !important;
  color: var(--text-dark-primary) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
  outline: none;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: var(--text-dark-muted) !important;
}

[data-theme="dark"] .form-label {
  color: var(--text-dark-primary);
}

[data-theme="dark"] .form-error {
  color: #EF4444;
}

[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6b87' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}


/* === MODALS — glass effect === */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .modal-dialog .modal-content,
[data-theme="dark"] .modal {
  background: rgba(17, 24, 39, 0.9) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .modal-header {
  border-bottom: 1px solid var(--glass-border) !important;
}

[data-theme="dark"] .modal-header h3 {
  color: var(--text-dark-primary);
}

[data-theme="dark"] .modal-close {
  color: var(--text-dark-muted);
}
[data-theme="dark"] .modal-close:hover {
  color: var(--text-dark-primary);
}

[data-theme="dark"] .modal-body {
  background: transparent;
}

[data-theme="dark"] .modal-footer {
  border-top: 1px solid var(--glass-border) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] .modal-overlay,
[data-theme="dark"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.6) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}


/* === DROPDOWNS === */
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] select option {
  background: #1a2236 !important;
  color: var(--text-dark-primary) !important;
  border: 1px solid var(--glass-border) !important;
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}


/* === ALERTS / BANNERS === */
[data-theme="dark"] .alert-success {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #6EE7B7 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

[data-theme="dark"] .alert-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #FCA5A5 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

[data-theme="dark"] .alert-warning {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

[data-theme="dark"] .alert-info {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .alert {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-dark-primary) !important;
}


/* === BADGES (keep colored — they work in both modes) === */
[data-theme="dark"] .badge-default {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dark-secondary);
  border-color: var(--glass-border);
}

[data-theme="dark"] .badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .badge-primary {
  background: rgba(6, 182, 212, 0.15);
  color: #67E8F9;
  border-color: rgba(6, 182, 212, 0.3);
}


/* === BUTTONS === */
[data-theme="dark"] .btn-outline {
  background: transparent;
  color: var(--text-dark-secondary);
  border-color: var(--glass-border);
}
[data-theme="dark"] .btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border-hover);
  color: var(--text-dark-primary);
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
}
[data-theme="dark"] .btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}


/* === CHECKLIST === */
[data-theme="dark"] .checklist-item {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .checklist-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .checklist-label-title {
  color: var(--text-dark-primary);
}

[data-theme="dark"] .checklist-label-desc {
  color: var(--text-dark-secondary);
}

[data-theme="dark"] .checklist-check {
  border-color: var(--border-dark-light);
}


/* === SCORE BAR === */
[data-theme="dark"] .score-bar {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .score-fill {
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}


/* === PROGRESS BARS === */
[data-theme="dark"] .progress,
[data-theme="dark"] .progress-bar-track,
[data-theme="dark"] .progress-bar,
[data-theme="dark"] .progress-track,
[data-theme="dark"] .onboarding-progress {
  background: rgba(255, 255, 255, 0.06) !important;
}


/* === PAGINATION === */
[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span {
  color: var(--text-dark-secondary);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
}

[data-theme="dark"] .pagination a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dark-primary);
}


/* === TOAST === */
[data-theme="dark"] .toast {
  background: rgba(26, 34, 54, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-dark-primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}


/* === EMPTY STATE === */
[data-theme="dark"] .empty-state-title {
  color: var(--text-dark-primary);
}

[data-theme="dark"] .empty-state-text {
  color: var(--text-dark-secondary);
}


/* === DIVIDERS === */
[data-theme="dark"] .divider {
  background: var(--glass-border);
}


/* === TOOLTIP === */
[data-theme="dark"] [data-tooltip]::after {
  background: rgba(26, 34, 54, 0.95);
  color: var(--text-dark-primary);
  border: 1px solid var(--glass-border);
}


/* === SKELETON LOADING === */
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
}


/* === SCROLLBARS === */
[data-theme="dark"] ::-webkit-scrollbar { width: 6px; height: 6px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Firefox scrollbar */
[data-theme="dark"] * {
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  scrollbar-width: thin;
}


/* === BOX SHADOWS === */
[data-theme="dark"] .shadow, [data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow-md, [data-theme="dark"] .shadow-lg {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}


/* === TRIAL BANNER === */
[data-theme="dark"] .trial-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}


/* === SIDEBAR (glassmorphism in dark mode) === */
[data-theme="dark"] .sidebar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
}

[data-theme="dark"] .sidebar-link.active {
  box-shadow: inset 3px 0 0 var(--primary);
}


/* === INVOICE PREVIEW stays white (it's a document) === */
[data-theme="dark"] .invoice-preview,
[data-theme="dark"] .pdf-preview,
[data-theme="dark"] [class*="invoice-preview"],
[data-theme="dark"] [class*="pdf-preview"] {
  background: #fff !important;
  color: #111 !important;
}
[data-theme="dark"] .invoice-preview *,
[data-theme="dark"] .pdf-preview * {
  color: inherit !important;
}


/* === CARDS: links inside === */
[data-theme="dark"] .card a:not(.btn) {
  color: var(--primary);
}


/* ═══════════════════════════════════════════════════════════════
   SMOOTH THEME TRANSITIONS
   ═══════════════════════════════════════════════════════════════ */

body, .card, .card-body, .card-header, .card-footer,
table, thead, tbody, th, td, input, select, textarea,
.modal-content, .dropdown-menu, .form-control,
.kpi-card, .alert, .toast, .btn-outline,
.checklist-item, .checklist-label-title, .checklist-label-desc,
.form-input, .form-select, .form-textarea, .form-label,
.page-content, .lang-toggle, .lang-toggle-btn,
.pagination a, .pagination span, .divider, .score-bar,
.topbar, .topbar-title, .topbar-tenant, .topbar-user,
h1, h2, h3, h4, h5, h6, a, .empty-state-title, .empty-state-text,
.main-content, p, span, label {
  transition: background-color 0.35s ease, color 0.25s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}


/* ═══════════════════════════════════════════════════════════════
   ENHANCED ANIMATIONS (both modes)
   ═══════════════════════════════════════════════════════════════ */

/* Page content fade-in on load */
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-content, .content-wrapper {
  animation: pageSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* General card entrance animation */
.card {
    animation: cardReveal 0.4s ease forwards;
}

/* Staggered card entrance — apply class="stagger-cards" to card containers */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.stagger-cards > * {
  animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stagger-cards > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-cards > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-cards > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-cards > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-cards > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-cards > *:nth-child(6) { animation-delay: 0.3s; }

/* Card hover lift (both modes but more dramatic in dark) */
.card, .stat-card, .dashboard-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .stat-card:hover,
[data-theme="dark"] .kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Subtle glow on accent-colored elements in dark mode */
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-success:hover {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

/* Table row hover slide */
[data-theme="dark"] table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] table tbody tr:hover {
  transform: translateX(2px);
}

/* Nav item hover glow in dark mode */
[data-theme="dark"] .sidebar .nav-link:hover,
[data-theme="dark"] .sidebar .sidebar-link:hover {
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}

/* Progress bar shimmer animation */
@keyframes progressShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

[data-theme="dark"] .progress-bar > div,
[data-theme="dark"] .score-fill {
  background-size: 200% auto;
  animation: progressShimmer 3s linear infinite;
}

/* Compliance score number pulse on load */
@keyframes scorePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

[data-theme="dark"] .compliance-score-value,
[data-theme="dark"] .score-number {
  animation: scorePulse 2s ease-in-out;
}

/* Checklist item hover slide */
[data-theme="dark"] .checklist-card:hover,
[data-theme="dark"] .checklist-item:hover,
[data-theme="dark"] .compliance-item:hover {
  transform: translateX(4px);
  border-color: var(--glass-border-hover) !important;
}

/* Badge subtle pop animation on appear */
@keyframes badgePop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* === USD Price Display === */
.price-usd {
  font-size: 12px;
  color: #8899b4;
  font-weight: 400;
  margin-top: 2px;
}
[data-theme="dark"] .price-usd {
  color: var(--text-dark-muted);
}


/* ═══════════════════════════════════════════════════════════════
   DARK MODE — FINAL POLISH
   ═══════════════════════════════════════════════════════════════ */

/* === Get Started / Onboarding Stepper === */
[data-theme="dark"] #onboarding-banner {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);
}

/* === Email verification yellow banner === */
[data-theme="dark"] [style*="background:#F59E0B"],
[data-theme="dark"] [style*="background: #F59E0B"] {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* === Bulk action bars === */
[data-theme="dark"] .bulk-actions,
[data-theme="dark"] .bulk-action-bar {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-dark-primary) !important;
}

/* === Flash messages / toasts === */
[data-theme="dark"] .toast-success {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #6EE7B7 !important;
}

[data-theme="dark"] .toast-error {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #FCA5A5 !important;
}

[data-theme="dark"] .toast-warning {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  color: #FCD34D !important;
}

/* === Compliance badge area ("Complete 50%+ to unlock") === */
[data-theme="dark"] [style*="Complete more checklist items"] {
  color: var(--text-dark-secondary) !important;
}

/* === File upload areas / drag-drop zones === */
[data-theme="dark"] .upload-area,
[data-theme="dark"] .drag-drop-zone,
[data-theme="dark"] .file-upload,
[data-theme="dark"] [class*="upload"],
[data-theme="dark"] [class*="drop-zone"] {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: var(--glass-border) !important;
  color: var(--text-dark-secondary) !important;
}

/* === Pricing cards in dark mode === */
[data-theme="dark"] #pricing-cards .card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
}

[data-theme="dark"] #pricing-cards .card[style*="border: 2px solid var(--primary)"] {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

/* === POPULAR badge on pricing card === */
[data-theme="dark"] #pricing-cards [style*="background: var(--primary)"] {
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

/* === Promo/referral banners with inline green backgrounds === */
[data-theme="dark"] [style*="rgba(16, 185, 129"] {
  background: rgba(16, 185, 129, 0.08) !important;
}

[data-theme="dark"] [style*="rgba(6, 182, 212"] {
  background: rgba(6, 182, 212, 0.08) !important;
}

/* === Coming soon cards === */
[data-theme="dark"] .coming-soon-card {
  background: var(--glass-bg) !important;
  border-color: var(--glass-border) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

[data-theme="dark"] .coming-soon-badge {
  background: rgba(6, 182, 212, 0.15) !important;
}

/* === Notify button dark mode === */
[data-theme="dark"] .notify-btn {
  border-color: var(--glass-border);
  color: var(--text-dark-secondary);
}

[data-theme="dark"] .notify-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  color: var(--primary);
}

/* === Data export buttons === */
[data-theme="dark"] .btn-sm {
  border-color: var(--glass-border);
}

/* === Inline bg styles that need dark override === */
[data-theme="dark"] [style*="background: var(--bg, #F8FAFC)"],
[data-theme="dark"] [style*="background:var(--bg, #F8FAFC)"] {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* === Referral page === */
[data-theme="dark"] .referral-link-box,
[data-theme="dark"] .how-it-works-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
}

/* === Settings form sections === */
[data-theme="dark"] .settings-section,
[data-theme="dark"] .form-section {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
}

/* === Toggle switches === */
[data-theme="dark"] #toggle-track {
  background: var(--border-dark) !important;
}

[data-theme="dark"] input[type="checkbox"]:checked + #toggle-track,
[data-theme="dark"] #annual-toggle:checked + #toggle-track {
  background: var(--primary) !important;
}

/* === Signature display === */
[data-theme="dark"] .signature-preview,
[data-theme="dark"] .signature-display {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--glass-border) !important;
}

/* === Contract preview === */
[data-theme="dark"] .contract-preview {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-dark-secondary) !important;
}

/* === Report cards === */
[data-theme="dark"] .report-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

/* === Selection / highlight backgrounds === */
[data-theme="dark"] ::selection {
  background: rgba(6, 182, 212, 0.3);
  color: #f0f4fc;
}

/* === Tab navigation (if any) === */
[data-theme="dark"] .tab-nav,
[data-theme="dark"] .tabs {
  border-bottom-color: var(--glass-border);
}

[data-theme="dark"] .tab-active,
[data-theme="dark"] .tab.active {
  border-bottom-color: var(--primary);
  color: var(--text-dark-primary);
}

/* === Monospace / code blocks in dark mode === */
[data-theme="dark"] code,
[data-theme="dark"] pre,
[data-theme="dark"] [style*="font-family: 'JetBrains Mono'"] {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #67E8F9 !important;
  border-color: var(--glass-border) !important;
}

/* === Invoice list items (recent invoices on billing page) === */
[data-theme="dark"] [style*="background: var(--bg, #F8FAFC)"] {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Dark mode Coming Soon cards */
[data-theme="dark"] .card[style*="dashed"] { border-color: rgba(255, 255, 255, 0.12) \!important; }

/* Trial Banners */
.trial-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-radius: 10px;
    margin: 0 0 20px 0;
    font-size: 14px;
    font-weight: 500;
    gap: 16px;
}

.trial-banner-active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #0891b2;
}

.trial-banner-urgent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #d97706;
}

.trial-banner-expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.12));
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #dc2626;
}

.trial-upgrade-btn {
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.trial-upgrade-btn:hover {
    opacity: 0.9;
}

.trial-banner-expired .trial-upgrade-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

[data-theme="dark"] .trial-banner-active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.12));
    color: #22d3ee;
}

[data-theme="dark"] .trial-banner-urgent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.12));
    color: #fbbf24;
}

[data-theme="dark"] .trial-banner-expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.18));
    color: #f87171;
}

/* Store Switcher */
.store-switcher {
    position: relative;
    margin-right: 12px;
}
.store-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
    border-radius: 8px;
    padding: 6px 12px;
    color: inherit;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}
.store-switcher-btn:hover {
    background: var(--glass-bg-light, rgba(255,255,255,0.05));
    border-color: rgba(6, 182, 212, 0.3);
}
.store-switcher-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: var(--glass-bg, rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow: hidden;
}
.store-switcher-dropdown.show {
    display: block;
}
.store-switcher-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}
.store-switcher-item:hover {
    background: rgba(6, 182, 212, 0.1);
}
.store-switcher-item.active {
    background: rgba(6, 182, 212, 0.08);
}
.store-switcher-item-name {
    flex: 1;
    font-weight: 500;
}
.store-switcher-item-tier {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tier-free { background: rgba(100,116,139,0.2); color: #94a3b8; }
.tier-starter { background: rgba(6,182,212,0.15); color: #06b6d4; }
.tier-professional { background: rgba(99,102,241,0.15); color: #818cf8; }
.tier-enterprise { background: rgba(168,85,247,0.15); color: #c084fc; }
.store-switcher-check {
    color: #06b6d4;
    font-weight: bold;
}
.store-switcher-divider {
    height: 1px;
    background: var(--glass-border, rgba(255,255,255,0.1));
    margin: 4px 0;
}
.store-switcher-add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #06b6d4;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}
.store-switcher-add:hover {
    background: rgba(6, 182, 212, 0.1);
}
[data-theme="light"] .store-switcher-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
[data-theme="light"] .store-switcher-item:hover {
    background: rgba(6, 182, 212, 0.06);
}
[data-theme="light"] .store-switcher-btn {
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .store-switcher-btn:hover {
    background: rgba(0,0,0,0.03);
}
