@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

/* Glassmorphism & Cards */
.novex-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.novex-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.novex-glass {
    background: var(--bg-card-subtle);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
}

/* Header & Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.novex-metric {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.novex-metric-sm {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Buttons */
.btn-novex {
    background: var(--primary-gradient);
    color: #0A0D14;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    padding: 0.65rem 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn-novex:hover {
    color: #0A0D14;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
}

.btn-gold {
    background: linear-gradient(135deg, #FFE28A 0%, #D4AF37 50%, #996515 100%);
    color: #0A0D14 !important;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    padding: 0.65rem 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
    text-decoration: none;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #FFF0B8 0%, #E5C058 50%, #AA771C 100%);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
    transform: translateY(-1px);
    color: #0A0D14 !important;
}

.btn-gold-outline {
    background: transparent;
    color: #E5C058 !important;
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.6rem 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-gold-outline:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: #D4AF37;
    color: #FFFFFF !important;
}

.text-gold-gradient {
    background: linear-gradient(135deg, #FFF3D1 0%, #E5C058 45%, #AA771C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.14);
    color: #E5C058;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-novex-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.2rem;
    transition: var(--transition);
}

.btn-novex-secondary:hover {
    background: var(--border-subtle);
    color: var(--text-primary);
}

/* Badges */
.badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(22, 168, 121, 0.3);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-secondary {
    background: rgba(156, 163, 175, 0.12);
    color: var(--text-secondary);
    border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Inputs & Forms */
.form-control, .form-select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary-accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px var(--border-focus);
    outline: none;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

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

.sidebar {
    width: 270px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: var(--transition);
    z-index: 100;
}

.sidebar-brand {
    padding: 1.35rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-brand-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.28));
    flex-shrink: 0;
}

.sidebar-brand-logo.is-admin {
    height: 30px;
    max-width: 150px;
}

.brand-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-accent);
}

.sidebar-nav {
    padding: 0.5rem 1rem;
    flex: 1;
    overflow-y: auto;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.nav-link-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-link-custom.active {
    background: var(--primary-gradient);
    color: #0A0D14;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-navbar {
    height: 70px;
    background: var(--bg-card-subtle);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-body {
    padding: 2rem;
    flex: 1;
}

/* Empty States */
.empty-state {
    padding: 3.5rem 2rem;
    text-align: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    color: var(--text-muted);
}

.empty-state-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

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

/* Responsive Table */
.novex-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.novex-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.novex-table th:first-child {
    border-top-left-radius: var(--radius-md);
}

.novex-table th:last-child {
    border-top-right-radius: var(--radius-md);
}

.novex-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.novex-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Alerts & Toasts */
.alert-novex-success {
    background: var(--success-bg);
    border: 1px solid rgba(22, 168, 121, 0.4);
    color: var(--success);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.2rem;
}

.alert-novex-danger {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--danger);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.2rem;
}

/* Binary Tree Styles */
.binary-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: auto;
    padding: 2rem 1rem;
}

.tree-node-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    width: 170px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* Mobile Header Centered Company Logo (Banner Proportioned, Replaces Top Page Title Text on Mobile) */
.mobile-header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2;
    max-width: calc(100% - 165px);
}

.mobile-header-logo img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 100%;
    border-radius: 0;
    object-fit: contain;
    border: none;
    box-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.28));
    transition: transform 0.2s ease;
}

.mobile-header-logo:active img {
    transform: scale(0.96);
}

@media (min-width: 992px) {
    .mobile-header-logo {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
    }
    .sidebar.open {
        left: 0;
    }
    .top-navbar {
        padding: 0 1rem;
        height: 62px;
    }
    .top-navbar h5 {
        display: none !important;
    }
    .page-body {
        padding: 1rem;
        padding-bottom: 84px !important;
    }
    .mobile-bottom-nav {
        display: flex !important;
    }
}

/* Mobile-First Dedicated Floating Bottom Navigation (iOS Style) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(11, 14, 22, 0.94);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    display: none;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
    z-index: 1040;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #8C94A6;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    padding: 6px 0;
}

.mobile-nav-item i {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #E5C058;
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
    color: #E5C058;
}

.mobile-nav-center-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE28A 0%, #D4AF37 50%, #996515 100%);
    color: #0A0D14;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.5);
    margin-top: -24px;
    border: 3px solid #080A0E;
    transition: transform 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.mobile-nav-center-btn:active {
    transform: scale(0.92);
}

/* ========================================================
   UNIFIED AUTH SUITE (Reference Grid Glow + Obsidian Gold)
   ======================================================== */
