/* ============================================================
   SRIS — DESIGN SYSTEM (COMPLETE PREMIUM EDITION)
   Theme: White/Light  |  Accent: Deep Navy + Gold
   Font: Nexa (via @font-face or CDN fallback)
   Updated with Professional Login & Register Page Enhancements
   ============================================================ */

@import url('https://fonts.cdnfonts.com/css/nexa');
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand */
     /*--primary: #0f6b47;*/
     --primary: #014631;
    --primary-dark: #034730;
    --primary-soft: #9DDA9F;
    --primary-hover: #055238;
    --primary-light: #DDF8C8;
    --primary-muted: rgba(10,143,69,.08);

    --accent: #B2F28D;
    --accent-dark: #A4811F;
    --accent-hover: #b8942e;
    --accent-light: #e2c47a;
    --accent-muted: rgba(201, 168, 76, 0.12);
    --accent-border: rgba(201, 168, 76, 0.30);
    --accent-glow: rgba(197, 160, 40, 0.2);
    --gold-light: #E9C468;

    /* Semantic */
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;
    --success-text: #166534;

    --warning: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;

    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #991b1b;

    --info: #2563eb;
    --info-bg: #eff6ff;
    --info-border: #bfdbfe;
    --info-text: #1e40af;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Surfaces */
    --bg-page: #cbcbcc;
    --bg-card: #FCFCFD;
    --bg-input: #f9fafb;
    --bg-subtle: #f3f4f6;
    --bg-overlay: rgba(15, 31, 61, 0.55);

    /* Text */
    --text-primary: #0f1f3d;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-placeholder: #c9d0dc;
    --text-inverse: #ffffff;
    --text-on-dark: rgba(255, 255, 255, 0.88);
    --text-on-dark-dim: rgba(255, 255, 255, 0.45);

    /* Borders */
    --border: #e5e7eb;
    --border-subtle: #f0f1f4;
    --border-strong: #d1d5db;
    --border-on-dark: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font: 'Nexa', 'Montserrat', sans-serif;
    --font-mono: 'DM Mono', monospace;

    /* Font sizes */
    --text-xs: 0.65rem;
    --text-sm: 0.75rem;
    --text-base: 0.875rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Spacing */
    --s1: 0.25rem;
    --s2: 0.5rem;
    --s3: 0.75rem;
    --s4: 1rem;
    --s5: 1.25rem;
    --s6: 1.5rem;
    --s8: 2rem;
    --s10: 2.5rem;
    --s12: 3rem;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 31, 61, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 18px rgba(15, 31, 61, 0.10), 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 36px rgba(15, 31, 61, 0.13), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 24px 56px rgba(15, 31, 61, 0.16);
    --shadow-accent: 0 6px 20px rgba(201, 168, 76, 0.28);
    --shadow-primary: 0 8px 24px rgba(15, 31, 61, 0.30);

    /* Transitions */
    --t-fast: 0.14s ease;
    --t-base: 0.22s ease;
    --t-slow: 0.38s ease;
    --t-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-base: 0;
    --z-raised: 10;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-tooltip: 500;
      --font-display: 'Merriweather', Georgia, serif;
            --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
            --font-mono: 'JetBrains Mono', 'Courier New', monospace;

            --gov-green: #0f6b47;
            --gov-green-dark: #0a4530;
            --gov-green-light: #1a8a5a;
            --gov-green-tint: #eaf4ef;
            --gov-gold: #a9741a;
            --gov-gold-tint: #faf3e6;

            --ink-900: #0e2019;
            --ink-700: #38473f;
            --ink-500: #6b7972;
            --ink-300: #c7d0cb;

            --bg-page: #f0f4f2;
            --surface: #ffffff;
            --border: #dfe4e1;
            --border-strong: #c7d0cb;

            --status-blue: #1d4ed8;
            --status-red: #b91c1c;
            --status-gold: #a9741a;
            --status-purple: #5b21b6;
            --status-teal: #0e7c72;

            --shadow-sm: 0 2px 8px rgba(10, 69, 48, 0.08);
            --shadow-md: 0 4px 16px rgba(10, 69, 48, 0.12);
            --shadow-lg: 0 8px 32px rgba(10, 69, 48, 0.16);
            --shadow-xl: 0 12px 48px rgba(10, 69, 48, 0.20);
            --shadow-glow: 0 0 40px rgba(15, 107, 71, 0.15);
}

/* ============================================================
   RESETS
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font) !important;
    background: #F8FAFC !important;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
input,
select,
textarea {
    border: 1px solid #063f12 !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #063f12 !important;
    box-shadow: 0 0 0 0.2rem rgba(6, 63, 18, 0.15) !important;
    outline: none;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t-base);
}

a:hover {
    color: var(--accent-hover);
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* Framework overrides */
main.py-4 {
    padding: 0 !important;
}

main.py-4>.container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.font-mono {
    font-family: var(--font-mono);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-base {
    font-size: var(--text-base);
}

.text-md {
    font-size: var(--text-md);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-2xl {
    font-size: var(--text-2xl);
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent);
}

.text-gold {
    color: var(--accent);
}

.text-inverse {
    color: var(--text-inverse);
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.flex-1 {
    flex: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: var(--s1);
}

.gap-2 {
    gap: var(--s2);
}

.gap-3 {
    gap: var(--s3);
}

.gap-4 {
    gap: var(--s4);
}

.gap-6 {
    gap: var(--s6);
}

.gap-8 {
    gap: var(--s8);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s6);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s6);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s6);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CARD
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid #DCE3EB;
    border-radius: var(--r-lg);
    padding: var(--s6);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-dark {
    background: linear-gradient(145deg, var(--primary), #08162b);
    border-color: var(--border-on-dark);
    color: var(--text-inverse);
}

.card-accent {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--accent-border);
}

