/* Retro 777 Deluxe - Classic Slot Machine Stylesheet */

:root {
  --bg-dark: #0a0b10;
  --bg-cabinet: #141724;
  --bg-inner: #0f111a;
  --gold-primary: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.4);
  --neon-cyan: #00e5ff;
  --neon-red: #ff1744;
  --neon-green: #00e676;
  --border-gold: #e6b800;
  --metal-gradient: linear-gradient(180deg, #3a3f58 0%, #1a1d2e 50%, #2b3046 100%);
  --gold-gradient: linear-gradient(135deg, #fff2a3 0%, #ffd700 50%, #b8860b 100%);
  --spin-gradient: linear-gradient(180deg, #ff3d00 0%, #d50000 60%, #8e0000 100%);
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-body: 'Roboto', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
  color: #e0e6ed;
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
}

/* TOP NAVIGATION */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #fff;
}

.brand-text .highlight {
  color: var(--gold-primary);
  text-shadow: 0 0 12px var(--gold-glow);
}

.brand-text .subtext {
  font-size: 0.75rem;
  color: #8c9ba5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-btn {
  background: transparent;
  border: none;
  color: #a0aec0;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-badge {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-badge .lbl {
  font-size: 0.65rem;
  color: #78909c;
  text-transform: uppercase;
}

.stat-badge .val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

/* TAB CONTENTS */
.tab-content {
  display: none;
  padding: 24px 0;
  flex: 1;
}

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

/* CABINET WRAPPER */
.cabinet-wrapper {
  background: var(--bg-cabinet);
  border: 2px solid #2d334d;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

/* CABINET MARQUEE */
.cabinet-marquee {
  background: linear-gradient(180deg, #1b1e2e 0%, #10121d 100%);
  border: 1px solid #363c58;
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.jackpot-display {
  text-align: center;
  flex: 1;
}

.jackpot-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--gold-primary);
  text-shadow: 0 0 8px var(--gold-glow);
}

.jackpot-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.marquee-lights {
  width: 40px;
  height: 8px;
  background: repeating-linear-gradient(90deg, #ff1744 0px, #ff1744 6px, transparent 6px, transparent 12px);
  animation: blinkLights 1s infinite alternate;
}

@keyframes blinkLights {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* FREE SPINS BANNER */
.free-spins-banner {
  background: linear-gradient(90deg, rgba(255, 61, 0, 0.85) 0%, rgba(255, 215, 0, 0.85) 100%);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 20px rgba(255, 61, 0, 0.6);
  animation: pulseFS 1.5s infinite alternate;
}

@keyframes pulseFS {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.01); filter: brightness(1.15); }
}

.fs-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.fs-info {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.fs-mult strong {
  background: #000;
  color: var(--gold-primary);
  padding: 2px 6px;
  border-radius: 4px;
}

/* SLOT REELS SCREEN */
.slot-screen-frame {
  background: #06070a;
  border: 4px solid #3d4566;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.9),
    0 4px 20px rgba(0, 0, 0, 0.6);
}

.reels-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px;
  background: #090a0f;
  position: relative;
}

.reel-column {
  background: #11131c;
  border: 1px solid #232738;
  border-radius: 8px;
  height: 330px; /* 3 rows * 110px */
  overflow: hidden;
  position: relative;
}

.reel-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.reel-symbol-cell {
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: all 0.3s ease;
  user-select: none;
}

.symbol-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.symbol-name {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: #8c9ba5;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Blur animation during spin */
.reel-spinning .symbol-icon {
  filter: blur(4px) drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
  animation: reelShake 0.1s infinite;
}

@keyframes reelShake {
  0% { transform: translateY(-4px); }
  50% { transform: translateY(4px); }
  100% { transform: translateY(-4px); }
}

/* Winning cell highlight */
.reel-symbol-cell.winning-cell {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.02) 80%);
  border: 2px solid var(--gold-primary);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), inset 0 0 10px rgba(255, 215, 0, 0.3);
  z-index: 2;
}

.reel-symbol-cell.winning-cell .symbol-icon {
  transform: scale(1.18);
  animation: winBounce 0.6s infinite alternate;
}

