@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@400;500&display=swap');
/**
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 * Todos os direitos reservados
 */

/* === CSS VARIABLES === */
:root {
    /* Premium Modern Palette - Midnight & Amber */
    --primary-color: #2563EB; /* Rich Amber */
    --primary-hover: #B45309;
    --primary-light: rgba(217, 119, 6, 0.1);
    
    --bg-color: #F8FAFC; /* Slate 50 */
    --surface-color: #FFFFFF;
    --surface-hover: #F1F5F9;
    
    --text-color: #0F172A; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #94A3B8; /* Slate 400 */
    
    --border-color: #E2E8F0;
    
    /* Layout */
    --border-radius: 0px;
    --spacing-unit: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 64px;
    --bottom-nav-height: 70px;
    
    /* Premium Soft Shadows */
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
    
    /* Status Colors */
    --status-pending: #F59E0B; /* Amber */
    --status-transit: #3B82F6; /* Blue */
    --status-delivered: #10B981; /* Emerald */
    --status-issue: #EF4444; /* Red */
}

/* Dark Mode */
:root[data-theme="dark"] {
    --primary-color: #38BDF8; /* Bright Gold */
    --primary-hover: #F59E0B;
    --primary-light: rgba(251, 191, 36, 0.15);
    
    --bg-color: #0B0F19; /* Very dark slate */
    --surface-color: #161E2E;
    --surface-hover: #1E293B;
    
    --text-color: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    
    --border-color: #1E293B;
    
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-color: #38BDF8; /* Bright Gold */
        --primary-hover: #F59E0B;
        --primary-light: rgba(251, 191, 36, 0.15);
        
        --bg-color: #0B0F19; /* Very dark slate */
        --surface-color: #161E2E;
        --surface-hover: #1E293B;
        
        --text-color: #F8FAFC;
        --text-secondary: #CBD5E1;
        --text-muted: #64748B;
        
        --border-color: #1E293B;
        
        --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
        --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
        --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
    }
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: clamp(14px, 2.5vw, 18px);
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    padding-top: var(--header-height);
    padding-bottom: var(--bottom-nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === HEADER === */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: color-mix(in srgb, var(--bg-color) 85%, transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-logo h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo i {
    color: var(--accent-color);
}

.desktop-nav {
    display: none;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.btn-icon:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* === MAIN CONTENT === */
.main-content {
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

.container {
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-back {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    transform: translateX(-2px);
    box-shadow: var(--shadow-md);
}

.btn-back:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* === WELCOME BANNER === */
.welcome-banner {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    color: #333;
}

.welcome-banner h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-banner p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--primary-color);
    color: #333;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: #333;
}

.btn-full {
    width: 100%;
}

/* === FAB === */
.action-fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md), 0 4px 12px var(--primary-light);
    border: none;
    cursor: pointer;
    z-index: 900;
    transition: var(--transition);
}

.action-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(255, 165, 0, 0.4);
}

.action-fab:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* === FORMS === */
.order-form {
    background: var(--surface-color);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.1);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--status-issue);
}

.form-group input.invalid {
    border-color: var(--status-issue);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

.form-error {
    color: var(--status-issue);
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 20px;
    font-weight: 500;
}

/* === ORDERS LIST === */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid var(--status-pending);
    position: relative;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.order-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.order-card.status-delivered {
    border-left-color: var(--status-delivered);
}

.order-card.status-transit {
    border-left-color: var(--status-transit);
}

.order-card.status-issue {
    border-left-color: var(--status-issue);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    word-break: break-word;
}

.order-code {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--status-pending);
    flex-shrink: 0;
}

.status-icon.delivered {
    background: var(--status-delivered);
}

.status-icon.transit {
    background: var(--status-transit);
}

.status-icon.issue {
    background: var(--status-issue);
}

.status-text {
    font-weight: 500;
    color: var(--text-color);
}

.order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-value {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* === TIMELINE === */
.timeline {
    margin: 24px 0;
}

.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    width: 2px;
    height: calc(100% + 4px);
    background: var(--border-color);
}

.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-icon.active {
    background: var(--primary-color);
    color: #333;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 0, 0); }
}

