/* ==========================================================================
   ALEX BRIGHT - ENTERPRISE SOFTWARE & AUTOMATION TOOLS THEME
   Thương hiệu: ALEX BRIGHT | Tác giả: Dev Nhật Minh Dương (alexbright.site)
   Style: Modern, Cute & Logic (Plus Jakarta Sans + JetBrains Mono)
   Multi-Theme Engine: Dark Slate / Clean Light / Cute Pastel Mode
   ========================================================================== */

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

/* ==========================================================================
   THEME VARIABLES
   ========================================================================== */
:root, [data-theme="dark"] {
    --bg-main: #0b0f19;
    --bg-surface: #0e1424;
    --bg-card: #12182b;
    --bg-card-hover: #172138;
    --header-bg: rgba(11, 15, 25, 0.92);
    --footer-bg: #070912;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.35);
    
    --indigo: #6366f1;
    --indigo-light: #818cf8;
    --indigo-dark: #3730a3;
    
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    
    --cyan: #00f2fe;
    --cyan-light: #38bdf8;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0284c7;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-dropdown: 0 18px 45px rgba(0, 0, 0, 0.75);

    --cursor-dot: #00f2fe;
    --cursor-glow: rgba(0, 242, 254, 0.35);
}

/* SÁNG HIỆN ĐẠI (LIGHT MODE) */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --header-bg: rgba(255, 255, 255, 0.94);
    --footer-bg: #e2e8f0;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(99, 102, 241, 0.45);
    
    --indigo: #4f46e5;
    --indigo-light: #6366f1;
    --indigo-dark: #3730a3;
    
    --purple: #7c3aed;
    --purple-light: #8b5cf6;
    
    --cyan: #0284c7;
    --cyan-light: #0ea5e9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-dropdown: 0 18px 45px rgba(15, 23, 42, 0.15);

    --cursor-dot: #4f46e5;
    --cursor-glow: rgba(79, 70, 229, 0.35);
}

/* DỄ THƯƠNG PASTEL (CUTE MODE) */
[data-theme="cute"] {
    --bg-main: #fff5f7;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #fff0f5;
    --header-bg: rgba(255, 245, 247, 0.95);
    --footer-bg: #ffe4e9;
    
    --border-color: rgba(244, 114, 182, 0.22);
    --border-hover: rgba(236, 72, 153, 0.55);
    
    --indigo: #ec4899;
    --indigo-light: #f472b6;
    --indigo-dark: #be185d;
    
    --purple: #d946ef;
    --purple-light: #e879f9;
    
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    
    --text-primary: #3b0724;
    --text-secondary: #702e59;
    --text-muted: #9d4edd;
    
    --shadow-card: 0 10px 30px rgba(236, 72, 153, 0.08);
    --shadow-dropdown: 0 18px 45px rgba(236, 72, 153, 0.2);

    --cursor-dot: #ec4899;
    --cursor-glow: rgba(236, 72, 153, 0.4);
}

/* ==========================================================================
   BẢO VỆ ĐỘ TƯƠNG PHẢN & MÀU CHỮ TRÊN GIAO DIỆN SÁNG VÀ DỄ THƯƠNG
   Chống triệt để hiện tượng chữ trắng trên nền trắng/hồng
   ========================================================================== */
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, 
[data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] h6,
[data-theme="cute"] h1, [data-theme="cute"] h2, [data-theme="cute"] h3, 
[data-theme="cute"] h4, [data-theme="cute"] h5, [data-theme="cute"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="light"] a[style*="color: #fff"], [data-theme="light"] a[style*="color: #ffffff"],
[data-theme="cute"] a[style*="color: #fff"], [data-theme="cute"] a[style*="color: #ffffff"],
[data-theme="light"] span[style*="color: #fff"], [data-theme="light"] span[style*="color: #ffffff"],
[data-theme="cute"] span[style*="color: #fff"], [data-theme="cute"] span[style*="color: #ffffff"],
[data-theme="light"] div[style*="color: #fff"], [data-theme="light"] div[style*="color: #ffffff"],
[data-theme="cute"] div[style*="color: #fff"], [data-theme="cute"] div[style*="color: #ffffff"],
[data-theme="light"] p[style*="color: #fff"], [data-theme="light"] p[style*="color: #ffffff"],
[data-theme="cute"] p[style*="color: #fff"], [data-theme="cute"] p[style*="color: #ffffff"] {
    color: var(--text-primary) !important;
}

