:root {
  --ot-ink: #112633;
  --ot-teal: #087f81;
  --ot-teal-light: #e6f6f5;
  --ot-lime: #16a34a;
  --ot-amber: #d97706;

  /* Landing Page Theme Variables - Light Mode Default */
  --ot-home-bg: #f4f8fa;
  --ot-home-text: #173242;
  --ot-home-title: #0c2635;
  --ot-home-title-accent: #087f81;
  --ot-home-eyebrow: #07696b;
  --ot-home-lead: #3a5666;
  --ot-grid-color: rgba(8, 127, 129, 0.05);

  --ot-card-bg: #ffffff;
  --ot-card-border: rgba(8, 127, 129, 0.16);
  --ot-card-text: #132d3d;
  --ot-card-sub: #577382;
  --ot-card-shadow: 0 10px 30px rgba(12, 43, 54, 0.07);

  --ot-badge-panel-bg: linear-gradient(145deg, #ffffff 0%, #edf7f6 100%);
  --ot-badge-panel-border: rgba(8, 127, 129, 0.25);
  --ot-badge-kicker: #087f81;
  --ot-badge-chip-bg: rgba(8, 127, 129, 0.08);
  --ot-badge-chip-text: #087f81;
  --ot-badge-chip-border: rgba(8, 127, 129, 0.25);

  --ot-countdown-bg: linear-gradient(135deg, #ffffff 0%, #eaf7f5 100%);
  --ot-countdown-border: rgba(8, 127, 129, 0.2);

  --ot-footer-bg: #edf3f5;
  --ot-footer-text: #23424a;
  --ot-footer-border: rgba(8, 127, 129, 0.14);

  --ot-sidebar-bg: #ffffff;
  --ot-sidebar-text: #1e3a47;
  --ot-sidebar-border: rgba(8, 127, 129, 0.12);
  --ot-sidebar-hover-bg: rgba(8, 127, 129, 0.08);
  --ot-sidebar-hover-text: #087f81;
  --ot-sidebar-active-bg: rgba(8, 127, 129, 0.14);
}

/* Dark Theme Variables */
.ot-dark {
  --ot-home-bg: #06151f;
  --ot-home-text: #e2f1f0;
  --ot-home-title: #ffffff;
  --ot-home-title-accent: #5eead4;
  --ot-home-eyebrow: #5eead4;
  --ot-home-lead: #c2dfe3;
  --ot-grid-color: rgba(80, 211, 200, 0.05);

  --ot-card-bg: rgba(14, 43, 56, 0.72);
  --ot-card-border: rgba(80, 211, 200, 0.2);
  --ot-card-text: #e2f1f0;
  --ot-card-sub: #94a3b8;
  --ot-card-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);

  --ot-badge-panel-bg: radial-gradient(circle at 50% 35%, rgba(25, 101, 122, 0.5), rgba(5, 25, 41, 0.95) 70%);
  --ot-badge-panel-border: rgba(69, 205, 209, 0.4);
  --ot-badge-kicker: #84e0d8;
  --ot-badge-chip-bg: rgba(224, 170, 97, 0.15);
  --ot-badge-chip-text: #f4d4ab;
  --ot-badge-chip-border: rgba(224, 170, 97, 0.5);

  --ot-countdown-bg: linear-gradient(135deg, #071f28 0%, #0a2d39 100%);
  --ot-countdown-border: rgba(94, 234, 212, 0.25);

  --ot-footer-bg: #05131a;
  --ot-footer-text: #d9e9e9;
  --ot-footer-border: rgba(80, 211, 200, 0.15);

  --ot-sidebar-bg: #091c26;
  --ot-sidebar-text: #c2dfe3;
  --ot-sidebar-border: rgba(80, 211, 200, 0.15);
  --ot-sidebar-hover-bg: rgba(94, 234, 212, 0.12);
  --ot-sidebar-hover-text: #5eead4;
  --ot-sidebar-active-bg: rgba(94, 234, 212, 0.2);
}

/* Base Document Styles */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  background: #eef3f4;
  color: var(--ot-ink);
  font-family: 'Vazirmatn', sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}
html[lang="en"] body {
  font-family: 'Inter', sans-serif;
}
code, pre, .ot-flow-head, .ot-node, .ot-time-grid strong, .ot-badge-kicker, .ot-footer-badge-tag {
  font-family: 'JetBrains Mono', 'Vazirmatn', monospace;
}

/* General Theme Elements */
.card { border-radius: 16px; transition: background 0.3s ease, border-color 0.3s ease; }
.btn-primary, .bg-gradient-primary { background: linear-gradient(135deg, #113747, #087f81) !important; border-color: #087f81 !important; }
.btn-success { background: #087f81; border-color: #087f81; }
.btn-primary:hover, .btn-success:hover { background: #07696b !important; border-color: #07696b !important; }
.table thead th { color: #395760; }

/* Landing Page (.ot-home) */
.ot-home {
  background: var(--ot-home-bg);
  min-height: 100vh;
  color: var(--ot-home-text);
  padding: 40px clamp(20px, 4vw, 70px) 70px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
.ot-home:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--ot-grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--ot-grid-color) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.ot-home > * { position: relative; }
.ot-eyebrow {
  color: var(--ot-home-eyebrow);
  letter-spacing: .08em;
  font-size: .92rem;
  font-weight: 700;
  transition: color 0.3s ease;
}
.ot-title {
  color: var(--ot-home-title);
  font-size: clamp(1.85rem, 6.2vw, 4.4rem);
  font-weight: 900;
  margin: 14px 0 20px;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: color 0.3s ease;
}
.ot-title span {
  color: var(--ot-home-title-accent);
  transition: color 0.3s ease;
}
.ot-title .ot-brand-line { display: block; line-height: 1.12; }
.ot-title .ot-brand-line:first-child { color: var(--ot-home-title); }
.ot-lead {
  font-size: 1.15rem;
  line-height: 2;
  max-width: 760px;
  color: var(--ot-home-lead);
  transition: color 0.3s ease;
}
html[lang="fa"] .ot-lead { line-height: 2; }

/* Hero Section */
.ot-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 1fr);
  gap: 32px;
  align-items: center;
  margin: 0 auto 50px;
  max-width: 1400px;
}
.ot-logo-wrap {
  display: inline-block;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 14px rgba(8, 127, 129, 0.25));
  transition: transform .3s ease, filter .3s ease;
}
.ot-logo-wrap:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 22px rgba(8, 127, 129, 0.45));
}
.ot-logo-img { width: 84px; height: 84px; object-fit: contain; }

/* Hero Buttons */
.ot-btn-hero-primary {
  background: linear-gradient(135deg, #087f81, #065e60) !important;
  border-color: #087f81 !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(8, 127, 129, 0.3);
  transition: all 0.25s ease;
}
.ot-btn-hero-primary:hover {
  background: linear-gradient(135deg, #0a9496, #087f81) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 127, 129, 0.4);
}
.ot-btn-hero-secondary {
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 12px;
  transition: all 0.25s ease;
}
body:not(.ot-dark) .ot-btn-hero-secondary {
  border: 2px solid #087f81 !important;
  color: #087f81 !important;
  background: rgba(8, 127, 129, 0.05);
}
body:not(.ot-dark) .ot-btn-hero-secondary:hover {
  background: #087f81 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 127, 129, 0.25);
}
.ot-dark .ot-btn-hero-secondary {
  border: 2px solid rgba(94, 234, 212, 0.5) !important;
  color: #e2f1f0 !important;
  background: rgba(94, 234, 212, 0.08);
}
.ot-dark .ot-btn-hero-secondary:hover {
  background: rgba(94, 234, 212, 0.2) !important;
  border-color: #5eead4 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94, 234, 212, 0.25);
}

/* Iran Badge Panel */
.ot-badge-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--ot-badge-panel-border);
  border-radius: 24px;
  background: var(--ot-badge-panel-bg);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.ot-badge-panel > img {
  display: block;
  width: min(100%, 580px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 12px auto;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.25));
  transition: transform 0.3s ease;
}
.ot-badge-panel:hover > img {
  transform: scale(1.02);
}
.ot-badge-kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ot-badge-kicker);
  letter-spacing: .08em;
}
.ot-badge-kicker span[dir="rtl"] { letter-spacing: 0; }
.ot-badge-specs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.ot-badge-specs span {
  padding: 6px 12px;
  border: 1px solid var(--ot-badge-chip-border);
  border-radius: 999px;
  background: var(--ot-badge-chip-bg);
  color: var(--ot-badge-chip-text);
  font: 600 .75rem 'JetBrains Mono', monospace;
}
.ot-badge-panel a {
  color: var(--ot-home-title-accent);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.ot-badge-panel a:hover { opacity: 0.85; text-decoration: underline; }

/* Sections */
.ot-section {
  max-width: 1280px;
  margin: 45px auto;
}
.ot-section-header {
  margin-bottom: 24px;
}
.ot-section h2 {
  color: var(--ot-home-title);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}
.ot-section-sub {
  color: var(--ot-card-sub);
  font-size: 0.95rem;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

/* Event Partners Section - Minimalist & Harmonious */
.ot-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.ot-partner {
  background: var(--ot-card-bg);
  border: 1px solid var(--ot-card-border);
  border-radius: 20px;
  padding: 34px 28px 28px;
  box-shadow: var(--ot-card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 230px;
  backdrop-filter: blur(14px);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  position: relative;
  text-decoration: none !important;
}
.ot-partner:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 127, 129, 0.4);
  box-shadow: 0 16px 40px rgba(8, 127, 129, 0.14);
}
.ot-dark .ot-partner:hover {
  border-color: rgba(94, 234, 212, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.ot-partner-logo-link {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px 12px;
  transition: transform 0.25s ease;
}
.ot-partner:hover .ot-partner-logo-link {
  transform: scale(1.04);
}
.ot-partner-img {
  width: auto;
  max-width: 90%;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
  filter: none !important;
}
.ot-partner-img-steel {
  max-height: 72px;
  max-width: min(240px, 88%);
}
.ot-partner-img-asis {
  max-height: 60px;
  max-width: min(180px, 78%);
}

/* Light / Dark Mode Logo Switching (Seamless, no CSS filters) */
.ot-partner-img-dark {
  display: none !important;
}
.ot-partner-img-light {
  display: inline-block !important;
}
.ot-dark .ot-partner-img-light {
  display: none !important;
}
.ot-dark .ot-partner-img-dark {
  display: inline-block !important;
}

.ot-partner-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  width: 100%;
}
.ot-partner-info strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ot-card-text);
  line-height: 1.4;
  transition: color 0.3s ease;
}
.ot-partner-info span {
  font-size: 0.85rem;
  color: var(--ot-card-sub);
  line-height: 1.4;
  transition: color 0.3s ease;
}

