/*
 * Veldora UI — Component Stylesheet
 * Version: 0.1.0
 * Monochrome-first, dark-mode-first design system.
 * Include once: <link rel="stylesheet" href="/vendor/veldora-ui/veldora-ui.css">
 */

/* ─────────────────────────────────────────────────────────────────────────────
   Design Tokens
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Palette */
    --vui-bg:          #0d0d0d;
    --vui-surface:     #161616;
    --vui-surface-2:   #1f1f1f;
    --vui-border:      #2a2a2a;
    --vui-border-focus:#555;
    --vui-text:        #e8e8e8;
    --vui-text-muted:  #888;
    --vui-text-dim:    #555;

    /* Accent (monochrome purple-gray) */
    --vui-accent:      #7c6ef5;
    --vui-accent-dark: #5d50d6;
    --vui-accent-dim:  rgba(124, 110, 245, 0.15);

    /* Semantic */
    --vui-success:     #22c55e;
    --vui-success-bg:  rgba(34, 197, 94, 0.10);
    --vui-warning:     #f59e0b;
    --vui-warning-bg:  rgba(245, 158, 11, 0.10);
    --vui-danger:      #ef4444;
    --vui-danger-bg:   rgba(239, 68, 68, 0.10);
    --vui-info:        #38bdf8;
    --vui-info-bg:     rgba(56, 189, 248, 0.10);
    --vui-purple:      #a78bfa;
    --vui-purple-bg:   rgba(167, 139, 250, 0.10);

    /* Typography */
    --vui-font:        'Inter', system-ui, -apple-system, sans-serif;
    --vui-font-mono:   'JetBrains Mono', 'Fira Code', monospace;
    --vui-radius:      6px;
    --vui-radius-lg:   10px;
    --vui-radius-full: 9999px;

    /* Transitions */
    --vui-trans:       150ms ease;
    --vui-trans-slow:  300ms ease;

    /* Shadows */
    --vui-shadow:      0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --vui-shadow-lg:   0 10px 25px rgba(0,0,0,0.5);
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   Button
   ───────────────────────────────────────────────────────────────────────────── */
.vui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--vui-font);
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    border-radius: var(--vui-radius);
    cursor: pointer;
    transition: background var(--vui-trans), border-color var(--vui-trans),
                box-shadow var(--vui-trans), transform var(--vui-trans);
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
}
.vui-btn:active:not(:disabled) { transform: translateY(1px); }
.vui-btn:disabled, .vui-btn[aria-disabled="true"] {
    opacity: 0.45; cursor: not-allowed; transform: none;
}

/* Sizes */
.vui-btn-sm { padding: 5px 12px;  font-size: 12px; }
.vui-btn-md { padding: 8px 18px;  font-size: 14px; }
.vui-btn-lg { padding: 11px 24px; font-size: 16px; }

/* Variants */
.vui-btn-primary {
    background: var(--vui-accent);
    color: #fff;
    border-color: var(--vui-accent);
}
.vui-btn-primary:hover:not(:disabled) {
    background: var(--vui-accent-dark);
    border-color: var(--vui-accent-dark);
    box-shadow: 0 0 0 3px var(--vui-accent-dim);
}
.vui-btn-secondary {
    background: var(--vui-surface-2);
    color: var(--vui-text);
    border-color: var(--vui-border);
}
.vui-btn-secondary:hover:not(:disabled) {
    background: #2a2a2a;
    border-color: var(--vui-border-focus);
}
.vui-btn-ghost {
    background: transparent;
    color: var(--vui-text);
    border-color: transparent;
}
.vui-btn-ghost:hover:not(:disabled) {
    background: var(--vui-surface-2);
    border-color: var(--vui-border);
}
.vui-btn-danger {
    background: var(--vui-danger-bg);
    color: var(--vui-danger);
    border-color: var(--vui-danger);
}
.vui-btn-danger:hover:not(:disabled) {
    background: var(--vui-danger);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}
.vui-btn-success {
    background: var(--vui-success-bg);
    color: var(--vui-success);
    border-color: var(--vui-success);
}
.vui-btn-success:hover:not(:disabled) {
    background: var(--vui-success);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}
.vui-btn-warning {
    background: var(--vui-warning-bg);
    color: var(--vui-warning);
    border-color: var(--vui-warning);
}
.vui-btn-warning:hover:not(:disabled) {
    background: var(--vui-warning);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}
.vui-btn-outline-primary {
    background: transparent;
    color: var(--vui-accent);
    border-color: var(--vui-accent);
}
.vui-btn-outline-primary:hover:not(:disabled) {
    background: var(--vui-accent-dim);
}
.vui-btn-outline-secondary {
    background: transparent;
    color: var(--vui-text-muted);
    border-color: var(--vui-border);
}
.vui-btn-outline-secondary:hover:not(:disabled) {
    background: var(--vui-surface-2);
    color: var(--vui-text);
    border-color: var(--vui-border-focus);
}
.vui-btn-outline-danger {
    background: transparent;
    color: var(--vui-danger);
    border-color: var(--vui-danger);
}
.vui-btn-outline-danger:hover:not(:disabled) {
    background: var(--vui-danger-bg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Form Fields — shared base
   ───────────────────────────────────────────────────────────────────────────── */
.vui-field { display: flex; flex-direction: column; gap: 5px; }

.vui-label {
    font-family: var(--vui-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--vui-text);
    letter-spacing: 0.01em;
}
.vui-required { color: var(--vui-danger); margin-left: 2px; }

.vui-field-error {
    font-size: 12px;
    color: var(--vui-danger);
    margin: 0;
}
.vui-field-helper {
    font-size: 12px;
    color: var(--vui-text-muted);
    margin: 0;
}

/* Input, Textarea, Select shared */
.vui-input, .vui-textarea, .vui-select {
    display: block;
    width: 100%;
    font-family: var(--vui-font);
    font-size: 14px;
    color: var(--vui-text);
    background: var(--vui-surface);
    border: 1px solid var(--vui-border);
    border-radius: var(--vui-radius);
    padding: 8px 12px;
    outline: none;
    transition: border-color var(--vui-trans), box-shadow var(--vui-trans);
    box-sizing: border-box;
}
.vui-input::placeholder, .vui-textarea::placeholder { color: var(--vui-text-dim); }
.vui-input:focus, .vui-textarea:focus, .vui-select:focus {
    border-color: var(--vui-accent);
    box-shadow: 0 0 0 3px var(--vui-accent-dim);
}
.vui-input:disabled, .vui-textarea:disabled, .vui-select:disabled {
    opacity: 0.5; cursor: not-allowed;
}
.vui-input-error { border-color: var(--vui-danger) !important; }
.vui-input-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.2) !important; }

.vui-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.vui-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Checkbox & Radio
   ───────────────────────────────────────────────────────────────────────────── */
.vui-checkbox-wrap, .vui-radio-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vui-checkbox, .vui-radio {
    width: 16px;
    height: 16px;
    accent-color: var(--vui-accent);
    cursor: pointer;
    flex-shrink: 0;
}
.vui-checkbox-label, .vui-radio-label {
    font-family: var(--vui-font);
    font-size: 14px;
    color: var(--vui-text);
    cursor: pointer;
    user-select: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Custom Checkbox Design Styles (Skeuomorphic, Flat, Neumorphic)
   ───────────────────────────────────────────────────────────────────────────── */

/* Base Custom Checkbox Container */
.vui-checkbox-custom {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer;
    user-select: none;
    position: relative;
    vertical-align: middle;
    margin: 0;
    line-height: 1;
    width: max-content;
}
.vui-checkbox-custom input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}
.vui-checkbox-custom .vui-checkbox-label,
.vui-checkbox-custom span:not(.vui-checkbox-box):not(.vui-checkbox-check) {
    display: inline-block;
    vertical-align: middle;
    font-family: var(--vui-font, sans-serif);
    line-height: 1.4;
}


/* ── 1. SKEUOMORPHIC CHECKBOX (Engraved Metallic Recess) ── */
.vui-checkbox-skeuo .vui-checkbox-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(180deg, #2e303b 0%, #15161c 100%);
    border: 1px solid #3b3d4a;
    box-shadow:
        inset 0 1.5px 2px rgba(255,255,255,0.18),
        inset 0 -1.5px 2px rgba(0,0,0,0.55),
        0 3px 6px rgba(0,0,0,0.5),
        0 0 0 1px rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}