@keyframes winBounce {
  from { transform: scale(1.1); filter: brightness(1); }
  to { transform: scale(1.25); filter: brightness(1.3) drop-shadow(0 0 12px gold); }
}

/* Payline SVG */
.payline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* WIN BANNER POPUP */
.win-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(10, 11, 16, 0.95);
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
  border-radius: 16px;
  padding: 24px 48px;
  text-align: center;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.win-banner.show {
  transform: translate(-50%, -50%) scale(1);
}

.win-banner-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-primary);
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--gold-glow);
}

.win-banner-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-top: 8px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
}

/* CABINET STATUS STRIP */
.cabinet-status-strip {
  background: #0b0d14;
  border: 1px solid #232738;
  border-radius: 6px;
  padding: 8px 16px;
  margin-top: 12px;
  text-align: center;
}

.status-msg {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #a0aec0;
}

/* CABINET METERS */
.cabinet-meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.meter-box {
  background: linear-gradient(180deg, #181b2a 0%, #0e101a 100%);
  border: 1px solid #2b3046;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}

.meter-lbl {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #718096;
  letter-spacing: 1px;
}

.meter-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

/* CABINET CONTROLS */
.cabinet-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control-group label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stepper {
  display: flex;
  align-items: center;
  background: #0d0f17;
  border: 1px solid #2d334d;
  border-radius: 6px;
  overflow: hidden;
}

.step-btn {
  background: #1c2033;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: 0.2s;
}

.step-btn:hover {
  background: #2b314d;
}

.step-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 12px;
  min-width: 45px;
  text-align: center;
  color: var(--gold-primary);
}

.action-btn {
  background: #1c2033;
  border: 1px solid #363c58;
  color: #cbd5e0;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.action-btn:hover {
  background: #2b314d;
  color: #fff;
}

.action-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* BIG RED SPIN BUTTON */
.spin-button {
  background: var(--spin-gradient);
  border: 3px solid #ff6161;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 6px 0 #590000,
    0 8px 15px rgba(213, 0, 0, 0.6);
  transition: all 0.1s ease;
  user-select: none;
}

.spin-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.spin-button:active {
  transform: translateY(4px);
  box-shadow: 
    0 2px 0 #590000,
    0 4px 8px rgba(213, 0, 0, 0.4);
}

.spin-button:disabled {
  filter: grayscale(0.8) opacity(0.5);
  cursor: not-allowed;
  transform: none;
}

.spin-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 1px;
}

.spin-sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

/* WIN BREAKDOWN */
.win-breakdown {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.win-item-pill {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.win-item-pill strong {
  color: var(--gold-primary);
}

/* TAB 2: SIMULATOR STYLES */
.sim-panel {
  background: var(--bg-cabinet);
  border: 1px solid #2d334d;
  border-radius: 12px;
  padding: 24px;
}

.panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.panel-header p {
  font-size: 0.9rem;
  color: #a0aec0;
  line-height: 1.4;
  margin-bottom: 20px;
}

.sim-controls-card {
  background: #0d0f17;
  border: 1px solid #24293e;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.sim-input-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 16px;
  align-items: flex-end;
}

.input-item label {
  display: block;
  font-size: 0.75rem;
  color: #718096;
  margin-bottom: 6px;
  font-weight: 600;
}

.sim-select, .sim-input {
  width: 100%;
  background: #181b2a;
  border: 1px solid #363c58;
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.sim-run-btn {
  background: var(--gold-gradient);
  border: none;
  color: #000;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  transition: 0.2s;
}

.sim-run-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.sim-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  font-size: 0.95rem;
  color: var(--neon-cyan);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 229, 255, 0.2);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card {
  background: #0f111a;
  border: 1px solid #232738;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.metric-card.highlight-card {
  border-color: rgba(0, 229, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.08) 0%, #0f111a 100%);
}

.m-lbl {
  font-size: 0.7rem;
  color: #718096;
  text-transform: uppercase;
  font-weight: 700;
}

.m-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 4px 0 2px 0;
}

.m-sub {
  font-size: 0.7rem;
  color: #a0aec0;
}

.sim-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-box {
  background: #0d0f17;
  border: 1px solid #232738;
  border-radius: 8px;
  padding: 16px;
}

.detail-box h3 {
  font-size: 0.95rem;
  color: #cbd5e0;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.dist-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.dist-lbl {
  width: 110px;
  color: #8c9ba5;
}

.dist-bar-track {
  flex: 1;
  height: 12px;
  background: #1a1d2e;
  border-radius: 6px;
  overflow: hidden;
}

.dist-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.dist-val {
  width: 90px;
  text-align: right;
  font-family: var(--font-display);
  color: #fff;
}

.contrib-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.contrib-name {
  color: #a0aec0;
}

.contrib-rtp {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--neon-cyan);
}

