/* ==========================================================================
   99JILI DESIGN SYSTEM - MODERN CASINO UI TOKENS
   Strictly following 99Jili Logo Palette (Metallic Gold, Deep Obsidian, Emerald)
   Mobile-First, Interactive Components, Accessible Contrast
   ========================================================================== */

:root {
  /* Brand Core Palette */
  --color-primary-gold: #f5c518;
  --color-gold-hover: #ffd700;
  --color-gold-gradient: linear-gradient(135deg, #ffd700 0%, #f5a623 50%, #d48806 100%);
  --color-gold-glow: rgba(245, 197, 24, 0.35);

  --color-accent-emerald: #10b981;
  --color-accent-red: #ef4444;

  /* Surfaces & Backgrounds */
  --bg-deep-obsidian: #0b0f19;
  --bg-surface-dark: #121826;
  --bg-surface-elevated: #1a2234;
  --bg-surface-glass: rgba(18, 24, 38, 0.88);
  --bg-card: rgba(26, 34, 52, 0.75);

  /* Borders & Dividers */
  --border-gold-subtle: rgba(245, 197, 24, 0.25);
  --border-gold-bright: rgba(255, 215, 0, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-display: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --text-pure-white: #ffffff;
  --text-light-cream: #f8fafc;
  --text-muted-gray: #94a3b8;
  --text-gold: #f5c518;

  /* Elevation & Shadows */
  --shadow-gold-sm: 0 2px 10px rgba(245, 197, 24, 0.15);
  --shadow-gold-md: 0 4px 20px rgba(245, 197, 24, 0.25);
  --shadow-gold-lg: 0 10px 35px rgba(245, 197, 24, 0.35);
  --shadow-dark-card: 0 8px 30px rgba(0, 0, 0, 0.45);

  /* Layout & Transitions */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--bg-deep-obsidian);
  color: var(--text-light-cream);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-hover);
}

/* ==========================================================================
   HEADER & NAVIGATION COMPONENT
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold-subtle);
  padding: 0.75rem 1.25rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-light-cream);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary-gold);
  background: rgba(245, 197, 24, 0.08);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0;
  min-width: 220px;
  box-shadow: var(--shadow-dark-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-light-cream);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background: rgba(245, 197, 24, 0.12);
  color: var(--color-primary-gold);
  padding-left: 1.5rem;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login {
  color: var(--text-light-cream);
  border: 1px solid var(--border-gold-bright);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-login:hover {
  background: rgba(245, 197, 24, 0.15);
  color: var(--color-primary-gold);
}

.btn-register {
  background: var(--color-gold-gradient);
  color: #0b0f19;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold-sm);
  transition: all var(--transition-bounce);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-md);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-gold);
  transition: all var(--transition-fast);
}

/* ==========================================================================
   HERO CONTAINER - FIRST CONTAINER CASINO BG RULE
   ========================================================================== */

.hero-container {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 2px solid var(--border-gold-subtle);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(11, 15, 25, 0.75) 0%, rgba(11, 15, 25, 0.94) 80%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* Breadcrumbs Component */
.breadcrumb-nav {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.breadcrumb-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--border-gold-subtle);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
}

.breadcrumb-item a {
  color: var(--text-muted-gray);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--color-primary-gold);
}

.breadcrumb-item.active span {
  color: var(--color-primary-gold);
  font-weight: 700;
}

.breadcrumb-separator {
  color: var(--border-gold-bright);
  font-size: 0.85rem;
  user-select: none;
}

.hero-badge {
  display: inline-flex;

  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid var(--border-gold-bright);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--color-primary-gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-pure-white);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted-gray);
  max-width: 750px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   E-E-A-T AUTHOR & TRUST BLOCK
   ========================================================================== */

.author-trust-card {
  background: var(--bg-surface-dark);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .author-trust-card {
    flex-direction: row;
    align-items: center;
  }
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-primary-gold);
  object-fit: cover;
}

.author-meta h4 {
  color: var(--text-pure-white);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.author-meta p {
  color: var(--text-muted-gray);
  font-size: 0.85rem;
}

.trust-badges-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.trust-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   INTERACTIVE 3x2 POSTCARD GRID COMPONENT
   ========================================================================== */

.grid-section {
  position: relative;
  padding: 4rem 1.5rem;
  background-color: var(--bg-surface-dark);
  border-bottom: 1px solid var(--border-glass);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--color-primary-gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-pure-white);
  margin: 0.5rem 0 1rem;
}

.grid-3x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Postcard Component */
.postcard {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-dark-card);
}

.postcard:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary-gold);
  box-shadow: var(--shadow-gold-md);
}

.postcard-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #000;
}

.postcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.postcard:hover .postcard-media img {
  transform: scale(1.06);
}

.postcard-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--color-primary-gold);
  color: var(--color-primary-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.postcard-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.postcard-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-pure-white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.postcard-desc {
  font-size: 0.9rem;
  color: var(--text-muted-gray);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

.postcard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-sm);
  color: var(--color-primary-gold);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.postcard:hover .postcard-btn {
  background: var(--color-gold-gradient);
  color: #0b0f19;
  border-color: transparent;
}

/* Pagination / Tabs */
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold-subtle);
  color: var(--text-light-cream);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover, .page-btn.active {
  background: var(--color-primary-gold);
  color: #0b0f19;
  border-color: var(--color-primary-gold);
}