.auth-page-bg {
    min-height: 100vh;
    background-color: #080A0E;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.14) 0%, rgba(8, 10, 14, 0) 55%),
        radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.06) 0%, rgba(8, 10, 14, 0) 45%);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #F9FAFB;
}

.auth-phone-container {
    width: 100%;
    max-width: 430px;
    background: #0D111A;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 28px;
    box-shadow: 
        0 28px 70px -12px rgba(0, 0, 0, 0.85),
        0 0 48px rgba(212, 175, 55, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 36px 32px 32px 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Subtle Top Grid Mesh & Radial Halo fading smoothly down the card (matches reference mockup) */
.auth-phone-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background-image:
        radial-gradient(ellipse 85% 70% at 50% -10%, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 80%),
        linear-gradient(to right, rgba(212, 175, 55, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212, 175, 55, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px, 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.auth-phone-container > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .auth-phone-container {
        border-radius: 24px;
        padding: 28px 22px 26px 22px;
    }
}

/* Minimal Back Button Row for secondary auth pages (no text pill) */
.auth-top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.auth-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #C2C8D6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.auth-nav-btn:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.4);
    color: #FFFFFF;
}

/* Centered Company Banner Logo Header at Top of Card */
.auth-company-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding-top: 6px;
}

.auth-company-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: 225px;
    border-radius: 0;
    object-fit: contain;
    border: none;
    box-shadow: none;
    filter: drop-shadow(0 6px 18px rgba(212, 175, 55, 0.28));
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-company-logo:hover {
    transform: translateY(-2px);
}

/* 3D Glowing Orb Visual */
.auth-orb-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-orb-halo {
    position: absolute;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0) 70%);
    filter: blur(14px);
    animation: orbPulse 3.5s ease-in-out infinite alternate;
}

.auth-orb-ring {
    position: absolute;
    width: 102px;
    height: 102px;
    border-radius: 50%;
    border: 1px dashed rgba(212, 175, 55, 0.35);
    animation: orbRotate 25s linear infinite;
}

.auth-orb-sphere {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #2A2315 0%, #151108 50%, #080A0E 100%);
    box-shadow: 
        0 0 28px rgba(212, 175, 55, 0.42),
        inset 0 0 16px rgba(212, 175, 55, 0.35),
        inset 1px 1px 2px rgba(255, 235, 170, 0.6);
    border: 1.5px solid rgba(212, 175, 55, 0.55);
    animation: orbFloat 4s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-orb-sphere img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes orbPulse {
    0% { transform: scale(0.92); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes orbRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes orbFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* Typography */
.auth-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: #8C94A6;
    line-height: 1.45;
    margin-bottom: 22px;
    text-align: center;
    padding: 0 10px;
}

/* Input Fields */
.auth-field {
    margin-bottom: 16px;
    text-align: left;
}

.auth-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: #C2C8D6;
    margin-bottom: 7px;
}

.auth-label .auth-req {
    color: #D4AF37;
    margin-left: 2px;
}

.auth-input-wrap {
    position: relative;
    width: 100%;
}

.auth-input {
    width: 100%;
    height: 48px;
    background: #121723;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 16px;
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: #555D70;
}

.auth-input:focus {
    outline: none;
    background: #151A26;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    color: #FFFFFF;
}

.auth-input.has-eye {
    padding-right: 48px;
}

.auth-eye-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6C7488;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.auth-eye-toggle:hover {
    color: #FFFFFF;
}

/* Form Helper Row */
.auth-helper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 22px;
    font-size: 0.82rem;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9CA3AF;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    accent-color: #D4AF37;
    cursor: pointer;
}

.auth-link {
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: #FFFFFF;
}

.auth-link-accent {
    color: #E5C058;
    font-weight: 600;
    text-decoration: none;
}

.auth-link-accent:hover {
    color: #FFE28A;
    text-decoration: underline;
}

