:root {
    --primary-color: #D00040;
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --success-color: #00d04a;
    --warning-color: #ff9800;
    --danger-color: #ff3030;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a15 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    font-size: 14px;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.game-header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    padding: 0;
    margin: 0 -15px 15px -15px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 8px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .header-content h1 {
        font-size: 1.4rem;
        text-align: center;
        font-family: 'Bebas Neue', sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .game-header {
        position: relative;
        margin-bottom: 10px;
        box-shadow: none;
    }
}


.header-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

/* Main Content */
.game-main {
    flex: 1;
    padding-bottom: 60px;
}

section {
    margin-bottom: 25px;
}

section h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Manual Actions */
.manual-actions-section {
    display: none;
}

.manual-actions-section.show {
    display: block;
}

/* Section Ordering */
.game-main {
    display: flex;
    flex-direction: column;
}

/* Available section starts at top, moves to bottom when businesses exist */
.available-section {
    display: block;
    width: 100%;
    order: 1;
}

.available-section.has-businesses {
    order: 10; /* Move to bottom when businesses exist */
}

.upgrades-section {
    order: 2;
}

.manual-actions-section {
    order: 3;
}

.tech-paths-section {
    order: 4;
}

.manual-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.action-card:hover:not(.disabled):not(.completed) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.action-card.completed {
    opacity: 0.5;
    cursor: default;
}

.action-card.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.action-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.action-description {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.action-effect {
    font-size: 0.8rem;
    color: var(--success-color);
}

.action-cost {
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.business-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
    padding-bottom: 50px; /* Space for button */
    transition: all 0.2s ease;
    cursor: default;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.business-card .business-actions {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
}

.business-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.business-card.developing {
    opacity: 0.7;
    border-color: var(--warning-color);
}

.business-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.business-card.shutdown {
    background: #0a0a0a;
    border-color: var(--danger-color);
    opacity: 0.6;
}

/* Development Progress */
.development-info {
    margin: 15px 0;
}

.development-stage {
    font-size: 0.9rem;
    color: var(--warning-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, 
        var(--primary-color) 25%, 
        transparent 25%, 
        transparent 50%, 
        var(--primary-color) 50%, 
        var(--primary-color) 75%, 
        transparent 75%);
    background-size: 20px 20px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: width 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Smooth continuous progress animation */
.progress-fill.smooth-progress {
    background: var(--primary-color);
    position: relative;
}

.progress-fill.smooth-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.2) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.2) 75%, 
        transparent 75%);
    background-size: 20px 20px;
    animation: progressStripes 2s linear infinite;
}

@keyframes progressStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* Development spinner animation */
.development-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

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

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

/* Smaller spinner for upgrade cards */
.upgrade-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 5px 0;
}

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

.development-time {
    font-size: 0.85rem;
    color: #888;
}

.business-status.active {
    background: var(--success-color);
    color: white;
}

.business-status.shutdown {
    background: var(--danger-color);
    color: white;
}

.shutdown-reason {
    padding: 15px;
    background: rgba(255, 48, 48, 0.1);
    border-radius: 8px;
    margin-top: 15px;
}

.shutdown-label {
    font-weight: bold;
    color: var(--danger-color);
}

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

.business-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color);
}

.business-status {
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--primary-color);
}

.business-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.business-stat {
    display: flex;
    flex-direction: column;
}

.business-stat-label {
    font-size: 0.8rem;
    color: #888;
}

.business-stat-value {
    font-size: 1.1rem;
    font-weight: bold;
}

.business-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #b00035;
}