.vui-checkbox-skeuo .vui-checkbox-check {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    color: #c4b5fd;
    filter: drop-shadow(0 0 4px rgba(124,110,245,0.9));
}
.vui-checkbox-skeuo input[type="checkbox"]:checked + .vui-checkbox-box {
    background: linear-gradient(180deg, #181920 0%, #252631 100%);
    border-color: #6366f1;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.8),
        0 1px 2px rgba(255,255,255,0.06),
        0 0 12px rgba(124,110,245,0.4);
}
.vui-checkbox-skeuo input[type="checkbox"]:checked + .vui-checkbox-box .vui-checkbox-check {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.vui-checkbox-skeuo:hover .vui-checkbox-box {
    border-color: #7c6ef5;
    box-shadow:
        inset 0 1.5px 2px rgba(255,255,255,0.28),
        0 4px 8px rgba(0,0,0,0.55),
        0 0 8px rgba(124,110,245,0.28);
}

/* ── 2. FLAT CHECKBOX (Solid 2D, Zero Shadow) ── */
.vui-checkbox-flat .vui-checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--vui-surface-2, #18181b);
    border: 2px solid var(--vui-border, #3f3f46);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.vui-checkbox-flat .vui-checkbox-check {
    opacity: 0;
    transform: scale(0);
    transition: all 0.15s cubic-bezier(0.16,1,0.3,1);
    color: #ffffff;
}
.vui-checkbox-flat input[type="checkbox"]:checked + .vui-checkbox-box {
    background: var(--vui-accent, #7c6ef5);
    border-color: var(--vui-accent, #7c6ef5);
}
.vui-checkbox-flat input[type="checkbox"]:checked + .vui-checkbox-box .vui-checkbox-check {
    opacity: 1;
    transform: scale(1);
}
.vui-checkbox-flat:hover .vui-checkbox-box {
    border-color: var(--vui-accent, #7c6ef5);
}

/* ── 3. NEUMORPHIC CHECKBOX (Extruded / Inset Soft Plate) ── */
.vui-checkbox-neumorphic {
    padding: 10px 16px;
    background: #141519;
    border-radius: 10px;
    box-shadow:
        5px 5px 12px rgba(0,0,0,0.6),
        -4px -4px 10px rgba(255,255,255,0.04);
    transition: all 0.25s ease;
}
.vui-checkbox-neumorphic .vui-checkbox-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #141519;
    box-shadow:
        3px 3px 6px rgba(0,0,0,0.7),
        -2px -2px 5px rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.vui-checkbox-neumorphic .vui-checkbox-check {
    opacity: 0;
    transform: scale(0.2);
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    color: #a78bfa;
    filter: drop-shadow(0 0 6px #7c6ef5);
}
.vui-checkbox-neumorphic input[type="checkbox"]:checked ~ .vui-checkbox-box {
    box-shadow:
        inset 3px 3px 6px rgba(0,0,0,0.8),
        inset -2px -2px 5px rgba(255,255,255,0.06);
}
.vui-checkbox-neumorphic input[type="checkbox"]:checked ~ .vui-checkbox-box .vui-checkbox-check {
    opacity: 1;
    transform: scale(1);
}
.vui-checkbox-neumorphic:has(input[type="checkbox"]:checked) {
    box-shadow:
        inset 4px 4px 8px rgba(0,0,0,0.5),
        inset -3px -3px 7px rgba(255,255,255,0.03);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Custom Switch Design Styles (Skeuomorphic, Flat, Neumorphic)
   ───────────────────────────────────────────────────────────────────────────── */

/* Base Custom Switch */
.vui-switch-custom {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer;
    user-select: none;
    position: relative;
    vertical-align: middle;
    margin: 0;
    line-height: 1;
    width: max-content;
}
.vui-switch-custom input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}
.vui-switch-custom .vui-switch-label,
.vui-switch-custom span:not(.vui-switch-track):not(.vui-switch-thumb) {
    display: inline-block;
    vertical-align: middle;
    font-family: var(--vui-font, sans-serif);
    line-height: 1.4;
}


/* ── 1. SKEUOMORPHIC SWITCH (Embossed Physical Toggle) ── */
.vui-switch-skeuo .vui-switch-track {
    width: 48px;
    height: 26px;
    border-radius: 13px;
    background: linear-gradient(180deg, #1a1b22 0%, #2c2d38 100%);
    border: 1px solid #3b3d4a;
    box-shadow:
        inset 0 2px 5px rgba(0,0,0,0.7),
        inset 0 -1px 2px rgba(255,255,255,0.07),
        0 1px 3px rgba(0,0,0,0.5);
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.vui-switch-skeuo .vui-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, #5a5b6a 0%, #2e303b 100%);
    box-shadow:
        0 2px 5px rgba(0,0,0,0.7),
        0 0 0 1px rgba(0,0,0,0.4),
        inset 0 1px 2px rgba(255,255,255,0.25);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.3s;
}
.vui-switch-skeuo input[type="checkbox"]:checked + .vui-switch-track {
    background: linear-gradient(180deg, #3a2f6e 0%, #5240ae 100%);
    border-color: #6366f1;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.5),
        0 0 12px rgba(124,110,245,0.5);
}
.vui-switch-skeuo input[type="checkbox"]:checked + .vui-switch-track .vui-switch-thumb {
    transform: translateX(22px);
    background: radial-gradient(circle at 38% 38%, #c4b5fd 0%, #7c6ef5 100%);
    box-shadow:
        0 2px 6px rgba(99,102,241,0.6),
        inset 0 1px 2px rgba(255,255,255,0.4);
}

/* ── 2. FLAT SWITCH (Clean 2D Bold Toggle) ── */
.vui-switch-flat .vui-switch-track {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--vui-surface-2, #27272a);
    border: 2px solid var(--vui-border, #3f3f46);
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.vui-switch-flat .vui-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--vui-text-muted, #71717a);
    transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), background 0.2s ease;
}
.vui-switch-flat input[type="checkbox"]:checked + .vui-switch-track {
    background: var(--vui-accent, #7c6ef5);
    border-color: var(--vui-accent, #7c6ef5);
}
.vui-switch-flat input[type="checkbox"]:checked + .vui-switch-track .vui-switch-thumb {
    transform: translateX(20px);
    background: #ffffff;
}
.vui-switch-flat:hover .vui-switch-track {
    border-color: var(--vui-accent, #7c6ef5);
}

/* ── 3. NEUMORPHIC SWITCH (Soft Extruded Rocker) ── */
.vui-switch-neumorphic .vui-switch-track {
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: #141519;
    box-shadow:
        inset 3px 3px 7px rgba(0,0,0,0.7),
        inset -2px -2px 5px rgba(255,255,255,0.05);
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.vui-switch-neumorphic .vui-switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e2028;
    box-shadow:
        4px 4px 8px rgba(0,0,0,0.6),
        -2px -2px 5px rgba(255,255,255,0.06);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.3s, box-shadow 0.3s;
}
.vui-switch-neumorphic input[type="checkbox"]:checked + .vui-switch-track .vui-switch-thumb {
    transform: translateX(24px);
    background: linear-gradient(135deg, #7c6ef5, #6366f1);
    box-shadow:
        0 0 12px rgba(124,110,245,0.7),
        inset 0 1px 2px rgba(255,255,255,0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Custom Button Design Styles (Skeuomorphic, Flat, Neumorphic, Glass)
   ───────────────────────────────────────────────────────────────────────────── */

/* ── 1. SKEUOMORPHIC BUTTON (Beveled, Embossed, Physical Press) ── */
.vui-btn-skeuo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: var(--vui-font, sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    border: none;
    outline: none;
    transition: all 0.15s cubic-bezier(0.16,1,0.3,1);
    background: linear-gradient(180deg, #5c55d6 0%, #3d36a8 50%, #2e2882 100%);
    color: #e8e4ff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow:
        inset 0 1.5px 1px rgba(255,255,255,0.3),
        inset 0 -1.5px 1px rgba(0,0,0,0.4),
        0 4px 10px rgba(50,42,150,0.5),
        0 1px 3px rgba(0,0,0,0.4),
        0 0 0 1px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.vui-btn-skeuo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.vui-btn-skeuo:hover {
    background: linear-gradient(180deg, #6f69e8 0%, #4a44c0 50%, #3730a3 100%);
    box-shadow:
        inset 0 1.5px 1px rgba(255,255,255,0.35),
        inset 0 -1.5px 1px rgba(0,0,0,0.4),
        0 6px 16px rgba(99,102,241,0.55),
        0 1px 3px rgba(0,0,0,0.4),
        0 0 0 1px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}
.vui-btn-skeuo:active {
    background: linear-gradient(180deg, #2e2882 0%, #3d36a8 100%);
    box-shadow:
        inset 0 2px 5px rgba(0,0,0,0.5),
        0 1px 2px rgba(0,0,0,0.3);
    transform: translateY(1px);
}
.vui-btn-skeuo-neutral {
    background: linear-gradient(180deg, #3f3f46 0%, #27272a 50%, #18181b 100%);
    color: #d4d4d8;
    box-shadow:
        inset 0 1.5px 1px rgba(255,255,255,0.12),
        inset 0 -1.5px 1px rgba(0,0,0,0.4),
        0 4px 10px rgba(0,0,0,0.4),
        0 0 0 1px rgba(0,0,0,0.4);
}
.vui-btn-skeuo-neutral:hover {
    background: linear-gradient(180deg, #52525b 0%, #3f3f46 50%, #27272a 100%);
    transform: translateY(-1px);
}
.vui-btn-skeuo-danger {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    color: #fecaca;
    box-shadow:
        inset 0 1.5px 1px rgba(255,255,255,0.2),
        inset 0 -1.5px 1px rgba(0,0,0,0.4),
        0 4px 10px rgba(185,28,28,0.45),
        0 0 0 1px rgba(0,0,0,0.3);
}
.vui-btn-skeuo-danger:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1.5px 1px rgba(255,255,255,0.25),
        0 6px 16px rgba(239,68,68,0.5);
}

/* ── 2. FLAT BUTTON (Strict 2D, No Box-Shadow, Hard Corners) ── */
.vui-btn-flat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    font-family: var(--vui-font, sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    border: 2px solid transparent;
    outline: none;
    border-radius: 6px;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    letter-spacing: 0.02em;
    background: var(--vui-accent, #7c6ef5);
    color: #ffffff;
    box-shadow: none;
}
.vui-btn-flat:hover {
    background: var(--vui-accent-dark, #6355d0);
}
.vui-btn-flat:active {
    background: #4c3eb0;
    transform: translateY(1px);
}
.vui-btn-flat-outline {
    background: transparent;
    border-color: var(--vui-accent, #7c6ef5);
    color: var(--vui-accent, #7c6ef5);
}
.vui-btn-flat-outline:hover {
    background: var(--vui-accent, #7c6ef5);
    color: #ffffff;
}
.vui-btn-flat-neutral {
    background: var(--vui-surface-2, #27272a);
    color: var(--vui-text, #ffffff);
    border-color: var(--vui-border, #3f3f46);
}
.vui-btn-flat-neutral:hover {
    background: var(--vui-border, #3f3f46);
}

/* ── 3. NEUMORPHIC BUTTON (Extruded Soft Push-Button) ── */
.vui-btn-neumorphic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-family: var(--vui-font, sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    outline: none;
    border-radius: 10px;
    background: #141519;
    color: var(--vui-text-muted, #a1a1aa);
    box-shadow:
        6px 6px 14px rgba(0,0,0,0.65),
        -4px -4px 10px rgba(255,255,255,0.05);
    transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
    letter-spacing: 0.01em;
}
.vui-btn-neumorphic:hover {
    color: var(--vui-text, #ffffff);
    box-shadow:
        8px 8px 18px rgba(0,0,0,0.7),
        -5px -5px 12px rgba(255,255,255,0.07);
}
.vui-btn-neumorphic:active {
    box-shadow:
        inset 4px 4px 8px rgba(0,0,0,0.7),
        inset -3px -3px 6px rgba(255,255,255,0.04);
    color: var(--vui-accent, #a78bfa);
    transform: none;
}
.vui-btn-neumorphic-accent {
    color: var(--vui-accent, #a78bfa);
    text-shadow: 0 0 8px rgba(124,110,245,0.5);
}
.vui-btn-neumorphic-accent:hover {
    color: #c4b5fd;
}

/* ── 4. GLASSMORPHISM BUTTON (Frosted Blurred Glass) ── */
.vui-btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--vui-font, sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.12);
    outline: none;
    border-radius: 10px;
    background: rgba(124,110,245,0.15);
    color: #e4e0ff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 16px rgba(124,110,245,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
    letter-spacing: 0.01em;
}
.vui-btn-glass:hover {
    background: rgba(124,110,245,0.28);
    border-color: rgba(255,255,255,0.2);
    box-shadow:
        0 8px 24px rgba(124,110,245,0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
.vui-btn-glass:active {
    transform: translateY(1px);
    background: rgba(124,110,245,0.35);
}
.vui-btn-glass-neutral {
    background: rgba(255,255,255,0.06);
    color: var(--vui-text, #ffffff);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.vui-btn-glass-neutral:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Custom Radio Design Styles (Skeuomorphic, Flat, Neumorphic, Cards, Segmented)
   ───────────────────────────────────────────────────────────────────────────── */

/* Base Custom Radio Container */
.vui-radio-custom {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer;
    user-select: none;
    position: relative;
    vertical-align: middle;
    margin: 0;
    line-height: 1;
    width: max-content;
}
.vui-radio-custom input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}
.vui-radio-custom .vui-radio-label,
.vui-radio-custom span:not(.vui-radio-disc):not(.vui-radio-dot) {
    display: inline-block;
    vertical-align: middle;
    font-family: var(--vui-font, sans-serif);
    line-height: 1.4;
}


/* ── 1. SKEUOMORPHIC RADIO (Tactile 3D Metallic / Beveled Depth) ── */
.vui-radio-skeuo .vui-radio-disc {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2e303b 0%, #15161c 100%);
    border: 1px solid #3b3d4a;
    box-shadow: 
        inset 0 1.5px 2px rgba(255, 255, 255, 0.2),
        inset 0 -1.5px 2px rgba(0, 0, 0, 0.6),
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.vui-radio-skeuo .vui-radio-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #c4b5fd 0%, #7c6ef5 50%, #4c1d95 100%);
    box-shadow: 0 0 8px rgba(124, 110, 245, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vui-radio-skeuo input[type="radio"]:checked + .vui-radio-disc {
    background: linear-gradient(180deg, #181920 0%, #252631 100%);
    border-color: #6366f1;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(255, 255, 255, 0.1),
        0 0 12px rgba(124, 110, 245, 0.35);
}
.vui-radio-skeuo input[type="radio"]:checked + .vui-radio-disc .vui-radio-dot {
    opacity: 1;
    transform: scale(1);
}
.vui-radio-skeuo:hover .vui-radio-disc {
    border-color: #7c6ef5;
    box-shadow: 
        inset 0 1.5px 2px rgba(255, 255, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 0 8px rgba(124, 110, 245, 0.25);
}
.vui-radio-skeuo:active .vui-radio-disc {
    transform: translateY(1px);
}

/* ── 2. FLAT 2D MINIMAL RADIO (High Contrast Geometric) ── */
.vui-radio-flat .vui-radio-disc {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--vui-surface-2, #18181b);
    border: 2px solid var(--vui-border, #3f3f46);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.vui-radio-flat .vui-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}
.vui-radio-flat input[type="radio"]:checked + .vui-radio-disc {
    background: var(--vui-accent, #7c6ef5);
    border-color: var(--vui-accent, #7c6ef5);
}
.vui-radio-flat input[type="radio"]:checked + .vui-radio-disc .vui-radio-dot {
    opacity: 1;
    transform: scale(1);
}
.vui-radio-flat:hover .vui-radio-disc {
    border-color: var(--vui-accent, #7c6ef5);
}

/* ── 3. NEUMORPHISM / SOFT UI RADIO (Extruded & Inset Shadows) ── */
.vui-radio-neumorphic {
    padding: 12px 18px;
    background: #141519;
    border-radius: 12px;
    box-shadow: 
        5px 5px 12px rgba(0, 0, 0, 0.6),
        -4px -4px 10px rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
}
.vui-radio-neumorphic .vui-radio-disc {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #141519;
    box-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.7),
        -2px -2px 5px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.vui-radio-neumorphic .vui-radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c6ef5, #6366f1);
    box-shadow: 0 0 10px #7c6ef5;
    opacity: 0;
    transform: scale(0.2);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vui-radio-neumorphic input[type="radio"]:checked ~ .vui-radio-disc {
    box-shadow: 
        inset 3px 3px 6px rgba(0, 0, 0, 0.8),
        inset -2px -2px 5px rgba(255, 255, 255, 0.06);
}
.vui-radio-neumorphic input[type="radio"]:checked ~ .vui-radio-disc .vui-radio-dot {
    opacity: 1;
    transform: scale(1);
}
.vui-radio-neumorphic:has(input[type="radio"]:checked) {
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.5),
        inset -3px -3px 7px rgba(255, 255, 255, 0.03);
}

/* ── 4. RADIO CARD TILE (Plan / Option Selector) ── */
.vui-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--vui-surface, #141519);
    border: 1px solid var(--vui-border, #27272a);
    border-radius: var(--vui-radius-lg, 12px);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    box-sizing: border-box;
}
.vui-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.vui-radio-card .vui-radio-card-disc {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--vui-border, #3f3f46);
    background: var(--vui-surface-2, #18191e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}
.vui-radio-card .vui-radio-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vui-radio-card:hover {
    border-color: var(--vui-border-focus, #52525b);
    background: var(--vui-surface-2, #18191e);
}
.vui-radio-card:has(input[type="radio"]:checked) {
    border-color: var(--vui-accent, #7c6ef5);
    background: rgba(124, 110, 245, 0.05);
    box-shadow: 0 0 0 1px var(--vui-accent, #7c6ef5), 0 8px 24px -6px rgba(124, 110, 245, 0.25);
}
.vui-radio-card:has(input[type="radio"]:checked) .vui-radio-card-disc {
    background: var(--vui-accent, #7c6ef5);
    border-color: var(--vui-accent, #7c6ef5);
}
.vui-radio-card:has(input[type="radio"]:checked) .vui-radio-card-dot {
    opacity: 1;
    transform: scale(1);
}

/* ── 5. SEGMENTED RADIO GROUP (Pill Switcher) ── */
.vui-radio-segmented-group {
    display: inline-flex;
    padding: 4px;
    background: var(--vui-surface-2, #18191e);
    border: 1px solid var(--vui-border, #27272a);
    border-radius: var(--vui-radius-full, 9999px);
    gap: 2px;
}
.vui-radio-segmented-item {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.vui-radio-segmented-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.vui-radio-segmented-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--vui-radius-full, 9999px);
    font-size: 13px;
    font-weight: 500;
    color: var(--vui-text-muted, #a1a1aa);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.vui-radio-segmented-item:hover .vui-radio-segmented-label {
    color: var(--vui-text, #ffffff);
}
.vui-radio-segmented-item input[type="radio"]:checked ~ .vui-radio-segmented-label {
    background: var(--vui-accent, #7c6ef5);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--vui-accent-dim, rgba(124, 110, 245, 0.4));
}

/* ─────────────────────────────────────────────────────────────────────────────
   Badge
   ───────────────────────────────────────────────────────────────────────────── */
.vui-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: var(--vui-radius-full);
    font-family: var(--vui-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.vui-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
    flex-shrink: 0;
}
.vui-badge-default  { background: var(--vui-surface-2); color: var(--vui-text-muted); }
.vui-badge-success  { background: var(--vui-success-bg);  color: var(--vui-success); }
.vui-badge-warning  { background: var(--vui-warning-bg);  color: var(--vui-warning); }
.vui-badge-danger   { background: var(--vui-danger-bg);   color: var(--vui-danger);  }
.vui-badge-info     { background: var(--vui-info-bg);     color: var(--vui-info);    }
.vui-badge-purple   { background: var(--vui-purple-bg);   color: var(--vui-purple);  }

/* ─────────────────────────────────────────────────────────────────────────────
   Alert
   ───────────────────────────────────────────────────────────────────────────── */
.vui-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--vui-radius-lg);
    border: 1px solid;
    font-family: var(--vui-font);
    font-size: 14px;
}
.vui-alert-success { background: var(--vui-success-bg); color: var(--vui-success); border-color: rgba(34,197,94,0.25); }
.vui-alert-warning { background: var(--vui-warning-bg); color: var(--vui-warning); border-color: rgba(245,158,11,0.25); }
.vui-alert-danger  { background: var(--vui-danger-bg);  color: var(--vui-danger);  border-color: rgba(239,68,68,0.25);  }
.vui-alert-info    { background: var(--vui-info-bg);    color: var(--vui-info);    border-color: rgba(56,189,248,0.25); }

.vui-alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.vui-alert-body { flex: 1; }
.vui-alert-title {
    margin: 0 0 3px;
    font-weight: 600;
    font-size: 14px;
}
.vui-alert-message { margin: 0; opacity: 0.9; }
.vui-alert-close {
    background: none; border: none; cursor: pointer;
    color: inherit; opacity: 0.6; font-size: 14px;
    padding: 0; line-height: 1; flex-shrink: 0;
    transition: opacity var(--vui-trans);
}
.vui-alert-close:hover { opacity: 1; }

/* ─────────────────────────────────────────────────────────────────────────────
   Toast & Notification System
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes vui-toast-in-right {
    from { opacity: 0; transform: translateX(100%) scale(0.92); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes vui-toast-in-top {
    from { opacity: 0; transform: translateY(-100%) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vui-toast-out {
    from { opacity: 1; transform: scale(1); max-height: 120px; margin-bottom: 10px; }
    to   { opacity: 0; transform: scale(0.92) translateX(40px); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
}
@keyframes vui-toast-progress {
    from { width: 100%; }
    to   { width: 0%; }
}

#vui-toast-portal {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}
#vui-toast-portal.vui-toast-top-right {
    top: 24px;
    bottom: auto;
    right: 24px;
}
#vui-toast-portal.vui-toast-top-center {
    top: 24px;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.vui-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #131418;
    background: var(--vui-surface, #131418);
    border: 1px solid var(--vui-border, #27272a);
    border-radius: var(--vui-radius-lg, 12px);
    font-family: var(--vui-font, sans-serif);
    font-size: 13.5px;
    min-width: 290px;
    max-width: 380px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: vui-toast-in-right 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
    overflow: hidden;
    transition: transform var(--vui-trans, 150ms ease), opacity var(--vui-trans, 150ms ease);
}
.vui-toast.vui-toast--dismiss {
    animation: vui-toast-out 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Icon Wrap */
.vui-toast-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
}

/* Content Body */
.vui-toast-body {
    flex: 1;
    min-width: 0;
}
.vui-toast-title {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    color: #ffffff;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.vui-toast-msg {
    display: block;
    font-size: 12.5px;
    color: #9ca3af;
    line-height: 1.45;
}

/* Action button inside toast */
.vui-toast-action {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all var(--vui-trans, 150ms ease);
}
.vui-toast-action:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Close Button */
.vui-toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #71717a;
    font-size: 13px;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: all var(--vui-trans, 150ms ease);
}
.vui-toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Progress bar */
.vui-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: currentColor;
    opacity: 0.6;
    animation: vui-toast-progress 3.5s linear forwards;
}

/* ────────────────── Semantic Variants (Distinct Look & Colors) ────────────────── */

/* 1. SUCCESS (Emerald Green) */
.vui-toast-success {
    border-left: 4px solid #22c55e;
    border-color: rgba(34, 197, 94, 0.3) rgba(34, 197, 94, 0.18) rgba(34, 197, 94, 0.18) #22c55e;
    box-shadow: 0 10px 30px -5px rgba(34, 197, 94, 0.18), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.vui-toast-success .vui-toast-icon-wrap {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.vui-toast-success .vui-toast-progress {
    background: #22c55e;
}

/* 2. DANGER / ERROR (Crimson Red) */
.vui-toast-danger, .vui-toast-error {
    border-left: 4px solid #ef4444;
    border-color: rgba(239, 68, 68, 0.3) rgba(239, 68, 68, 0.18) rgba(239, 68, 68, 0.18) #ef4444;
    box-shadow: 0 10px 30px -5px rgba(239, 68, 68, 0.22), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.vui-toast-danger .vui-toast-icon-wrap, .vui-toast-error .vui-toast-icon-wrap {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.vui-toast-danger .vui-toast-progress, .vui-toast-error .vui-toast-progress {
    background: #ef4444;
}

/* 3. WARNING (Amber Gold) */
.vui-toast-warning {
    border-left: 4px solid #f59e0b;
    border-color: rgba(245, 158, 11, 0.3) rgba(245, 158, 11, 0.18) rgba(245, 158, 11, 0.18) #f59e0b;
    box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.18), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.vui-toast-warning .vui-toast-icon-wrap {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.vui-toast-warning .vui-toast-progress {
    background: #f59e0b;
}

/* 4. INFO (Electric Cyan / Sky Blue) */
.vui-toast-info {
    border-left: 4px solid #38bdf8;
    border-color: rgba(56, 189, 248, 0.3) rgba(56, 189, 248, 0.18) rgba(56, 189, 248, 0.18) #38bdf8;
    box-shadow: 0 10px 30px -5px rgba(56, 189, 248, 0.18), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.vui-toast-info .vui-toast-icon-wrap {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.vui-toast-info .vui-toast-progress {
    background: #38bdf8;
}

/* 5. PURPLE / ACCENT (Veldora Violet) */
.vui-toast-purple, .vui-toast-accent {
    border-left: 4px solid #7c6ef5;
    border-color: rgba(124, 110, 245, 0.35) rgba(124, 110, 245, 0.2) rgba(124, 110, 245, 0.2) #7c6ef5;
    box-shadow: 0 10px 30px -5px rgba(124, 110, 245, 0.25), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.vui-toast-purple .vui-toast-icon-wrap, .vui-toast-accent .vui-toast-icon-wrap {
    background: rgba(124, 110, 245, 0.18);
    color: #a78bfa;
    border: 1px solid rgba(124, 110, 245, 0.35);
}
.vui-toast-purple .vui-toast-progress, .vui-toast-accent .vui-toast-progress {
    background: #7c6ef5;
}

/* ────────────────── Solid Filled Variants ────────────────── */
.vui-toast-solid-success {
    background: linear-gradient(135deg, #15803d, #16a34a);
    border: 1px solid #22c55e;
    box-shadow: 0 12px 30px -5px rgba(34, 197, 94, 0.35);
}
.vui-toast-solid-success .vui-toast-title { color: #ffffff; }
.vui-toast-solid-success .vui-toast-msg   { color: #dcfce7; }
.vui-toast-solid-success .vui-toast-icon-wrap { background: rgba(255,255,255,0.2); color: #fff; }

.vui-toast-solid-danger {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    border: 1px solid #ef4444;
    box-shadow: 0 12px 30px -5px rgba(239, 68, 68, 0.35);
}
.vui-toast-solid-danger .vui-toast-title { color: #ffffff; }
.vui-toast-solid-danger .vui-toast-msg   { color: #fee2e2; }
.vui-toast-solid-danger .vui-toast-icon-wrap { background: rgba(255,255,255,0.2); color: #fff; }

.vui-toast-solid-warning {
    background: linear-gradient(135deg, #b45309, #d97706);
    border: 1px solid #f59e0b;
    box-shadow: 0 12px 30px -5px rgba(245, 158, 11, 0.35);
}
.vui-toast-solid-warning .vui-toast-title { color: #ffffff; }
.vui-toast-solid-warning .vui-toast-msg   { color: #fef3c7; }
.vui-toast-solid-warning .vui-toast-icon-wrap { background: rgba(255,255,255,0.2); color: #fff; }

.vui-toast-solid-info {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    border: 1px solid #38bdf8;
    box-shadow: 0 12px 30px -5px rgba(56, 189, 248, 0.35);
}
.vui-toast-solid-info .vui-toast-title { color: #ffffff; }
.vui-toast-solid-info .vui-toast-msg   { color: #e0f2fe; }
.vui-toast-solid-info .vui-toast-icon-wrap { background: rgba(255,255,255,0.2); color: #fff; }

/* ────────────────── Glassmorphic Variant ────────────────── */
.vui-toast-glass {
    background: rgba(18, 19, 24, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Card
   ───────────────────────────────────────────────────────────────────────────── */

.vui-card {
    background: var(--vui-surface);
    border: 1px solid var(--vui-border);
    border-radius: var(--vui-radius-lg);
    box-shadow: var(--vui-shadow);
    overflow: hidden;
}
.vui-card-header {
    padding: 16px 20px 0;
    border-bottom: 1px solid var(--vui-border);
    padding-bottom: 14px;
    margin-bottom: 0;
}
.vui-card-title {
    margin: 0 0 3px;
    font-family: var(--vui-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--vui-text);
}
.vui-card-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--vui-text-muted);
}
.vui-card-body { padding: 20px; }
.vui-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--vui-border);
    background: var(--vui-surface-2);
    font-size: 13px;
    color: var(--vui-text-muted);
}
.vui-card-flush .vui-card-body { padding: 0; }

/* ─────────────────────────────────────────────────────────────────────────────
   Modal
   ───────────────────────────────────────────────────────────────────────────── */
.vui-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    transition: opacity var(--vui-trans-slow);
}
.vui-modal-overlay[aria-hidden="true"] { display: none; }
.vui-modal-container {
    background: var(--vui-surface);
    border: 1px solid var(--vui-border);
    border-radius: var(--vui-radius-lg);
    box-shadow: var(--vui-shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
}
.vui-modal-sm { max-width: 380px; }
.vui-modal-md { max-width: 520px; }
.vui-modal-lg { max-width: 720px; }
.vui-modal-xl { max-width: 960px; }
.vui-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--vui-border);
    flex-shrink: 0;
}
.vui-modal-title {
    margin: 0;
    font-family: var(--vui-font);
    font-size: 17px;
    font-weight: 600;
    color: var(--vui-text);
}
.vui-modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--vui-text-muted); font-size: 16px;
    padding: 4px; border-radius: var(--vui-radius);
    transition: color var(--vui-trans), background var(--vui-trans);
    line-height: 1;
}
.vui-modal-close:hover { color: var(--vui-text); background: var(--vui-surface-2); }
.vui-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.vui-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--vui-border);
    background: var(--vui-surface-2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Spinner — 12 Pure CSS Variants
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes vui-spin         { to { transform: rotate(360deg); } }
@keyframes vui-spin-rev     { to { transform: rotate(-360deg); } }
@keyframes vui-bounce-dot   { 0%, 80%, 100% { transform: scaleY(0.4); opacity: 0.3; } 40% { transform: scaleY(1); opacity: 1; } }
@keyframes vui-pulse-scale  { 0%, 100% { transform: scale(0.6); opacity: 0.4; } 50% { transform: scale(1); opacity: 1; } }
@keyframes vui-ring-expand  { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes vui-wave-bar     { 0%, 100% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes vui-dot-fade     { 0%, 100% { opacity: 0.15; transform: scale(0.75); } 50% { opacity: 1; transform: scale(1); } }
@keyframes vui-bar-fade     { 0% { opacity: 1; } 100% { opacity: 0.1; } }
@keyframes vui-orbit-sat    { 0% { transform: rotate(0deg) translateX(calc(var(--vui-orb-size, 32px) * 0.65)) rotate(0deg); } 100% { transform: rotate(360deg) translateX(calc(var(--vui-orb-size, 32px) * 0.65)) rotate(-360deg); } }

/* 1. Classic Spinner */
.vui-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.vui-spinner.vui-spinner-sm { width: 16px; height: 16px; }
.vui-spinner.vui-spinner-md { width: 24px; height: 24px; }
.vui-spinner.vui-spinner-lg { width: 36px; height: 36px; }
.vui-spinner-ring {
    display: block;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(124, 110, 245, 0.15);
    border-top-color: var(--vui-spinner-color, var(--vui-accent));
    animation: vui-spin 0.7s linear infinite;
}

/* 2. Dual Ring */
.vui-spinner-dual {
    display: inline-block;
    position: relative;
    border-radius: 50%;
}
.vui-spinner-dual.vui-spinner-sm { width: 18px; height: 18px; }
.vui-spinner-dual.vui-spinner-md { width: 28px; height: 28px; }
.vui-spinner-dual.vui-spinner-lg { width: 42px; height: 42px; }
.vui-spinner-dual > span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}
.vui-spinner-dual > span:nth-child(1) {
    border-top-color: var(--vui-spinner-color, var(--vui-accent));
    animation: vui-spin 0.8s linear infinite;
}
.vui-spinner-dual > span:nth-child(2) {
    border-bottom-color: rgba(124, 110, 245, 0.4);
    animation: vui-spin-rev 0.6s linear infinite;
}

/* 3. Bounce Dots */
.vui-spinner-bounce {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.vui-spinner-bounce.vui-spinner-sm { height: 14px; gap: 3px; }
.vui-spinner-bounce.vui-spinner-md { height: 22px; gap: 5px; }
.vui-spinner-bounce.vui-spinner-lg { height: 32px; gap: 7px; }
.vui-spinner-bounce.vui-spinner-sm > span { width: 5px; height: 5px; }
.vui-spinner-bounce.vui-spinner-md > span { width: 8px; height: 8px; }
.vui-spinner-bounce.vui-spinner-lg > span { width: 12px; height: 12px; }
.vui-spinner-bounce > span {
    border-radius: 50%;
    background: var(--vui-spinner-color, var(--vui-accent));
    animation: vui-bounce-dot 1.2s ease-in-out infinite;
}
.vui-spinner-bounce > span:nth-child(1) { animation-delay: 0s; }
.vui-spinner-bounce > span:nth-child(2) { animation-delay: 0.16s; }
.vui-spinner-bounce > span:nth-child(3) { animation-delay: 0.32s; }

/* 4. Pulse */
.vui-spinner-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.vui-spinner-pulse.vui-spinner-sm > span { width: 12px; height: 12px; }
.vui-spinner-pulse.vui-spinner-md > span { width: 20px; height: 20px; }
.vui-spinner-pulse.vui-spinner-lg > span { width: 30px; height: 30px; }
.vui-spinner-pulse > span {
    border-radius: 50%;
    background: var(--vui-spinner-color, var(--vui-accent));
    animation: vui-pulse-scale 1.1s ease-in-out infinite;
}

/* 5. Ring Pulse (Radar) */
.vui-spinner-ring-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.vui-spinner-ring-pulse.vui-spinner-sm { width: 24px; height: 24px; --vui-rp: 10px; }
.vui-spinner-ring-pulse.vui-spinner-md { width: 36px; height: 36px; --vui-rp: 16px; }
.vui-spinner-ring-pulse.vui-spinner-lg { width: 52px; height: 52px; --vui-rp: 24px; }
.vui-spinner-ring-pulse > span {
    position: absolute;
    width: var(--vui-rp, 16px);
    height: var(--vui-rp, 16px);
    border-radius: 50%;
    background: var(--vui-spinner-color, var(--vui-accent));
}
.vui-spinner-ring-pulse::before,
.vui-spinner-ring-pulse::after {
    content: '';
    position: absolute;
    width: var(--vui-rp, 16px);
    height: var(--vui-rp, 16px);
    border-radius: 50%;
    background: var(--vui-spinner-color, var(--vui-accent));
    animation: vui-ring-expand 1.6s ease-out infinite;
}
.vui-spinner-ring-pulse::after { animation-delay: 0.8s; }

/* 6. Wave Bars (Equalizer) */
.vui-spinner-wave {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.vui-spinner-wave.vui-spinner-sm { height: 14px; gap: 2px; }
.vui-spinner-wave.vui-spinner-md { height: 24px; gap: 4px; }
.vui-spinner-wave.vui-spinner-lg { height: 36px; gap: 5px; }
.vui-spinner-wave.vui-spinner-sm > span { width: 2.5px; }
.vui-spinner-wave.vui-spinner-md > span { width: 3.5px; }
.vui-spinner-wave.vui-spinner-lg > span { width: 5px; }
.vui-spinner-wave > span {
    height: 100%;
    border-radius: 2px;
    background: var(--vui-spinner-color, var(--vui-accent));
    animation: vui-wave-bar 1s ease-in-out infinite;
    transform-origin: bottom center;
}
.vui-spinner-wave > span:nth-child(1) { animation-delay: 0s; }
.vui-spinner-wave > span:nth-child(2) { animation-delay: 0.1s; }
.vui-spinner-wave > span:nth-child(3) { animation-delay: 0.2s; }
.vui-spinner-wave > span:nth-child(4) { animation-delay: 0.3s; }
.vui-spinner-wave > span:nth-child(5) { animation-delay: 0.4s; }

/* 7. Dot Grid */
.vui-spinner-dot-grid {
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
}
.vui-spinner-dot-grid.vui-spinner-sm { width: 18px; height: 18px; gap: 3px; }
.vui-spinner-dot-grid.vui-spinner-md { width: 28px; height: 28px; gap: 4px; }
.vui-spinner-dot-grid.vui-spinner-lg { width: 42px; height: 42px; gap: 6px; }
.vui-spinner-dot-grid > span {
    border-radius: 50%;
    background: var(--vui-spinner-color, var(--vui-accent));
    animation: vui-dot-fade 1.4s ease-in-out infinite;
}
.vui-spinner-dot-grid > span:nth-child(1) { animation-delay: 0s; }
.vui-spinner-dot-grid > span:nth-child(2) { animation-delay: 0.1s; }
.vui-spinner-dot-grid > span:nth-child(3) { animation-delay: 0.2s; }
.vui-spinner-dot-grid > span:nth-child(4) { animation-delay: 0.3s; }
.vui-spinner-dot-grid > span:nth-child(5) { animation-delay: 0.4s; }
.vui-spinner-dot-grid > span:nth-child(6) { animation-delay: 0.5s; }
.vui-spinner-dot-grid > span:nth-child(7) { animation-delay: 0.6s; }
.vui-spinner-dot-grid > span:nth-child(8) { animation-delay: 0.7s; }
.vui-spinner-dot-grid > span:nth-child(9) { animation-delay: 0.8s; }

/* 8. Spinning Bars (Radial) */
.vui-spinner-bars {
    display: inline-block;
    position: relative;
}
.vui-spinner-bars.vui-spinner-sm { width: 18px; height: 18px; }
.vui-spinner-bars.vui-spinner-md { width: 28px; height: 28px; }
.vui-spinner-bars.vui-spinner-lg { width: 42px; height: 42px; }
.vui-spinner-bars > span {
    position: absolute;
    top: 0; left: 50%;
    width: 12%;
    height: 28%;
    margin-left: -6%;
    border-radius: 2px;
    background: var(--vui-spinner-color, var(--vui-accent));
    transform-origin: 50% 175%;
    animation: vui-bar-fade 1s linear infinite;
}
.vui-spinner-bars > span:nth-child(1) { transform: rotate(0deg);   animation-delay: -0.875s; }
.vui-spinner-bars > span:nth-child(2) { transform: rotate(45deg);  animation-delay: -0.75s;  }
.vui-spinner-bars > span:nth-child(3) { transform: rotate(90deg);  animation-delay: -0.625s; }
.vui-spinner-bars > span:nth-child(4) { transform: rotate(135deg); animation-delay: -0.5s;   }
.vui-spinner-bars > span:nth-child(5) { transform: rotate(180deg); animation-delay: -0.375s; }
.vui-spinner-bars > span:nth-child(6) { transform: rotate(225deg); animation-delay: -0.25s;  }
.vui-spinner-bars > span:nth-child(7) { transform: rotate(270deg); animation-delay: -0.125s; }
.vui-spinner-bars > span:nth-child(8) { transform: rotate(315deg); animation-delay: 0s;      }

/* 9. Orbit */
.vui-spinner-orbit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.vui-spinner-orbit.vui-spinner-sm { width: 24px; height: 24px; --vui-orb-size: 16px; }
.vui-spinner-orbit.vui-spinner-md { width: 38px; height: 38px; --vui-orb-size: 26px; }
.vui-spinner-orbit.vui-spinner-lg { width: 54px; height: 54px; --vui-orb-size: 38px; }
.vui-spinner-orbit .orb-core {
    width: calc(var(--vui-orb-size, 26px) * 0.5);
    height: calc(var(--vui-orb-size, 26px) * 0.5);
    border-radius: 50%;
    background: var(--vui-spinner-color, var(--vui-accent));
    opacity: 0.85;
}
.vui-spinner-orbit .orb-satellite {
    position: absolute;
    width: calc(var(--vui-orb-size, 26px) * 0.22);
    height: calc(var(--vui-orb-size, 26px) * 0.22);
    border-radius: 50%;
    background: rgba(124, 110, 245, 0.7);
    animation: vui-orbit-sat 1.2s linear infinite;
    top: 50%; left: 50%;
    margin-top: calc(var(--vui-orb-size, 26px) * -0.11);
    margin-left: calc(var(--vui-orb-size, 26px) * -0.11);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Avatar
   ───────────────────────────────────────────────────────────────────────────── */
.vui-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--vui-surface-2);
    border: 1px solid var(--vui-border);
    font-family: var(--vui-font);
    font-weight: 600;
    color: var(--vui-text-muted);
    flex-shrink: 0;
}
.vui-avatar-circle { border-radius: 50%; }
.vui-avatar-square { border-radius: var(--vui-radius); }
.vui-avatar-xs  { width: 24px;  height: 24px;  font-size: 10px; }
.vui-avatar-sm  { width: 32px;  height: 32px;  font-size: 12px; }
.vui-avatar-md  { width: 40px;  height: 40px;  font-size: 14px; }
.vui-avatar-lg  { width: 56px;  height: 56px;  font-size: 18px; }
.vui-avatar-xl  { width: 72px;  height: 72px;  font-size: 22px; }
.vui-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.vui-avatar-initials { line-height: 1; letter-spacing: 0.05em; }

/* ─────────────────────────────────────────────────────────────────────────────
   Dropdown
   ───────────────────────────────────────────────────────────────────────────── */
.vui-dropdown { position: relative; display: inline-block; }
.vui-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--vui-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--vui-text);
    background: var(--vui-surface);
    border: 1px solid var(--vui-border);
    border-radius: var(--vui-radius);
    padding: 7px 14px;
    cursor: pointer;
    transition: border-color var(--vui-trans), background var(--vui-trans);
}
.vui-dropdown-trigger:hover { border-color: var(--vui-border-focus); background: var(--vui-surface-2); }
.vui-dropdown-caret { font-size: 10px; opacity: 0.6; }
.vui-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    background: var(--vui-surface);
    border: 1px solid var(--vui-border);
    border-radius: var(--vui-radius-lg);
    box-shadow: var(--vui-shadow-lg);
    padding: 5px;
    list-style: none;
    margin: 0;
    z-index: 500;
    display: none;
}
.vui-dropdown-right { left: auto; right: 0; }
.vui-dropdown-menu.vui-dropdown-open { display: block; }
.vui-dropdown-menu li a,
.vui-dropdown-menu li button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    font-family: var(--vui-font);
    font-size: 14px;
    color: var(--vui-text);
    background: none;
    border: none;
    border-radius: var(--vui-radius);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--vui-trans);
    box-sizing: border-box;
}
.vui-dropdown-menu li a:hover,
.vui-dropdown-menu li button:hover { background: var(--vui-surface-2); }
.vui-dropdown-menu li[role="separator"] {
    border-top: 1px solid var(--vui-border);
    margin: 5px 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Navbar
   ───────────────────────────────────────────────────────────────────────────── */
.vui-navbar {
    width: 100%;
    background: var(--vui-surface);
    border-bottom: 1px solid var(--vui-border);
    font-family: var(--vui-font);
    position: relative;
    box-sizing: border-box;
}

.vui-navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}

.vui-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 56px;
    gap: 12px;
    box-sizing: border-box;
}

.vui-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--vui-text) !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.vui-navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vui-navbar-menu a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--vui-text-muted);
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: var(--vui-radius);
    transition: color var(--vui-trans), background var(--vui-trans);
    white-space: nowrap;
}

.vui-navbar-menu a:hover,
.vui-navbar-menu a.active {
    color: var(--vui-text);
    background: var(--vui-surface-2);
}

.vui-navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vui-navbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--vui-surface-2);
    border: 1px solid var(--vui-border);
    border-radius: var(--vui-radius);
    color: var(--vui-text);
    cursor: pointer;
    padding: 0;
    transition: all var(--vui-trans);
}

.vui-navbar-toggle:hover {
    background: var(--vui-border);
    color: #fff;
}

.vui-navbar-toggle.vui-toggle-active {
    background: var(--vui-accent);
    color: #fff;
    border-color: var(--vui-accent);
}

@media (max-width: 768px) {
    .vui-navbar-toggle {
        display: inline-flex;
    }

    .vui-navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 120;
        background: #151518;
        border: 1px solid var(--vui-border);
        border-top: none;
        border-radius: 0 0 var(--vui-radius-lg) var(--vui-radius-lg);
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 4px;
        box-shadow: 0 16px 36px rgba(0,0,0,0.55);
    }

    .vui-navbar-menu.vui-navbar-open {
        display: flex !important;
        animation: vuiNavFade 0.18s ease-in-out;
    }

    .vui-navbar-menu a {
        padding: 9px 14px;
        font-size: 14px;
    }
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   Toast
   ───────────────────────────────────────────────────────────────────────────── */
.vui-toast {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--vui-radius-lg);
    border: 1px solid;
    font-family: var(--vui-font);
    font-size: 14px;
    box-shadow: var(--vui-shadow-lg);
    min-width: 280px;
    max-width: 420px;
    transition: opacity var(--vui-trans-slow), transform var(--vui-trans-slow);
}
.vui-toast-fade { opacity: 0; transform: translateY(8px); }
.vui-toast-success { background: var(--vui-success-bg); color: var(--vui-success); border-color: rgba(34,197,94,0.25); }
.vui-toast-warning { background: var(--vui-warning-bg); color: var(--vui-warning); border-color: rgba(245,158,11,0.25); }
.vui-toast-danger  { background: var(--vui-danger-bg);  color: var(--vui-danger);  border-color: rgba(239,68,68,0.25);  }
.vui-toast-info    { background: var(--vui-info-bg);    color: var(--vui-info);    border-color: rgba(56,189,248,0.25); }
.vui-toast-icon    { font-size: 15px; flex-shrink: 0; }
.vui-toast-message { flex: 1; }
.vui-toast-close {
    background: none; border: none; cursor: pointer;
    color: inherit; opacity: 0.5; font-size: 13px;
    padding: 0; line-height: 1; flex-shrink: 0;
    transition: opacity var(--vui-trans);
}
.vui-toast-close:hover { opacity: 1; }

/* ─────────────────────────────────────────────────────────────────────────────
   Tabs
   ───────────────────────────────────────────────────────────────────────────── */
.vui-tabs-container {
    width: 100%;
}
.vui-tabs-list {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--vui-surface-2);
    border: 1px solid var(--vui-border);
    border-radius: var(--vui-radius-lg);
    margin-bottom: 16px;
}
.vui-tab-btn {
    background: transparent;
    border: none;
    border-radius: var(--vui-radius);
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--vui-font);
    color: var(--vui-text-muted);
    cursor: pointer;
    transition: all var(--vui-trans);
    user-select: none;
}
.vui-tab-btn:hover {
    color: var(--vui-text);
    background: rgba(255, 255, 255, 0.04);
}
.vui-tab-btn.vui-tab-active {
    color: #fff;
    background: var(--vui-accent);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(124, 110, 245, 0.35);
}
.vui-tabs-content {
    background: var(--vui-surface);
    border: 1px solid var(--vui-border);
    border-radius: var(--vui-radius-lg);
    padding: 20px 24px;
}
.vui-tab-pane {
    display: none;
}
.vui-tab-pane.vui-tab-pane-active {
    display: block;
    animation: vuiTabFade 0.2s ease-in-out;
}
@keyframes vuiTabFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Accordion
   ───────────────────────────────────────────────────────────────────────────── */
.vui-accordion {
    width: 100%;
    background: var(--vui-surface);
    border: 1px solid var(--vui-border);
    border-radius: var(--vui-radius-lg);
    overflow: hidden;
    transition: border-color var(--vui-trans);
    margin-bottom: 8px;
}
.vui-accordion:hover {
    border-color: var(--vui-border-hover);
}
.vui-accordion.vui-accordion-open {
    border-color: var(--vui-accent);
}
.vui-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--vui-font);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--vui-text);
    text-align: left;
    transition: background var(--vui-trans);
}
.vui-accordion-header:hover {
    background: var(--vui-surface-2);
}
.vui-accordion-chevron {
    color: var(--vui-text-muted);
    transition: transform var(--vui-trans);
    flex-shrink: 0;
}
.vui-accordion-open .vui-accordion-chevron {
    transform: rotate(180deg);
    color: var(--vui-accent);
}
.vui-accordion-body {
    display: none;
    border-top: 1px solid var(--vui-border);
    background: rgba(0, 0, 0, 0.15);
}
.vui-accordion-open .vui-accordion-body {
    display: block;
    animation: vuiAccordionSlide 0.2s ease-in-out;
}
.vui-accordion-inner {
    padding: 16px 20px;
    font-size: 13.5px;
    color: var(--vui-text-muted);
    line-height: 1.6;
}
@keyframes vuiAccordionSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Progress Bar
   ───────────────────────────────────────────────────────────────────────────── */
.vui-progress {
    width: 100%;
    background: var(--vui-surface-2);
    border: 1px solid var(--vui-border);
    border-radius: 9999px;
    overflow: hidden;
    display: flex;
}
.vui-progress-sm { height: 6px; }
.vui-progress-md { height: 12px; }
.vui-progress-lg { height: 20px; }

.vui-progress-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.4s ease;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}
.vui-progress-primary { background: var(--vui-accent); }
.vui-progress-success { background: var(--vui-success); }
.vui-progress-warning { background: var(--vui-warning); }
.vui-progress-danger  { background: var(--vui-danger);  }

.vui-progress-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}
.vui-progress-animated {
    animation: vuiProgressStripes 1s linear infinite;
}
@keyframes vuiProgressStripes {
    0%   { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Tooltip
   ───────────────────────────────────────────────────────────────────────────── */
.vui-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vui-tooltip-bubble {
    position: absolute;
    z-index: 100;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--vui-font, sans-serif);
    color: #ffffff;
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: var(--vui-radius, 6px);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.vui-tooltip-wrapper:hover .vui-tooltip-bubble,
.vui-tooltip-wrapper:focus-within .vui-tooltip-bubble {
    opacity: 1;
    visibility: visible;
}

/* Top (Default) */
.vui-tooltip-top .vui-tooltip-bubble,
.vui-tooltip-bubble {
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
}
.vui-tooltip-top:hover .vui-tooltip-bubble,
.vui-tooltip-top:focus-within .vui-tooltip-bubble {
    transform: translateX(-50%) translateY(0);
}

/* Bottom */
.vui-tooltip-bottom .vui-tooltip-bubble {
    top: calc(100% + 8px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
}
.vui-tooltip-bottom:hover .vui-tooltip-bubble,
.vui-tooltip-bottom:focus-within .vui-tooltip-bubble {
    transform: translateX(-50%) translateY(0);
}

/* Left */
.vui-tooltip-left .vui-tooltip-bubble {
    top: 50%;
    bottom: auto;
    left: auto;
    right: calc(100% + 8px);
    transform: translateY(-50%) translateX(4px);
}
.vui-tooltip-left:hover .vui-tooltip-bubble,
.vui-tooltip-left:focus-within .vui-tooltip-bubble {
    transform: translateY(-50%) translateX(0);
}

/* Right */
.vui-tooltip-right .vui-tooltip-bubble {
    top: 50%;
    bottom: auto;
    left: calc(100% + 8px);
    right: auto;
    transform: translateY(-50%) translateX(-4px);
}
.vui-tooltip-right:hover .vui-tooltip-bubble,
.vui-tooltip-right:focus-within .vui-tooltip-bubble {
    transform: translateY(-50%) translateX(0);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Breadcrumb
   ───────────────────────────────────────────────────────────────────────────── */
.vui-breadcrumb {
    display: flex;
    align-items: center;
    font-family: var(--vui-font);
    font-size: 13.5px;
}
.vui-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}
.vui-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--vui-text-muted);
}
.vui-breadcrumb-link {
    color: var(--vui-text-muted);
    text-decoration: none;
    transition: color var(--vui-trans);
}
.vui-breadcrumb-link:hover {
    color: var(--vui-accent);
    text-decoration: underline;
}
.vui-breadcrumb-sep {
    color: var(--vui-text-dim);
    flex-shrink: 0;
}
.vui-breadcrumb-active {
    color: var(--vui-text);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Table
   ───────────────────────────────────────────────────────────────────────────── */
.vui-table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--vui-surface);
    border: 1px solid var(--vui-border);
    border-radius: var(--vui-radius-lg);
}
.vui-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--vui-font);
    font-size: 13.5px;
    text-align: left;
}
.vui-table th {
    background: var(--vui-surface-2);
    color: var(--vui-text);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--vui-border);
    letter-spacing: -0.01em;
}
.vui-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--vui-border);
    color: var(--vui-text-muted);
}
.vui-table tr:last-child td {
    border-bottom: none;
}
.vui-table-striped tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}
.vui-table-hover tbody tr:hover {
    background: var(--vui-surface-2);
    color: var(--vui-text);
}
.vui-table-bordered th,
.vui-table-bordered td {
    border: 1px solid var(--vui-border);
}
.vui-table-compact th,
.vui-table-compact td {
    padding: 8px 12px;
    font-size: 12.5px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Switch
   ───────────────────────────────────────────────────────────────────────────── */
.vui-switch-wrapper { display:inline-flex; align-items:center; gap:10px; cursor:pointer; }
.vui-switch-disabled { opacity:.5; pointer-events:none; }
.vui-switch-input { position:absolute; opacity:0; width:0; height:0; }
.vui-switch-track {
    position:relative; display:inline-flex; align-items:center;
    border-radius:var(--vui-radius-full); background:var(--vui-border);
    transition:background var(--vui-trans); flex-shrink:0;
}
.vui-switch-sm  { width:32px; height:18px; }
.vui-switch-md  { width:42px; height:24px; }
.vui-switch-lg  { width:54px; height:30px; }
.vui-switch-thumb {
    position:absolute; background:#fff; border-radius:50%;
    transition:transform var(--vui-trans), box-shadow var(--vui-trans);
    box-shadow:0 1px 3px rgba(0,0,0,.4);
}
.vui-switch-sm  .vui-switch-thumb { width:12px; height:12px; left:3px; }
.vui-switch-md  .vui-switch-thumb { width:16px; height:16px; left:4px; }
.vui-switch-lg  .vui-switch-thumb { width:22px; height:22px; left:4px; }
.vui-switch-input:checked ~ .vui-switch-track { background:var(--vui-accent); }
.vui-switch-input:checked ~ .vui-switch-track .vui-switch-thumb { transform:translateX(18px); }
.vui-switch-sm .vui-switch-input:checked ~ .vui-switch-track .vui-switch-thumb { transform:translateX(14px); }
.vui-switch-lg .vui-switch-input:checked ~ .vui-switch-track .vui-switch-thumb { transform:translateX(24px); }
.vui-switch-input:checked + .vui-switch-track { background:var(--vui-accent); }
.vui-switch-input:checked + .vui-switch-track .vui-switch-thumb { transform:translateX(18px); }
.vui-switch-label { font-size:14px; color:var(--vui-text); user-select:none; }

/* ─────────────────────────────────────────────────────────────────────────────
   Pagination
   ───────────────────────────────────────────────────────────────────────────── */
.vui-pagination { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.vui-page-btn {
    display:inline-flex; align-items:center; justify-content:center;
    min-width:36px; height:36px; padding:0 10px;
    border-radius:var(--vui-radius); background:var(--vui-surface-2);
    border:1px solid var(--vui-border); color:var(--vui-text);
    font-size:13px; text-decoration:none; cursor:pointer;
    transition:background var(--vui-trans), color var(--vui-trans);
}
.vui-page-btn:hover { background:var(--vui-border); }
.vui-page-active { background:var(--vui-accent); border-color:var(--vui-accent); color:#fff; }
.vui-page-active:hover { background:var(--vui-accent-dark); }
.vui-page-disabled { opacity:.4; pointer-events:none; }
.vui-page-ellipsis { display:inline-flex; align-items:center; padding:0 6px; color:var(--vui-text-muted); font-size:13px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Skeleton
   ───────────────────────────────────────────────────────────────────────────── */
.vui-skeleton-wrap { display:flex; flex-direction:column; gap:10px; }
.vui-skeleton {
    background:linear-gradient(90deg, var(--vui-surface-2) 25%, var(--vui-border) 50%, var(--vui-surface-2) 75%);
    background-size:200% 100%;
    animation:vui-shimmer 1.5s infinite;
    border-radius:var(--vui-radius);
}
.vui-skeleton-text  { height:14px; border-radius:4px; }
.vui-skeleton-rect  { border-radius:var(--vui-radius); }
.vui-skeleton-circle{ border-radius:50%; }
@keyframes vui-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ─────────────────────────────────────────────────────────────────────────────
   Empty State
   ───────────────────────────────────────────────────────────────────────────── */
.vui-empty { display:flex; flex-direction:column; align-items:center; text-align:center; padding:3rem 1rem; gap:12px; }
.vui-empty-icon { color:var(--vui-text-dim); opacity:.6; }
.vui-empty-title { font-size:18px; font-weight:600; color:var(--vui-text); margin:0; }
.vui-empty-desc { font-size:14px; color:var(--vui-text-muted); margin:0; max-width:320px; }
.vui-empty-action { margin-top:4px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Divider
   ───────────────────────────────────────────────────────────────────────────── */
.vui-divider { border:none; border-top:1px solid var(--vui-border); margin:0; }
.vui-divider-labeled { display:flex; align-items:center; gap:12px; }
.vui-divider-line { flex:1; height:1px; background:var(--vui-border); }
.vui-divider-label { font-size:12px; color:var(--vui-text-muted); white-space:nowrap; }
.vui-divider-vertical { width:1px; background:var(--vui-border); align-self:stretch; }

/* ─────────────────────────────────────────────────────────────────────────────
   Drawer
   ───────────────────────────────────────────────────────────────────────────── */
.vui-drawer-backdrop {
    position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:300;
    display:flex; transition:opacity var(--vui-trans-slow);
}
.vui-drawer-backdrop[aria-hidden="true"] { opacity:0; pointer-events:none; }
.vui-drawer-backdrop[aria-hidden="false"] { opacity:1; }
.vui-drawer {
    position:fixed; background:var(--vui-surface); display:flex; flex-direction:column;
    box-shadow:var(--vui-shadow-xl); transition:transform var(--vui-trans-slow);
    z-index:301;
}
.vui-drawer-right  { top:0; right:0; bottom:0; width:min(400px,90vw); transform:translateX(100%); }
.vui-drawer-left   { top:0; left:0; bottom:0; width:min(400px,90vw); transform:translateX(-100%); }
.vui-drawer-top    { top:0; left:0; right:0; height:min(400px,80vh); transform:translateY(-100%); }
.vui-drawer-bottom { bottom:0; left:0; right:0; height:min(400px,80vh); transform:translateY(100%); }
.vui-drawer-backdrop[aria-hidden="false"] .vui-drawer { transform:none; }
.vui-drawer-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--vui-border); }
.vui-drawer-title  { font-size:16px; font-weight:600; color:var(--vui-text); margin:0; }
.vui-drawer-close  { background:none; border:none; color:var(--vui-text-muted); cursor:pointer; font-size:20px; line-height:1; padding:4px 6px; border-radius:var(--vui-radius); transition:background var(--vui-trans); }
.vui-drawer-close:hover { background:var(--vui-surface-2); color:var(--vui-text); }
.vui-drawer-body   { flex:1; overflow-y:auto; padding:20px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Popover
   ───────────────────────────────────────────────────────────────────────────── */
.vui-popover-wrap { position:relative; display:inline-flex; }
.vui-popover {
    position:absolute; z-index:200; min-width:180px; max-width:280px;
    background:var(--vui-surface-2); border:1px solid var(--vui-border);
    border-radius:var(--vui-radius-lg); padding:12px 14px;
    box-shadow:var(--vui-shadow-md); color:var(--vui-text); font-size:13px;
}
.vui-popover-bottom { top:calc(100% + 8px); left:0; }
.vui-popover-top    { bottom:calc(100% + 8px); left:0; }
.vui-popover-right  { left:calc(100% + 8px); top:0; }
.vui-popover-left   { right:calc(100% + 8px); top:0; }
.vui-popover-title  { font-weight:600; font-size:13px; color:var(--vui-text); margin-bottom:6px; }
.vui-popover-body   { color:var(--vui-text-muted); line-height:1.5; }

/* ─────────────────────────────────────────────────────────────────────────────
   Confirm Dialog
   ───────────────────────────────────────────────────────────────────────────── */
.vui-confirm-dialog { max-width:420px; }

/* ─────────────────────────────────────────────────────────────────────────────
   DatePicker
   ───────────────────────────────────────────────────────────────────────────── */
.vui-datepicker { cursor:pointer; }
.vui-datepicker::-webkit-calendar-picker-indicator {
    filter:invert(1) opacity(.5);
    cursor:pointer;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FileUpload
   ───────────────────────────────────────────────────────────────────────────── */
.vui-fileupload-wrap { width:100%; max-width:440px; display:flex; flex-direction:column; gap:12px; }
.vui-fileupload-zone {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
    border:2px dashed var(--vui-border); border-radius:var(--vui-radius-lg);
    padding:32px 24px; cursor:pointer; transition:all var(--vui-trans);
    color:var(--vui-text-muted); text-align:center; background:rgba(255,255,255,0.015);
    position:relative;
}
.vui-fileupload-zone:hover {
    border-color:var(--vui-accent); background:var(--vui-accent-dim);
    transform:translateY(-1px);
}
.vui-fileupload-icon-wrap {
    width:48px; height:48px; border-radius:50%; background:var(--vui-surface-2);
    border:1px solid var(--vui-border); display:flex; align-items:center;
    justify-content:center; color:var(--vui-accent); transition:transform .15s;
}
.vui-fileupload-zone:hover .vui-fileupload-icon-wrap { transform:scale(1.1); }
.vui-fileupload-text { font-size:13.5px; color:var(--vui-text); }
.vui-fileupload-text strong { color:var(--vui-accent); }
.vui-fileupload-hint { font-size:11.5px; color:var(--vui-text-muted); }
.vui-fileupload-input { position:absolute; opacity:0; width:0; height:0; pointer-events:none; }

.vui-file-item {
    display:flex; align-items:center; gap:12px; padding:10px 14px;
    background:var(--vui-surface-2); border:1px solid var(--vui-border);
    border-radius:var(--vui-radius);
}
.vui-file-item-icon {
    width:32px; height:32px; border-radius:6px; background:rgba(124,110,245,0.12);
    color:var(--vui-accent); display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.vui-file-item-info { flex:1; min-width:0; }
.vui-file-item-name { font-size:12.5px; font-weight:600; color:var(--vui-text); margin:0 0 2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vui-file-item-meta { font-size:11px; color:var(--vui-text-muted); margin:0; }
.vui-file-item-progress { width:100%; height:3px; background:var(--vui-border); border-radius:2px; margin-top:5px; overflow:hidden; }
.vui-file-item-bar { height:100%; background:#22c55e; border-radius:2px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Combobox
   ───────────────────────────────────────────────────────────────────────────── */
.vui-combobox-wrap { width:100%; max-width:320px; position:relative; }
.vui-combobox { position:relative; }
.vui-combobox-input { width:100%; padding-right:32px; }
.vui-combobox-list {
    position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:200;
    background:var(--vui-surface-2); border:1px solid var(--vui-border);
    border-radius:var(--vui-radius-lg); max-height:220px; overflow-y:auto;
    box-shadow:0 10px 25px rgba(0,0,0,0.5); list-style:none; margin:0; padding:6px;
}
.vui-combobox-option {
    display:flex; align-items:center; justify-content:space-between;
    padding:8px 12px; border-radius:var(--vui-radius); cursor:pointer;
    font-size:13px; color:var(--vui-text); transition:background var(--vui-trans), color var(--vui-trans);
}
.vui-combobox-option:hover { background:var(--vui-accent-dim); color:var(--vui-accent); }
.vui-combobox-option.vui-selected { background:var(--vui-accent-dim); color:var(--vui-accent); font-weight:600; }
.vui-combobox-option[hidden] { display:none; }

/* ─────────────────────────────────────────────────────────────────────────────
   InputGroup
   ───────────────────────────────────────────────────────────────────────────── */
.vui-input-group { display:flex; align-items:stretch; }
.vui-input-group .vui-input { border-radius:0; flex:1; }
.vui-input-group-disabled { opacity:.5; pointer-events:none; }
.vui-input-addon {
    display:inline-flex; align-items:center; padding:0 12px;
    background:var(--vui-surface-2); border:1px solid var(--vui-border);
    color:var(--vui-text-muted); font-size:13px; white-space:nowrap;
}
.vui-input-prefix { border-right:none; border-radius:var(--vui-radius) 0 0 var(--vui-radius); }
.vui-input-suffix { border-left:none; border-radius:0 var(--vui-radius) var(--vui-radius) 0; }
.vui-input-group .vui-input:first-child { border-radius:var(--vui-radius) 0 0 var(--vui-radius); }
.vui-input-group .vui-input:last-child  { border-radius:0 var(--vui-radius) var(--vui-radius) 0; }

/* ─────────────────────────────────────────────────────────────────────────────
   Stat
   ───────────────────────────────────────────────────────────────────────────── */
.vui-stat {
    display:flex; gap:14px; align-items:center;
    background:var(--vui-surface); border:1px solid var(--vui-border);
    border-radius:var(--vui-radius-lg); padding:18px 20px;
}
.vui-stat-icon {
    width:44px; height:44px; border-radius:var(--vui-radius-lg);
    background:var(--vui-accent-dim); display:flex; align-items:center;
    justify-content:center; color:var(--vui-accent); flex-shrink:0; font-size:20px;
}
.vui-stat-body { display:flex; flex-direction:column; gap:4px; }
.vui-stat-label { font-size:12px; color:var(--vui-text-muted); margin:0; text-transform:uppercase; letter-spacing:.05em; }
.vui-stat-value { font-size:26px; font-weight:700; color:var(--vui-text); margin:0; line-height:1; }
.vui-stat-trend { font-size:12px; font-weight:500; }
.vui-trend-up   { color:var(--vui-success); }
.vui-trend-down { color:var(--vui-danger); }

/* ─────────────────────────────────────────────────────────────────────────────
   DataTable
   ───────────────────────────────────────────────────────────────────────────── */
.vui-datatable-wrap { display:flex; flex-direction:column; gap:12px; width:100%; }
.vui-datatable-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.vui-datatable-search { max-width:260px; }
.vui-datatable-pages { display:flex; gap:4px; flex-wrap:wrap; margin-top:4px; }
.vui-datatable-pages .vui-page-btn { min-width:32px; height:32px; font-size:12px; }
.vui-sortable { cursor:pointer; user-select:none; }
.vui-sortable:hover { color:var(--vui-accent); }
.vui-sort-icon { opacity:.4; font-size:11px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Timeline
   ───────────────────────────────────────────────────────────────────────────── */
.vui-timeline { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0; width:100%; max-width:480px; }
.vui-timeline-item { display:flex; gap:16px; padding-bottom:24px; position:relative; }
.vui-timeline-item:last-child { padding-bottom:0; }
.vui-timeline-item::before {
    content:''; position:absolute; left:17px; top:36px; bottom:0;
    width:2px; background:var(--vui-border);
}
.vui-timeline-item:last-child::before { display:none; }
.vui-timeline-marker {
    width:36px; height:36px; border-radius:50%; background:var(--vui-surface-2);
    border:2px solid var(--vui-border); display:flex; align-items:center;
    justify-content:center; font-size:14px; flex-shrink:0; color:#fff;
    position:relative; z-index:1;
}
.vui-timeline-content { flex:1; padding-top:6px; }
.vui-timeline-title { font-size:14px; font-weight:600; color:var(--vui-text); margin:0 0 4px; }
.vui-timeline-desc  { font-size:13px; color:var(--vui-text-muted); margin:0 0 4px; }
.vui-timeline-time  { font-size:11.5px; color:var(--vui-text-dim); }

/* ─────────────────────────────────────────────────────────────────────────────
   Stepper
   ───────────────────────────────────────────────────────────────────────────── */
.vui-stepper {
    list-style:none; padding:0; margin:0 auto;
    display:flex; align-items:flex-start; justify-content:space-between;
    width:100%; max-width:520px; position:relative;
}
.vui-stepper-step {
    display:flex; flex-direction:column; align-items:center;
    position:relative; flex:1; min-width:80px; text-align:center;
}
.vui-step-circle {
    width:36px; height:36px; border-radius:50%; display:flex; align-items:center;
    justify-content:center; font-size:13.5px; font-weight:700; border:2px solid var(--vui-border);
    background:var(--vui-surface-2); color:var(--vui-text-muted); z-index:2; flex-shrink:0;
    transition:all var(--vui-trans);
}
.vui-step-label {
    font-size:12.5px; font-weight:500; color:var(--vui-text-muted);
    margin-top:10px; text-align:center; white-space:nowrap;
}
.vui-step-line {
    position:absolute; top:18px; left:50%; width:100%;
    height:2px; background:var(--vui-border); z-index:1;
}
.vui-step-done .vui-step-circle  { background:#22c55e; border-color:#22c55e; color:#fff; box-shadow:0 0 12px rgba(34,197,94,0.35); }
.vui-step-done .vui-step-label   { color:var(--vui-text); font-weight:500; }
.vui-step-done .vui-step-line    { background:#22c55e; }
.vui-step-active .vui-step-circle { background:var(--vui-accent); border-color:var(--vui-accent); color:#fff; box-shadow:0 0 14px var(--vui-accent-dim); transform:scale(1.05); }
.vui-step-active .vui-step-label  { color:var(--vui-accent); font-weight:600; }

/* ─────────────────────────────────────────────────────────────────────────────
   Sidebar — Modern SaaS App Navigation
   ───────────────────────────────────────────────────────────────────────────── */
.vui-sidebar {
    background: var(--vui-surface, #121316);
    border-right: 1px solid var(--vui-border, #27272a);
    width: 260px;
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: var(--vui-font, sans-serif);
    transition: width var(--vui-trans-slow, 300ms ease), transform var(--vui-trans-slow, 300ms ease);
    position: relative;
    user-select: none;
}

/* Collapsed Mini State */
.vui-sidebar-collapsed {
    width: 68px;
}
.vui-sidebar-collapsed .vui-sidebar-brand-text,
.vui-sidebar-collapsed .vui-sidebar-brand-badge,
.vui-sidebar-collapsed .vui-sidebar-brand-caret,
.vui-sidebar-collapsed .vui-sidebar-search-text,
.vui-sidebar-collapsed .vui-sidebar-search-kbd,
.vui-sidebar-collapsed .vui-sidebar-group-title,
.vui-sidebar-collapsed .vui-sidebar-label,
.vui-sidebar-collapsed .vui-sidebar-badge,
.vui-sidebar-collapsed .vui-sidebar-chevron,
.vui-sidebar-collapsed .vui-sidebar-sub,
.vui-sidebar-collapsed .vui-sidebar-user-info,
.vui-sidebar-collapsed .vui-sidebar-user-more {
    display: none !important;
}
.vui-sidebar-collapsed .vui-sidebar-header {
    justify-content: center;
    padding: 14px 10px;
}
.vui-sidebar-collapsed .vui-sidebar-link {
    justify-content: center;
    padding: 10px;
}
.vui-sidebar-collapsed .vui-sidebar-user {
    justify-content: center;
    padding: 10px 0;
}

/* Header & Brand Switcher */
.vui-sidebar-header {
    padding: 16px 14px;
    border-bottom: 1px solid var(--vui-border, #27272a);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}
.vui-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--vui-text, #fafafa);
    flex: 1;
    min-width: 0;
}
.vui-sidebar-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--vui-accent, #7c6ef5), var(--vui-accent-dark, #5d50d6));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 12px var(--vui-accent-dim, rgba(124, 110, 245, 0.25));
    flex-shrink: 0;
}
.vui-sidebar-brand-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--vui-text, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.vui-sidebar-brand-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--vui-accent-dim, rgba(124, 110, 245, 0.18));
    color: var(--vui-accent, #a78bfa);
    border: 1px solid rgba(124, 110, 245, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vui-sidebar-brand-caret {
    color: var(--vui-text-dim, #71717a);
    margin-left: auto;
    flex-shrink: 0;
}

/* Quick Search Trigger */
.vui-sidebar-search-box {
    padding: 12px 14px 4px;
    flex-shrink: 0;
}
.vui-sidebar-search-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--vui-surface-2, #18191e);
    border: 1px solid var(--vui-border, #27272a);
    border-radius: var(--vui-radius, 8px);
    color: var(--vui-text-muted, #a1a1aa);
    font-size: 12.5px;
    cursor: pointer;
    transition: all var(--vui-trans, 150ms ease);
}
.vui-sidebar-search-btn:hover {
    background: var(--vui-border, #27272a);
    color: var(--vui-text, #ffffff);
    border-color: var(--vui-border-focus, #555555);
}
.vui-sidebar-search-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vui-sidebar-search-kbd {
    font-family: var(--vui-font-mono, monospace);
    font-size: 10px;
    padding: 2px 5px;
    background: var(--vui-surface, #121316);
    border: 1px solid var(--vui-border, #27272a);
    border-radius: 4px;
    color: var(--vui-text-dim, #71717a);
}

/* Navigation Body */
.vui-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vui-sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vui-sidebar-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vui-text-dim, #71717a);
    padding: 6px 10px 4px;
    margin: 0;
}
.vui-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vui-sidebar-item {
    position: relative;
}
.vui-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--vui-radius, 7px);
    color: var(--vui-text-muted, #a1a1aa);
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--vui-trans, 150ms ease);
}
.vui-sidebar-link:hover {
    background: var(--vui-surface-2, #18191e);
    color: var(--vui-text, #ffffff);
}
.vui-sidebar-link.active,
.vui-sidebar-link-active {
    background: var(--vui-accent-dim, rgba(124, 110, 245, 0.15));
    color: var(--vui-accent, #a78bfa);
    font-weight: 600;
}
.vui-sidebar-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
    opacity: 0.9;
}
.vui-sidebar-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vui-sidebar-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 9999px;
    background: var(--vui-surface-2, #27272a);
    color: var(--vui-text-muted, #a1a1aa);
    margin-left: auto;
    flex-shrink: 0;
}
.vui-sidebar-badge-accent {
    background: var(--vui-accent-dim, rgba(124, 110, 245, 0.2));
    color: var(--vui-accent, #a78bfa);
}
.vui-sidebar-badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}
.vui-sidebar-chevron {
    width: 14px;
    height: 14px;
    color: var(--vui-text-dim, #71717a);
    margin-left: auto;
    flex-shrink: 0;
    transition: transform var(--vui-trans, 150ms ease);
}
.vui-sidebar-open .vui-sidebar-chevron {
    transform: rotate(90deg);
}

/* Submenu */
.vui-sidebar-sub {
    list-style: none;
    padding: 3px 0 3px 30px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 1px solid var(--vui-border, #27272a);
    margin-left: 19px;
}
.vui-sidebar-sub-link {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 12.5px;
    color: var(--vui-text-muted, #a1a1aa);
    text-decoration: none !important;
    border-radius: 6px;
    transition: all var(--vui-trans, 150ms ease);
}
.vui-sidebar-sub-link:hover {
    color: var(--vui-text, #ffffff);
    background: var(--vui-surface-2, #18191e);
}
.vui-sidebar-sub-link.active {
    color: var(--vui-accent, #a78bfa);
    font-weight: 600;
}

/* Bottom User Profile Footer */
.vui-sidebar-footer {
    margin-top: auto;
    padding: 12px 14px;
    border-top: 1px solid var(--vui-border, #27272a);
    background: var(--vui-surface, #121316);
    flex-shrink: 0;
}
.vui-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--vui-text, #ffffff);
    padding: 4px 6px;
    border-radius: 8px;
    transition: background var(--vui-trans, 150ms ease);
}
.vui-sidebar-user:hover {
    background: var(--vui-surface-2, #18191e);
}
.vui-sidebar-user-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--vui-accent-dim, rgba(124, 110, 245, 0.2));
    color: var(--vui-accent, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}
.vui-sidebar-user-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--vui-surface, #121316);
}
.vui-sidebar-user-info {
    flex: 1;
    min-width: 0;
}
.vui-sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--vui-text, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.vui-sidebar-user-role {
    font-size: 11.5px;
    color: var(--vui-text-dim, #71717a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vui-sidebar-user-more {
    color: var(--vui-text-dim, #71717a);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Container
   ───────────────────────────────────────────────────────────────────────────── */
.vui-container { width:100%; padding:0 16px; box-sizing:border-box; }
.vui-container-center { margin-left:auto; margin-right:auto; }
.vui-container-sm   { max-width:640px; }
.vui-container-md   { max-width:768px; }
.vui-container-lg   { max-width:1024px; }
.vui-container-xl   { max-width:1280px; }
.vui-container-full { max-width:100%; }

/* ─────────────────────────────────────────────────────────────────────────────
   Global Link Reset — no underlines on component links
   ───────────────────────────────────────────────────────────────────────────── */
.vui-btn,
.vui-nav-link,
.vui-nav-sub-link,
.vui-breadcrumb-link,
.vui-page-btn,
.vui-tab-btn,
.vui-dropdown-item {
    text-decoration: none !important;
}
.vui-nav-link:hover,
.vui-nav-sub-link:hover,
.vui-breadcrumb-link:hover { text-decoration: none !important; }

/* ─────────────────────────────────────────────────────────────────────────────
   Sort Icon (DataTable)
   ───────────────────────────────────────────────────────────────────────────── */
.vui-sort-icon {
    opacity: .4;
    flex-shrink: 0;
    transition: opacity .15s, transform .2s cubic-bezier(0.16, 1, 0.3, 1), color .15s;
    pointer-events: none;
}
.vui-table th:hover .vui-sort-icon { opacity: .7; }
.vui-table th.vui-sort-active .vui-sort-icon { opacity: 1; color: var(--vui-accent); }
.vui-table th.vui-sort-active { color: var(--vui-accent); }

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────────────────────────
   Responsive Overhaul for All Devices (Mobile & Tablet)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .vui-stat { padding: 14px 16px; gap: 10px; width: 100%; }
    .vui-stat-value { font-size: 22px; }
    .vui-card { width: 100%; max-width: 100%; }
    .vui-table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; }
    .vui-fileupload-wrap { width: 100%; max-width: 100%; }
}

@media (max-width: 768px) {
    /* Container & Layout */
    .vui-container { padding: 0 12px; }

    /* Sidebar */
    .vui-sidebar { width: 100%; min-height: auto; flex-direction: row; border-right: none; border-bottom: 1px solid var(--vui-border); }
    .vui-sidebar-nav { display: flex; flex-wrap: wrap; padding: 6px; gap: 2px; }
    .vui-nav-item { border-radius: var(--vui-radius); }
    .vui-sidebar-header { padding: 12px 16px; min-height: auto; border-right: 1px solid var(--vui-border); border-bottom: none; }

    /* Stepper: vertical on mobile */
    .vui-stepper { flex-direction: column; gap: 8px; width: 100%; max-width: 100%; }
    .vui-stepper-step { flex-direction: row; flex: none; align-items: center; gap: 12px; width: 100%; text-align: left; }
    .vui-step-line { position: static; width: 2px; height: 20px; margin-left: 17px; }
    .vui-step-label { margin-top: 0; text-align: left; }

    /* DataTable & Tables */
    .vui-table-responsive { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; border-radius: var(--vui-radius); }
    .vui-table th, .vui-table td { font-size: 12px; padding: 8px 10px; white-space: nowrap; }
    .vui-datatable-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
    .vui-datatable-toolbar { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
    .vui-datatable-search { max-width: 100%; width: 100%; }
    .vui-datatable-pages { gap: 3px; justify-content: center; }
    .vui-datatable-pages .vui-page-btn { min-width: 28px; height: 28px; font-size: 11px; }

    /* Tabs */
    .vui-tabs-list { flex-wrap: wrap; width: 100%; }
    .vui-tab-btn { flex: 1; min-width: 80px; text-align: center; font-size: 12.5px; padding: 6px 12px; }
    .vui-tabs-content { padding: 16px; }

    /* Cards & Modals */
    .vui-card-body { padding: 16px; }
    .vui-card-footer { padding: 12px 16px; }
    .vui-modal-overlay { padding: 12px; }
    .vui-modal-container { width: min(520px, calc(100vw - 24px)); max-width: 100%; }
    .vui-modal-body { padding: 16px; }
    .vui-modal-header { padding: 14px 16px; }
    .vui-modal-footer { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }

    /* Forms */
    .vui-input-group { width: 100%; }
    .vui-combobox-wrap { width: 100%; max-width: 100%; }

    /* File Upload */
    .vui-fileupload-zone { padding: 20px 14px; width: 100%; box-sizing: border-box; }
    .vui-file-item { padding: 8px 10px; gap: 8px; }

    /* Timeline */
    .vui-timeline { width: 100%; max-width: 100%; }
    .vui-timeline-marker { width: 32px; height: 32px; font-size: 12px; }

    /* Accordion */
    .vui-accordion-header { padding: 12px 14px; font-size: 13.5px; }
    .vui-accordion-inner { padding: 12px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
    /* Form elements full-width */
    .vui-field { width: 100%; }
    .vui-input-group { width: 100%; }
    .vui-select { width: 100%; }
    .vui-textarea { width: 100%; }
    .vui-input { width: 100%; }

    /* Stepper labels smaller */
    .vui-step-label { font-size: 11px; }

    /* Timeline compact */
    .vui-timeline-marker { width: 28px; height: 28px; }
    .vui-timeline-item { gap: 10px; }

    /* Modal full-screen */
    .vui-modal-container { width: calc(100vw - 20px) !important; margin: 10px auto; }
    .vui-modal-body { padding: 14px; }

    /* Drawer full-width */
    .vui-drawer { width: 100% !important; max-width: none; }
    .vui-drawer-body { padding: 14px; }

    /* Buttons */
    .vui-btn-lg { padding: 9px 18px; font-size: 14px; }
    .vui-btn-md { padding: 7px 14px; font-size: 13px; }
    .vui-btn { max-width: 100%; text-overflow: ellipsis; }

    /* Pagination */
    .vui-pagination { justify-content: center; gap: 2px; }
    .vui-page-btn { min-width: 30px; height: 30px; padding: 0 6px; font-size: 12px; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Button Glow & Glass Variants
   ───────────────────────────────────────────────────────────────────────────── */
.vui-btn-glow-violet {
    background: linear-gradient(135deg, #7c6ef5, #6366f1);
    color: #fff;
    border: 1px solid #8b5cf6;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(124, 110, 245, 0.45);
    transition: all 0.2s ease;
    font-family: inherit;
}
.vui-btn-glow-violet:hover {
    box-shadow: 0 0 28px rgba(124, 110, 245, 0.7);
    transform: translateY(-1px);
}

.vui-btn-glow-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: 1px solid #34d399;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
    transition: all 0.2s ease;
    font-family: inherit;
}
.vui-btn-glow-emerald:hover {
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.7);
    transform: translateY(-1px);
}

.vui-btn-glow-sunset {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    border: 1px solid #fb923c;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.45);
    transition: all 0.2s ease;
    font-family: inherit;
}
.vui-btn-glow-sunset:hover {
    box-shadow: 0 0 28px rgba(249, 115, 22, 0.7);
    transform: translateY(-1px);
}

.vui-btn-glow-cyan {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    border: 1px solid #38bdf8;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
    transition: all 0.2s ease;
    font-family: inherit;
}
.vui-btn-glow-cyan:hover {
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.7);
    transform: translateY(-1px);
}

.vui-btn-glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.vui-btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.vui-btn-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #282c3c;
    background: #141620;
    color: #fff;
    transition: all 0.15s ease;
    font-family: inherit;
}
.vui-btn-social:hover {
    background: #1b1e2c;
    border-color: #3b4056;
    transform: translateY(-1px);
}

.vui-btn-group {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--vui-border);
}
.vui-btn-group .vui-btn {
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--vui-border);
}
.vui-btn-group .vui-btn:last-child {
    border-right: none;
}

