/* ==========================================================================
   XPLORE GUIDES PORTAL STYLESHEET
   ========================================================================== */

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --studio: #c05a46;
  --studio-light: #e07a66;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #0b0f19;
  --bg-card: rgba(22, 30, 49, 0.78);
  --bg-card-hover: rgba(30, 41, 68, 0.9);
  --surface: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-focus: rgba(99, 102, 241, 0.4);
  --glass-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.45);
}

/* Base Adjustments */
body.guides-body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Guides page: make nav-container a positioned parent for nav-right */
.guides-body .nav-container {
  position: relative;
}

/* Top Navbar Right Section (Language Selector in Top Right Corner)
   position:absolute anchored to .nav-container — does NOT push nav-links left.
   The nav-links stay right-aligned exactly as on Home, About Us, Privacy Policy pages. */
.nav-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

/* Ensure the nav-links don't collide with the absolute language button on right */
.guides-body .nav-links {
  padding-right: 140px;
}

.nav-right .lang-dropdown-wrapper {
  position: relative;
}

.nav-right .lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.nav-right .lang-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--primary-light);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.nav-right .lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 2500;
}

/* Official Guide & Partner Badge - Luxury Styling */
.official-partner-badge-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
}

.official-partner-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-radius: 9999px;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.25), 
              0 8px 20px rgba(0, 0, 0, 0.4),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: default;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.official-partner-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b, #10b981, #6366f1);
  background-size: 300% 100%;
  animation: shimmerBorder 4s linear infinite;
  z-index: -1;
  opacity: 0.85;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
}

.official-partner-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.4), 
              0 12px 28px rgba(0, 0, 0, 0.5),
              inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.badge-icon-shield {
  font-size: 1.15rem;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.5));
  animation: gentlePulse 2.5s ease-in-out infinite;
}

.badge-text {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #ffd166 45%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.badge-accent-star {
  font-size: 0.95rem;
  animation: spinSlow 6s linear infinite;
  display: inline-block;
}

@keyframes shimmerBorder {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Quick Index Bar */
.mobile-index-bar {
  display: none;
  justify-content: center;
  margin: 16px auto 0;
}

.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-light);
}

/* Language Selector Dropdown */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--primary-light);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #151d30;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.lang-dropdown-menu.show {
  display: flex;
  animation: fadeInDown 0.2s ease forwards;
}

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

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

.lang-option.active {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
  font-weight: 700;
}

.lang-option .check {
  font-size: 0.8rem;
  opacity: 0;
}

.lang-option.active .check {
  opacity: 1;
}

.btn-app-download {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}

.btn-app-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Mobile Sidebar Toggle Button */
.sidebar-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Mobile Index Bar in Hero */
.mobile-index-bar {
  display: none;
  justify-content: center;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .mobile-index-bar {
    display: flex;
  }
  .sidebar-toggle-btn {
    display: inline-flex;
  }
}

/* Hero Header Section */
.guides-hero {
  padding: 130px 20px 50px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 12%, rgba(245, 158, 11, 0.12), transparent 50%),
              radial-gradient(circle at 50% 25%, rgba(99, 102, 241, 0.16), transparent 60%);
}

.guides-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Ultra-Attractive Official Guide & Partner Badge */
.official-partner-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.official-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 10px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(28, 38, 62, 0.92), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25), 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 16px rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.official-partner-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 52px;
  padding: 2px;
  background: linear-gradient(135deg, #f59e0b, #ec4899, #6366f1, #10b981, #f59e0b);
  background-size: 300% 300%;
  animation: shimmerBorder 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

@keyframes shimmerBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.official-partner-badge:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.45), 0 14px 40px rgba(0, 0, 0, 0.6);
}

.badge-icon-shield {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.6));
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.badge-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fffbeb 0%, #fef08a 25%, #f59e0b 70%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
}

.badge-accent-star {
  color: #fbbf24;
  font-size: 0.95rem;
  animation: spinSlow 9s linear infinite;
  display: inline-block;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.guides-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 10%, #c7d2fe 60%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guides-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 35px;
}

/* Hero Search Box */
.hero-search-box {
  max-width: 640px;
  margin: 0 auto 40px;
  position: relative;
}

.hero-search-box input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 1rem;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--glass-border);
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  outline: none;
  transition: all 0.25s ease;
}

.hero-search-box input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
  background: rgba(30, 41, 59, 0.9);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-dim);
  pointer-events: none;
}

