/* ======================================================
   WEED SHOP SIMULATOR - PHOTO REALISTIC AAA STYLE
   happystoner5420 Games - 2026
   ====================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark: #0a1410;
    --bg-darker: #050a08;
    --panel: #131c18;
    --panel-light: #1c2820;
    --panel-lighter: #283a30;
    --weed-green: #4a8b2c;
    --weed-green-light: #7cc04a;
    --weed-green-dark: #2d5a18;
    --gold: #d4a017;
    --gold-light: #f4c447;
    --gold-dark: #8c6a0e;
    --red: #b22222;
    --red-light: #e74c3c;
    --text: #e8eae0;
    --text-dim: #a0a89c;
    --text-faint: #6a7065;
    --border: rgba(124, 192, 74, 0.2);
    --shadow-deep: 0 20px 60px rgba(0,0,0,0.7);
    --glow-green: 0 0 30px rgba(124, 192, 74, 0.4);
    --glow-gold: 0 0 25px rgba(244, 196, 71, 0.5);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-darker);
    color: var(--text);
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; outline: none; border: none; }
button:disabled { cursor: not-allowed; opacity: 0.5; }

/* ============ SCREENS ============ */
.screen {
    display: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
}
.screen.active { display: flex; }

/* ============ MENU BACKGROUND ============ */
.menu-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 192, 74, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 139, 44, 0.2), transparent 50%),
        linear-gradient(135deg, #0a1410 0%, #051008 50%, #0a1410 100%);
    z-index: 0;
}

.menu-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0, transparent 40px, rgba(124, 192, 74, 0.02) 40px, rgba(124, 192, 74, 0.02) 41px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 60px, rgba(74, 139, 44, 0.015) 60px, rgba(74, 139, 44, 0.015) 61px);
    opacity: 0.6;
}

.menu-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.menu-smoke {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 80%, rgba(180, 200, 160, 0.08), transparent 30%),
        radial-gradient(circle at 70% 20%, rgba(160, 180, 140, 0.06), transparent 35%);
    animation: smokeDrift 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes smokeDrift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(20px, -10px) scale(1.05); opacity: 1; }
}

/* ============ MAIN MENU ============ */
.menu-content {
    position: relative;
    z-index: 2;
    margin: auto;
    text-align: center;
    padding: 40px;
    width: 100%;
    max-width: 600px;
}

.title-wrap {
    position: relative;
    margin-bottom: 50px;
}

.title-leaf {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 20px rgba(124, 192, 74, 0.6));
    animation: leafFloat 4s ease-in-out infinite;
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.game-title {
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(180deg, #b8e088 0%, #7cc04a 40%, #4a8b2c 70%, #2d5a18 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 2px 0 rgba(0,0,0,0.8),
        0 4px 8px rgba(0,0,0,0.6);
    filter: drop-shadow(0 4px 20px rgba(124, 192, 74, 0.4));
    line-height: 1;
    margin-bottom: 5px;
}

.game-subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 18px;
    color: var(--gold-light);
    text-shadow:
        0 2px 0 var(--gold-dark),
        0 4px 6px rgba(0,0,0,0.7),
        0 0 20px rgba(244, 196, 71, 0.5);
    margin-left: 18px;
}

.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(124, 192, 74, 0.3), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 320px;
    margin: 0 auto;
}

.menu-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text);
    background: linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 4px 12px rgba(0,0,0,0.5);
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 192, 74, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-btn:hover {
    border-color: var(--weed-green-light);
    color: var(--weed-green-light);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(124, 192, 74, 0.3),
        0 6px 20px rgba(124, 192, 74, 0.3);
}

.menu-btn:hover::before { left: 100%; }
.menu-btn:active { transform: translateY(0); }

