:root {
    --lime: #AAFF00;
    --gray: #8C8C8C;
    --dark: #0A0A0A;
    --surface: #161616;
    --surface2: #1E1E1E;
    --white: #FFFFFF;
}

* { box-sizing: border-box; }

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Odometer / scroll-up number */
.num-scroll {
    display: inline-block;
    overflow: hidden;
    height: 1em;
    line-height: 1;
    vertical-align: middle;
}

.stat-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
}
.num-scroll-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.num-scroll-inner span {
    display: block;
    height: 1em;
    line-height: 1;
}

html, body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: var(--dark);
    color: var(--white);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* Hero section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 24px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -webkit-object-fit: cover;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -1px;
    margin: 0 0 16px;
    text-align: center !important;
    width: 100%;
}

.hero-title .accent { color: var(--lime); }

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray);
    margin: 0 auto 40px;
    max-width: 500px;
    text-align: center !important;
    width: 100%;
}

/* Stats bar */
.stats-bar {
    background: var(--surface);
    border-top: 1px solid #1E1E1E;
    border-bottom: 1px solid #1E1E1E;
    padding: 32px 24px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--lime); }
.stat-label { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* Cards */
.dg-card {
    background: var(--surface);
    border: 1px solid #1E1E1E;
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s;
}
.dg-card:hover { border-color: var(--lime); }

/* Zone cards */
.zone-card {
    background: var(--surface);
    border: 1px solid #1E1E1E;
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.2s;
    height: 100%;
    box-sizing: border-box;
}
.zone-card:hover {
    border-color: var(--lime);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(170,255,0,0.1);
}

/* Stepper timeline */
.timeline-item { display: flex; gap: 16px; margin-bottom: 24px; }
.timeline-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #333;
    margin-top: 4px;
    flex-shrink: 0;
    position: relative;
}
.timeline-dot.active { background: var(--lime); box-shadow: 0 0 8px rgba(170,255,0,0.5); }
.timeline-dot.completed { background: var(--lime); }
.timeline-line {
    width: 2px;
    background: #1E1E1E;
    margin: 0 6px;
    flex-shrink: 0;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-pending { background: rgba(255,193,7,0.15); color: #FFC107; }
.badge-picked { background: rgba(170,255,0,0.1); color: var(--lime); }
.badge-warehouse { background: rgba(33,150,243,0.15); color: #2196F3; }
.badge-out { background: rgba(170,255,0,0.2); color: var(--lime); }
.badge-delivered { background: rgba(76,175,80,0.2); color: #4CAF50; }
.badge-failed { background: rgba(244,67,54,0.15); color: #F44336; }
.badge-returned { background: rgba(140,140,140,0.15); color: var(--gray); }
.badge-cod { background: rgba(170,255,0,0.15); color: var(--lime); }

/* Buttons */
.btn-lime {
    background: var(--lime) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

.btn-outline-white {
    border: 1.5px solid var(--white) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
}

/* Forms */
.dg-input { background: var(--surface) !important; }

/* Section styles */
.section { padding: 80px 24px; }
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 8px;
}
.section-sub { color: var(--gray); margin-bottom: 48px; }

/* How it works */
.step-number {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(170,255,0,0.1);
    border: 1.5px solid var(--lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--lime);
    margin: 0 auto 16px;
}

/* Loading spinner */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* KPI cards */
.kpi-card {
    background: var(--surface);
    border: 1px solid #1E1E1E;
    border-radius: 12px;
    padding: 20px 24px;
}
.kpi-value { font-size: 2rem; font-weight: 800; color: var(--lime); }
.kpi-label { font-size: 0.8rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* Zone bar chart */
.bar-track { background: #1E1E1E; border-radius: 4px; height: 8px; }
.bar-fill { background: var(--lime); border-radius: 4px; height: 8px; transition: width 0.6s ease; }

/* Footer */
footer {
    background: #050505;
    border-top: 1px solid #1A1A1A;
    padding: 48px 24px 24px;
    color: var(--gray);
}
footer .footer-links a { color: var(--gray); text-decoration: none; }
footer .footer-links a:hover { color: var(--white); }

/* Mobile responsive helpers */
@media (max-width: 600px) {
    .stats-bar { gap: 32px; }
    .section { padding: 48px 16px; }
}

/* Blazor error UI */
#blazor-error-ui .reload { color: var(--lime); }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