.timeline-icon.completed {
    background: var(--status-delivered);
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

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

/* === ORDER DETAILS === */
.order-details-header {
    background: var(--surface-color);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.order-details-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.current-status {
    background: var(--surface-color);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(0,0,0,0.05);
    font-weight: 600;
    margin-bottom: 8px;
}

.status-badge.delivered {
    background: rgba(52, 168, 83, 0.1);
    color: var(--status-delivered);
}

.status-badge.transit {
    background: rgba(66, 133, 244, 0.1);
    color: var(--status-transit);
}

.status-badge.issue {
    background: rgba(234, 67, 53, 0.1);
    color: var(--status-issue);
}

.status-badge.pending {
    background: rgba(255, 165, 0, 0.1);
    color: var(--status-pending);
}

.status-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-section {
    background: var(--surface-color);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.timeline-section h4 {
    margin-bottom: 16px;
    color: var(--text-color);
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .order-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

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

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

.empty-state p {
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* === FAQ === */
.faq-section {
    margin-bottom: 32px;
}

.faq-container {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--surface-hover);
}

.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition);
    font-weight: bold;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding-bottom: 20px;
    }
}

.faq-answer[hidden] {
    display: none;
}

/* === HELP CONTACT === */
.help-contact {
    background: var(--surface-color);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.help-contact h3 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.help-contact p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
    min-width: 64px;
    min-height: 48px;
    border-radius: 8px;
}

.nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-item i {
    font-size: 20px;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: scale(1.15);
}

.nav-item-fab {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: -28px;
    color: #333 !important;
    box-shadow: var(--shadow-lg);
}

.nav-item-fab i {
    font-size: 24px;
}

.nav-item-fab span {
    display: none;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    pointer-events: none;
}

.toast {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    max-width: 300px;
    text-align: center;
    font-size: 0.9rem;
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: var(--status-delivered);
}

.toast.error {
    background: var(--status-issue);
}

.toast.warning {
    background: var(--status-pending);
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-message {
    flex: 1;
}

/* === FOOTER === */
.app-footer {
    background: var(--surface-color);
    padding: 60px 0 24px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-brand h4 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
}

.footer-brand p {
    line-height: 1.5;
}

.footer-links-group h5 {
    color: var(--text-color);
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
}

.footer-links-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links-group a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

.b20-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.b20-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand img {
        margin: 0 auto 12px auto;
        display: block;
    }
    
    .footer-links-group a:hover {
        transform: none;
    }
}
/* === LOADING SKELETON === */
.skeleton {
    background: linear-gradient(90deg, var(--surface-hover) 25%, var(--border-color) 50%, var(--surface-hover) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--border-radius);
    height: 20px;
    margin-bottom: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === UTILITIES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }

/* === PERFORMANCE OPTIMIZATIONS === */
.order-card,
.btn,
.nav-item {
    will-change: transform;
}

.order-card:hover,
.btn:hover,
.nav-item:hover {
    will-change: auto;
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .order-card {
        border-left-width: 6px;
    }
    
    .form-group input:focus {
        box-shadow: 0 0 0 4px rgba(255, 255, 0, 0.3);
    }
}

/* === PROGRESS TRACKER & TRANSIT COUNTER === */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 24px 0 32px 0;
    position: relative;
    padding: 0 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    width: 60px;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-hover);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.progress-step.active .step-icon {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--text-color);
}

.progress-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin: -20px 8px 0 8px;
    transition: var(--transition);
    border-radius: 2px;
}

.progress-line.active {
    background: var(--primary-color);
}

.transit-counter {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.transit-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.transit-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1, h2, h3, h4, h5, .hero-content h1, .transit-number {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
}

.order-code, .timeline-date, input[type="text"], input[type="number"] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

/* === HERO MARKETING === */
.hero-marketing {
    background-color: var(--surface-color);
    background-image: url('../assets/images/banner-light.png');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    margin-top: calc(-1 * var(--header-height));
    padding-top: calc(var(--header-height) + 60px);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

:root[data-theme="dark"] .hero-marketing {
    background-image: url('../assets/images/banner-dark.png');
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero-marketing {
        background-image: url('../assets/images/banner-dark.png');
    }
}

.hero-marketing::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--surface-color);
    opacity: 0.85; /* Ensures text readability over the image */
    z-index: 0;
}

.hero-marketing::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-color);
}

.hero-content h1 .highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.hero-search-box input {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    background: transparent;
    color: var(--text-color);
    outline: none;
}

.hero-search-box .btn {
    border-radius: 0;
    margin: 0;
    padding: 0 32px;
    height: auto;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .hero-search-box {
        flex-direction: column;
    }
    .hero-search-box .btn {
        padding: 16px;
    }
}
