/* ==========================================================================
   Yellow Line Tracking Portal — Senabil-branded stylesheet
   Inspired by https://www.senabil-pal.org/ar
   ========================================================================== */

:root {
  /* Senabil brand */
  --color-senabil-blue: #2175d1;
  --color-senabil-blue-dark: #1a5fad;
  --color-senabil-blue-light: #e8f2fc;
  --color-senabil-green: #388e3c;
  --color-senabil-green-light: #e8f5e9;
  --color-hero-green-top: #199b53;
  --color-hero-green-mid: #118a4a;
  --color-hero-green-bottom: #0c723d;
  --hero-green-gradient: linear-gradient(
    180deg,
    var(--color-hero-green-top) 0%,
    var(--color-hero-green-mid) 52%,
    var(--color-hero-green-bottom) 100%
  );

  /* Yellow Line accent */
  --color-yellow: #ffc107;
  --color-yellow-dark: #e6ac00;
  --color-yellow-light: #fff8e1;
  --color-yellow-glow: rgba(255, 193, 7, 0.35);

  /* Neutrals */
  --color-bg: #f5f7fa;
  --color-bg-white: #ffffff;
  --color-bg-muted: #eef1f6;
  --color-text: #1a2332;
  --color-text-secondary: #5a6578;
  --color-text-muted: #8b95a5;
  --color-border: #e2e8f0;
  --color-border-light: #edf0f5;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 35, 50, 0.12);
  --shadow-card: 0 2px 12px rgba(33, 117, 209, 0.08);

  /* Layout */
  --header-height: 84px;
  --panel-width: 360px;
  --map-min-height: calc(100vh - 260px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

strong {
  color: var(--color-senabil-blue-dark);
  font-weight: 700;
}

.highlight-yellow {
  color: var(--color-yellow-dark);
  position: relative;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    var(--color-hero-green-top) 0%,
    var(--color-hero-green-mid) 100%
  );
  border-bottom: none;
  box-shadow: none;
  color: #fff;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  min-height: var(--header-height);
  gap: 1rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
  overflow: visible;
  flex-shrink: 0;
}

.navbar__brand:hover {
  opacity: 0.88;
}

.navbar__logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
}

.navbar__brand-text--with-logo {
  display: flex;
}

