/* 
   ==========================================================================
   FINANCIAL DEPARTMENT ORGANIZATIONAL STRUCTURE PRESENTATION
   Design: Modern Corporate Minimalist (Clean Business Minimal)
   Palette: Deep Slate/Navy (#0B132B, #0F172A), Emerald (#10B981), Amber Gold (#F59E0B)
   ========================================================================== 
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  --bg-dark: #0B132B;
  --bg-card: rgba(30, 41, 59, 0.75);
  --bg-card-hover: rgba(51, 65, 85, 0.85);
  --bg-card-solid: #1E293B;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(16, 185, 129, 0.3);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --color-emerald: #10B981;
  --color-emerald-light: #34D399;
  --color-gold: #F59E0B;
  --color-gold-light: #FBBF24;
  --color-blue: #3B82F6;
  --color-blue-light: #60A5FA;
  --color-crimson: #EF4444;
  --color-purple: #8B5CF6;

  --shadow-main: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
  --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.25);
  
  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 50% 0%, #1E293B 0%, #0B132B 70%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* App Header & Navigation Bar */
.app-header {
  height: 70px;
  background: rgba(11, 19, 43, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-badge {
  background: linear-gradient(135deg, var(--color-emerald), var(--color-blue));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 0.25rem;
  border-radius: 8px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--color-emerald);
  color: #0B132B;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.lang-btn.mirror-active {
  background: linear-gradient(135deg, var(--color-gold), #F59E0B);
  color: #0B132B;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon.active {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
}

/* Presentation Container */
.presentation-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem 5rem 2rem;
}

/* Slide Progress Indicator */
.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-gold));
  width: 16.66%;
  transition: width 0.4s ease;
}

/* Slide View Modes */
.slide-viewport {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: calc(100vh - 160px);
}

.slide-card {
  width: 100%;
  background: #151f38;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-main);
  padding: 3rem;
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: opacity, transform;
}

.slide-card.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* Mirror Mode (Dual Language Side-by-Side) */
.mirror-mode .slide-card.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.mirror-panel {
  position: relative;
}

.mirror-panel-rus {
  border-right: 1px dashed rgba(255, 255, 255, 0.15);
  padding-right: 2rem;
}

.mirror-panel-uzb {
  padding-left: 0.5rem;
}

.mirror-lang-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.tag-rus {
  background: rgba(59, 130, 246, 0.2);
  color: var(--color-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.tag-uzb {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Slide Typography */
.slide-header {
  margin-bottom: 2rem;
}

.slide-number-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-emerald);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slide-number-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-accent), transparent);
  max-width: 100px;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.slide-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Title Slide Styling */
.title-slide-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  min-height: 480px;
}

.title-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--color-gold-light);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.metric-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.metric-card:hover {
  border-color: var(--color-emerald);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-emerald);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-emerald-light);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.title-hero-graphic {
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.graphic-sphere {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.graphic-inner-node {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 2px solid var(--color-emerald);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-emerald);
  animation: spinSlowReverse 30s linear infinite;
}

@keyframes spinSlowReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Executive Profile Layout (Slides 2, 3, 4, 5) */
.profile-slide-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.executive-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.executive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-gold));
}

.executive-avatar-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-blue));
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-glow-emerald);
  position: relative;
}

.executive-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1E293B;
}

.executive-role-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-light);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.executive-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.executive-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.executive-stats-mini {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mini-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
}

.stat-label {
  color: var(--text-muted);
}

.stat-val {
  font-weight: 600;
  color: var(--color-emerald-light);
}

/* Functions & Cards Grid */
.functions-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.functions-header-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cards-grid-2x3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.function-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: start;
  transition: var(--transition-smooth);
}

.function-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-emerald);
  transform: translateY(-2px);
}

.function-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.card-gold .function-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-gold-light);
}

.card-blue .function-icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-blue-light);
}

.card-crimson .function-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-crimson);
}

.function-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.function-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Specialized Visual Diagrams (Slide 3 & 4) */
.vertical-subordination-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.vertical-flow-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.tree-node {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: var(--transition-smooth);
}

