@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&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
  --emerald-deep: #031410;
  --emerald-dark: #051f19;
  --emerald-medium: #0c3a2f;
  --emerald-light: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  
  --gold-primary: #c5a85c;
  --gold-light: #f3e5be;
  --gold-glow: rgba(197, 168, 92, 0.2);
  --gold-dark: #855b0f;
  
  --bg-dark: #041411;
  --surface-1: #07221d;
  --surface-2: #0b2e27;
  --surface-3: #113f35;
  --border-subtle: rgba(197, 168, 92, 0.15);
  --border-active: rgba(197, 168, 92, 0.45);
  
  --text-primary: #F0EDE6;
  --text-secondary: #a3c4bd;
  --text-muted: #6b8f87;
  
  --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;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(197, 168, 92, 0.06) 0%, transparent 60%);
  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);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
  display: none;
}

.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.6rem;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  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: rgba(16, 185, 129, 0.12);
  color: var(--text-primary);
  border-left: 4px solid #c5a85c;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-icon {
  font-size: 1.2rem;
  width: 20px;
}

.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 */
.main-content {
  flex-grow: 1;
  margin-left: 280px;
  padding: 2.5rem 3rem;
  min-height: 100vh;
  transition: var(--transition-smooth);
}

/* Container for sections */
.tab-section {
  display: block;
  margin-bottom: 6rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 5rem;
}

.tab-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 2rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  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: 18px;
  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;
  animation: fadeIn 0.4s ease forwards;
}

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

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

/* Capital Structure Donut Chart SVG Layout */
.chart-container-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.donut-chart-svg {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.donut-segment {
  fill: none;
  stroke-width: 16;
  cursor: pointer;
  transition: stroke-width 0.3s ease;
}

.donut-segment:hover {
  stroke-width: 20;
}

.donut-hole {
  fill: transparent;
}

.donut-chart-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.chart-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.chart-legend-item:hover, .chart-legend-item.active {
  background-color: var(--surface-3);
  border-color: var(--border-subtle);
}

.legend-color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-top: 5px;
}

.legend-text {
  display: flex;
  flex-direction: column;
}

.legend-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.legend-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* Stepper Stepper Stepper Stepper Stepper Stepper 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;
  animation: fadeIn 0.4s ease forwards;
}

.step-content-box.active {
  display: block;
}

.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;
}

/* 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); }

/* Responsive adjustments & Premium 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;
}

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

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

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 100;
    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;
    padding: 4.5rem 1.2rem 2rem;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
  }

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

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

  .hero-quote {
    font-size: 1.35rem;
  }
  
  .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;
  }
  
  .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-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;
  }

  .chart-container-row {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .donut-chart-svg {
    width: 160px;
    height: 160px;
  }

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

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

/* Drawer Toggle for Mobile */
.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) {
  .mobile-nav-toggle {
    display: flex;
  }

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

  .table-wrap table {
    min-width: 500px;
  }

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

  /* Fix search + button row on mobile */
  .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;
  }

  /* Section header stacking */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Presentation button fix */
  .cover-btn-start {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Network search row fix */
  #network-power .glass-card > div:first-child {
    flex-direction: column;
  }

  /* Step nodes smaller on mobile */
  .step-node {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

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

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

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

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

  /* Sidebar close button on mobile */
  .sidebar {
    z-index: 150;
  }
}

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.03);
  z-index: 199;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald-light) 0%, var(--gold-primary) 100%);
  box-shadow: 0 0 10px var(--gold-glow);
  transition: width 0.1s ease-out;
}

.reading-progress-text {
  position: absolute;
  top: 6px;
  right: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .reading-progress-container {
    left: 0;
  }
}

/* Quick Summary Grid */
.quick-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.summary-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-light), var(--gold-primary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.summary-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-premium), 0 0 15px rgba(200, 150, 12, 0.05);
}

.summary-card:hover::after {
  opacity: 1;
}

.summary-card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
}

.summary-card-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.summary-card-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Floating Presentation Mode Button */
.floating-presentation-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 190;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 1rem 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--gold-glow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
}

.floating-presentation-btn:hover {
  transform: scale(1.05) translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px var(--gold-glow);
}

.floating-presentation-btn:active {
  transform: scale(0.98) translateY(-1px);
}

@media (max-width: 1024px) {
  .floating-presentation-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.8rem 1.4rem;
    font-size: 0.85rem;
  }
}

/* Progress indicator dots in sidebar */
.sidebar .nav-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar .nav-item {
  position: relative;
  padding-left: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--transition-smooth);
}

.sidebar .nav-item::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background-color: transparent;
  transition: var(--transition-smooth);
}