.card-flat {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: var(--s6);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s5);
    padding-bottom: var(--s4);
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s5) var(--s6);
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    transition: all var(--t-base);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.stat-card .stat-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card .stat-value {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-card .stat-value .stat-currency {
    font-size: var(--text-md);
    color: var(--accent);
    margin-right: 2px;
}

.stat-card .stat-change {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--success);
}

.stat-card .stat-change.down {
    color: var(--danger);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    font-family: var(--font);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    border-radius: var(--r-md);
    padding: 0 3.2rem;
    height: 42px;
    text-decoration: none;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    letter-spacing: 0.02em;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-sm {
    height: 32px;
    font-size: var(--text-sm);
    padding: 0 0.8rem;
    border-radius: var(--r-sm);
}

.btn-lg {
    height: 52px;
    font-size: var(--text-md);
    padding: 0 1.75rem;
    border-radius: var(--r-lg);
}

.btn-full {
    width: 100%;
}

/* Primary */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 31, 61, .35);
    color: #fff;
}

.btn-primary:active {
    transform: scale(0.99);
    box-shadow: var(--shadow-xs);
}

/* Accent / Gold */
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: var(--shadow-accent);
    font-weight: 700;
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    color: var(--primary);
}

/* Outline */
.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-muted);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--primary-muted);
    color: var(--primary);
}

/* Danger */
.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Loading state */
.btn.loading .btn-text {
    visibility: hidden;
}

.btn.loading::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: srisSpin 0.7s linear infinite;
}

/* ============================================================
   FORM ELEMENTS  (global, reusable across all pages)
   ============================================================ */

/* Wrapper */
.form-group {
    margin-bottom: var(--s5);
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gray-700);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--s2);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--s1);
}

/* Input wrapper — use .input-box around every <input> */
.input-box {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-input);
    transition: all var(--t-base);
}

.input-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--t-bounce);
    border-radius: 3px 0 0 3px;
}

.input-box:focus-within {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(15, 31, 61, 0.08);
}

.input-box:focus-within::before {
    transform: scaleY(1);
}

/* Icon inside input */
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-300);
    font-size: 14px;
    pointer-events: none;
    transition: color var(--t-base);
}

.input-box:focus-within .input-icon {
    color: var(--primary);
}

/* The <input> itself */
.form-input {
    width: 100%;
    height: 48px;
    background: transparent !important;
    border: none !important;
    padding: 0 44px 0 40px;
    font-family: var(--font);
    font-size: var(--text-base);
    color: var(--text-primary) !important;
    outline: none;
}

.form-input.no-icon {
    padding-left: var(--s4);
}

.form-input::placeholder {
    color: var(--text-placeholder);
}

/* Select */
.form-select {
    width: 100%;
    height: 48px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 0 var(--s4);
    font-family: var(--font);
    font-size: var(--text-base);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    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='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all var(--t-base);
    outline: none;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 31, 61, 0.08);
}

/* Textarea */
.form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s3) var(--s4);
    font-family: var(--font);
    font-size: var(--text-base);
    color: var(--text-primary);
    resize: vertical;
    min-height: 100px;
    transition: all var(--t-base);
    outline: none;
}

.form-textarea:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(15, 31, 61, 0.08);
}

/* Validation — error state */
.input-box:has(.is-invalid),
.form-input.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger) !important;
    background: var(--danger-bg) !important;
}

.input-box:has(.is-invalid)::before {
    background: linear-gradient(180deg, var(--danger), #b91c1c);
    transform: scaleY(1);
}

.input-box:has(.is-invalid) .input-icon {
    color: var(--danger) !important;
}

.form-input.is-invalid {
    color: var(--danger-text) !important;
    animation: srисShake 0.4s ease-in-out;
}

.form-error {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: var(--text-xs);
    color: var(--danger-text);
    margin-top: var(--s1);
}

/* Password eye toggle */
.input-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-300);
    font-size: 14px;
    padding: 4px;
    border-radius: var(--r-sm);
    transition: color var(--t-base);
}

.input-eye:hover {
    color: var(--primary);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.badge:hover::after {
    opacity: 1;
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.badge-dot.blink {
    animation: srisBlink 1.8s ease-in-out infinite;
}

.badge-primary {
    background: var(--primary-muted);
    color: var(--primary);
    border: 1px solid rgba(15, 31, 61, 0.15);
}

.badge-accent {
    background: var(--accent-muted);
    color: var(--accent-hover);
    border: 1px solid var(--accent-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-neutral {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    padding: var(--s3) var(--s4);
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    border-left: 3px solid;
    line-height: 1.5;
}

.alert i {
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success-text);
}

.alert-warning {
    background: var(--warning-bg);
    border-color: var(--warning);
    color: var(--warning-text);
}

.alert-danger {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger-text);
}

.alert-info {
    background: var(--info-bg);
    border-color: var(--info);
    color: var(--info-text);
}

.alert-accent {
    background: var(--accent-muted);
    border-color: var(--accent);
    color: var(--accent-hover);
}

/* ============================================================
   TABLE
   ============================================================ */
.sris-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--text-base);
}

