/* 123JILI Signature Grey Mobile App-Shell Design System */
/* Authentic Grey Mobile Casino Architecture */

:root {
  --bg-backdrop: #1a1a1a;
  --bg-shell: #2b2b2b;
  --surface: #383838;
  --surface2: #444444;
  --surface-elevated: #4a4a4a;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(34, 211, 238, 0.28);
  
  /* Text */
  --text: #f0f0f0;
  --text-heading: #ffffff;
  --muted: #a0a0aa;
  
  /* Accent & Gold Gradients */
  --gold-start: #FFD700;
  --gold-end: #FDB931;
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
  --cyan-accent: #22d3ee;
  --green-cta: #22c55e;
  --blue-primary: #2563eb;
  
  /* Multi-Studio Badge Colorways */
  --jili-color: #E11D48;
  --jili-amber: #F59E0B;
  --fc-gold: #D97706;
  --fc-jade: #059669;
  --pp-orange: #EA580C;
  --pp-purple: #7C3AED;
  --pg-violet: #8B5CF6;
  --pg-coral: #FB923C;
  --live-blue: #2563EB;
  --live-plat: #E2E8F0;
  
  /* Dimensions & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius: 14px;
  --radius-full: 9999px;
  --shell-width: 430px;
  --header-height: 60px;
  --bottom-nav-height: 66px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-backdrop);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  line-height: 1.5;
}

/* 430px Mobile App Shell Simulator on Desktop */
.app-shell {
  width: 100%;
  max-width: var(--shell-width);
  min-height: 100vh;
  background-color: var(--bg-shell);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
  overflow-x: hidden;
}

/* Top Notification / Notice Bar (Div only, NO Heading tags) */
.top-notice {
  background: linear-gradient(90deg, #1e3a8a 0%, #0c1a3a 100%);
  color: var(--cyan-accent);
  font-size: 11px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.top-notice-badge {
  background: rgba(34, 211, 238, 0.2);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* Sticky Top Header */
.hdr {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: rgba(43, 43, 43, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 100;
}
.hdr-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.hdr-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-hdr-login {
  background: var(--surface2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-hdr-login:hover {
  background: var(--surface-elevated);
}
.btn-hdr-reg {
  background: var(--gold-gradient);
  color: #1a1a1a;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(253, 185, 49, 0.3);
  transition: transform 0.2s ease;
}
.btn-hdr-reg:active {
  transform: scale(0.96);
}

/* Hero Container with Casino Ambient Background Layer */
.hero-container {
  position: relative;
  background-image: url('../images/casino_hero_banner.webp');
  background-size: cover;
  background-position: center;
  padding: 24px 16px 20px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.75) 0%, rgba(43,43,43,0.98) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* Typography Hierarchy - STRICT <h1> FIRST RULE */
h1 {
  font-size: 20px;
  line-height: 1.35;
  color: var(--text-heading);
  margin-bottom: 12px;
  font-weight: 700;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
  color: var(--text-heading);
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
  border-left: 3px solid var(--cyan-accent);
  padding-left: 8px;
}
h3 {
  font-size: 15px;
  color: #fff;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}
p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}

/* Dual Action Buttons (Hero & In-Content) */
.action-group {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.btn-primary-action {
  flex: 1;
  background: var(--gold-gradient);
  color: #1a1a1a;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(253, 185, 49, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-secondary-action {
  flex: 1;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary-action:hover {
  background: var(--surface);
}

/* Trust Quick-Bar */
.trust-bar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  margin: 14px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  border: 1px solid var(--border);
}
.trust-item-title {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.trust-item-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-accent);
  margin-top: 2px;
}

/* Category Filter Chips */
.filter-scroll {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar {
  display: none;
}
.chip {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.chip.active, .chip:hover {
  background: var(--cyan-accent);
  color: #0c1a3a;
  border-color: var(--cyan-accent);
}

/* 3x2 Interactive Game Grid */
.game-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 16px;
}
.game-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.game-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.game-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1c1c1c;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.provider-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-jili { background: linear-gradient(135deg, var(--jili-color), var(--jili-amber)); }
.badge-fc { background: linear-gradient(135deg, var(--fc-gold), var(--fc-jade)); }
.badge-pp { background: linear-gradient(135deg, var(--pp-orange), var(--pp-purple)); }
.badge-pg { background: linear-gradient(135deg, var(--pg-violet), var(--pg-coral)); }
.badge-live { background: linear-gradient(135deg, var(--live-blue), var(--live-plat)); color: #fff; }

.rtp-pill {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--green-cta);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
}

.game-info {
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.game-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-btn-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.btn-card-play {
  background: var(--gold-gradient);
  color: #1a1a1a;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 0;
  border-radius: 6px;
  text-align: center;
  display: block;
}
.btn-card-guide {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 0;
  border-radius: 6px;
  text-align: center;
  display: block;
}
.btn-card-guide:hover {
  color: #fff;
  background: var(--surface-elevated);
}

/* Pagination Controls */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 20px;
}
.page-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}
.page-btn.active {
  background: var(--cyan-accent);
  color: #0c1a3a;
  border-color: var(--cyan-accent);
}

/* Body Content Section Styles */
.content-body {
  padding: 0 16px 20px;
}
.content-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 16px;
}
.contextual-img {
  width: 100%;
  max-height: 224px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  margin: 6px 0;
  border: 1px solid var(--border);
  background: #1a1a1a;
  display: block;
}
.hub-spoke-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
  background: #1c1c1c;
}

/* Payment Badges Grid */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.payment-badge-card {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border);
}
.payment-badge-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
}
.payment-badge-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

/* Data Table */
.data-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
}
.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.app-table th {
  background: var(--surface2);
  color: var(--cyan-accent);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.app-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* FAQ Accordion */
.faq-box {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-a {
  padding: 0 14px 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: none;
}
.faq-box.open .faq-a {
  display: block;
}

/* Compliance Footer Block */
.compliance-footer {
  background: #1e1e1e;
  padding: 18px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
}
.age-badge-21 {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 8px;
}
.footer-disclaimer {
  line-height: 1.5;
  margin-bottom: 10px;
}
.pagcor-link {
  color: var(--cyan-accent);
  text-decoration: underline;
}

/* Fixed Bottom Navigation (5 Tabs) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell-width);
  height: var(--bottom-nav-height);
  background: rgba(35, 35, 35, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}
.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-tab.active, .nav-tab:hover {
  color: var(--cyan-accent);
}
.nav-tab-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

/* 21+ Age Gate Modal (Uses <div class="modal-title"> - NO H1-H6) */
.age-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}
.age-modal-card {
  background: #2b2b2b;
  border-radius: var(--radius);
  border: 1px solid var(--border-glow);
  width: 100%;
  max-width: 380px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}
.modal-shield-icon {
  font-size: 38px;
  margin-bottom: 12px;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.modal-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}
.modal-btn-confirm {
  width: 100%;
  background: var(--gold-gradient);
  color: #1a1a1a;
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 10px;
}
.modal-btn-exit {
  background: transparent;
  color: var(--muted);
  border: none;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   ENHANCED UI COMPONENTS: FLOW PIPELINES, APP SUITE & INTERACTIVE DIAGRAMS
   ========================================================================== */

/* Fallback styling for pre.code-flow */
pre.code-flow {
  background: #181818;
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-left: 3px solid var(--primary, #ffd700);
  border-radius: var(--radius, 10px);
  padding: 12px 14px;
  margin: 14px 0;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 11.5px;
  color: #f1f5f9;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
pre.code-flow code {
  color: #ffd700;
  font-weight: 600;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 1. Step Pipeline Component */
.step-pipeline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 18px;
  padding: 12px;
  background: linear-gradient(135deg, #222222 0%, #1a1a1a 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.3) transparent;
}
.step-pipeline::-webkit-scrollbar {
  height: 4px;
}
.step-pipeline::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 4px;
}
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
  flex: 1;
  padding: 8px 6px;
  background: #2b2b2b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pipeline-step:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.4);
}
.pipeline-step.success {
  background: linear-gradient(145deg, #1e3a1e 0%, #172817 100%);
  border-color: rgba(74, 222, 128, 0.4);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-gradient, linear-gradient(135deg, #ffe066 0%, #d4a017 100%));
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  box-shadow: 0 2px 6px rgba(212, 160, 23, 0.4);
}
.pipeline-step.success .step-badge {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #052e16;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
}
.step-text {
  font-size: 10px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
}
.step-sub {
  font-size: 8.5px;
  color: var(--muted, #9ca3af);
  margin-top: 2px;
}
.pipeline-arrow {
  color: #ffd700;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.7;
  flex-shrink: 0;
}

/* 2. Mobile Suite Diagram Component */
.mobile-suite-diagram {
  margin: 16px 0 20px;
  padding: 16px;
  background: linear-gradient(180deg, #252525 0%, #1e1e1e 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.suite-parent-node {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #333333 0%, #222222 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 10px 16px;
  border-radius: 10px;
  max-width: 280px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.suite-parent-icon {
  font-size: 20px;
}
.suite-parent-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
}
.suite-tree-stem {
  width: 2px;
  height: 16px;
  background: linear-gradient(180deg, #ffd700, rgba(255, 215, 0, 0.3));
  margin: 0 auto;
}
.suite-tree-branch {
  position: relative;
  width: 60%;
  height: 12px;
  margin: 0 auto 12px;
  border-top: 2px solid rgba(255, 215, 0, 0.4);
  border-left: 2px solid rgba(255, 215, 0, 0.4);
  border-right: 2px solid rgba(255, 215, 0, 0.4);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.suite-children-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.suite-platform-card {
  background: #2b2b2b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.suite-platform-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.5);
}
.platform-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.suite-platform-card.android .platform-badge-top {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.suite-platform-card.ios .platform-badge-top {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.platform-card-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.platform-card-specs {
  font-size: 10px;
  color: #9ca3af;
  line-height: 1.4;
  margin-bottom: 8px;
}
.platform-cta-mini {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #ffd700;
  text-decoration: none;
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.08);
  transition: background 0.2s;
}
.platform-cta-mini:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* 3. Studio Tree Hierarchy Diagram */
.studio-tree-diagram {
  margin: 16px 0 20px;
  padding: 14px;
  background: linear-gradient(180deg, #242424 0%, #1c1c1c 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
}
.studio-parent-badge {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #ffd700;
  background: #2f2f2f;
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  max-width: 250px;
  margin: 0 auto;
}
.studio-branches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.studio-branch-pill {
  background: #2b2b2b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  transition: border-color 0.2s;
}
.studio-branch-pill:hover {
  border-color: rgba(255, 215, 0, 0.4);
}
.studio-tag-main {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  display: block;
}
.studio-tag-sub {
  font-size: 9px;
  color: #ffd700;
  display: block;
  margin-top: 2px;
}

/* 4. Formula Card Component */
.formula-calc-card {
  margin: 14px 0 18px;
  padding: 14px;
  background: #1e1e1e;
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-left: 4px solid #ffd700;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.formula-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.formula-line:last-child {
  margin-bottom: 0;
}
.formula-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
}
.formula-chip.deposit {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.formula-chip.bonus {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.formula-chip.result {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  font-weight: 800;
}
.formula-op {
  color: #9ca3af;
  font-weight: 800;
  font-size: 12px;
}

/* 5. Security Comparison Versus Cards */
.security-versus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.versus-col {
  padding: 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
}
.versus-col.authentic {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.versus-col.phishing {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.versus-col-title {
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.versus-col.authentic .versus-col-title {
  color: #4ade80;
}
.versus-col.phishing .versus-col-title {
  color: #f87171;
}
.versus-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.versus-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.versus-list li:last-child {
  margin-bottom: 0;
}