.btn-secondary {
    background: var(--border-color);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Activity Log */
/* Activity log section removed - now in header */

.game-header .activity-log {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 0;
    padding: 8px 20px;
    max-height: 120px;
    overflow-y: auto;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    border-top: 1px solid var(--glass-border);
    max-width: 1200px;
    margin: 0 auto;
}

.activity-log::-webkit-scrollbar {
    width: 6px;
}

.activity-log::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.activity-log::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.log-entry {
    padding: 3px 0;
    line-height: 1.3;
    color: #ccc;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    animation: slideInLog 0.3s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.success {
    color: var(--success-color);
}

.log-entry.warning {
    color: var(--warning-color);
}

.log-entry.info {
    color: #4a9eff;
}

.log-entry.milestone {
    color: var(--primary-color);
    font-weight: 600;
}

.log-entry .log-time {
    color: #666;
    margin-right: 8px;
}

/* Notifications */
.notifications {
    position: fixed;
    bottom: 80px;
    right: 20px;
    max-width: 400px;
    z-index: 1000;
}

.notification {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    border-color: var(--success-color);
}

.notification.warning {
    border-color: var(--warning-color);
}

.notification.danger {
    border-color: var(--danger-color);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 25px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    transition: transform 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Mobile Bottom Sheet */
@media (max-width: 768px) {
    .modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        animation: slideUp 0.3s ease-out forwards;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
    
    .modal.closing .modal-content {
        animation: slideDown 0.3s ease-out forwards;
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    @keyframes slideDown {
        from { transform: translateY(0); }
        to { transform: translateY(100%); }
    }
    
    .modal-content::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: #666;
        border-radius: 2px;
    }
}

.close {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Upgrade Grid */
.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease-out;
}

.upgrade-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.upgrade-card.removing {
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.upgrade-card.affordable {
    border-color: var(--success-color);
    box-shadow: 0 0 10px rgba(79, 172, 92, 0.2);
}

.upgrade-card.nearly-affordable {
    border-color: var(--warning-color);
    opacity: 0.8;
}

.upgrade-card.expensive {
    opacity: 0.5;
    border-style: dashed;
}

.upgrade-card:hover:not(.locked):not(.purchased) {
    border-color: #4ade80;
    transform: translateY(-2px);
}

.upgrade-card.locked {
    opacity: 0.5;
}

.upgrade-card.purchased {
    border-color: var(--success-color);
    opacity: 0.7;
}

.upgrade-card h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.upgrade-cost {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.upgrade-effect {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.upgrade-tier {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.upgrade-devtime {
    font-size: 0.85rem;
    color: var(--warning-color);
    margin-bottom: 10px;
}

.upgrade-progress {
    margin-top: 10px;
    text-align: center;
}

.upgrade-progress .progress-bar {
    margin-bottom: 5px;
}

.upgrade-progress span {
    font-size: 0.85rem;
    color: var(--warning-color);
}

/* Leaderboard Section */
.leaderboard-section {
    text-align: center;
    padding: 30px 0;
}

.leaderboard-section h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.leaderboard-table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    background: var(--card-bg);
    color: var(--text-color);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}

.leaderboard-table tr:hover {
    background: var(--card-bg);
}

.leaderboard-rank {
    font-weight: bold;
    color: var(--primary-color);
}

.current-player {
    background: rgba(208, 0, 64, 0.1);
    border: 1px solid var(--primary-color);
}

/* Tech Paths Section */
.tech-paths-section {
    margin-bottom: 25px;
}

.tech-paths-section {
    display: none; /* Hidden by default until player progresses */
}

.tech-paths-section h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.tech-paths-grid {
    display: grid;
    gap: 30px;
}

.tech-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.tech-category h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.tech-path-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.tech-path-card:hover:not(.locked) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tech-path-card.locked {
    opacity: 0.5;
}

.tech-path-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.tech-cost {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
}

.tech-description {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 8px;
}

.tech-benefits {
    font-size: 0.9rem;
    color: var(--success-color);
    margin-bottom: 12px;
    font-style: italic;
}

/* Footer */
.game-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.game-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Mobile Bottom Menu */
.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-height: 40vh;
    flex-direction: column;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
}

.mobile-activity-log {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    border-bottom: 1px solid var(--border-color);
    max-height: 120px;
}

.mobile-activity-log .log-entry {
    padding: 2px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.mobile-stat {
    text-align: center;
    flex: 1;
}

.mobile-stat-label {
    font-size: 0.75rem;
    color: #888;
    display: block;
}

.mobile-stat-value {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .mobile-bottom-menu {
        display: flex;
    }
    
    .game-header .activity-log {
        display: none;
    }
    
    .header-stats {
        display: none;
    }
    
    .game-container {
        padding-bottom: 140px; /* Increased for better footer visibility */
    }
    
    .game-main {
        padding: 0 10px;
    }
    
    /* Ensure available section is visible but respect ordering */
    .available-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* Inherit order from non-mobile styles */
    }
    
    .business-grid, .manual-actions-grid, .tech-paths-grid, .upgrade-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .business-card, .action-card, .upgrade-card, .tech-path-card {
        font-size: 0.85rem;
        padding: 16px;
    }
    
    /* Only adjust business cards on mobile */
    .business-card {
        padding-bottom: 55px; /* More space for button on mobile */
    }
    
    /* Fix button positioning on mobile */
    .business-card .business-actions {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    /* Make cards more compact on mobile */
    .business-card h3,
    .action-card h3,
    .upgrade-card h4,
    .tech-path-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .business-stats {
        gap: 8px;
        margin-top: 10px;
    }
    
    .business-stat {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    /* Fix business card layout on mobile */
    .business-card {
        min-height: auto;
        height: auto;
    }
    
    .business-card .btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 10px;
    }
    
    .action-description,
    .upgrade-effect,
    .tech-description {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .action-cost,
    .upgrade-cost {
        font-size: 0.9rem;
        margin-top: 10px;
        margin-bottom: 8px;
    }
    
    .upgrade-tier {
        font-size: 0.75rem;
        padding: 2px 8px;
        margin-bottom: 6px;
    }
    
    .upgrade-devtime {
        font-size: 0.8rem;
        margin-top: 6px;
        margin-bottom: 6px;
    }
    
    .development-info {
        padding: 8px;
    }
    
    .development-stage {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .development-spinner {
        margin: 8px 0;
    }
    
    .spinner {
        width: 30px;
        height: 30px;
    }
    
    .development-time {
        font-size: 0.75rem;
    }
    
    /* Business selector on mobile */
    .business-selector button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* Make buttons smaller but readable */
    .btn {
        font-size: 0.85rem;
        padding: 8px 14px;
        margin-top: 8px;
    }
    
    /* Adjust icon sizes */
    .action-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    /* Tech path cards specific adjustments */
    .tech-path-card {
        min-height: auto;
    }
    
    .tech-path-card.selected {
        border-width: 2px;
    }
    
    .tech-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    /* Upgrade progress on mobile */
    .upgrade-progress {
        margin-top: 6px;
    }
    
    .upgrade-spinner {
        margin: 6px 0 3px 0;
    }
    
    .spinner-small {
        width: 16px;
        height: 16px;
    }
    
    /* Section headers */
    h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    section {
        margin-bottom: 20px;
    }
    
    
    /* Extra padding for footer on mobile */
    .game-footer {
        padding-bottom: 60px;
        margin-bottom: 20px;
    }
}

.game-footer a:hover {
    text-decoration: underline;
}

/* Upgrades Section */
.upgrades-section {
    margin-top: 25px;
}

.upgrades-section h2 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.upgrade-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.business-selector {
    margin-bottom: 20px;
}

.business-card.selected {
    border-color: var(--success-color);
    box-shadow: 0 0 0 2px rgba(0, 208, 74, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {

    .header-stats {
        gap: 20px;
    }

    .stat-item {
        padding: 8px 15px;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .notifications {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}