.sidebar .nav-item.active::before {
  border-color: var(--gold-primary);
  background-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
  width: 10px;
  height: 10px;
}

@media (min-width: 1025px) {
  .sidebar .nav-menu::before {
    content: '';
    position: absolute;
    left: 1.3rem;
    top: 1.5rem;
    bottom: 4.5rem;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 0;
  }
  
  .sidebar .nav-item {
    z-index: 1;
  }
}

/* ================= INTERACTIVE FORMS HUB STYLING ================= */

/* Form Modal Overlay */
.form-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1500;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.form-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Modal Card */
.form-modal-card {
  background-color: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  width: 95%;
  max-width: 800px;
  max-height: 90vh;
  box-shadow: var(--shadow-premium), 0 0 30px rgba(200, 150, 12, 0.05);
  display: flex;
  flex-direction: column;
  animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.form-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface-2);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.form-modal-header h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

.form-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.form-modal-close:hover {
  color: var(--red-accent);
  transform: rotate(90deg);
}

.form-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.form-modal-body::-webkit-scrollbar {
  width: 5px;
}
.form-modal-body::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

/* Form Styles */
.form-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 1px;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.form-section-title:first-of-type {
  margin-top: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(200, 150, 12, 0.15);
  background-color: var(--surface-3);
}

.text-red {
  color: var(--red-accent);
}

/* Mock File Upload styles */
.mock-upload-box {
  background: var(--surface-2);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.mock-upload-box span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mock-upload-btn {
  background-color: var(--surface-3);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

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

.mock-upload-btn.uploaded {
  background-color: var(--emerald-light);
  color: #000;
  border-color: var(--emerald-light);
}

/* Alert styles */
.form-alert {
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-alert.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

/* Receipt Sheet */
.receipt-box {
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.receipt-header {
  text-align: center;
  padding-bottom: 1rem;
}

.receipt-divider {
  border-top: 1px dashed var(--border-subtle);
  margin: 1rem 0;
  position: relative;
}

.receipt-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.receipt-row span {
  color: var(--text-secondary);
}

.receipt-row strong,
.receipt-row span:last-child {
  color: var(--text-primary);
}

/* Admin Lock screen & tables */
.admin-lock-screen {
  padding: 3rem 0;
}

.admin-lock-screen h4 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-top: 1rem;
}

.detail-viewer-table {
  width: 100%;
}

.detail-viewer-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.detail-viewer-table tr:last-of-type {
  border-bottom: none;
}

.detail-viewer-table td {
  padding: 0.8rem 1rem;
  vertical-align: top;
}

.detail-viewer-table td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  width: 35%;
  border-right: 1px solid var(--border-subtle);
}

.detail-viewer-table td:last-child {
  color: var(--text-primary);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .form-modal-body {
    padding: 1.2rem;
  }
  
  .form-modal-header {
    padding: 1rem 1.2rem;
  }
}

/* Print CSS Styles overrides */
@media print {
  /* Prevent conflict and only hide other elements when actively printing the receipt */
  body.printing-receipt-active > *:not(#receipt-modal) {
    display: none !important;
  }
  
  body.printing-receipt-active {
    background: white !important;
    background-image: none !important;
    color: black !important;
    display: block !important;
  }

  body.printing-receipt-active #receipt-modal,
  #receipt-modal.printing-receipt-active {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    pointer-events: auto !important;
  }
  
  body.printing-receipt-active #receipt-modal .form-modal-card {
    position: static !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 4rem auto !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  body.printing-receipt-active #receipt-modal .form-modal-card > *:not(#receipt-print-area) {
    display: none !important;
  }
  
  body.printing-receipt-active #receipt-print-area {
    display: block !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
    background: white !important;
    color: black !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    border-radius: 12px !important;
    direction: rtl !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  
  body.printing-receipt-active #receipt-print-area * {
    color: #000000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  body.printing-receipt-active .receipt-row span {
    color: #444444 !important;
  }
  body.printing-receipt-active .receipt-row strong,
  body.printing-receipt-active .receipt-row span:last-child {
    color: #000000 !important;
  }
  body.printing-receipt-active .receipt-header h3,
  body.printing-receipt-active .receipt-header h4,
  body.printing-receipt-active .receipt-subtitle,
  body.printing-receipt-active .arabic-text,
  body.printing-receipt-active .arabic-text-small,
  body.printing-receipt-active .receipt-title-badge,
  body.printing-receipt-active .receipt-credentials-alert,
  body.printing-receipt-active .receipt-credentials-alert * {
    color: #000000 !important;
  }
  
  .deck-nav-btn,
  .cover-btn-start {
    display: none !important;
  }

  body.printing-admin-detail > * {
    display: none !important;
  }
  body.printing-admin-detail #admin-print-area,
  body.printing-admin-detail #admin-print-area * {
    display: block !important;
    visibility: visible !important;
  }
  body.printing-admin-detail #admin-print-area {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
    color: #000;
    direction: rtl;
    text-align: right;
    font-family: 'Amiri', serif;
    font-size: 11.5px;
    line-height: 1.35;
    padding: 0;
    margin: 0;
  }
  body.printing-admin-detail #admin-print-area .print-container {
    max-width: 680px;
    margin: 0 auto;
    border: 2px solid #000;
    padding: 15px 20px;
    border-radius: 12px;
  }
  body.printing-admin-detail #admin-print-area .print-header-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.1rem;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-header-subtitle {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    border-bottom: 1.5px double #000;
    padding-bottom: 0.2rem;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-field-row {
    margin-bottom: 0.35rem;
    border-bottom: 1px dashed #777;
    padding-bottom: 0.1rem;
    display: flex;
    align-items: baseline;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-field-label {
    font-weight: bold;
    min-width: 140px;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-field-value {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-meta-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
  }
  body.printing-admin-detail #admin-print-area .print-section-title {
    font-weight: bold;
    font-size: 1rem;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #000;
    padding-bottom: 0.1rem;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-checklist-group {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    border: 1px solid #000;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-checklist-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
    text-decoration: underline;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-amount-box {
    border: 1.5px solid #000;
    padding: 0.3rem 1.2rem;
    font-size: 1.25rem;
    text-align: center;
    font-weight: bold;
    margin: 0.4rem 0;
    display: inline-block;
    border-radius: 4px;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-note-box {
    margin-top: 0.8rem;
    border-top: 1px solid #000;
    padding-top: 0.4rem;
    font-weight: bold;
    text-align: justify;
    font-size: 0.8rem;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-signature-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1.2rem;
    font-weight: bold;
    color: #000;
  }
  body.printing-admin-detail #admin-print-area .print-signature-line {
    width: 150px;
    border-bottom: 1px solid #000;
    text-align: center;
    padding-top: 0.2rem;
    font-size: 0.85rem;
    color: #000;
  }
}

/* ================= TOP HEADER NAVIGATION FOR HOME PAGE ================= */
.top-nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 18, 16, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.top-logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.top-logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  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;
}

.top-logo-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  border-left: 1px solid var(--border-subtle);
  padding-left: 0.5rem;
  margin-left: 0.2rem;
}

