/* ==========================================================================
   ALPHATRAP NEXUS - PRO TRADING TERMINAL OBSIDIAN DARK THEME
   Theme: Obsidian Dark, Cyber Gold, Neon Emerald & Crimson Accents
   ========================================================================== */

:root {
    /* Primary Dark Palette */
    --bg-base: #080b11;
    --bg-surface: #0e131d;
    --bg-card: rgba(15, 20, 31, 0.88);
    --bg-card-hover: rgba(22, 30, 46, 0.95);
    --bg-elevated: #111724;
    --bg-input: #090c13;
    
    /* Borders & Dividers */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(212, 163, 89, 0.22);
    --border-focus: #d4a359;

    /* Text & Typography */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-sub: #64748b;
    --text-inverse: #080b11;

    /* Bronze & Amber Gold Accents */
    --accent-bronze: #d4a359;
    --accent-gold: #f59e0b;
    --accent-amber: #fbbf24;
    --accent-glow: rgba(212, 163, 89, 0.22);

    /* Signal Colors */
    --green-profit: #10b981;
    --green-bg: rgba(16, 185, 129, 0.15);
    --green-border: rgba(16, 185, 129, 0.35);

    --red-loss: #f43f5e;
    --red-bg: rgba(244, 63, 94, 0.15);
    --red-border: rgba(244, 63, 94, 0.35);

    --blue-info: #38bdf8;
    --blue-bg: rgba(56, 189, 248, 0.15);

    /* Shadows & Glassmorphism */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.60);
    --glass-blur: blur(12px);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 15% 15%, rgba(212, 163, 89, 0.08) 0px, transparent 50%),
        radial-gradient(at 85% 85%, rgba(14, 165, 233, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Monospace for numbers */
.num, .pnl-val, td, strong, .mono {
    font-family: 'JetBrains Mono', monospace;
}

/* App Container */
.app-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 20px 24px 20px;
    max-width: 1720px;
    margin: 0 auto;
}

/* ==========================================================================
   1. TOP NAVIGATION & STATUS BAR
   ========================================================================== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: var(--shadow-sm);
}

/* Brand Group */
.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #d4a359 0%, #8c531b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(212, 163, 89, 0.35);
}

