/* ==========================================================================
   SAB ORACLE 99% — GLASSMORPHISM DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  --bg-dark: #070913;
  --bg-card: rgba(16, 22, 40, 0.65);
  --bg-card-hover: rgba(22, 30, 54, 0.75);
  --bg-card-light: rgba(255, 255, 255, 0.03);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(168, 85, 247, 0.35);
  --border-glow: rgba(99, 102, 241, 0.25);
  
  --primary-accent: #a855f7;
  --primary-cyan: #06b6d4;
  --primary-blue: #3b82f6;
  --primary-emerald: #10b981;
  --primary-amber: #f59e0b;
  --primary-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* SabDice Color Palette */
  --dice-red: #ef4444;
  --dice-blue: #3b82f6;
  --dice-green: #10b981;
  --dice-yellow: #eab308;
  --dice-orange: #f97316;
  --dice-purple: #a855f7;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Cyber Lighting */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatLight 14s infinite alternate ease-in-out;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, transparent 70%);
  top: -100px;
  left: 10%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, transparent 70%);
  bottom: -150px;
  right: 5%;
  animation-duration: 18s;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
  top: 40%;
  left: 45%;
  animation-duration: 22s;
}

@keyframes floatLight {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(40px) scale(1.1); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Base Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Glass Header */
.glass-header {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.1rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

/* Center Branding & Predictors Navigation */
.header-nav-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.predictor-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.pred-btn-text {
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.pred-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.green-beacon {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulsePing 1.8s infinite ease-out;
}

.purple-beacon {
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
  animation: pulsePing 1.8s infinite ease-out;
}

.pred-badge {
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.live-tag {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.auth-tag {
  background: rgba(168, 85, 247, 0.22);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.pred-arrow-icon {
  opacity: 0.75;
  transition: transform 0.25s ease, opacity 0.25s ease;
  flex-shrink: 0;
}

/* Online Predictor Button Styling */
.online-nav-btn {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.18), inset 0 0 12px rgba(16, 185, 129, 0.06);
}

.online-nav-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.85);
  color: #ffffff;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5), inset 0 0 16px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.online-nav-btn:hover .pred-arrow-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Offline Predictor Button Styling */
.offline-nav-btn {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.18), inset 0 0 12px rgba(168, 85, 247, 0.06);
}

.offline-nav-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(192, 132, 252, 0.85);
  color: #ffffff;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5), inset 0 0 16px rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

.offline-nav-btn:hover .pred-arrow-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Center Branding: Traced HUB */
.traced-hub-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.15rem 0.45rem 0.55rem;
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid rgba(255, 160, 40, 0.4);
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 25px rgba(255, 120, 0, 0.25), inset 0 0 15px rgba(255, 140, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.traced-hub-center:hover {
  border-color: rgba(255, 175, 40, 0.7);
  box-shadow: 0 0 35px rgba(255, 140, 0, 0.5), inset 0 0 20px rgba(255, 160, 40, 0.18);
  transform: translateY(-1px);
}

.traced-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ff9d00;
  box-shadow: 0 0 16px rgba(255, 157, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090b;
  flex-shrink: 0;
}

.traced-logo-badge {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.traced-hub-center:hover .traced-logo-badge {
  transform: scale(1.12);
}

.traced-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Outfit', sans-serif;
}

.traced-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ffffff 30%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(255, 170, 0, 0.45);
}

.hub-badge {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.22rem 0.55rem;
  background: linear-gradient(135deg, #ff7a00, #ff3d00);
  color: #fff;
  border-radius: 6px;
  letter-spacing: 0.12em;
  box-shadow: 0 2px 10px rgba(255, 85, 0, 0.55);
  text-transform: uppercase;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.logo-box {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.die-icon {
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  gap: 3px;
}

.die-icon .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}
.die-icon .dot.d1 { background: var(--dice-red); box-shadow: 0 0 4px var(--dice-red); }
.die-icon .dot.d2 { background: var(--dice-blue); box-shadow: 0 0 4px var(--dice-blue); }
.die-icon .dot.d3 { background: var(--dice-green); box-shadow: 0 0 4px var(--dice-green); }
.die-icon .dot.d4 { background: var(--dice-yellow); box-shadow: 0 0 4px var(--dice-yellow); }

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accent-text {
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.header-status-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
}

.ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulsePing 2s infinite ease-out;
}

@keyframes pulsePing {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #10b981; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.latency {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6ee7b7;
  padding-left: 0.35rem;
  border-left: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card-light);
  border: 1px solid var(--border-glass);
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

.pill-label {
  color: var(--text-dim);
  font-weight: 600;
}

.pill-val {
  color: var(--primary-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
}

.icon-action-btn {
  background: var(--bg-card-light);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-action-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

/* Main Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 1.75rem;
}

@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Glass Card Common Styles */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.07);
}

.core-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-header.border-b {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.header-icon-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-icon-title h2,
.header-icon-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header-icon-title p {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.badge-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #22d3ee;
}

.badge-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.accuracy-pill {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.accuracy-pill .sparkle {
  color: #facc15;
}

/* Verifier Form */
.verify-form {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 650px) {
  .verify-form {
    flex-direction: column;
  }
}

.input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(10, 14, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.4rem 0.75rem;
  transition: all 0.25s ease;
}

.input-wrapper:focus-within {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), 0 0 20px rgba(168, 85, 247, 0.25);
  background: rgba(12, 17, 34, 0.95);
}

.input-prefix {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding-left: 0.4rem;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.input-wrapper input::placeholder {
  color: #475569;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.glass-sub-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.glass-sub-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.glow-submit-btn {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
  border: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.85rem 1.75rem;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 25px rgba(168, 85, 247, 0.4);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.glow-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.55);
}

.glow-submit-btn:active {
  transform: translateY(0);
}

/* Quick Samples */
.quick-samples {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.quick-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.samples-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sample-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sample-chip:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
}

/* Result Card & 3D Glass Dice */
.status-verified-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #10b981;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.roll-timestamp {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.meta-details-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .meta-details-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.meta-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.meta-val.highlight {
  color: #38bdf8;
}

.meta-val.mono {
  font-family: var(--font-mono);
  color: #c084fc;
}

.meta-val.success {
  color: #34d399;
}

/* 3D Dice Arena */
.dice-arena {
  background: radial-gradient(circle at center, rgba(30, 41, 75, 0.45) 0%, rgba(10, 14, 28, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.arena-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.dice-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  perspective: 1000px;
  min-height: 120px;
}

/* Individual 3D Glass Die Cube */
.glass-die-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.glass-die {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  animation: dieDrop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes dieDrop {
  0% { transform: scale(0.4) rotate(-30deg) translateY(-50px); opacity: 0; }
  100% { transform: scale(1) rotate(0deg) translateY(0); opacity: 1; }
}

.glass-die:hover {
  transform: translateY(-8px) scale(1.05) rotate(4deg);
}

.die-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Color Styles for Dice */
.glass-die.Red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.45) 0%, rgba(185, 28, 28, 0.8) 100%);
  border: 2px solid rgba(254, 202, 202, 0.6);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.4);
}
.glass-die.Red + .die-label { color: #fca5a5; }

.glass-die.Blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45) 0%, rgba(29, 78, 216, 0.8) 100%);
  border: 2px solid rgba(191, 219, 254, 0.6);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.4);
}
.glass-die.Blue + .die-label { color: #93c5fd; }

.glass-die.Green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45) 0%, rgba(4, 120, 87, 0.8) 100%);
  border: 2px solid rgba(167, 243, 208, 0.6);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.4);
}
.glass-die.Green + .die-label { color: #6ee7b7; }

.glass-die.Yellow {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.45) 0%, rgba(161, 98, 7, 0.8) 100%);
  border: 2px solid rgba(254, 240, 138, 0.6);
  box-shadow: 0 10px 25px rgba(234, 179, 8, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.4);
}
.glass-die.Yellow + .die-label { color: #fde047; }

.glass-die.Purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45) 0%, rgba(107, 33, 168, 0.8) 100%);
  border: 2px solid rgba(233, 213, 255, 0.6);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.4);
}
.glass-die.Purple + .die-label { color: #d8b4fe; }

.glass-die.Orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.45) 0%, rgba(194, 65, 12, 0.8) 100%);
  border: 2px solid rgba(254, 215, 170, 0.6);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.4);
}
.glass-die.Orange + .die-label { color: #fdba74; }

/* Die Face Pip Layout */
.die-pip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 52px;
  height: 52px;
  pointer-events: none;
}

