/* ==========================================================================
   Tesla Academy - Public Verification Portal
   High-End Modern Widescreen Design System
   Light & Dark Mode + Bilingual RTL/LTR Support
   ========================================================================== */

:root, [data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --text-main: #0b2238;
  --text-muted: #546678;
  --text-dim: #7f91a2;
  --border: #e2e8f0;
  --border-subtle: rgba(11, 34, 56, 0.08);
  --border-focus: #c89626;

  --navy: #0b2238;
  --navy-2: #123352;
  --navy-3: #1a476f;
  --gold: #c89626;
  --gold-soft: #dfb248;
  --gold-light: #fef8eb;
  --gold-glow: rgba(200, 150, 38, 0.18);

  --emerald: #059669;
  --emerald-bg: #ecfdf5;
  --ruby: #dc2626;
  --ruby-bg: #fef2f2;

  --shadow-sm: 0 4px 12px rgba(11, 34, 56, 0.04);
  --shadow-md: 0 14px 40px rgba(11, 34, 56, 0.07);
  --shadow-lg: 0 28px 70px rgba(11, 34, 56, 0.12);
  --radius: 20px;

  --hero-bg: radial-gradient(circle at 82% 28%, rgba(200, 150, 38, 0.15), transparent 40%),
             linear-gradient(135deg, #0b2238 0%, #103352 50%, #164670 100%);
  --header-bg: rgba(255, 255, 255, 0.94);
  --topbar-bg: #07192a;
}

[data-theme="dark"] {
  --bg-page: #06111b;
  --bg-card: #0c1e30;
  --bg-card-subtle: #10263c;
  --bg-elevated: #132c45;
  --bg-glass: rgba(12, 30, 48, 0.88);
  --text-main: #f1f5f9;
  --text-muted: #9bb0c3;
  --text-dim: #6c8296;
  --border: rgba(255, 255, 255, 0.10);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-focus: #f3cf7a;

  --navy: #0b2238;
  --navy-2: #143553;
  --navy-3: #1c4b75;
  --gold: #e5b33d;
  --gold-soft: #f6d88c;
  --gold-light: rgba(246, 216, 140, 0.08);
  --gold-glow: rgba(229, 179, 61, 0.25);

  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --ruby: #ef4444;
  --ruby-bg: rgba(239, 68, 68, 0.12);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 75px rgba(0, 0, 0, 0.65);

  --hero-bg: radial-gradient(circle at 82% 28%, rgba(229, 179, 61, 0.15), transparent 42%),
             linear-gradient(135deg, #030a10 0%, #081725 50%, #0d253a 100%);
  --header-bg: rgba(8, 20, 32, 0.94);
  --topbar-bg: #03090f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  overflow-x: hidden;
  min-height: 100vh;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

/* Responsive Widescreen Full-Width Container */
.container {
  width: min(1560px, calc(100% - 64px));
  margin-inline: auto;
}
@media (min-width: 1920px) {
  .container {
    width: min(1760px, calc(100% - 96px));
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .32s ease, transform .32s ease;
}
.reveal.show { opacity: 1; transform: none; }

/* Top strip */
.topbar {
  background: var(--topbar-bg);
  color: #dce6ee;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar-info span, .topbar-info a {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 8px var(--gold-soft);
}
.official {
  color: var(--gold-soft);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}
.brand-logo {
  width: 96px;
  height: 68px;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.brand:hover .brand-logo {
  transform: scale(1.03);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-copy strong {
  font-size: 18px;
  letter-spacing: .3px;
  color: var(--text-main);
  font-weight: 800;
}
.brand-copy small {
  font-size: 10px;
  color: var(--gold);
  margin-top: 4px;
  letter-spacing: 1.2px;
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.nav-links a {
  position: relative;
  padding: 30px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text-main);
}
.nav-links a:after {
  content: "";
  position: absolute;
  bottom: 22px;
  right: 0;
  width: 0;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: width .25s ease;
}
html[dir="ltr"] .nav-links a:after {
  right: auto;
  left: 0;
}
.nav-links a:hover:after { width: 100%; }

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

/* Control Buttons (Lang + Theme) */
.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ctrl-btn:hover {
  border-color: var(--gold);
  background: var(--bg-card-subtle);
  transform: translateY(-1px);
}
.ctrl-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-cta {
  padding: 11px 22px;
  border-radius: 11px;
  background: var(--navy);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  transition: all 0.22s ease;
  box-shadow: 0 8px 24px rgba(11, 34, 56, 0.22);
}
[data-theme="dark"] .nav-cta {
  background: var(--gold);
  color: #06111b;
  box-shadow: 0 8px 24px rgba(229, 179, 61, 0.3);
}
.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  width: 42px;
  height: 42px;
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  margin: 5px auto;
  border-radius: 3px;
  transition: 0.2s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  gap: 12px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 0;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-ctrls {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 10px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 85px 0 95px;
  background: var(--hero-bg);
  color: #ffffff;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  top: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 150, 38, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero:after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  left: -140px;
  bottom: -280px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.eyebrow:before {
  content: "";
  width: 32px;
  height: 1.5px;
  background: var(--gold-soft);
}
.hero h1 {
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -1.8px;
  font-weight: 900;
}
.hero h1 span {
  color: var(--gold-soft);
  text-shadow: 0 0 25px rgba(223, 178, 72, 0.35);
}
.hero-copy > p {
  margin: 0;
  color: #d1dde6;
  font-size: 18px;
  line-height: 1.9;
  max-width: 720px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: all .22s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold-soft);
  color: #0b2238;
  box-shadow: 0 10px 30px rgba(223, 178, 72, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(223, 178, 72, 0.38);
  filter: brightness(1.05);
}
.btn-secondary {
  border-color: rgba(255,255,255,.24);
  color: #ffffff;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

.hero-mini {
  display: flex;
  gap: 32px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}
.hero-mini div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(223, 178, 72, 0.12);
  color: var(--gold-soft);
  border: 1px solid rgba(223, 178, 72, 0.22);
  flex: 0 0 auto;
}
.mini-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-mini strong { display: block; font-size: 13px; }
.hero-mini p > span {
  display: block;
  font-size: 10.5px;
  color: #9cb2c2;
  margin-top: 3px;
}

/* Hero Visual */
.programs-heading { max-width: 780px; margin-bottom: 32px; }
.programs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.program-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 28px; background: var(--bg-card); border: 1px solid var(--border);
  border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s;
}
.program-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.program-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.program-no { font-size: 28px; font-weight: 800; color: var(--gold); }
.program-card h3 { margin: 0; font-size: 20px; line-height: 1.5; }
.program-card p { margin: 0; color: var(--text-muted); line-height: 1.8; }
.program-link { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--text-main); }
.verified-icon.academy-mark { font-size: 17px; background: #fef8eb; color: #0b2238; }
.brand-logo { background: #fff; border-radius: 8px; }
@media (max-width: 1200px) { .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .programs-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .program-card { transition: none; }
}

.hero-visual {
  position: relative;
  min-height: 560px;
}
.portrait-frame {
  position: absolute;
  inset: 0 0 0 45px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 35px 95px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.16);
}
html[dir="ltr"] .portrait-frame {
  inset: 0 45px 0 0;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.portrait-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 17, 27, 0.42));
}
.logo-float {
  position: absolute;
  top: -12px;
  right: 18px;
  width: 82px;
  height: 82px;
  border-radius: 20px;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 45px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.8);
  padding: 8px;
  z-index: 5;
}
html[dir="ltr"] .logo-float {
  right: auto;
  left: 18px;
}
.logo-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.verified-card {
  position: absolute;
  right: -12px;
  bottom: 38px;
  width: 300px;
  background: rgba(255,255,255,.96);
  color: #0b2238;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 24px 65px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  z-index: 6;
}
html[dir="ltr"] .verified-card {
  right: auto;
  left: -12px;
}
.verified-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.verified-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6f7ef;
  color: var(--emerald);
  font-weight: 900;
  font-size: 18px;
  flex: 0 0 auto;
}
.verified-card strong { font-size: 13.5px; }
.verified-card p {
  font-size: 10.5px;
  color: #556777;
  margin: 4px 0 0;
  line-height: 1.6;
}
.verified-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #edf2f6;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #7a8c9b;
}

/* Verification Section */
.verify-section {
  padding: 80px 0;
  background: var(--bg-page);
}
.verify-shell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}
.verify-intro .eyebrow {
  color: var(--gold);
}
.verify-intro .eyebrow:before { background: var(--gold); }
.verify-intro h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text-main);
  font-weight: 900;
}
.verify-intro p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}
.verify-panel {
  display: grid;
  gap: 20px;
}
.verify-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 9px;
}
.input-wrap {
  display: flex;
  gap: 10px;
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  min-width: 0;
}
.btn-scan {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-scan:hover {
  background: var(--bg-card-subtle);
  border-color: var(--gold);
  color: var(--gold);
}
.input-wrap button[type="submit"] {
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  border: none;
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
[data-theme="dark"] .input-wrap button[type="submit"] {
  background: var(--gold);
  color: #06111b;
}
.input-wrap button[type="submit"]:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.verify-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 10px 4px 0;
}
.result {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}
.result.valid {
  background: var(--emerald-bg);
  border-color: rgba(5, 150, 105, 0.25);
  color: var(--emerald);
}
.result.error {
  background: var(--ruby-bg);
  border-color: rgba(220, 38, 38, 0.25);
  color: var(--ruby);
}
.result-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 900;
  font-size: 16px;
  flex: 0 0 auto;
}
.result.valid .result-icon { background: var(--emerald); color: white; border: none; }
.result.error .result-icon { background: var(--ruby); color: white; border: none; }
.result strong { display: block; font-size: 13.5px; }
.result p { font-size: 11px; margin: 4px 0 0; line-height: 1.6; }