.navbar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.navbar__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.navbar__subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: normal;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.lang-switcher__btn {
  padding: 0.35rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-switcher__btn:hover {
  color: #fff;
}

.lang-switcher__btn.is-active {
  color: var(--color-hero-green-mid);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

[dir="ltr"] .btn-advance__icon svg {
  transform: scaleX(-1);
}

[dir="ltr"] .camp-list__btn {
  text-align: left;
}

[dir="ltr"] .meta-list__item,
[dir="ltr"] .camp-stats__grid {
  text-align: left;
}

.navbar__link {
  display: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.navbar__link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.navbar__badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  background: var(--color-yellow-light);
  border: 1px solid rgba(255, 193, 7, 0.45);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8a6d00;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 0 6px var(--color-yellow-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.88); }
}

/* --------------------------------------------------------------------------
   Page Hero
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(
    180deg,
    var(--color-hero-green-mid) 0%,
    var(--color-hero-green-bottom) 100%
  );
  color: #fff;
  overflow: hidden;
  position: relative;
}

.page-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page-hero__tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(4px);
}

.page-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.page-hero .highlight-yellow {
  color: #ffeb3b;
}

.page-hero__desc {
  max-width: 640px;
  margin-inline: auto;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.page-hero__accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-hero__circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.page-hero__circle--1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
  left: auto;
}

.page-hero__circle--2 {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Main Layout
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr var(--panel-width);
  gap: 1rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
  align-items: stretch;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.section-label h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.section-label__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-senabil-green);
}

/* --------------------------------------------------------------------------
   Map Section
   -------------------------------------------------------------------------- */
.map-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.map-legend {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.map-legend--overlay {
  position: absolute;
  z-index: 8;
  inset-inline-start: 0.75rem;
  top: 0.75rem;
  margin: 0;
  max-width: min(320px, calc(100% - 1.5rem));
  padding: 0.65rem 0.85rem 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.map-legend--overlay.is-collapsed .map-legend__body {
  display: none;
}

.map-legend--overlay.is-collapsed .map-legend__collapse svg {
  transform: rotate(180deg);
}

.map-legend--overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.map-legend__collapse {
  position: absolute;
  top: 0.45rem;
  inset-inline-end: 0.45rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.map-legend__collapse:hover {
  background: var(--color-border);
}

.map-legend__collapse svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.map-legend--overlay .map-legend__title {
  margin-bottom: 0.5rem;
  padding-inline-end: 2rem;
}

.map-legend--overlay .map-legend__list {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.map-toolbar {
  position: absolute;
  z-index: 9;
  inset-inline-end: 0.75rem;
  top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.map-toolbar__btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.map-toolbar__btn:hover {
  background: var(--color-senabil-blue-light);
  border-color: rgba(33, 117, 209, 0.3);
  color: var(--color-senabil-blue-dark);
}

.map-toolbar__btn[aria-pressed='false'] {
  opacity: 0.72;
}

.map-toolbar__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.map-toolbar__label {
  white-space: nowrap;
}

.map-onboarding {
  position: absolute;
  z-index: 11;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(26, 95, 173, 0.96) 0%, rgba(33, 117, 209, 0.94) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: map-onboarding-in 0.45s ease;
}

.map-onboarding[hidden] {
  display: none;
}

.map-onboarding__title {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.map-onboarding__text {
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.map-onboarding__text strong {
  color: var(--color-yellow);
}

.map-onboarding__dismiss {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-senabil-blue-dark);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.map-onboarding__dismiss:hover {
  transform: scale(1.03);
}

@keyframes map-onboarding-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.map-camp-drawer {
  position: absolute;
  z-index: 12;
  inset-inline: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 28px rgba(26, 35, 50, 0.12);
  transform: translateY(calc(100% - 2.25rem));
  transition: transform var(--transition-slow);
}

.map-camp-drawer.is-open {
  transform: translateY(0);
}

.map-camp-drawer[hidden] {
  display: none;
}

.map-camp-drawer__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 1rem 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.map-camp-drawer__grip {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-border);
}

.map-camp-drawer__body {
  padding: 0 1rem 1rem;
}

.map-camp-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.map-camp-drawer__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-senabil-blue-dark);
  line-height: 1.35;
}

.map-camp-drawer__district {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-bottom: 0.55rem;
}

.map-camp-drawer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.map-camp-drawer__meta div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  font-size: 0.74rem;
}

.map-camp-drawer__meta dt {
  color: var(--color-text-muted);
  font-weight: 600;
}

.map-camp-drawer__meta dd {
  color: var(--color-text);
  font-weight: 700;
}

.map-camp-drawer__details {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(33, 117, 209, 0.25);
  border-radius: var(--radius-sm);
  background: var(--color-senabil-blue-light);
  color: var(--color-senabil-blue-dark);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.map-camp-drawer__details:hover {
  background: #d9ebfc;
}

.map-container--custom-active .ocha-map-stage {
  animation: map-fade-in 0.5s ease;
}

.map-container.is-fullscreen {
  border-radius: 0;
  min-height: 100vh;
}

@keyframes map-fade-in {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.workflow-steps {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.workflow-steps__item {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.workflow-steps__item.is-active {
  color: var(--color-senabil-blue-dark);
  background: var(--color-senabil-blue-light);
  border-color: rgba(33, 117, 209, 0.25);
}

.workflow-steps__item.is-done {
  color: var(--color-senabil-green);
  background: var(--color-senabil-green-light);
  border-color: rgba(56, 142, 60, 0.25);
}

.camp-search {
  display: block;
  margin-bottom: 0.55rem;
}

.camp-search__input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  background: var(--color-bg-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.camp-search__input:focus {
  outline: none;
  border-color: var(--color-senabil-blue);
  box-shadow: 0 0 0 3px rgba(33, 117, 209, 0.15);
}

.camp-list__empty {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.camp-list__item.is-filtered-out {
  display: none;
}

.leaflet-map .leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
}

.leaflet-map .leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 18px !important;
  color: var(--color-text) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(6px);
  border: 1px solid var(--color-border) !important;
}

.leaflet-map .leaflet-control-zoom a:hover {
  background: var(--color-senabil-blue-light) !important;
  color: var(--color-senabil-blue-dark) !important;
}

[dir="rtl"] .leaflet-map .leaflet-control-zoom {
  margin-left: 0;
  margin-right: 10px;
}

[dir="rtl"] .leaflet-map .leaflet-bottom.leaflet-right {
  right: auto;
  left: 0;
}

[dir="rtl"] .leaflet-map .leaflet-top.leaflet-left {
  left: auto;
  right: 0;
}

.map-legend__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.map-legend__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.map-legend__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.map-legend__swatch {
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.map-legend__swatch--yellow {
  background: linear-gradient(180deg, #ffe566 0%, #ffd600 100%);
  opacity: 0.85;
}

.map-legend__swatch--red {
  background: #d32f2f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(255, 61, 0, 0.2);
}

.map-legend__swatch--orange {
  background: #f57c00;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(245, 124, 0, 0.2);
}

.map-legend__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.map-legend__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
}

.map-legend__desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.map-container {
  position: relative;
  flex: 1;
  min-height: var(--map-min-height);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: opacity var(--transition-slow);
}

.map-container.is-loading {
  opacity: 0.75;
}

.map-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  transition: opacity var(--transition-slow), filter var(--transition-slow);
}

.map-frame.is-hidden {
  opacity: 0;
  filter: blur(3px);
}

.leaflet-map,
.ocha-map-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  z-index: 1;
}

.google-map-div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-attribution {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* Yellow Line — Salah al-Din Street overlay */
.ocha-yellow-line-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

.ocha-yellow-line__glow {
  fill: none;
  stroke: rgba(255, 193, 7, 0.45);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.ocha-yellow-line__glow--animate {
  animation: yellow-line-glow-in 1.6s ease forwards;
}

.ocha-yellow-line__path {
  fill: none;
  stroke: #ffc107;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.85));
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
}

.ocha-yellow-line__path--animate {
  animation: draw-yellow-line 2s ease forwards;
}

@keyframes draw-yellow-line {
  to { stroke-dashoffset: 0; }
}

@keyframes yellow-line-glow-in {
  0% { opacity: 0; }
  40% { opacity: 0; }
  100% { opacity: 1; }
}

.ocha-yellow-line-label--bright {
  background: rgba(255, 61, 0, 0.95);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 145, 0, 0.85);
}

.ocha-yellow-line-label--advance {
  background: rgba(255, 193, 7, 0.97);
  color: #3d3200;
  font-size: 0.78rem;
  border: 2px solid #F9A825;
  box-shadow:
    0 0 12px rgba(255, 235, 59, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.ocha-yellow-line__path--advanced {
  stroke: #ff1744 !important;
  filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.9));
}

.ocha-yellow-line__glow--advanced {
  stroke: rgba(255, 23, 68, 0.55) !important;
}

.ocha-yellow-line-label--advanced {
  background: rgba(255, 23, 68, 0.95);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255, 23, 68, 0.55);
}

.map-city-label-overlay {
  position: absolute;
  z-index: 7;
  transform: translate(-50%, -50%);
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2332;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.map-city-label-wrapper {
  background: none !important;
  border: none !important;
}

.map-city-label {
  display: inline-block;
  transform: translate(-50%, -50%);
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2332;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(26, 35, 50, 0.12);
  pointer-events: none;
}

.ocha-yellow-line-label-wrapper {
  background: none !important;
  border: none !important;
}

.ocha-yellow-line-label-wrapper .ocha-yellow-line-label {
  position: relative;
  transform: translate(-50%, -100%);
}

.leaflet-camp-popup .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  padding: 0;
}

.leaflet-popup-pane {
  z-index: 800 !important;
}

/* Deir al-Balah, Bureij & Khan Yunis: zones and lines behind camp markers */
.leaflet-ochaYellowZone-pane,
.leaflet-advanceStrip-pane,
.leaflet-centralLinesBehind-pane,
.leaflet-ochaMidline-pane {
  pointer-events: none;
}

.leaflet-campMarker-pane {
  pointer-events: auto;
}

.leaflet-camp-popup .leaflet-popup-content {
  margin: 0;
}

.leaflet-camp-popup .leaflet-popup-close-button {
  left: 0.45rem;
  right: auto;
}

.ocha-yellow-line-label {
  position: absolute;
  z-index: 8;
  transform: translate(-50%, -100%);
  padding: 0.35rem 0.65rem;
  background: rgba(255, 193, 7, 0.95);
  color: #3d3200;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(255, 193, 7, 0.5);
  pointer-events: none;
}

.map-popup {
  padding: 1rem;
}

.map-popup__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-senabil-blue-dark);
  margin-bottom: 0.35rem;
}

.map-popup__badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.map-popup__badge--danger-red-pulse {
  background: #ffebee;
  color: #c62828;
}

.map-popup__badge--warning-amber {
  background: #fff3e0;
  color: #e65100;
}

.map-popup__badge--safe-green-shelter {
  background: var(--color-senabil-green-light);
  color: var(--color-senabil-green);
}

.map-popup__district {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 0.65rem;
}

.map-popup__meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.map-popup__meta div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.map-popup__meta dt {
  color: var(--color-text-muted);
  font-weight: 600;
}

.map-popup__meta dd {
  color: var(--color-text);
  font-weight: 600;
}

.map-popup__meta a {
  color: var(--color-senabil-blue);
  text-decoration: none;
}

.map-popup__notes {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--color-border-light);
  padding-top: 0.55rem;
}

.map-popup__note {
  font-size: 0.72rem;
  margin-bottom: 0.45rem;
}

.map-popup__note--warn {
  color: #e65100;
}

/* Yellow Line interventions table (Khan Yunis camps) */
.camp-interventions {
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-border-light);
}

.camp-interventions__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-senabil-blue-dark);
  margin-bottom: 0.45rem;
}

.camp-interventions__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.camp-interventions__table {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  font-size: 0.68rem;
  line-height: 1.45;
}

.camp-interventions__table th,
.camp-interventions__table td {
  border: 1px solid var(--color-border-light);
  padding: 0.35rem 0.4rem;
  vertical-align: top;
  text-align: start;
}

.camp-interventions__table th {
  background: var(--color-senabil-blue-light);
  color: var(--color-senabil-blue-dark);
  font-weight: 700;
  white-space: nowrap;
}

.camp-interventions__table td:first-child {
  min-width: 9rem;
}

.camp-stats__interventions,
.map-camp-drawer__interventions {
  margin-top: 0.35rem;
}

.map-camp-drawer__interventions .camp-interventions__table {
  min-width: 22rem;
  font-size: 0.64rem;
}

.leaflet-camp-popup--wide .leaflet-popup-content-wrapper {
  max-width: 520px;
}

/* Custom camp markers */
.camp-marker-wrapper {
  background: transparent !important;
  border: none !important;
}

.camp-marker {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camp-marker__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--marker-color, #ff9800);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
}

.camp-marker__ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid var(--marker-color, #ff9800);
  opacity: 0;
}

.camp-marker--pulse .camp-marker__ring {
  animation: marker-pulse 1.6s ease-out infinite;
}

@keyframes marker-pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  animation: fade-in var(--transition-base) ease;
}

