/* ============================================================
   NIHON GATE — v4.0
   Font: Zain (Google) · Dark/Light · AR/EN · Modern
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --c-bg:         #09090f;
  --c-surface:    #111118;
  --c-card:       #16161f;
  --c-border:     rgba(255,255,255,0.06);
  --c-border-h:   rgba(255,255,255,0.12);
  --c-text:       #ededf4;
  --c-text-2:     #8888a0;
  --c-text-3:     #44445a;
  --c-red:        #9090aa;
  --c-red-h:      #b0b0c8;
  --c-red-dim:    rgba(144,144,170,0.10);
  --c-red-glow:   rgba(144,144,170,0.18);
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --hh:    64px;
  --wrap:  1160px;
  --f:     'Zain', system-ui, sans-serif;
  --sh-card:  0 1px 2px rgba(0,0,0,.5), 0 6px 20px rgba(0,0,0,.3);
  --sh-hover: 0 4px 12px rgba(0,0,0,.6), 0 16px 40px rgba(0,0,0,.4);
}
[data-theme="light"] {
  --c-bg:        #f4f4f8;
  --c-surface:   #ffffff;
  --c-card:      #fafafc;
  --c-border:    rgba(0,0,0,0.07);
  --c-border-h:  rgba(0,0,0,0.14);
  --c-text:      #0d0d18;
  --c-text-2:    #555570;
  --c-text-3:    #aaaabc;
  --c-red:        #666680;
  --c-red-h:      #444460;
  --c-red-dim:   rgba(100,100,130,0.08);
  --c-red-glow:  rgba(100,100,130,0.14);
  --sh-card:     0 1px 2px rgba(0,0,0,.07), 0 6px 20px rgba(0,0,0,.05);
  --sh-hover:    0 4px 12px rgba(0,0,0,.1),  0 16px 40px rgba(0,0,0,.07);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  font-family: var(--f);
  font-size: 18px;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; height: auto; display: block }
button { font-family: var(--f) }

/* ── Wrap ────────────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px }

/* ── Preloader ───────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .35s, visibility .35s;
}
#preloader.out { opacity: 0; visibility: hidden; pointer-events: none }
.pl-logo {
  font-size: 1.6rem; font-weight: 800; letter-spacing: .04em;
  color: var(--c-text);
}
.pl-logo em { color: var(--c-text-2); font-style: normal }
.pl-bar {
  width: 72px; height: 2px; background: var(--c-border);
  border-radius: 2px; overflow: hidden; margin: 12px auto 0;
}
.pl-bar-fill {
  height: 100%; background: var(--c-red); border-radius: 2px;
  animation: plFill 1.1s ease-in-out infinite;
}
@keyframes plFill {
  0%   { width: 0;   margin-left: 0 }
  50%  { width: 55%; margin-left: 22% }
  100% { width: 0;   margin-left: 100% }
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--hh);
  overflow: hidden;
  background: rgba(9,9,15,.8);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-border);
  transition: border-color .3s;
}
[data-theme="light"] .site-header {
  background: rgba(244,244,248,.88);
}
.site-header.scrolled { border-bottom-color: var(--c-border-h) }
.header-row {
  display: flex; align-items: center; gap: 20px;
  height: var(--hh);
}
/* Logo */
.h-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; height: var(--hh); overflow: hidden }
.h-logo img {
  height: 36px !important;
  width: auto !important;
  max-width: 160px !important;
  max-height: 36px !important;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.h-logo-text {
  font-size: 1.15rem; font-weight: 800; letter-spacing: .05em;
  color: var(--c-text);
}
.h-logo-text em { color: var(--c-red); font-style: normal }
/* Nav */
.h-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center }
.h-nav a {
  padding: 6px 14px; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 500; color: var(--c-text-2);
  transition: color .15s, background .15s;
}
.h-nav a:hover, .h-nav a.on { color: var(--c-text); background: rgba(255,255,255,.05) }
[data-theme="light"] .h-nav a:hover,
[data-theme="light"] .h-nav a.on { background: rgba(0,0,0,.04) }
/* Actions */
.h-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0 }
.btn-lang {
  padding: 5px 12px; border-radius: var(--r-sm);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--c-red); border: 1px solid var(--c-red-dim);
  background: var(--c-red-dim); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-lang:hover { background: rgba(144,144,170,.18) }
