/*
  OCYL Trailer Commerce — Design System
  Mobile-first, professional, client-branded.
  Dark theme with warm accents for trailer/equipment market.
*/

/* ═══════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════ */
:root {
    /* Brand — navy + orange, professional trailer dealer */
    --brand-primary: #e67e22;
    --brand-primary-hover: #d35400;
    --brand-primary-light: rgba(230, 126, 34, 0.08);
    --brand-secondary: #1a3a5c;

    /* Neutrals — light, clean, professional */
    --bg-body: #f5f7fa;
    --bg-surface: #ffffff;
    --bg-elevated: #f0f2f5;
    --bg-input: #ffffff;
    --border: #d1d9e0;
    --border-light: #e8ecf0;

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-on-brand: #fff;
    --text-heading: #1a1a2e;

    /* Status */
    --success: #16a34a;
    --warning: #ca8a04;
    --danger: #dc2626;
    --info: #2563eb;

    /* Tiers */
    --tier-value: #16a34a;
    --tier-mid: #2563eb;
    --tier-premium: #7c3aed;

    /* Layout */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
    --container-max: 1200px;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-primary-hover); }

img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
}
.btn-primary {
    background: var(--brand-primary);
    color: var(--text-on-brand);
    border-color: var(--brand-primary);
}
.btn-primary:hover {
    background: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: var(--text-on-brand);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}
.btn-hero-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
    color: #ffffff;
}
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════ */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

/* ═══════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════ */
input, select, textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    width: 100%;
    transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}
textarea { resize: vertical; min-height: 100px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-row { display: flex; gap: 16px; }
.form-row-2 > * { flex: 1; }
@media (max-width: 600px) {
    .form-row { flex-direction: column; }
}

/* ═══════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════ */
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
th {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-table td:first-child {
    color: var(--text-secondary);
    width: 40%;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}
.alert-success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

/* ═══════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.status-pending { background: rgba(210,153,34,0.2); color: var(--warning); }
.status-paid { background: rgba(88,166,255,0.2); color: var(--info); }
.status-submitted { background: rgba(88,166,255,0.2); color: var(--info); }
.status-in_production { background: rgba(210,168,255,0.2); color: var(--tier-premium); }
.status-shipping { background: rgba(210,168,255,0.2); color: var(--tier-premium); }
.status-ready { background: rgba(63,185,80,0.2); color: var(--success); }
.status-picked_up { background: rgba(63,185,80,0.2); color: var(--success); }
.status-cancelled { background: rgba(248,81,73,0.2); color: var(--danger); }

.tier-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.tier-value { background: rgba(63,185,80,0.15); color: var(--tier-value); }
.tier-mid { background: rgba(88,166,255,0.15); color: var(--tier-mid); }
.tier-premium { background: rgba(210,168,255,0.15); color: var(--tier-premium); }

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.site-header {
    background: #1a3a5c;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-wordmark {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.logo-wordmark strong {
    font-weight: 900;
}
.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.main-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}
.main-nav a:hover { color: #ffffff; }
.nav-cart { position: relative; }
.cart-badge {
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}
.nav-phone {
    color: var(--brand-primary) !important;
    font-weight: 600;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a3a5c;
        border-bottom: 2px solid #e67e22;
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { font-size: 16px; padding: 8px 0; }
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
    background: #1a2332;
    border-top: none;
    padding: 40px 0 24px;
    margin-top: 64px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}
.footer-brand .logo-text { font-size: 18px; color: #ffffff; }
.footer-brand .logo-wordmark { font-size: 18px; color: #ffffff; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 13px; }
.footer-links a:hover { color: #ffffff; }
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: background 0.2s ease, color 0.2s ease;
}
.social-icon:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}
.footer-meta { color: var(--text-muted); font-size: 12px; }
.footer-meta a { color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
    border-bottom: 1px solid var(--border);
}
.hero.hero-bg {
    position: relative;
    padding: 180px 0 60px;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    border-bottom: none;
    overflow: hidden;
}
.hero.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 17, 23, 0.82) 0%,
        rgba(13, 17, 23, 0.6) 40%,
        rgba(13, 17, 23, 0.7) 70%,
        rgba(13, 17, 23, 0.92) 100%
    );
}
.hero.hero-bg .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.hero.hero-bg h1 {
    font-size: 56px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.01em;
    line-height: 1.05;
    margin-bottom: 20px;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.6),
        0 4px 12px rgba(0,0,0,0.3);
}
.hero-sub {
    font-size: 20px;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 16px;
}
.hero-eyebrow {
    color: #D4A543;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    text-shadow:
        0 1px 3px rgba(0,0,0,0.6);
}
.hero.hero-bg .hero-sub {
    color: #D4A543;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow:
        0 1px 3px rgba(0,0,0,0.8),
        0 2px 8px rgba(0,0,0,0.4);
}
.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}
.hero.hero-bg .hero-desc {
    color: rgba(255,255,255,0.90);
    font-size: 17px;
    max-width: 500px;
    margin: 0 0 28px;
    text-shadow:
        0 1px 3px rgba(0,0,0,0.7),
        0 2px 8px rgba(0,0,0,0.3);
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .hero { padding: 48px 0; }
    .hero.hero-bg { padding: 120px 0 40px; }
    .hero.hero-bg h1 { font-size: 36px; }
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 17px; }
    .hero-slideshow { min-height: 380px; }
    .hero.hero-bg .hero-desc { font-size: 15px; }
}

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.section { padding: 64px 0; }
.section-dark { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

/* Tier grid */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.tier-card {
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.tier-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,17,23,0.5) 0%, rgba(13,17,23,0.82) 60%, rgba(13,17,23,0.95) 100%);
    z-index: 1;
}
.tier-card-content {
    position: relative;
    z-index: 2;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-end;
}
.tier-card.featured {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px var(--brand-primary), var(--shadow);
}
.tier-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.tier-card.featured .tier-label { color: var(--brand-primary); }
.tier-card h3 { font-size: 24px; margin-bottom: 12px; }
.tier-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}
.step { text-align: center; }
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 16px; }
.step p { color: var(--text-secondary); font-size: 14px; }