/* Scanner Modal */
.scanner-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 11, 20, 0.78);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scanner-modal.open { display: flex; }
.scanner-dialog {
  width: min(520px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.2s ease;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.scanner-badge {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: var(--gold);
}
.scanner-header h3 {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--text-main);
}
.scanner-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.scanner-viewfinder {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}
.scanner-viewfinder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scanner-reticle {
  position: absolute;
  inset: 24px;
  border: 2px dashed rgba(255,255,255,.35);
  border-radius: 16px;
  pointer-events: none;
}
.scanner-laser {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold-soft);
  box-shadow: 0 0 12px var(--gold-soft);
  animation: scan 2s infinite ease-in-out;
}
@keyframes scan {
  0%, 100% { top: 5%; }
  50% { top: 95%; }
}
.scanner-status {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 16px 0 12px;
}
.scanner-divider {
  text-align: center;
  position: relative;
  margin: 14px 0;
}
.scanner-divider:before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
}
.scanner-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-dim);
}
.btn-file-scan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  border-radius: 12px;
  border: 1px dashed var(--border-focus);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-file-scan:hover {
  background: var(--gold-light);
}

/* Trust Section */
.trust {
  padding: 24px 0 60px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-light);
  color: var(--gold);
  flex: 0 0 auto;
}
.trust-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-item strong { display: block; font-size: 13.5px; color: var(--text-main); }
.trust-item p { font-size: 11px; color: var(--text-muted); margin: 3px 0 0; }