.btn-theme {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px solid var(--c-border); background: transparent;
  color: var(--c-text-2); cursor: pointer; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.btn-theme:hover { border-color: var(--c-border-h); color: var(--c-text) }
.btn-portal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600;
  border: 1px solid var(--c-border); background: rgba(255,255,255,.04);
  color: var(--c-text); cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn-portal:hover { border-color: var(--c-border-h); background: rgba(255,255,255,.07) }
[data-theme="light"] .btn-portal { background: rgba(0,0,0,.03) }
[data-theme="light"] .btn-portal:hover { background: rgba(0,0,0,.06) }
.btn-menu {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px solid var(--c-border); background: transparent;
  color: var(--c-text-2); cursor: pointer; font-size: 1.2rem;
  display: none; align-items: center; justify-content: center;
  transition: all .15s;
}
.btn-menu:hover { border-color: var(--c-border-h); color: var(--c-text) }

/* Mobile nav */
.m-nav {
  display: none; flex-direction: column;
  position: fixed; top: var(--hh); inset: var(--hh) 0 auto 0; z-index: 899;
  background: var(--c-bg); border-bottom: 1px solid var(--c-border);
  padding: 12px 16px 20px;
}
.m-nav.open { display: flex }
.m-nav a {
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 500; color: var(--c-text-2);
  transition: all .15s;
}
.m-nav a:hover, .m-nav a.on { color: var(--c-text); background: rgba(255,255,255,.04) }
[data-theme="light"] .m-nav a:hover,
[data-theme="light"] .m-nav a.on { background: rgba(0,0,0,.04) }
.m-nav-portal {
  margin-top: 6px; display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--c-red); font-weight: 600; border: 1px solid var(--c-red-dim);
  background: var(--c-red-dim);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  border: none; transition: all .2s; font-family: var(--f);
}
.btn-primary { background: var(--c-red); color: #fff }
.btn-primary:hover { background: var(--c-red-h); transform: translateY(-1px) }
.btn-ghost {
  background: rgba(255,255,255,.05); color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: var(--c-border-h) }
[data-theme="light"] .btn-ghost { background: rgba(0,0,0,.04) }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,.08) }
.btn-sm { padding: 8px 18px; font-size: .875rem }
.btn-lg { padding: 15px 36px; font-size: 1.05rem }
.btn-dead { opacity: .4; pointer-events: none; cursor: not-allowed }
.btn i, .btn-portal i { transition: transform .2s }
.btn:hover i { transform: translateX(3px) }
[dir="rtl"] .btn:hover i { transform: translateX(-3px) }

/* ── Section base ────────────────────────────────────────────── */
.section { padding: 96px 0 }
.section-dark { background: var(--c-surface) }
.sec-head {
  text-align: center; margin-bottom: 56px;
  max-width: 620px; margin-left: auto; margin-right: auto;
}
.sec-eye {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-red); margin-bottom: 14px;
}
.sec-eye::before, .sec-eye::after {
  content: ''; display: inline-block;
  width: 18px; height: 1px; background: var(--c-red); opacity: .45;
}
.sec-title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem); font-weight: 800;
  line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em;
}
.sec-sub {
  font-size: 1.05rem; color: var(--c-text-2); margin: 0; line-height: 1.7;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 82vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 420px;
  background: radial-gradient(ellipse at center,
    rgba(144,144,170,.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .025;
  background-image:
    linear-gradient(var(--c-text) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-text) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 16px; border-radius: 100px;
  background: var(--c-red-dim); color: var(--c-red);
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  border: 1px solid rgba(144,144,170,.15); margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800;
  line-height: 1.2; margin: 0 0 20px; max-width: 720px;
}
.hero h1 .red { color: var(--c-red) }
.hero h1 .dim { color: var(--c-text-2) }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--c-text-2);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.75;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--c-text-3); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--c-text-2), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.25} 50%{opacity:1} }