.sris-table th {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--s3) var(--s4);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.sris-table th:first-child {
    border-radius: var(--r-md) 0 0 0;
}

.sris-table th:last-child {
    border-radius: 0 var(--r-md) 0 0;
}

.sris-table td {
    padding: var(--s3) var(--s4);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    transition: background var(--t-fast);
}

.sris-table tbody tr {
    transition: all 0.2s ease;
}

.sris-table tbody tr:hover td {
    background: linear-gradient(90deg, var(--primary-muted), transparent);
}

.sris-table tbody tr:last-child td {
    border-bottom: none;
}

.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.ol-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
     background: linear-gradient(180deg, var(--gov-green-dark), var(--gov-green));
    display: flex;
    flex-direction: column;
    z-index: var(--z-sticky);
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.25s ease, transform 0.25s ease;
}

.ol-sidebar.collapsed {
    width: 64px;
}

.ol-sidebar.collapsed .ol-nav-label,
.ol-sidebar.collapsed .ol-brand-text,
.ol-sidebar.collapsed .ol-nav-section,
.ol-sidebar.collapsed .ol-nav-badge,
.ol-sidebar.collapsed .ol-sidebar-footer-text {
    display: none;
}

.ol-sidebar.collapsed .ol-nav-item {
    justify-content: center;
    padding: 0.65rem 0;
}

.ol-sidebar.collapsed .ol-brand {
    justify-content: center;
    padding: 1.2rem 0;
}

/* Brand */
.ol-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1.4rem 1.2rem 1rem;
    border-bottom: 1px solid var(--border-on-dark);
    flex-shrink: 0;
}

.ol-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    box-shadow: 0 3px 12px rgba(201, 168, 76, 0.3);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ol-brand:hover .ol-brand-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.45);
}

.ol-brand-name {
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
}

.ol-brand-sub {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(253, 253, 253);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ol-brand-sub-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(253, 253, 253);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Nav */
.ol-nav {
    flex: 1;
    padding: 0.5rem 0.6rem 1rem;
    overflow-y: auto;
}

.ol-nav-section {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.575);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 1rem 0.6rem 0.4rem;

    font-weight: 700;

}

.ol-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: rgb(252, 252, 252);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.ol-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.ol-nav-item:hover::before,
.ol-nav-item.active::before {
    transform: scaleY(1);
}

.ol-nav-item i {
    font-size: 16px;
    flex-shrink: 0;
}

.ol-nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
}

.ol-nav-item.active {
    background: rgba(201, 168, 76, 0.12);
    color: var(--accent);
    box-shadow: inset 2px 0 0 var(--accent);
}

.ol-nav-badge {
    margin-left: auto;
    background: rgba(201, 168, 76, 0.18);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    padding: 2px 7px;
    border-radius: 20px;
}

/* Sidebar footer */
.ol-sidebar-footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--border-on-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ol-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.ol-user-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255);
    line-height: 1.2;
}

.ol-user-role {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   HEADER BAR
   ============================================================ */
.ol-header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 58px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 12px;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-xs);
    transition: left 0.25s ease;
}

.ol-header.sidebar-collapsed {
    left: 64px;
}

.ol-header-toggle {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.ol-header-toggle:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.ol-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: var(--text-muted);
    flex: 1;
}

.ol-breadcrumb i {
    font-size: 11px;
}

.ol-breadcrumb .page-title {
    color: var(--primary);
    font-weight: 900;
    font-size: 1.5rem;
}

.ol-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ol-header-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: none;
    color: var(--gray-500);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.ol-header-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.ol-header-btn .badge-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    border: 1.5px solid #fff;
}

.ol-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: border-color 0.15s ease;
}

.ol-header-avatar:hover {
    border-color: var(--accent);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.ol-main {
    margin-left: 280px;
    margin-top: 58px;
    min-height: calc(100vh - 58px);
    padding: 1.8rem;
    transition: margin-left 0.25s ease;
}

.ol-main.sidebar-collapsed {
    margin-left: 64px;
}

.ol-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
    gap: 12px;
}

.ol-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    margin: 0 0 3px;
}

.ol-page-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   FLASH MESSAGE
   ============================================================ */
.custom-flash-message {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: var(--z-toast);
    min-width: 300px;
    max-width: 450px;
    animation: srисSlideIn 0.3s ease-out;
}

@media (max-width: 900px) {
    .custom-flash-message {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ============================================================
   MODAL
   ============================================================ */
.sris-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    backdrop-filter: blur(4px);
    animation: srisFadeIn var(--t-base) both;
}

.sris-modal {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: var(--s8);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: srисSlideUp 0.3s ease both;
}

.sris-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s6);
}

.sris-modal-title {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary);
}