.cta-block { text-align: center; }
.cta-block h2 { margin-bottom: 20px; }

@media (max-width: 768px) {
    .tier-grid { grid-template-columns: 1fr; max-width: 400px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 500px) {
    .steps-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   VIDEO SECTION
   ═══════════════════════════════════════════════ */
.video-section {
    background: var(--bg-body);
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.video-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.video-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
}
.video-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-card h4 {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* ═══════════════════════════════════════════════
   CATALOG
   ═══════════════════════════════════════════════ */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}
.catalog-header h1 { font-size: 28px; }
.catalog-header p { color: var(--text-secondary); }

.filter-bar { margin-bottom: 32px; }
.filter-group { margin-bottom: 16px; }
.filter-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.tab-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cat-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.cat-tab:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.cat-tab.active {
    background: var(--brand-primary-light);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Model cards */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.model-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    transition: border-color var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
.model-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px var(--brand-primary), var(--shadow-lg);
}
.model-img {
    height: 200px;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.model-img-light {
    background: #ffffff;
}
.model-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.model-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.model-mfr {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.model-info h3 { font-size: 18px; margin: 4px 0 8px; }
.model-desc { color: var(--text-secondary); font-size: 14px; flex: 1; }
.model-specs-row { margin-top: 12px; }
.model-specs-row .spec {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 4px 10px;
    border-radius: 4px;
}
.model-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary);
}

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

/* ═══════════════════════════════════════════════
   MODEL DETAIL
   ═══════════════════════════════════════════════ */
.model-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.model-detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    background: #f5f5f5;
}
.model-detail-info h1 { font-size: 28px; margin: 4px 0 16px; }
.model-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 16px 0;
}
.model-detail-warranty {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}
.specs-table { margin: 16px 0; }
.specs-table td { padding: 10px 16px; font-size: 14px; }
.model-detail-actions { display: flex; gap: 12px; margin-top: 24px; }

@media (max-width: 768px) {
    .model-detail { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══════════════════════════════════════════════
   BUILDER / CONFIGURATOR
   ═══════════════════════════════════════════════ */
.builder-header {
    text-align: center;
    margin-bottom: 40px;
}
.builder-header h1 { font-size: 32px; }
.builder-header p { color: var(--text-secondary); font-size: 16px; }

.builder-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}
.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}
.step-indicator .step-num {
    width: 32px;
    height: 32px;
    font-size: 14px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    margin-bottom: 0;
}
.step-indicator.active .step-num {
    background: var(--brand-primary);
    color: #fff;
}
.step-indicator.active { color: var(--text-primary); }
.step-indicator.completed .step-num {
    background: var(--success);
    color: #fff;
}
.step-indicator.completed { color: var(--text-secondary); }
.step-connector {
    width: 40px;
    height: 2px;
    background: var(--border);
}

.builder-step { min-height: 400px; }
.hidden { display: none !important; }

.builder-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.builder-filters .filter-group { flex: 1; }
.builder-filters select {
    padding: 10px 14px;
    font-size: 14px;
}

/* Configurator options */
.config-layout { }
.config-model-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.config-model-info { }
.config-model-info h2 { font-size: 22px; }

.config-options { }
.option-group {
    margin-bottom: 28px;
}
.option-group-label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Select/radio options */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}
.option-item:hover { border-color: var(--text-secondary); }
.option-item.selected {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
}
.option-item input { display: none; }
.option-item .option-name { flex: 1; font-weight: 500; }
.option-item .option-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}
.option-item.selected .option-price { color: var(--brand-primary); }

/* Color swatches */
.color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.color-swatch:hover { border-color: var(--text-secondary); transform: scale(1.1); }
.color-swatch.selected {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--brand-primary);
}
.color-swatch-label {
    display: none;
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    white-space: nowrap;
    color: var(--text-secondary);
}
.color-swatch:hover .color-swatch-label,
.color-swatch.selected .color-swatch-label { display: block; }

/* Checkbox options (accessories) */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}
.checkbox-item:hover { border-color: var(--text-secondary); }
.checkbox-item.selected {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
}
.checkbox-item input { display: none; }
.check-indicator {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.checkbox-item.selected .check-indicator {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}
.check-indicator svg { display: none; }
.checkbox-item.selected .check-indicator svg { display: block; }

/* Model Image Preview */
.config-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 900px) {
    .config-body {
        grid-template-columns: 3fr 2fr;
        align-items: start;
    }
}

