/* ==========================================
   Choose Lokal Premium Design System
   Vanilla CSS Styling Framework
   ========================================== */

/* Design Tokens & Theme Variables */
:root {
    /* ============================================================
       COLOR SCHEMA  -  EDIT HERE TO RE-THEME THE ENTIRE APP
       Each brand color is defined once by its HSL channels. Every
       button, tint, glow and border in this file is derived from
       these tokens, so changing a hue / saturation / lightness
       re-skins the whole app from this one block.
       ============================================================ */

    /* --- Brand: Primary (Industrial Teal) --- */
    --primary-h: 190;
    --primary-s: 80%;
    --primary-l: 34%;
    --primary-hsl: var(--primary-h), var(--primary-s), var(--primary-l);
    --primary-color: hsl(var(--primary-hsl));
    --primary-hover: hsl(var(--primary-h), 82%, 27%);
    --primary-glow: hsla(var(--primary-hsl), 0.15);

    /* --- Brand: Secondary (Forest Green - availability / success) --- */
    --secondary-h: 152;
    --secondary-s: 52%;
    --secondary-l: 33%;
    --secondary-hsl: var(--secondary-h), var(--secondary-s), var(--secondary-l);
    --secondary-color: hsl(var(--secondary-hsl));
    --secondary-glow: hsla(var(--secondary-hsl), 0.15);

    /* --- Brand: Danger (Alert Red) --- */
    --danger-h: 0;
    --danger-s: 72%;
    --danger-l: 50%;
    --danger-hsl: var(--danger-h), var(--danger-s), var(--danger-l);
    --danger-color: hsl(var(--danger-hsl));
    --danger-hover: hsl(var(--danger-h), 70%, 43%);
    --danger-border: hsl(var(--danger-h), var(--danger-s), 55%);

    /* --- Neutral surfaces (light / daylight ramp) --- */
    --bg-main: #eef2f5;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f3f6f8;
    --bg-surface-raised: #e7eef1;
    --surface-translucent: rgba(244, 247, 249, 0.85);
    --spotlight-from: #f4f8fa;
    --spotlight-to: #e7eef2;

    /* --- Text --- */
    --text-primary: #102029;
    --text-secondary: #4d616b;
    --text-muted: #7e909b;
    --text-on-accent: hsl(0, 0%, 100%);

    /* --- Utility channels for translucent overlays / shadows --- */
    --overlay-hsl: 205, 30%, 24%;   /* dark slate: hairline borders & subtle tints on light */
    --shadow-hsl: 210, 24%, 32%;    /* desaturated slate: soft drop shadows on light */

    /* --- Borders & glass --- */
    --border-color: hsla(var(--overlay-hsl), 0.12);
    --border-color-hover: hsla(var(--overlay-hsl), 0.22);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-blur: blur(16px);

    /* --- Typography & shape --- */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 24px;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    /* Smoothly scroll in-page anchor links instead of jumping, and offset the
       landing point so section headings clear the sticky 70px header. */
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Header Styles */
.app-header {
    height: 70px;
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
}

/* Header navigation */
.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.header-nav-link:hover {
    color: var(--text-primary);
}

.logo i {
    color: var(--primary-color);
    font-size: 1.6rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.logo .badge {
    font-size: 0.7rem;
    font-family: var(--font-sans);
    background: hsla(var(--primary-hsl), 0.15);
    color: var(--primary-color);
    border: 1px solid hsla(var(--primary-hsl), 0.3);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.location-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-surface-elevated);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.location-status i {
    color: var(--primary-color);
    margin-right: 6px;
}

/* App Layout Grid */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, hsla(var(--primary-hsl), 0.12) 0%, transparent 60%),
        linear-gradient(180deg, var(--spotlight-from) 0%, var(--bg-main) 100%);
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 40px 72px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1px;
    max-width: 760px;
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 44px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 720px;
}

