@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Sora:wght@400;600;700;800&display=swap');

:root {
    /* Brand Colors (Sovereign Electric Indigo & Tech Aurora) */
    --w-brand: #4f46e5;
    --w-brand-hover: #4338ca;
    --w-brand-light: #eef2ff;
    --w-brand-glow: rgba(79, 70, 229, 0.18);
    
    /* Neutral / Light Palette */
    --w-bg: #f8fafc;
    --w-surface: #ffffff;
    --w-surface-alt: #f1f5f9;
    --w-text: #0f172a;
    --w-text-muted: #64748b;
    --w-border-subtle: #e2e8f0;
    --w-border-accent: rgba(79, 70, 229, 0.28);
    
    /* Accents */
    --w-accent: #d97706;
    --w-accent-hover: #b45309;
    --w-accent-light: #fef3c7;
    --w-gold: #d97706;
    --w-rose: #e11d48;
    --w-emerald: #059669;
    
    /* Typography Tokens */
    --w-font-display: 'Sora', sans-serif;
    --w-font-body: 'Outfit', sans-serif;
    --w-font-mono: 'JetBrains Mono', monospace;
    
    /* Radius & Spacing */
    --w-radius-sm: 8px;
    --w-radius-md: 16px;
    --w-radius-lg: 24px;
    --w-radius-xl: 32px;
    --w-radius-full: 9999px;
    
    /* Shadows & Effects */
    --w-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --w-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --w-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.04), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --w-shadow-glow: 0 0 25px -5px var(--w-brand-glow);
    --w-glass-bg: rgba(255, 255, 255, 0.75);
    --w-glass-border: rgba(255, 255, 255, 0.6);
    --w-blur: 16px;
}

/* ========================================================
   WIRA UI THEME ARCHETYPES ENGINE
   Dynamic color palettes & psychological industry presets
   ======================================================== */

/* 1. Eco / Zoo / Agro / Alam */
[data-wira-theme="nature"] {
    --w-brand: #059669;
    --w-brand-hover: #047857;
    --w-brand-light: #d1fae5;
    --w-brand-glow: rgba(5, 150, 105, 0.18);
    --w-accent: #d97706;
    --w-accent-hover: #b45309;
    --w-accent-light: #fef3c7;
    --w-surface-alt: #f0fdf4;
    --w-border-accent: rgba(5, 150, 105, 0.28);
    --w-font-display: 'Sora', sans-serif;
    --w-font-body: 'Outfit', sans-serif;
}

/* 2. Fintech / Invois / Bisnes / B2B */
[data-wira-theme="fintech"] {
    --w-brand: #2563eb;
    --w-brand-hover: #1d4ed8;
    --w-brand-light: #dbeafe;
    --w-brand-glow: rgba(37, 99, 235, 0.18);
    --w-accent: #10b981;
    --w-accent-hover: #059669;
    --w-accent-light: #d1fae5;
    --w-surface-alt: #f8fafc;
    --w-border-accent: rgba(37, 99, 235, 0.28);
    --w-font-display: 'Inter', sans-serif;
    --w-font-body: 'Inter', sans-serif;
}

/* 3. F&B / Kafe / Kedai Makan / Restoran */
[data-wira-theme="cafe"] {
    --w-brand: #ea580c;
    --w-brand-hover: #c2410c;
    --w-brand-light: #ffedd5;
    --w-brand-glow: rgba(234, 88, 12, 0.18);
    --w-accent: #f59e0b;
    --w-accent-hover: #d97706;
    --w-accent-light: #fef3c7;
    --w-surface-alt: #fff7ed;
    --w-border-accent: rgba(234, 88, 12, 0.28);
    --w-font-display: 'Plus Jakarta Sans', sans-serif;
    --w-font-body: 'Plus Jakarta Sans', sans-serif;
}