.sris-modal-close {
    background: var(--bg-subtle);
    border: none;
    border-radius: var(--r-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    transition: all var(--t-base);
}

.sris-modal-close:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Bootstrap modal override */
.ds-modal {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.ds-modal .modal-header {
    background: linear-gradient(135deg, #f8faff, #f0f4ff);
    padding: 1.5rem 1.8rem;
}

.ds-modal .modal-body {
    padding: 1.8rem;
}

.ds-modal .modal-footer {
    padding: 1rem 1.8rem 1.5rem;
}

.ds-modal .form-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.ds-input {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .85rem;
    font-family: var(--font);
}

.ds-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .15rem rgba(15, 31, 61, 0.10);
    outline: none;
}

/* ============================================================
   AVATAR
   ============================================================ */
.sris-avatar {
    border-radius: 50%;
    background: var(--primary-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: var(--text-sm);
    flex-shrink: 0;
    overflow: hidden;
}

.sris-avatar-sm {
    width: 30px;
    height: 30px;
}

.sris-avatar-md {
    width: 40px;
    height: 40px;
}

.sris-avatar-lg {
    width: 52px;
    height: 52px;
    font-size: var(--text-base);
}

.sris-avatar-xl {
    width: 72px;
    height: 72px;
    font-size: var(--text-xl);
}

.sris-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   TOOLTIP
   ============================================================ */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: var(--text-xs);
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast);
    z-index: var(--z-tooltip);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.sris-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s3);
    padding: var(--s12) var(--s6);
    text-align: center;
    color: var(--text-muted);
}

.sris-empty i {
    font-size: 40px;
    color: var(--gray-300);
}

.sris-empty h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-secondary);
}

.sris-empty p {
    font-size: var(--text-base);
    max-width: 320px;
    line-height: 1.6;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.sris-divider {
    height: 1px;
    background: var(--border);
    margin: var(--s6) 0;
}

.sris-divider-accent {
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
    width: 70px;
    border-radius: 2px;
    animation: srисLineGrow 0.8s ease 0.3s both;
    transform-origin: left;
}

/* ============================================================
   PREMIUM PROFILE CARD - Clean & Professional Edition
   Light, modern, elegant design with subtle sophistication
   ============================================================ */

.app-profile-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    height: 100%;
}

.app-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-border);
}

/* Clean cover - subtle gradient */
.app-profile-cover {
    height: 100px;
    background: linear-gradient(120deg, #e8f0f5 0%, #dce6ed 100%);
    position: relative;
}

/* Optional: Add a subtle pattern overlay */
.app-profile-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 40%, rgba(255,255,255,0.3) 0%, transparent 60%);
    pointer-events: none;
}

/* Avatar - Clean and crisp */
.app-profile-content {
    text-align: center;
    padding: 0 1.25rem 1.25rem;
    margin-top: -45px;
    position: relative;
}

.app-profile-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    background: #ffffff;
    margin: auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.app-profile-card:hover .app-profile-avatar {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Name - Clean typography */
.app-profile-name {
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Role badge - Clean and minimal */
.app-profile-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4f9;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

.app-profile-role i {
    font-size: 0.65rem;
    color: var(--accent);
}

/* Code/ID - Subtle */
.app-profile-code {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-family: var(--font-mono);
}

/* Info section - Clean horizontal layout */
.app-profile-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.app-profile-info-item {
    text-align: center;
}

.app-profile-info-item i {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: block;
    opacity: 0.8;
}

.app-profile-info-item .info-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.app-profile-info-item .info-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
    display: block;
}

/* Alternative: Grid layout for more info */
.app-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.app-profile-info-card {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.app-profile-info-card:hover {
    background: #f1f5f9;
}

.app-profile-info-card i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    color: var(--accent);
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.app-profile-info-card .info-details {
    flex: 1;
}

.app-profile-info-card .info-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.app-profile-info-card .info-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

/* Description - Clean and readable */
.app-profile-description {
    margin: 12px 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer buttons - Clean and elegant */
.app-profile-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-subtle);
    background: #fafcfd;
    margin-top: 4px;
}

.profile-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.profile-btn-primary {
    background: var(--primary);
    color: white;
}

.profile-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 31, 61, 0.15);
}

.profile-btn-outline {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: white;
}

.profile-btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-muted);
}

/* Status badge - Optional */
.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f7e6;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #2e7d32;
    margin-top: 8px;
}

.profile-status i {
    font-size: 0.55rem;
}

.profile-status.inactive {
    background: #fff3e0;
    color: #ed6c02;
}

/* Simple stats row */
.profile-stats-row {
    display: flex;
    justify-content: space-around;
    margin: 12px 0;
    padding: 10px;
    background: #f8fafc;
    border-radius: 16px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
}

.profile-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Avatar with status indicator */
.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hover effects - subtle and professional */
.app-profile-card:hover .app-profile-name {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .app-profile-avatar {
        width: 70px;
        height: 70px;
    }

    .app-profile-content {
        margin-top: -35px;
    }

    .app-profile-name {
        font-size: 1rem;
    }

    .app-profile-info {
        gap: 16px;
    }

    .profile-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .app-profile-cover {
        height: 80px;
    }

    .app-profile-avatar {
        width: 60px;
        height: 60px;
    }

    .app-profile-content {
        margin-top: -30px;
    }

    .app-profile-info-grid {
        gap: 8px;
    }

    .app-profile-info-card {
        padding: 8px 10px;
    }
}
/* ============================================================
   LOGIN / AUTH PAGES - PREMIUM ENHANCEMENTS
   ============================================================ */
.rv-root {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    position: relative;
}

/* Left panel - Premium Gradient */
.rv-left {
   background: linear-gradient(
    145deg,
    #1c2533 0%,
    #1c2533 100%
);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2.2rem;
}

/* Floating decorative icons */
.rv-floating-icon {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.rv-floating-icon-1 {
    top: 15%;
    right: 10%;
    font-size: 5rem;
    transform: rotate(15deg);
}

.rv-floating-icon-2 {
    bottom: 20%;
    left: 8%;
    font-size: 4rem;
    opacity: 0.06;
}

/* Subtle line grid animation */
.rv-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(-55deg,
            rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px,
            transparent 1px, transparent 60px);
    animation: srисLinesDrift 18s linear infinite;
}