.top-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.top-nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

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

.top-nav-item.active {
  border-bottom: 2px solid var(--gold-primary);
  border-radius: 6px 6px 0 0;
}

.top-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* No Sidebar Layout Overrides */
.no-sidebar #app-container {
  display: block;
}

.no-sidebar .main-content {
  margin-left: 0 !important;
  padding: 6.5rem 2rem 3rem !important;
  max-width: 1200px;
  margin: 0 auto !important;
}

@media (max-width: 1024px) {
  .top-nav-header {
    padding: 0 1rem;
  }
  
  .top-menu-toggle {
    display: block;
  }
  
  .top-nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--surface-1);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    align-items: stretch;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
  }
  
  .top-nav-menu.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .top-nav-item {
    padding: 0.8rem 1rem;
    text-align: center;
    background-color: var(--surface-2);
    border: 1px solid var(--border-subtle);
  }
}

/* Presentation Slide Internal Styles */
.slide-deck-card .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.slide-deck-card .three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.slide-deck-card .card { background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 1.2rem 1.4rem; }
.slide-deck-card .card-gold { border-color: var(--gold-dark); background: rgba(200,150,12,0.05); }
.slide-deck-card .card-green { border-color: var(--emerald-light); background: rgba(16,185,129,0.06); }
.slide-deck-card .card-blue { border-color: #185FA5; background: rgba(24,95,165,0.06); }
.slide-deck-card .card-red { border-color: var(--red-accent); background: rgba(239,68,68,0.06); }
.slide-deck-card .card-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.slide-deck-card .card-title { font-family: 'Amiri', serif; font-size: 1.1rem; color: var(--text-primary); font-weight: 700; margin-bottom: 0.4rem; }
.slide-deck-card .card-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.slide-deck-card .big-stat { text-align: center; padding: 1.5rem; }
.slide-deck-card .big-num { font-family: 'Amiri', serif; font-size: 3rem; color: var(--gold-primary); font-weight: 700; }
.slide-deck-card .big-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; letter-spacing: 1px; }
.slide-deck-card .highlight-box { background: rgba(200,150,12,0.08); border: 1px solid rgba(200,150,12,0.3); border-radius: 8px; padding: 1.2rem 1.5rem; margin: 1rem 0; }
.slide-deck-card .highlight-box p { font-family: 'Amiri', serif; font-size: 1.15rem; color: var(--text-primary); line-height: 1.7; text-align: center; }
.slide-deck-card .phase-row { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; }
.slide-deck-card .phase { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: 8px; border-left: 3px solid var(--gold-primary); }
.slide-deck-card .phase-num { font-size: 1.4rem; font-family: 'Amiri', serif; color: var(--gold-primary); font-weight: 700; min-width: 2rem; text-align: center; }
.slide-deck-card .phase-title { font-size: 0.95rem; color: var(--text-primary); font-weight: 600; margin-bottom: 0.2rem; }
.slide-deck-card .phase-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.slide-deck-card .phase-time { font-size: 0.75rem; color: var(--gold-primary); margin-top: 0.3rem; letter-spacing: 1px; }
.slide-deck-card .rule-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.8rem; }
.slide-deck-card .rule { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.8rem 1rem; background: var(--surface-2); border-radius: 6px; border: 1px solid var(--border-subtle); }
.slide-deck-card .rule-icon { color: var(--gold-primary); font-size: 1rem; margin-top: 0.1rem; min-width: 1.2rem; }
.slide-deck-card .rule-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.slide-deck-card .rule-text strong { color: var(--text-primary); }
.slide-deck-card .arrow-flow { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; justify-content: center; }
.slide-deck-card .arrow-box { background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 0.6rem 1rem; font-size: 0.82rem; color: var(--text-primary); text-align: center; min-width: 100px; }
.slide-deck-card .arrow-sep { color: var(--gold-primary); font-size: 1.2rem; }
.slide-deck-card .q-box { background: var(--surface-2); border: 1px solid var(--gold-dark); border-radius: 8px; padding: 1rem 1.3rem; margin-bottom: 0.8rem; }
.slide-deck-card .q-box p { font-family: 'Amiri', serif; font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.4rem; }
.slide-deck-card .q-box small { font-size: 0.8rem; color: var(--text-secondary); }
.slide-deck-card .level-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1rem; }
.slide-deck-card .level-card { background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 1.2rem; text-align: center; }
.slide-deck-card .level-badge { font-size: 0.75rem; letter-spacing: 2px; color: var(--gold-primary); margin-bottom: 0.5rem; text-transform: uppercase; }
.slide-deck-card .level-amount { font-family: 'Amiri', serif; font-size: 1.8rem; color: var(--text-primary); font-weight: 700; }
.slide-deck-card .level-cond { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.5rem; line-height: 1.5; }
.slide-deck-card .timeline { position: relative; padding-left: 2rem; margin-top: 1rem; }
.slide-deck-card .timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 1px; background: var(--border-subtle); }
.slide-deck-card .tl-item { position: relative; margin-bottom: 1rem; padding: 0.8rem 1rem; background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: 8px; }
.slide-deck-card .tl-item::before { content: ''; position: absolute; left: -1.6rem; top: 1.1rem; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-primary); border: 2px solid var(--bg-dark); }
.slide-deck-card .tl-time { font-size: 0.75rem; color: var(--gold-primary); letter-spacing: 1px; margin-bottom: 0.3rem; }
.slide-deck-card .tl-title { font-size: 0.9rem; color: var(--text-primary); font-weight: 600; margin-bottom: 0.2rem; }
.slide-deck-card .tl-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.slide-deck-card .table-wrap { margin-top: 1rem; overflow-x: auto; }
.slide-deck-card table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.slide-deck-card th { background: var(--surface-3); color: var(--gold-primary); font-weight: 600; padding: 0.7rem 1rem; text-align: left; border: 1px solid var(--border-subtle); letter-spacing: 0.5px; font-size: 0.78rem; }
.slide-deck-card td { padding: 0.65rem 1rem; border: 1px solid var(--border-subtle); color: var(--text-secondary); vertical-align: top; }
.slide-deck-card tr:hover td { background: var(--surface-2); color: var(--text-primary); }
.slide-deck-card .badge { display: inline-block; font-size: 0.72rem; padding: 2px 8px; border-radius: 20px; letter-spacing: 0.5px; font-weight: 600; }
.slide-deck-card .badge-gold { background: rgba(200,150,12,0.15); color: var(--gold-primary); }
.slide-deck-card .badge-green { background: rgba(16,185,129,0.15); color: var(--emerald-light); }
.slide-deck-card .badge-blue { background: rgba(24,95,165,0.15); color: #85B7EB; }
.slide-deck-card .badge-red { background: rgba(239,68,68,0.15); color: #F0997B; }

@media (max-width: 1024px) {
  .slide-deck-card .two-col, .slide-deck-card .three-col, .slide-deck-card .level-row { grid-template-columns: 1fr; }
}