/* Section Generic */
.section {
  padding: 85px 0;
}
.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text-main);
  font-weight: 900;
}
.section-copy {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
  margin: 0 0 28px;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.photo-box {
  position: relative;
}
.photo-main {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-badge {
  position: absolute;
  bottom: -24px;
  right: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
}
html[dir="ltr"] .photo-badge {
  right: auto;
  left: 28px;
}
.photo-badge img {
  width: 50px;
  height: 38px;
  object-fit: contain;
}
.photo-badge strong { display: block; font-size: 12.5px; color: var(--text-main); }
.photo-badge p { font-size: 10px; color: var(--text-muted); margin: 3px 0 0; line-height: 1.5; }

.feature-list {
  display: grid;
  gap: 16px;
}
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.feature:hover {
  transform: translateX(-4px);
}
html[dir="ltr"] .feature:hover {
  transform: translateX(4px);
}
.feature-num {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
  background: var(--gold-light);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.feature strong { display: block; font-size: 13.5px; color: var(--text-main); }
.feature p { font-size: 11.5px; color: var(--text-muted); margin: 4px 0 0; line-height: 1.6; }

/* Story Section */
.story {
  padding: 85px 0;
  background: var(--bg-card-subtle);
}
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}
.story-photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-copy h2 {
  font-size: clamp(28px, 2.8vw, 42px);
  margin: 0 0 16px;
  color: var(--text-main);
  font-weight: 900;
}
.story-copy p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
  margin: 0 0 24px;
}
.story-quote {
  padding: 18px 24px;
  border-right: 4px solid var(--gold);
  background: var(--bg-card);
  border-radius: 12px 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}
html[dir="ltr"] .story-quote {
  border-right: none;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
}

/* ==========================================================================
   ELEVATED INTERNATIONAL PARTNERS SECTION (Eye-Opening & Hyper-Realistic)
   ========================================================================== */
.partners {
  padding: 95px 0;
  background: radial-gradient(circle at 50% 0%, rgba(200, 150, 38, 0.08), transparent 60%), var(--bg-page);
}
.partners-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.partners-head h2 {
  font-size: clamp(32px, 3.2vw, 48px);
  margin: 0 0 16px;
  color: var(--text-main);
  font-weight: 900;
}
.partners-head p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.partners-brandline {
  width: max-content;
  max-width: 100%;
  margin: 36px auto 0;
  padding: 10px 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.partners-brandline img {
  width: 54px;
  height: 36px;
  object-fit: contain;
}
.partners-brandline span {
  font-size: 10.5px;
  letter-spacing: 1.6px;
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.partner-card-pro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  min-height: 380px;
}
.partner-card-pro:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 35px var(--gold-glow);
}
.partner-card-pro:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.partner-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.partner-jurisdiction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.partner-status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  color: var(--emerald);
  background: var(--emerald-bg);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.partner-status-beacon:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.partner-logo-container {
  height: 90px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.25s ease;
}
.partner-card-pro:hover .partner-logo-container {
  background: var(--bg-card);
}
.partner-logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-card-pro h3 {
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 8px;
  color: var(--text-main);
  font-weight: 800;
  min-height: 52px;
}
.partner-card-pro p.partner-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.partner-meta-box {
  background: var(--bg-card-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 10px;
  display: grid;
  gap: 6px;
}
.partner-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.partner-meta-row span { color: var(--text-dim); }
.partner-meta-row strong { color: var(--text-main); font-weight: 700; direction: ltr; }

.partner-card-action {
  width: 100%;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.partner-card-action:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}
[data-theme="dark"] .partner-card-action:hover {
  background: var(--gold);
  color: #06111b;
  border-color: var(--gold);
}

/* Partner Accreditation Modal */
.partner-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(3, 11, 20, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.partner-modal.open { display: flex; }
.partner-modal-dialog {
  width: min(640px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.2s ease;
  position: relative;
}
.partner-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
html[dir="ltr"] .partner-modal-close {
  right: auto;
  left: 24px;
}
.partner-modal-head {
  text-align: center;
  margin-bottom: 24px;
}
.partner-modal-head img {
  height: 70px;
  margin: 0 auto 16px;
  object-fit: contain;
}
.partner-modal-head h3 {
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--text-main);
}
.partner-modal-head p {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  margin: 0;
}
.partner-modal-details {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 24px;
}
.partner-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}
.partner-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.partner-detail-row span { color: var(--text-dim); }
.partner-detail-row strong { color: var(--text-main); font-weight: 700; }
.partner-modal-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--emerald-bg);
  color: var(--emerald);
  font-size: 11.5px;
  font-weight: 800;
}