.menu-btn.primary {
    background: linear-gradient(180deg, var(--weed-green) 0%, var(--weed-green-dark) 100%);
    border-color: var(--weed-green-light);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.menu-btn.primary:hover {
    background: linear-gradient(180deg, var(--weed-green-light) 0%, var(--weed-green) 100%);
    box-shadow: var(--glow-green);
}

.menu-btn.danger {
    border-color: rgba(178, 34, 34, 0.4);
}
.menu-btn.danger:hover {
    border-color: var(--red-light);
    color: var(--red-light);
    background: linear-gradient(180deg, rgba(178, 34, 34, 0.2), rgba(178, 34, 34, 0.05));
}

.menu-footer {
    margin-top: 60px;
    color: var(--text-faint);
    font-size: 0.85rem;
    letter-spacing: 2px;
}
.footer-version { margin-top: 6px; font-size: 0.75rem; opacity: 0.7; }

/* ============ INFO PANELS ============ */
.info-panel, .credits-panel, .exit-panel {
    position: relative;
    z-index: 2;
    margin: auto;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    background: linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-deep);
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--gold-light);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 0 20px rgba(244, 196, 71, 0.3);
    border-bottom: 2px solid var(--border);
    padding-bottom: 20px;
}

.info-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 20px 0;
    margin-bottom: 20px;
}

.info-section {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(0,0,0,0.3);
    border-left: 3px solid var(--weed-green);
    border-radius: 4px;
}
.info-section h3 {
    color: var(--weed-green-light);
    font-size: 1.15rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.info-section p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}
.info-section b { color: var(--gold-light); }

/* Credits */
.credits-content {
    flex: 1;
    overflow-y: auto;
    text-align: center;
    padding: 20px 0;
}
.credit-block {
    margin-bottom: 28px;
}
.credit-role {
    font-size: 0.85rem;
    color: var(--text-faint);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.credit-name {
    font-size: 1.3rem;
    color: var(--weed-green-light);
    font-weight: 700;
    letter-spacing: 1px;
}
.credit-name.big {
    font-size: 2rem;
    color: var(--gold-light);
    text-shadow: 0 0 20px rgba(244, 196, 71, 0.4);
}
.credits-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Exit confirm */
.exit-panel { max-width: 500px; text-align: center; }
.exit-panel h2 {
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 16px;
    letter-spacing: 4px;
}
.exit-panel p {
    color: var(--text-dim);
    margin-bottom: 30px;
    line-height: 1.6;
}
.exit-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.exit-buttons .menu-btn { flex: 1; max-width: 180px; }

/* ============ GAME LAYOUT ============ */
#game { flex-direction: column; }

.top-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    background: linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10;
}

.hud-section { display: flex; align-items: center; gap: 24px; }
.hud-section.center { flex: 1; justify-content: center; gap: 36px; }

.hud-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--weed-green-light);
    font-size: 1rem;
}
.hud-logo-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(124, 192, 74, 0.5));
}

.hud-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}
.hud-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-faint);
    text-transform: uppercase;
}
.hud-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}
.hud-value.cash {
    color: var(--gold-light);
    text-shadow: 0 0 8px rgba(244, 196, 71, 0.4);
}
.hud-value.rating { color: var(--gold-light); letter-spacing: 1px; }

.hud-btn {
    padding: 8px 20px;
    background: rgba(178, 34, 34, 0.15);
    color: var(--red-light);
    border: 1px solid rgba(178, 34, 34, 0.4);
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.audio-toggle {
    width: 38px;
    height: 38px;
    background: rgba(124, 192, 74, 0.1);
    color: var(--weed-green-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 6px;
}
.audio-toggle:hover {
    background: rgba(124, 192, 74, 0.25);
    border-color: var(--weed-green-light);
    box-shadow: 0 0 12px rgba(124, 192, 74, 0.3);
}
.audio-toggle.muted {
    background: rgba(178, 34, 34, 0.15);
    color: var(--red-light);
    border-color: rgba(178, 34, 34, 0.5);
    position: relative;
}
.audio-toggle.muted::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--red-light);
    transform: rotate(-45deg);
    box-shadow: 0 0 4px rgba(231, 76, 60, 0.6);
}

