/* ================================================================
   CARFORGE STUDIO — ELITE AUTOMOTIVE DESIGN SYSTEM
   High-octane, dark CAD/workshop aesthetic.
   Precision layouts, responsive CSS grids, and zero circular imports.
   ================================================================ */

:root {
    /* Palette: Premium Dark Automotive Canvas */
    --bg-canvas:         #0c0e12;
    --bg-surface:        #13161c;
    --bg-card:           #161922;
    --bg-card-hover:     #1d212d;
    --bg-input:          #0e1017;
    --bg-elevated:       #212634;

    /* Crisp Precision Borders */
    --border:            #242938;
    --border-light:      #333a4f;
    --border-hover:      #4a5472;
    --border-focus:      #f59e0b;

    /* Automotive Accents */
    --accent-amber:      #f59e0b;
    --accent-amber-glow: rgba(245, 158, 11, 0.25);
    --accent-emerald:    #10b981;
    --accent-red:        #ef4444;
    --accent-blue:       #3b82f6;

    /* Typography */
    --text-primary:      #ffffff;
    --text-secondary:    #cbd5e1;
    --text-muted:        #94a3b8;
    --text-dim:          #64748b;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;

    /* Layout Geometry */
    --container-max:     1240px;
    --nav-height:        68px;
    --radius-sm:         4px;
    --radius-md:         8px;
    --radius-lg:         12px;
}

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

html {
    font-size: 16px;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    background-color: var(--bg-canvas);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(33, 40, 58, 0.45) 0%, transparent 65%),
        radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

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

/* ---- LAYOUT CONTAINERS ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.section {
    padding: 4.5rem 0;
}

/* ---- TYPOGRAPHY ---- */
.monospace {
    font-family: var(--font-mono);
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent-amber);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.page-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.6;
}

/* ---- BUTTON SYSTEM ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-shadow: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b0c10 !important;
    border-color: #f59e0b;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
    color: #000000 !important;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-light);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}
.btn-danger:hover {
    background: var(--accent-red);
    color: #ffffff;
    border-color: var(--accent-red);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
    background: #10b981;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1.15rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

.btn-xs {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* Permanent Navbar Upload CTA Button */
.btn-upload-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber) !important;
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 0.45rem 1.05rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}
.btn-upload-nav:hover {
    background: var(--accent-amber);
    color: #0b0c10 !important;
    border-color: var(--accent-amber);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

/* ---- TOP NAVIGATION (REDESIGNED: CLEAN, PROPORTIONAL, PROFESSIONAL) ---- */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(14, 16, 22, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    color: var(--accent-amber);
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent-amber);
    margin-left: 2px;
}

.brand-badge-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0b0c10;
    background: var(--accent-amber);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    margin-left: 0.25rem;
}

/* Center Links */
.nav-center-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-center-links .nav-link {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-center-links .nav-link:hover,
.nav-center-links .nav-link.active {
    color: var(--text-primary);
}

/* Right Actions */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-right-actions .login-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    transition: color 0.15s ease;
}

.nav-right-actions .login-link:hover {
    color: var(--text-primary);
}

.nav-right-actions .btn-access {
    background: var(--accent-amber);
    color: #0b0c10 !important;
    font-weight: 800;
    border-color: var(--accent-amber);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.nav-right-actions .btn-garage {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b0c10 !important;
    font-weight: 800;
}

.nav-right-actions .btn-upload {
    font-size: 0.76rem;
    padding: 0.4rem 0.85rem;
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--accent-amber);
}
.nav-right-actions .btn-upload:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--accent-amber);
}

.nav-right-actions .btn-admin {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.74rem;
    padding: 0.4rem 0.85rem;
}

.nav-user-cluster {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: 0.35rem;
    padding-left: 0.65rem;
    border-left: 1px solid var(--border);
}

.nav-user-cluster .user-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-user-cluster .nav-link-logout {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-red);
    text-decoration: none;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    transition: background 0.15s ease;
}
.nav-user-cluster .nav-link-logout:hover {
    background: rgba(239, 68, 68, 0.12);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Mobile Navigation Sliding Drawer (#121418) */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.open {
    display: block;
    opacity: 1;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #121418;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.85rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}
.mobile-drawer-close:hover {
    color: var(--text-primary);
}

.mobile-drawer-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-links-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0;
    letter-spacing: 0.04em;
    transition: color 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--accent-amber);
}

.mobile-actions-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mobile-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.5rem;
}

.mobile-user-link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mobile-logout-link {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Global Announcement Banner */
.announcement-bar {
    background: linear-gradient(90deg, #d97706, #f59e0b);
    color: #0b0c10;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    padding: 0.5rem 1rem;
    letter-spacing: 0.06em;
}

/* Flash Messages */
.flash {
    margin: 1.5rem 0 0;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flash--success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent-emerald);
    color: #34d399;
}
.flash--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    color: #f87171;
}

