/* ========== Variables ========== */
:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --success: #2ecc71;
    --success-dark: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gold: #f1c40f;
    --gems: #9b59b6;
    --sidebar-width: 380px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
}

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

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    overflow-x: hidden;
}

/* ========== Container ========== */
.scb-game-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    direction: rtl;
    position: relative;
}

/* ========== Top Bar ========== */
.scb-top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.scb-logo h1 {
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

#scb-city-icon {
    font-size: 32px;
}

.scb-premium-resources {
    display: flex;
    gap: 15px;
}

.scb-premium-resource {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border: 2px solid rgba(255,255,255,0.3);
}

.scb-level-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 250px;
}

.scb-level-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    text-align: center;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.3);
}

.scb-level-badge strong {
    font-size: 20px;
    color: #ffd700;
}

.scb-xp-bar {
    background: rgba(0,0,0,0.3);
    height: 25px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255,255,255,0.2);
}

.scb-xp-fill {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
    height: 100%;
    transition: width 0.5s ease;
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.3);
}

.scb-xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ========== Resources Bar ========== */
.scb-resources-bar {
    background: white;
    padding: 15px 30px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.scb-resource-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    min-width: 120px;
    transition: var(--transition);
}

.scb-resource-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.scb-resource-item .scb-icon {
    font-size: 24px;
}

.scb-resource-item .scb-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
}

.scb-resource-item .scb-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark);
    margin-right: auto;
}

/* ========== Workers Panel ========== */
.scb-workers-panel {
    background: white;
    margin: 20px 30px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.scb-workers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.scb-workers-header h3 {
    color: var(--dark);
    font-size: 20px;
}

.scb-btn-small {
    padding: 8px 15px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.scb-workers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.scb-worker-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.scb-worker-card.busy {
    border-color: var(--warning);
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.scb-worker-card.idle {
    border-color: var(--success);
}

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

.scb-worker-icon {
    font-size: 32px;
}

.scb-worker-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: bold;
}

.scb-worker-status.idle {
    background: var(--success);
    color: white;
}

.scb-worker-status.busy {
    background: var(--warning);
    color: white;
}

.scb-worker-progress {
    margin-top: 10px;
}

.scb-worker-progress-bar {
    background: rgba(0,0,0,0.1);
    height: 8px;
    border-radius: 5px;
    overflow: hidden;
}

.scb-worker-progress-fill {
    background: var(--warning);
    height: 100%;
    transition: width 1s linear;
}

.scb-worker-building {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* ========== Build Queue Panel ========== */
.scb-build-queue-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 400px;
    max-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow: hidden;
}

.scb-queue-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scb-queue-header h3 {
    font-size: 18px;
}

.scb-queue-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.scb-queue-close:hover {
    background: rgba(255,255,255,0.3);
}

.scb-queue-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 15px;
}

.scb-queue-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px solid var(--warning);
}

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

.scb-queue-building {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--dark);
}

.scb-queue-building-icon {
    font-size: 24px;
}