/* 4. Klinik / Farmasi / Kesihatan / Medikal */
[data-wira-theme="health"] {
    --w-brand: #0d9488;
    --w-brand-hover: #0f766e;
    --w-brand-light: #ccfbf1;
    --w-brand-glow: rgba(13, 148, 136, 0.18);
    --w-accent: #0284c7;
    --w-accent-hover: #0369a1;
    --w-accent-light: #e0f2fe;
    --w-surface-alt: #f0fdfa;
    --w-border-accent: rgba(13, 148, 136, 0.28);
    --w-font-display: 'Plus Jakarta Sans', sans-serif;
    --w-font-body: 'Plus Jakarta Sans', sans-serif;
}

/* 5. Luxury / Hartanah / Hotel / Butik */
[data-wira-theme="luxury"] {
    --w-brand: #b45309;
    --w-brand-hover: #92400e;
    --w-brand-light: #fef3c7;
    --w-brand-glow: rgba(180, 83, 9, 0.18);
    --w-accent: #78350f;
    --w-accent-hover: #451a03;
    --w-accent-light: #fae8ff;
    --w-surface-alt: #fffbeb;
    --w-border-accent: rgba(180, 83, 9, 0.28);
    --w-font-display: 'Cinzel', serif;
    --w-font-body: 'Outfit', sans-serif;
}

/* 6. Sovereign Tech Studio (Default Electric Indigo) */
[data-wira-theme="default"],
[data-wira-theme="corporate"] {
    --w-brand: #4f46e5;
    --w-brand-hover: #4338ca;
    --w-brand-light: #eef2ff;
    --w-brand-glow: rgba(79, 70, 229, 0.18);
    --w-accent: #0d9488;
    --w-accent-hover: #0f766e;
    --w-accent-light: #ccfbf1;
    --w-surface-alt: #f8fafc;
    --w-border-accent: rgba(79, 70, 229, 0.28);
    --w-font-display: 'Sora', sans-serif;
    --w-font-body: 'Outfit', sans-serif;
}

/* 7. Wira Fitrah Archetypes */
[data-wira-theme="fitrah"] {
    --w-brand: #047857;
    --w-brand-hover: #065f46;
    --w-brand-light: #d1fae5;
    --w-brand-glow: rgba(4, 120, 87, 0.2);
    --w-accent: #d97706;
    --w-accent-hover: #b45309;
    --w-accent-light: #fef3c7;
    --w-bg: #f8fafc;
    --w-surface: #ffffff;
    --w-surface-alt: #f1f5f9;
    --w-text: #0f172a;
    --w-text-muted: #64748b;
    --w-border-subtle: #e2e8f0;
    --w-font-display: 'Plus Jakarta Sans', sans-serif;
    --w-font-body: 'Plus Jakarta Sans', sans-serif;
}

[data-wira-theme="midnight"] {
    --w-brand: #10b981;
    --w-brand-hover: #059669;
    --w-brand-light: #064e3b;
    --w-brand-glow: rgba(16, 185, 129, 0.25);
    --w-accent: #f59e0b;
    --w-accent-hover: #d97706;
    --w-accent-light: #78350f;
    --w-bg: #090d16;
    --w-surface: #111827;
    --w-surface-alt: #1f2937;
    --w-text: #f8fafc;
    --w-text-muted: #94a3b8;
    --w-border-subtle: #1f2937;
    --w-font-display: 'Plus Jakarta Sans', sans-serif;
    --w-font-body: 'Plus Jakarta Sans', sans-serif;
}

[data-wira-theme="ivory"] {
    --w-brand: #047857;
    --w-brand-hover: #064e3b;
    --w-brand-light: #d1fae5;
    --w-brand-glow: rgba(4, 120, 87, 0.2);
    --w-accent: #b45309;
    --w-accent-hover: #78350f;
    --w-accent-light: #fef3c7;
    --w-bg: #faf7f2;
    --w-surface: #ffffff;
    --w-surface-alt: #f5efe6;
    --w-text: #1c1917;
    --w-text-muted: #78716c;
    --w-border-subtle: #ede6dd;
    --w-font-display: 'Plus Jakarta Sans', sans-serif;
    --w-font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--w-font-body, 'Outfit', sans-serif);
    background-color: var(--w-bg);
    color: var(--w-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--w-font-display, 'Sora', sans-serif);
    font-weight: 700;
}