/* ==========================================================================
   FAQ ACCORDION COMPONENT
   ========================================================================== */

.faq-section {
  padding: 4rem 1.5rem;
  background: var(--bg-deep-obsidian);
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  color: var(--text-pure-white);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary-gold);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */

.site-footer {
  background: #070a11;
  border-top: 2px solid var(--border-gold-subtle);
  padding: 4rem 1.5rem 2rem;
  color: var(--text-muted-gray);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h5 {
  color: var(--text-pure-white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-primary-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted-gray);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-gold);
  padding-left: 4px;
}

.responsible-banner {
  background: var(--bg-surface-dark);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.age-badge {
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
}

/* ==========================================================================
   TABLE AND CONTENT FORMATTING
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold-subtle);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-dark-card);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  color: var(--text-light-cream);
}

.article-table thead tr {
  background: rgba(245, 197, 24, 0.1);
  border-bottom: 2px solid var(--border-gold-bright);
}

.article-table th {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--color-primary-gold);
  letter-spacing: 0.5px;
}

.article-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  line-height: 1.6;
}

.article-table tbody tr:hover {
  background: rgba(245, 197, 24, 0.04);
}

.article-table a {
  color: var(--color-primary-gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-table a:hover {
  color: #fff;
}

/* ==========================================================================
   SCANNABLE CONTENT PATTERNS & MOBILE-FIRST COMPONENTS
   ========================================================================== */

/* Article Base Typography & Readability */
.article-content-body {
  color: var(--text-light-cream);
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 100%;
}

.article-p {
  margin-bottom: 1.35rem;
  line-height: 1.8;
  color: #e2e8f0;
  max-width: 72ch;
}

.article-h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2.75rem 0 1.25rem;
  line-height: 1.35;
  position: relative;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(245, 197, 24, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background: var(--color-gold-gradient);
  border-radius: var(--radius-pill);
}

.article-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-gold);
  margin: 2rem 0 0.85rem;
  line-height: 1.4;
}

.article-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0;
}

/* Key Takeaways & Quick Summary Box */
.quick-summary-box {
  background: linear-gradient(135deg, rgba(26, 34, 52, 0.95) 0%, rgba(18, 24, 38, 0.95) 100%);
  border: 1px solid var(--border-gold-bright);
  border-left: 5px solid var(--color-primary-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-gold-sm);
}

.quick-summary-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary-gold);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quick-summary-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-light-cream);
  line-height: 1.5;
}

.quick-summary-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent-emerald);
  font-weight: 800;
}

/* Callout Alert Boxes */
.callout-box {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--color-primary-gold);
}

.callout-box.tip {
  border-left-color: var(--color-accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.callout-box.warning {
  border-left-color: var(--color-accent-red);
  background: rgba(239, 68, 68, 0.08);
}

/* Scannable Bullet Lists */
.article-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-list li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.article-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary-gold);
  font-size: 1.25rem;
  line-height: 1.4;
}

.article-sublist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-sublist li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted-gray);
}

.article-sublist li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  top: 0;
  color: var(--color-primary-gold);
  font-size: 1.1rem;
}

/* Step-by-Step Flow List */
.article-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3.25rem;
  min-height: 2.75rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.article-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-gold-gradient);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold-sm);
}

/* Mobile-Friendly Flow Chart / Pipeline Container */
.article-flow-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.article-flow-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.flow-step-pill {
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid var(--border-gold-bright);
  color: var(--color-primary-gold);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.flow-step-arrow {
  color: #64748b;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Scannable Micro-Cards */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--color-primary-gold);
  transform: translateY(-2px);
}

.feature-card h4 {
  color: var(--color-primary-gold);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted-gray);
  line-height: 1.5;
}

/* Mobile Responsive Optimization for Articles */
@media (max-width: 640px) {
  .article-h2 {
    font-size: 1.35rem;
    margin: 2.25rem 0 1rem;
  }
  .article-h3 {
    font-size: 1.15rem;
    margin: 1.75rem 0 0.75rem;
  }
  .article-steps li {
    padding-left: 2.75rem;
    font-size: 0.95rem;
  }
  .article-steps li::before {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
  }
  .article-list li {
    font-size: 0.95rem;
    padding-left: 1.5rem;
  }
  .flow-step-pill {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
  }
}

/* Mobile Sticky Bottom Navigation Bar */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-gold-subtle);
  padding: 0.5rem 0.75rem;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted-gray);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
  color: var(--color-primary-gold);
}

.bottom-nav-item.register-pill {
  background: var(--color-gold-gradient);
  color: #0b0f19;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  box-shadow: var(--shadow-gold-sm);
}

/* Mobile Drawer Styles */
@media (max-width: 1023px) {
  .nav-desktop.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 60px;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    z-index: 998;
    border-top: 1px solid var(--border-gold-subtle);
    animation: fadeIn 0.25s ease-out;
  }

  .nav-desktop.mobile-open .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem 0;
  }

  .nav-desktop.mobile-open .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0.5rem;
    width: 100%;
    justify-content: space-between;
  }

  .nav-desktop.mobile-open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0 0.5rem 1rem;
  }

  .nav-desktop.mobile-open .dropdown-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted-gray);
  }

  .nav-desktop.mobile-open .dropdown-link:hover {
    color: var(--color-primary-gold);
  }

  /* Padding offset on body to prevent bottom bar overlap */
  body {
    padding-bottom: 65px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