.config-model-image {
    aspect-ratio: 16 / 10;
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.config-model-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

@media (max-width: 899px) {
    .config-model-image {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 500px) {
    .config-model-image {
        aspect-ratio: 1 / 1;
        min-height: 240px;
    }
}

/* Price footer */
.price-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
    z-index: 999;
    padding: 16px 0;
}
.price-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price-display { display: flex; flex-direction: column; }
.price-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.price-amount { font-size: 28px; font-weight: 800; color: var(--brand-primary); }
.price-actions { display: flex; gap: 12px; }

/* Review */
.review-layout { max-width: 700px; margin: 0 auto; }
.review-summary { margin-bottom: 24px; }
.review-summary h3 { margin-bottom: 16px; }
.review-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.review-line:last-child { border-bottom: none; }
.review-line .label { color: var(--text-secondary); }
.review-total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--border);
    font-size: 20px;
    font-weight: 700;
}
.review-total .price { font-size: 24px; }
.review-actions { display: flex; gap: 12px; justify-content: center; }

/* ═══════════════════════════════════════════════
   CART
   ═══════════════════════════════════════════════ */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; justify-content: space-between; gap: 20px; }
.cart-item-info h3 { font-size: 18px; margin: 4px 0 8px; }
.config-code { font-size: 12px; color: var(--text-muted); font-family: monospace; }
.options-list {
    list-style: none;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}
.options-list li { padding: 2px 0; }
.opt-price { color: var(--brand-primary); font-weight: 500; }
.opt-discount { color: var(--success); }
.cart-item-price { text-align: right; }
.cart-item-price .price { display: block; margin-bottom: 8px; }
.cart-summary h3 { margin-bottom: 16px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}
.summary-total {
    border-top: 2px solid var(--border);
    padding-top: 14px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 18px;
}
.cart-summary .btn { margin-top: 12px; }

.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
}
.empty-state p { margin-bottom: 20px; font-size: 16px; }

@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item { flex-direction: column; }
}

/* ═══════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════ */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}
.checkout-form .card { margin-bottom: 24px; }
.checkout-form .card h2 { font-size: 18px; margin-bottom: 16px; }
.payment-note {
    font-size: 14px;
    color: var(--success);
    margin-bottom: 16px;
    font-weight: 500;
}
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}
.payment-option:has(input:checked) {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
}
.payment-option input[type="radio"] {
    width: auto;
    accent-color: var(--brand-primary);
}
.payment-option-content { flex: 1; }
.payment-option-content strong { display: block; font-size: 15px; }
.payment-option-content span { font-size: 13px; color: var(--text-secondary); }

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

/* ═══════════════════════════════════════════════
   CONFIRMATION
   ═══════════════════════════════════════════════ */
.confirmation-page {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    padding: 48px;
}
.confirmation-icon { margin-bottom: 24px; }
.confirmation-page h1 { margin-bottom: 8px; }
.order-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-primary);
    font-family: monospace;
    margin-bottom: 16px;
}
.confirmation-details { margin: 24px 0; color: var(--text-secondary); }
.confirmation-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* ═══════════════════════════════════════════════
   ORDER TRACKING
   ═══════════════════════════════════════════════ */
.lookup-page { max-width: 480px; margin: 40px auto; }
.lookup-page h1 { margin-bottom: 8px; }
.lookup-page > p { color: var(--text-secondary); margin-bottom: 24px; }
.lookup-form .btn { margin-top: 8px; }

.tracking-page { max-width: 800px; margin: 0 auto; }
.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.tracking-header h1 { font-size: 28px; }

/* Timeline */
.timeline-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 20px 0;
    overflow-x: auto;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    text-align: center;
    flex: 1;
    position: relative;
}
.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 3px solid var(--border);
    z-index: 1;
}
.timeline-step.completed .timeline-dot {
    background: var(--success);
    border-color: var(--success);
}
.timeline-step.active .timeline-dot {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.3);
}
.timeline-step.cancelled .timeline-dot {
    background: var(--danger);
    border-color: var(--danger);
}
.timeline-step span { font-size: 12px; color: var(--text-muted); }
.timeline-step.active span { color: var(--text-primary); font-weight: 600; }
.timeline-step.completed span { color: var(--text-secondary); }

.eta-card {
    text-align: center;
    margin-bottom: 24px;
    border-color: var(--brand-primary);
}
.eta-date { font-size: 28px; font-weight: 700; color: var(--brand-primary); margin: 8px 0; }

.tracking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.status-log { }
.log-entry {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}
.log-date { color: var(--text-muted); min-width: 140px; }
.log-status { font-weight: 600; min-width: 120px; }
.log-note { color: var(--text-secondary); }
.tracking-actions { margin-top: 24px; }

@media (max-width: 768px) {
    .tracking-layout { grid-template-columns: 1fr; }
    .timeline-bar { gap: 0; }
    .timeline-step { min-width: 80px; }
    .timeline-step span { font-size: 10px; }
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact-page h1 { margin-bottom: 24px; }
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}
@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════ */
.admin-body { background: #f0f2f5; }
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-card {
    width: 100%;
    max-width: 400px;
}
.login-card h1 { margin-bottom: 24px; text-align: center; }

.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px;
    background: #1a3a5c;
    border-right: none;
    padding: 24px 0;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}