.crown-icon {
    font-size: 22px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.brand-badge {
    background: #d4a359;
    color: #0b0e14;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Status Summary Pills */
.status-summary-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.metric-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
}

.pill-label {
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green {
    background-color: var(--green-profit);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.status-dot.amber {
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.status-dot.red {
    background-color: var(--red-loss);
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.8);
}

.pnl-pill strong {
    font-weight: 700;
    font-size: 13px;
}

.live-pnl-pill {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mode Switcher */
.mode-toggle-group {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    padding: 3px;
    border-radius: 10px;
}

.mode-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: #1e293b;
    color: #f8fafc;
    box-shadow: var(--shadow-sm);
}

#modeRealBtn.active {
    background: linear-gradient(135deg, #d4a359 0%, #b8863b 100%);
    color: #0b0e14;
}

/* Master Trading Switch */
.trading-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-card);
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.switch-label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.switch-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.switch-sub {
    font-size: 13px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.switch-sub.text-off { color: #64748b; }
.switch-sub.text-on { color: var(--green-profit); }

/* Toggle Switch Slider */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #273142;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #f8fafc;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

input:checked + .slider {
    background-color: var(--green-profit);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* ==========================================================================
   2. QUICK STRATEGY PARAMETERS TOOLBAR
   ========================================================================== */
.toolbar-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
}

.toolbar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) auto;
    align-items: center;
    gap: 14px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tool-item label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1.5px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0 8px;
    height: 38px;
    transition: border-color 0.2s ease;
}

.input-wrap:focus-within {
    border-color: var(--accent-bronze);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-prefix, .input-unit {
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 700;
}

.input-wrap input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 6px 4px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
    font-family: 'JetBrains Mono', monospace;
}

.tool-hint {
    font-size: 10px;
    color: var(--text-sub);
    font-weight: 600;
}

/* Action Buttons */
.tool-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    height: 38px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a359 0%, #b8863b 100%);
    color: #0b0e14;
    box-shadow: 0 2px 10px rgba(212, 163, 89, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e5b369 0%, #c79244 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background: #1a2233;
}

.btn-accent {
    background: #c68642;
    color: #ffffff;
}

.btn-accent:hover {
    background: #af7231;
}

.btn-danger-outline {
    background: transparent;
    color: var(--red-loss);
    border: 1px solid var(--red-border);
}

.btn-danger-outline:hover {
    background: var(--red-bg);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11.5px;
    height: 28px;
}

.btn-danger {
    background: var(--red-loss);
    color: #ffffff;
}

/* ==========================================================================
   3. MAIN WORKSPACE (2-COLUMN SPLIT & RESPONSIVE FIT)
   ========================================================================== */
.main-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Wide Screener View Mode */
.main-content.screener-wide-mode {
    grid-template-columns: minmax(0, 1fr);
}

.main-content.screener-wide-mode .left-col {
    display: none;
}

.main-content.screener-wide-mode .right-col {
    grid-column: 1 / -1;
    width: 100%;
}

.content-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.right-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.right-col .card-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

/* Card Panel Container */
.card-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.panel-header h2 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.badge-amber { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-accent { background: rgba(212, 163, 89, 0.18); color: #d4a359; border: 1px solid rgba(212, 163, 89, 0.4); }
.badge-success { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-neutral { background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border-subtle); }

.hint-tag {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Strategy Banner */
.strategy-info-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 0;
    width: 100%;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 10.5px;
    color: var(--text-sub);
    font-weight: 600;
}

.info-val {
    font-size: 12px;
    color: var(--text-main);
}

.text-accent { color: var(--accent-bronze); font-weight: 800; }
.text-danger { color: var(--red-loss); font-weight: 800; }

/* Tabs Header */
.tabs-group {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    padding: 3px;
    border-radius: 10px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #1e293b;
    color: #f8fafc;
    box-shadow: var(--shadow-sm);
}

.pill-badge {
    background: var(--border-card);
    color: var(--text-main);
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
}

.tab-btn.active .pill-badge {
    background: #d4a359;
    color: #0b0e14;
}

/* Candidate Date Picker Wrap */
.candidate-date-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-card);
    border-radius: 8px;
    padding: 3px 8px;
    transition: all 0.2s ease;
}

.candidate-date-wrap:focus-within {
    border-color: var(--accent-bronze);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.date-icon {
    font-size: 13px;
}

.candidate-date-input {
    background: transparent;
    border: none;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    color-scheme: dark;
}

/* Candidate Search Box */
.candidate-search-wrap {
    display: flex;
    align-items: center;
}

.candidate-search-input {
    background: var(--bg-input);
    border: 1.5px solid var(--border-card);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    color: var(--text-main);
    outline: none;
    width: 120px;
    transition: all 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.candidate-search-input:focus {
    width: 150px;
    border-color: var(--accent-bronze);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ==========================================================================
   4. DATA TABLES & CUSTOM SLIDE BARS (SCROLLBARS)
   ========================================================================== */
/* Top Horizontal Slide Bar (Positioned ABOVE table) */
.top-slidebar-wrapper {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    height: 14px;
    background: #090c13;
    border: 1.5px solid var(--border-card);
    border-radius: 7px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #d4a359 #090c13;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.top-slidebar-wrapper::-webkit-scrollbar {
    height: 11px;
}

.top-slidebar-wrapper::-webkit-scrollbar-track {
    background: #090c13;
    border-radius: 7px;
}

.top-slidebar-wrapper::-webkit-scrollbar-thumb {
    background: #d4a359;
    border-radius: 7px;
    border: 2px solid #090c13;
}

.top-slidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

.top-slidebar-inner {
    height: 1px;
    min-width: 760px;
}

/* Global & Container Scrollbar (Slide Bar) Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #090c13;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #d4a359;
    border-radius: 8px;
    border: 2px solid #090c13;
}

::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

::-webkit-scrollbar-corner {
    background: #090c13;
}

/* Firefox Scrollbar Support */
* {
    scrollbar-width: thin;
    scrollbar-color: #d4a359 #090c13;
}

.table-container {
    overflow-x: auto !important;
    overflow-y: auto !important;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #d4a359 #090c13;
    -webkit-overflow-scrolling: touch;
}

/* Candidate Screener Container with Dynamic Height & Prominent Slide Bar */
.candidate-container {
    flex: 1;
    min-height: 480px;
    max-height: 720px;
    overflow-y: auto !important;
    overflow-x: auto !important;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    border: 1.5px solid var(--border-card);
    border-radius: 10px;
    background: var(--bg-elevated);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    text-align: left;
}

#candidatesTable {
    min-width: 760px;
    width: 100%;
    table-layout: auto;
}

.data-table th {
    background: #0c1018;
    color: var(--text-muted);
    font-weight: 800;
    padding: 8px 8px;
    border-bottom: 2px solid var(--border-card);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.data-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    white-space: nowrap;
    color: var(--text-main);
}

.data-table tr:hover {
    background-color: rgba(212, 163, 89, 0.05);
}

/* Candidate Table Column Specific Widths */
#candidatesTable th:nth-child(1), #candidatesTable td:nth-child(1) {
    width: 34px;
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
}

#candidatesTable th:nth-child(2), #candidatesTable td:nth-child(2) {
    min-width: 110px;
}

#candidatesTable th:nth-child(3), #candidatesTable td:nth-child(3) {
    width: 85px;
}

#candidatesTable th:nth-child(4), #candidatesTable td:nth-child(4) {
    width: 110px;
}