/* ── PROOF BAR ───────────────────────────────────────────────── */
.proof-bar {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 0;
}
.proof-row {
  display: flex; align-items: stretch;
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
}
.proof-item {
  flex: 1; padding: 22px 24px; text-align: center;
  border-right: 1px solid var(--c-border);
}
.proof-item:last-child { border-right: none }
[dir="rtl"] .proof-item { border-right: none; border-left: 1px solid var(--c-border) }
[dir="rtl"] .proof-item:last-child { border-left: none }
.proof-num {
  font-size: 1.7rem; font-weight: 800; color: var(--c-text);
  line-height: 1; margin-bottom: 4px;
}
.proof-label { font-size: .82rem; color: var(--c-text-2) }

/* ── TICKER ──────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
}
.ticker-track {
  display: flex; gap: 48px; width: max-content;
  animation: tickerLTR 30s linear infinite;
}
[dir="rtl"] .ticker-track { animation: tickerRTL 30s linear infinite }
.ticker:hover .ticker-track { animation-play-state: paused }
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 500; color: var(--c-text-2);
  white-space: nowrap; flex-shrink: 0;
}
.ticker-item i { color: var(--c-red); font-size: .95rem; opacity: .75 }
@keyframes tickerLTR { to { transform: translateX(-50%) } }
@keyframes tickerRTL { to { transform: translateX(50%) } }

/* ── PROGRAMS (horizontal scroll) ───────────────────────────── */
.prog-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none }
.prog-scroll::-webkit-scrollbar { display: none }
.prog-row { display: flex; gap: 16px; width: max-content; padding: 4px 24px }
.prog-card {
  width: 272px; flex-shrink: 0;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.prog-card:hover {
  border-color: var(--c-border-h);
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
}
.prog-card-img {
  height: 148px; overflow: hidden;
  background: var(--c-surface); flex-shrink: 0; position: relative;
}
.prog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s }
.prog-card:hover .prog-card-img img { transform: scale(1.04) }
.prog-card-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--c-text-3);
}
.prog-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px }
.prog-sector {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--c-red);
}
.prog-title {
  font-size: .95rem; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.prog-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .77rem; color: var(--c-text-2);
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--c-border);
}
.prog-meta i { color: var(--c-red); font-size: .8rem }
.prog-badge {
  padding: 2px 9px; border-radius: 100px;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
}
.badge-open    { background: rgba(34,197,94,.1);  color: #22c55e }
.badge-soon    { background: rgba(234,179,8,.1);  color: #eab308 }
.badge-closed  { background: rgba(144,144,168,.1); color: var(--c-text-2) }

/* ── ABOUT (split) ───────────────────────────────────────────── */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.about-lhs .sec-head { text-align: left; margin-bottom: 24px; max-width: none; margin-left: 0 }
[dir="rtl"] .about-lhs .sec-head { text-align: right; margin-left: auto; margin-right: 0 }
[dir="rtl"] .about-lhs .sec-eye { flex-direction: row-reverse }
.about-lhs p { font-size: 1rem; color: var(--c-text-2); line-height: 1.8; margin-bottom: 16px }
.about-lhs p:last-of-type { margin-bottom: 28px }
.about-cards { display: flex; flex-direction: column; gap: 12px }
.about-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 20px 22px;
  transition: border-color .2s;
}
.about-card:hover { border-color: var(--c-border-h) }
.about-card-ico {
  width: 38px; height: 38px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--c-red-dim); color: var(--c-red);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.about-card h4 { font-size: .95rem; font-weight: 700; margin: 0 0 3px }
.about-card p  { font-size: .85rem; color: var(--c-text-2); margin: 0; line-height: 1.6 }

/* ── JAPAN (grid cells) ──────────────────────────────────────── */
.japan-wrap { position: relative; overflow: hidden }
.japan-word {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: clamp(8rem,18vw,16rem); font-weight: 900;
  color: var(--c-text); opacity: .015; letter-spacing: .02em;
  pointer-events: none; white-space: nowrap; user-select: none;
}
.japan-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--c-border); position: relative; z-index: 1;
}
.japan-cell {
  background: var(--c-surface); padding: 40px 32px;
  transition: background .2s;
}
.japan-cell:hover { background: var(--c-card) }
.japan-no {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  color: var(--c-red); margin-bottom: 16px; text-transform: uppercase;
}
.japan-cell h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 8px; line-height: 1.3 }
.japan-cell p  { font-size: .9rem; color: var(--c-text-2); margin: 0; line-height: 1.7 }

