/* ═══════════════════════════════════════════════════════════
   LANDLORD SIMULATOR — styles.css
   happystoner5420 Games © 2025
   AAA Dark-Humor Comedy Sandbox — Full Offline
═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #080810;
  color: #e8e8f0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  user-select: none;
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0f0f1a; }
::-webkit-scrollbar-thumb { background: #2a2a44; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00ff88; }

/* Utility */
.hidden { display: none !important; }
.green { color: #00ff88; }
.red { color: #ff3355; }
.gold { color: #ffd700; }
.orange { color: #ffaa00; }
.blue { color: #4488ff; }
.muted { color: #888899; }
.bold { font-weight: 700; }
.mono { font-family: 'Courier New', monospace; }

/* ── Screens ─────────────────────────────────────────────── */
.screen { position: fixed; inset: 0; width: 100%; height: 100%; }
.screen.active { display: flex; }
.screen.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════
   MAIN MENU
═══════════════════════════════════════════════════════════ */
#main-menu {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#menu-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.menu-overlay {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  padding: 40px 20px;
  width: 100%; max-width: 560px;
  text-align: center;
}

.menu-logo-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}

.menu-subtitle-top {
  font-size: 13px;
  color: #aaa8c0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: italic;
}

.menu-title {
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffd700 0%, #ff9900 30%, #ffd700 60%, #ffe066 80%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255,215,0,0.4));
  text-shadow: none;
}
.menu-title span {
  font-size: 1.08em;
  background: linear-gradient(135deg, #fff5cc 0%, #ffd700 40%, #ff8800 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-tagline {
  font-size: 16px;
  color: #aaaacc;
  font-style: italic;
  margin-top: 4px;
}

.menu-nav {
  display: flex; flex-direction: column;
  gap: 12px; width: 100%; max-width: 340px;
}

.menu-btn {
  width: 100%;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid rgba(0,255,136,0.35);
  background: rgba(0,10,20,0.75);
  color: #d8f8e8;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.menu-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,255,136,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}
.menu-btn:hover { border-color: #00ff88; color: #fff; background: rgba(0,255,136,0.1); box-shadow: 0 0 18px rgba(0,255,136,0.3), inset 0 0 12px rgba(0,255,136,0.07); transform: translateY(-2px); }
.menu-btn:hover::before { opacity: 1; }
.menu-btn:active { transform: scale(0.97) translateY(0); }

.menu-btn.primary {
  border-color: #00ff88;
  background: rgba(0,255,136,0.12);
  color: #00ff88;
  font-size: 19px;
  animation: pulse-glow 2.4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(0,255,136,0.3); }
  50% { box-shadow: 0 0 32px rgba(0,255,136,0.6), 0 0 60px rgba(0,255,136,0.2); }
}
.menu-btn.danger { border-color: rgba(255,51,85,0.5); color: #ff7799; }
.menu-btn.danger:hover { border-color: #ff3355; background: rgba(255,51,85,0.1); box-shadow: 0 0 18px rgba(255,51,85,0.3); color: #fff; }

.menu-version { font-size: 11px; color: #555566; letter-spacing: 0.05em; }

/* ═══════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  position: relative;
  background: #12121e;
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 10px;
  padding: 36px 40px 0;       /* bottom-padding removed — feedback bar handles bottom */
  max-width: 720px; width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(0,0,0,0.9), 0 0 30px rgba(0,255,136,0.08);
  animation: slide-up 0.25s ease;
}
/* Extra bottom space inside modal so sticky bar doesn't overlap last content item */
#modal-content { padding-bottom: 60px; }
@keyframes slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: 1px solid #333344; color: #888; border-radius: 4px;
  width: 30px; height: 30px; cursor: pointer; font-size: 14px;
  transition: all 0.15s;
}
.modal-close:hover { border-color: #ff3355; color: #ff3355; }

.modal-content h2 { color: #ffd700; font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.modal-content h3 { color: #00ff88; font-size: 16px; font-weight: 700; margin: 18px 0 8px; letter-spacing: 0.05em; }
.modal-content p { color: #c0c0d8; line-height: 1.7; margin-bottom: 10px; }
.modal-content ul { color: #c0c0d8; padding-left: 20px; line-height: 1.8; }
.modal-content li { margin-bottom: 4px; }
.modal-content .warning { color: #ffaa00; font-weight: 700; }
.modal-content .danger { color: #ff3355; font-weight: 700; }

.credits-logo { font-size: 36px; font-weight: 900; color: #ffd700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.credits-role { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #1e1e30; }
.credits-role:last-child { border-bottom: none; }
.credits-role .role { color: #888899; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.credits-role .name { color: #00ff88; font-weight: 700; }
.credits-disclaimer { margin-top: 20px; padding: 14px; background: #0a0a14; border-left: 3px solid #ffaa00; color: #aaa8c0; font-size: 13px; font-style: italic; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   GAME SCREEN LAYOUT
═══════════════════════════════════════════════════════════ */
#game-screen {
  flex-direction: column;
  background: #080810;
}

/* ── Top Bar ─────────────────────────────────────────────── */
.top-bar {
  height: 54px; min-height: 54px;
  background: #0c0c18;
  border-bottom: 1px solid rgba(0,255,136,0.15);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  gap: 12px;
  flex-shrink: 0;
  z-index: 50;
}
.top-bar-left { flex: 0 0 auto; }
.top-bar-center { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.top-bar-right { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }

.game-logo-small {
  font-size: 15px; font-weight: 900; color: #ffd700;
  letter-spacing: 0.05em; text-transform: uppercase;
}

.stat-chip {
  display: flex; flex-direction: column; align-items: center;
  background: #111122; border: 1px solid #1e1e30;
  border-radius: 5px; padding: 3px 10px;
  min-width: 80px;
}
.chip-label { font-size: 9px; color: #666677; letter-spacing: 0.12em; text-transform: uppercase; }
.chip-val { font-size: 14px; font-weight: 700; }
.chip-val.green { color: #00ff88; text-shadow: 0 0 8px rgba(0,255,136,0.4); }
.chip-val.gold { color: #ffd700; }

.alert-bell {
  position: relative; font-size: 20px; cursor: pointer;
  transition: transform 0.2s;
}
.alert-bell:hover { transform: scale(1.2); }
.alert-bell.ringing { animation: ring 0.5s ease-in-out infinite; }
@keyframes ring {
  0%,100%{transform:rotate(0)}25%{transform:rotate(-18deg)}75%{transform:rotate(18deg)}
}
.bell-count {
  position: absolute; top: -4px; right: -6px;
  background: #ff3355; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 10px; padding: 0 5px; min-width: 16px; text-align: center;
}

.btn-sm {
  padding: 6px 12px; font-size: 12px; font-weight: 700;
  border-radius: 5px; cursor: pointer; border: 1px solid; letter-spacing: 0.05em;
  transition: all 0.15s; text-transform: uppercase;
}
.btn-sm.btn-warn { border-color: #ffaa00; color: #ffaa00; background: rgba(255,170,0,0.08); }
.btn-sm.btn-warn:hover { background: rgba(255,170,0,0.2); box-shadow: 0 0 10px rgba(255,170,0,0.3); }
.btn-sm.btn-menu { border-color: rgba(255,255,255,0.2); color: #ccc; background: rgba(255,255,255,0.04); }
.btn-sm.btn-menu:hover { border-color: #00ff88; color: #00ff88; background: rgba(0,255,136,0.08); }

/* ── Main Layout ─────────────────────────────────────────── */
.game-layout {
  display: flex; flex: 1; overflow: hidden;
  gap: 0;
}

/* ── Left Panel ──────────────────────────────────────────── */
.left-panel {
  width: 200px; min-width: 200px;
  background: #0c0c18;
  border-right: 1px solid rgba(0,255,136,0.1);
  padding: 10px 8px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 6px;
}

.panel-title {
  font-size: 10px; font-weight: 800; color: #555566;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 4px 2px; border-bottom: 1px solid #1a1a28;
  margin-bottom: 4px;
}
.panel-divider { border: none; border-top: 1px solid #1a1a28; margin: 6px 0; }

.stat-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #a0a0b8; padding: 3px 2px;
}
.stat-row span:last-child { font-weight: 700; color: #e0e0f0; }

.rep-bar-wrap {
  background: #1a1a28; border-radius: 4px; height: 8px; overflow: hidden; margin: 4px 2px;
}
.rep-bar {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, #ff3355, #ffaa00, #00ff88);
  transition: width 0.5s ease;
}
.rep-label { font-size: 11px; color: #888899; text-align: center; }

/* Sidebar property item */
.sidebar-prop {
  background: #111122; border: 1px solid #1e1e30;
  border-radius: 5px; padding: 7px 8px; cursor: pointer;
  transition: all 0.15s; font-size: 12px;
}
.sidebar-prop:hover { border-color: rgba(0,255,136,0.4); background: #141428; }
.sidebar-prop .prop-name { font-weight: 700; color: #d8d8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-prop .prop-income { color: #00ff88; font-size: 11px; }
.sidebar-prop .prop-cond { font-size: 10px; color: #888899; }

/* ── Center Panel ────────────────────────────────────────── */
.center-panel {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden;
  background: #0a0a14;
}

.tab-bar {
  display: flex; gap: 2px; padding: 8px 10px 0;
  background: #0c0c18;
  border-bottom: 1px solid rgba(0,255,136,0.1);
  flex-shrink: 0; flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 14px; font-size: 12px; font-weight: 700;
  border: 1px solid transparent; border-bottom: none;
  border-radius: 5px 5px 0 0; cursor: pointer;
  background: transparent; color: #666677;
  transition: all 0.15s; letter-spacing: 0.04em;
}
.tab-btn:hover { color: #aaaacc; background: rgba(255,255,255,0.04); }
.tab-btn.active {
  background: #0a0a14; border-color: rgba(0,255,136,0.2);
  color: #00ff88; border-bottom-color: #0a0a14;
}

.tab-content {
  flex: 1; overflow-y: auto; padding: 16px;
}

/* ── Right Panel ─────────────────────────────────────────── */
.right-panel {
  width: 240px; min-width: 240px;
  background: #0c0c18;
  border-left: 1px solid rgba(0,255,136,0.1);
  padding: 10px 8px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 6px;
}

.collect-all-wrap { padding: 4px 0; }
.btn-collect-all {
  width: 100%; padding: 10px; font-size: 13px; font-weight: 800;
  background: rgba(0,255,136,0.1); border: 2px solid #00ff88;
  color: #00ff88; border-radius: 6px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: all 0.15s; animation: pulse-glow 2.8s ease-in-out infinite;
}
.btn-collect-all:hover { background: rgba(0,255,136,0.2); box-shadow: 0 0 18px rgba(0,255,136,0.4); }

.event-ticker {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column;
  gap: 4px; max-height: 320px;
}
.event-item {
  background: #111122; border-left: 3px solid #333;
  border-radius: 0 4px 4px 0; padding: 7px 8px; font-size: 11px;
  line-height: 1.4; color: #c0c0d0; animation: slide-in-right 0.3s ease;
}
@keyframes slide-in-right { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.event-item.warn { border-left-color: #ffaa00; }
.event-item.danger { border-left-color: #ff3355; background: rgba(255,51,85,0.06); }
.event-item.good { border-left-color: #00ff88; }
.event-item .ev-time { font-size: 10px; color: #555566; display: block; margin-bottom: 2px; }
.event-item .ev-name { font-weight: 700; color: #e8e8f0; }

.tenant-status-list { display: flex; flex-direction: column; gap: 5px; }
.ts-card {
  background: #111122; border: 1px solid #1e1e30;
  border-radius: 5px; padding: 6px 8px; font-size: 11px;
  display: flex; align-items: center; gap: 7px;
}
.ts-avatar-sm { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.ts-info { flex: 1; min-width: 0; }
.ts-name { font-weight: 700; color: #d8d8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.ts-rent { font-size: 10px; }
.ts-rent.paid { color: #00ff88; }
.ts-rent.due { color: #ff3355; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* ═══════════════════════════════════════════════════════════
   TAB CONTENT STYLES
═══════════════════════════════════════════════════════════ */

/* ── Properties Tab ─────────────────────────────────────── */
.properties-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.empty-state {
  text-align: center; padding: 60px 20px; color: #555566;
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; color: #888899; margin-bottom: 8px; }
.empty-state p { font-size: 13px; line-height: 1.6; }

.property-card {
  background: #111122; border: 1px solid rgba(0,255,136,0.12);
  border-radius: 8px; overflow: hidden; cursor: pointer;
  transition: all 0.18s ease;
}
.property-card:hover { border-color: rgba(0,255,136,0.4); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 0 20px rgba(0,255,136,0.1); }

.prop-building-visual { height: 120px; background: #0a0a14; position: relative; overflow: hidden; }
.prop-building-visual canvas { width: 100%; height: 100%; }

.prop-card-body { padding: 12px 14px; }
.prop-card-name { font-size: 15px; font-weight: 800; color: #e8e8f0; margin-bottom: 2px; }
.prop-card-addr { font-size: 11px; color: #666677; margin-bottom: 8px; }
.prop-card-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.prop-stat { display: flex; flex-direction: column; }
.prop-stat .ps-label { font-size: 9px; color: #555566; letter-spacing: 0.1em; text-transform: uppercase; }
.prop-stat .ps-val { font-size: 14px; font-weight: 700; }
.prop-card-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.btn-prop { padding: 5px 10px; font-size: 11px; font-weight: 700; border-radius: 4px; cursor: pointer; border: 1px solid; transition: all 0.15s; }
.btn-manage { border-color: rgba(0,255,136,0.4); color: #00ff88; background: rgba(0,255,136,0.07); }
.btn-manage:hover { background: rgba(0,255,136,0.18); }
.btn-sell { border-color: rgba(255,51,85,0.4); color: #ff7799; background: rgba(255,51,85,0.06); }
.btn-sell:hover { background: rgba(255,51,85,0.15); }

/* Condition badge */
.cond-badge {
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.cond-A { background: rgba(0,255,136,0.15); color: #00ff88; border: 1px solid rgba(0,255,136,0.3); }
.cond-B { background: rgba(68,136,255,0.15); color: #4488ff; border: 1px solid rgba(68,136,255,0.3); }
.cond-C { background: rgba(255,170,0,0.15); color: #ffaa00; border: 1px solid rgba(255,170,0,0.3); }
.cond-D { background: rgba(255,100,0,0.15); color: #ff6600; border: 1px solid rgba(255,100,0,0.3); }
.cond-F { background: rgba(255,51,85,0.15); color: #ff3355; border: 1px solid rgba(255,51,85,0.3); }

/* ── Property Management Modal ──────────────────────────── */
.prop-mgmt-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.prop-mgmt-building { width: 180px; height: 140px; border-radius: 6px; overflow: hidden; flex-shrink: 0; border: 1px solid #1e1e30; }
.prop-mgmt-info h2 { color: #ffd700; font-size: 20px; font-weight: 900; }
.prop-mgmt-info .addr { color: #666677; font-size: 12px; margin: 2px 0 8px; }
.prop-mgmt-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-chip { background: #0a0a14; border: 1px solid #1e1e30; border-radius: 4px; padding: 4px 10px; font-size: 11px; }
.meta-chip .mc-label { color: #555566; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; display: block; }

.tenant-list-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tenant-card {
  background: #0d0d1c; border: 1px solid #1e1e30;
  border-radius: 7px; padding: 12px 14px;
  display: grid; grid-template-columns: 52px 1fr; gap: 12px;
  align-items: start; transition: border-color 0.15s;
}
.tenant-card:hover { border-color: rgba(0,255,136,0.2); }
.tenant-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #00ff88; flex-shrink: 0; }
.tenant-info .t-name { font-size: 16px; font-weight: 800; color: #e8e8f0; }
.tenant-info .t-trait { font-size: 11px; background: rgba(255,170,0,0.12); color: #ffaa00; border: 1px solid rgba(255,170,0,0.25); border-radius: 3px; display: inline-block; padding: 1px 6px; margin: 3px 0; }
.tenant-info .t-rent { font-size: 13px; color: #00ff88; font-weight: 700; }
.tenant-bars { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.tbar-row { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #666677; }
.tbar-label { width: 58px; text-align: right; letter-spacing: 0.05em; }
.tbar-bg { flex: 1; height: 6px; background: #1a1a28; border-radius: 3px; overflow: hidden; }
.tbar-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }
.tbar-fill.happy { background: linear-gradient(90deg, #ffaa00, #00ff88); }
.tbar-fill.trouble { background: linear-gradient(90deg, #ffaa00, #ff3355); }
.tenant-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.ta-btn {
  padding: 5px 9px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 4px; cursor: pointer; border: 1px solid; transition: all 0.15s; text-transform: uppercase;
}
.ta-collect { border-color: rgba(0,255,136,0.5); color: #00ff88; background: rgba(0,255,136,0.07); }
.ta-collect:hover { background: rgba(0,255,136,0.18); }
.ta-warn { border-color: rgba(255,170,0,0.5); color: #ffaa00; background: rgba(255,170,0,0.07); }
.ta-warn:hover { background: rgba(255,170,0,0.18); }
.ta-evict { border-color: rgba(255,100,0,0.5); color: #ff6600; background: rgba(255,100,0,0.07); }
.ta-evict:hover { background: rgba(255,100,0,0.18); }
.ta-arrest { border-color: rgba(68,136,255,0.5); color: #4488ff; background: rgba(68,136,255,0.07); }
.ta-arrest:hover { background: rgba(68,136,255,0.18); }
.ta-kick { border-color: rgba(255,51,85,0.5); color: #ff3355; background: rgba(255,51,85,0.07); }
.ta-kick:hover { background: rgba(255,51,85,0.18); }
.ta-repair { border-color: rgba(100,180,255,0.4); color: #88aaff; background: rgba(100,180,255,0.06); }
.ta-repair:hover { background: rgba(100,180,255,0.15); }
.ta-raise { border-color: rgba(255,215,0,0.4); color: #ffd700; background: rgba(255,215,0,0.06); }
.ta-raise:hover { background: rgba(255,215,0,0.15); }
.evicting-badge { font-size: 10px; color: #ff6600; font-weight: 700; background: rgba(255,100,0,0.12); border: 1px solid rgba(255,100,0,0.3); border-radius: 3px; padding: 2px 7px; }

/* ── Jobs Tab ────────────────────────────────────────────── */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.job-card {
  background: #111122; border: 1px solid #1e1e30;
  border-radius: 8px; padding: 18px 16px; text-align: center;
  transition: all 0.18s;
}
.job-card:hover { border-color: rgba(0,255,136,0.25); }
.job-icon { font-size: 36px; margin-bottom: 8px; }
.job-title { font-size: 16px; font-weight: 800; color: #e8e8f0; margin-bottom: 4px; }
.job-desc { font-size: 11px; color: #888899; line-height: 1.5; margin-bottom: 10px; min-height: 40px; }
.job-pay { font-size: 18px; font-weight: 800; color: #00ff88; margin-bottom: 12px; }
.job-btn {
  width: 100%; padding: 10px; font-size: 14px; font-weight: 800;
  border-radius: 5px; cursor: pointer; border: 2px solid #00ff88;
  background: rgba(0,255,136,0.1); color: #00ff88;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: all 0.15s;
}
.job-btn:hover:not(:disabled) { background: rgba(0,255,136,0.22); box-shadow: 0 0 14px rgba(0,255,136,0.3); }
.job-btn:disabled { border-color: #333344; color: #555566; background: transparent; cursor: not-allowed; }
.job-cooldown { height: 5px; background: #1a1a28; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.job-cd-fill { height: 100%; background: #00ff88; border-radius: 3px; transition: width 0.1s linear; }
.job-result { font-size: 11px; color: #888899; margin-top: 6px; min-height: 16px; font-style: italic; }

/* ── Finances Tab ────────────────────────────────────────── */
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.finance-card {
  background: #111122; border: 1px solid #1e1e30; border-radius: 8px; padding: 16px;
}
.finance-card h3 { font-size: 13px; font-weight: 800; color: #888899; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.finance-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #1a1a28; font-size: 13px; }
.finance-row:last-child { border-bottom: none; }
.finance-row .fr-label { color: #aaaacc; }
.finance-row .fr-val { font-weight: 700; }
.finance-total { display: flex; justify-content: space-between; padding: 10px 0 0; margin-top: 6px; border-top: 2px solid #2a2a44; font-size: 16px; font-weight: 800; }
.loan-section { background: #111122; border: 1px solid #1e1e30; border-radius: 8px; padding: 16px; margin-top: 16px; }
.loan-section h3 { color: #ffd700; font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.loan-options { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.loan-btn {
  padding: 9px 16px; font-size: 12px; font-weight: 700; border-radius: 5px;
  cursor: pointer; border: 1px solid rgba(255,215,0,0.35); color: #ffd700;
  background: rgba(255,215,0,0.07); transition: all 0.15s;
}
.loan-btn:hover { background: rgba(255,215,0,0.18); }

/* ── Market Tab ──────────────────────────────────────────── */
.market-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.market-indicator {
  padding: 6px 14px; border-radius: 5px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
}
.market-indicator.hot { background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.35); color: #00ff88; }
.market-indicator.stable { background: rgba(255,170,0,0.1); border: 1px solid rgba(255,170,0,0.35); color: #ffaa00; }
.market-indicator.crash { background: rgba(255,51,85,0.1); border: 1px solid rgba(255,51,85,0.35); color: #ff3355; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.listing-card {
  background: #111122; border: 1px solid #1e1e30; border-radius: 8px; overflow: hidden;
  transition: all 0.18s;
}
.listing-card:hover { border-color: rgba(255,215,0,0.3); transform: translateY(-2px); }
.listing-visual { height: 100px; background: #0a0a14; position: relative; overflow: hidden; }
.listing-visual canvas { width: 100%; height: 100%; }
.listing-body { padding: 12px 14px; }
.listing-name { font-size: 14px; font-weight: 800; color: #e8e8f0; }
.listing-addr { font-size: 11px; color: #555566; margin-bottom: 8px; }
.listing-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.listing-stat { font-size: 11px; }
.listing-stat .ls-label { color: #555566; text-transform: uppercase; font-size: 9px; letter-spacing: 0.1em; display: block; }
.listing-stat .ls-val { font-weight: 700; }
.listing-price { font-size: 20px; font-weight: 900; color: #ffd700; margin: 6px 0; }
.btn-buy {
  width: 100%; padding: 10px; font-size: 13px; font-weight: 800;
  border-radius: 5px; cursor: pointer; border: 2px solid #ffd700;
  background: rgba(255,215,0,0.1); color: #ffd700;
  text-transform: uppercase; letter-spacing: 0.06em; transition: all 0.15s;
}
.btn-buy:hover:not(:disabled) { background: rgba(255,215,0,0.22); box-shadow: 0 0 14px rgba(255,215,0,0.3); }
.btn-buy:disabled { border-color: #333344; color: #555566; background: transparent; cursor: not-allowed; }

/* ── Invest Tab ──────────────────────────────────────────── */
.invest-section { margin-bottom: 20px; }
.invest-section h3 { font-size: 16px; font-weight: 800; color: #ffd700; margin-bottom: 12px; border-bottom: 1px solid #1e1e30; padding-bottom: 8px; }
.invest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.invest-card {
  background: #111122; border: 1px solid #1e1e30; border-radius: 7px; padding: 14px;
  text-align: center; transition: all 0.18s;
}
.invest-card:hover { border-color: rgba(68,136,255,0.35); }
.invest-icon { font-size: 28px; margin-bottom: 6px; }
.invest-name { font-size: 13px; font-weight: 800; color: #e8e8f0; }
.invest-ticker { font-size: 10px; color: #555566; text-transform: uppercase; letter-spacing: 0.1em; }
.invest-price { font-size: 18px; font-weight: 800; color: #4488ff; margin: 6px 0; }
.invest-change { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.invest-change.up { color: #00ff88; }
.invest-change.down { color: #ff3355; }
.invest-owned { font-size: 11px; color: #888899; margin-bottom: 8px; }
.invest-actions { display: flex; gap: 6px; justify-content: center; }
.inv-btn {
  padding: 5px 12px; font-size: 11px; font-weight: 700;
  border-radius: 4px; cursor: pointer; border: 1px solid; transition: all 0.15s;
}
.inv-buy { border-color: rgba(0,255,136,0.4); color: #00ff88; background: rgba(0,255,136,0.07); }
.inv-buy:hover { background: rgba(0,255,136,0.18); }
.inv-sell { border-color: rgba(255,51,85,0.4); color: #ff3355; background: rgba(255,51,85,0.07); }
.inv-sell:hover { background: rgba(255,51,85,0.18); }
.inv-sell:disabled { border-color: #333344; color: #444455; cursor: not-allowed; background: transparent; }

/* ── Court Tab ───────────────────────────────────────────── */
.court-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.court-header h2 { font-size: 20px; font-weight: 900; color: #ffd700; }
.lawsuit-list { display: flex; flex-direction: column; gap: 12px; }
.lawsuit-card {
  background: #111122; border: 1px solid rgba(255,51,85,0.25);
  border-radius: 8px; padding: 16px;
}
.lawsuit-card h4 { font-size: 14px; font-weight: 800; color: #ff7799; margin-bottom: 6px; }
.lawsuit-card p { font-size: 12px; color: #aaaacc; line-height: 1.6; margin-bottom: 10px; }
.lawsuit-amount { font-size: 18px; font-weight: 900; color: #ff3355; margin-bottom: 10px; }
.lawsuit-actions { display: flex; gap: 8px; }
.btn-settle { padding: 7px 14px; font-size: 12px; font-weight: 700; border-radius: 4px; cursor: pointer; border: 1px solid rgba(255,170,0,0.4); color: #ffaa00; background: rgba(255,170,0,0.08); transition: all 0.15s; }
.btn-settle:hover { background: rgba(255,170,0,0.18); }
.btn-fight { padding: 7px 14px; font-size: 12px; font-weight: 700; border-radius: 4px; cursor: pointer; border: 1px solid rgba(68,136,255,0.4); color: #4488ff; background: rgba(68,136,255,0.08); transition: all 0.15s; }
.btn-fight:hover { background: rgba(68,136,255,0.18); }
.court-log { margin-top: 20px; }
.court-log h3 { font-size: 14px; color: #888899; margin-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.log-entry { font-size: 12px; color: #888899; padding: 5px 0; border-bottom: 1px solid #1a1a28; }
.log-entry:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   FX LAYER — Floating dollars, police flash, etc.
═══════════════════════════════════════════════════════════ */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 500; overflow: hidden; }
.fx-dollar {
  position: absolute; font-size: 18px; animation: float-up 1.8s ease-out forwards;
  color: #00ff88; text-shadow: 0 0 8px rgba(0,255,136,0.7); pointer-events: none;
}
@keyframes float-up {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-120px) rotate(20deg); opacity: 0; }
}
.fx-police-flash {
  position: fixed; inset: 0;
  animation: police-flash 0.8s ease-out forwards;
  pointer-events: none;
}
@keyframes police-flash {
  0%   { background: rgba(255,51,85,0.15); }
  25%  { background: rgba(68,136,255,0.15); }
  50%  { background: rgba(255,51,85,0.1); }
  75%  { background: rgba(68,136,255,0.1); }
  100% { background: transparent; }
}
.fx-fire-flash {
  position: fixed; inset: 0;
  animation: fire-flash 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes fire-flash {
  0%   { background: rgba(255,100,0,0.2); }
  100% { background: transparent; }
}
.shake { animation: shake 0.4s ease-out; }
@keyframes shake {
  0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}
}

/* ── Toast Notifications ─────────────────────────────────── */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 800; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  padding: 12px 20px; border-radius: 6px; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
  max-width: 340px;
}
@keyframes toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateX(110%); opacity: 0; } }
.toast.good { background: #0d1f12; border: 1px solid #00ff88; color: #00ff88; }
.toast.warn { background: #1f1800; border: 1px solid #ffaa00; color: #ffaa00; }
.toast.danger { background: #1f0508; border: 1px solid #ff3355; color: #ff7799; }
.toast.info { background: #0d1220; border: 1px solid #4488ff; color: #88aaff; }

/* ── Game Over & Win Screens ─────────────────────────────── */
.overlay-screen {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px; text-align: center;
  animation: fade-in 0.5s ease;
}
.overlay-screen h1 { font-size: 64px; font-weight: 900; line-height: 1; }
.overlay-screen.gameover h1 { color: #ff3355; text-shadow: 0 0 40px rgba(255,51,85,0.5); }
.overlay-screen.win h1 { color: #ffd700; text-shadow: 0 0 40px rgba(255,215,0,0.5); }
.overlay-screen p { font-size: 18px; color: #aaaacc; max-width: 480px; line-height: 1.7; }
.overlay-screen .big-stat { font-size: 32px; font-weight: 900; color: #00ff88; }
.overlay-btn {
  padding: 14px 40px; font-size: 16px; font-weight: 800; border-radius: 6px;
  cursor: pointer; border: 2px solid #00ff88; color: #00ff88;
  background: rgba(0,255,136,0.1); text-transform: uppercase; letter-spacing: 0.1em;
  transition: all 0.18s;
}
.overlay-btn:hover { background: rgba(0,255,136,0.22); box-shadow: 0 0 20px rgba(0,255,136,0.4); }

/* ── Input / dialog ──────────────────────────────────────── */
.modal-input {
  width: 100%; padding: 10px 14px; background: #0d0d1c; border: 1px solid #2a2a44;
  border-radius: 5px; color: #e8e8f0; font-size: 14px; margin: 6px 0;
}
.modal-input:focus { outline: none; border-color: #00ff88; }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; justify-content: flex-end; }
.modal-actions .btn-primary { padding: 9px 20px; border-radius: 5px; font-size: 13px; font-weight: 700; cursor: pointer; border: 2px solid #00ff88; color: #00ff88; background: rgba(0,255,136,0.1); transition: all 0.15s; }
.modal-actions .btn-primary:hover { background: rgba(0,255,136,0.2); }
.modal-actions .btn-cancel { padding: 9px 20px; border-radius: 5px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid #333344; color: #888; background: transparent; transition: all 0.15s; }
.modal-actions .btn-cancel:hover { border-color: #ff3355; color: #ff7799; }