/* Steps Section */
.steps-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.steps-head p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 12px 0 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.step-no {
  position: absolute;
  left: 24px;
  top: 24px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 900;
}
html[dir="ltr"] .step-no {
  left: auto;
  right: 24px;
}
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--gold-light);
  color: var(--gold);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 24px;
}
.step h3 {
  font-size: 18px;
  color: var(--text-main);
  margin: 0 0 10px;
  font-weight: 800;
}
.step p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* Contact Section */
.contact {
  padding: 0 0 95px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.contact-title h2 {
  font-size: 40px;
  margin: 0 0 14px;
  color: var(--text-main);
  font-weight: 900;
}
.contact-title p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}
.contact-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.contact-links a {
  font-size: 12px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 11px;
  background: var(--navy);
  color: #ffffff;
  transition: all 0.2s ease;
}
[data-theme="dark"] .contact-links a {
  background: var(--gold);
  color: #06111b;
}
.contact-links a.alt {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.contact-items {
  display: grid;
  gap: 12px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold-soft);
  flex: 0 0 auto;
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-icon.logo-tile {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px;
}
.contact-icon.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.contact-item small { display: block; font-size: 10px; color: var(--text-dim); margin-bottom: 3px; }
.contact-item strong { font-size: 13.5px; color: var(--text-main); }

/* Footer */
footer {
  background: #040d16;
  color: #9cb0c0;
  padding: 60px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 52px;
  padding-bottom: 40px;
}
.footer-logo {
  width: 140px;
  filter: invert(1) grayscale(1) brightness(4);
  margin-bottom: 16px;
}
.footer-grid p {
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  max-width: 380px;
}
footer h4 {
  font-size: 14px;
  color: #ffffff;
  margin: 0 0 16px;
  font-weight: 800;
}
footer a {
  display: block;
  font-size: 12px;
  color: #9cb0c0;
  margin-bottom: 9px;
  transition: color 0.2s ease;
}
footer a:hover { color: var(--gold-soft); }
.copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #6d8191;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   OFFICIAL CERTIFICATE VERIFICATION PAGE VIEW
   ========================================================================== */
.certificate-page {
  display: none;
  background: var(--bg-page);
  min-height: 100vh;
}
.certificate-page.active {
  display: block;
}
.cert-top {
  background: var(--topbar-bg);
  color: #b5c7d6;
  font-size: 11.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cert-top .container {
  display: flex;
  justify-content: space-between;
}
.cert-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.cert-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cert-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cert-brand img {
  width: 78px;
  height: 56px;
  object-fit: contain;
}
.cert-brand strong { display: block; font-size: 17px; color: var(--text-main); }
.cert-brand small { font-size: 9.5px; color: var(--gold); letter-spacing: 1px; font-weight: 800; }

.cert-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cert-action-btn, .cert-back, .cert-print {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cert-back {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
}
.cert-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
}
.cert-action-btn:hover {
  background: var(--bg-card-subtle);
  border-color: var(--gold);
}
.cert-print {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #ffffff;
}
[data-theme="dark"] .cert-print {
  background: var(--gold);
  border-color: var(--gold);
  color: #06111b;
}

.cert-hero {
  background: var(--hero-bg);
  color: #ffffff;
  padding: 55px 0 65px;
  text-align: center;
}
.cert-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #5ef1b2;
  background: rgba(94, 241, 178, 0.12);
  border: 1px solid rgba(94, 241, 178, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.cert-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ef1b2;
  box-shadow: 0 0 10px #5ef1b2;
}
.cert-hero h1 {
  font-size: clamp(34px, 3.5vw, 50px);
  margin: 0 0 12px;
  font-weight: 900;
}
.cert-hero p {
  font-size: 15px;
  color: #c4d7e6;
  margin: 0;
}

.cert-shell {
  padding: 60px 0 90px;
}
.cert-card {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cert-card-head {
  padding: 26px 36px;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cert-issuer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cert-issuer img {
  width: 65px;
  height: 48px;
  object-fit: contain;
}
.cert-issuer strong { display: block; font-size: 16px; color: var(--text-main); }
.cert-issuer span { font-size: 9.5px; color: var(--gold); letter-spacing: 1px; font-weight: 800; }
.cert-seal div {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--emerald-bg);
  border: 2px solid var(--emerald);
  color: var(--emerald);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
}
.cert-record {
  text-align: left;
}
html[dir="rtl"] .cert-record {
  text-align: right;
}
.cert-record span { display: block; font-size: 10px; color: var(--text-dim); }
.cert-record strong { font-size: 16px; color: var(--text-main); font-weight: 800; direction: ltr; display: block; }

.cert-body {
  padding: 40px;
}
.cert-heading {
  margin-bottom: 28px;
}
.cert-heading span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--gold);
}
.cert-heading h2 {
  font-size: 26px;
  margin: 6px 0 8px;
  color: var(--text-main);
  font-weight: 900;
}
.cert-heading p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.cert-statement {
  background: var(--gold-light);
  border: 1px solid rgba(200, 150, 38, 0.22);
  border-radius: 16px;
  padding: 22px 26px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-main);
  margin-bottom: 32px;
}

