/* ==========================================================================
   Design System & Tokens (Theming)
   ========================================================================== */
:root {
    /* Custom Warm Earthy Palette */
    --primary-color: #331C08;       /* Deep Espresso - Dignified & Strong */
    --primary-light: #664C36;       /* Warm Umber */
    --secondary-color: #CCBEB1;     /* Stone/Taupe - Calm & Neutral */
    --accent-color: #664C36;        /* Warm Brown for primary actions */
    
    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-secondary: #FFD3AC;        /* Light Apricot/Cream - Warm & Comforting */
    --bg-dark: #331C08;
    
    /* Text Colors */
    --text-primary: #331C08;        /* Espresso */
    --text-secondary: #664C36;      /* Brown */
    --text-light: #ffffff;
    
    /* Typography Setup */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Spacing & Borders - More breathing room */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 100px;
    
    /* Shadows - Softer, less 'heavy' */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}


/* ==========================================================================
   Resets & Basics
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.hidden {
    display: none !important;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-green { color: var(--accent-color); }
.ml-1 { margin-left: 8px; }
.mt-1 { margin-top: 16px; }
.w-100 { width: 100%; }
.border-top { border-top: 1px solid rgba(0,0,0,0.05); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--accent-color); /* Indigo for trust */
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1.5px solid #e2e8f0;
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: #cbd5e1;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(79, 70, 229, 0.08); /* Soft indigo bg */
    color: var(--accent-color);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* --- Progress Bar --- */
.progress-container {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: var(--radius-pill);
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    width: 10%; /* Initial width */
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: var(--radius-pill);
}

/* --- Validation Styles --- */
.validation-error {
    color: #e53e3e;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
    animation: fadeIn 0.3s ease;
}
.form-control.invalid {
    border-color: #e53e3e;
    background-color: rgba(229, 62, 62, 0.02);
}
.form-control.valid {
    border-color: var(--accent-color);
}

/* ==========================================================================
   Header & Navigation (Desktop & Mobile)
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    cursor: pointer;
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.desktop-nav ul {
    display: flex;
    gap: 24px;
}

.desktop-nav ul a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.desktop-nav ul a:hover {
    color: var(--secondary-color);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.language-toggle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.language-toggle .active {
    color: var(--primary-color);
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-content {
    width: 100%;
    max-width: 400px;
    padding: 24px;
    text-align: center;
}

.close-menu-btn {
    position: absolute;
    width: 24px;
    height: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 201; /* Above the overlay content */
}

.mobile-nav-content ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-content a {
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-nav-content hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
#app-container {
    margin-top: 70px; /* offset for fixed header */
    min-height: calc(100vh - 300px); /* Fill space minus header/footer Approx */
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
    overflow: hidden;
}

/* Sub-page Hero (Dark Premium) */
.subpage-hero {
    background: linear-gradient(135deg, #111317 0%, #1a1e24 100%);
    color: var(--text-light);
    padding: 100px 0 60px;
    text-align: center;
}

.subpage-hero .hero-title {
    color: var(--text-light);
    margin-bottom: 16px;
}

.subpage-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-secure-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    height: 500px;
    border-radius: var(--radius-lg);
    /* Placeholder for generated image */
    background: url('https://source.unsplash.com/random/800x600/?peace,nature,calm') center/cover no-repeat;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    border-radius: var(--radius-lg);
}

/* Glassmorphism Card Element */
.glass-card {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.blog-card .image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.blog-card .image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 40%);
}

.blog-card .content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--secondary-color);
}

/* --- FAQ Accordion --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    outline: none;
}

.faq-question i {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: #fcfcfc;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.4s ease-in-out;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-answer-inner p {
    margin-bottom: 1rem;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.premium-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 300px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(212, 175, 55, 0.15);
    color: #9e8226;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.premium-stat-card h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 2px;
}

.premium-stat-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 64px 0 24px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h3 {
    color: var(--text-light);
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.link-column h4 {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.link-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-column a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.link-column a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding-top: 24px;
    border-color: rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.container-sm { max-width: 750px; }
.container-lg { max-width: 1400px; }
.section-padding { padding: 60px 0; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 8px; }
.pb-1 { padding-bottom: 16px; }
.pt-1 { padding-top: 16px; }
.text-xs { font-size: 0.8rem; }
.text-yellow { color: #f39c12; }
.border-bottom { border-bottom: 1px solid rgba(0,0,0,0.05); }
.mt-05 { margin-top: 8px; }

.bg-gray { background-color: var(--bg-secondary); }

.form-header {
    margin-bottom: 40px;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    position: relative;
    padding: 0 40px;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}

.wizard-progress .step {
    background-color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 2px solid #e0e0e0;
}

.wizard-progress .step.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-card {
    background: #fff; /* Opaque white for forms */
    border: 1px solid rgba(0,0,0,0.05);
    padding: 48px;
    border-radius: var(--radius-lg);
}

.form-step {
    min-height: 550px; /* Prevent layout jumping */
    display: flex;
    flex-direction: column;
}

