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

:root {
    --bg-primary: #070913;
    --bg-secondary: #0d1224;
    --glass-bg: rgba(18, 25, 49, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.12);
    
    --accent-primary: #6366F1;
    --accent-secondary: #EC4899;
    --accent-cyan: #06B6D4;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-glow: 0 0 35px -5px rgba(99, 102, 241, 0.25);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* App Container */
.app-container {
    max-width: 1540px;
    margin: 0 auto;
    padding: 2rem 2rem 4.5rem 2rem;
}

/* Header & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.25rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #FFFFFF, #CBD5E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.select-modern {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.select-modern option {
    background: var(--bg-secondary);
    color: var(--text-main);
}

/* Grid Layouts */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-hover);
    box-shadow: var(--shadow-glow);
}

.kpi-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-purple { background: rgba(99, 102, 241, 0.15); color: var(--accent-primary); }
.icon-pink { background: rgba(236, 72, 153, 0.15); color: var(--accent-secondary); }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }

.kpi-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.kpi-subtitle {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Charts Section */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

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

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

/* Insights Grid */
.section-header {
    margin-bottom: 1.5rem;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}
.section-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.insight-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.insight-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.2);
    color: #818CF8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.insight-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.insight-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Table Section */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    width: 320px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    margin-left: 0.5rem;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    text-align: left;
    padding: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

tbody tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.badge-code {
    font-family: monospace;
    font-size: 0.85rem;
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    white-space: nowrap;
    display: inline-block;
    min-width: max-content;
}

.badge-part {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

.part-yes {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.part-no {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.btn-page {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-page:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-primary);
}

.btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

.animate-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Table Filters Right (timezone + search) */
.table-filters-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Nav Upload Button */
.btn-upload-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #818CF8;
    padding: 0.45rem 1rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-upload-nav:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-primary);
    color: var(--text-main);
}

/* ================ UPLOAD PAGE — Responsive Mobile-First ================ */
.upload-centered-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-primary);
    color: var(--text-main);
    background-image: 
        radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

.upload-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

.btn-my-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #E2E8F0;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-my-stats:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.4);
}

.upload-main-centered {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 1.5rem 3.5rem 1.5rem; /* bottom padding for fixed footer */
}

.upload-content-wrapper {
    max-width: 580px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
}

.upload-hero-text .upload-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 0.25rem 0;
}

.upload-hero-text .upload-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.upload-card-centered {
    padding: 1.15rem;
    text-align: left;
}

.steps-row-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    text-align: left;
}

.step-mini-horiz {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-mini-horiz .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
}

.step-mini-horiz strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.1rem;
}

.step-mini-horiz p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.25;
}

.step-mini-horiz a { color: var(--accent-primary); text-decoration: none; }
.step-mini-horiz code {
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
    padding: 0.05rem 0.25rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .upload-centered-body { overflow-y: auto; height: auto; }
    .steps-row-horizontal { grid-template-columns: 1fr; }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem 1rem;
    }
    .nav-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.85rem;
    }
    .btn-upload-nav {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    .filter-group {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }
}

/* ================ FIXED USUAL FOOTER ================ */
.custom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(7, 9, 19, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.custom-footer-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
}

@media (min-width: 640px) {
    .custom-footer-content {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

.custom-footer-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}

.custom-footer-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.custom-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.8rem;
}

.custom-footer-links a:hover {
    color: var(--accent-primary);
}

.custom-footer-icon {
    width: 17px;
    height: 17px;
}

.upload-root {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    overflow: hidden;
}

/* ── Left Panel ── */
.upload-left {
    display: flex;
    flex-direction: column;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    border-right: 1px solid var(--glass-border);
}

.upload-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: auto;
    padding-bottom: 1rem;
}

.brand-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    background: linear-gradient(90deg, #fff, #CBD5E1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upload-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.upload-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upload-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Upload card */
.upload-card-inner {
    padding: 1.5rem;
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
    min-height: 110px;
    text-align: center;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
}

.upload-zone-icon { font-size: 1.8rem; }

.upload-zone-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    word-break: break-all;  /* Fix code overflow */
}

.upload-zone-title code {
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    font-size: 0.78rem;
    word-break: break-all;
    white-space: normal;
}

.upload-zone-sub {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
}

/* Steps row */
.steps-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.step-mini {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.step-mini .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
}

.step-mini strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.step-mini p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

.step-mini a {
    color: var(--accent-primary);
    text-decoration: none;
}

.step-mini code {
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    font-size: 0.75rem;
    word-break: break-all;
}

/* ── Right Panel ── */
.upload-right {
    display: flex;
    flex-direction: column;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    gap: 1.25rem;
    background: rgba(6, 8, 18, 0.4);
}

.showcase-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.showcase-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.showcase-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.showcase-kpi {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
}

.s-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.s-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.s-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.showcase-insights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-pill {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
}

.insight-pill span:first-child {
    font-size: 1.3rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.insight-pill strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.insight-pill p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.4;
    font-size: 0.8rem;
}

.btn-view-dashboard {
    display: block;
    text-align: center;
    padding: 0.85rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    margin-top: auto;
}

.btn-view-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

/* Shared upload form elements */
.selected-file {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.file-icon { font-size: 1.4rem; }

.file-info { flex: 1; min-width: 0; }

.file-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.btn-clear {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 1rem; padding: 0.2rem; transition: color 0.2s; flex-shrink: 0;
}
.btn-clear:hover { color: var(--accent-secondary); }

.btn-analyze {
    width: 100%; padding: 0.9rem;
    border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-analyze:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5); }
.btn-analyze:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.upload-error {
    margin-top: 0.75rem; padding: 0.65rem 0.85rem;
    background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 10px; color: #FB7185; font-size: 0.85rem;
}

@media (max-width: 900px) {
    .upload-root { grid-template-columns: 1fr; overflow-y: auto; height: auto; }
    .upload-body { overflow: auto; height: auto; }
    .upload-right { border-top: 1px solid var(--glass-border); }
    .showcase-kpis { grid-template-columns: 1fr 1fr; }
}



.upload-hero {
    max-width: 580px;
}

.brand-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.upload-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #FFFFFF, #CBD5E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.upload-card {
    width: 100%;
    max-width: 560px;
    padding: 2.5rem;
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
}

.upload-zone-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.upload-zone h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.upload-zone p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.upload-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem !important;
    color: var(--text-dim) !important;
}
.upload-hint code {
    background: rgba(99, 102, 241, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #818CF8;
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.file-icon {
    font-size: 1.5rem;
}

.file-info {
    flex: 1;
    text-align: left;
}

.file-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: color 0.2s;
}
.btn-clear:hover {
    color: var(--accent-secondary);
}

.btn-analyze {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-analyze:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.btn-analyze:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.upload-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 12px;
    color: #FB7185;
    font-size: 0.9rem;
}

.upload-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
}

.step {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.step a {
    color: var(--accent-primary);
    text-decoration: none;
}
.step a:hover {
    text-decoration: underline;
}

.step code {
    background: rgba(99, 102, 241, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #818CF8;
}