.cert-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}
.cert-detail {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}
.cert-detail.full {
  grid-column: 1 / -1;
}
.cert-detail span {
  display: block;
  font-size: 10.5px;
  color: var(--text-dim);
  margin-bottom: 5px;
}
.cert-detail strong {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 700;
}

/* Official QR Badge inside Certificate */
.cert-qr-panel {
  margin-bottom: 32px;
}
.cert-qr-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.cert-qr-graphic {
  background: #ffffff;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}
.cert-qr-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 6px;
}
.cert-qr-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.cert-note {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.cert-note p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0;
}
.cert-signature strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}
.cert-signature span {
  font-size: 10.5px;
  color: var(--gold);
  font-weight: 700;
}

.cert-document {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.cert-document-head h3 {
  font-size: 18px;
  color: var(--text-main);
  margin: 0 0 6px;
}
.cert-document-head p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.cert-preview {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card-subtle);
  min-height: 220px;
  display: grid;
  place-items: center;
}
.cert-preview img {
  width: 100%;
  max-height: 750px;
  object-fit: contain;
}

/* Toast Notifications */
.portal-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: var(--navy);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  display: none;
  align-items: center;
  gap: 10px;
  animation: slideUp .25s ease;
}
[data-theme="dark"] .portal-toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.portal-toast.show { display: flex; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}

