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

:root {
    --bg-main: #06040a;
    --bg-surface: #0e0b16;
    --bg-surface-elevated: #161224;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-glow: rgba(139, 92, 246, 0.25);
    --secondary: #06b6d4;
    --secondary-light: #22d3ee;
    --secondary-glow: rgba(6, 182, 212, 0.25);
    --success: #10b981;
    --danger: #ef4444;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(14, 11, 22, 0.65);
    --glass-border: rgba(255, 255, 255, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

html, body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;
    max-width: 100vw;
    position: relative;
}

/* Background Glowing Blobs */
.bg-glow-1 {
    position: absolute;
    top: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
}

.bg-glow-2 {
    position: absolute;
    top: 400px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes scanLine {
    0% { top: 0%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
header.glass-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 4, 10, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.logo, .logo:visited, .logo:hover, .logo:active {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

/* Footer style matching screen */
footer.glass-footer {
    background: #06040a;
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: auto;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-input, .form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px !important;
    cursor: pointer;
}

.form-select option {
    background-color: var(--bg-surface-elevated);
    color: #fff;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E");
}

/* Split-Screen Auth Layout */
.auth-split-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: calc(100vh - 138px);
}

.auth-left-panel {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at 10% 40%, rgba(22, 18, 36, 0.4) 0%, rgba(6, 4, 10, 0) 60%);
    border-right: 1px solid var(--border-color);
}

.auth-right-panel {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width: 992px) {
    .auth-split-container {
        grid-template-columns: 1fr;
    }
    .auth-left-panel {
        display: none; /* Hide branding on mobile */
    }
    .auth-right-panel {
        padding: 24px;
    }
}

.badge-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.16);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Social Buttons */
.social-login-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

/* Hero Section */
.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
    padding: 80px 0;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.hero-title {
    font-size: 58px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* Visual Phone Simulator in Hero */
.simulator-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.phone-mockup {
    width: 280px;
    height: 520px;
    background: #000;
    border-radius: 40px;
    border: 10px solid #1a1a24;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 30px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a1a24;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #09070f;
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.phone-scanner-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--secondary), var(--secondary-light), var(--secondary), transparent);
    box-shadow: 0 0 10px var(--secondary-light);
    animation: scanLine 3s infinite linear;
    pointer-events: none;
    z-index: 5;
}

/* SVG Icon circles */
.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.glass-card:hover .icon-circle {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #fff;
    transform: scale(1.05);
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 138px);
}

.sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 32px 20px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-link.active, .sidebar-link:hover {
    background: var(--bg-surface-elevated);
    color: #fff;
}

.main-content {
    padding: 40px;
    overflow-y: auto;
}

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px 24px;
    }
    .sidebar-menu {
        flex-direction: row;
        justify-content: center;
    }
}

/* Metrics Cards */
.metric-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.metric-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-surface-elevated);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--primary);
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
}

