/* =========================================
   1. THEME VARIABLES
   ========================================= */
:root {
    --primary: #064e3b;       /* Deep Forest Green */
    --primary-light: #059669; /* Emerald */
    --accent: #f59e0b;        /* Amber Gold */
    --accent-hover: #d97706;  
    
    --text-main: #0f172a;     /* Dark Slate */
    --text-muted: #64748b;    /* Cool Grey */
    --text-light: #f8fafc;    /* Off-white */

    --bg-body: #f1f5f9;       /* Light cool grey */
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 0% 0%, rgba(5, 150, 105, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    margin: 0; padding: 0; line-height: 1.6;
    display: flex; flex-direction: column; min-height: 100vh;
}

main { flex: 1; } /* Pushes footer to bottom */

h1, h2, h3, h4 { color: var(--text-main); font-weight: 800; letter-spacing: -0.03em; margin-top: 0; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* Touch feedback: subtle tap highlight on mobile */
a, button, .btn, .share-card-btn, .mobile-menu-link, .mobile-menu-store,
.category-card, .condition-btn, .location-btn, .payout-method-btn,
.pickup-week-card, .store-option {
    -webkit-tap-highlight-color: rgba(6, 78, 59, 0.1);
    touch-action: manipulation;
}

/* --- COMPONENTS --- */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: var(--card-border); border-radius: 24px;
    padding: 30px; box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); }
.card.no-hover:hover { transform: none; box-shadow: var(--glass-shadow); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: all 0.2s; border: none; gap: 8px;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* Google Sign-In button */
.btn-google {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    background: #fff; color: #3c4043; border: 1px solid #dadce0;
    text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.btn-google:hover { background: #f8f9fa; border-color: #c6c9cc; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.btn-google svg { flex-shrink: 0; width: 18px; height: 18px; }

/* --- INPUTS --- */
input, select, textarea {
    width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1;
    border-radius: 10px; font-size: 1rem; background: rgba(255,255,255,0.8);
    transition: all 0.2s; font-family: inherit;
}
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.1); background: white; }
label { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; margin-top: 15px; }

/* --- NAV & FOOTER --- */
header.site-header {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px);
    padding: 15px 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 20px;
    width: 100%;
    min-width: max-content;
}
header .header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}
header .header-center {
    display: flex;
    justify-content: center;
    position: relative;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 1.5rem;
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile menu panel - hidden on desktop, only visible in narrow-viewport media query */
.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    visibility: visible;
    pointer-events: auto;
}
.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1rem;
}
.mobile-menu-link:hover {
    color: var(--primary);
}
.mobile-menu-logout {
    color: #dc2626;
}
.mobile-menu-logout:hover {
    color: #b91c1c;
}
.mobile-menu-link i {
    width: 24px;
    text-align: center;
    color: var(--primary);
}
.mobile-menu-store {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
    font-size: 1rem;
}
.mobile-menu-store:hover {
    color: var(--primary);
}
.mobile-menu-store i:first-child {
    width: 24px;
    text-align: center;
    color: var(--primary);
}
.mobile-menu-store .fa-chevron-down {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.mobile-store-dropdown {
    padding: 0 0 8px 36px;
    background: #f8fafc;
    margin: -1px 0 8px;
}
.mobile-store-dropdown .store-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.2s;
}
.mobile-store-dropdown .store-option:hover {
    background: transparent;
    color: var(--primary);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}
.nav-links a { font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.nav-links a:hover { color: var(--primary); }
.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-icon {
    display: flex;
    align-items: center;
}
/* Store selector hover effect */
#store-selector-container:hover {
    background: white !important;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.1);
}
.store-option:hover {
    background: #f8fafc;
}

footer {
    text-align: center; padding: 60px 20px;
    background: #e2e8f0; color: var(--text-muted);
    border-top: 1px solid #cbd5e1; margin-top: auto;
}
footer a { margin: 0 15px; font-weight: 600; color: var(--primary); }

/* --- GRIDS & UTILS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.grid-inventory { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

.badge { padding: 6px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.bg-green { background: #dcfce7; color: #15803d; }
.bg-red { background: #fee2e2; color: #991b1b; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.admin-table th { text-align: left; padding: 15px; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; border-bottom: 2px solid #e2e8f0; }
.admin-table td { padding: 15px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }

/* --- TIMELINE STYLES (How It Works - Campus Swap Green) --- */
.timeline-section {
    background: var(--primary);
    color: white;
    padding: 80px 40px;
    border-radius: 30px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}