.scb-queue-timer {
    background: var(--warning);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

.scb-queue-progress {
    margin: 10px 0;
}

.scb-queue-progress-bar {
    background: rgba(0,0,0,0.1);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.scb-queue-progress-fill {
    background: linear-gradient(90deg, var(--success) 0%, var(--warning) 100%);
    height: 100%;
    transition: width 1s linear;
}

.scb-queue-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.scb-queue-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.scb-queue-cancel {
    background: var(--danger);
    color: white;
}

.scb-queue-speedup {
    background: var(--gems);
    color: white;
}

/* ========== Main Layout ========== */
.scb-main-layout {
    display: flex;
    min-height: calc(100vh - 200px);
}

/* ========== Sidebar ========== */
.scb-sidebar {
    width: var(--sidebar-width);
    background: white;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.scb-sidebar-tabs {
    display: flex;
    background: #ecf0f1;
    border-bottom: 2px solid #bdc3c7;
}

.scb-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #7f8c8d;
    transition: var(--transition);
}

.scb-tab.active {
    background: white;
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.scb-tab:hover {
    background: rgba(255,255,255,0.5);
}

.scb-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.scb-tab-content.active {
    display: block;
}

/* ========== Buildings List ========== */
.scb-buildings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scb-building-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.scb-building-card:hover {
    transform: translateX(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.scb-building-card.scb-locked {
    opacity: 0.6;
}

.scb-building-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.scb-building-icon {
    font-size: 36px;
}

.scb-building-header h4 {
    color: var(--dark);
    font-size: 16px;
}

.scb-building-costs {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.scb-building-costs span {
    background: rgba(255,255,255,0.7);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
}

.scb-building-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.scb-building-stats span {
    background: rgba(0,0,0,0.05);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.scb-build-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.scb-build-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.scb-build-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* ========== Events List ========== */
.scb-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scb-event-card {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 15px;
    border-radius: 12px;
    border-right: 4px solid var(--warning);
}

.scb-event-card.positive {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-right-color: var(--success);
}

.scb-event-card.negative {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-right-color: var(--danger);
}

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

.scb-event-icon {
    font-size: 32px;
}

.scb-event-timer {
    background: var(--warning);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.scb-event-description {
    color: var(--dark);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.scb-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

/* ========== Daily Reward ========== */
.scb-daily-reward {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scb-daily-reward h3 {
    color: var(--dark);
    font-size: 18px;
    text-align: center;
}

.scb-streak-info {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--gold);
}

.scb-streak-info strong {
    color: var(--warning);
    font-size: 24px;
}

.scb-daily-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.scb-daily-day {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.scb-daily-day:hover {
    transform: scale(1.05);
}

.scb-daily-day.claimed {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: var(--success);
}

.scb-daily-day.today {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    border-color: var(--gold);
    animation: pulse 2s infinite;
}

.scb-day-number {
    font-size: 14px;
    font-weight: bold;
    color: var(--dark);
}

.scb-day-reward {
    font-size: 12px;
    color: #7f8c8d;
}

/* ========== Wheel ========== */
.scb-wheel-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 12px;
}

.scb-wheel-section h3 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 20px;
}

.scb-wheel-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    position: relative;
}

.scb-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid var(--gold);
    position: relative;
    transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    background: conic-gradient(
        from 0deg,
        #e74c3c 0deg 72deg,
        #3498db 72deg 144deg,
        #2ecc71 144deg 216deg,
        #f39c12 216deg 288deg,
        #9b59b6 288deg 360deg
    );
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.scb-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    border: 4px solid var(--gold);
    z-index: 10;
}

.scb-wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--danger);
    z-index: 100;
}

/* ========== Main Content ========== */
.scb-main-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scb-city-wrapper {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.scb-city-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.scb-city-header h3 {
    color: var(--dark);
    font-size: 22px;
}

.scb-city-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.scb-city-stats strong {
    color: var(--dark);
    font-size: 18px;
}

/* ========== City Grid ========== */
.scb-city-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    min-height: 450px;
    background: 
        linear-gradient(rgba(52, 152, 219, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 152, 219, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, #e8f4f8 0%, #b8e0f0 100%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
    padding: 15px;
    border-radius: 10px;
    position: relative;
}

.scb-grid-cell {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    border: 2px dashed rgba(255,255,255,0.5);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scb-grid-cell:hover {
    transform: scale(1.05);
    border-color: var(--warning);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.scb-grid-cell.scb-occupied {
    background-size: cover;
    background-position: center;
    border: 2px solid var(--success);
    cursor: pointer;
}

.scb-grid-cell.scb-building {
    border: 2px solid var(--warning);
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    animation: pulse 1.5s infinite;
}

.scb-grid-cell[data-building="house"] {
    background-image: url('../images/buildings/house.svg');
}

.scb-grid-cell[data-building="shop"] {
    background-image: url('../images/buildings/shop.svg');
}

.scb-grid-cell[data-building="factory"] {
    background-image: url('../images/buildings/factory.svg');
}

.scb-grid-cell[data-building="solar"] {
    background-image: url('../images/buildings/solar.svg');
}

.scb-grid-cell[data-building="park"] {
    background-image: url('../images/buildings/park.svg');
}

.scb-grid-cell[data-building="metro"] {
    background-image: url('../images/buildings/metro.svg');
}

.scb-building-level-badge {
    position: absolute;
    top: 3px;
    left: 3px;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.scb-building-timer {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.scb-building-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.scb-building-progress-fill {
    height: 100%;
    background: var(--success);
    transition: width 1s linear;
}

/* ========== Controls ========== */
.scb-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.scb-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.scb-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.scb-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.scb-btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
}

.scb-btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #2980b9 100%);
}

.scb-btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #e67e22 100%);
}

.scb-btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
}

/* ========== Modal ========== */
.scb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scb-modal.scb-show {
    opacity: 1;
    visibility: visible;
}

.scb-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s ease;
}

.scb-modal-small {
    max-width: 500px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.scb-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.scb-modal-header h2,
.scb-modal-header h3 {
    margin: 0;
}

.scb-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.scb-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.scb-modal-body {
    padding: 30px;
}

.scb-city-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.scb-city-type-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    border: 3px solid transparent;
    cursor: pointer;
}

.scb-city-type-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.scb-type-icon {
    font-size: 70px;
    margin-bottom: 15px;
}

.scb-city-type-card h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 12px;
}

.scb-city-type-card p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.scb-city-type-card ul {
    list-style: none;
    margin: 15px 0;
    text-align: right;
}

.scb-city-type-card ul li {
    padding: 6px 0;
    font-size: 13px;
}

.scb-select-city-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.scb-select-city-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* ========== Notification ========== */
.scb-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-200px);
    background: white;
    color: var(--dark);
    padding: 18px 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 16px;
    font-weight: bold;
    z-index: 10001;
    transition: var(--transition);
    min-width: 300px;
    text-align: center;
}

.scb-notification.scb-show {
    transform: translateX(-50%) translateY(0);
}

.scb-notification.scb-success {
    border-right: 5px solid var(--success);
    background: linear-gradient(135deg, #ffffff 0%, #d5f4e6 100%);
}

.scb-notification.scb-error {
    border-right: 5px solid var(--danger);
    background: linear-gradient(135deg, #ffffff 0%, #fadbd8 100%);
}

.scb-notification.scb-warning {
    border-right: 5px solid var(--warning);
    background: linear-gradient(135deg, #ffffff 0%, #fdebd0 100%);
}

.scb-notification.scb-info {
    border-right: 5px solid var(--info);
    background: linear-gradient(135deg, #ffffff 0%, #d6eaf8 100%);
}

/* ========== Animations ========== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== Particles ========== */
.scb-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.scb-particle {
    position: absolute;
    font-size: 24px;
    animation: particleFloat 2s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .scb-sidebar {
        width: 320px;
    }
    
    .scb-city-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 768px) {
    .scb-top-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .scb-resources-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .scb-workers-panel {
        margin: 15px;
    }
    
    .scb-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 999;
        transition: var(--transition);
    }
    
    .scb-sidebar.show {
        left: 0;
    }
    
    .scb-city-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .scb-city-types {
        grid-template-columns: 1fr;
    }
    
    .scb-controls {
        flex-direction: column;
    }
    
    .scb-btn {
        width: 100%;
        justify-content: center;
    }
    
    .scb-build-queue-panel {
        width: 90%;
        left: 5%;
    }
}
/* ========== استایل‌های قبلی فاز 1 باقی می‌مانند + استایل‌های جدید زیر ========== */

/* ========== Time & Season Indicators ========== */
.scb-time-indicator {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.scb-time-icon {
    font-size: 24px;
    animation: rotate 20s linear infinite;
}

.scb-time-text {
    font-weight: bold;
    font-size: 14px;
}

.scb-time-progress {
    width: 80px;
    height: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.scb-time-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
    transition: width 1s linear;
}

/* Night Mode */
body.scb-night-mode .scb-city-grid {
    background: 
        linear-gradient(rgba(52, 73, 94, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 73, 94, 0.1) 1px, transparent 1px),
        linear-gradient(180deg, #1a252f 0%, #2c3e50 100%);
}

body.scb-night-mode .scb-grid-cell {
    filter: brightness(0.7);
}

.scb-season-indicator {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.scb-season-icon {
    font-size: 24px;
}

.scb-season-text {
    font-weight: bold;
    font-size: 14px;
}

/* Season Effects */
body.scb-season-spring .scb-city-grid {
    filter: hue-rotate(10deg) brightness(1.1);
}

body.scb-season-summer .scb-city-grid {
    filter: saturate(1.3) brightness(1.15);
}

body.scb-season-autumn .scb-city-grid {
    filter: hue-rotate(-20deg) saturate(1.2);
}

body.scb-season-winter .scb-city-grid {
    filter: brightness(0.9) saturate(0.8);
}

/* ========== Research Tab ========== */
.scb-research-container {
    padding: 15px;
}

.scb-research-container h3 {
    color: var(--dark);
    font-size: 20px;
    margin-bottom: 10px;
}

.scb-research-desc {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

.scb-research-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scb-research-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.scb-research-card:hover {
    transform: translateX(-5px);
    border-color: var(--success);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.3);
}

.scb-research-card.scb-locked {
    opacity: 0.6;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
}

.scb-research-card.researching {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    border-color: var(--warning);
    animation: pulse 2s infinite;
}

.scb-research-card.completed {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    border-color: var(--success);
}

.scb-research-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.scb-research-icon {
    font-size: 32px;
}

.scb-research-header h4 {
    color: var(--dark);
    font-size: 16px;
}

.scb-research-effect {
    color: #2c3e50;
    font-size: 13px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
}

.scb-research-costs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.scb-research-costs span {
    background: rgba(0,0,0,0.1);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
}

.scb-research-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.scb-research-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.scb-research-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.scb-research-progress {
    margin-top: 10px;
}

.scb-research-progress-bar {
    background: rgba(0,0,0,0.2);
    height: 8px;
    border-radius: 5px;
    overflow: hidden;
}

.scb-research-progress-fill {
    background: linear-gradient(90deg, var(--success) 0%, var(--warning) 100%);
    height: 100%;
    transition: width 1s linear;
}

/* ========== Skills Tab ========== */
.scb-skills-container {
    padding: 15px;
}

.scb-skills-container h3 {
    color: var(--dark);
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.scb-skill-points-display {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.scb-skill-points-display strong {
    font-size: 28px;
    display: block;
    margin-top: 5px;
}

.scb-skill-paths {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scb-skill-path {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px;
    border-radius: 12px;
}

.scb-skill-path h4 {
    color: var(--dark);
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.scb-skill-card {
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.scb-skill-card:hover {
    transform: translateX(-5px);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.scb-skill-card.scb-locked {
    opacity: 0.5;
}

.scb-skill-card.unlocked {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: var(--success);
}

.scb-skill-icon {
    font-size: 32px;
    min-width: 40px;
    text-align: center;
}

.scb-skill-card h5 {
    color: var(--dark);
    font-size: 14px;
    margin-bottom: 3px;
}

.scb-skill-card p {
    color: #7f8c8d;
    font-size: 12px;
}

.scb-skill-cost {
    background: var(--gems);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-right: auto;
}

.scb-skill-btn {
    padding: 8px 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.scb-skill-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.scb-skill-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Skill Tree Lines */
.scb-skill-path::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 60px;
    width: 2px;
    height: calc(100% - 120px);
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
    transform: translateX(-50%);
}

/* ========== Market Tab ========== */
.scb-market-container {
    padding: 15px;
}

.scb-market-container h3 {
    color: var(--dark);
    font-size: 20px;
    margin-bottom: 10px;
}

.scb-market-desc {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

.scb-market-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.scb-market-item {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid var(--gold);
    transition: var(--transition);
}

.scb-market-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

.scb-market-resource {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.scb-market-icon {
    font-size: 32px;
}

.scb-market-resource h4 {
    color: var(--dark);
    font-size: 18px;
}

.scb-market-price {
    background: rgba(0,0,0,0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
}

.scb-market-price strong {
    font-size: 20px;
    color: var(--warning);
}

.scb-market-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.scb-market-amount {
    flex: 1;
    padding: 10px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
}

.scb-market-buy-btn,
.scb-market-sell-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.scb-market-buy-btn {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
}

.scb-market-sell-btn {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
}

.scb-market-buy-btn:hover,
.scb-market-sell-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ========== Leaderboard ========== */
.scb-leaderboard-toggle {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 999;
}

.scb-leaderboard-list {
    max-height: 500px;
    overflow-y: auto;
}

.scb-leaderboard-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.scb-leaderboard-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scb-leaderboard-item.top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 3px solid #f39c12;
}

.scb-leaderboard-item.top-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    border: 3px solid #95a5a6;
}

.scb-leaderboard-item.top-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e59866 100%);
    border: 3px solid #d68910;
}

.scb-leaderboard-rank {
    font-size: 24px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.scb-leaderboard-item.top-1 .scb-leaderboard-rank {
    color: #f39c12;
}

.scb-leaderboard-item.top-2 .scb-leaderboard-rank {
    color: #7f8c8d;
}

.scb-leaderboard-item.top-3 .scb-leaderboard-rank {
    color: #d68910;
}

.scb-leaderboard-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 3px solid white;
}

.scb-leaderboard-info {
    flex: 1;
}

.scb-leaderboard-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 5px;
}

.scb-leaderboard-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #7f8c8d;
}

.scb-leaderboard-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.scb-user-rank {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.scb-user-rank strong {
    font-size: 28px;
    display: block;
    margin-top: 5px;
}

/* ========== Achievements Panel ========== */
.scb-achievements-panel {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 350px;
    max-height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 998;
    transform: translateX(-400px);
    transition: transform 0.5s ease;
}

.scb-achievements-panel.show {
    transform: translateX(0);
}

.scb-achievements-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scb-achievements-list {
    padding: 15px;
    max-height: 320px;
    overflow-y: auto;
}

.scb-achievement-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.scb-achievement-item.unlocked {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: var(--success);
    animation: achievementPop 0.6s ease;
}

@keyframes achievementPop {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.scb-achievement-icon {
    font-size: 32px;
}

.scb-achievement-info h5 {
    color: var(--dark);
    font-size: 14px;
    margin-bottom: 3px;
}

.scb-achievement-info p {
    color: #7f8c8d;
    font-size: 12px;
}

.scb-achievement-reward {
    margin-right: auto;
    background: var(--gold);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* ========== Weather Effects ========== */
.scb-weather-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.scb-rain {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.6));
    animation: rain 1s linear infinite;
}

@keyframes rain {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.scb-snow {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: snow 10s linear infinite;
}

@keyframes snow {
    0% {
        transform: translateY(-100px) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px);
        opacity: 0;
    }
}

/* ========== Boosters Panel ========== */
.scb-boosters-panel {
    position: fixed;
    top: 200px;
    left: 20px;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 997;
    min-width: 200px;
}

.scb-boosters-panel h4 {
    color: var(--dark);
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.scb-booster-item {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--success);
}

.scb-booster-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scb-booster-icon {
    font-size: 24px;
}

.scb-booster-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--dark);
}

.scb-booster-timer {
    background: var(--warning);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* ========== Tutorial Tooltips ========== */
.scb-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    max-width: 300px;
    animation: tooltipBounce 0.6s ease;
}

@keyframes tooltipBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.scb-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #764ba2;
}

.scb-tooltip h5 {
    font-size: 16px;
    margin-bottom: 8px;
}

.scb-tooltip p {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.scb-tooltip-close {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

/* ========== Mini-Games Panel ========== */
.scb-minigame-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    min-width: 400px;
}

.scb-minigame-header {
    text-align: center;
    margin-bottom: 20px;
}

.scb-minigame-header h3 {
    color: var(--dark);
    font-size: 24px;
    margin-bottom: 10px;
}

.scb-minigame-content {
    text-align: center;
}

/* ========== Statistics Dashboard ========== */
.scb-stats-dashboard {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

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

.scb-stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.scb-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.scb-stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.scb-stat-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.scb-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark);
}

/* ========== Animation Effects ========== */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    }
}

.scb-glow {
    animation: glow 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.scb-shake {
    animation: shake 0.5s;
}

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

.scb-fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ========== Mobile Toggle Button ========== */
.scb-mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

/* ========== Responsive Updates ========== */
@media (max-width: 1024px) {
    .scb-sidebar {
        width: 320px;
    }
    
    .scb-city-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .scb-leaderboard-toggle,
    .scb-boosters-panel,
    .scb-achievements-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .scb-top-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .scb-time-indicator,
    .scb-season-indicator {
        flex: 1;
        justify-content: center;
    }
    
    .scb-resources-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .scb-workers-panel {
        margin: 15px;
    }
    
    .scb-sidebar {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .scb-sidebar.show {
        right: 0;
    }
    
    .scb-mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .scb-city-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
    
    .scb-skill-paths {
        gap: 15px;
    }
    
    .scb-market-actions {
        flex-direction: column;
    }
    
    .scb-market-amount {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .scb-resources-bar {
        grid-template-columns: 1fr;
    }
    
    .scb-city-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .scb-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .scb-btn {
        width: 100%;
    }
}

/* ========== Print Styles ========== */
@media print {
    .scb-sidebar,
    .scb-controls,
    .scb-notification,
    .scb-workers-panel,
    .scb-build-queue-panel,
    .scb-leaderboard-toggle,
    .scb-boosters-panel,
    .scb-achievements-panel {
        display: none !important;
    }
    
    .scb-city-grid {
        page-break-inside: avoid;
    }
}

/* ========== Dark Mode Support ========== */
@media (prefers-color-scheme: dark) {
    .scb-game-container {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .scb-building-card,
    .scb-research-card,
    .scb-skill-card,
    .scb-market-item {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
        color: white;
    }
}

/* ========== Loading States ========== */
.scb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.scb-loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.scb-loading-text {
    color: white;
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
}

/* ========== Success/Error States ========== */
.scb-success-state {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: var(--success);
}

.scb-error-state {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: var(--danger);
}

.scb-warning-state {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: var(--warning);
}