@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --emerald-deep: #051411;
  --emerald-dark: #08241F;
  --emerald-medium: #0D3E35;
  --emerald-light: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  
  --gold-primary: #C8960C;
  --gold-light: #F5E6B0;
  --gold-glow: rgba(200, 150, 12, 0.2);
  --gold-dark: #7A5A00;
  
  --bg-dark: #050807;
  --surface-1: #0A1210;
  --surface-2: #101B18;
  --surface-3: #182924;
  --border-subtle: rgba(212, 175, 55, 0.08);
  --border-active: rgba(200, 150, 12, 0.3);
  
  --text-primary: #F0EDE6;
  --text-secondary: #9DB0A9;
  --text-muted: #5E756F;
  
  --red-accent: #EF4444;
  --red-glow: rgba(239, 68, 68, 0.15);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(200, 150, 12, 0.03) 0%, transparent 50%);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  line-height: 1.8;
  text-align: right;
  direction: rtl;
}

/* Layout Wrapper */
#app-container {
  display: flex;
  min-height: 100vh;
}

/* Header & Sidebar */
.sidebar {
  width: 280px;
  background-color: var(--surface-1);
  border-right: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: var(--transition-smooth);
}

.logo-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.logo-title {
  font-size: 1.4rem;
  color: var(--gold-primary);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.nav-item:hover {
  background-color: rgba(200, 150, 12, 0.04);
  color: var(--text-primary);
  border-color: rgba(200, 150, 12, 0.05);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--emerald-medium) 0%, var(--emerald-dark) 100%);
  color: var(--text-primary);
  border-left: 4px solid var(--gold-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-item-highlight {
  border: 1px solid var(--gold-primary) !important;
  color: var(--gold-primary) !important;
  font-weight: 700 !important;
}

.nav-item-highlight:hover {
  background-color: var(--gold-primary) !important;
  color: #000 !important;
}

.nav-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Main Content Area — Single Scroll */
.main-content {
  flex-grow: 1;
  margin-left: 280px;
  padding: 0;
  min-height: 100vh;
  transition: var(--transition-smooth);
}

/* Page Sections (replace tabs) */
.page-section {
  padding: 4rem 3rem;
  position: relative;
  scroll-margin-top: 2rem;
}

/* Section Number Badge */
.section-number-badge {
  position: absolute;
  top: 2.5rem;
  right: 3rem;
  font-family: 'Outfit', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(200, 150, 12, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-primary), var(--emerald-light), transparent);
  opacity: 0.3;
  margin: 0 3rem;
}

/* Scroll-based section reveal animation */
.page-section {
  opacity: 0;
  transform: translateY(30px);
  animation: none;
}