/* LTR Adjustments for English */
html[dir="ltr"] .hero h1 {
  letter-spacing: -1px;
}
html[dir="ltr"] .hero-copy > p {
  line-height: 1.7;
}

/* Print Stylesheet for Certificate */
@media print {
  body * { visibility: hidden; }
  .certificate-page { display: none!important; }
  body.certificate-verified .certificate-page, body.certificate-verified .certificate-page * { visibility: visible; }
  body.certificate-verified .certificate-page { display: block!important; position: absolute; left: 0; top: 0; width: 100%; }
  .cert-nav, .cert-top, .cert-actions, .portal-toast, header, footer { display: none!important; }
  .cert-hero { background: none!important; color: #000!important; padding: 10px 0; }
  .cert-hero h1 { color: #000!important; font-size: 26px!important; }
  .cert-status { border-color: #000!important; color: #000!important; }
  .cert-card { box-shadow: none!important; border: 1px solid #ccc!important; }
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 480px; max-width: 580px; margin: 0 auto; width: 100%; }
  .portrait-frame { inset: 0; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .story-grid, .contact-card { grid-template-columns: 1fr; gap: 40px; }
  .verify-shell { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions .nav-cta { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .partners-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cert-card-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .nav { height: auto; flex-wrap: wrap; gap: 12px; padding-block: 16px; }
  .brand { flex-basis: 100%; }
  .brand-logo { width: 56px; height: 56px; }
  .brand-copy strong { font-size: 19px; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .partners-brandline { flex-wrap: wrap; }
  .partners-brandline span { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .verify-shell { padding: 20px; }
  .input-wrap input { min-width: 0; width: 100%; }
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { min-height: 380px; }
  .verified-card { width: calc(100% - 24px); right: 12px; bottom: 12px; }
  .trust-grid { grid-template-columns: 1fr; }
  .cert-details { grid-template-columns: 1fr; }
  .cert-qr-card { flex-direction: column; text-align: center; }
  .input-wrap { flex-direction: column; }
  .input-wrap button[type="submit"] { width: 100%; }
}