.auth-forgot-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The Signature Gold Action Button */
.btn-auth-neon {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #FFE28A 0%, #D4AF37 52%, #996515 100%);
    color: #0A0D14 !important;
    border-radius: 12px;
    border: none;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-auth-neon:hover {
    background: linear-gradient(135deg, #FFF3D1 0%, #E5C058 52%, #AA771C 100%);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    color: #0A0D14 !important;
}

.btn-auth-neon:active {
    transform: scale(0.98);
}

.btn-auth-neon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #636B7C;
    font-size: 0.78rem;
    margin: 22px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Social Buttons */
.auth-social-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-auth-social {
    flex: 1;
    height: 46px;
    border-radius: 9999px;
    background: #121622;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #F1F3F7;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-auth-social:hover {
    background: #181E2E;
    border-color: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.btn-auth-social svg {
    width: 17px;
    height: 17px;
}

/* OTP Code Box */
.auth-otp-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 24px 0;
}

.auth-otp-box {
    width: 48px;
    height: 56px;
    border-radius: 14px;
    background: #121620;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #E5C058;
    transition: all 0.2s ease;
}

.auth-otp-box:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
    background: #161C2A;
}

/* Flash alerts in auth */
.auth-alert {
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 0.84rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

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

.auth-alert-success {
    background: rgba(22, 168, 121, 0.12);
    border: 1px solid rgba(22, 168, 121, 0.3);
    color: #6EE7B7;
}

/* Footer text */
.auth-footer {
    text-align: center;
    font-size: 0.84rem;
    color: #8C94A6;
    margin-top: 4px;
}

/* ========================================================
   SUPER UI: INTERACTIVE COMPONENTS & FINTECH ENHANCEMENTS
   ======================================================== */

/* 1. Market Ticker Ribbon (Live Market Pulse) */
.market-ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(11, 14, 22, 0.88);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    white-space: nowrap;
    padding: 8px 0;
    user-select: none;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.market-ticker-wrap::before,
.market-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.market-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(8, 10, 14, 0.95), transparent);
}

.market-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(8, 10, 14, 0.95), transparent);
}

.market-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    animation: tickerScroll 40s linear infinite;
}

.market-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticker-pill:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.ticker-dot.live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.ticker-sym {
    font-weight: 700;
    color: #E5C058;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}

.ticker-coin {
    color: #F1F3F7;
    font-weight: 600;
}

.ticker-price {
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.ticker-chg.up {
    color: #10B981;
    font-weight: 600;
}

.ticker-chg.down {
    color: #EF4444;
    font-weight: 600;
}

.ticker-chg.stable {
    color: #9CA3AF;
}

/* 2. Quick Actions Hub */
.quick-actions-bar {
    background: linear-gradient(135deg, rgba(17, 22, 34, 0.85) 0%, rgba(13, 17, 26, 0.92) 100%);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
}

.quick-act-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #C2C8D6;
    font-size: 0.74rem;
    font-weight: 600;
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-act-btn:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
}

.quick-act-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.quick-act-icon i {
    width: 18px;
    height: 18px;
}

.quick-act-icon.deposit {
    background: rgba(22, 168, 121, 0.15);
    border: 1px solid rgba(22, 168, 121, 0.4);
    color: #10B981;
}

.quick-act-icon.invest {
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #E5C058;
}

.quick-act-icon.withdraw {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #F59E0B;
}

.quick-act-icon.share {
    background: rgba(129, 140, 248, 0.15);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #A5B4FC;
}

.quick-act-btn:hover .quick-act-icon {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.quick-act-btn:active .quick-act-icon {
    transform: scale(0.92);
}

/* 3. Privacy Masking */
.balance-masked {
    letter-spacing: 0.18em !important;
    font-family: monospace;
    filter: blur(0px);
    transition: all 0.2s ease;
}

/* 4. Center Action Button Pulse Glow */
@keyframes centerBtnGlow {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45);
    }
    50% {
        box-shadow: 0 4px 28px rgba(212, 175, 55, 0.8);
    }
}

.mobile-nav-center-btn {
    animation: centerBtnGlow 3s ease-in-out infinite;
}

/* 5. Card Interactive Elevation */
.novex-card {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.novex-card:hover {
    border-color: rgba(212, 175, 55, 0.24);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

/* 6. Super UI Modals & Calculator */
.super-modal-content {
    background: #0E121B;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.12);
    color: #FFFFFF;
}

.super-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
}

.super-modal-body {
    padding: 24px;
}

.super-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
}

.gold-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    transition: background 0.2s;
}

.gold-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE28A 0%, #D4AF37 50%, #996515 100%);
    cursor: pointer;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.7);
    border: 2px solid #080A0E;
    transition: transform 0.15s ease;
}

.gold-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.preset-chip {
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #C2C8D6;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-chip:hover,
.preset-chip.active {
    background: rgba(212, 175, 55, 0.18);
    border-color: #D4AF37;
    color: #FFE28A;
}

.calc-tier-btn {
    flex: 1;
    padding: 12px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-tier-btn:hover,
.calc-tier-btn.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}

.calc-result-box {
    background: rgba(8, 10, 14, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.qr-display-box {
    background: #FFFFFF;
    padding: 16px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
}