/* Radial glow orb */
.rv-pulse {
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.10) 0%, transparent 70%);
    animation: srisPulse 4s ease-in-out infinite;
}

.rv-pulse::after {
    content: '';
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.10);
    animation: srисRing 4s ease-in-out infinite 0.5s;
}

/* Brand */
.rv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    margin-bottom: 0.75rem;
    animation: srисFadeDown 0.7s ease both;
}

.rv-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    box-shadow: 0 3px 14px rgba(201, 168, 76, 0.35);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rv-brand:hover .rv-brand-icon {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.45);
}

.rv-brand-name {
    font-size: var(--text-xs);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.90);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
}

.rv-brand-sub {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Hero */
.rv-hero {
    position: relative;
    z-index: 2;
    animation: srисFadeUp 0.8s ease 0.2s both;
}

.rv-gold-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 168, 76, 0.10);
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: var(--r-sm);
    padding: 3px 10px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.rv-gold-tag:hover {
    background: rgba(201, 168, 76, 0.2);
    transform: translateX(5px);
}

.rv-gold-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: srisBlink 1.8s ease-in-out infinite;
}

.rv-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}

.rv-hero h1 span {
    background: linear-gradient(135deg, #E9C468, var(--accent), #C5A028);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shimmerText 4s ease infinite;
}

@keyframes shimmerText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rv-hero p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.45);
    max-width: 300px;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

/* Secure strip */
.rv-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.28);
    margin-top: 1.8rem;
    border-top: 1px solid var(--border-on-dark);
    padding-top: 1rem;
    transition: all 0.3s ease;
}

.rv-secure:hover i {
    animation: pulseIcon 1s ease infinite;
}

@keyframes pulseIcon {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.rv-secure i {
    color: rgba(201, 168, 76, 0.50);
    font-size: 0.7rem;
}

/* Right panel - Premium */
.rv-right {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.rv-right::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rv-right::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(15, 31, 61, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Form wrap */
.rv-form-wrap {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 2;
}

.rv-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-muted);
    padding: 5px 16px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    font-family: var(--font-mono);
}

.rv-form-eyebrow i {
    font-size: 0.7rem;
}

.rv-form-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.rv-form-sub {
    font-size: var(--text-base);
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.rv-form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.8rem;
}

.rv-form-divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--gray-300), var(--accent), var(--gray-300));
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.rv-form-divider-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    animation: shimmerLine 3s ease infinite;
}

@keyframes shimmerLine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.rv-form-divider-icon {
    color: var(--accent);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Form fields - Enhanced */
.rv-field {
    margin-bottom: 1.2rem;
}

.rv-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gray-700);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.rv-field:hover .rv-label {
    color: var(--primary);
}

.rv-label i {
    opacity: 0.7;
    transition: all 0.2s;
}

.rv-field:hover .rv-label i {
    opacity: 1;
    color: var(--accent);
    transform: translateX(2px);
}

/* Input Box - Premium */
.rv-input-box {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg-input);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.rv-input-box:hover {
    border-color: var(--accent);
    background: white;
    transform: translateY(-1px);
}

.rv-input-box:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 31, 61, 0.12), 0 0 0 3px rgba(15, 31, 61, 0.06);
    transform: translateY(-1px);
}

.rv-input-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--t-bounce);
    border-radius: 3px 0 0 3px;
}

.rv-input-box:focus-within::before {
    transform: scaleY(1);
}

.rv-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rv-input-box:focus-within .rv-input-icon {
    color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.rv-input {
    width: 100%;
    height: 52px;
    background: transparent !important;
    border: none !important;
    padding: 0 48px 0 48px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-900) !important;
    outline: none;
    letter-spacing: -0.01em;
}

.rv-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}

.rv-input:focus::placeholder {
    opacity: 0.5;
}

/* Validation */
.rv-input-box:has(.is-invalid) {
    border-color: var(--danger) !important;
    background: var(--danger-bg) !important;
}

.rv-input-box:has(.is-invalid)::before {
    background: linear-gradient(180deg, var(--danger), #b91c1c);
    transform: scaleY(1);
}

.rv-input-box:has(.is-invalid) .rv-input-icon {
    color: var(--danger) !important;
}

.rv-input.is-invalid {
    color: var(--danger-text) !important;
    animation: srисShake 0.4s ease-in-out;
}

/* Eye toggle */
.rv-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 1rem;
    padding: 8px;
    border-radius: 30px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.rv-eye:hover {
    transform: translateY(-50%) scale(1.1);
    background: var(--gray-100);
    color: var(--primary);
}

/* Alerts - Premium */
.rv-alert {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.75rem;
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    animation: slideInAlert 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 500;
}

@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rv-alert.error {
    display: flex;
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    border-left: 4px solid var(--danger);
    color: var(--danger-text);
}

.rv-alert i {
    font-size: 0.85rem;
}

/* Submit Button - Premium */
.rv-submit {
    width: 100%;
    height: 54px !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 16px !important;
    font-family: var(--font) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    letter-spacing: 0.03em;
}

.rv-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.rv-submit:active::after {
    width: 300px;
    height: 300px;
}

.rv-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 31, 61, 0.35);
}

.rv-submit:active {
    transform: translateY(1px);
}