.tree-node:hover {
  border-color: var(--color-emerald);
}

.tree-node.node-highlight {
  border-color: var(--color-gold);
  background: rgba(245, 158, 11, 0.1);
}

.tree-node.node-audit {
  border-color: var(--color-crimson);
  background: rgba(239, 68, 68, 0.1);
}

.tree-connector-line {
  width: 2px;
  height: 24px;
  background: var(--color-emerald);
  position: relative;
}

.tree-connector-line::after {
  content: '▼';
  position: absolute;
  bottom: -8px;
  left: -4px;
  font-size: 0.6rem;
  color: var(--color-emerald);
}

.tree-connector-line.dotted-audit {
  background: none;
  border-left: 2px dashed var(--color-crimson);
}

.tree-connector-line.dotted-audit::after {
  color: var(--color-crimson);
}

/* Master Org Chart Slide (Slide 6) */
.org-chart-viewport {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.org-tree-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  position: relative;
  padding: 1rem 0;
}

.org-level-top {
  display: flex;
  justify-content: center;
}

.org-card-cfo {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 2px solid var(--color-gold);
  border-radius: 16px;
  padding: 1rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-glow-gold);
}

.cfo-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.org-level-leads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.lead-node-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.lead-node-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-main);
}

.lead-node-card.lead-treasurer {
  border-top: 3px solid var(--color-emerald);
}

.lead-node-card.lead-controller {
  border-top: 3px solid var(--color-crimson);
}

.lead-node-card.lead-accountant {
  border-top: 3px solid var(--color-blue);
}

.lead-node-card.lead-analyst {
  border-top: 3px solid var(--color-purple);
}

.mini-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 2px solid var(--border-color);
}

.lead-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.lead-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Regional Safes Box (Tashkent, Bukhara, Regions) */
.retail-safes-level {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  margin-top: 1rem;
}

.safes-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
}

.badge-subordination {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-audit {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.safes-branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.branch-safe-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  transition: var(--transition-smooth);
}

.branch-safe-card:hover {
  border-color: var(--color-gold);
}

.branch-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.branch-details {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.dual-line-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  background: rgba(11, 19, 43, 0.8);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-top: 1rem;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.line-sample-solid {
  width: 30px;
  height: 3px;
  background: var(--color-emerald);
  border-radius: 2px;
}

.line-sample-dotted {
  width: 30px;
  height: 0;
  border-top: 3px dashed var(--color-crimson);
}

/* Footer & Presentation Controls */
.app-footer {
  height: 65px;
  background: rgba(11, 19, 43, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
}

.controls-left, .controls-center, .controls-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-nav-slide {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-nav-slide:hover:not(:disabled) {
  background: var(--color-emerald);
  color: #0B132B;
  border-color: var(--color-emerald);
}

.btn-nav-slide:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slide-dots-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slide-dot.active {
  background: var(--color-emerald);
  width: 24px;
  border-radius: 6px;
}

.slide-counter-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* CREATIVE UNUSUAL HERO SLIDE 1 FORMAT */
.hero-creative-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  min-height: 480px;
  position: relative;
}

.hero-glowing-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-blue));
  padding: 3px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.4);
  animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 35px rgba(16, 185, 129, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 50px rgba(16, 185, 129, 0.7); }
}

.ring-core {
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-emerald-light);
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--color-emerald-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--color-emerald-light) 60%, var(--color-gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.5;
}

.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 950px;
}

