/* ==========================================================================
   StockPulse - Modern CSS Design System & Layout
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --bg-input: #0f172a;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(16, 185, 129, 0.4);

    --accent-emerald: #10b981;
    --accent-teal: #14b8a6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-brand: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-rose: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glass-backdrop: blur(12px);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* App Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

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

.logo-icon {
    width: 46px;
    height: 46px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text .tagline {
    font-size: 0.78rem;
    color: var(--accent-emerald);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Shop Info Card */
.shop-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.shop-info-card i.fa-store {
    color: var(--accent-teal);
    font-size: 1.1rem;
}

.shop-details {
    display: flex;
    flex-direction: column;
}

.shop-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.shop-id-display {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    color: var(--accent-emerald);
    background: rgba(255, 255, 255, 0.05);
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.nav-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-btn.active {
    background: var(--gradient-emerald);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

/* Tab Panes */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Page Header */
.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Layout Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

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

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-ai {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-fast {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-high {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-low {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-reorder {
    background: rgba(244, 63, 94, 0.25);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.5);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}

.badge-ok {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-restocked {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.badge-neutral {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Reorder Banner Box */
.reorder-banner {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.25);
}

.reorder-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reorder-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fda4af;
}

.reorder-title h3 {
    font-size: 1.2rem;
    font-weight: 700;

}

.pulse-icon {
    font-size: 1.3rem;
    color: #f43f5e;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.badge-category {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.4);
    font-size: 0.7rem;
    margin-left: 6px;
}

.reorder-banner-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reorder-item-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(244, 63, 94, 0.35);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.reorder-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.reorder-item-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.reorder-item-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.reorder-item-badge {
    text-align: right;
}

.days-left-tag {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #f43f5e;
}

.rate-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Supplier Suggestions Styles */
.supplier-suggestions-container {
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.supplier-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.supplier-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.supplier-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 12px;
    transition: var(--transition-fast);
}

.supplier-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

.supplier-name {
    font-size: 0.86rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.supplier-contact {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Fallback box for unmatched categories */
.supplier-fallback-box {
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.supplier-fallback-box i {
    color: var(--accent-amber);
}

/* Submit Stock Grid */
.submit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 840px) {
    .submit-grid {
        grid-template-columns: 1fr;
    }
}

/* Photo Dropzone */
.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.5);
    padding: 24px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.05);
}

.upload-icon-wrapper {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px auto;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
    font-size: 24px;
}

.dropzone-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.dropzone-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.image-preview-wrapper {
    position: relative;
    width: 100%;
    max-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.image-preview-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.btn-remove-img {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* AI Scanning State Box */
.ai-scanning-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.spinner-wrapper i {
    font-size: 28px;
    color: #c084fc;
}

.scanning-text h4 {
    font-size: 0.95rem;
    color: #e9d5ff;
}

.scanning-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Fallback Alert Box */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef3c7;
}

.alert-icon {
    font-size: 1.2rem;
    color: #fbbf24;
    margin-top: 2px;
}

.alert-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fbbf24;
}

.alert-content p {
    font-size: 0.82rem;
    color: #fef3c7;
}

/* AI Extraction Results Zone */
.ai-results-zone {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
}

.ai-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-results-header h4 {
    font-size: 1.05rem;
    color: var(--accent-emerald);
}

.ai-results-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Extraction Table & Low Confidence Highlighting */
.extraction-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.table-input, .table-select {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
}

.table-input:focus, .table-select:focus {
    border-color: var(--accent-emerald);
}

/* Low Confidence Row Highlighting */
.row-low-confidence {
    background: rgba(245, 158, 11, 0.1) !important;
    border-left: 3px solid var(--accent-amber) !important;
}

.row-low-confidence td {
    border-bottom-color: rgba(245, 158, 11, 0.2);
}

/* Forms & Inputs */
.stock-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.input-with-icon input,
.custom-select,
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.custom-select {
    padding-left: 14px;
    cursor: pointer;
}

.input-with-icon input:focus,
.custom-select:focus,
.form-group input[type="text"]:focus {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-row {
    display: flex;
    gap: 12px;
}

.col-quantity { flex: 3; }
.col-unit { flex: 2; }

/* Buttons */
.btn {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--gradient-emerald);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.btn-submit-stock {
    margin-top: 8px;
}

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.bg-emerald { background: var(--gradient-emerald); }
.bg-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.bg-rose { background: var(--gradient-rose); }

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Search Box */
.search-box {
    position: relative;
    width: 220px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-box input {
    width: 100%;
    padding: 6px 12px 6px 34px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
}

/* Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.4);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 12px 14px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.item-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.quantity-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-radius: 6px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Thumbnail */
.img-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-lg {
    max-width: 640px;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 14px;
}

/* Google Sign-In Button */
.btn-google {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.google-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 16px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: var(--bg-secondary);
    padding: 0 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Auth Modal Tabs */
.auth-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-tab-btn:hover {
    color: var(--text-primary);
}

.auth-tab-btn.active {
    background: var(--gradient-emerald);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.modal-header h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.5);
    border-left: 3px solid var(--accent-emerald);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.timeline-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.timeline-val {
    font-weight: 600;
    color: var(--accent-emerald);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 22px;
    background: #1e293b;
    border: 1px solid var(--accent-emerald);
    border-radius: var(--radius-md);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    animation: slideUp 0.3s ease;
}

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

.hidden {
    display: none !important;
}

.mb-6 { margin-bottom: 24px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.p-0 { padding: 0 !important; }
.p-4 { padding: 16px !important; }
.text-danger { color: #f43f5e !important; }