.die-pip {
  background: #ffffff;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin: auto;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Neural Predictor Card */
.predictor-card {
  border: 1px solid rgba(168, 85, 247, 0.3);
  position: relative;
  overflow: hidden;
}

.predictor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #06b6d4, #10b981);
}

.predictor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.neural-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.06em;
}

.pulsing-radar {
  width: 10px;
  height: 10px;
  background-color: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
  animation: pulseRadar 1.6s infinite;
}

@keyframes pulseRadar {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.confidence-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.accuracy-number {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.accuracy-sub {
  font-size: 0.62rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.08em;
}

/* AI Forecast Banner */
.ai-forecast-banner {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 650px) {
  .ai-forecast-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.forecast-icon {
  font-size: 1.8rem;
  background: rgba(168, 85, 247, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.forecast-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}

.forecast-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 0.25rem;
  line-height: 1.45;
}

.ai-callout-badge {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  color: #022c22;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

/* Probability Matrix */
.matrix-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.prob-bars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .prob-bars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.prob-bar-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s;
}

.prob-bar-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.prob-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prob-color-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.prob-pct {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.prob-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.prob-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Strategy Metrics */
.strategy-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 650px) {
  .strategy-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.strategy-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.strategy-box.safe { border-left: 3px solid #10b981; }
.strategy-box.balanced { border-left: 3px solid #38bdf8; }
.strategy-box.aggressive { border-left: 3px solid #f43f5e; }

.strat-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.strategy-box.safe .strat-label { color: #34d399; }
.strategy-box.balanced .strat-label { color: #38bdf8; }
.strategy-box.aggressive .strat-label { color: #fb7185; }

.strat-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.strat-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Player History Card */
.count-badge {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.history-list::-webkit-scrollbar {
  width: 5px;
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.history-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.history-item-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(3px);
}

.hist-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hist-roll-id {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.hist-dice-mini {
  display: flex;
  gap: 4px;
}

.mini-dice-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.hist-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hist-time {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}

/* Sidebar Heatmap Card */
.icon-refresh-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-refresh-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.heatmap-legend {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.heat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.heat-name {
  width: 55px;
  font-weight: 700;
  color: #e2e8f0;
}

.heat-track {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.heat-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.heat-val {
  width: 42px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Live Feed Sidebar */
.live-dot-pulse {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: liveBlink 1.5s infinite;
}

@keyframes liveBlink {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.feed-timer {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary-cyan);
}

.live-rolls-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.live-rolls-container::-webkit-scrollbar {
  width: 4px;
}

.live-rolls-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.live-card-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.live-card-item:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.live-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.live-user {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.live-verified-icon {
  color: #10b981;
}

.live-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a78bfa;
}

.live-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-dice-group {
  display: flex;
  gap: 5px;
}

.live-dice-badge {
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.live-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Loading Shimmer */
.loading-shimmer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shimmer-row {
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes toastIn {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.toast.success { border-color: rgba(16, 185, 129, 0.5); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); }

/* Glass Footer */
.glass-footer {
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 1rem;
}

.footer-sub {
  font-size: 0.7rem;
  color: #475569;
  margin-top: 0.25rem;
}

/* ==========================================================================
   MODE SWITCHER TABS & STREAMER SNIPER STYLING
   ========================================================================== */

.mode-tabs {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
}

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

.mode-tab.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(6, 182, 212, 0.25));
  border-color: rgba(168, 85, 247, 0.5);
  color: #f1f5f9;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

/* Streamer Select Bar */
.streamer-select-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
}

.streamer-select-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.06em;
}

.streamer-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.streamer-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.streamer-chip:hover, .streamer-chip.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  color: #e0f2fe;
  transform: translateY(-1px);
}

/* 🎯 SINGLE COLOR SNIPER SPOTLIGHT CARD */
.single-color-sniper-box {
  background: radial-gradient(circle at left, rgba(30, 27, 75, 0.85) 0%, rgba(10, 14, 28, 0.95) 100%);
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 35px rgba(168, 85, 247, 0.25), inset 0 0 20px rgba(168, 85, 247, 0.15);
  animation: sniperGlowPulse 4s infinite alternate;
}

@keyframes sniperGlowPulse {
  0% { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 10px 35px rgba(168, 85, 247, 0.2); }
  100% { border-color: rgba(6, 182, 212, 0.6); box-shadow: 0 10px 40px rgba(6, 182, 212, 0.3); }
}

@media (max-width: 650px) {
  .single-color-sniper-box {
    flex-direction: column;
    text-align: center;
  }
}

.sniper-die-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sniper-glass-die {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sniper-die-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.sniper-intel {
  flex: 1;
}

.sniper-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sniper-callout {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
}

.highlight-color {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 15px currentColor;
}

.sniper-subtext {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.sniper-stat-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1.2rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-top {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-bot {
  font-size: 0.62rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

@media (max-width: 1200px) {
  .glass-header {
    flex-wrap: wrap;
    gap: 1.15rem;
    justify-content: center;
  }
  .header-nav-center {
    order: 3;
    width: 100%;
    margin-top: 0.2rem;
  }
}

@media (max-width: 900px) {
  .glass-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1rem;
  }
  .header-nav-center {
    order: -1;
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .predictor-nav-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   COMMERCIAL API & LIVE STREAM PORTAL STYLES
   ========================================================================== */

.api-nav-glow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.18));
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 9999px;
  padding: 0.45rem 0.95rem;
  color: #34d399;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.api-nav-glow-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(6, 182, 212, 0.32));
  border-color: #34d399;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.5);
  color: #fff;
}

.api-glow-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.5s infinite;
}

.api-tag-sale {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

/* Feed header actions */
.feed-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stream-api-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 6px;
  color: #c084fc;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stream-api-badge:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #fff;
}

.stream-dot {
  width: 6px;
  height: 6px;
  background: #c084fc;
  border-radius: 50%;
  box-shadow: 0 0 8px #c084fc;
}

/* Verified Result API Bar */
.verified-api-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(10, 15, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  margin-top: 1rem;
}

.api-bar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-bar-method {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.api-bar-endpoint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.api-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.api-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.api-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #cbd5e1;
}

.api-pill-btn.highlight {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
}

.api-pill-btn.highlight:hover {
  background: rgba(168, 85, 247, 0.32);
  border-color: #c084fc;
  color: #fff;
}

/* Modal Overlay & Backdrop */
.api-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.api-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.api-modal-window {
  width: 100%;
  max-width: 1020px;
  max-height: 90vh;
  background: linear-gradient(145deg, rgba(17, 24, 46, 0.95), rgba(9, 13, 28, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(168, 85, 247, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.api-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.api-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.api-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.api-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.api-modal-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.api-modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.api-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

/* Modal Tabs */
.api-modal-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  overflow-x: auto;
}

.api-modal-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.api-modal-tab:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
}

.api-modal-tab.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.api-modal-tab.purple.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
}

.api-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.api-tab-pane {
  display: none;
}

.api-tab-pane.active {
  display: block;
}

/* LIVE STREAM CONSOLE */
.stream-console-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.95rem 1.25rem;
  margin-bottom: 1.25rem;
}

.stream-ctrl-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-ctrl-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.stream-key-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.38rem 0.65rem;
  width: 190px;
}

.stream-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  margin-left: auto;
}

.stream-toggle-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.stream-toggle-btn.running {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

/* Terminal Log View */
.stream-terminal-view {
  background: #050811;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}

.stream-term-header {
  background: #0c1220;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stream-term-dots {
  display: flex;
  gap: 6px;
}

.stream-term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stream-term-dot.r { background: #ef4444; }
.stream-term-dot.y { background: #eab308; }
.stream-term-dot.g { background: #10b981; }

.stream-term-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
}

.stream-log-scroll {
  height: 380px;
  overflow-y: auto;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
}

.stream-log-entry {
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #10b981;
  animation: log-fade 0.2s ease;
}

@keyframes log-fade {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}

.stream-log-entry.roll {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.stream-log-entry.prediction {
  border-left-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
}

.stream-dice-strip {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
  margin: 0 0.35rem;
}

.stream-dice-pip {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

/* PRICING & SELLING CARDS */
.api-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.6rem 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.7), rgba(15, 23, 42, 0.8));
  border: 1px solid #a855f7;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.25);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.pricing-tier-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.pricing-tier-price {
  font-size: 2rem;
  font-weight: 900;
  color: #34d399;
  margin: 0.65rem 0 0.35rem;
  font-family: var(--font-mono);
}

.pricing-tier-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.pricing-features-list {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.pricing-features-list li {
  font-size: 0.78rem;
  color: #cbd5e1;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pricing-features-list li::before {
  content: '✓';
  color: #34d399;
  font-weight: 900;
}

.pricing-buy-btn {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.pricing-buy-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
}

.pricing-card.featured .pricing-buy-btn {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.45);
}

/* Admin Generator Box */
.admin-key-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(168, 85, 247, 0.4);
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.admin-key-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #c084fc;
  margin-bottom: 0.5rem;
}

.admin-key-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

/* Code Snippets & Sandbox */
.code-tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.code-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

.code-tab-btn.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #34d399;
  color: #34d399;
}

.code-pre-box {
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
  position: relative;
}

.code-copy-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
}

@media (max-width: 900px) {
  .api-pricing-grid {
    grid-template-columns: 1fr;
  }
}