/* Core Utilities */
.w-flex { display: flex; }
.w-grid { display: grid; }
.w-items-center { align-items: center; }
.w-justify-center { justify-content: center; }
.w-gap-4 { gap: 1rem; }
.w-gap-6 { gap: 1.5rem; }
.w-gap-8 { gap: 2rem; }
.w-p-6 { padding: 1.5rem; }
.w-p-8 { padding: 2rem; }

/* Premium Glassmorphism */
.w-glass {
    background: var(--w-glass-bg);
    backdrop-filter: blur(var(--w-blur));
    -webkit-backdrop-filter: blur(var(--w-blur));
    border: 1px solid var(--w-glass-border);
    border-radius: var(--w-radius-lg);
}

.w-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(var(--w-blur));
    border: 1px solid var(--w-glass-border);
    box-shadow: var(--w-shadow-lg);
}

/* Bento Grid System */
.w-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.5rem;
}

.w-col-span-2 { grid-column: span 2; }
.w-row-span-2 { grid-row: span 2; }

/* Buttons */
.w-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--w-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Sora', sans-serif;
}

.w-btn-primary {
    background: var(--w-brand);
    color: white;
}

.w-btn-primary:hover {
    background: var(--w-brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.4);
}

/* Button Sizes */
.w-btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: var(--w-radius-lg);
}

.w-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--w-radius-sm);
}

/* Button Groups */
.w-btn-group {
    display: inline-flex;
    border-radius: var(--w-radius-md);
    overflow: hidden;
    border: 1px solid var(--w-glass-border);
    box-shadow: var(--w-shadow);
}

.w-btn-group .w-btn {
    border-radius: 0;
    border-right: 1px solid var(--w-glass-border);
}

.w-btn-group .w-btn:last-child {
    border-right: none;
}

/* Social Buttons */
.w-btn-social {
    background: var(--w-surface);
    color: var(--w-text);
    border: 1px solid var(--w-glass-border);
    box-shadow: var(--w-shadow-sm);
}

.w-btn-social:hover {
    background: var(--w-surface-alt);
    transform: translateY(-1px);
}

.w-btn-dark {
    background: var(--w-text);
    color: white;
}

.w-btn-dark:hover {
    background: #000;
    box-shadow: var(--w-shadow-lg);
}

/* Floating Action Button (FAB) */
.w-btn-fab {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border-radius: var(--w-radius-full);
    justify-content: center;
    box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.4);
}

.w-btn-fab-dark {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border-radius: var(--w-radius-md);
    justify-content: center;
    background: var(--w-text);
    color: white;
}