.hero-stat {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Listings Section (full-width, centered) */
.listings-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 40px;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.search-bar i {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius-md);
    padding: 16px 52px 16px 52px;
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition-smooth);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* Hide the native search clear decoration; we render our own styled button */
.search-bar input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-clear {
    position: absolute;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: var(--bg-surface-raised);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-clear:hover {
    background: var(--primary-color);
    color: var(--text-on-accent);
}

.listings-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.verification-pill {
    background: hsla(var(--secondary-hsl), 0.12);
    border: 1px solid hsla(var(--secondary-hsl), 0.25);
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
}

.verification-pill i {
    margin-right: 6px;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Listing Card */
.listing-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 30px hsla(var(--shadow-hsl), 0.4), 0 0 15px hsla(var(--primary-hsl), 0.05);
}

.card-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-surface-raised);
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.listing-card:hover .card-img-container img {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.status-badge.available {
    background: hsla(var(--secondary-hsl), 0.8);
    color: var(--text-on-accent);
    border: 1px solid hsla(var(--secondary-hsl), 0.4);
}

.status-badge.pending_verification {
    background: hsla(var(--primary-hsl), 0.8);
    color: var(--text-on-accent);
    border: 1px solid hsla(var(--primary-hsl), 0.4);
}

.status-badge.sold {
    background: var(--surface-translucent);
    color: var(--text-muted);
    border: 1px solid hsla(var(--overlay-hsl), 0.1);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title-row h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

.spec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-pill {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-footer i {
    color: var(--text-muted);
    margin-right: 4px;
}

/* How It Works Section */
.how-it-works {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.section-heading {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-heading p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.step-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 30px hsla(var(--shadow-hsl), 0.4);
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-md);
    background: hsla(var(--primary-hsl), 0.1);
    border: 1px solid hsla(var(--primary-hsl), 0.25);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.step-number {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

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

.step-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Contact Us Modal */
.contact-feedback {
    font-size: 0.88rem;
    line-height: 1.4;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    background: hsla(var(--danger-h), var(--danger-s), 55%, 0.08);
    border: 1px solid hsla(var(--danger-h), var(--danger-s), 55%, 0.3);
    color: var(--text-primary);
}

.contact-email-fallback {
    margin-top: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-email-fallback a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-email-fallback a:hover {
    color: var(--primary-hover);
}

.contact-success-view {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 0 8px;
}

.contact-success-view .success-icon {
    margin-bottom: 0;
}

.contact-success-view h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.contact-success-view p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 380px;
}

.contact-success-view .primary-btn {
    margin-top: 10px;
}

/* Site Footer */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 56px 40px 28px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 360px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    width: fit-content;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Detail Slider Drawer */
.details-drawer {
    position: fixed;
    top: 70px;
    right: 0;
    width: 480px;
    height: calc(100vh - 70px);
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px hsla(var(--shadow-hsl), 0.6);
    z-index: 90;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.details-drawer.hidden {
    transform: translateX(100%);
}

.details-drawer:not(.hidden) {
    transform: translateX(0);
}

.drawer-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background: hsla(var(--shadow-hsl), 0.5);
    backdrop-filter: blur(4px);
    z-index: 80;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.drawer-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.close-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.drawer-content {
    padding: 30px;
}

/* Detailed Product Layout inside Drawer */
.detail-img-showcase {
    width: 100%;
    height: 260px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.detail-img-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.detail-header .category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.detail-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.detail-price-box {
    background: var(--bg-surface-elevated);
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.detail-price-box .price-tag {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.detail-price-box .status-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 12px 6px;
    font-size: 0.9rem;
}

.specs-table td.label {
    color: var(--text-secondary);
    font-weight: 500;
    width: 45%;
}

.specs-table td.value {
    color: var(--text-primary);
    font-weight: 600;
}

.location-map-container {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.map-header i {
    color: var(--primary-color);
}

.location-map-frame {
    width: 100%;
    height: 220px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: block;
}

.mock-map {
    height: 120px;
    background: radial-gradient(circle at center, var(--spotlight-from) 0%, var(--spotlight-to) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid hsla(var(--overlay-hsl), 0.03);
    position: relative;
    overflow: hidden;
}

.map-pin {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 8px hsla(var(--primary-hsl), 0.3), 0 0 0 20px hsla(var(--primary-hsl), 0.1);
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% { box-shadow: 0 0 0 0 hsla(var(--primary-hsl), 0.4); }
    100% { box-shadow: 0 0 0 15px hsla(var(--primary-hsl), 0); }
}

.concierge-card {
    background: hsla(var(--primary-hsl), 0.04);
    border: 1px dashed hsla(var(--primary-hsl), 0.3);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.concierge-card strong {
    color: var(--text-primary);
}

/* Modals & Overlays */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 1000;
    width: 90%;
    max-width: 540px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: hsla(var(--shadow-hsl), 0.7);
    backdrop-filter: blur(8px);
    z-index: 990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 24px 60px hsla(var(--shadow-hsl), 0.8);
    overflow: hidden;
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-header .close-btn {
    position: static;
}

.modal-body {
    padding: 30px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.material-summary-mini {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.material-summary-mini img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.material-summary-mini h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.material-summary-mini p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.price-highlight {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Forms styling */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

form label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.field-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* The delivery-address group reveals itself when "delivery" is chosen. */
#delivery-address-group:not(.hidden) {
    animation: field-reveal 0.25s ease;
}

@keyframes field-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

form input, form select, form textarea {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition-smooth);
}

form input:focus, form select:focus, form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Remove the up/down spinner arrows on numeric inputs (e.g. price) */
form input[type="number"]::-webkit-outer-spin-button,
form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
form input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Password field with show/hide toggle */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 8px;
    font-size: 0.95rem;
    line-height: 1;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: hsla(var(--primary-hsl), 0.05);
    border: 1px solid hsla(var(--primary-hsl), 0.15);
    padding: 12px;
    border-radius: 6px;
    display: flex;
    gap: 8px;
    line-height: 1.3;
}

.disclaimer-text i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 1px;
}

/* Buttons */
.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.primary-btn.btn-block {
    width: 100%;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

/* Success Modal Style */
.success-card {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--secondary-glow));
}

.success-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.verification-target-msg {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.success-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
    padding: 0 20px;
}

.success-timeline::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    width: 30%;
}

.timeline-step .dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-surface-elevated);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.timeline-step.done .dot {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.timeline-step.done .dot::after {
    content: '✓';
    color: var(--text-on-accent);
    font-weight: 700;
    font-size: 0.8rem;
}

.timeline-step.active .dot {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.timeline-step.active .dot.pulse {
    animation: timelinePulse 1.5s infinite alternate;
}

@keyframes timelinePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 hsla(var(--primary-hsl), 0.4); }
    100% { transform: scale(1.1); box-shadow: 0 0 0 8px hsla(var(--primary-hsl), 0); }
}

.timeline-step .label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.timeline-step.active .label, .timeline-step.done .label {
    color: var(--text-primary);
}

.status-alert-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.status-alert-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-alert-box p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.success-card .primary-btn {
    margin: 0 auto;
}

/* Spinner Animations */
.loading-spinner-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid hsla(var(--overlay-hsl), 0.3);
    border-top: 2px solid var(--text-on-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.hidden {
    display: none !important;
}

/* Utilities */
.btn-block {
    width: 100%;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    .listings-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .app-header {
        padding: 0 20px;
    }
    .header-nav-link {
        display: none;
    }
    .header-actions {
        gap: 12px;
    }
    .hero-inner {
        padding: 60px 20px 52px;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
    .how-it-works {
        padding: 30px 20px 60px;
    }
    .site-footer {
        padding: 44px 20px 24px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
    .form-row {
        flex-direction: column;
        gap: 18px;
    }
    .details-drawer {
        width: 100%;
    }
}

/* ==========================================
   Choose Lokal Admin Portal Styles
   ========================================== */

.admin-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.admin-link-btn:hover {
    background: var(--primary-color);
    color: var(--text-on-accent);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Admin main wrapper: fills the viewport below the header and stacks the tab
   bar above whichever panel (inventory or orders) is active. */
.admin-main {
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    padding: 20px 40px 0;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.admin-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    margin-bottom: -1px;
}

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

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

.tab-count {
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.admin-tab.active .tab-count {
    background: hsla(var(--primary-hsl), 0.18);
    color: var(--primary-hover);
}

.tab-panel {
    flex: 1;
    min-height: 0;
}

.tab-panel.hidden {
    display: none;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    padding: 40px;
    height: 100%;
    overflow: hidden;
}

/* ==========================================
   Requests & Orders board
   ========================================== */
.orders-board {
    padding: 32px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.orders-board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.orders-board-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-board-header h2 i {
    color: var(--primary-color);
}

.orders-board-header p {
    margin-top: 4px;
    font-size: 0.9rem;
}

.orders-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-filter-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 7px;
}

.order-filter-chip:hover {
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

.order-filter-chip.active {
    background: hsla(var(--primary-hsl), 0.14);
    border-color: hsla(var(--primary-hsl), 0.5);
    color: var(--primary-hover);
}

.order-filter-chip .chip-count {
    background: hsla(var(--overlay-hsl), 0.08);
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 0.72rem;
}

.orders-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    align-content: start;
}

.order-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-smooth);
}

.order-card:hover {
    border-color: var(--border-color-hover);
}

.order-card-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.order-card-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.order-card-batch {
    flex: 1;
    min-width: 0;
}

.order-card-batch h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-card-batch .order-card-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Lifecycle status pill: one tint per state, all derived from brand tokens. */
.order-pill {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    align-self: flex-start;
}

.order-pill.requested {
    background: hsla(var(--overlay-hsl), 0.08);
    color: var(--text-secondary);
    border: 1px solid hsla(var(--overlay-hsl), 0.12);
}

.order-pill.contacted_mill {
    background: hsla(210, 80%, 55%, 0.14);
    color: hsl(210, 78%, 40%);
    border: 1px solid hsla(210, 80%, 55%, 0.35);
}

.order-pill.hold_active {
    background: hsla(var(--primary-hsl), 0.16);
    color: var(--primary-hover);
    border: 1px solid hsla(var(--primary-hsl), 0.35);
}

.order-pill.invoice_sent {
    background: hsla(45, 90%, 55%, 0.18);
    color: hsl(40, 90%, 36%);
    border: 1px solid hsla(45, 90%, 50%, 0.4);
}

.order-pill.completed {
    background: hsla(var(--secondary-hsl), 0.18);
    color: hsl(var(--secondary-h), 55%, 30%);
    border: 1px solid hsla(var(--secondary-hsl), 0.4);
}

.order-pill.cancelled {
    background: hsla(var(--danger-hsl), 0.14);
    color: var(--danger-hover);
    border: 1px solid hsla(var(--danger-hsl), 0.32);
}

.order-card-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.85rem;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.order-card-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.order-card-meta-row i {
    color: var(--text-muted);
    width: 15px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.order-card-meta-row a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.order-card-meta-row a:hover {
    color: var(--primary-hover);
}

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

.order-control-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.order-card .order-status-select,
.order-card .order-link-input,
.order-card .order-notes-input {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    padding: 9px 12px;
    transition: var(--transition-smooth);
}

.order-card .order-status-select:focus,
.order-card .order-link-input:focus,
.order-card .order-notes-input:focus {
    outline: none;
    border-color: hsla(var(--primary-hsl), 0.6);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.order-card .order-notes-input {
    resize: vertical;
    min-height: 64px;
    line-height: 1.45;
}

.order-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.order-link-row .order-link-input {
    flex: 1;
}

.order-link-open {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.order-link-open:hover {
    color: var(--primary-hover);
    border-color: hsla(var(--primary-hsl), 0.5);
}

.order-link-open.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.order-card-footer .order-updated {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.order-save-btn {
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
}

.order-save-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.orders-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.orders-empty i {
    font-size: 2.4rem;
    margin-bottom: 14px;
    color: var(--text-muted);
}

.admin-form-section, .admin-list-section {
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

.admin-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.admin-card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card-header h2 i {
    color: var(--primary-color);
}

.specs-section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
}

.specs-section-divider::before, .specs-section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.specs-section-divider span {
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.input-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.admin-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-list-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-list-header h2 i {
    color: var(--primary-color);
}

.admin-listings-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-item-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: var(--transition-smooth);
}

.admin-item-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 4px 20px hsla(var(--shadow-hsl), 0.3);
}

.admin-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.admin-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.admin-item-header h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.admin-item-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.admin-item-meta strong {
    color: var(--text-primary);
}

.admin-item-id {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

.admin-item-actions {
    flex-shrink: 0;
}

.danger-btn {
    background-color: var(--danger-color);
    color: var(--text-on-accent);
    border: 1px solid var(--danger-border);
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.danger-btn:hover {
    background-color: var(--danger-hover);
    box-shadow: 0 0 10px hsla(var(--danger-h), var(--danger-s), 55%, 0.2);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px hsla(var(--shadow-hsl), 0.5);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.toast.success {
    background-color: var(--bg-surface-elevated);
    border-left: 4px solid var(--secondary-color);
    color: var(--text-primary);
}

.toast.error {
    background-color: var(--bg-surface-elevated);
    border-left: 4px solid var(--danger-color);
    color: var(--text-primary);
}

/* Admin Responsive overrides */
@media (max-width: 1024px) {
    /* On small screens the whole admin scrolls as one document instead of each
       panel scrolling inside a fixed-height shell. */
    .admin-main {
        height: auto;
        overflow: visible;
    }
    .admin-tabs {
        padding: 16px 20px 0;
    }
    .admin-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    .admin-form-section, .admin-list-section {
        height: auto;
        overflow: visible;
        padding-right: 0;
    }
    .orders-board {
        padding: 24px 20px;
        overflow-y: visible;
    }
    .orders-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Admin Authentication & Dropzone Uploader
   ========================================== */

.login-body {
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    box-shadow: 0 20px 50px hsla(var(--shadow-hsl), 0.7);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 404 / error page */
.error-card {
    text-align: center;
    align-items: center;
    gap: 10px;
}

.error-page-icon {
    color: var(--primary-color);
    font-size: 2.8rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    margin-bottom: 6px;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.error-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.error-card p {
    line-height: 1.5;
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-header i {
    color: var(--primary-color);
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.login-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.login-footer {
    text-align: center;
    margin-top: 10px;
}

.login-footer a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-footer a:hover {
    color: var(--primary-color);
}

.error-box {
    background-color: hsla(var(--danger-h), var(--danger-s), 55%, 0.08);
    border-left: 4px solid var(--danger-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.error-box i {
    font-size: 1rem;
    flex-shrink: 0;
}

.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-surface-elevated);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary-color);
    background-color: hsla(var(--primary-hsl), 0.03);
    box-shadow: 0 0 15px var(--primary-glow);
}

.upload-dropzone i {
    font-size: 2rem;
    color: var(--primary-color);
}

.upload-dropzone span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.upload-dropzone span strong {
    color: var(--primary-color);
}

.preview-container {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    background-color: var(--bg-surface-elevated);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.preview-container img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.preview-container button {
    align-self: center;
}


