body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f1117;
    color: white;
}

/* Landing */
.landing {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.landing-container {
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.landing-title {
    font-size: 48px;
    margin-bottom: 10px;
    color: #00d9f5;
    letter-spacing: 0.5px;
}

.landing-subtitle {
    opacity: 0.75;
    margin-bottom: 30px;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 10px;
}

.mode-card {
    background: #1a1f2b;
    padding: 28px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.25s;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.mode-card:hover {
    transform: translateY(-3px) scale(1.02);
}

.mode-card.defensive:hover {
    box-shadow: 0 0 26px rgba(0,255,136,0.35);
    border-color: rgba(0,255,136,0.35);
}

.mode-card.offensive:hover {
    box-shadow: 0 0 26px rgba(0,255,120,0.25);
    border-color: rgba(0,255,120,0.25);
}

@media (max-width: 720px) {
    .mode-grid { grid-template-columns: 1fr; }
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0f1a;
    color: #e5e7eb;
    padding: 15px;
}

.container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h1 {
    text-align: center;
    font-weight: 700;
    color: #00d9f5;
}

/* Budget */
.budget-box {
    background: #111827;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-left: 5px solid #00d9f5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
}

.budget-label { font-size: 14px; opacity: 0.6; }

.budget-amount {
    font-size: 42px;
    font-weight: bold;
    color: #00f5a0;
    display: inline-block;
    position: relative;
}

/* Floating money animation */
.floating-money {
    position: absolute;
    top: 0;
    left: calc(100% + 10px);
    font-size: 28px;
    color: #00ff88;
    font-weight: bold;
    pointer-events: none;
    animation: floatSide 0.8s ease-out forwards;
}

@keyframes floatSide {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-60px); }
}

/* Alerts */
.alert-box {
	height: 100px;
    background: #1e293b;
    padding: 18px;
    border-radius: 12px;
    border-left: 5px solid #facc15;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    text-align: center;
}

/* Buttons */
.primary-btn {
    width: 100%;
    background: #1e293b;
    color: #e5e7eb;
    font-weight: 600;
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
    border: 1px solid #374151;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    background: #273449;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Upgrades */
.upgrades { display: flex; gap: 20px; flex-wrap: wrap; }

.upgrade-card {
    flex: 1;
    background: #1e293b;
    border-radius: 12px;
    padding: 18px;
    border-left: 5px solid #00d9f5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Office */
.office {
    background: #111827;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.office-row h4 { color: #00d9f5; margin-bottom: 6px; }

.office-line { display: flex; gap: 10px; flex-wrap: wrap; }

.employee { font-size: 28px; transition: transform 0.2s ease; }
.employee:hover { transform: scale(1.1); }

/* Logs */
.log-box {
    background: #1e293b;
    border-radius: 12px;
    padding: 15px;
    max-height: 220px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.log-box div {
    margin-bottom: 4px;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.cookie-box {
    background: #111827;
    padding: 25px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions .primary-btn {
    margin-top: 0;
}

.hidden { display: none !important; }

.quit-box { margin-top: 10px; }

.version { text-align: center; font-size: 13px; opacity: 0.5; margin-top: 10px; }

@media (max-width: 720px) {
    .upgrades { flex-direction: column; }
}

/* Generic progress (kept, used by offensive) */
.progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 6px;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d4ff, #00aaff);
    border-radius: 999px;
    transition: width 0.15s ease;
}

.progress-text {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    opacity: 0.8;
    text-align: right;
}

/* OFFENSIVE */

.offensive-theme {
    background: radial-gradient(1200px 700px at 20% 0%, rgba(0,255,120,0.12), transparent 60%),
                radial-gradient(900px 600px at 100% 30%, rgba(0,180,255,0.10), transparent 55%),
                #070b12;
    color: #d7ffe7;
}

.offensive-container { gap: 18px; }

.offensive-header { text-align: center; padding-top: 6px; }

.offensive-title {
    color: #38ff9a;
    text-shadow: 0 0 18px rgba(56,255,154,0.18);
    letter-spacing: 0.6px;
}

.offensive-budget {
    border-left-color: #38ff9a;
    box-shadow: 0 0 0 1px rgba(56,255,154,0.10), 0 10px 30px rgba(0,0,0,0.45);
}

.offensive-budget .budget-amount {
    color: #38ff9a;
    text-shadow: 0 0 16px rgba(56,255,154,0.18);
}

.offensive-alert {
    border-left-color: #38ff9a;
    background: rgba(12, 22, 32, 0.75);
    box-shadow: inset 0 0 0 1px rgba(56,255,154,0.08), 0 8px 25px rgba(0,0,0,0.35);
    font-family: 'Courier New', monospace;
}

.panel {
    background: #111827;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.offensive-panel {
    background: rgba(9, 16, 24, 0.78);
    box-shadow: inset 0 0 0 1px rgba(56,255,154,0.08), 0 10px 28px rgba(0,0,0,0.45);
    border-radius: 14px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.panel-head h3 { font-size: 16px; color: #38ff9a; }

.panel-badge {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(56,255,154,0.10);
    border: 1px solid rgba(56,255,154,0.16);
    color: #bfffe0;
    white-space: nowrap;
}

.offensive-btn {
    border-color: rgba(56,255,154,0.22);
    background: rgba(9, 16, 24, 0.78);
    box-shadow: inset 0 0 0 1px rgba(56,255,154,0.08);
}

.offensive-btn:hover {
    background: rgba(14, 24, 36, 0.86);
    box-shadow: 0 0 0 1px rgba(56,255,154,0.18), 0 10px 22px rgba(0,0,0,0.45);
}

.offensive-btn.danger {
    border-color: rgba(255, 80, 120, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 80, 120, 0.10);
}

.offensive-btn.danger:hover {
    box-shadow: 0 0 0 1px rgba(255, 80, 120, 0.22), 0 10px 22px rgba(0,0,0,0.45);
}

.offensive-upgrades .upgrade-card {
    border-left-color: #38ff9a;
    background: rgba(9, 16, 24, 0.78);
    box-shadow: inset 0 0 0 1px rgba(56,255,154,0.08), 0 10px 28px rgba(0,0,0,0.45);
}

.offensive-log {
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(56,255,154,0.10);
    box-shadow: inset 0 0 14px rgba(0,0,0,0.40);
}

/* Office scoped */
.offensive-office {
    background: rgba(9, 16, 24, 0.78);
    box-shadow: inset 0 0 0 1px rgba(56,255,154,0.08), 0 10px 28px rgba(0,0,0,0.45);
}

.offensive-office .office-row h4 {
    color: #38ff9a;
}

/* Make the floating money match offensive neon */
.offensive-float {
    color: #38ff9a;
    text-shadow: 0 0 12px rgba(56,255,154,0.22);
}

.offensive-cookie {
    background: rgba(9, 16, 24, 0.92);
    border: 1px solid rgba(56,255,154,0.14);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.muted { opacity: 0.75; font-size: 13px; }

/* Offensive progress bar animation */

.offensive-theme .progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 6px;
}

.offensive-theme .progress-bar.offensive-progress {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(56, 255, 154, 0.18);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}

.offensive-theme .progress-bar.offensive-progress .progress-fill,
.offensive-theme #hackProgressFill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(56,255,154,0.95), rgba(0,210,255,0.75));
    transition: width 220ms ease, filter 220ms ease;
    filter: drop-shadow(0 0 6px rgba(56,255,154,0.25));
}

.offensive-theme .progress-text {
    font-family: "Courier New", monospace;
    font-size: 13px;
    opacity: 0.8;
    text-align: right;
}

/* small pop when it completes */
@keyframes offensiveProgressComplete {
    0%   { transform: scaleY(1);   filter: drop-shadow(0 0 6px rgba(56,255,154,0.25)); }
    40%  { transform: scaleY(1.25);filter: drop-shadow(0 0 14px rgba(56,255,154,0.45)); }
    100% { transform: scaleY(1);   filter: drop-shadow(0 0 6px rgba(56,255,154,0.25)); }
}

.offensive-theme .progress-bar.offensive-progress.complete #hackProgressFill {
    animation: offensiveProgressComplete 240ms ease-out;
}