.menu-audio {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    justify-content: center;
}
.menu-audio-btn {
    width: auto;
    padding: 10px 18px;
    gap: 10px;
}
.menu-audio-btn span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
}
.hud-btn:hover {
    background: rgba(178, 34, 34, 0.3);
    border-color: var(--red-light);
}

.game-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ============ SIDEBAR ============ */
.sidebar {
    width: 220px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-dark) 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 6px;
    overflow-y: auto;
}

.nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: transparent;
    color: var(--text-dim);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-btn:hover {
    background: rgba(124, 192, 74, 0.08);
    color: var(--text);
}

.nav-btn.active {
    background: linear-gradient(90deg, rgba(124, 192, 74, 0.2), transparent);
    color: var(--weed-green-light);
    border-left-color: var(--weed-green-light);
    box-shadow: inset 0 0 20px rgba(124, 192, 74, 0.1);
}

.nav-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.nav-badge {
    position: absolute;
    right: 12px;
    background: var(--red-light);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.sidebar-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #1a1006;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(212, 160, 23, 0.3);
}
.sidebar-btn:hover {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: var(--glow-gold);
}

/* ============ VIEW AREA ============ */
.view-area {
    flex: 1;
    overflow-y: auto;
    background:
        radial-gradient(ellipse at top, rgba(124, 192, 74, 0.04), transparent 60%),
        var(--bg-dark);
}

.view {
    display: none;
    padding: 24px 32px;
    min-height: 100%;
}
.view.active { display: block; animation: fadeIn 0.3s ease; }

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

.view-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.view-header h2 {
    font-size: 1.8rem;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.view-sub {
    color: var(--text-faint);
    margin-top: 4px;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* ============ SHOP FLOOR ============ */
.shop-floor {
    position: relative;
    width: 100%;
    min-height: 600px;
    background:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.4) 0, rgba(0,0,0,0.4) 2px, transparent 2px, transparent 60px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.4) 0, rgba(0,0,0,0.4) 2px, transparent 2px, transparent 60px),
        linear-gradient(135deg, #2a1f15 0%, #3a2a1c 50%, #2a1f15 100%);
    border: 4px solid #1a1208;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.5);
}

.shop-floor::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(244, 196, 71, 0.15), transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(124, 192, 74, 0.08), transparent 40%);
    pointer-events: none;
}

.shelf {
    position: absolute;
    background: linear-gradient(180deg, #6b4a2a 0%, #4a3520 50%, #2a1f15 100%);
    border: 2px solid #1a1208;
    border-radius: 4px;
    padding: 8px;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.1),
        0 6px 16px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shelf-row {
    flex: 1;
    background: linear-gradient(180deg, #3a2a1c 0%, #1a1208 100%);
    border-radius: 2px;
    display: flex;
    gap: 4px;
    padding: 4px;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

.product-slot {
    flex: 1;
    aspect-ratio: 1;
    max-height: 50px;
    background: rgba(0,0,0,0.4);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.product-slot:hover { transform: scale(1.1); }
.product-slot svg { width: 80%; height: 80%; }

.shelf-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: var(--gold-light);
    padding: 2px 12px;
    border-radius: 2px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    white-space: nowrap;
    border: 1px solid var(--border);
}

.customer {
    position: absolute;
    width: 64px;
    height: 96px;
    transition: left 1.5s ease, top 1.5s ease;
    z-index: 5;
    cursor: pointer;
}
.customer-portrait {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center top;
    border: 3px solid var(--weed-green-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6), 0 0 0 2px var(--bg-dark);
    margin: 0 auto;
}
.customer-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.customer-body {
    width: 50px;
    height: 30px;
    margin: 4px auto 0;
    background: linear-gradient(180deg, #3a4a8a 0%, #1a2a5a 100%);
    border-radius: 8px 8px 4px 4px;
    border: 1px solid #0a1a3a;
}
.customer-mood {
    position: absolute;
    top: -4px;
    right: 0;
    background: var(--bg-darker);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    border: 1px solid var(--border);
    color: var(--weed-green-light);
}
.customer-mood.unhappy { color: var(--red-light); border-color: rgba(178,34,34,0.5); }

.shop-stats {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    z-index: 6;
}
.shop-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 2px 0;
}
.shop-stat-row b { color: var(--gold-light); }

.entrance {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 14px;
    background: linear-gradient(180deg, #4a8b2c 0%, #2d5a18 100%);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -4px 12px rgba(124, 192, 74, 0.3);
}

/* ============ COUNTER ============ */
.counter-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    min-height: 600px;
}

.checkout-stage {
    background: linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-deep);
}

.checkout-customer {
    margin-bottom: 24px;
    text-align: center;
}
.checkout-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center top;
    border: 4px solid var(--weed-green-light);
    box-shadow: 0 0 30px rgba(124, 192, 74, 0.4), 0 8px 24px rgba(0,0,0,0.6);
    margin: 0 auto 12px;
}
.checkout-name {
    font-size: 1.3rem;
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: 1px;
}
.checkout-patience {
    margin-top: 8px;
    width: 200px;
    height: 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.checkout-patience-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--weed-green) 0%, var(--weed-green-light) 100%);
    transition: width 0.3s, background 0.3s;
}