/* ── APPS (split) ────────────────────────────────────────────── */
.apps-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.apps-lhs .sec-head { text-align: left; margin-bottom: 20px; max-width: none; margin-left: 0 }
[dir="rtl"] .apps-lhs .sec-head { text-align: right; margin-left: auto; margin-right: 0 }
[dir="rtl"] .apps-lhs .sec-eye { flex-direction: row-reverse }
.apps-lhs p { font-size: 1rem; color: var(--c-text-2); line-height: 1.8; margin-bottom: 28px }
.store-btns { display: flex; flex-direction: column; gap: 12px; max-width: 250px }
.store-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: var(--r-md);
  background: var(--c-card); border: 1px solid var(--c-border);
  transition: all .2s;
}
.store-btn:hover { border-color: var(--c-border-h); transform: translateY(-2px) }
.store-btn i { font-size: 1.8rem; color: var(--c-text); flex-shrink: 0 }
.store-btn small { display: block; font-size: .68rem; color: var(--c-text-2); letter-spacing: .03em }
.store-btn strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.2 }
.store-btn.dead { opacity: .4; pointer-events: none }
.app-mockup { display: flex; justify-content: center; position: relative; height: 360px }
.mock-main {
  width: 200px; height: 340px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: 28px; overflow: hidden; position: absolute;
  top: 10px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-card);
}
.mock-main::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(144,144,170,.06) 0%, transparent 60%);
}
.mock-main i { font-size: 3.2rem; color: var(--c-red); position: relative; z-index: 1 }
.mock-sec {
  width: 150px; height: 240px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 22px; overflow: hidden; position: absolute;
  bottom: 0; right: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-card);
}
.mock-sec i { font-size: 2.2rem; color: var(--c-text-2) }
[dir="rtl"] .mock-sec { right: auto; left: 0 }

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-strip {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: 16px;
}
.contact-cell {
  background: var(--c-card); padding: 28px 24px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: background .2s;
}
.contact-cell:hover { background: var(--c-surface) }
.contact-ico {
  width: 38px; height: 38px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--c-red-dim); color: var(--c-red);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.contact-lbl {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-text-3); margin-bottom: 3px;
}
.contact-val { font-size: .95rem; font-weight: 500; color: var(--c-text) }
a.contact-val:hover { color: var(--c-red) }
.wa-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding: 28px 32px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.wa-bar-text h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 4px }
.wa-bar-text p  { font-size: .875rem; color: var(--c-text-2); margin: 0 }
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--r-sm);
  background: #25D366; color: #fff;
  font-size: .9rem; font-weight: 700; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn-wa:hover { background: #1da851; transform: translateY(-1px) }
.btn-wa.dead { background: var(--c-card); color: var(--c-text-2); border: 1px solid var(--c-border); pointer-events: none }

/* ── STICKY CTA ──────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 800;
  background: rgba(9,9,15,.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--c-border);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; transform: translateY(100%); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
[data-theme="light"] .sticky-cta { background: rgba(244,244,248,.92) }
.sticky-cta.on { opacity: 1; transform: translateY(0); pointer-events: auto }
.sticky-cta-txt { font-size: .88rem; color: var(--c-text-2) }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 52px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px; margin-bottom: 44px;
}
.footer-brand p { font-size: .9rem; color: var(--c-text-2); margin: 8px 0 0; line-height: 1.7 }
.footer-brand-logo { font-size: 1.1rem; font-weight: 800; letter-spacing: .04em }
.footer-brand-logo em { color: var(--c-red); font-style: normal }
.footer-social { display: flex; gap: 8px; margin-top: 16px }
.footer-social a {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  border: 1px solid var(--c-border); background: rgba(255,255,255,.03);
  color: var(--c-text-2); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.footer-social a:hover { background: var(--c-red); color: #fff; border-color: var(--c-red) }
.f-heading {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-text-3); margin: 0 0 14px;
}
.f-links { list-style: none; padding: 0; margin: 0 }
.f-links li { margin-bottom: 8px }
.f-links a { font-size: .9rem; color: var(--c-text-2); transition: color .15s }
.f-links a:hover { color: var(--c-text) }
.footer-hr { height: 1px; background: var(--c-border); margin: 0 0 18px }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--c-text-3);
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
.fi   { opacity:0; transform:translateY(20px);  transition: opacity .55s ease, transform .55s ease }
.fil  { opacity:0; transform:translateX(-22px); transition: opacity .55s ease, transform .55s ease }
.fir  { opacity:0; transform:translateX(22px);  transition: opacity .55s ease, transform .55s ease }
.fis  { opacity:0; transform:scale(.97);         transition: opacity .5s ease,  transform .5s ease }
.fi.on,.fil.on,.fir.on,.fis.on { opacity:1; transform:none }
[data-d="1"] { transition-delay: .06s }
[data-d="2"] { transition-delay: .12s }
[data-d="3"] { transition-delay: .18s }
[data-d="4"] { transition-delay: .24s }
[data-d="5"] { transition-delay: .30s }
[data-d="6"] { transition-delay: .36s }

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
  position: relative; padding: 130px 24px 60px; text-align: center; overflow: hidden;
}
.page-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(144,144,170,.04) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 {
  position: relative; z-index: 1;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  margin: 0 0 12px;
}
.page-hero p {
  position: relative; z-index: 1;
  font-size: 1.05rem; color: var(--c-text-2); max-width: 580px; margin: 0 auto;
}

/* ── PROGRAMS PAGE ───────────────────────────────────────────── */
.prog-filters {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap }
.chip {
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid var(--c-border); background: rgba(255,255,255,.04);
  color: var(--c-text-2); cursor: pointer; font-size: .85rem; font-weight: 500;
  transition: all .15s; font-family: var(--f);
}
.chip:hover { background: rgba(255,255,255,.08); color: var(--c-text) }
.chip.active { background: var(--c-red); color: #fff; border-color: var(--c-red) }
[data-theme="light"] .chip { background: rgba(0,0,0,.03) }
[data-theme="light"] .chip:hover { background: rgba(0,0,0,.07) }
.filter-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--c-border);
  border-radius: 100px; padding: 8px 18px; min-width: 220px;
  transition: border-color .15s;
}
.filter-search:focus-within { border-color: var(--c-border-h) }
[data-theme="light"] .filter-search { background: rgba(0,0,0,.03) }
.filter-search i { color: var(--c-text-2); font-size: .9rem }
.filter-input {
  background: none; border: none; outline: none;
  color: var(--c-text); font-size: .875rem; width: 100%; font-family: var(--f);
}
.filter-input::placeholder { color: var(--c-text-3) }
.prog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px }
.program-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all .2s; display: flex; flex-direction: column;
}
.program-card:hover { border-color: var(--c-border-h); transform: translateY(-3px); box-shadow: var(--sh-hover) }
.pc-img { height: 165px; overflow: hidden; background: var(--c-surface) }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s }
.program-card:hover .pc-img img { transform: scale(1.04) }
.pc-body { padding: 20px; flex: 1; display: flex; flex-direction: column }
.pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px }
.pc-sector {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--c-red); background: var(--c-red-dim); padding: 3px 10px; border-radius: 100px;
}
.pc-status { font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 100px }
.pc-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 7px; line-height: 1.3 }
.pc-desc {
  font-size: .85rem; color: var(--c-text-2); margin: 0 0 12px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px }