/* Quick Stats Row */
.quick-stats-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.quick-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 16px 28px;
  border-radius: 16px;
  text-align: center;
  min-width: 180px;
  box-shadow: var(--glass-shadow);
}

.quick-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.quick-stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   PORTAL MAIN CONTENT & SIDEBAR LAYOUT
   ========================================================================== */

.portal-wrapper {
  max-width: 1400px;
  margin: 30px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
  align-items: start;
}

/* Sticky Sidebar */
.guide-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px 18px;
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: 0.3px;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.toc-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.05));
  border-left: 3px solid var(--primary-light);
  font-weight: 600;
}

/* Main Content Area */
.guide-content-area {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Generic Section Styles */
.guide-section {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 40px 36px;
  box-shadow: var(--glass-shadow);
  scroll-margin-top: 100px;
  transition: border-color 0.2s ease;
}

.guide-section:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.sec-header {
  margin-bottom: 24px;
}

.sec-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  margin-bottom: 10px;
}

.sec-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.sec-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.sec-p {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Feature Grid Cards */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.info-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
}

.info-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Notice / Alert Banners */
.alert-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: 14px;
  margin: 24px 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.alert-banner.warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.alert-banner.info {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.alert-banner.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.alert-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Step Flow Cards (Onboarding) */
.steps-flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.step-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px 24px;
}

.step-badge-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.step-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Status Cards Grid */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.status-pill.review {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-pill.approved {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-pill.rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Tables */
.responsive-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}

.xplore-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.xplore-table th {
  background: rgba(30, 41, 59, 0.85);
  color: #fff;
  font-weight: 700;
  padding: 14px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.xplore-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.xplore-table tr:last-child td {
  border-bottom: none;
}

.xplore-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Interactive Calculator Container */
.calc-container {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-border-focus);
  border-radius: 20px;
  padding: 32px;
  margin-top: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.calc-form-group {
  margin-bottom: 20px;
}

.calc-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.calc-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.calc-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.calc-radio-group {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.calc-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.calc-radio-label:has(input:checked) {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--primary-light);
  color: #fff;
  font-weight: 600;
}

/* Calculator Result Card */
.calc-result-box {
  background: linear-gradient(135deg, rgba(30, 41, 68, 0.8), rgba(20, 27, 46, 0.9));
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 26px;
}

.calc-result-box h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.calc-row.total-payout {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed rgba(255, 255, 255, 0.15);
  font-size: 1.15rem;
  font-weight: 800;
  color: #34d399;
}

.calc-row .val {
  font-weight: 700;
  color: #fff;
}

.calc-row.total-payout .val {
  font-size: 1.6rem;
  color: #34d399;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.faq-item {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  background: rgba(22, 30, 49, 0.8);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-chevron {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  color: var(--primary-light);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

/* Footer */
.guides-footer {
  border-top: 1px solid var(--glass-border);
  background: #080c14;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-content-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links-row a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-row a:hover {
  color: #fff;
}

/* No Results Message */
#search-no-results {
  display: none;
  text-align: center;
  padding: 50px 20px;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px dashed var(--glass-border);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .portal-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .guide-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 290px;
    height: 100vh;
    max-height: 100vh;
    z-index: 1050;
    border-radius: 0;
    transition: left 0.3s ease;
    background: #0f172a;
  }

  .guide-sidebar.open {
    left: 0;
  }

  .sidebar-close-btn {
    display: block;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  /* On mobile, nav-links padding-right not needed since links are hidden */
  .guides-body .nav-links {
    padding-right: 0;
  }

  .navbar {
    padding: 14px 20px;
  }

  /* Adjust language button position to match mobile navbar padding */
  .nav-right {
    right: 0;
  }

  .guides-hero h1 {
    font-size: 2.1rem;
  }

  .guides-hero p {
    font-size: 0.96rem;
  }

  .guide-section {
    padding: 28px 18px;
  }

  .sec-title {
    font-size: 1.5rem;
  }

  .quick-stat-card {
    min-width: 130px;
    padding: 12px 16px;
  }

  .quick-stat-val {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .official-partner-badge {
    padding: 8px 16px;
    gap: 7px;
  }

  .badge-text {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
  }

  .badge-icon-shield {
    font-size: 1rem;
  }

  .nav-right .lang-dropdown-btn {
    padding: 6px 11px;
    font-size: 0.8rem;
  }
}