.scanner-area {
    width: 100%;
    background: linear-gradient(180deg, #1a1208 0%, #0a0804 100%);
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #2a1f15;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.7);
    margin-bottom: 16px;
}
.scanner-label {
    color: var(--gold-light);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-align: center;
}
.scanner-belt {
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border: 2px solid #0a0a0a;
    border-radius: 4px;
    padding: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.scan-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.scan-item:hover {
    border-color: var(--weed-green-light);
    box-shadow: 0 0 20px rgba(124, 192, 74, 0.5);
    transform: scale(1.05);
}
.scan-item.scanned {
    border-color: var(--weed-green-light);
    background: rgba(124, 192, 74, 0.2);
    cursor: default;
}
.scan-item.scanned::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--weed-green-light);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
}
.scan-item svg { width: 70%; height: 70%; }

.checkout-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}
.action-btn {
    flex: 1;
    padding: 14px;
    background: linear-gradient(180deg, var(--weed-green) 0%, var(--weed-green-dark) 100%);
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid var(--weed-green-light);
    transition: all 0.2s;
}
.action-btn:hover {
    background: linear-gradient(180deg, var(--weed-green-light) 0%, var(--weed-green) 100%);
    box-shadow: var(--glow-green);
}
.action-btn.gold {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold-light);
    color: #1a1006;
}
.action-btn.gold:hover {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: var(--glow-gold);
}

.checkout-empty {
    text-align: center;
    color: var(--text-faint);
    padding: 80px 20px;
}
.checkout-empty h3 {
    color: var(--text-dim);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.queue-panel {
    background: linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-deep);
}
.queue-title {
    color: var(--gold-light);
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.queue-customer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 3px solid var(--weed-green);
}
.queue-portrait {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-size: cover;
    background-position: center top;
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.queue-info { flex: 1; font-size: 0.85rem; }
.queue-name { color: var(--text); font-weight: 700; }
.queue-items { color: var(--text-faint); font-size: 0.75rem; }

/* ============ STORAGE ============ */
.storage-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.storage-section {
    background: linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-deep);
}
.storage-title {
    color: var(--gold-light);
    letter-spacing: 2px;
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.delivery-box {
    background: linear-gradient(180deg, #8b6914 0%, #5c4408 100%);
    border: 2px solid #2a1f08;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    position: relative;
}
.delivery-box::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(0,0,0,0.4);
}
.delivery-box::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1px;
    background: rgba(0,0,0,0.4);
}
.delivery-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    border-color: var(--gold-light);
}
.box-content-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
}
.box-content-qty {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    position: relative;
    z-index: 1;
}