/* Gold shimmer */
.rv-submit-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.18), transparent);
    animation: srисShimmer 3s ease-in-out infinite 1.5s;
    pointer-events: none;
}

.rv-submit-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.rv-submit-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rv-submit:hover .rv-submit-arrow {
    transform: translateX(5px);
    background: rgba(201, 168, 76, 0.4);
}

.rv-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: srisSpin 0.8s linear infinite;
    margin: 0 auto;
}

.rv-submit.loading .rv-submit-inner {
    display: none;
}

.rv-submit.loading .rv-spinner {
    display: block;
}

/* Footer Links - Animated */
.rv-form-footer {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.rv-form-footer a {
    color: var(--accent);
    font-weight: 700;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.rv-form-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width 0.3s ease;
}

.rv-form-footer a:hover::after {
    width: 100%;
}

.rv-form-footer a:hover {
    gap: 10px;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 10px;
    height: 5px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border-radius: 10px;
}

.strength-text {
    font-size: 0.7rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--gray-600);
}

/* Profile Upload Area */
.profile-upload-area {
    background: linear-gradient(135deg, var(--gray-50), white);
    border: 2px dashed var(--gray-300);
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.4, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-upload-area::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-upload-area:hover::before {
    opacity: 1;
}

.profile-upload-area:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.profile-upload-area.dragover {
    border-color: var(--accent);
    background: var(--accent-muted);
    transform: scale(0.98);
}

#previewImg {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#previewImg:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.upload-hint {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.profile-upload-area:hover .upload-hint {
    color: var(--accent);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes srисFadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes srисFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes srisFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes srісSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes srisPulse {
    0%, 100% {
        transform: scale(1);
        opacity: .6;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes srісRing {
    0%, 100% {
        transform: scale(.95);
        opacity: .4;
    }
    50% {
        transform: scale(1.05);
        opacity: .8;
    }
}

@keyframes srisBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .2;
    }
}

@keyframes srісShimmer {
    0% {
        left: -100%;
    }
    60%, 100% {
        left: 180%;
    }
}

@keyframes srісLineGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes srісShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

@keyframes srisSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes srісLinesDrift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 120px 120px;
    }
}

@keyframes srісSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .rv-root {
        grid-template-columns: 0.9fr 1fr;
    }
    .rv-left {
        padding: 1.5rem;
    }
    .rv-hero h1 {
        font-size: 1.8rem;
    }
    .ol-main {
        margin-left: 0;
        padding: 1rem;
    }
    .ol-header {
        left: 0 !important;
    }
    /* Sidebar slides off-screen — NOT display:none */
    .ol-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 400;
    }
    .ol-sidebar.mobile-open {
        transform: translateX(0);
        display: flex;    /* ensure it's visible */
    }
}

@media (max-width: 900px) {
    .rv-root {
        grid-template-columns: 1fr;
    }
    .rv-left {
        display: none;
    }
    .rv-right {
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }

    /* Sidebar */
    .ol-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 280px;
        z-index: 400;
        display: flex;    /* keep flex, just move off-screen */
    }
    .ol-sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Header always full-width on mobile */
    .ol-header {
        left: 0 !important;
        transition: none;
    }

    /* Main always full-width on mobile */
    .ol-main {
        margin-left: 0 !important;
        padding: 1rem;
        margin-top: 58px;
    }

    /* Overlay — shown on ALL mobile widths, not just ≤900 */
    .ol-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 31, 61, 0.55);
        z-index: 399;
        backdrop-filter: blur(2px);
    }
    .ol-overlay.visible {
        display: block;
    }

    /* Auth form */
    .rv-form-title {
        font-size: 1.6rem;
    }
    .rv-input {
        height: 48px;
        font-size: 0.9rem;
    }
    .rv-submit {
        height: 50px !important;
    }
}

@media (max-width: 480px) {
    .rv-hero h1 {
        font-size: 1.5rem;
    }
    .rv-form-wrap {
        max-width: 100%;
    }
    .rv-form-title {
        font-size: 1.4rem;
    }
    .rv-input-icon {
        left: 12px;
        font-size: 0.85rem;
    }
    .rv-input {
        padding: 0 40px 0 40px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   CUSTOM SCROLLBAR - Professional Touch
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gray-400), var(--gray-500));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.app-btn{
    padding: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

  .acard {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform .35s cubic-bezier(.22, .97, .29, 1), box-shadow .35s ease;
    cursor: pointer;
    position: relative;
    color:#fff
  }

  .acard:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15)
  }

 .acard-img-wrap {
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
}

.acard-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

  .acard:hover .acard-img-wrap img {
    transform: scale(1.08)
  }

  .acard-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(15, 10, 30, 0.65));
    opacity: 0;
    transition: opacity .35s ease
  }

  .acard:hover .acard-overlay {
    opacity: 1
  }

  .acard-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--primary);
    backdrop-filter: blur(4px);
    background: rgb(0, 0, 0);
    border: 1px solid rgba(255, 255, 255, 0.35)
  }



  .acard-body {
    padding: 1.1rem 1.25rem 1.25rem;
    font-family: 'DM Sans', sans-serif
  }

  .acard-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px
  }

  .acard-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.35
  }

  .acard-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem
  }

  .acard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: .85rem
  }

  .acard-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e8f0
  }

  .acard-author {
    font-size: 12px;
    color: #888
  }

  .acard-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #1a1a2e;
    color: #1a1a2e;
    background: transparent;
    transition: all .22s ease;
    letter-spacing: .04em
  }

  .acard-btn:hover {
    background: #1a1a2e;
    color: #fff
  }

  .acard-shimmer {
    position: relative;
    overflow: hidden
  }

  .acard-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: shimmer 2.4s infinite
  }

  @keyframes shimmer {
    0% {
      transform: translateX(-100%)
    }

    100% {
      transform: translateX(100%)
    }
  }

  .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block
  }

  @media(prefers-color-scheme:dark) {
    .acard {
      background: #1e1e2e;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4)
    }

    .acard-title {
      color: #e8e8f8
    }

    .acard-desc {
      color: #aaa
    }

    .acard-author {
      color: #777
    }

    .acard-footer {
      border-top-color: #2d2d3d
    }

    .acard-btn {
      border-color: #e8e8f8;
      color: #e8e8f8
    }

    .acard-btn:hover {
      background: #e8e8f8;
      color: #1e1e2e
    }
  }