.map-loading[hidden] {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.map-loading__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-senabil-blue);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-senabil-blue);
  border-right-color: var(--color-yellow);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Control Panel
   -------------------------------------------------------------------------- */
.control-panel {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.control-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem;
  height: 100%;
  max-height: calc(100vh - var(--header-height) - 1.5rem);
  overflow-y: auto;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.control-panel__header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-yellow-light);
}

.control-panel__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-senabil-blue-dark);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--color-senabil-green-light);
  border: 1px solid rgba(56, 142, 60, 0.25);
  border-radius: var(--radius-sm);
  width: fit-content;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.status-indicator.is-updating {
  background: var(--color-yellow-light);
  border-color: rgba(255, 193, 7, 0.45);
}

.status-indicator.is-updating .status-indicator__dot {
  background: var(--color-yellow);
  animation: pulse-dot 0.8s ease-in-out infinite;
}

.status-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-senabil-green);
  flex-shrink: 0;
}

.status-indicator__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.control-panel__description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.meta-list {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.meta-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.meta-list__item:last-child {
  border-bottom: none;
}

.meta-list__item dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.meta-list__item dd {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.control-panel__footer {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.btn-advance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
  color: #3d3200;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    opacity var(--transition-fast);
  box-shadow: 0 4px 16px var(--color-yellow-glow);
  position: relative;
  overflow: hidden;
}

.btn-advance::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 55%);
  pointer-events: none;
}