.pillar-card {
  background: rgba(30, 41, 59, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  border-color: var(--color-emerald);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.2);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pillar-icon.emerald {
  background: rgba(16, 185, 129, 0.18);
  color: var(--color-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pillar-icon.gold {
  background: rgba(245, 158, 11, 0.18);
  color: var(--color-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pillar-icon.blue {
  background: rgba(59, 130, 246, 0.18);
  color: var(--color-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.pillar-content h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pillar-content p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Head Executive Special Card */
.head-executive-card {
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(30, 41, 59, 0.85) 100%) !important;
}

.head-avatar-glow {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
  border-color: var(--color-emerald) !important;
}

.head-tag {
  background: rgba(16, 185, 129, 0.2) !important;
  color: var(--color-emerald-light) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

/* No Bank Pill */
.no-bank-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.6rem;
}

/* Salary Badge Style */
.executive-salary-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-emerald-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  margin-top: 0.75rem;
}

/* Hierarchy Mini Tree for Slide 2 */
.hierarchy-mini-tree {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hierarchy-top-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hierarchy-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
}

.hierarchy-box.boss-box {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--color-gold-light);
  font-weight: 700;
}

.hierarchy-box.head-box {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.12);
  color: var(--text-primary);
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.hierarchy-box.side-box {
  border-color: rgba(96, 165, 250, 0.4);
  color: var(--color-blue-light);
  font-weight: 600;
}

.tree-line-v {
  width: 2px;
  height: 18px;
  background: var(--color-emerald);
}

.tree-line-h {
  width: 35px;
  height: 2px;
  background: var(--color-blue-light);
}

.hierarchy-middle-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsibilities List Clean Cards */
.resp-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.resp-item-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.resp-item-card:hover {
  border-color: var(--color-emerald);
  transform: translateX(4px);
}

.resp-num-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.resp-text {
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* Subordinates Section Box */
.subordinates-section-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-top: 1rem;
}

.subordinates-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-emerald-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subordinates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.subordinate-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Slide 7 Administrative Org Tree System with Explicit Arrows */
.admin-org-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.tree-single-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: -0.25rem 0;
}

.tree-single-arrow .stem-v {
  width: 3px;
  height: 22px;
  background: var(--color-emerald);
  border-radius: 2px;
}

.tree-single-arrow .arrow-icon {
  color: var(--color-emerald-light);
  font-size: 0.95rem;
  margin-top: -6px;
  filter: drop-shadow(0 0 6px var(--color-emerald));
}

.head-box-featured {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(30, 41, 59, 0.95)) !important;
  border: 2px solid var(--color-emerald) !important;
  border-radius: 14px;
  padding: 0.85rem 2.25rem !important;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.featured-head-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.head-box-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.head-role-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-emerald-light);
}

.head-person-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

/* Main Branch Tree Connector */
.tree-branch-system {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.25rem 0 0.5rem 0;
}

.tree-branch-system .stem-top {
  width: 3px;
  height: 18px;
  background: var(--color-emerald);
  border-radius: 2px;
}

.tree-branch-system .horizontal-bar {
  width: 75%;
  height: 3px;
  background: var(--color-emerald);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.tree-branch-system .arrows-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin-top: -2px;
}

.tree-branch-system .arrow-col {
  display: flex;
  justify-content: center;
  color: var(--color-emerald-light);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px var(--color-emerald));
}

.admin-tree-branch-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  width: 100%;
  position: relative;
}

.admin-branch-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.admin-branch-card.active-branch {
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-glow-emerald);
}

.admin-branch-card .mini-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: var(--transition-smooth);
}