/* TAB 3: PAYTABLE STYLES */
.paytable-panel {
  background: var(--bg-cabinet);
  border: 1px solid #2d334d;
  border-radius: 12px;
  padding: 24px;
}

.features-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #0d0f17;
}

.feature-card.special-wild {
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.feature-card.special-scatter {
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.f-icon {
  font-size: 2.8rem;
}

.f-desc h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 6px;
}

.f-desc p, .f-desc ul {
  font-size: 0.82rem;
  color: #a0aec0;
  line-height: 1.4;
}

.f-desc ul {
  margin: 6px 0 6px 18px;
}

.fs-note {
  color: var(--gold-primary) !important;
  font-weight: bold;
}

.symbols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.sym-card {
  background: #0f111a;
  border: 1px solid #232738;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sym-card-icon {
  font-size: 2.2rem;
}

.sym-card-info h5 {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 4px;
}

.sym-card-pays {
  font-size: 0.72rem;
  color: #8c9ba5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.paylines-schematic h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

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

.payline-mini-card {
  background: #0d0f17;
  border: 1px solid #232738;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.pl-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #718096;
  margin-bottom: 4px;
}

.pl-grid-mini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  background: #161928;
  padding: 4px;
  border-radius: 4px;
}

.pl-cell-mini {
  width: 100%;
  aspect-ratio: 1;
  background: #090a10;
  border-radius: 2px;
}

.pl-cell-mini.active {
  background: var(--gold-primary);
  box-shadow: 0 0 4px var(--gold-primary);
}

/* TAB 4: ARCHITECTURE STYLES */
.arch-panel {
  background: var(--bg-cabinet);
  border: 1px solid #2d334d;
  border-radius: 12px;
  padding: 24px;
}

.arch-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.arch-card {
  background: #0f111a;
  border: 1px solid #24293e;
  border-radius: 8px;
  padding: 16px;
  position: relative;
}

.card-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
}

.arch-card h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 8px;
}

.arch-card p {
  font-size: 0.8rem;
  color: #a0aec0;
  line-height: 1.4;
  margin-bottom: 10px;
}

.arch-card ul {
  font-size: 0.78rem;
  color: #cbd5e0;
  margin-left: 18px;
  line-height: 1.5;
}

.arch-card code {
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

.api-doc-box {
  background: #0a0b12;
  border: 1px solid #232738;
  border-radius: 8px;
  padding: 16px;
}

.api-doc-box h3 {
  font-size: 0.9rem;
  color: #cbd5e0;
  margin-bottom: 10px;
}

.api-doc-box code {
  color: var(--gold-primary);
}

.code-preview {
  background: #050608;
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
}

.code-preview pre {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.8rem;
  color: #64b5f6;
  line-height: 1.4;
}

/* FOOTER */
.app-footer {
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #718096;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-links a, .link-btn {
  color: var(--neon-cyan);
  text-decoration: none;
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
}

.footer-links a:hover, .link-btn:hover {
  text-decoration: underline;
}

/* UTILITY CLASSES */
.hidden { display: none !important; }
.glow-gold { color: var(--gold-primary); text-shadow: 0 0 10px var(--gold-glow); }
.glow-cyan { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.glow-red { color: var(--neon-red); text-shadow: 0 0 10px rgba(255, 23, 68, 0.5); }

/* RESPONSIVE */
@media (max-width: 860px) {
  .cabinet-controls {
    justify-content: center;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sim-input-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sim-details-grid {
    grid-template-columns: 1fr;
  }
  .arch-cards-grid {
    grid-template-columns: 1fr;
  }
  .features-overview {
    grid-template-columns: 1fr;
  }
}