.btn-advance:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--color-yellow-glow);
}

.btn-advance:active:not(:disabled) {
  transform: translateY(0);
}

.btn-advance:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-advance__icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: rgba(61, 50, 0, 0.55);
}

.btn-advance__icon svg {
  width: 20px;
  height: 20px;
}

.btn-advance__text {
  font-size: 1.1rem;
  font-weight: 800;
}

.btn-advance__sub {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.control-panel__hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   District Selector & Camp List
   -------------------------------------------------------------------------- */
.selector-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.selector-block__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-senabil-blue-dark);
}

.selector-block__select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232175d1' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.85rem center;
  padding-left: 2rem;
}

.selector-block__select:focus {
  outline: none;
  border-color: var(--color-senabil-blue);
  box-shadow: 0 0 0 3px rgba(33, 117, 209, 0.15);
}

.selector-block__hint {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.camp-list-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
}

.camp-list-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.camp-list-panel__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}

.camp-list-panel__count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-senabil-blue);
  background: var(--color-senabil-blue-light);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.camp-list {
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 2px;
}

.camp-list__btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.camp-list__btn:hover {
  background: var(--color-senabil-blue-light);
  border-color: rgba(33, 117, 209, 0.25);
}

.camp-list__btn.is-active,
.camp-list__btn[aria-pressed='true'] {
  background: var(--color-yellow-light);
  border-color: rgba(255, 193, 7, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.3);
}