/* ===========================
   CARD GRID
=========================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

/* ===========================
   CARD
=========================== */

.acard {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #edf0f5;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);

    display: flex;
    flex-direction: column;
    height: 100%;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    position: relative;
}

.acard:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

/* ===========================
   IMAGE
=========================== */

.acard-img-wrap {
    position: relative;
    height: 220px;
    background: #f8fafc;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.acard-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.acard:hover .acard-img-wrap img {
    transform: scale(1.05);
}

/* ===========================
   OVERLAY
=========================== */

.acard-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        transparent 45%,
        rgba(0, 0, 0, .55)
    );

    opacity: 0;
    transition: opacity .3s ease;
}

.acard:hover .acard-overlay {
    opacity: 1;
}

/* ===========================
   TAG
=========================== */

.acard-tag {
    position: absolute;
    top: 12px;
    right: 12px;

    background: rgba(0, 0, 0, .85);
    color: #ffffff;

    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;

    padding: 6px 12px;
    border-radius: 30px;

    z-index: 2;
}

/* ===========================
   BODY
=========================== */

.acard-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ===========================
   META
=========================== */

.acard-meta {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 12px;
    color: #8b8b95;

    margin-bottom: 8px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c4c4c4;
}

/* ===========================
   TITLE
=========================== */

.acard-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;

    line-height: 1.4;
    margin-bottom: 10px;

    min-height: 50px;
}

/* ===========================
   DESCRIPTION
=========================== */

.acard-desc {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;

    flex: 1;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* ===========================
   FOOTER
=========================== */

.acard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid #edf0f5;
}

.acard-author {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

/* ===========================
   ACTION BUTTONS
=========================== */

.acard-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.acard-actions .btn {
    flex: 1;
}

/* ===========================
   SHIMMER
=========================== */

.acard-shimmer {
    position: relative;
    overflow: hidden;
}

.acard-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.18),
        transparent
    );

    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

/* ===========================
   BADGES
=========================== */

.badge {
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
}

/* ===========================
   DARK MODE
=========================== */

@media (prefers-color-scheme: dark) {

    .acard {
        background: #1f2937;
        border-color: #374151;
    }

    .acard-title {
        color: #f9fafb;
    }

    .acard-desc,
    .acard-author,
    .acard-meta {
        color: #d1d5db;
    }

    .acard-footer {
        border-color: #374151;
    }

    .acard-img-wrap {
        background: #111827;
    }
}

/* ===========================
   MOBILE
=========================== */

@media (max-width: 768px) {

    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .acard-img-wrap {
        height: 200px;
    }
}
/* pagination */
/* Pagination styling */
.pagination {
    gap: 5px;
}

.pagination .page-item .page-link {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #2c7a4d;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #2c7a4d;
    border-color: #2c7a4d;
    color: white;
}

.pagination .page-item .page-link:hover:not(.disabled) {
    background-color: #e8f5e9;
    border-color: #2c7a4d;
    color: #1b5e2a;
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    cursor: not-allowed;
}