.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 12px;
}
.sidebar-header h2 { font-size: 16px; color: #ffffff; }
.sidebar-header p { font-size: 12px; color: rgba(255,255,255,0.5); }
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a {
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all var(--transition);
}
.sidebar nav a:hover { background: rgba(255,255,255,0.08); color: #ffffff; }
.sidebar nav a.active {
    border-left-color: #e67e22;
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}
.admin-main {
    margin-left: 240px;
    flex: 1;
    padding: 32px;
}
.admin-main h1 { font-size: 24px; margin-bottom: 24px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.stat-card { text-align: center; padding: 20px; }
.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.stat-value { font-size: 28px; font-weight: 700; }
.stat-primary .stat-value { color: var(--brand-primary); }

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.order-detail-grid .card h3 { margin-bottom: 16px; }

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 2px solid #e67e22;
        padding: 12px 0;
    }
    .sidebar nav {
        flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; gap: 0;
    }
    .sidebar nav::-webkit-scrollbar { display: none; }
    .sidebar nav a {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 8px 12px; font-size: 13px;
    }
    .sidebar nav a.active { border-bottom-color: var(--brand-primary); border-left: none; }
    .admin-layout { flex-direction: column; }
    .admin-main {
        margin-left: 0; padding: 16px;
        max-width: 100vw; overflow-x: hidden; box-sizing: border-box;
    }
    .admin-main h1 { font-size: 20px; margin-bottom: 16px; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dashboard-actions { display: flex; flex-direction: column; gap: 8px; }
    .dashboard-actions .btn { text-align: center; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 11px; }
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tab-row { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap;
               scrollbar-width: none; display: flex; gap: 6px; }
    .tab-row::-webkit-scrollbar { display: none; }
    .cat-tab { font-size: 13px; padding: 6px 12px; flex-shrink: 0; }
    .csv-upload { overflow: hidden; }
    .csv-upload form { flex-direction: column; }
    .card h3 { font-size: 16px; }
    .form-row-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   ADMIN PRICE EDITOR
   ═══════════════════════════════════════════════ */
.editable-price {
    cursor: pointer;
    border-bottom: 1px dashed var(--text-muted);
    padding: 2px 4px;
    border-radius: 2px;
    transition: all var(--transition);
}
.editable-price:hover {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}
.editable-price.saving { opacity: 0.4; }
.editable-price.saved { animation: flash-green 0.6s ease; }

@keyframes flash-green {
    0% { background: rgba(63, 185, 80, 0.3); }
    100% { background: transparent; }
}

.csv-upload { margin-bottom: 24px; }
.csv-upload code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════ */
.loading {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
    font-size: 16px;
}

/* ═══════════════════════════════════════════════
   SIMPLE MODE — Polish & Interactivity
   ═══════════════════════════════════════════════ */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Hero improvements */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-bg { position: relative; overflow: hidden; }
@media (min-width: 769px) {
    .hero-bg { background-attachment: fixed; }
}

/* Card hover lift */
.model-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ═══════════════════════════════════════════════
   FEATURED TRAILERS — Large hero cards
   ═══════════════════════════════════════════════ */
.featured-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.featured-header {
    margin-bottom: 28px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 4px;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.featured-card-lg {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.12), 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.featured-card-lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(230, 126, 34, 0.18), 0 12px 32px rgba(0,0,0,0.08);
}
.featured-card-img {
    height: 260px;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-ribbon {
    position: absolute; top: 14px; left: -6px;
    background: var(--brand-primary); color: #fff;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 5px 14px 5px 12px; border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.3);
}
.featured-ribbon::before {
    content: ''; position: absolute; left: 0; bottom: -6px;
    border-width: 3px 0 3px 6px;
    border-style: solid;
    border-color: #b35c10 transparent transparent #b35c10;
}
.featured-card-img {
    position: relative;
}
.featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s ease;
}
.featured-card-lg:hover .featured-card-img img {
    transform: scale(1.03);
}
.featured-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.featured-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.badge-tiktok {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #010101;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    animation: tiktok-pulse 3s ease-in-out infinite;
}
@keyframes tiktok-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0); }
    50% { box-shadow: 0 0 12px 3px rgba(254, 44, 85, 0.25); }
}
.badge-condition {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-excellent {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}
.badge-good {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}
.badge-fair {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}
.featured-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.featured-card-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}
.featured-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.featured-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}
/* Single featured card: full-width horizontal layout */
.featured-grid:has(.featured-card-lg:only-child) {
    grid-template-columns: 1fr;
}
.featured-grid:has(.featured-card-lg:only-child) .featured-card-lg {
    flex-direction: row;
    max-height: 300px;
}
.featured-grid:has(.featured-card-lg:only-child) .featured-card-img {
    width: 50%;
    height: auto;
}
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-card-img { height: 220px; }
    .featured-price { font-size: 22px; }
}