/* Các nút có nền màu gradient giữ nguyên màu chữ trắng sắc nét */
.btn-primary, .btn-primary *,
.btn-success, .btn-success *,
.btn-danger, .btn-danger *,
.floating-support-btn, .floating-support-btn *,
.nav-link.active, .nav-link.active * {
    color: #ffffff !important;
}

/* Đồng bộ màu nền thẻ Card và khung phụ trên giao diện sáng */
[data-theme="light"] .card, [data-theme="cute"] .card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary);
}

[data-theme="light"] [style*="background: #0c101c"], [data-theme="cute"] [style*="background: #0c101c"],
[data-theme="light"] [style*="background: #080a14"], [data-theme="cute"] [style*="background: #080a14"],
[data-theme="light"] [style*="background: #070910"], [data-theme="cute"] [style*="background: #070910"],
[data-theme="light"] [style*="background: #0b0e1a"], [data-theme="cute"] [style*="background: #0b0e1a"],
[data-theme="light"] [style*="background: rgba(14, 16, 26, 0.95)"], [data-theme="cute"] [style*="background: rgba(14, 16, 26, 0.95)"] {
    background: var(--bg-surface) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .form-control, [data-theme="cute"] .form-control {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .profile-dropdown-menu, [data-theme="cute"] .profile-dropdown-menu {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .profile-dropdown-menu .dropdown-user-name,
[data-theme="cute"] .profile-dropdown-menu .dropdown-user-name,
[data-theme="light"] .profile-dropdown-menu .dropdown-keytool-header,
[data-theme="cute"] .profile-dropdown-menu .dropdown-keytool-header {
    color: var(--text-primary) !important;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

code, kbd, samp, pre {
    font-family: 'JetBrains Mono', monospace;
}

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.brand-logo:hover img {
    transform: scale(1.05) rotate(-3deg);
    border-color: var(--indigo);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.nav-link i {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.nav-link:hover i {
    color: var(--indigo);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--indigo), var(--purple));
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.nav-link.active i {
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   THEME SWITCHER PILL & SNOW TOGGLE BUTTON
   ========================================================================== */
.theme-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-switcher-pill {
    display: flex;
    align-items: center;
    background: rgba(125, 125, 125, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.theme-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-btn:hover {
    color: var(--text-primary);
    transform: scale(1.15);
}

.theme-btn.active {
    background: var(--bg-card);
    color: var(--indigo);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: scale(1.08);
}

.snow-toggle-btn {
    background: rgba(125, 125, 125, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--cyan);
    font-size: 0.95rem;
    transition: var(--transition);
}

.snow-toggle-btn:hover {
    transform: rotate(45deg) scale(1.1);
    background: rgba(0, 242, 254, 0.15);
}

.snow-toggle-btn.off {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ==========================================================================
   USER PROFILE DROPDOWN
   ========================================================================== */
.user-profile-dropdown {
    position: relative;
}

.profile-trigger-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 8px;
    background: rgba(125, 125, 125, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}

.profile-trigger-btn:hover,
.user-profile-dropdown.open .profile-trigger-btn {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.profile-trigger-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.profile-trigger-name {
    font-size: 0.88rem;
    font-weight: 700;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-trigger-chevron {
    font-size: 0.68rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-profile-dropdown.open .profile-trigger-chevron {
    transform: rotate(180deg);
}

/* MENU DROPDOWN NỘI DUNG */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 330px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    padding: 14px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1050;
    animation: fadeInDropdown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-profile-dropdown.open .profile-dropdown-menu {
    display: flex;
}

.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.dropdown-user-meta {
    overflow: hidden;
}

.dropdown-user-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-role {
    font-size: 0.74rem;
    color: var(--indigo);
    font-weight: 700;
    margin-top: 2px;
}

.dropdown-wallet-box {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-wallet-info .label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-wallet-info .balance {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--cyan);
    line-height: 1.2;
    margin-top: 2px;
}

.dropdown-keytool-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 6px;
}

.dropdown-keytool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dropdown-keytool-sub {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(125, 125, 125, 0.08);
    transform: translateX(4px);
}

.dropdown-item:hover i {
    color: var(--indigo);
}

.dropdown-item.highlight {
    color: var(--cyan);
    font-weight: 700;
}

.dropdown-item.highlight i {
    color: var(--cyan);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 1px solid transparent;
    outline: none;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--indigo), var(--purple));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(125, 125, 125, 0.08);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(125, 125, 125, 0.16);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
    color: #ffffff;
}

.btn-cyan {
    background: rgba(0, 242, 254, 0.15);
    color: var(--cyan);
    border-color: rgba(0, 242, 254, 0.35);
}

.btn-cyan:hover {
    background: var(--cyan);
    color: #000000;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
}

.btn-lg {
    padding: 13px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

/* ==========================================================================
   ALERTS & FEEDBACK
   ========================================================================== */
.alert {
    padding: 13px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
}

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

.table th, .table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: rgba(125, 125, 125, 0.05);
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
}

.table tr:hover td {
    background: rgba(125, 125, 125, 0.04);
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f59e0b;
}

.badge-approved, .badge-success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.badge-rejected, .badge-danger {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.badge-cyan {
    background: rgba(0, 242, 254, 0.14);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: var(--cyan);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: var(--purple);
}

.badge-secondary {
    background: rgba(125, 125, 125, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 24px;
    margin-top: auto;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   CUTE INTERACTIVE SPARKLE CURSOR
   ========================================================================== */
#cute-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    background: var(--cursor-dot);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.3s, transform 0.15s;
    box-shadow: 0 0 12px var(--cursor-dot);
}
#cute-cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 38px; height: 38px;
    border: 2px solid var(--cursor-glow);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, border-color 0.3s, background-color 0.3s;
    box-shadow: 0 0 16px var(--cursor-glow);
}
.cursor-hover #cute-cursor {
    width: 16px; height: 16px;
    transform: translate(-50%, -50%) scale(1.2);
}
.cursor-hover #cute-cursor-trail {
    width: 52px; height: 52px;
    border-color: var(--cursor-dot);
    background: rgba(99, 102, 241, 0.08);
}

/* ==========================================================================
   FALLING SNOW CANVAS
   ========================================================================== */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99997;
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

/* ==========================================================================
   FLOATING SUPPORT WIDGET & LIVE CHAT POPUP
   ========================================================================== */
.floating-support-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 12px 22px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-support-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.6);
    color: #ffffff;
}
.floating-support-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: support-pulse 1.8s infinite;
}
@keyframes support-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Floating Modal Box */
.support-modal-box {
    display: none;
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    z-index: 99995;
    flex-direction: column;
    overflow: hidden;
    animation: support-slide-up 0.25s ease-out;
}
.support-modal-box.open {
    display: flex;
}
@keyframes support-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.support-modal-header {
    background: var(--bg-surface);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.support-tabs {
    display: flex;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}
.support-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 11px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
}
.support-tab-btn.active {
    color: var(--indigo);
    border-bottom-color: var(--indigo);
    background: rgba(99, 102, 241, 0.08);
}
.support-tab-content {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px;
}
.support-tab-content.active {
    display: flex;
}