.timeline-section h2, .timeline-section h3 { color: white; }
.timeline-section p { color: rgba(255, 255, 255, 0.9); }
.timeline-section a { color: var(--accent); }
.timeline-section a:hover { color: #fbbf24; }

.timeline-section .timeline-line {
    background: rgba(255, 255, 255, 0.25);
}
.timeline-section .step-icon {
    background: white;
    color: var(--accent);
    border: 4px solid rgba(255, 255, 255, 0.5);
}
.timeline-section .step-icon i {
    color: var(--accent);
}

/* Become a Seller timeline - step dates */
.timeline-seller .step-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.timeline-line {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: rgba(0,0,0,0.08); transform: translateX(-50%);
}
.step-icon {
    width: 60px; height: 60px; background: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white; border: 4px solid #e2e8f0;
    z-index: 2; position: relative;
}

/* --- ANIMATIONS --- */
.reveal { opacity: 0; }
.fade-up.active { animation: fadeInUp 0.8s forwards; }
.slide-left.active { transform: translateX(0); opacity: 1; transition: 1s; }
.slide-right.active { transform: translateX(0); opacity: 1; transition: 1s; }
.slide-left { transform: translateX(-50px); }
.slide-right { transform: translateX(50px); }

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

/* --- RESPONSIVE DESIGN --- */
/* Narrow viewport: show hamburger menu (based on screen/window size, not device) */
@media (max-width: 950px) {
    header.site-header {
        padding: 10px 16px;
        display: flex !important;
        grid-template-columns: unset;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        min-height: auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .nav-desktop {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    .header-left {
        flex: 1;
        min-width: 0;
        justify-content: flex-start;
    }
    .header-center {
        flex: 0 0 auto;
    }
    .mobile-menu-btn {
        flex: 1;
        justify-content: flex-end;
    }
    .header-left .logo span {
        font-size: 1rem !important;
    }
    .logo img {
        height: 36px !important;
    }
    #store-dropdown {
        left: 50% !important;
        transform: translateX(-50%);
        min-width: 180px;
    }
    .mobile-menu {
        display: block;
    }
}

/* Very narrow: hide store selector in header, it moves to hamburger menu */
@media (max-width: 700px) {
    .header-store-section {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Additional mobile tweaks - header/nav already handled at 950px breakpoint */
    /* Form inputs: 16px prevents iOS zoom on focus */
    input, select, textarea {
        font-size: 16px;
    }
    /* Container */
    .container {
        padding: 20px 15px;
    }
    
    /* Typography */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    
    /* Cards */
    .card {
        padding: 20px;
        border-radius: 16px;
    }
    
    /* Grids */
    .grid-inventory {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer */
    footer {
        padding: 40px 15px;
    }
    footer a {
        display: block;
        margin: 8px 0;
    }
    
    /* Timeline: stack steps on mobile so "Go Home, Get Paid" etc. aren't squished */
    .timeline-section {
        padding: 40px 20px;
    }
    .timeline-line {
        display: none; /* Line overlaps centered text on mobile */
    }
    .timeline-section > div,
    .timeline-inner {
        padding-left: 0 !important;
    }
    .timeline-step {
        flex-direction: column !important;
        text-align: center;
        padding: 0 10px;
        margin-bottom: 40px !important;
    }
    .timeline-step:last-child {
        margin-bottom: 0 !important;
    }
    .timeline-step .step-icon {
        margin: 12px auto;
        order: -1;
    }
    .timeline-step-text {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .timeline-step .timeline-step-text h3 {
        margin-bottom: 8px;
    }
    .timeline-step .timeline-step-text p {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .timeline-step > div:not(.step-icon):not(.timeline-step-text) {
        display: none;
    }
    
    /* Admin table */
    .admin-table {
        font-size: 0.85rem;
    }
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    /* Prevent header/body width mismatch on small screens */
    body {
        overflow-x: hidden;
    }
    /* Inventory grid: prevent horizontal scroll on 320px devices */
    .grid-inventory {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    /* Hero - extend to fill viewport below header */
    .hero-wrapper {
        min-height: calc(100vh - 100px);
        padding-top: 16px;
    }
    .hero-title {
        font-size: 2.5rem !important;
    }
    .hero-sentence {
        font-size: 1.2rem !important;
        flex-direction: column;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    .wizard-nav .btn,
    .wizard-nav .btn-primary {
        width: auto;
        flex: 0 0 auto;
    }
    .wizard-nav {
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    /* Forms */
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Grid splits */
    .grid-split {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    /* Store selector on very small screens */
    #store-selector-container {
        padding: 6px 10px;
        min-width: auto;
        font-size: 0.8rem;
    }
    #store-selector-container span {
        font-size: 0.8rem;
    }
    #store-selector-container i.fa-map-marker-alt {
        font-size: 0.8rem;
    }
    #store-selector-container i.fa-chevron-down {
        font-size: 0.7rem;
    }
    #store-dropdown {
        left: 50% !important;
        transform: translateX(-50%);
        min-width: 180px;
    }
    .store-option:hover {
        background: #f8fafc;
    }
}

/* =========================================
   SELLER DASHBOARD
   ========================================= */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}
.dashboard-layout-no-sidebar { grid-template-columns: 1fr; }
@media (max-width: 900px) {
    .dashboard-layout { grid-template-columns: 1fr; }
}

.dashboard-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.dashboard-stat {
    flex: 1;
    min-width: 140px;
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: var(--glass-shadow);
}
.dashboard-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.dashboard-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; }
.dashboard-stat-pickup { min-width: 180px; }
.dashboard-stat-pickup-with-upgrade { min-width: 260px; flex: 1 1 280px; }
.dashboard-stat-upgrade {
    min-width: 180px;
    background: #dcfce7;
    border-color: #86efac;
    border-left: 4px solid #15803d;
}

.dashboard-section {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.dashboard-section.no-hover:hover { transform: none; box-shadow: var(--glass-shadow); }
.dashboard-section-title { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.dashboard-section-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

.dashboard-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}
.dashboard-item-card { border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; transition: all 0.2s; }
.dashboard-item-card.pending { border-color: #3b82f6; }
.dashboard-item-card.live { border-color: #bbf7d0; background: #f0fdf4; }
.dashboard-item-card.sold { opacity: 0.85; }
.dashboard-item-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dashboard-item-card.sold .dashboard-item-thumb { filter: grayscale(60%); }
.dashboard-item-info { padding: 10px; }
.dashboard-item-price { font-weight: 700; font-size: 0.95rem; color: var(--primary); }
.dashboard-item-desc { font-size: 0.75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-item-badge { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }
.dashboard-item-badge.edit { background: rgba(59, 130, 246, 0.95); color: white; }
.dashboard-item-badge.sold { background: #15803d; color: white; }

/* Personal shop grid - small squares with mini checklist */
.dashboard-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    align-items: start;
}
.dashboard-item-square {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    background: var(--card-bg);
}
.dashboard-item-square.item-card-bg-green { background: #f0fdf4; border-color: #bbf7d0; }
.dashboard-item-square.item-card-bg-yellow { background: #fffbeb; border-color: #fef3c7; }
.dashboard-item-square.item-card-bg-red { background: #fef2f2; border-color: #fecaca; }
.dashboard-item-square-inner { display: block; }
.dashboard-item-square-img {
    aspect-ratio: 1;
    overflow: hidden;
}
.dashboard-item-square-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.dashboard-item-square-placeholder {
    width: 100%; height: 100%; background: #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.5rem;
}
.dashboard-item-square-body { padding: 10px; }
.dashboard-item-square-header {
    display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px;
}
.dashboard-item-square-price { font-size: 1rem; font-weight: 800; color: var(--text-main); }
.price-change-badge {
    font-size: 0.55rem; font-weight: 700; padding: 2px 5px; border-radius: 4px;
    background: #fef3c7; color: #92400e; cursor: pointer; flex-shrink: 0;
    white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    transition: background 0.2s, color 0.2s;
}
.price-change-badge:hover { background: #fde68a; color: #78350f; }
.dashboard-item-type { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 8px; }
.dashboard-item-square-desc {
    font-size: 0.75rem; color: var(--text-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-bottom: 8px;
}
.dashboard-item-checklist {
    list-style: none; margin: 0; padding: 0; font-size: 0.68rem; font-weight: 600;
}
.dashboard-item-checklist li { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.dashboard-item-checklist .check-done { color: #15803d; }
.dashboard-item-checklist .check-pending { color: #78716c; }
.dashboard-item-checklist .check-fail { color: #991b1b; }
.dashboard-item-checklist i { font-size: 0.6rem; flex-shrink: 0; }
.dashboard-item-sold-overlay {
    position: absolute; inset: 0; background: rgba(255,255,255,0.75); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center; z-index: 10;
    pointer-events: none;
}
.dashboard-item-sold-overlay span {
    color: #dc3545; font-weight: 900; font-size: 1.1rem; border: 3px solid #dc3545;
    padding: 6px 14px; transform: rotate(-12deg); text-transform: uppercase;
}
.dashboard-add-item-btn { width: 100%; margin-top: 20px; }

/* Sidebar pay card - compact */
.dashboard-sidebar-pay-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.dashboard-sidebar { position: sticky; top: 100px; }
.dashboard-sidebar .card { margin-bottom: 16px; }
.dashboard-quick-link { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: white; border: 1px solid #e2e8f0; color: var(--text-main); font-weight: 600; text-decoration: none; transition: all 0.2s; margin-bottom: 10px; }
.dashboard-quick-link:hover { border-color: var(--primary); background: #f0fdf4; color: var(--primary); }
.dashboard-sidebar-status { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.dashboard-sidebar-status.ready { color: #15803d; }
.dashboard-sidebar-status.warn { color: #d97706; }

.claim-space-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
}
.claim-space-card.pod { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: var(--primary); }

/* Receipt modal */
.dashboard-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.dashboard-modal { max-width: 440px; width: 100%; background: white; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); overflow: hidden; }
.dashboard-receipt-header { padding: 24px; border-bottom: 1px solid #e2e8f0; }
.dashboard-receipt-body { padding: 24px; }
.dashboard-receipt-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.95rem; }
.dashboard-receipt-divider { height: 1px; background: #e2e8f0; margin: 16px 0; }
.dashboard-receipt-total { font-size: 1.25rem; font-weight: 800; color: var(--primary); padding-top: 8px; }
.pickup-week-grid { display: flex; flex-direction: column; gap: 12px; }
.pickup-week-card {
    display: block;
    padding: 20px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.pickup-week-card:hover { border-color: #cbd5e1; background: #f8fafc; }
.pickup-week-card:has(input:checked) {
    border-color: var(--primary);
    background: #dcfce7;
}
.pickup-week-card input { position: absolute; opacity: 0; pointer-events: none; }
.pickup-week-label { font-weight: 600; font-size: 1rem; }
.pod-selection-card { padding: 16px; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 12px; }

.guest-mode-card { background: #fffbeb; border: 2px solid #f59e0b; color: #92400e; }
@media (max-width: 480px) {
    .guest-mode-card form { flex-direction: column !important; align-items: stretch !important; }
    .guest-mode-card form input[type="password"] { min-width: 0 !important; }
}
.action-required-card { background: #fffbeb; border: 2px solid #f59e0b; color: #92400e; }

/* Listing modal (item popup in My Shop) */
.listing-modal { max-width: 560px; max-height: 90vh; overflow-y: auto; }
.listing-modal-body { padding: 0 24px 24px; }
.listing-modal-source { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; }
.listing-modal-gallery { border-radius: 12px; overflow: hidden; background: #f8fafc; aspect-ratio: 1; }
.listing-modal-main-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-modal-placeholder { width: 100%; height: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 2rem; }
.listing-modal-details { min-width: 0; }
@media (max-width: 480px) {
    .listing-modal-source { grid-template-columns: 1fr; }
}

/* Dashboard responsive */
@media (max-width: 768px) {
    .dashboard-stats-bar { gap: 12px; margin-bottom: 20px; }
    .dashboard-stat { min-width: 100%; }
    .dashboard-stat-value { font-size: 1.25rem; }
    .dashboard-sidebar { position: static; }
    .dashboard-inventory-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
    .dashboard-shop-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
    .dashboard-modal { max-height: 90vh; overflow-y: auto; }
    .dashboard-receipt-header, .dashboard-receipt-body { padding: 20px; }
}

/* Share modal (product page) */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.share-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}
.share-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
}
.share-modal-close:hover { color: var(--text-main); }
.share-modal-body { padding: 24px; }
.share-modal-preview {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
}
.share-modal-preview img { max-height: 400px; }
.share-modal-loading {
    color: var(--text-muted);
    font-size: 1rem;
}
.share-modal-error {
    color: #dc2626;
    font-size: 0.95rem;
}
.share-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.share-modal-actions .btn { flex: 1; min-width: 100px; }