.page-section.visible {
  animation: sectionReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Headers */
.section-header {
  margin-bottom: 2.5rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title-group h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Glassmorphism Cards */
.glass-card {
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(200, 150, 12, 0.05);
}

.glass-card.gold-border {
  border-left: 4px solid var(--gold-primary);
}

.glass-card.emerald-border {
  border-left: 4px solid var(--emerald-light);
}

/* Mission & Vision Section */
.hero-block {
  padding: 3.5rem;
  text-align: center;
  background: radial-gradient(circle at center, var(--surface-3) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(200, 150, 12, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
}

.hero-quote {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 1.5rem auto;
  color: var(--text-primary);
  max-width: 800px;
  font-family: 'Amiri', serif;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Visual Grids */
.visual-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.visual-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Timeline System */
.timeline-container {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-primary), var(--emerald-medium), transparent);
}

.timeline-card {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-card:hover .timeline-dot {
  background-color: var(--gold-primary);
  transform: scale(1.2);
}

.timeline-date {
  font-family: 'Outfit', sans-serif;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Constitution View Controls */
.constitution-controls {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 0.8rem 1.5rem 0.8rem 3rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--gold-primary);
  background-color: var(--surface-3);
  box-shadow: 0 0 15px var(--gold-glow);
}

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

.filter-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-tag {
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tag:hover, .filter-tag.active {
  background-color: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  font-weight: 600;
}

/* Articles Accordion Stack */
.articles-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-accordion {
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.article-accordion:hover {
  border-color: var(--border-active);
}

.article-accordion.expanded {
  border-color: var(--gold-primary);
  background-color: var(--surface-3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.article-header {
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

.article-header:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.article-title-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.article-number {
  font-family: 'Outfit', sans-serif;
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 100px;
  background-color: rgba(200, 150, 12, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-align: center;
  border: 1px dashed rgba(200, 150, 12, 0.2);
}

.article-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.article-category-badge {
  font-size: 0.7rem;
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.accordion-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.article-accordion.expanded .accordion-arrow {
  transform: rotate(180deg);
  color: var(--gold-primary);
}

.article-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(0, 0, 0, 0.15);
}

.article-body-inner {
  padding: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.05);
}

.article-content-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-content-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.article-content-list li::before {
  content: '✦';
  position: absolute;
  left: 0.2rem;
  color: var(--gold-primary);
}

.article-explanation {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background-color: rgba(16, 185, 129, 0.03);
  border-left: 3px solid var(--emerald-light);
  border-radius: 0 8px 8px 0;
}

.article-explanation h5 {
  font-size: 0.85rem;
  color: var(--emerald-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.article-explanation p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Interactive Calculator Styles */
.calculator-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.calc-input-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.calc-tabs {
  display: flex;
  background-color: var(--surface-1);
  border-radius: 8px;
  padding: 0.3rem;
  border: 1px solid var(--border-subtle);
}

.calc-tab {
  flex: 1;
  text-align: center;
  padding: 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
}

.calc-tab.active {
  background-color: var(--gold-primary);
  color: #000;
}

.range-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.range-slider {
  flex-grow: 1;
  accent-color: var(--gold-primary);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

.range-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--gold-primary);
  font-size: 1.1rem;
  min-width: 50px;
  text-align: right;
}

.currency-input-wrapper {
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  font-weight: 700;
}

.currency-input {
  width: 100%;
  background-color: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.8rem 1.2rem 0.8rem 2.2rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: var(--transition-smooth);
}

.currency-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(200, 150, 12, 0.1);
}

/* Calculator Results Panel */
.calc-results-panel {
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-active);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  box-shadow: var(--shadow-premium);
}

.result-card-heading {
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 1rem;
  text-align: center;
}

.result-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.result-amount {
  font-size: 2.2rem;
  font-family: 'Outfit', sans-serif;
  color: var(--emerald-light);
  font-weight: 800;
  margin-top: 0.3rem;
}

.split-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.split-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.split-label-group {
  display: flex;
  flex-direction: column;
}

.split-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.split-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.split-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.split-val.gold { color: var(--gold-primary); }
.split-val.emerald { color: var(--emerald-light); }

.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: rgba(239, 68, 68, 0.02);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: 8px;
}

.switch-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-accent);
}

.switch-input { display: none; }

.switch-slider {
  width: 44px;
  height: 24px;
  background-color: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--text-muted);
  left: 2px;
  top: 2px;
  transition: var(--transition-smooth);
}

.switch-input:checked + .switch-slider {
  background-color: var(--red-accent);
  border-color: var(--red-accent);
}

.switch-input:checked + .switch-slider::before {
  transform: translateX(20px);
  background-color: #FFF;
}

.loss-policy-card {
  display: none;
  background-color: var(--red-glow);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1.2rem;
  border-radius: 8px;
}

.loss-policy-card h5 {
  color: var(--red-accent);
  margin-bottom: 0.5rem;
}

.loss-policy-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Stepper */
.stepper-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.stepper-timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 1.5rem;
  height: 2px;
  background-color: var(--surface-3);
  z-index: 1;
}

.stepper-timeline-progress {
  position: absolute;
  left: 2rem;
  top: 1.5rem;
  height: 2px;
  background-color: var(--gold-primary);
  width: 0%;
  z-index: 2;
  transition: var(--transition-smooth);
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  cursor: pointer;
}

.step-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--surface-2);
  border: 3px solid var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.stepper-step.active .step-node {
  border-color: var(--gold-primary);
  background-color: var(--gold-primary);
  color: #000;
  box-shadow: 0 0 15px var(--gold-glow);
}

.stepper-step.completed .step-node {
  border-color: var(--emerald-light);
  background-color: var(--surface-3);
  color: var(--emerald-light);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 0.6rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.stepper-step.active .step-label {
  color: var(--gold-primary);
}

.step-content-box {
  background-color: var(--surface-3);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  min-height: 220px;
  position: relative;
  display: none;
}

.step-content-box.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

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

.step-heading {
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin-bottom: 0.8rem;
}

.step-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.step-meta-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.asset-first-visual {
  background: rgba(16, 185, 129, 0.02);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.asset-visual-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.asset-box {
  background-color: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  min-width: 140px;
}

.asset-box.highlight {
  border-color: var(--emerald-light);
  background-color: rgba(16, 185, 129, 0.05);
}

.flow-arrow {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Committee Seat Org Chart */
.org-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.org-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.org-card {
  width: 190px;
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.org-card:hover, .org-card.active {
  border-color: var(--gold-primary);
  background-color: var(--surface-3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.org-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.org-card-subtitle {
  font-size: 0.75rem;
  color: var(--gold-primary);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.org-detail-overlay {
  display: none;
  background-color: var(--surface-3);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1.8rem;
  width: 100%;
  max-width: 600px;
  margin-top: 1rem;
  animation: fadeIn 0.4s ease forwards;
}

.org-detail-title {
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

/* Fullscreen Presentation Deck Styles */
.presentation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.presentation-container.active {
  display: flex;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

.deck-header {
  height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  background-color: var(--surface-1);
}

.deck-title {
  font-size: 1.1rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.deck-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.deck-close:hover {
  color: var(--red-accent);
}

.slide-viewport {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

.slide-deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 4rem 6rem;
  opacity: 0;
  transform: translateX(100px);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.slide-deck-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.slide-deck-card.exit {
  opacity: 0;
  transform: translateX(-100px);
}

.deck-slide-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.deck-slide-num {
  font-family: 'Outfit', sans-serif;
  color: var(--gold-primary);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.deck-slide-title {
  font-size: 2.8rem;
  line-height: 1.2;
}

.deck-slide-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-top: 0.4rem;
}

.deck-slide-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.deck-controls {
  height: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  background-color: var(--surface-1);
}

.deck-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--gold-primary);
  width: 0%;
  transition: width 0.4s ease;
}

.deck-btn-group {
  display: flex;
  gap: 1rem;
}

.deck-nav-btn {
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.deck-nav-btn:hover {
  background-color: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
}

.deck-counter {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 1rem;
}

.cover-slide-deck {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cover-slide-deck .deck-slide-body {
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.cover-btn-start {
  background-color: var(--gold-primary);
  color: #000;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 2.5rem;
  box-shadow: 0 8px 25px var(--gold-glow);
  transition: var(--transition-smooth);
}

.cover-btn-start:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(200, 150, 12, 0.4);
}

/* Custom UI styling helpers */
.speech-bubble {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.2rem;
  position: relative;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 40px;
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: var(--surface-2) transparent;
  display: block;
  width: 0;
}

.badge-outline-gold {
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  background-color: rgba(200, 150, 12, 0.03);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Table Wrap */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Standard utilities */
.text-center { text-align: center; }
.margin-top-1 { margin-top: 1rem; }
.margin-top-2 { margin-top: 2rem; }
.text-gold { color: var(--gold-primary); }
.text-emerald { color: var(--emerald-light); }
.text-red { color: var(--red-accent); }

/* Page Footer */
.page-footer {
  padding: 4rem 3rem;
  background: linear-gradient(to bottom, transparent, rgba(200, 150, 12, 0.02));
}

/* ================================================ */
/* Responsive & Mobile Overrides */
/* ================================================ */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background-color: var(--surface-2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 10px var(--gold-glow);
  transition: var(--transition-smooth);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:active {
  background-color: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .calculator-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  body {
    font-size: 14px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 150;
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .page-section {
    padding: 3rem 1.2rem;
  }

  .section-number-badge {
    top: 1.5rem;
    right: 1.2rem;
    font-size: 3rem;
  }

  .section-divider {
    margin: 0 1.2rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title-group h2 {
    font-size: 1.6rem;
  }

  .hero-block {
    padding: 1.8rem 1.2rem;
    border-radius: 12px;
  }

  .hero-quote {
    font-size: 1.25rem;
  }
  
  .visual-grid-2, .visual-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 1.2rem;
  }

  .glass-card {
    padding: 1.2rem;
  }
  
  .article-header {
    padding: 0.8rem 1rem;
  }
  
  .article-title-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .article-number {
    min-width: unset;
    width: auto;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
  }

  .article-title {
    font-size: 1.05rem;
  }

  .article-body-inner {
    padding: 1.2rem;
  }

  /* Constitution controls */
  .constitution-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-tags {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tag {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* Presentation deck mobile */
  .slide-deck-card {
    padding: 1.5rem 1.2rem;
  }
  
  .deck-slide-title {
    font-size: 1.8rem;
  }

  .deck-slide-subtitle {
    font-size: 1rem;
  }
  
  .deck-controls {
    padding: 0 1.2rem;
    height: 70px;
  }

  .deck-header {
    padding: 0 1.2rem;
    height: 60px;
  }
  
  /* Stepper mobile */
  .stepper-timeline {
    overflow-x: auto;
    padding-bottom: 0.8rem;
    justify-content: flex-start;
    gap: 1.5rem;
    scrollbar-width: thin;
  }
  
  .stepper-timeline::before, .stepper-timeline-progress {
    display: none;
  }

  .step-content-box {
    padding: 1.5rem;
    min-height: unset;
  }

  .step-node {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .step-label {
    font-size: 0.65rem;
  }

  /* Org chart cards responsive */
  .org-card {
    width: calc(50% - 0.75rem);
    min-width: 130px;
  }

  .currency-input {
    font-size: 1rem;
    padding: 0.7rem 1rem 0.7rem 2.2rem;
  }

  .result-amount {
    font-size: 1.8rem;
  }

  .cover-btn-start {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Asset flow responsive */
  .asset-visual-flow {
    flex-direction: column;
    gap: 0.8rem;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .asset-box {
    min-width: unset;
    width: 100%;
  }

  /* Footer */
  .page-footer {
    padding: 3rem 1.2rem;
  }
}