.inventory-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}
.inv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 3px solid var(--weed-green-dark);
    transition: all 0.2s;
}
.inv-item:hover {
    border-left-color: var(--weed-green-light);
    background: rgba(124, 192, 74, 0.05);
}
.inv-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px;
    flex-shrink: 0;
}
.inv-icon svg { width: 100%; height: 100%; }
.inv-info { flex: 1; }
.inv-name { color: var(--text); font-weight: 700; }
.inv-meta { color: var(--text-faint); font-size: 0.8rem; }
.inv-qty {
    color: var(--gold-light);
    font-size: 1.3rem;
    font-weight: 900;
    margin-right: 12px;
}
.inv-stock-btn {
    padding: 8px 14px;
    background: linear-gradient(180deg, var(--weed-green) 0%, var(--weed-green-dark) 100%);
    color: white;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.inv-stock-btn:hover {
    background: linear-gradient(180deg, var(--weed-green-light) 0%, var(--weed-green) 100%);
}

/* ============ GROW ROOM ============ */
.grow-area {
    background:
        linear-gradient(180deg, rgba(124, 192, 74, 0.08) 0%, transparent 100%),
        linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-deep);
    min-height: 600px;
}

.grow-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.grow-stat {
    background: rgba(0,0,0,0.4);
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    text-align: center;
}
.grow-stat-label {
    font-size: 0.75rem;
    color: var(--text-faint);
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.grow-stat-value {
    font-size: 1.4rem;
    color: var(--weed-green-light);
    font-weight: 700;
}

.grow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grow-pot {
    background:
        radial-gradient(ellipse at top, rgba(124, 192, 74, 0.2), transparent 70%),
        linear-gradient(180deg, #4a3520 0%, #2a1f15 100%);
    border: 2px solid #1a1208;
    border-radius: 8px;
    padding: 20px 16px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.grow-pot:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(124, 192, 74, 0.3);
}
.grow-pot.empty {
    background: linear-gradient(180deg, #2a1f15 0%, #1a1208 100%);
}
.grow-pot.ready {
    box-shadow: 0 0 30px rgba(244, 196, 71, 0.5), inset 0 0 30px rgba(244, 196, 71, 0.1);
    border-color: var(--gold-light);
    animation: readyPulse 2s ease-in-out infinite;
}
@keyframes readyPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(244, 196, 71, 0.5); }
    50% { box-shadow: 0 0 50px rgba(244, 196, 71, 0.8); }
}

.plant-svg {
    width: 100%;
    max-width: 140px;
    height: 140px;
    margin: 8px 0;
}
.pot-svg {
    width: 100%;
    max-width: 100px;
    height: 50px;
}
.plant-strain {
    color: var(--weed-green-light);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.plant-progress {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.5);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.plant-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--weed-green) 0%, var(--weed-green-light) 100%);
    transition: width 0.5s;
}
.plant-stage {
    color: var(--text-faint);
    font-size: 0.75rem;
    margin-top: 6px;
    letter-spacing: 1px;
}
.plant-action-btn {
    margin-top: 8px;
    padding: 6px 14px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #1a1006;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* ============ COMPUTER ============ */
.computer-area {
    background:
        linear-gradient(180deg, rgba(50, 80, 120, 0.1) 0%, transparent 100%),
        linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-deep);
}
.terminal-screen {
    background: linear-gradient(180deg, #001f1a 0%, #002820 50%, #001f1a 100%);
    border: 4px solid #1a1208;
    border-radius: 8px;
    padding: 20px;
    box-shadow: inset 0 0 60px rgba(0,40,30,0.6), 0 0 30px rgba(0,255,100,0.1);
    font-family: 'Consolas', 'Courier New', monospace;
}
.terminal-header {
    color: #4ade80;
    border-bottom: 1px solid rgba(74, 222, 128, 0.3);
    padding-bottom: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.product-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.catalog-item {
    background: rgba(0, 30, 20, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 4px;
    padding: 16px;
    transition: all 0.2s;
}
.catalog-item:hover {
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    background: rgba(0, 50, 30, 0.6);
}
.catalog-icon {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
    padding: 8px;
    margin: 0 auto 12px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}
.catalog-icon svg { width: 100%; height: 100%; }
.catalog-name {
    color: #4ade80;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.catalog-desc {
    color: rgba(74, 222, 128, 0.7);
    font-size: 0.75rem;
    text-align: center;
    margin-bottom: 12px;
    min-height: 30px;
}
.catalog-price {
    color: #fde047;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.order-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
    border-radius: 4px;
    font-weight: 900;
    transition: all 0.2s;
}
.qty-btn:hover { background: rgba(74, 222, 128, 0.4); }
.qty-display {
    flex: 1;
    text-align: center;
    color: #fde047;
    font-weight: 700;
    font-size: 1rem;
}
.order-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
    color: #001a0a;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.order-btn:hover {
    background: linear-gradient(180deg, #86efac 0%, #4ade80 100%);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.6);
}

.terminal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.3);
}
.term-tab {
    padding: 10px 20px;
    background: rgba(0,30,20,0.4);
    color: rgba(74, 222, 128, 0.7);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}
.term-tab:hover { color: #4ade80; }
.term-tab.active {
    background: rgba(0,50,30,0.6);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
    border-bottom-color: rgba(0,50,30,0.6);
    margin-bottom: -1px;
}

.stats-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    color: #4ade80;
}
.stat-card {
    background: rgba(0,30,20,0.6);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 4px;
    padding: 16px;
}
.stat-card-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: rgba(74, 222, 128, 0.7);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.stat-card-value {
    font-size: 1.6rem;
    color: #fde047;
    font-weight: 700;
}

/* ============ UPGRADES ============ */
.upgrades-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.upgrade-card {
    background: linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-deep);
    transition: all 0.2s;
}
.upgrade-card:hover {
    border-color: var(--gold-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7), 0 0 30px rgba(244, 196, 71, 0.2);
}
.upgrade-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 16px;
    border: 2px solid var(--gold-dark);
}
.upgrade-icon svg { width: 100%; height: 100%; }
.upgrade-name {
    color: var(--gold-light);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.upgrade-desc {
    color: var(--text-dim);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 50px;
}
.upgrade-level {
    text-align: center;
    color: var(--weed-green-light);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.upgrade-buy {
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #1a1006;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.2s;
}
.upgrade-buy:hover {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: var(--glow-gold);
}
.upgrade-buy.maxed {
    background: linear-gradient(180deg, var(--weed-green) 0%, var(--weed-green-dark) 100%);
    color: white;
    cursor: default;
}

/* ============ NOTIFICATIONS ============ */
.notifications {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.notification {
    background: linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 14px 20px;
    min-width: 280px;
    box-shadow: var(--shadow-deep);
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 3.5s forwards;
    pointer-events: all;
}
.notification.success {
    border-color: var(--weed-green-light);
    box-shadow: 0 0 20px rgba(124, 192, 74, 0.3);
}
.notification.warning { border-color: var(--gold-light); }
.notification.error { border-color: var(--red-light); }
.notification.info { border-color: rgba(100, 150, 200, 0.6); }

.notif-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: 1px;
    font-size: 0.95rem;
}
.notif-msg {
    color: var(--text-dim);
    font-size: 0.85rem;
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* ============ MODAL ============ */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-backdrop.active { display: flex; }

.modal {
    background: linear-gradient(180deg, var(--panel-light) 0%, var(--panel) 100%);
    border: 2px solid var(--gold-light);
    border-radius: 8px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(244, 196, 71, 0.3);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-title {
    color: var(--gold-light);
    font-size: 1.6rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-align: center;
}
.modal-body {
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.6;
    text-align: center;
}
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.modal-actions .menu-btn { padding: 10px 24px; }

/* ============ SCROLLBARS ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 5px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--weed-green-dark), var(--weed-green));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--weed-green-light); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .game-title { font-size: 4rem; }
    .game-subtitle { font-size: 1.6rem; letter-spacing: 12px; }
    .counter-area { grid-template-columns: 1fr; }
    .storage-area { grid-template-columns: 1fr; }
    .grow-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { width: 180px; }
}