/* Countdown Section & Schedule Widget */
.ot-countdown {
  background: var(--ot-countdown-bg);
  border: 1px solid var(--ot-countdown-border);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
}
body:not(.ot-dark) .ot-countdown {
  box-shadow: 0 16px 45px rgba(8, 127, 129, 0.08);
}
.ot-dark .ot-countdown {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.ot-countdown-top {
  max-width: 860px;
  margin: 0 auto 28px;
}
.ot-countdown-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ot-teal);
  background: var(--ot-badge-chip-bg);
  border: 1px solid var(--ot-badge-chip-border);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ot-countdown h2 {
  color: var(--ot-home-title) !important;
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

/* Schedule Widget */
.ot-schedule-widget {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.ot-schedule-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
body:not(.ot-dark) .ot-schedule-card {
  background: #ffffff;
  border: 1px solid rgba(8, 127, 129, 0.16);
  box-shadow: 0 6px 20px rgba(8, 127, 129, 0.05);
}
body:not(.ot-dark) .ot-schedule-card:hover {
  border-color: #087f81;
  box-shadow: 0 10px 28px rgba(8, 127, 129, 0.12);
  transform: translateY(-2px);
}
.ot-dark .ot-schedule-card {
  background: rgba(9, 38, 48, 0.75);
  border: 1px solid rgba(94, 234, 212, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}
.ot-dark .ot-schedule-card:hover {
  border-color: #5eead4;
  box-shadow: 0 12px 32px rgba(80, 211, 200, 0.2);
  transform: translateY(-2px);
}

.ot-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
body:not(.ot-dark) .ot-card-pill {
  background: rgba(8, 127, 129, 0.07);
  color: #0c4e57;
  border: 1px solid rgba(8, 127, 129, 0.14);
}
.ot-dark .ot-card-pill {
  background: rgba(94, 234, 212, 0.1);
  color: #a5f3fc;
  border: 1px solid rgba(94, 234, 212, 0.25);
}

.ot-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot-start {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseStart 2s infinite;
}
.dot-end {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
@keyframes pulseStart {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.ot-card-date-line {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}
body:not(.ot-dark) .ot-card-date-line { color: #0a3540; }
.ot-dark .ot-card-date-line { color: #f0fdf9; }

.ot-card-time-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 4px 14px;
  border-radius: 10px;
}
body:not(.ot-dark) .ot-card-time-line {
  background: #eef8f7;
  color: #087f81;
  border: 1px solid rgba(8, 127, 129, 0.18);
}
.ot-dark .ot-card-time-line {
  background: rgba(14, 48, 60, 0.9);
  color: #5eead4;
  border: 1px solid rgba(94, 234, 212, 0.3);
}

.ot-schedule-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
}
.ot-bridge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
body:not(.ot-dark) .ot-bridge-duration {
  background: #087f81;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(8, 127, 129, 0.25);
}
.ot-dark .ot-bridge-duration {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}
body:not(.ot-dark) .ot-bridge-tz {
  background: #ffffff;
  border: 1px solid rgba(8, 127, 129, 0.16);
  color: #4b6670;
}
.ot-dark .ot-bridge-tz {
  background: rgba(9, 38, 48, 0.6);
  border: 1px solid rgba(94, 234, 212, 0.18);
  color: #94b8c2;
}
.ot-bridge-arrow {
  color: var(--ot-teal);
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1;
}

@media (max-width: 767.98px) {
  .ot-schedule-widget {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ot-schedule-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
  }
  .ot-bridge-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(8, 127, 129, 0.1);
    color: var(--ot-teal);
    font-size: 0.82rem;
    transform: none !important;
  }
  .ot-dark .ot-bridge-arrow {
    background: rgba(94, 234, 212, 0.12);
    color: #5eead4;
  }
  .ot-bridge-arrow i::before {
    content: "\f063" !important;
  }
}

/* Rings */
.ot-rings {
  position: relative;
  width: min(270px, 70vw);
  aspect-ratio: 1;
  margin: 20px auto 10px;
}
.ot-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ot-ring-track, .ot-ring-value { fill: none; stroke-width: 8; }
body:not(.ot-dark) .ot-ring-track { stroke: rgba(8, 127, 129, 0.14); }
.ot-dark .ot-ring-track { stroke: rgba(255, 255, 255, 0.16); }
.ot-ring-value { stroke-linecap: round; transition: stroke-dashoffset .5s linear; }

body:not(.ot-dark) .ring-days { stroke: #d97706; stroke-dasharray: 703.7; }
body:not(.ot-dark) .ring-hours { stroke: #087f81; stroke-dasharray: 521.5; }
body:not(.ot-dark) .ring-seconds { stroke: #10b981; stroke-dasharray: 339.3; }

.ot-dark .ring-days { stroke: #e8ac4a; stroke-dasharray: 703.7; }
.ot-dark .ring-hours { stroke: #55d2c2; stroke-dasharray: 521.5; }
.ot-dark .ring-seconds { stroke: #b5ed91; stroke-dasharray: 339.3; }

.ot-ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  pointer-events: none;
}
body:not(.ot-dark) .ot-ring-center { color: #0b3c49; }
.ot-dark .ot-ring-center { color: #eaf8f2; }
.ot-ring-center div { display: flex; align-items: baseline; justify-content: center; gap: 7px; line-height: 1.15; }
.ot-ring-center div:nth-child(1) strong { font-size: 1.9rem; }
.ot-ring-center div:nth-child(2) strong { font-size: 1.4rem; }
.ot-ring-center div:nth-child(3) strong { font-size: 1.05rem; }
.ot-ring-center strong { font-family: inherit; font-weight: 800; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; min-width: 2.2ch; text-align: center; }
.ot-ring-center span { font-size: .7rem; }

/* Word Cloud */
.ot-cloud-wrap {
  min-height: 320px;
  margin: 35px auto 45px;
  background: var(--ot-card-bg);
  border: 1px solid var(--ot-card-border);
  border-radius: 24px;
  padding: 20px 24px;
  box-shadow: var(--ot-card-shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.ot-cloud {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: 100%;
  min-height: 300px;
  padding: 20px;
  direction: inherit;
  contain: layout paint;
}
.ot-cloud-word { display: inline-block; max-width: 100%; line-height: 1.35; text-align: center; font-weight: 750; }
.ot-cloud-word-1 { color: #50d3c8; font-size: clamp(1.2rem, 2.6vw, 2rem); }
.ot-cloud-word-2 { color: #a9ed86; font-size: clamp(1rem, 2.2vw, 1.7rem); }
.ot-cloud-word-3 { color: #eebc61; font-size: clamp(.95rem, 1.8vw, 1.4rem); }
.ot-cloud-word-4 { color: #a0b8ff; font-size: clamp(.9rem, 1.5vw, 1.2rem); }
.ot-cloud-word-5 { color: #fb9dbe; font-size: clamp(.9rem, 1.35vw, 1.05rem); }
body:not(.ot-dark) .ot-cloud-word-1 { color: #087f81; }
body:not(.ot-dark) .ot-cloud-word-2 { color: #15803d; }
body:not(.ot-dark) .ot-cloud-word-3 { color: #b45309; }
body:not(.ot-dark) .ot-cloud-word-4 { color: #1d4ed8; }
body:not(.ot-dark) .ot-cloud-word-5 { color: #b91c1c; }
@media(max-width:600px) { .ot-cloud { min-height: 0; gap: 12px; padding: 18px 8px; } .ot-cloud-word { white-space: normal; } }

/* Redesigned Modern Footer */
.ot-site-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 48px clamp(20px, 4vw, 70px) 28px;
  background: var(--ot-footer-bg);
  color: var(--ot-footer-text);
  border-top: 1px solid var(--ot-footer-border);
  transition: background 0.3s ease, color 0.3s ease;
}
.ot-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 36px;
}
.ot-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ot-footer-brand img { width: 50px; height: 50px; object-fit: contain; }
.ot-footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--ot-home-title);
  letter-spacing: -0.02em;
}
.ot-footer-brand-title span { color: var(--ot-home-title-accent); }
.ot-footer-brand-title .ot-brand-line { display: block; line-height: 1.2; }
.ot-footer-brand-title .ot-brand-line:first-child { color: var(--ot-home-title); }
.ot-footer-brand-sub {
  font-size: 0.82rem;
  color: var(--ot-card-sub);
  display: block;
  margin-top: 2px;
}
.ot-footer-desc {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--ot-card-sub);
  margin-top: 14px;
  max-width: 440px;
}
.ot-footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ot-home-title);
}
.ot-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ot-footer-menu li { margin-bottom: 10px; }
.ot-footer-menu a {
  color: var(--ot-footer-text);
  opacity: 0.85;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.ot-footer-menu a:hover {
  opacity: 1;
  color: var(--ot-teal);
  transform: translateX(-4px);
}
[dir=ltr] .ot-footer-menu a:hover { transform: translateX(4px); }
.ot-footer-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ot-footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
}
body:not(.ot-dark) .ot-footer-chip {
  background: #ffffff;
  border: 1px solid rgba(8, 127, 129, 0.16);
  color: #1e3a47;
  box-shadow: 0 2px 8px rgba(12, 43, 54, 0.04);
}
body:not(.ot-dark) .ot-footer-chip:hover {
  border-color: #087f81;
  color: #087f81;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 127, 129, 0.14);
}
.ot-dark .ot-footer-chip {
  background: rgba(14, 43, 56, 0.6);
  border: 1px solid rgba(80, 211, 200, 0.2);
  color: #c2dfe3;
}
.ot-dark .ot-footer-chip:hover {
  border-color: #5eead4;
  color: #ffffff;
  background: rgba(14, 43, 56, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(80, 211, 200, 0.18);
}
.ot-footer-bottom {
  border-top: 1px solid var(--ot-footer-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--ot-card-sub);
}
.ot-footer-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ot-home-title-accent);
}
.ot-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: otPulse 2s infinite ease-in-out;
}
@keyframes otPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #22c55e; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Sidebar & Navigation Styling */
.navbar-vertical,
#sidenav-main {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: 300px !important;
  max-width: 86vw !important;
  z-index: 1060 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 0 !important;
  background: var(--ot-sidebar-bg) !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45) !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s ease !important;
}

/* Sidenav inner layout - flex column from top */
.navbar-vertical > [class*=container],
.navbar-vertical > .container-fluid,
#sidenav-main > .container-fluid {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  min-height: 100% !important;
  height: auto !important;
  padding: 16px 14px 24px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Drawer Header: Brand + Dedicated Close Button */
.ot-sidebar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid var(--ot-sidebar-border) !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}

.ot-sidebar-brand {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  text-decoration: none !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ot-sidebar-logo {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.ot-sidebar-brand-text {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

.ot-sidebar-title {
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  color: var(--ot-sidebar-text) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  display: block !important;
}
.ot-sidebar-title .ot-brand-line { display: block; }
.ot-sidebar-title .ot-brand-line:last-child { color: var(--ot-home-title-accent); }

.ot-sidebar-subtitle {
  font-size: 0.72rem !important;
  color: var(--ot-card-sub) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
  display: block !important;
}

.ot-sidebar-close-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  border: 1px solid var(--ot-sidebar-border) !important;
  background: var(--ot-sidebar-hover-bg) !important;
  color: var(--ot-sidebar-text) !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.ot-sidebar-close-btn:hover {
  background: var(--ot-card-border) !important;
  color: var(--ot-home-title-accent) !important;
  border-color: var(--ot-home-title-accent) !important;
  transform: scale(1.05) !important;
}

/* User Card in Drawer */
.ot-drawer-user-card {
  background: var(--ot-sidebar-hover-bg) !important;
  border: 1px solid var(--ot-sidebar-border) !important;
  padding: 10px !important;
  margin-bottom: 12px !important;
  border-radius: 12px !important;
}

/* Menu Links Hover & Active States */
.navbar-vertical .navbar-nav .nav-link {
  padding: 0.75rem 1.15rem;
  margin: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ot-sidebar-text) !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-vertical .navbar-nav .nav-link i {
  font-size: 1.15rem;
  min-width: 24px;
  text-align: center;
  transition: transform 0.22s ease;
}
.navbar-vertical .navbar-nav .nav-link:hover {
  color: var(--ot-sidebar-hover-text) !important;
  background: var(--ot-sidebar-hover-bg) !important;
  transform: translateX(-4px);
}
[dir=ltr] .navbar-vertical .navbar-nav .nav-link:hover {
  transform: translateX(4px);
}
.navbar-vertical .navbar-nav .nav-link:hover i {
  transform: scale(1.15);
}
.navbar-vertical .navbar-nav .nav-link.active {
  color: var(--ot-sidebar-hover-text) !important;
  background: var(--ot-sidebar-active-bg) !important;
  font-weight: 700;
}
[dir=rtl] .navbar-vertical .navbar-nav .nav-link.active {
  border-right: 3px solid var(--ot-sidebar-hover-text);
}
[dir=ltr] .navbar-vertical .navbar-nav .nav-link.active {
  border-left: 3px solid var(--ot-sidebar-hover-text);
}

/* Top Navbar - Sticky, Clean, Minimal & Non-colliding */
.main-content {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow-x: hidden;
}

.main-content .navbar-top,
.ot-top-navbar {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1030 !important;
  min-height: 64px !important;
  padding: 10px clamp(14px, 2.5vw, 32px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

body:not(.ot-dark) .ot-top-navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(8, 127, 129, 0.12) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04) !important;
}

.ot-dark .ot-top-navbar {
  background: rgba(11, 26, 36, 0.9) !important;
  border-bottom: 1px solid rgba(80, 211, 200, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28) !important;
}

.ot-nav-start {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ot-sidebar-toggle-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body:not(.ot-dark) .ot-sidebar-toggle-btn {
  background: #ffffff;
  border: 1px solid rgba(8, 127, 129, 0.22);
  color: #0f2e3d;
}
body:not(.ot-dark) .ot-sidebar-toggle-btn:hover {
  background: #f0fdfa;
  border-color: #087f81;
  color: #087f81;
  box-shadow: 0 4px 14px rgba(8, 127, 129, 0.15);
  transform: scale(1.04);
}

.ot-dark .ot-sidebar-toggle-btn {
  background: rgba(18, 48, 62, 0.9);
  border: 1px solid rgba(94, 234, 212, 0.25);
  color: #e2f1f0;
}
.ot-dark .ot-sidebar-toggle-btn:hover {
  background: rgba(22, 60, 78, 1);
  border-color: #5eead4;
  color: #5eead4;
  box-shadow: 0 4px 14px rgba(94, 234, 212, 0.25);
  transform: scale(1.04);
}

/* Brand Marks in Top Navbar */
.ot-navbar-brand-link,
.ot-navbar-brand-mobile,
.ot-navbar-brand-desktop {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 8px !important;
}
.ot-navbar-logo {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}
.ot-navbar-brand-text {
  display: inline-flex !important;
  flex-direction: column;
  font-weight: 800 !important;
  font-size: 0.87rem !important;
  line-height: 1.13;
  white-space: nowrap;
  letter-spacing: -0.02em !important;
  color: var(--ot-home-title) !important;
}
.ot-navbar-brand-text span {
  color: var(--ot-home-title-accent) !important;
}
.ot-navbar-brand-text .ot-brand-line:first-child { color: var(--ot-home-title) !important; }
@media (max-width: 575.98px) {
  .ot-navbar-brand-text { font-size: 0.69rem !important; margin-right: 0 !important; margin-left: 0 !important; }
  .ot-navbar-logo { width: 28px !important; height: 28px !important; }
}

/* Header Actions (Language, Theme, Auth) */
.ot-nav-end-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ot-nav-btn {
  border-radius: 10px;
  padding: 6px 14px;
  height: 36px;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

body:not(.ot-dark) .ot-nav-btn {
  background: #ffffff;
  border: 1px solid rgba(8, 127, 129, 0.2);
  color: #0f2e3d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
body:not(.ot-dark) .ot-nav-btn:hover {
  background: #f0fdfa;
  border-color: #087f81;
  color: #087f81;
  transform: translateY(-1px);
}

.ot-dark .ot-nav-btn {
  background: rgba(18, 48, 62, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.22);
  color: #e2f1f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.ot-dark .ot-nav-btn:hover {
  background: rgba(22, 60, 78, 1);
  border-color: #5eead4;
  color: #5eead4;
  transform: translateY(-1px);
}

.ot-nav-auth-btn {
  border-radius: 10px;
  padding: 6px 14px;
  height: 36px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.ot-nav-login-btn {
  background: transparent;
  border: 1px solid var(--ot-card-border);
  color: var(--ot-home-text) !important;
}
.ot-nav-login-btn:hover {
  background: var(--ot-sidebar-hover-bg);
  color: var(--ot-home-title-accent) !important;
  border-color: var(--ot-home-title-accent);
}

.ot-nav-register-btn {
  background: linear-gradient(135deg, #087f81, #065e60);
  border: 1px solid #087f81;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(8, 127, 129, 0.25);
}
.ot-nav-register-btn:hover {
  background: linear-gradient(135deg, #0ba2a4, #087f81);
  box-shadow: 0 4px 14px rgba(8, 127, 129, 0.35);
  transform: translateY(-1px);
}

/* Floating Controls (deprecated in favor of header actions) */
.ot-floating-controls {
  display: none !important;
}

/* Page Spacing: Prevents content from colliding with sticky navbar */
.ot-home {
  padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 70px) 70px !important;
}

.main-content .header {
  padding-top: clamp(1.5rem, 3.5vw, 2.75rem) !important;
  padding-bottom: clamp(4.5rem, 6vw, 6rem) !important;
  position: relative;
}

.main-content .container-fluid.mt--7 {
  margin-top: -3.5rem !important;
  margin-bottom: 3.5rem !important;
}

.main-content > .container {
  padding-top: clamp(2.5rem, 5vw, 4.5rem) !important;
  padding-bottom: clamp(3rem, 5vw, 5rem) !important;
  flex: 1;
}

/* Drawer / Sidebar Header Elements */
.ot-mobile-drawer-header {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ot-sidebar-border) !important;
}
.ot-mobile-user-card {
  background: var(--ot-sidebar-hover-bg);
  border: 1px solid var(--ot-sidebar-border);
}

/* RTL Global Rules */
html[dir=rtl], html[dir=rtl] body { direction: rtl; text-align: right; }
[dir=rtl] .navbar-vertical .navbar-nav .nav-link { text-align: right; }
[dir=rtl] .navbar-vertical .navbar-nav .nav-link i { margin-left: .75rem; margin-right: 0; }
[dir=rtl] .card, [dir=rtl] .card-body, [dir=rtl] .card-header, [dir=rtl] .card-footer { text-align: right; }
[dir=rtl] .table th, [dir=rtl] .table td { text-align: right; }
[dir=rtl] .media .mr-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir=rtl] p, [dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3, [dir=rtl] h4, [dir=rtl] h5, [dir=rtl] h6 { text-align: right; }
[dir=rtl] ul, [dir=rtl] ol { padding-right: 1.5rem; padding-left: 0; margin-right: 0; text-align: right; }
[dir=rtl] .text-left { text-align: right !important; }
[dir=rtl] .text-right { text-align: left !important; }
[dir=rtl] .form-control, [dir=rtl] .custom-select { text-align: right; direction: rtl; }
[dir=rtl] input[type="email"], [dir=rtl] input[type="password"], [dir=rtl] input[type="url"], [dir=rtl] input[type="datetime-local"] { direction: ltr; text-align: left; }
[dir=rtl] .col-form-label { text-align: right !important; }
[dir=rtl] .dropdown-menu { text-align: right; }
[dir=rtl] .dropdown-menu-right { right: auto !important; left: 0 !important; }
[dir=rtl] .modal-header .close { margin: -1rem auto -1rem -1rem; }

/* ==========================================================================
   Main Content Layout - 100% Full Width, Zero-Margin Guarantee
   ========================================================================== */
.main-content,
[dir=rtl] .main-content,
[dir=ltr] .main-content,
.navbar-vertical + .main-content,
.navbar-vertical + * + .main-content,
[dir=rtl] .navbar-vertical.fixed-right + .main-content,
[dir=ltr] .navbar-vertical.fixed-left + .main-content,
[dir=rtl] .navbar-vertical.fixed-right + .ot-sidebar-backdrop + .main-content,
[dir=ltr] .navbar-vertical.fixed-left + .ot-sidebar-backdrop + .main-content {
  margin-right: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* ==========================================================================
   Unified Off-Canvas Sidebar Drawer (Desktop & Mobile)
   ========================================================================== */
.navbar-vertical,
#sidenav-main {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: 310px !important;
  max-width: 86vw !important;
  z-index: 1060 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 0 !important;
  background: var(--ot-sidebar-bg) !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45) !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s ease !important;
}

/* RTL: Drawer slides from right (when closed) */
body:not(.sidebar-open) .navbar-vertical,
body:not(.sidebar-open) #sidenav-main {
  visibility: hidden !important;
  pointer-events: none !important;
}
[dir=rtl] body:not(.sidebar-open) .navbar-vertical,
[dir=rtl] body:not(.sidebar-open) #sidenav-main {
  right: 0 !important;
  left: auto !important;
  border-left: 1px solid var(--ot-sidebar-border) !important;
  border-right: none !important;
  transform: translateX(105%) !important;
}

/* LTR: Drawer slides from left (when closed) */
[dir=ltr] body:not(.sidebar-open) .navbar-vertical,
[dir=ltr] body:not(.sidebar-open) #sidenav-main {
  left: 0 !important;
  right: auto !important;
  border-right: 1px solid var(--ot-sidebar-border) !important;
  border-left: none !important;
  transform: translateX(-105%) !important;
}

/* Open State (when sidebar-open) */
body.sidebar-open .navbar-vertical,
body.sidebar-open #sidenav-main,
html.sidebar-open .navbar-vertical,
html.sidebar-open #sidenav-main {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Backdrop */
.ot-sidebar-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(3, 13, 20, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 1055 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

body.sidebar-open .ot-sidebar-backdrop,
html.sidebar-open .ot-sidebar-backdrop {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Lock horizontal overflow */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Drawer Links Styling (Dark / Light Theme) */
.navbar-vertical .navbar-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 4px 0 !important;
}

.navbar-vertical .navbar-nav .nav-link {
  padding: 10px 14px !important;
  margin: 2px 0 !important;
  border-radius: 12px !important;
  font-size: 0.94rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* In Dark Mode */
.ot-dark .navbar-vertical .navbar-nav .nav-link {
  color: #e2f1f0 !important;
  background: transparent !important;
}
.ot-dark .navbar-vertical .navbar-nav .nav-link:hover,
.ot-dark .navbar-vertical .navbar-nav .nav-link:focus {
  color: #5eead4 !important;
  background: rgba(94, 234, 212, 0.12) !important;
  transform: translateX(-4px) !important;
}
[dir=ltr] .ot-dark .navbar-vertical .navbar-nav .nav-link:hover {
  transform: translateX(4px) !important;
}
.ot-dark .navbar-vertical .navbar-nav .nav-link.active {
  color: #5eead4 !important;
  background: rgba(94, 234, 212, 0.18) !important;
  font-weight: 700 !important;
}

/* In Light Mode */
body:not(.ot-dark) .navbar-vertical .navbar-nav .nav-link {
  color: #0f2e3d !important;
  background: transparent !important;
}
body:not(.ot-dark) .navbar-vertical .navbar-nav .nav-link:hover,
body:not(.ot-dark) .navbar-vertical .navbar-nav .nav-link:focus {
  color: #087f81 !important;
  background: rgba(8, 127, 129, 0.08) !important;
  transform: translateX(-4px) !important;
}
[dir=ltr] body:not(.ot-dark) .navbar-vertical .navbar-nav .nav-link:hover {
  transform: translateX(4px) !important;
}
body:not(.ot-dark) .navbar-vertical .navbar-nav .nav-link.active {
  color: #087f81 !important;
  background: rgba(8, 127, 129, 0.14) !important;
  font-weight: 700 !important;
}

/* Mobile top navbar compact sizing */
@media (max-width: 767.98px) {
  .ot-top-navbar {
    min-height: 56px !important;
    padding: 6px 12px !important;
  }
  .ot-home {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Dark Mode Overrides for Core Argon Elements */
.ot-dark { background: #081a22; color: #e6f1f2; }
.ot-dark .card, .ot-dark .card-header, .ot-dark .bg-white, .ot-dark .bg-secondary {
  background: #0f2832 !important;
  color: #e6f1f2 !important;
  border-color: #2b4954 !important;
}

/* Challenge colors must remain visible in both themes. */
#challengeGrid .ot-challenge-button {
  background: transparent !important;
  border-radius: 14px !important;
  overflow: hidden;
  text-align: inherit;
}
#challengeGrid .ot-challenge-card,
.ot-dark #challengeGrid .ot-challenge-card {
  background: var(--challenge-bg) !important;
  border: 1px solid var(--challenge-border) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}
#challengeGrid .ot-challenge-card h4,
.ot-dark #challengeGrid .ot-challenge-card h4 {
  color: var(--challenge-title) !important;
}
.ot-dark .card h1, .ot-dark .card h2, .ot-dark .card h3, .ot-dark .card h4, .ot-dark .table, .ot-dark .table thead th, .ot-dark .text-muted {
  color: #dcebed !important;
}
.ot-dark .form-control, .ot-dark .custom-select {
  background: #0b222c !important;
  color: #f0f8f7 !important;
  border-color: #43616b !important;
}
.ot-dark .form-control::placeholder { color: #aec1c6; }
.ot-dark .table td, .ot-dark .table th { border-color: #34525b; }
.ot-dark a:not(.btn):not(.nav-link) { color: #8de1d6; }
.ot-dark .alert-info { background: #123c48; border-color: #347985; color: #e3f7f6; }

/* Keep text and surfaces paired throughout the dark theme. */
.ot-dark .bg-light,
.ot-dark .card-footer,
.ot-dark .modal-header,
.ot-dark .modal-footer {
  background: #153642 !important;
  color: #eaf4f3 !important;
  border-color: #3b606b !important;
}
.ot-dark .modal-content,
.ot-dark .modal-body,
.ot-dark .dropdown-menu,
.ot-dark .list-group-item,
.ot-dark .page-link {
  background: #102b36 !important;
  color: #eaf4f3 !important;
  border-color: #3b606b !important;
}
.ot-dark .modal-content h1,
.ot-dark .modal-content h2,
.ot-dark .modal-content h3,
.ot-dark .modal-content h4,
.ot-dark .modal-content h5,
.ot-dark .modal-content h6,
.ot-dark .card h5,
.ot-dark .card h6 {
  color: #eaf4f3 !important;
}
.ot-dark .text-dark,
.ot-dark .text-body,
.ot-dark .form-control-label,
.ot-dark label {
  color: #eaf4f3 !important;
}
.ot-dark .text-muted { color: #b9d0d3 !important; }
.ot-dark .text-primary { color: #aec5ff !important; }
.ot-dark .text-secondary { color: #cbdde0 !important; }
.ot-dark .input-group-text {
  background: #193b46 !important;
  color: #eaf4f3 !important;
  border-color: #43616b !important;
}
.ot-dark .close { color: #eaf4f3 !important; opacity: .9; text-shadow: none; }
.ot-dark hr,
.ot-dark .border,
.ot-dark .border-top,
.ot-dark .border-bottom,
.ot-dark .border-left,
.ot-dark .border-right {
  border-color: #3b606b !important;
}
.ot-dark .table-responsive,
.ot-dark .table,
.ot-dark .table .table {
  background: #102b36 !important;
  color: #eaf4f3 !important;
}
.ot-dark .table thead th,
.ot-dark .table .thead-light th,
.ot-dark .table .thead-dark th {
  background: #1a3c48 !important;
  color: #eaf4f3 !important;
  border-color: #3b606b !important;
}
.ot-dark .table tbody tr,
.ot-dark .table-striped tbody tr:nth-of-type(odd) {
  background: #102b36 !important;
  color: #eaf4f3 !important;
}
.ot-dark .table-hover tbody tr:hover { background: #214653 !important; }
.ot-dark .table td,
.ot-dark .table th {
  color: #eaf4f3 !important;
  border-color: #34525b !important;
}
.ot-dark .table .text-muted { color: #b9d0d3 !important; }
.ot-dark .badge-primary { background: #314b85 !important; color: #f0f4ff !important; }
.ot-dark .badge-info { background: #176176 !important; color: #edfbff !important; }
.ot-dark .badge-warning { background: #76501f !important; color: #fff3d4 !important; }
.ot-dark .badge-success { background: #1b6747 !important; color: #e2ffec !important; }
.ot-dark .badge-danger { background: #79313e !important; color: #ffe8ed !important; }
.ot-dark .btn-outline-primary { color: #bed0ff !important; border-color: #93adff !important; }
.ot-dark .btn-outline-danger { color: #ffb4c0 !important; border-color: #f78c9c !important; }
.ot-dark .btn-outline-info { color: #a2eff6 !important; border-color: #70dae6 !important; }
.ot-dark .btn-outline-success { color: #a9f0c9 !important; border-color: #79dba9 !important; }
.ot-dark .btn-outline-primary:hover { background: #314b85 !important; color: #ffffff !important; }
.ot-dark .btn-outline-danger:hover { background: #79313e !important; color: #ffffff !important; }
.ot-dark .nav-pills .nav-link { color: #cbdde0 !important; }
.ot-dark .nav-pills .nav-link.active {
  background: #176e75 !important;
  color: #ffffff !important;
}
.ot-dark .dropdown-item { color: #eaf4f3 !important; }
.ot-dark .dropdown-item:hover,
.ot-dark .dropdown-item:focus,
.ot-dark .page-link:hover {
  background: #214653 !important;
  color: #ffffff !important;
}
.ot-dark .alert-secondary { background: #193b46 !important; color: #eaf4f3 !important; border-color: #3b606b !important; }
.ot-dark .alert-success { background: #194c3c !important; color: #e9fff0 !important; border-color: #378365 !important; }
.ot-dark .alert-danger { background: #602d3a !important; color: #fff0f2 !important; border-color: #a45a6a !important; }
.ot-dark .alert-warning { background: #634923 !important; color: #fff5dc !important; border-color: #a37d3f !important; }
.ot-dark pre,
.ot-dark code { color: #c8f4e9; }

/* Responsive Grid Adjustments */
@media (max-width: 991.98px) {
  .ot-hero { grid-template-columns: 1fr; }
  .ot-partners { grid-template-columns: 1fr; }
  .ot-footer-top { grid-template-columns: 1fr; gap: 32px; }
}

.ot-remember { display: inline-flex; align-items: center; gap: .55rem; margin: 0; cursor: pointer; white-space: nowrap; }
.ot-remember input[type=checkbox] { position: static; margin: 0; flex: none; }
.ot-remember span { display: inline-block; line-height: 1.4; }