#candidatesTable th:nth-child(5), #candidatesTable td:nth-child(5) {
    width: 110px;
}

#candidatesTable th:nth-child(6), #candidatesTable td:nth-child(6) {
    width: 95px;
    text-align: center;
}

#candidatesTable th:nth-child(7), #candidatesTable td:nth-child(7) {
    width: 80px;
    text-align: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
    font-size: 12.5px;
}

.empty-icon {
    font-size: 28px;
}

/* Badges inside tables */
.tag-short {
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(244, 63, 94, 0.4);
    display: inline-block;
}

.tag-safe {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: inline-block;
}

.tag-alpha {
    background: rgba(212, 163, 89, 0.18);
    color: #d4a359;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(212, 163, 89, 0.4);
    display: inline-block;
}

.tag-bear {
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(244, 63, 94, 0.4);
    display: inline-block;
}

.tag-bull {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: inline-block;
}

.pnl-positive { color: var(--green-profit); font-weight: 700; }
.pnl-negative { color: var(--red-loss); font-weight: 700; }

/* Order Log Container */
.order-log-container {
    max-height: 260px;
    overflow-y: auto;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
}

.toast {
    background: #111724;
    color: #f8fafc;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-card);
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

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

/* ============================================================= */
/* 🔒 AUTHENTICATION MODAL & LOGOUT STYLES                       */
/* ============================================================= */
.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 15, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-card {
    background: linear-gradient(145deg, #131826 0%, #0a0d14 100%);
    border: 1px solid rgba(212, 163, 89, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 163, 89, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: authSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.auth-logo {
    font-size: 38px;
    line-height: 1;
    filter: drop-shadow(0 0 14px rgba(212, 163, 89, 0.6));
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0;
}

.auth-sub {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    background: #090c12;
    border: 1px solid #273142;
    border-radius: 10px;
    padding: 0 14px;
    transition: all 0.2s ease;
}

.auth-input-wrap:focus-within {
    border-color: #d4a359;
    box-shadow: 0 0 0 3px rgba(212, 163, 89, 0.2);
}

.auth-input-icon {
    font-size: 14px;
    color: #64748b;
    margin-right: 10px;
}

.auth-input-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    padding: 12px 0;
    width: 100%;
}

.auth-input-wrap input::placeholder {
    color: #475569;
}

.auth-error-msg {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 12.5px;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #d4a359 0%, #b8863b 100%);
    color: #0b0e14;
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(212, 163, 89, 0.35);
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #e5b369 0%, #c79244 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 163, 89, 0.5);
}

.auth-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.auth-submit-btn:hover .auth-arrow {
    transform: translateX(3px);
}

.auth-footer {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}