/* ---- HERO SECTION ---- */
.hero {
    position: relative;
    padding: 6.5rem 0 8rem;
    background: #10131a;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    filter: contrast(115%);
    pointer-events: none;
}
.hero-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.45) 0%, rgba(12, 14, 18, 0.98) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 840px;
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-subheadline {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---- TECHNICAL CAPABILITY PILLARS GRID ---- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: -3rem auto 4rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.pillar-card {
    background: #151822;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 1.85rem 1.6rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.12);
}
.pillar-card:hover::before {
    opacity: 1;
}

.pillar-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin: 0.35rem 0 0.65rem;
    text-transform: uppercase;
}

.pillar-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- HOMEPAGE SECTIONS: SHOWROOM & CTA ---- */
.showroom-section {
    padding: 2.5rem 1.5rem 4rem;
}

.showroom-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.showroom-title {
    font-size: 1.8rem;
    margin: 0;
}

.showroom-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

.cta-section {
    padding: 5rem 1.5rem;
    text-align: center;
}

.cta-strip-card {
    max-width: 900px;
    margin: 0 auto;
    border-left: 4px solid var(--accent-amber);
    padding: 3.5rem 2rem;
}

.cta-strip-title {
    font-size: 1.8rem;
    margin: 0.5rem 0 1rem;
}

.cta-strip-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-actions-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---- CHASSIS CATALOG & SHOWROOM GRID ---- */
.chassis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0 4rem;
    width: 100%;
}

.chassis-card {
    background: #151822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.chassis-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-amber);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.15);
}

.chassis-thumb-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: #080a0f;
    overflow: hidden;
}

.chassis-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.chassis-card:hover .chassis-thumb {
    transform: scale(1.05);
}

.chassis-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(12, 14, 18, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent-amber);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}

.chassis-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.chassis-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.chassis-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.chassis-telemetry {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.telemetry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.telemetry-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.telemetry-key {
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.telemetry-val {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

/* ---- FORMS & CONTAINER CARDS ---- */
.form-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.form-card {
    background: #151822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    margin-bottom: 2rem;
}

/* Clean Form Tabs */
.tabs-header {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.35rem;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 0.85rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.tab-btn:hover {
    color: var(--text-primary);
}
.tab-btn.active {
    background: var(--bg-elevated);
    color: var(--accent-amber);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.form-label .required {
    color: var(--accent-amber);
    margin-left: 2px;
}
.form-label .optional {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.75rem;
    margin-left: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.input, select.input, textarea.input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    padding: 0.85rem 1.1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.input:focus, select.input:focus, textarea.input:focus {
    border-color: var(--accent-amber);
    box-shadow: 0 0 0 3px var(--accent-amber-glow);
}
.input::placeholder {
    color: var(--text-dim);
}

.textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

/* File Upload Zone */
.file-drop-zone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    background: rgba(14, 16, 23, 0.6);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.file-drop-zone:hover, .file-drop-zone.dragover {
    border-color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.05);
}

.file-drop-icon {
    margin: 0 auto 0.75rem;
    color: var(--accent-amber);
}

.file-drop-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

.file-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent-emerald);
    color: #34d399;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Data Tables */
.data-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.data-table th {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(39, 44, 58, 0.6);
    color: var(--text-secondary);
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge-premium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border-color: rgba(245, 158, 11, 0.4);
}

.badge-admin {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.badge-suspended {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

/* ---- PRICING TIERS GRID ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
}

.pricing-card {
    background: #151822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
.pricing-card.featured {
    border-color: var(--accent-amber);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, #151822 35%);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55), 0 0 28px rgba(245, 158, 11, 0.14);
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-amber);
}

.pricing-plan-tag {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent-amber);
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
}

.pricing-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.pricing-cost {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.pricing-cycle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
    padding: 0;
}

.pricing-feature-item {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.pricing-feature-item::before {
    content: "✓";
    color: var(--accent-amber);
    font-weight: 900;
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ---- ADMIN COMMAND CENTER ---- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.admin-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.stat-box-val {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.stat-box-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.admin-nav-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.admin-tab {
    padding: 0.85rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.admin-tab.active {
    color: var(--accent-amber);
    border-bottom-color: var(--accent-amber);
}

/* ---- RESPONSIVE MEDIA QUERIES ---- */
@media (max-width: 1100px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .chassis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-center-links,
    .nav-right-actions {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4.5rem 0 5.5rem;
    }
    .hero-headline {
        font-size: 2.2rem;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
        margin-top: 1.5rem;
    }
    .chassis-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }
    .nav-brand .brand-text {
        font-size: 1.05rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .showroom-section {
        padding: 1.75rem 1rem 3rem;
    }

    .showroom-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.15rem;
        margin-bottom: 1.5rem;
    }

    .showroom-title {
        font-size: 1.45rem;
    }

    .showroom-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .showroom-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-strip-card {
        padding: 2.25rem 1.25rem;
    }

    .cta-actions-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .cta-actions-group .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav-brand .brand-text {
        font-size: 0.95rem;
    }
}