/* Inline options (simple mode detail page) */
.inline-options {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.option-group-inline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.option-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.inline-opt {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input, var(--bg-surface));
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.inline-opt:focus {
    border-color: var(--brand-primary);
    outline: none;
}

/* Color swatch row */
.swatch-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.color-swatch-label {
    cursor: pointer;
    display: inline-block;
}
.color-swatch-label input { display: none; }
.color-dot {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: border-color 0.2s, transform 0.15s;
}
.color-swatch-label input:checked + .color-dot {
    border-color: var(--brand-primary, #e67e22);
    transform: scale(1.15);
}
.color-swatch-label:hover .color-dot {
    transform: scale(1.1);
}

/* Trade-in CTA section */
.section-cta {
    background: #edf2f7;
    text-align: center;
    padding: 48px 0;
}
.cta-block p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 8px 0 20px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Touch targets — minimum 48px for mobile */
@media (max-width: 768px) {
    .btn, button, select, .cat-tab, .nav-cart, .main-nav a {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .color-dot {
        width: 44px;
        height: 44px;
    }
    .model-detail-actions .btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════
   HERO SLIDESHOW — Cycling branded backgrounds
   5 slides, 30s total cycle, pure CSS crossfade
   ═══════════════════════════════════════════════ */
.hero-slideshow {
    position: relative;
    min-height: 500px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    will-change: opacity;
    animation: hero-cycle 35s ease-in-out infinite;
}
/* Real Big Tex hero images — set via inline style on each slide
   35s total / 5 slides = 7s per slide
   Each slide: 2s fade in, 3s hold, 2s fade out
   background-position set above per slide to frame the trailer properly */
.slide-1 { animation-delay: 0s; background-position: center 60%; }
.slide-2 { animation-delay: 7s; background-position: center 70%; }
.slide-3 { animation-delay: 14s; background-position: center 60%; }
.slide-4 { animation-delay: 21s; background-position: center 65%; }
.slide-5 { animation-delay: 28s; background-position: center 55%; }
@keyframes hero-cycle {
    0%    { opacity: 0; }
    5.7%  { opacity: 1; }
    20%   { opacity: 1; }
    25.7% { opacity: 0; }
    100%  { opacity: 0; }
}
.hero-slideshow .hero-overlay {
    position: absolute;
    inset: 0;
    /* Bottom-left gradient like Big Tex — darkest where text sits */
    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.60) 0%,
            rgba(0, 0, 0, 0.35) 40%,
            rgba(0, 0, 0, 0.10) 70%,
            transparent 100%
        ),
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.30) 35%,
            rgba(0, 0, 0, 0.05) 60%,
            transparent 100%
        );
    z-index: 2;
}
.hero-slideshow .hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}
.hero-slideshow .hero-actions {
    justify-content: flex-start;
}
/* Hero CTA — gold button like Big Tex, black text, bold */
.hero-slideshow .btn-primary {
    background: #D4A543;
    color: #1a1a1a;
    border-color: #D4A543;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
}
.hero-slideshow .btn-primary:hover {
    background: #e0b44e;
    border-color: #e0b44e;
}
@media (max-width: 600px) {
    .hero-slideshow { min-height: 350px; }
}

/* ═══════════════════════════════════════════════
   FADE-IN ON SCROLL — IntersectionObserver driven
   Only .fade-section (full sections) starts hidden.
   .scroll-reveal cards start visible — the JS adds
   the animation class only when observer is present.
   ═══════════════════════════════════════════════ */
.fade-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}
/* scroll-reveal: starts fully visible, JS adds .reveal-ready
   to opt-in to the animation only on pages with the observer */
.scroll-reveal.reveal-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger cards within a grid */
.models-grid .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.models-grid .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
.models-grid .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
.models-grid .scroll-reveal:nth-child(4) { transition-delay: 0.08s; }
.models-grid .scroll-reveal:nth-child(5) { transition-delay: 0.16s; }
.models-grid .scroll-reveal:nth-child(6) { transition-delay: 0.24s; }
/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .fade-section, .scroll-reveal.reveal-ready {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-slide { animation: none; opacity: 0; }
    .slide-1 { opacity: 1; }
}

/* Loading shimmer placeholder */
.shimmer {
    background: linear-gradient(90deg,
        var(--bg-elevated) 25%,
        var(--bg-input) 50%,
        var(--bg-elevated) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Gallery lightbox expand */
.gallery-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.gallery-img.expanded {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    padding: 20px;
    cursor: zoom-out;
}

/* Buy Now button emphasis */
#buy-now-btn {
    font-size: 18px;
    padding: 16px 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
}
#buy-now-btn:hover {
    transform: scale(1.02);
}
#buy-now-btn:active {
    transform: scale(0.98);
}
#buy-now-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ===================================================================
   LISTING WIZARD — Phone-first admin "Add Used Trailer" experience
   =================================================================== */