.pc-meta span { display: inline-flex; align-items: center; gap: 4px; font-size: .77rem; color: var(--c-text-2) }
.pc-meta i { font-size: .82rem; color: var(--c-red) }
.pc-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--c-border); margin-top: auto;
}
.pc-fee { font-size: .95rem; font-weight: 800; color: var(--c-red) }
.pc-fee-na { font-size: .78rem; color: var(--c-text-2) }
.empty-state { text-align: center; padding: 64px 20px }
.empty-state i { font-size: 2.5rem; color: var(--c-text-3); margin-bottom: 14px; display: block }
.empty-state h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px }
.empty-state p { font-size: .9rem; color: var(--c-text-2) }

/* ── PROGRAM DETAIL ──────────────────────────────────────────── */
.detail-hero {
  position: relative; min-height: 48vh;
  display: flex; align-items: flex-end; padding: 120px 0 48px; overflow: hidden;
}
.detail-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--c-bg);
}
.detail-hero-img {
  position: absolute; inset: 0; z-index: 0;
  opacity: .35; background-size: cover; background-position: center;
}
.detail-hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, var(--c-bg) 20%, transparent 70%);
  opacity: .2;
}
.detail-hero-inner { position: relative; z-index: 1; max-width: 780px }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px }
.detail-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 100px;
  font-size: .73rem; font-weight: 700; letter-spacing: .03em;
}
.db-sector  { background: var(--c-red-dim); color: var(--c-red) }
.db-type    { background: var(--c-border);  color: var(--c-text-2) }
.db-open    { background: rgba(34,197,94,.1);  color: #22c55e }
.db-soon    { background: rgba(234,179,8,.1);  color: #eab308 }
.db-closed  { background: rgba(239,68,68,.1);  color: #ef4444 }
.detail-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800;
  margin: 0 0 12px; line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.35);
}
.detail-hero-desc { font-size: 1rem; color: var(--c-text-2); line-height: 1.75; max-width: 620px; text-shadow: 0 1px 6px rgba(0,0,0,.45) }
.detail-layout { display: grid; grid-template-columns: 1fr 330px; gap: 32px; align-items: start }
.detail-main { min-width: 0 }
.detail-sidebar { position: sticky; top: 84px }
.d-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px,1fr)); gap: 12px; margin-bottom: 36px }
.d-fact {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 16px; text-align: center;
  transition: transform .2s;
}
.d-fact:hover { transform: translateY(-2px) }
.d-fact-ico { font-size: 1.2rem; color: var(--c-red); margin-bottom: 5px }
.d-fact-lbl { font-size: .68rem; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px }
.d-fact-val { font-size: .9rem; font-weight: 700 }
.d-section { margin-bottom: 32px }
.d-section-title {
  font-size: 1.1rem; font-weight: 800; margin: 0 0 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--c-border);
}
.d-content { font-size: .95rem; line-height: 1.8; color: var(--c-text-2) }
.d-list { list-style: none; padding: 0; margin: 0 }
.d-list li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0; font-size: .9rem; color: var(--c-text-2); line-height: 1.6;
}
.d-list li i { color: var(--c-red); font-size: .95rem; margin-top: 2px; flex-shrink: 0 }
.d-cert {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-md);
}
.d-cert > i { font-size: 1.7rem; color: var(--c-red); flex-shrink: 0 }
.d-cert div { font-size: .9rem; color: var(--c-text-2); line-height: 1.7 }
.d-sessions { position: relative; padding-left: 18px; border-left: 2px solid var(--c-border) }
[dir="rtl"] .d-sessions { padding-left: 0; padding-right: 18px; border-left: none; border-right: 2px solid var(--c-border) }
.d-session { position: relative; padding: 0 0 18px 14px }
[dir="rtl"] .d-session { padding: 0 14px 18px 0 }
.d-session-dot {
  position: absolute; left: -23px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-red); border: 2px solid var(--c-bg);
}
[dir="rtl"] .d-session-dot { left: auto; right: -23px }
.d-session-name { font-weight: 700; font-size: .88rem; margin-bottom: 2px }
.d-session-date { font-size: .8rem; color: var(--c-text-2) }
.d-session-seats { font-size: .76rem; color: var(--c-text-3); margin-top: 1px }
.d-trainers { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 12px }
.d-trainer {
  display: flex; gap: 12px; padding: 16px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-md); transition: transform .2s;
}
.d-trainer:hover { transform: translateY(-2px) }
.d-trainer-photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0 }
.d-trainer-ph {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-border); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--c-text-3);
}
.d-trainer-name { font-weight: 700; font-size: .88rem }
.d-trainer-title { font-size: .78rem; color: var(--c-text-2); margin-top: 1px }
.d-trainer-spec  { font-size: .74rem; color: var(--c-text-3); margin-top: 1px }
.d-trainer-exp   { font-size: .74rem; color: var(--c-red);    margin-top: 2px }
.d-cta-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px;
}
.d-price { font-size: 1.8rem; font-weight: 800; color: var(--c-red) }
.d-price-na { font-size: 1.1rem; color: var(--c-text-2) }
.d-price-lbl { font-size: .78rem; color: var(--c-text-3); margin-bottom: 12px }
.d-cta-btn { width: 100%; padding: 12px; font-size: .95rem; margin-bottom: 12px }
.d-deadline { font-size: .8rem; color: var(--c-text-2); padding: 8px 0; display: flex; align-items: center; gap: 6px }
.d-seats { margin: 12px 0 }
.d-seats-bar { height: 4px; border-radius: 2px; background: var(--c-border); overflow: hidden; margin-bottom: 4px }
.d-seats-fill { height: 100%; border-radius: 2px; background: var(--c-red) }
.d-seats-txt { font-size: .74rem; color: var(--c-text-3) }
.d-note {
  font-size: .8rem; color: var(--c-text-2); padding: 9px 12px;
  border-radius: var(--r-sm); background: var(--c-red-dim);
  display: flex; gap: 6px; align-items: flex-start; margin: 12px 0;
}
.d-note i { color: var(--c-red); margin-top: 2px; flex-shrink: 0 }
.db-mode { background: rgba(99,102,241,.1); color: #818cf8 }
.d-meta-list {
  border-top: 1px solid var(--c-border); margin-top: 14px; padding-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.d-meta-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  font-size: .82rem; line-height: 1.5;
}
.d-meta-k { color: var(--c-text-3); display: flex; align-items: center; gap: 5px; flex-shrink: 0; min-width: 100px }
.d-meta-v { color: var(--c-text-2); font-weight: 600; text-align: end }
[dir="rtl"] .d-meta-v { text-align: start }
.d-login-hint {
  font-size: .76rem; color: var(--c-text-3);
  display: flex; align-items: flex-start; gap: 5px;
  margin: -4px 0 8px; line-height: 1.5;
}
.d-login-hint i { flex-shrink: 0; margin-top: 1px }
.d-map-btn {
  width: 100%; margin-top: 8px; justify-content: center;
  font-size: .82rem; padding: 8px 12px;
}

/* ── VERIFY ──────────────────────────────────────────────────── */
.verify-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 52px 36px; text-align: center;
  max-width: 520px; margin: 0 auto;
}
.verify-card > i { font-size: 2.5rem; color: var(--c-red); margin-bottom: 14px; display: block }
.verify-card h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px }
.verify-card p { font-size: .9rem; color: var(--c-text-2); margin: 0 0 18px; line-height: 1.7 }
.verify-form { display: flex; flex-direction: column; gap: 12px; max-width: 380px; margin: 0 auto }
.verify-input-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 0 14px;
  transition: border-color .2s;
}
.verify-input-wrap:focus-within { border-color: var(--c-border-h) }
.verify-input-wrap i { color: var(--c-text-3); font-size: 1.1rem; margin-right: 8px }
[dir="rtl"] .verify-input-wrap i { margin-right: 0; margin-left: 8px }
.verify-input-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 12px 0; font-size: .95rem; color: var(--c-text); font-family: var(--f);
}
.verify-input-wrap input::placeholder { color: var(--c-text-3) }