.admin-branch-card.active-branch .mini-avatar {
  border-color: var(--color-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.admin-branch-card .branch-role-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-top: 0.6rem;
}

.admin-branch-card .branch-person-name {
  font-size: 0.9rem;
  color: var(--color-emerald-light);
  font-weight: 700;
  margin-top: 0.25rem;
}

.admin-branch-card .branch-salary-text {
  font-size: 0.82rem;
  color: var(--color-gold-light);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-weight: 700;
}

.abbos-sub-tree {
  margin-top: 0.85rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 2px solid var(--color-emerald);
}

.sub-arrow-down {
  color: var(--color-emerald-light);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.abbos-sub-node {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 100%;
  text-align: center;
}

.bukhara-note-card {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--color-gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  margin-top: 0.25rem;
  width: 100%;
  text-align: center;
}

/* ==========================================
   LIGHT THEME OVERRIDES (СВЕТЛАЯ ТЕМА)
   ========================================== */
body.light-theme {
  --bg-dark: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --bg-card-solid: #FFFFFF;
  --border-color: rgba(203, 213, 225, 0.8);
  --border-accent: rgba(16, 185, 129, 0.4);
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  
  --color-emerald: #059669;
  --color-emerald-light: #047857;
  --color-gold: #D97706;
  --color-gold-light: #B45309;
  --color-blue: #2563EB;
  --color-blue-light: #1D4ED8;
  
  background: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #F1F5F9 100%);
  color: var(--text-primary);
}

body.light-theme .app-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

body.light-theme .lang-switch {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

body.light-theme .lang-btn {
  color: #475569;
}

body.light-theme .lang-btn.active {
  background: #10B981;
  color: #FFFFFF;
}

body.light-theme .lang-btn.theme-light-active {
  background: #F59E0B;
  color: #FFFFFF;
}

body.light-theme .app-footer {
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #E2E8F0;
}

body.light-theme .btn-nav-slide {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

body.light-theme .btn-nav-slide:hover:not(:disabled) {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
}

body.light-theme .slide-dot {
  background: rgba(148, 163, 184, 0.4);
}

body.light-theme .slide-dot.active {
  background: #10B981;
}

body.light-theme .executive-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .head-executive-card {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, #FFFFFF 100%) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

body.light-theme .resp-item-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body.light-theme .resp-item-card:hover {
  border-color: #10B981;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.12);
}

body.light-theme .hierarchy-mini-tree {
  background: rgba(241, 245, 249, 0.8);
  border-color: #CBD5E1;
}

body.light-theme .hierarchy-box {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #0F172A;
}

body.light-theme .subordinates-section-box {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(16, 185, 129, 0.4);
}

body.light-theme .subordinate-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #0F172A;
}

body.light-theme .admin-branch-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

body.light-theme .admin-branch-card .branch-role-name {
  color: #0F172A;
}

body.light-theme .abbos-sub-node {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #334155;
}

body.light-theme .hero-main-title {
  color: #0F172A;
}

body.light-theme .hero-desc {
  color: #475569;
}

body.light-theme .pillar-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

body.light-theme .pillar-content h4 {
  color: #0F172A;
}

body.light-theme .pillar-content p {
  color: #475569;
}

body.light-theme .mirror-panel-rus {
  border-right-color: rgba(203, 213, 225, 0.8);
}

body.light-theme .hero-glowing-ring {
  background: linear-gradient(135deg, #10B981, #3B82F6);
}

body.light-theme .ring-core {
  background: #FFFFFF;
  color: #059669;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .profile-slide-layout {
    grid-template-columns: 1fr;
  }
  .hero-pillars-grid {
    grid-template-columns: 1fr;
  }
  .title-slide-layout {
    grid-template-columns: 1fr;
  }
  .org-level-leads {
    grid-template-columns: repeat(2, 1fr);
  }
  .safes-branches-grid {
    grid-template-columns: 1fr;
  }
  .admin-tree-branch-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .subordinates-grid {
    grid-template-columns: 1fr;
  }
  .mirror-mode .slide-card.active {
    grid-template-columns: 1fr;
  }
}

/* Helper utility classes for presentation */
.display-none { display: none !important; }
.no-underline { text-decoration: none !important; }
.text-emerald-light { color: var(--color-emerald-light) !important; }
.text-emerald { color: var(--color-emerald) !important; }
.text-gold { color: var(--color-gold) !important; }
.text-blue { color: var(--color-blue) !important; }
.text-crimson { color: var(--color-crimson) !important; }
.font-size-90 { font-size: 0.9rem !important; }
.font-weight-700 { font-weight: 700 !important; }
.border-gold { border-top-color: var(--color-gold) !important; }
.role-gold { background: rgba(245, 158, 11, 0.15) !important; color: var(--color-gold-light) !important; border-color: rgba(245, 158, 11, 0.3) !important; }
.border-purple { border-top-color: var(--color-purple) !important; }
.role-purple { background: rgba(139, 92, 246, 0.15) !important; color: #C4B5FD !important; border-color: rgba(139, 92, 246, 0.3) !important; }