/* Table Design */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 24px;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.premium-table th {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.premium-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 14px;
    vertical-align: middle;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-static {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-dynamic {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Modal styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 4, 8, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.modal-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 24px;
}

/* QR Code SVG Presentation */
.qr-preview-container {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qr-preview-container svg {
    width: 80px;
    height: 80px;
    display: block;
}

.qr-preview-large {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    display: inline-flex;
    margin: 16px auto;
}

.qr-preview-large svg {
    width: 200px;
    height: 200px;
}

/* Gateway redirect landing */
.gateway-redirect-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1b1335 0%, var(--bg-main) 100%);
    padding: 24px;
    text-align: center;
}

.pulse-loader {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    animation: pulseScale 2s infinite ease-in-out;
}

.pulse-loader::after {
    content: '';
    position: absolute;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border-radius: 50%;
    border: 1px dashed rgba(6, 182, 212, 0.3);
    animation: spin 8s linear infinite;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s linear infinite;
}

/* Premium Dashboard Redesign Styles */
.dashboard-layout-premium {
    min-height: 100dvh;
    background: #06040a;
    position: relative;
}

.main-content-column {
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.sidebar-premium {
    background: #0a0812;
    border-right: 1px solid var(--border-color);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    z-index: 10;
}

.sidebar-reference {
    margin-top: 50px;
}

.sidebar-reference > h2 {
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-type-row {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 11px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-type-row:first-of-type {
    margin-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-type-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.05);
}

.sidebar-type-icon.is-dynamic {
    border-color: rgba(139, 92, 246, 0.24);
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.07);
}

.sidebar-type-row h3 {
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
}

.sidebar-type-row p {
    max-width: 160px;
    color: var(--text-muted);
    font-size: 10.5px;
    line-height: 1.5;
    margin-top: 3px;
}

.sidebar-reference-tip {
    color: var(--text-muted);
    font-size: 10.5px;
    line-height: 1.55;
    margin-top: 17px;
}

.sidebar-print-note {
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    font-size: 10.5px;
    line-height: 1.55;
}

.top-bar-premium {
    background: #06040a;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-content-premium {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-height: calc(100vh - 78px - 62px); /* 100vh - top bar - footer */
}

.empty-state-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 64px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: border-color 0.3s ease;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.empty-state-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-column {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-column-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-dashboard-premium {
    background: #06040a;
    border-top: 1px solid var(--border-color);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Desktop Hidden Elements for Mobile Navigation */
.mobile-header-premium {
    display: none;
}

@media (max-width: 992px) {
    .main-content-column {
        margin-left: 0 !important;
    }
    .sidebar-premium {
        display: none !important; /* Hide sidebar completely on mobile */
    }
    .top-bar-premium {
        display: none !important; /* Hide topbar completely on mobile */
    }
    .footer-dashboard-premium {
        display: none !important; /* Hide footer on mobile */
    }
    .main-content-premium {
        padding: 24px 16px;
        gap: 20px;
    }
    .flex-mobile-col {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .flex-mobile-col > div > .btn {
        width: 100%;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
    }
    .hide-mobile {
        display: none !important;
    }

    /* Mobile Sticky Top Header */
    .mobile-header-premium {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        background: #09070f;
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .modal-content {
        padding: 24px 20px !important;
        max-width: 92vw !important;
        margin: auto;
    }
}

/* Validation Feedback Styles */
.invalid-feedback {
    color: #ef4444; /* Premium red error text */
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    display: block;
    animation: fadeIn 0.2s ease;
}

.form-input.is-invalid, .form-select.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Premium Custom Select Component */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.custom-select-trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    overflow: hidden;
}

.custom-select-wrapper.open .custom-select-options {
    display: block;
}

.custom-option {
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.custom-option.selected {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
    font-weight: 600;
}

/* Responsive Landing Page Overrides */
@media (max-width: 992px) {
    .nav-links {
        display: none !important; /* Hide header links on mobile to prevent overflow */
    }
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 40px 0 !important;
        gap: 32px !important;
    }
    .hero-title {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    .hero-subtitle {
        font-size: 14.5px !important;
        margin-bottom: 24px !important;
        line-height: 1.5 !important;
    }
    .hero-buttons {
        justify-content: center;
    }
    .sandbox-right-col {
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-left: 0 !important;
        padding-top: 24px !important;
        margin-top: 8px;
    }
    .simulator-wrapper {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    header.glass-nav .container {
        padding: 0 12px !important;
    }
    header.glass-nav nav {
        gap: 8px !important;
    }
    .container {
        padding: 0 16px !important;
    }
    .glass-card {
        padding: 24px 16px !important;
    }
    .footer-links {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 14px !important;
    }
    footer.glass-footer {
        text-align: center !important;
        padding: 32px 0 !important;
    }
    footer.glass-footer .container {
        flex-direction: column !important;
        gap: 24px !important;
        align-items: center !important;
    }
    .dashboard-header-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .welcome-title {
        font-size: 19px !important;
        line-height: 1.25 !important;
    }
    .welcome-subtitle {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    .dashboard-header-row .btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    .main-content-premium {
        gap: 16px !important;
    }
    .empty-state-card {
        padding: 32px 16px !important;
    }
    .metric-card {
        padding: 16px !important;
    }
}

.welcome-title {
    font-size: 28px;
}
.welcome-subtitle {
    font-size: 14px;
}