/* Result card */
.verify-result {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 32px; max-width: 520px; margin: 0 auto;
}
.v-status { text-align: center; margin-bottom: 20px }
.v-status i { font-size: 2.2rem; margin-bottom: 10px; display: block }
.v-status h4 { font-size: 1.15rem; font-weight: 800; margin: 0 }
.v-valid   i { color: #22c55e }
.v-valid   h4 { color: #22c55e }
.v-expired i { color: #eab308 }
.v-expired h4 { color: #eab308 }
.v-revoked i { color: #ef4444 }
.v-revoked h4 { color: #ef4444 }
.v-notfound i { color: var(--c-text-3) }
.v-notfound h4 { color: var(--c-text-2) }
.v-details { display: flex; flex-direction: column; gap: 10px }
.v-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--c-surface);
  border-radius: var(--r-sm); font-size: .88rem;
}
.v-k { color: var(--c-text-3) }
.v-v { color: var(--c-text); font-weight: 700 }

/* ── PAYMENT METHODS ─────────────────────────────────────────── */
.pm-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px }
.pm-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 22px 12px; text-align: center;
  transition: all .2s;
}
.pm-card:hover { transform: translateY(-3px); border-color: var(--c-border-h) }
.pm-card i { font-size: 1.9rem; color: var(--c-red); margin-bottom: 8px; display: block }
.pm-card span { font-size: .82rem; font-weight: 700 }
.pm-soon {
  display: inline-block; margin-top: 6px; font-size: .65rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 100px; background: var(--c-red); color: #fff;
}

/* ── CONTACT PAGE ────────────────────────────────────────────── */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
.cp-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 32px 24px;
}
.cp-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px }
.cp-item:last-child { margin-bottom: 0 }
.cp-ico {
  width: 38px; height: 38px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--c-red-dim); color: var(--c-red);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.cp-lbl { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: 3px; display: block }