/* Step indicator */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 0 16px;
}
.wizard-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input, #21262d);
    border: 2px solid var(--border, #30363d);
    color: var(--text-muted, #6e7681);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.wizard-step-dot.active {
    background: var(--brand-primary, #e67e22);
    border-color: var(--brand-primary, #e67e22);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(230, 126, 34, 0.4);
}
.wizard-step-dot.done {
    background: var(--status-success, #3fb950);
    border-color: var(--status-success, #3fb950);
    color: #fff;
}
.wizard-step-line {
    flex: 1;
    height: 2px;
    background: var(--border, #30363d);
    max-width: 60px;
    transition: background 0.3s;
}
.wizard-step-line.done {
    background: var(--status-success, #3fb950);
}
.wizard-step-label {
    font-size: 11px;
    color: var(--text-muted, #6e7681);
    text-align: center;
    margin-top: 4px;
}
.wizard-step-label.active {
    color: var(--brand-primary, #e67e22);
    font-weight: 600;
}

/* Step panels */
.wizard-panel {
    display: none;
    animation: wizardFadeIn 0.3s ease;
}
.wizard-panel.active {
    display: block;
}
@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bottom navigation */
.wizard-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border, #30363d);
}
.wizard-nav .btn {
    flex: 1;
    min-height: 52px;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
}

/* Chip selectors */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.chip {
    padding: 10px 18px;
    border-radius: 24px;
    background: var(--bg-input, #21262d);
    border: 2px solid var(--border, #30363d);
    color: var(--text-secondary, #8b949e);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chip:hover {
    border-color: var(--text-secondary, #8b949e);
    background: var(--bg-elevated, #1c2128);
}
.chip.active {
    background: var(--brand-primary-light, rgba(230, 126, 34, 0.12));
    border-color: var(--brand-primary, #e67e22);
    color: var(--brand-primary, #e67e22);
    font-weight: 600;
}
.chip-icon {
    font-size: 18px;
    line-height: 1;
}

/* Condition cards */
.condition-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.condition-card {
    padding: 14px;
    border-radius: 10px;
    background: var(--bg-input, #21262d);
    border: 2px solid var(--border, #30363d);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.condition-card:hover {
    border-color: var(--text-secondary, #8b949e);
}
.condition-card.active {
    border-width: 2px;
}
.condition-card.excellent.active {
    border-color: #3fb950;
    background: rgba(63, 185, 80, 0.1);
    color: #3fb950;
}
.condition-card.good.active {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
}
.condition-card.fair.active {
    border-color: #d29922;
    background: rgba(210, 153, 34, 0.1);
    color: #d29922;
}
.condition-card.poor.active {
    border-color: #f85149;
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
}
.condition-card .condition-label {
    font-weight: 600;
    font-size: 14px;
}
.condition-card .condition-desc {
    font-size: 11px;
    color: var(--text-muted, #6e7681);
}

/* Photo hero area */
.photo-hero {
    text-align: center;
    padding: 24px 16px;
}
.photo-hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 64px;
    border: 2px dashed;
}
.photo-hero-btn.primary {
    background: var(--brand-primary-light, rgba(230, 126, 34, 0.12));
    border-color: var(--brand-primary, #e67e22);
    color: var(--brand-primary, #e67e22);
}
.photo-hero-btn.primary:hover,
.photo-hero-btn.primary:active {
    background: var(--brand-primary, #e67e22);
    color: #fff;
    border-style: solid;
}
.photo-hero-btn.secondary {
    background: var(--bg-input, #21262d);
    border-color: var(--border, #30363d);
    color: var(--text-secondary, #8b949e);
    margin-top: 10px;
}
.photo-hero-btn svg {
    flex-shrink: 0;
}

/* Photo preview strip */
.photo-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.photo-strip::-webkit-scrollbar {
    height: 4px;
}
.photo-strip::-webkit-scrollbar-thumb {
    background: var(--border, #30363d);
    border-radius: 2px;
}
.photo-thumb {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border, #30363d);
    scroll-snap-align: start;
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-thumb .remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}
.photo-count {
    text-align: center;
    color: var(--text-muted, #6e7681);
    font-size: 13px;
    margin-top: 8px;
}

/* Intelligence signal cards */
.intel-signal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(88, 166, 255, 0.06);
    border: 1px solid rgba(88, 166, 255, 0.15);
    color: var(--status-info, #58a6ff);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}
.intel-signal.success {
    background: rgba(63, 185, 80, 0.06);
    border-color: rgba(63, 185, 80, 0.15);
    color: var(--status-success, #3fb950);
}
.intel-signal.warn {
    background: rgba(210, 153, 34, 0.06);
    border-color: rgba(210, 153, 34, 0.15);
    color: var(--status-warning, #d29922);
}
.intel-signal-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 1px;
}

/* Price display */
.price-input-wrapper {
    position: relative;
}
.price-input-wrapper .currency-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary, #8b949e);
    pointer-events: none;
}
.price-input-wrapper input {
    padding-left: 36px;
    font-size: 24px;
    font-weight: 700;
    height: 60px;
    letter-spacing: 0.5px;
}

/* Year stepper */
.year-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border, #30363d);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-input, #21262d);
}
.year-stepper button {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated, #1c2128);
    border: none;
    color: var(--text-primary, #e6edf3);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.year-stepper button:hover {
    background: var(--brand-primary, #e67e22);
    color: #fff;
}
.year-stepper input {
    flex: 1;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    min-width: 80px;
    padding: 0;
    -moz-appearance: textfield;
}
.year-stepper input::-webkit-inner-spin-button,
.year-stepper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Toggle switch */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-input, #21262d);
    border: 1px solid var(--border, #30363d);
    border-radius: 10px;
    margin-bottom: 12px;
}
.toggle-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border, #30363d);
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s;
}
.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.toggle-switch input:checked + .slider {
    background: var(--brand-primary, #e67e22);
}
.toggle-switch input:checked + .slider::before {
    transform: translateX(22px);
}

/* Collapsible section */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    color: var(--text-secondary, #8b949e);
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid var(--border, #30363d);
    margin-top: 16px;
}
.collapsible-header .arrow {
    transition: transform 0.2s;
}
.collapsible-header.open .arrow {
    transform: rotate(180deg);
}
.collapsible-content {
    display: none;
    padding-bottom: 8px;
}
.collapsible-content.open {
    display: block;
}

/* Publish button */
.btn-publish {
    width: 100%;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 700;
    background: var(--status-success, #3fb950);
    color: #000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    min-height: 56px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.btn-publish:hover {
    background: #2ea043;
    transform: scale(1.01);
}
.btn-publish:active {
    transform: scale(0.98);
}

/* Section label */
.wizard-section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted, #6e7681);
    margin-bottom: 8px;
    margin-top: 20px;
}
.wizard-section-label:first-child {
    margin-top: 0;
}

/* Mobile overrides for wizard */
@media (max-width: 600px) {
    .chip {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
    }
    .condition-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .wizard-nav .btn {
        min-height: 48px;
        font-size: 15px;
    }
    .photo-thumb {
        width: 90px;
        height: 72px;
    }
    .price-input-wrapper input {
        font-size: 22px;
        height: 56px;
    }
}

/* ═══════════════════════════════════════════════
   ADMIN LOGIN LINK (footer)
   ═══════════════════════════════════════════════ */
.admin-link { margin-top: 8px; }
.admin-link a {
    color: var(--text-muted, #6e7681);
    font-size: 12px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.admin-link a:hover { opacity: 1; }

/* ═══════════════════════════════════════════════
   MOBILE IMAGE PERFORMANCE
   ═══════════════════════════════════════════════ */
.model-img img, .featured-card-img img {
    content-visibility: auto;
}
.model-card {
    contain: layout style;
}
@media (max-width: 600px) {
    .model-img { height: 160px; }
    .featured-card-img { height: 180px; }
    .model-card { margin-bottom: 12px; }
    .models-grid { gap: 12px; }
    .section { padding: 24px 0; }
    .section-title { font-size: 20px; margin-bottom: 12px; }
    .hero { min-height: 50vh; }
}

/* ═══════════════════════════════════════════════
   ADDITIONAL BADGES & ALERTS
   ═══════════════════════════════════════════════ */
.alert-warn {
    background: #fef3cd; color: #856404; border: 1px solid #ffeaa7;
    padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; font-size: 14px;
}
.badge-info { background: #dbeafe; color: #1d4ed8; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-warn { background: #fef3cd; color: #92400e; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-error { background: #fee2e2; color: #dc2626; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }


/* ═══════════════════════════════════════════════
   ADMIN USED TRAILERS — VISUAL CARD GRID
   ═══════════════════════════════════════════════ */
.ut-list-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.ut-list-stats { display: flex; gap: 16px; align-items: center; }
.ut-stat {
    font-size: 14px; color: var(--text-secondary); font-weight: 500;
}
.ut-stat-active { color: var(--success); font-weight: 600; }

.ut-card-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.ut-card {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ut-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-1px);
}
.ut-card-thumb {
    display: block; position: relative; height: 180px;
    background: #e8ecf0; overflow: hidden;
}
.ut-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.ut-no-photo {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; color: #a0aec0; gap: 4px;
}
.ut-no-photo span { font-size: 13px; font-weight: 500; }
.ut-photo-count {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 10px;
}
.ut-photo-count::before { content: "\1F4F7 "; font-size: 10px; }
.ut-photo-missing { background: #dc2626; }
.ut-featured-star {
    position: absolute; top: 8px; left: 8px;
    color: #f59e0b; font-size: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.ut-card-body { padding: 12px 14px; }
.ut-card-title a {
    font-weight: 600; font-size: 15px; color: var(--text-primary);
    text-decoration: none; display: block; margin-bottom: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ut-card-title a:hover { color: var(--brand-primary); }
.ut-card-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ut-card-price {
    font-size: 17px; font-weight: 700; color: var(--brand-primary);
}
.ut-card-stock {
    font-size: 12px; color: var(--text-muted); margin-top: 4px;
}
.ut-card-actions {
    padding: 0 14px 12px; display: flex; gap: 8px;
}
.ut-empty {
    grid-column: 1 / -1; text-align: center; padding: 48px 20px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .ut-card-grid { grid-template-columns: 1fr; }
    .ut-card-thumb { height: 200px; }
    .ut-list-header { flex-direction: column; align-items: stretch; }
    .ut-list-header .btn { text-align: center; }
}


/* ═══════════════════════════════════════════════
   ADMIN USED TRAILER — EDIT PAGE PHOTO MANAGEMENT
   ═══════════════════════════════════════════════ */
.ed-photo-section { margin-bottom: 0; }
.ed-photo-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.ed-photo-header h3 { margin: 0; }
.ed-photo-add-btns { display: flex; gap: 8px; }
.ed-camera-btn, .ed-upload-btn {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.ed-camera-btn input, .ed-upload-btn input { display: none; }
.ed-photo-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px; min-height: 80px;
}
.ed-photo-item {
    position: relative; border-radius: 8px; overflow: hidden;
    aspect-ratio: 4/3; background: #e8ecf0;
}
.ed-photo-item img {
    width: 100%; height: 100%; object-fit: cover;
}
.ed-photo-remove {
    position: absolute; top: 4px; right: 4px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(220,38,38,0.85); color: #fff; border: none;
    font-size: 16px; cursor: pointer; display: flex; align-items: center;
    justify-content: center; opacity: 0; transition: opacity 0.15s;
}
.ed-photo-item:hover .ed-photo-remove { opacity: 1; }
.ed-photo-empty {
    grid-column: 1 / -1; text-align: center; padding: 32px 16px;
    color: var(--text-muted); font-size: 14px;
    border: 2px dashed var(--border); border-radius: 8px;
}
.ed-upload-status {
    font-size: 13px; margin-top: 8px; min-height: 20px;
}
.ed-upload-status.uploading { color: var(--brand-primary); }
.ed-upload-status.success { color: var(--success); }
.ed-upload-status.error { color: var(--danger); }
.ed-form-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
.ed-danger-zone {
    border-color: #fca5a5;
}

@media (max-width: 600px) {
    .ed-photo-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
    .ed-photo-remove { opacity: 1; }
    .ed-form-row { grid-template-columns: 1fr; }
    .ed-photo-header { flex-direction: column; gap: 8px; align-items: stretch; }
    .ed-photo-add-btns { justify-content: stretch; }
    .ed-photo-add-btns label { flex: 1; text-align: center; justify-content: center; }
}


/* ═══════════════════════════════════════════════
   ADMIN INSIGHTS DASHBOARD
   ═══════════════════════════════════════════════ */
.insight-actions-bar {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.insight-action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: 8px; font-size: 14px;
    font-weight: 500; text-decoration: none; transition: background 0.15s;
}
.insight-action.warn {
    background: #fef3cd; color: #92400e; border: 1px solid #fde68a;
}
.insight-action.warn:hover { background: #fde68a; }
.insight-action.info {
    background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe;
}
.insight-action.info:hover { background: #bfdbfe; }
.insight-action.success {
    background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0;
}

.insight-grid-4 {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.insight-grid-3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.insight-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.insight-mini-stat { text-align: center; }
.insight-mini-stat .stat-value { font-size: 22px; display: block; }
.insight-mini-stat .stat-label { font-size: 11px; }

/* Stat card color variants */
.stat-success { border-left: 3px solid var(--success); }
.stat-warn { border-left: 3px solid var(--warning); }
.stat-danger { border-left: 3px solid var(--danger); }

/* Category bars */
.insight-bar-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.insight-bar-label {
    width: 100px; font-size: 13px; font-weight: 500; color: var(--text-primary);
    flex-shrink: 0; text-align: right;
}
.insight-bar-track {
    flex: 1; height: 16px; background: var(--bg-elevated); border-radius: 8px;
    overflow: hidden;
}
.insight-bar-fill {
    height: 100%; background: var(--brand-primary); border-radius: 8px;
    transition: width 0.4s ease;
}
.insight-bar-value {
    font-size: 12px; color: var(--text-muted); width: 110px; flex-shrink: 0;
}

/* Condition chips */
.insight-cond-grid {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
}
.insight-cond-chip {
    padding: 8px 16px; border: 2px solid; border-radius: 20px;
    font-size: 14px; font-weight: 600;
}

/* Funnel */
.insight-funnel {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; margin-top: 12px;
}
.insight-funnel-step {
    display: flex; justify-content: space-between; width: 100%;
    padding: 8px 0;
}
.funnel-label { font-size: 14px; color: var(--text-secondary); }
.funnel-value { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.insight-funnel-arrow { color: var(--text-muted); font-size: 14px; }

/* Event rows */
.insight-event-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.insight-event-row:last-child { border-bottom: none; }
.insight-event-row span { color: var(--text-secondary); }
.insight-event-row strong { color: var(--text-primary); }

@media (max-width: 768px) {
    .insight-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .insight-grid-2 { grid-template-columns: 1fr; }
    .insight-bar-label { width: 70px; font-size: 12px; }
    .insight-bar-value { width: 80px; font-size: 11px; }
    .insight-actions-bar { flex-direction: column; }
}
@media (max-width: 480px) {
    .insight-grid-4 { grid-template-columns: 1fr 1fr; }
    .insight-grid-3 { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════
   SOCIAL SHARE BUTTONS
   ═══════════════════════════════════════════════ */
.share-row {
    display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.btn-share {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: 8px; font-size: 14px;
    font-weight: 500; border: none; cursor: pointer; text-decoration: none;
    transition: background 0.15s;
}
.btn-share-fb {
    background: #1877f2; color: #fff;
}
.btn-share-fb:hover { background: #166fe5; }
.btn-share-link {
    background: var(--bg-elevated); color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-share-link:hover { background: var(--border-light); }
/* Compact share in admin cards */
.ut-card-actions .btn-share-fb {
    padding: 6px 12px; font-size: 12px; border-radius: 6px;
}


/* ═══════════════════════════════════════════════
   LEGAL PAGES (Terms, Privacy)
   ═══════════════════════════════════════════════ */
.legal-page {
    max-width: 800px; padding: 40px 20px;
}
.legal-page h1 {
    font-size: 28px; margin-bottom: 4px; color: var(--text-heading);
}
.legal-updated {
    font-size: 13px; color: var(--text-muted); margin-bottom: 32px;
}
.legal-section {
    margin-bottom: 28px;
}
.legal-section h2 {
    font-size: 18px; font-weight: 600; color: var(--text-heading);
    margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}
.legal-section p {
    font-size: 15px; line-height: 1.7; color: var(--text-secondary);
    margin-bottom: 10px;
}
.legal-section ul {
    padding-left: 20px; margin-bottom: 12px;
}
.legal-section li {
    font-size: 15px; line-height: 1.7; color: var(--text-secondary);
    margin-bottom: 6px;
}
.legal-section a {
    color: var(--brand-primary); text-decoration: underline;
}

/* Terms checkbox on checkout */
.terms-checkbox {
    margin: 16px 0; padding: 12px 16px;
    background: var(--bg-elevated); border-radius: 8px;
    border: 1px solid var(--border-light);
}
.terms-checkbox label {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    font-size: 14px; color: var(--text-secondary); line-height: 1.5;
}
.terms-checkbox input[type="checkbox"] {
    margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0;
    accent-color: var(--brand-primary);
}
.terms-checkbox a {
    color: var(--brand-primary); text-decoration: underline;
}

/* Footer legal links */
.footer-legal {
    display: flex; gap: 16px; flex-wrap: wrap;
}
.footer-legal a {
    color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: none;
}
.footer-legal a:hover {
    color: rgba(255,255,255,0.8); text-decoration: underline;
}