.w-btn-fab:hover, .w-btn-fab-dark:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Typography Utilities */
.w-text-brand { color: var(--w-brand); }
.w-text-muted { color: var(--w-text-muted); }
.w-text-gradient {
    background: linear-gradient(to right, var(--w-brand-light), var(--w-brand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation - Floating Island */
.w-nav-island {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1400px;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.w-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.w-nav-link {
    text-decoration: none;
    color: var(--w-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.w-nav-link:hover {
    color: var(--w-brand);
}

/* Component: Bento Stats */
.w-bento-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.w-bento-stat .value {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Sora', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Forms & Inputs */
.w-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.w-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--w-surface-alt);
    border: 1px solid var(--w-glass-border);
    border-radius: var(--w-radius-md);
    color: var(--w-text);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.w-input:focus {
    background: var(--w-surface);
    border-color: var(--w-brand);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.w-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--w-text-muted);
    font-family: 'Sora', sans-serif;
}

/* Custom Checkbox */
.w-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.w-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--w-brand);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.w-checkbox.checked {
    background: var(--w-brand);
}

.w-checkbox i {
    color: white;
    width: 14px;
    height: 14px;
    display: none;
}

.w-checkbox.checked i {
    display: block;
}

/* Layout System */
.w-container {
    max-width: 100%; /* True fluid full-width */
    margin: 0;
    padding: 0 4rem;
}

.w-app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.w-main-content {
    display: flex;
    gap: 3rem;
    padding-top: 8rem; /* Increased for navbar clearance */
    padding-bottom: 6rem;
    flex-grow: 1;
}

/* Sidebar Navigation */
.w-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.w-sidebar-sticky {
    position: sticky;
    top: 6rem;
}

.w-sidebar-section {
    margin-bottom: 2.5rem;
}

.w-sidebar-title {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--w-text-muted);
    margin-bottom: 1rem;
    font-family: 'Sora', sans-serif;
}

.w-sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.w-sidebar-link {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: var(--w-radius-md);
    color: var(--w-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.w-sidebar-link:hover {
    background: var(--w-surface-alt);
    color: var(--w-brand);
}

.w-sidebar-link.active {
    background: var(--w-surface-alt);
    color: var(--w-brand);
    font-weight: 700;
    border-right: 3px solid var(--w-brand);
}

/* Main Area */
.w-content-area {
    flex-grow: 1;
    min-width: 0;
}

/* Footer */
.w-footer {
    background: var(--w-surface-alt);
    border-top: 1px solid var(--w-glass-border);
    padding: 3rem 0;
    text-align: center;
    color: var(--w-text-muted);
    font-size: 0.85rem;
}

/* Component: Badges */
.w-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--w-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.w-badge-primary {
    background: rgba(2, 132, 199, 0.1);
    color: var(--w-brand);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.w-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--w-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.w-badge-warning {
    background: rgba(217, 119, 6, 0.1);
    color: var(--w-gold);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.w-badge-danger {
    background: rgba(225, 29, 72, 0.1);
    color: var(--w-rose);
    border: 1px solid rgba(225, 29, 72, 0.2);
}

/* ==========================================================================
   WIRA.UI EXTENSIONS — TABLES, BACKGROUND CANVAS, MODALS & TABS
   ========================================================================== */

/* Ambient Sovereign Background */
.w-vision-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.w-vision-grid {
    position: absolute;
    inset: 0;
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
}

.w-vision-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 8%, rgba(2, 132, 199, 0.09) 0%, rgba(248, 250, 252, 0.96) 65%);
}

/* Data Tables */
.w-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--w-radius-md);
    background: var(--w-surface);
    border: 1px solid var(--w-glass-border);
}

.w-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.w-table th {
    padding: 0.85rem 1.25rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--w-text-muted);
    background: var(--w-surface-alt);
    border-bottom: 1px solid var(--w-glass-border);
    white-space: nowrap;
}

.w-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--w-surface-alt);
    color: var(--w-text);
    vertical-align: middle;
}

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

.w-table tr:hover td {
    background: rgba(2, 132, 199, 0.02);
}

/* Tab Panes */
.w-tab-pane {
    display: none;
    animation: wFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.w-tab-pane.active {
    display: block;
}

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

/* Modal System */
.w-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.w-modal-backdrop.active {
    display: flex;
}

.w-modal-card {
    background: var(--w-surface);
    border: 1px solid var(--w-glass-border);
    border-radius: var(--w-radius-xl);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    max-width: 540px;
    width: 100%;
    overflow: hidden;
    animation: wModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wModalIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.w-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--w-surface-alt);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w-modal-body {
    padding: 2rem;
}

.w-modal-footer {
    padding: 1.25rem 2rem;
    background: var(--w-surface-alt);
    border-top: 1px solid var(--w-glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Toast Notification */
.w-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--w-text);
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: var(--w-radius-md);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 3000;
    animation: wToastSlide 0.25s ease-out;
}

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

/* ========================================================
   TELEMETRY DEV-BAR (MINI PROFILER)
   ======================================================== */
.w-devbar {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    font-family: var(--w-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.76rem;
    color: #1e293b;
    pointer-events: auto;
    animation: wDevbarSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wDevbarSlideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.w-devbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 9999px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}

.w-devbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    white-space: nowrap;
}

.w-devbar-val {
    color: #0f172a;
}

.w-devbar-gard .w-devbar-val {
    color: #059669;
}

.w-devbar-sep {
    width: 1px;
    height: 14px;
    background: #cbd5e1;
}

.w-devbar-theme-selector {
    position: relative;
}

.w-devbar-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    background: var(--w-surface-alt, #f1f5f9);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--w-brand, #0284c7);
    cursor: pointer;
    transition: all 0.18s ease;
}

.w-devbar-theme-btn:hover {
    background: #e2e8f0;
}

.w-devbar-theme-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 30px -8px rgba(15, 23, 42, 0.2);
    padding: 0.5rem;
    min-width: 250px;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 10000;
}