.cp-val { font-size: .95rem; font-weight: 500 }
a.cp-val:hover { color: var(--c-red) }
.cp-social { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap }
.cp-social a {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid var(--c-border); background: rgba(255,255,255,.03);
  color: var(--c-text-2); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.cp-social a:hover { background: var(--c-red); color: #fff; border-color: var(--c-red) }

/* ── POLICY PAGE ─────────────────────────────────────────────── */
.policy-body {
  max-width: 740px; margin: 0 auto;
  font-size: .975rem; line-height: 1.9; color: var(--c-text-2);
}
.policy-body p { margin-bottom: 16px }
.policy-body h2 { font-size: 1.3rem; font-weight: 800; color: var(--c-text); margin: 28px 0 10px }
.policy-list {
  margin: 0 0 18px 20px; padding: 0;
  font-size: .95rem; line-height: 1.8; color: var(--c-text-2);
}
[dir="rtl"] .policy-list { margin: 0 20px 18px 0 }
.policy-list li { margin-bottom: 8px; padding-left: 6px }
[dir="rtl"] .policy-list li { padding-left: 0; padding-right: 6px }
.policy-list ol { list-style-type: decimal }
.policy-list ul { list-style-type: disc }

/* ── RTL ─────────────────────────────────────────────────────── */
[dir="rtl"] .about-lhs .sec-head { text-align: right }
[dir="rtl"] .apps-lhs .sec-head  { text-align: right }
[dir="rtl"] .footer-bottom { flex-direction: row }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr }
  .prog-grid   { grid-template-columns: 1fr 1fr }
  .japan-grid  { grid-template-columns: 1fr 1fr }
  .detail-layout { grid-template-columns: 1fr }
  .detail-sidebar { position: static }
}
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr }
  .apps-split  { grid-template-columns: 1fr }
  .app-mockup  { display: none }
  .contact-strip { grid-template-columns: 1fr }
  .contact-page-grid { grid-template-columns: 1fr }
}
@media (max-width: 768px) {
  .h-nav       { display: none }
  .btn-menu    { display: flex }
  .btn-theme   { display: flex }
  .section     { padding: 68px 0 }
  .hero        { min-height: 72vh; padding: 100px 20px 56px }
  .japan-grid  { grid-template-columns: 1fr }
  .prog-grid   { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr; gap: 24px }
  .footer-bottom { flex-direction: column; gap: 5px; text-align: center }
  .pm-grid     { grid-template-columns: repeat(2,1fr) }
  .prog-filters { flex-direction: column; align-items: stretch }
  .filter-search { min-width: 0; width: 100% }
  .wa-bar      { flex-direction: column; text-align: center }
  .detail-layout { grid-template-columns: 1fr }
  .detail-sidebar { position: static }
}
@media (max-width: 480px) {
  .wrap        { padding: 0 16px }
  .hero h1     { font-size: 2rem }
  .sec-title   { font-size: 1.75rem }
  .pm-grid     { grid-template-columns: 1fr }
  .proof-row   { flex-wrap: wrap }
  .proof-item  { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--c-border) }
  .proof-item:nth-child(odd) { border-right: 1px solid var(--c-border) }
  [dir="rtl"] .proof-item:nth-child(odd)  { border-right: none; border-left: 1px solid var(--c-border) }
  [dir="rtl"] .proof-item:nth-child(even) { border-left: none }
  .d-facts     { grid-template-columns: 1fr 1fr }
  .d-trainers  { grid-template-columns: 1fr }
}