/* Loading spinner */
#loadingSpinner {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Smooth loading state */
.card-grid {
    position: relative;
    min-height: 400px;
}
    /* ── Stat cards ── */
    .ds-stat {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 1.2rem 1.3rem;
        position: relative;
        overflow: hidden;
        transition: box-shadow 0.2s, transform 0.2s;
    }
    .ds-stat:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
    .ds-stat::before {
        content: '';
        position: absolute; top: 0; left: 0; right: 0; height: 3px;
        border-radius: 14px 14px 0 0;
    }
    .ds-stat.green::before  { background: linear-gradient(90deg, #10b981, #34d399); }
    .ds-stat.gold::before   { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
    .ds-stat.blue::before   { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
    .ds-stat.red::before    { background: linear-gradient(90deg, #ef4444, #f87171); }

    .ds-stat-icon {
        width: 42px; height: 42px; border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
        font-size: 18px; margin-bottom: 0.9rem;
    }
    .ds-stat-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
    .ds-stat-icon.gold  { background: rgba(251,191,36,0.12); color: #d97706; }
    .ds-stat-icon.blue  { background: rgba(59,130,246,0.1);  color: #3b82f6; }
    .ds-stat-icon.red   { background: rgba(239,68,68,0.1);   color: #ef4444; }

    .ds-stat-value {
        font-family: var(--font-mono);
        font-size: 1.5rem; font-weight: 500;
        color: #0a2e1a; line-height: 1.1;
        margin-bottom: 3px;
    }
    .ds-stat-label {
        font-size: 0.72rem; color: #9ca3af;
        text-transform: uppercase; letter-spacing: 0.07em;
        margin-bottom: 6px;
    }
    .ds-stat-change {
        display: inline-flex; align-items: center; gap: 3px;
        font-size: 0.7rem; font-family: var(--font-mono);
        border-radius: 4px; padding: 2px 7px;
    }
    .ds-stat-change.up   { background: rgba(16,185,129,0.1);  color: #059669; }
    .ds-stat-change.down { background: rgba(239,68,68,0.1);   color: #dc2626; }

    /* ── Card shell ── */
    .ds-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        overflow: hidden;
    }
    .ds-card-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 1rem 1.3rem;
        border-bottom: 1px solid #f3f4f6;
    }
    .ds-card-title {
        font-size: 0.85rem; font-weight: 700;
        color: #0a2e1a; letter-spacing: -0.01em;
    }
    .ds-card-body { padding: 1.2rem 1.3rem; }

    /* ── Chart bar (pure CSS, no lib) ── */
    .ds-bar-row {
        display: flex; align-items: center; gap: 10px;
        margin-bottom: 10px;
    }
    .ds-bar-label { font-size: 0.72rem; color: #6b7280; width: 54px; flex-shrink: 0; }
    .ds-bar-track {
        flex: 1; height: 8px; background: #f3f4f6;
        border-radius: 20px; overflow: hidden;
    }
    .ds-bar-fill {
        height: 100%; border-radius: 20px;
        background: linear-gradient(90deg, #10b981, #34d399);
        transition: width 1s cubic-bezier(0.34,1.56,0.64,1);
    }
    .ds-bar-fill.gold { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
    .ds-bar-fill.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
    .ds-bar-val { font-size: 0.7rem; font-family: var(--font-mono); color: #374151; width: 48px; text-align: right; flex-shrink: 0; }

    /* ── Activity feed ── */
    .ds-activity-item {
        display: flex; gap: 10px; align-items: flex-start;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f3f4f6;
    }
    .ds-activity-item:last-child { border-bottom: none; padding-bottom: 0; }
    .ds-activity-dot {
        width: 30px; height: 30px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 13px; flex-shrink: 0; margin-top: 1px;
    }
    .ds-activity-text { font-size: 0.78rem; color: #374151; line-height: 1.4; }
    .ds-activity-text strong { font-weight: 600; color: #0a2e1a; }
    .ds-activity-time { font-size: 0.68rem; color: #9ca3af; margin-top: 2px; font-family: var(--font-mono); }

    /* ── Quick actions ── */
    .ds-quick-btn {
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 8px; padding: 1rem 0.5rem;
        border: 1px solid #e5e7eb; border-radius: 12px;
        background: #fff; cursor: pointer;
        text-decoration: none;
        transition: all 0.18s ease;
        font-size: 0.72rem; color: #374151;
        font-weight: 600; text-align: center;
    }
    .ds-quick-btn:hover {
        border-color: #10b981;
        background: rgba(16,185,129,0.04);
        color: #059669;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(16,185,129,0.12);
    }
    .ds-quick-btn i {
        font-size: 22px;
        width: 44px; height: 44px;
        border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
        background: rgba(16,185,129,0.1);
        color: #10b981;
    }

    /* ── Recent table ── */
    .ds-table { width: 100%; font-size: 0.78rem; }
    .ds-table th {
        font-family: var(--font-mono); font-size: 0.62rem;
        text-transform: uppercase; letter-spacing: 0.07em;
        color: #9ca3af; padding: 0.6rem 0.9rem;
        background: #f9fafb; font-weight: 500;
        border-bottom: 1px solid #e5e7eb;
    }
    .ds-table td {
        padding: 0.75rem 0.9rem; color: #374151;
        border-bottom: 1px solid #f3f4f6;
        vertical-align: middle;
    }
    .ds-table tbody tr:hover td { background: rgba(16,185,129,0.03); }
    .ds-table tbody tr:last-child td { border-bottom: none; }

    /* Status pills */
    .ds-pill {
        display: inline-block; padding: 2px 9px;
        border-radius: 20px; font-size: 0.65rem;
        font-family: var(--font-mono); font-weight: 500;
        text-transform: uppercase; letter-spacing: 0.05em;
    }
    .ds-pill.paid    { background: rgba(16,185,129,0.1); color: #059669; }
    .ds-pill.pending { background: rgba(251,191,36,0.12); color: #b45309; }
    .ds-pill.overdue { background: rgba(239,68,68,0.1);  color: #dc2626; }

    /* ── Mini donut (SVG) ── */
    .ds-donut-wrap { display: flex; align-items: center; gap: 1.2rem; }
    .ds-donut-legend { flex: 1; }
    .ds-donut-leg-item {
        display: flex; align-items: center; gap: 7px;
        font-size: 0.75rem; margin-bottom: 8px; color: #374151;
    }
    .ds-donut-leg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

    /* ── Target progress ── */
    .ds-progress-wrap { margin-bottom: 1rem; }
    .ds-progress-head { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 5px; }
    .ds-progress-head span:first-child { color: #374151; font-weight: 600; }
    .ds-progress-head span:last-child  { color: #9ca3af; font-family: var(--font-mono); }
    .ds-progress-bar { height: 6px; background: #f3f4f6; border-radius: 20px; overflow: hidden; }
    .ds-progress-fill { height: 100%; border-radius: 20px; transition: width 1s ease; }