.w-devbar-theme-dropdown.active {
    display: flex;
}

.w-devbar-dropdown-header {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 0.35rem 0.6rem;
    letter-spacing: 0.05em;
    font-family: var(--w-font-display, 'Sora', sans-serif);
}

.w-theme-opt {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.45rem 0.65rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--w-font-body, 'Outfit', sans-serif);
    font-size: 0.78rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.w-theme-opt:hover {
    background: #f1f5f9;
}

.w-theme-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.w-devbar-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0 0.2rem;
    transition: color 0.15s ease;
}

.w-devbar-close:hover {
    color: #ef4444;
}

/* ========================================================
   SLIDE-OVER DRAWER (OFF-CANVAS)
   ======================================================== */
.w-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.w-drawer-backdrop.active {
    display: block;
    opacity: 1;
}

.w-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: var(--w-surface, #ffffff);
    box-shadow: -15px 0 35px -5px rgba(15, 23, 42, 0.18);
    z-index: 2600;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.w-drawer.active {
    transform: translateX(0);
}

.w-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--w-surface-alt, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w-drawer-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.w-drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--w-surface-alt, #f1f5f9);
    background: var(--w-surface-alt, #f8fafc);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ========================================================
   WIRA TOAST NOTIFICATION CONTAINER & CARDS
   ======================================================== */
.w-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    top: auto;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    pointer-events: none;
    max-width: 380px;
    width: 100%;
}

.w-toast-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--w-brand, #0284c7);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.14), 0 6px 10px -4px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    animation: wToastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.25s ease;
}

.w-toast-card.success { border-left-color: #059669; }
.w-toast-card.error { border-left-color: #ef4444; }
.w-toast-card.warning { border-left-color: #f59e0b; }
.w-toast-card.info { border-left-color: var(--w-brand, #0284c7); }

@keyframes wToastSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.w-toast-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-weight: 800;
}

.w-toast-card.success .w-toast-icon { color: #059669; }
.w-toast-card.error .w-toast-icon { color: #ef4444; }
.w-toast-card.warning .w-toast-icon { color: #f59e0b; }
.w-toast-card.info .w-toast-icon { color: var(--w-brand, #0284c7); }

.w-toast-content {
    flex: 1;
}

.w-toast-title {
    font-family: var(--w-font-display, 'Sora', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.w-toast-msg {
    font-family: var(--w-font-body, 'Outfit', sans-serif);
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.4;
}

.w-toast-dismiss {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.2rem;
}

.w-toast-dismiss:hover {
    color: #0f172a;
}

/* ========================================================
   PRINT-READY STYLES (@media print Ready)
   ======================================================== */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt !important;
    }

    .no-print,
    [data-wira-no-print],
    .w-devbar,
    .w-nav,
    .w-footer,
    .w-toast-container,
    .w-modal-backdrop,
    .w-drawer-backdrop,
    button:not(.print-only),
    nav {
        display: none !important;
    }

    .w-ticket-pass,
    .w-print-card,
    .w-receipt-card {
        box-shadow: none !important;
        border: 2px dashed #334155 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #000000 !important;
        width: 100% !important;
        max-width: 650px !important;
        margin: 0 auto !important;
        page-break-inside: avoid !important;
        padding: 1.5rem !important;
    }

    a {
        text-decoration: none !important;
        color: #000000 !important;
    }
}