.camp-list__marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.camp-list__marker--danger-red-pulse { background: #d32f2f; box-shadow: 0 0 6px rgba(211, 47, 47, 0.5); }
.camp-list__marker--warning-amber { background: #ff9800; }
.camp-list__marker--safe-green-shelter { background: var(--color-senabil-green); }

.camp-list__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.camp-list__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.camp-list__rep {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.camp-list__badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.camp-list__badge--danger-red-pulse { background: #ffebee; color: #c62828; }
.camp-list__badge--warning-amber { background: #fff3e0; color: #e65100; }
.camp-list__badge--safe-green-shelter { background: var(--color-senabil-green-light); color: var(--color-senabil-green); }

/* Live stats dashboard */
.camp-stats {
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--color-senabil-blue-light) 0%, var(--color-bg-white) 100%);
  border: 1px solid rgba(33, 117, 209, 0.2);
  border-radius: var(--radius-md);
}

.camp-stats__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.camp-stats__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-senabil-blue-dark);
  line-height: 1.35;
}

.camp-stats__district {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.65rem;
}

.distance-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.distance-badge--danger-red-pulse { background: #ffcdd2; color: #b71c1c; }
.distance-badge--warning-amber { background: #ffe0b2; color: #e65100; }
.distance-badge--safe-green-shelter { background: #c8e6c9; color: #2e7d32; }

.camp-stats__grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.camp-stats__grid div {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0.35rem;
  font-size: 0.76rem;
}

.camp-stats__grid dt {
  color: var(--color-text-muted);
  font-weight: 600;
}

.camp-stats__grid dd {
  color: var(--color-text);
  font-weight: 700;
}

.camp-stats__grid a {
  color: var(--color-senabil-blue);
  text-decoration: none;
  word-break: break-all;
}

.camp-stats__notes {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-border);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: linear-gradient(
    180deg,
    var(--color-hero-green-top) 0%,
    var(--color-hero-green-mid) 100%
  );
  color: rgba(255, 255, 255, 0.88);
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(140px, 36vw);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-yellow) 45%, transparent);
  border-radius: 2px;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.site-footer__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.site-footer__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.15rem;
  letter-spacing: 0.02em;
}

.site-footer__tagline {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  max-width: 42rem;
  padding-inline: 0.25rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.2rem 0.85rem;
  transition: color var(--transition-fast);
}

.site-footer__links a:not(:last-child) {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__links a:hover {
  color: var(--color-yellow);
}

.site-footer__copy {
  font-size: 0.74rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: none;
  text-align: center;
  padding-inline: 0.25rem;
}

@media (min-width: 520px) {
  .site-footer {
    padding-inline: 1.5rem;
  }

  .site-footer__brand {
    flex-direction: row;
    justify-content: center;
    text-align: start;
    gap: 0.75rem;
  }
}

@media (min-width: 768px) {
  .site-footer {
    padding: 1.15rem 1.5rem 0.9rem;
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 2rem;
    row-gap: 0.45rem;
    text-align: start;
  }

  .site-footer__brand {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }

  .site-footer__links {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .site-footer__copy {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
    padding-top: 0.45rem;
  }
}

@media (min-width: 1200px) {
  .site-footer {
    padding-inline: max(1.5rem, calc((100% - 1400px) / 2 + 1.25rem));
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .navbar__link {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .main-content {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .control-panel {
    position: static;
  }

  .map-legend--overlay .map-legend__list {
    grid-template-columns: 1fr;
  }

  .map-toolbar__label {
    display: none;
  }

  .map-toolbar__btn {
    padding: 0.4rem;
    justify-content: center;
  }

  .map-container {
    min-height: 58vh;
  }

  .map-camp-drawer {
    display: block;
  }
}

@media (min-width: 961px) {
  .map-camp-drawer {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .navbar__logo {
    height: 54px;
    width: auto;
  }

  .navbar__subtitle {
    font-size: 0.68rem;
    max-width: 11rem;
  }

  .navbar__title {
    font-size: 1.05rem;
  }

  .page-hero__inner {
    padding: 1.5rem 1rem 1.75rem;
  }

  .control-panel__inner {
    padding: 1.15rem;
  }
}

/* --------------------------------------------------------------------------
   Access Gate — واجهة إدخال الكود
   -------------------------------------------------------------------------- */
body.is-locked {
  overflow: hidden;
}

.site-content[hidden] {
  display: none !important;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 193, 7, 0.12) 0%, transparent 55%),
    linear-gradient(
      165deg,
      var(--color-hero-green-top) 0%,
      var(--color-hero-green-mid) 42%,
      #0a5f34 100%
    );
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.access-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.access-gate__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.access-gate__circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.access-gate__circle--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -12%;
  left: -8%;
}

.access-gate__circle--2 {
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  bottom: -10%;
  right: -6%;
  background: rgba(255, 193, 7, 0.08);
}

.access-gate__card {
  position: relative;
  width: min(100%, 420px);
  padding: clamp(1.75rem, 5vw, 2.5rem);
  padding-top: clamp(2.5rem, 6vw, 3rem);
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  box-shadow:
    0 24px 48px rgba(12, 60, 40, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  text-align: center;
  animation: accessGateIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes accessGateIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.access-gate__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0;
  background: transparent;
}

.access-gate__logo {
  display: block;
  width: min(100%, 200px);
  height: auto;
  max-height: clamp(68px, 16vw, 96px);
  object-fit: contain;
  object-position: center;
}

.access-gate__title {
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.access-gate__title .highlight-yellow {
  color: var(--color-yellow-dark);
}

.access-gate__desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.access-gate__form {
  text-align: start;
}

.lang-switcher--on-card {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 3;
  background: var(--color-bg-muted);
  border-color: var(--color-border);
}

.lang-switcher--on-card .lang-switcher__btn {
  color: var(--color-text-secondary);
}

.lang-switcher--on-card .lang-switcher__btn:hover {
  color: var(--color-text);
}

.lang-switcher--on-card .lang-switcher__btn.is-active {
  color: var(--color-hero-green-mid);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.access-gate__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.access-gate__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-muted);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  direction: ltr;
  text-align: center;
  letter-spacing: 0.04em;
}

.access-gate__input::placeholder {
  color: var(--color-text-muted);
  letter-spacing: 0;
  direction: inherit;
}

.access-gate__input:focus {
  outline: none;
  border-color: var(--color-senabil-blue);
  background: var(--color-bg-white);
  box-shadow: 0 0 0 4px rgba(33, 117, 209, 0.15);
}

.access-gate__input--error {
  border-color: #d32f2f;
  background: #fff5f5;
}

.access-gate__input--error:focus {
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
}

.access-gate__error {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c62828;
  min-height: 1.25rem;
  text-align: center;
}

.access-gate__submit {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--color-senabil-blue) 0%,
    var(--color-senabil-blue-dark) 100%
  );
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(33, 117, 209, 0.35);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.access-gate__submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(33, 117, 209, 0.42);
  transform: translateY(-1px);
}

.access-gate__submit:active {
  transform: translateY(0);
}

.access-gate__submit:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

.access-gate__note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.access-gate__brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-senabil-green);
}

.navbar__logout {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.navbar__logout:not([hidden]) {
  display: inline-flex;
}

.navbar__logout:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.navbar__logout:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

.navbar__logout svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