.form-step h3 {
    margin-bottom: 32px;
    font-size: 1.75rem;
    line-height: 1.2;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Radio Cards (Selection boxes) */
.radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-card span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.radio-card input:checked + span {
    border-color: var(--primary-color);
    background-color: rgba(44, 62, 80, 0.05);
    color: var(--primary-color);
}

.radio-card span i {
    font-size: 1.5rem;
}

.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* ==========================================================================
   Visual Planner Specifics
   ========================================================================== */
.visual-selection-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
    -webkit-overflow-scrolling: touch;
}

.visual-selection-grid::-webkit-scrollbar {
    height: 6px;
}

.visual-selection-grid::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.visual-card {
    position: relative;
    cursor: pointer;
    display: block;
    flex: 0 0 220px; /* Smaller, fixed width for horizontal scroll */
}

.visual-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.visual-content {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative; /* For info trigger positioning */
}

.visual-card input:checked + .visual-content {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.1);
}

.image-placeholder {
    height: 120px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-secondary);
}

.bg-darker { background-color: #e5e7eb; color: #4b5563; }
.bg-green { background-color: #e6f4ea; color: var(--accent-color); }

.details {
    padding: 16px;
    flex-grow: 1;
}

.details h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.selection-check {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.visual-card input:checked ~ .selection-check {
    opacity: 1;
    transform: scale(1);
}

.font-bold {
    font-weight: bold;
}

/* Info Icon Trigger */
.info-trigger {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.info-trigger:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.info-trigger i {
    font-size: 0.9rem;
}

/* Review Summary Box */
.review-box {
    background-color: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.review-list li span:last-child {
    font-weight: 500;
}

.review-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.total-price {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.partner-handoff-alert {
    background-color: rgba(22, 160, 133, 0.1); /* Light green */
    border: 1px solid rgba(22, 160, 133, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.partner-handoff-alert .icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.partner-handoff-alert h4 {
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* ==========================================================================
   Provider Dashboard (Partner Portal)
   ========================================================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.stats-row {
    display: flex;
    gap: 16px;
}

.stat-pill {
    background-color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.column-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
    background-color: rgba(22, 160, 133, 0.1);
    color: var(--accent-color);
    margin-bottom: 0;
}

.dash-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.dash-card:hover {
    box-shadow: var(--shadow-md);
}

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

.card-header .location {
    font-weight: 600;
    color: var(--primary-color);
}

.card-header .time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-body h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.req-list {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.req-list li {
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
}

.req-list li::before {
    content: "•";
    color: var(--secondary-color);
    margin-right: 8px;
}

.card-footer {
    display: flex;
    gap: 12px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
    flex: 1;
}

.bid-pending {
    border-left: 4px solid #f39c12;
}

.bid-won {
    border-left: 4px solid var(--accent-color);
}

.bid-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================================================================
   Admin Dashboard & System (Super Admin)
   ========================================================================== */
.admin-tabs {
    display: flex;
    gap: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 24px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 8px 0;
}

.stat-trend {
    font-size: 0.85rem;
    font-weight: 500;
}

.system-list li {
    font-size: 0.95rem;
}

/* ==========================================================================
   Media Queries (Responsive Design)
   ========================================================================== */

/* Tablet & Smaller Desktop */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        align-items: center;
    }
    
    .hero-image-wrapper {
        width: 100%;
        height: 400px;
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-image-wrapper {
        height: 300px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .wizard-progress::before {
        left: 20px;
        right: 20px;
    }
}
/* ==========================================================================
   Modals & Interaction
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal-box {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-box {
    transform: scale(1);
}

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

.form-step.active {
    animation: formStepEnter 0.4s ease forwards !important;
}

/* ==========================================================================
   Loading Animations
   ========================================================================== */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Success State Styling --- */
#success-overlay {
    transition: opacity 0.5s ease;
}
.success-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    color: var(--text-primary);
    animation: scaleUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-card i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}
@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Themed Info Box */
.info-box-themed {
    background: rgba(102, 76, 54, 0.08);
    border: 1px solid rgba(102, 76, 54, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.info-box-themed i {
    color: var(--accent-color);
    margin-right: 10px;
}

.radio-card.compact {
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
}

.radio-card.compact i {
    font-size: 1.1rem;
    margin-bottom: 0 !important;
    margin-right: 8px;
}

.radio-card.compact span {
    display: flex;
    align-items: center;
}

/* ==========================================================================
 /* Blog Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.carousel-nav.prev { left: -22px; }
.carousel-nav.next { right: -22px; }

@media (max-width: 1100px) {
    .carousel-nav.prev { left: 5px; }
    .carousel-nav.next { right: 5px; }
}

/* ==========================================================================
   FAQ Accordion & Horizontal Scroller (Landing Page)
   ========================================================================== */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scroll-behavior: smooth;
    padding-left: 2px;
}
.horizontal-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.horizontal-scroll-item {
    flex: 0 0 320px;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item summary {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary-color);
    padding: 2rem;
    cursor: pointer;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '\f078'; /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    font-size: 1rem;
}
.faq-item[open] summary::after {
    transform: rotate(180deg);
}
.faq-item .faq-content {
    padding: 0 2rem 2rem 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeInDown 0.3s ease forwards;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Horizontal Scroll for Blogs */
.horizontal-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}
.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.horizontal-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: var(--radius-pill);
}
.horizontal-scroll-item {
    min-width: 300px;
    max-width: 350px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}
