:root {
  --black: #000000;
  --surface: #0a0a0c;
  --card: #111114;
  --card-hover: #18181c;
  --border: #232329;
  --white: #ffffff;
  --muted: #a1a1aa;
  --volt: #faff00;
  --volt-tint: rgba(250, 255, 0, 0.1);
  --font-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-display: "Archivo Black", "IBM Plex Sans Arabic", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: #000000;
  color: var(--white);
  font-family: var(--font-ar);
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000000;
  color: var(--white);
  font-family: var(--font-ar);
  line-height: 1.55;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Mobile-Only App Shell */
.mobile-app-shell {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin-inline: auto;
  background: var(--black);
  position: relative;
  overflow-x: clip;
}

main,
section,
header,
footer {
  max-width: 100%;
  overflow-x: clip;
}

@media (min-width: 500px) {
  body {
    background: radial-gradient(circle at top, #131317 0%, #050506 55%);
  }
  .mobile-app-shell {
    border-inline: 1px solid #1b1b21;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  padding-inline: 16px;
}

/* Sticky Mobile Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 27px;
  display: block;
  flex-shrink: 0;
}

.brand-mark.small {
  width: 28px;
  height: 21px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--volt);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pill Buttons */
.pill-btn,
.filter-pill,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.pill-btn {
  padding: 13px 20px;
  font-size: 0.88rem;
  border: 1.5px solid transparent;
}

.pill-volt {
  background: var(--volt);
  color: var(--black);
  border-color: var(--volt);
}

.pill-volt:active,
.pill-volt:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.pill-black {
  background: var(--black);
  color: var(--volt);
  border-color: var(--black);
}

.pill-outline-light {
  background: transparent;
  color: var(--white);
  border-color: #3f3f46;
}

.pill-outline-light:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.pill-ghost {
  background: #141418;
  color: var(--white);
  border-color: #27272a;
  padding: 7px 13px;
  font-size: 0.76rem;
}

.btn-compact {
  padding: 7px 14px;
  font-size: 0.78rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  background: #141418;
  color: var(--white);
  border: 1px solid #27272a;
}

.full-width {
  width: 100%;
}

/* Mobile Drawer */
.drawer-backdrop[hidden] {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.drawer-panel {
  width: 100%;
  max-width: 460px;
  background: #0a0a0d;
  border-top: 1.5px solid var(--volt);
  padding: 20px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Hero Stadium Stage */
.hero-stage {
  position: relative;
  overflow: hidden;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--border);
}

.hero-vector-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-vector-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(250, 255, 0, 0.35);
  background: rgba(250, 255, 0, 0.08);
  color: var(--volt);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 3px;
}

.stadium-title {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 9.2vw, 2.55rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.stadium-title .line-white {
  color: var(--white);
}

.stadium-title .line-volt {
  color: var(--volt);
}

.hero-lead {
  margin: 0;
  color: #d4d4d8;
  font-size: 0.92rem;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Marquee Ticker */
.ticker-bar {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: layout paint;
  border-bottom: 1px solid var(--border);
  background: #0a0a0c;
  padding-block: 10px;
  white-space: nowrap;
  direction: ltr;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  color: var(--white);
  animation: ticker-scroll 22s linear infinite;
}

.ticker-sep {
  color: var(--volt);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section-block {
  padding-block: 32px;
}

.section-head {
  margin-bottom: 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
}

.editorial-h2 {
  margin: 4px 0 0;
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.sharp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* 2x2 Mobile Channels Grid */
.mobile-2grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.channel-tile {
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-tile:hover {
  border-color: var(--volt);
  background: var(--card-hover);
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.svg-badge {
  width: 38px;
  height: 38px;
  border-radius: 3px;
  border: 1px solid #2b2b32;
  background: #16161a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tile-arrow {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.channel-tile h3 {
  margin: 2px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tile-handle {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--volt);
  direction: ltr;
  text-align: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Inverted Volt Statement Band */
.inverted-volt-band {
  background: var(--volt);
  color: var(--black);
  padding-block: 28px;
}

.inverted-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.inverted-tag {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  background: var(--black);
  color: var(--volt);
  border-radius: 2px;
}

.inverted-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Verify Box + Pillars */
.verify-box,
.pillars-box,
.contact-info,
.contact-form-card {
  padding: 18px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.verify-box {
  margin-bottom: 12px;
}

.verify-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.verify-input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 9999px;
  border: 1.5px solid #2b2b33;
  background: #08080a;
}

.verify-input-wrap:focus-within {
  border-color: var(--volt);
}

.verify-input-wrap input {
  width: 100%;
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 0.88rem;
  direction: ltr;
  text-align: start;
}

.verify-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verify-result[hidden] {
  display: none;
}

.verify-result.is-verified {
  border: 1.5px solid var(--volt);
  background: rgba(250, 255, 0, 0.08);
}

.verify-result.is-warning {
  border: 1.5px solid #ff3b5c;
  background: rgba(255, 59, 92, 0.1);
}

.verify-res-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.verify-res-text {
  min-width: 0;
  flex: 1 1 0%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.verify-res-text strong {
  display: block;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.verify-result.is-verified .verify-res-text strong {
  color: var(--volt);
}

.verify-result.is-warning .verify-res-text strong {
  color: #ff6b81;
}

.verify-res-text p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: #e4e4e7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pillars-heading {
  margin: 4px 0 12px;
  font-size: 1.15rem;
}

.pillar-list {
  display: flex;
  flex-direction: column;
}

.pillar-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding-block: 12px;
  border-top: 1px solid var(--border);
}

.pillar-row > div {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.pillar-row:last-child {
  padding-bottom: 0;
}

.pillar-row h4 {
  margin: 0 0 3px;
  font-size: 0.9rem;
}

.pillar-row p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Mobile Filter Bar (No horizontal overflow) */
.filter-scroll {
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-pill {
  padding: 8px 15px;
  font-size: 0.78rem;
  white-space: nowrap;
  background: #141418;
  color: #d4d4d8;
  border: 1px solid #27272c;
}

.filter-pill.active {
  background: var(--volt);
  color: var(--black);
  border-color: var(--volt);
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 9px 14px;
  border-radius: 9999px;
  border: 1px solid #2a2a30;
  background: #111114;
  color: var(--muted);
  margin-bottom: 10px;
}

.search-pill:focus-within {
  border-color: var(--volt);
  color: var(--volt);
}

.search-pill input {
  width: 100%;
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 0.84rem;
}

.directory-toolbar-sub {
  margin-bottom: 10px;
}

.directory-toolbar-sub:has(#nav-back-btn[hidden]) {
  display: none;
}

html[dir="rtl"] #nav-back-btn svg {
  transform: rotate(180deg);
}

.systems-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
}

.sys-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--white);
  text-align: start;
  cursor: pointer;
}

.sys-card:hover {
  border-color: var(--volt);
  background: var(--card-hover);
}

.sys-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.sys-icon-box,
.sys-avatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #18181c;
  border: 1px solid #2b2b33;
  color: var(--volt);
}

.sys-avatar {
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--volt);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.sys-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.sys-meta {
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.sys-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sys-title-row h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.handle-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--volt-tint);
  border: 1px solid rgba(250, 255, 0, 0.4);
  color: var(--volt);
  direction: ltr;
  unicode-bidi: isolate;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  background: #1b1b21;
  border: 1px solid #30303a;
  color: #e4e4e7;
  direction: ltr;
  unicode-bidi: isolate;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sys-desc {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sys-pill {
  padding: 6px 11px;
  border-radius: 9999px;
  border: 1px solid #32323a;
  background: #17171b;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.sys-card:hover .sys-pill {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--black);
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  border: 1px dashed #2e2e36;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Contact Section */
.contact-info {
  margin-bottom: 12px;
}

.contact-cards {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.contact-card-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #0c0c0f;
}

.contact-card-link > span:last-child {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.contact-card-link:hover {
  border-color: var(--volt);
}

.contact-card-link strong {
  display: block;
  font-size: 0.85rem;
}

.contact-card-link small {
  color: var(--volt);
  font-size: 0.76rem;
  font-weight: 600;
  direction: ltr;
  display: inline-block;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #d4d4d8;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #2b2b32;
  background: #08080a;
  color: var(--white);
  padding: 11px 12px;
  font-size: 0.88rem;
  outline: none;
}

.field select option {
  background: #111114;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--volt);
}

.form-feedback {
  margin: 0;
  padding: 9px 12px;
  border-radius: 4px;
  background: rgba(250, 255, 0, 0.1);
  border: 1px solid rgba(250, 255, 0, 0.45);
  color: var(--volt);
  font-size: 0.8rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #060607;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding-block: 22px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--volt);
  direction: ltr;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
  }
}
