/* ACD Sudan · Moe Trading — theme (1:1 port of the Lovable build) */

:root {
  color-scheme: light;
  --navy: oklch(24% 0 0);
  --navy-deep: oklch(17% 0 0);
  --gold: oklch(78% .14 65);
  --gold-soft: oklch(88% .09 70);

  --background: oklch(98.5% .005 250);
  --foreground: oklch(20% .04 250);
  --card: oklch(100% 0 0);
  --card-foreground: oklch(20% .04 250);
  --border: oklch(90% .015 250);
  --input: oklch(90% .015 250);
  --muted: oklch(95.5% .01 250);
  --muted-foreground: oklch(50% .03 250);
  --secondary: oklch(95% .015 250);
  --secondary-foreground: var(--foreground);
  --destructive: oklch(60% .22 27);

  --radius: .75rem;
  --font-display: "IBM Plex Sans Arabic", "Cairo", "Inter", sans-serif;
}

/* Dark theme — toggled manually via the theme switch button; dark is the default on first visit. */
:root.dark {
  --background: var(--navy-deep);
  --foreground: oklch(98% 0 0);
  --card: oklch(22% 0 0);
  --card-foreground: oklch(98% 0 0);
  --border: oklch(100% 0 0 / .12);
  --input: oklch(100% 0 0 / .12);
  --muted: oklch(28% 0 0);
  --muted-foreground: oklch(75% 0 0);
  --secondary: oklch(28% 0 0);
  --secondary-foreground: oklch(98% 0 0);
  color-scheme: dark;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100vw; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
svg { flex-shrink: 0; display: block; }

.container { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }

.section-py { padding-block: 2.75rem; }
@media (min-width: 640px) { .section-py { padding-block: 4rem; } }
.bg-alt { background: color-mix(in oklab, var(--secondary) 40%, transparent); }

.card-elevated {
  background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.08), 0 1px 2px -1px rgba(0,0,0,.08);
}

/* eyebrow pill badge ("X" component) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; background: color-mix(in oklab, var(--foreground) 6%, transparent);
  padding: .25rem .75rem; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--foreground);
}
.eyebrow::before { content: ""; width: .375rem; height: .375rem; border-radius: 999px; background: var(--gold); }
.section-title { margin: .5rem 0 0; font-size: 1.5rem; font-weight: 800; }
@media (min-width: 480px) { .section-title { font-size: 1.875rem; } }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; font-weight: 700; font-size: .875rem;
  border: 1px solid transparent; transition: filter .15s, background .15s; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); padding: .75rem 1.25rem; box-shadow: 0 10px 25px -10px color-mix(in oklab, var(--gold) 40%, transparent); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-outline-hero { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #fff; padding: .75rem 1.25rem; font-weight: 600; }
.btn-outline-hero:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: #fff; border-radius: 999px; padding: .75rem 1.25rem; font-weight: 700; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-navy[disabled] { opacity: .5; cursor: not-allowed; }
.btn-navy.full, .btn-gold.full { width: 100%; }
.btn-navy.sm { padding: .625rem 1rem; font-size: .8rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--background) 96%, transparent);
}
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -5px; height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='5' viewBox='0 0 32 5'%3E%3Cpath d='M0 2.5 Q8 0 16 2.5 T32 2.5' fill='none' stroke='%23c9974a' stroke-width='1.1'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 32px 5px; opacity: .55; pointer-events: none;
}
.site-header .bar {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: .5rem;
  padding-block: .75rem;
}
@media (min-width: 1024px) { .site-header .bar { grid-template-columns: minmax(0,auto) 1fr auto; gap: .75rem; } }
.brand { display: flex; align-items: center; gap: .5rem; min-width: 0; overflow: hidden; }
.brand-badge {
  display: grid; place-items: center; flex-shrink: 0;
  width: 2.25rem; height: 2.25rem; border-radius: .75rem;
  background: var(--navy); color: var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; overflow: hidden; }
.brand-text strong { font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: 11px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { display: none; align-items: center; justify-content: center; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { border-radius: 999px; padding: .375rem .75rem; font-size: .875rem; font-weight: 500; color: var(--muted-foreground); transition: background .15s, color .15s; white-space: nowrap; flex-shrink: 0; }
.main-nav a:hover { background: var(--muted); color: var(--foreground); }
@media (min-width: 1024px) { .main-nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch {
  display: inline-flex; align-items: center; border: 1px solid var(--border);
  background: var(--card); border-radius: 999px; padding: .125rem;
  font-size: .75rem; gap: .125rem;
}
.lang-switch .globe-icn { margin-inline: .375rem; color: var(--muted-foreground); }
.lang-switch a { border-radius: 999px; padding: .25rem .625rem; font-weight: 600; color: var(--muted-foreground); }
.lang-switch a.active { background: var(--navy); color: #fff; }
.lang-switch a:not(.active):hover { color: var(--foreground); }

.header-cta { display: none; background: var(--navy); color: #fff; border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.header-cta:hover { background: var(--navy-deep); }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.header-account-link {
  display: inline-flex; align-items: center; gap: .375rem;
  border: 1px solid var(--border); background: var(--card); border-radius: 999px;
  padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: var(--foreground);
  flex-shrink: 0;
}
.header-account-link:hover { background: var(--muted); }
.header-account-link svg { color: #22c55e; }

.menu-toggle { display: inline-grid; place-items: center; border: none; background: transparent; border-radius: .5rem; width: 2.5rem; height: 2.5rem; color: var(--foreground); }
.menu-toggle:hover { background: var(--muted); }
.menu-toggle svg { transition: transform .2s; }
.menu-toggle.open svg { transform: rotate(180deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.theme-toggle {
  display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; width: 2.25rem; height: 2.25rem; color: var(--foreground); flex-shrink: 0;
}
.theme-toggle:hover { background: var(--muted); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: grid; }
:root.dark .theme-toggle .icon-sun { display: grid; }
:root.dark .theme-toggle .icon-moon { display: none; }

/* enlarge header on desktop — the default sizes read too small on wide screens */
@media (min-width: 1024px) {
  .site-header .bar { padding-block: 1.625rem; }
  .brand { gap: .875rem; }
  .brand-badge { width: 3.75rem; height: 3.75rem; border-radius: 1.25rem; }
  .brand-badge svg { width: 30px; height: 30px; }
  .brand-text strong { font-size: 1.375rem; }
  .brand-text span { font-size: 1rem; }
  .main-nav { gap: 1rem; }
  .main-nav a { font-size: 1.0625rem; font-weight: 600; padding: .5rem 1.125rem; }
  .header-actions { gap: .875rem; }
  .lang-switch { font-size: 1rem; padding: .25rem; }
  .lang-switch a { padding: .5rem 1.125rem; }
  .lang-switch .globe-icn svg { width: 20px; height: 20px; }
  .theme-toggle { width: 3.25rem; height: 3.25rem; }
  .theme-toggle svg { width: 24px; height: 24px; }
  .header-cta { font-size: 1.125rem; padding: .875rem 2rem; }
  .header-account-link { font-size: 1.125rem; padding: .875rem 1.5rem; }
  .header-account-link svg { width: 20px; height: 20px; }
}

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav.open { display: block; }
.mobile-nav .inner { padding-block: .5rem; }
.mobile-nav a { display: block; border-radius: .5rem; padding: .75rem; font-size: .9375rem; font-weight: 500; min-height: 2.75rem; display: flex; align-items: center; }
.mobile-nav a:hover { background: var(--muted); }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* hero */
.hero {
  position: relative; overflow: hidden; color: var(--foreground);
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.hero .dots {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--foreground) 1px, transparent 0);
  background-size: 24px 24px;
}
.hero-inner {
  position: relative; display: grid; gap: 2rem; padding-block: 2.5rem 3rem;
}
@media (min-width: 640px) { .hero-inner { gap: 2.5rem; padding-block: 3.5rem 4rem; } }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; padding-block: 5rem 6rem; } }
.visit-counter-row { margin-top: -1.75rem; padding-bottom: 1.25rem; }
.visit-stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.visit-stat {
  flex: 1 1 5rem; min-width: 4.5rem; max-width: 8rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  background: color-mix(in oklab, var(--foreground) 5%, transparent);
  border: 1px solid var(--border); border-radius: .625rem;
  padding: .5rem .375rem; text-align: center;
}
.visit-stat-total { background: color-mix(in oklab, var(--gold) 12%, transparent); border-color: color-mix(in oklab, var(--gold) 30%, transparent); }
.visit-stat .ic { font-size: 1.0625rem; line-height: 1; }
.visit-stat .ic svg { display: inline-block; color: var(--gold); }
.visit-stat .num { font-size: .9375rem; font-weight: 800; color: var(--foreground); line-height: 1.1; }
.visit-stat .lbl { font-size: .625rem; color: var(--muted-foreground); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hero-copy { max-width: 42rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: .25rem .75rem; font-size: .75rem; font-weight: 600;
  color: var(--foreground);
}
.hero-badge svg { color: var(--gold); }
.hero h1 { margin: 1rem 0 0; font-size: 1.625rem; font-weight: 800; line-height: 1.3; color: var(--foreground); }
@media (min-width: 480px) { .hero h1 { font-size: 1.875rem; line-height: 1.25; } }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
.hero .subtitle { margin: .625rem 0 0; font-size: 1rem; font-weight: 700; color: var(--foreground); }
@media (min-width: 640px) { .hero .subtitle { font-size: 1.125rem; } }
.hero .desc { margin: .875rem 0 0; max-width: 36rem; font-size: .9375rem; line-height: 1.6; color: var(--muted-foreground); }
@media (min-width: 640px) { .hero .desc { font-size: 1rem; } }
.hero .turnaround {
  display: inline-flex; align-items: center; gap: .4rem; margin: .75rem 0 0;
  font-size: .875rem; font-weight: 700; color: var(--foreground);
}
.hero .turnaround svg { color: var(--gold); }
.hero-buttons { display: flex; flex-direction: column; gap: .625rem; margin-top: 1.5rem; }
.hero-buttons .btn { width: 100%; }
@media (min-width: 480px) { .hero-buttons { flex-direction: row; flex-wrap: wrap; gap: .75rem; } .hero-buttons .btn { width: auto; } }
.hero-buttons .btn-outline-hero { border-color: var(--border); background: var(--card); color: var(--foreground); }
.hero-buttons .btn-outline-hero:hover { background: var(--muted); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 1rem .75rem; margin-top: 1.5rem; font-size: .8125rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .hero-chips { gap: 1.5rem .75rem; margin-top: 2rem; font-size: .875rem; } }
.hero-chips span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-chips svg { color: var(--gold); }

/* hero image box — same footprint as hero-copy, holds the real photo */
.hero-image-box {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 1.25rem;
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 20px 50px -20px color-mix(in oklab, var(--navy) 30%, transparent);
}
.hero-image-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-image-box::after {
  content: ""; position: absolute; inset: 0; background: transparent; pointer-events: none;
  transition: background .2s;
}
:root.dark .hero-image-box::after { background: rgba(0,0,0,.65); }
@media (min-width: 1024px) { .hero-image-box { aspect-ratio: auto; height: 100%; min-height: 26rem; } }


/* about */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.about-desc { margin-top: 1rem; max-width: 32rem; color: var(--muted-foreground); }

.about-chips { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.5rem; }
.about-chips .chip {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border); background: var(--card); border-radius: 999px;
  padding: .5rem .875rem; font-size: .8125rem; font-weight: 600; color: var(--foreground);
}
.about-chips .chip svg { color: var(--foreground); }

/* process timeline */
.process { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.5rem; }
.process-eyebrow { font-size: .8125rem; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .06em; }
.process-steps { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.process-steps li { position: relative; display: flex; gap: 1rem; padding-bottom: 1.75rem; }
.process-steps li:last-child { padding-bottom: 0; }
.process-steps li::before {
  content: ""; position: absolute; top: 2.25rem; bottom: 0; inset-inline-start: .875rem;
  width: 1px; background: var(--border);
}
.process-steps li:last-child::before { display: none; }
.process-steps .num {
  flex-shrink: 0; display: grid; place-items: center; width: 1.75rem; height: 1.75rem;
  border-radius: 999px; background: var(--navy); color: var(--gold); font-weight: 800; font-size: .8125rem;
  z-index: 1;
}
.process-steps .body { padding-top: .1rem; }
.process-steps .title { font-weight: 700; }
.process-steps p { margin: .25rem 0 0; font-size: .875rem; color: var(--muted-foreground); }

/* documents */
.docs-grid { margin-top: 2rem; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .docs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .docs-grid { grid-template-columns: repeat(3, 1fr); } }
.doc-row { display: flex; align-items: center; gap: .75rem; padding: 1rem; }
.doc-row .icn { display: grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: color-mix(in oklab, var(--foreground) 6%, transparent); color: var(--foreground); }
.doc-row .body { min-width: 0; flex: 1; }
.doc-row .body .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-row .body .status { font-size: .75rem; color: var(--muted-foreground); }
.doc-row .clock { color: var(--muted-foreground); }

/* account / orders */
.order-row { display: flex; align-items: center; gap: .875rem; padding: 1rem; border-bottom: 1px solid var(--border); }
.order-row:last-child { border-bottom: none; }
.order-row .icn { display: grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: color-mix(in oklab, var(--foreground) 6%, transparent); color: var(--foreground); }
.order-row .body { min-width: 0; flex: 1; }
.order-row .body .name { font-weight: 700; font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row .body .meta { margin-top: .125rem; font-size: .75rem; color: var(--muted-foreground); }
.status-pill { flex-shrink: 0; border-radius: 999px; padding: .3rem .75rem; font-size: .75rem; font-weight: 700; }
.status-pending { background: color-mix(in oklab, var(--gold) 15%, transparent); color: var(--gold); }
.status-processing { background: color-mix(in oklab, #3b82f6 15%, transparent); color: #3b82f6; }
.status-completed { background: color-mix(in oklab, #22c55e 15%, transparent); color: #22c55e; }
.status-rejected { background: color-mix(in oklab, var(--destructive) 15%, transparent); color: var(--destructive); }

/* admin panel — mobile card list vs. desktop table */
.admin-table-wrap { display: none; }
.admin-cards { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); padding: 1rem; }
.admin-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.admin-card-top .ticket { font-family: monospace; font-weight: 700; font-size: .9375rem; }
.admin-card-top .date { font-size: .75rem; color: var(--muted-foreground); flex-shrink: 0; }
.admin-card-body { margin-top: .5rem; font-size: .875rem; }
.admin-card-body .meta { margin-top: .125rem; font-size: .75rem; color: var(--muted-foreground); }
.admin-status-form { display: flex; gap: .5rem; margin-top: .75rem; }
.admin-status-form select { flex: 1; padding: .5rem .625rem; font-size: .875rem; }
.admin-status-form button { flex-shrink: 0; }

.ticket-detail { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--border); }
.ticket-detail-fields { display: flex; flex-direction: column; gap: .25rem; font-size: .8125rem; color: var(--muted-foreground); }
.ticket-detail-fields span { font-weight: 600; color: var(--foreground); }
.ticket-detail-docs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .625rem; }
.doc-chip {
  display: inline-flex; align-items: center; gap: .375rem;
  border: 1px solid var(--border); background: var(--muted); border-radius: .5rem;
  padding: .375rem .625rem; font-size: .75rem; font-weight: 600; color: var(--foreground);
}
.doc-chip:hover { background: color-mix(in oklab, var(--gold) 15%, var(--muted)); border-color: var(--gold); }
.doc-chip svg { color: var(--gold); }
.muted-note { font-size: .8125rem; color: var(--muted-foreground); font-style: italic; }
@media (min-width: 768px) {
  .admin-cards { display: none; }
  .admin-table-wrap { display: block; }
  .admin-status-form { gap: .375rem; }
  .admin-status-form select { flex: none; width: auto; padding: .35rem .5rem; font-size: .8125rem; }
}

/* labeled field (Y component) */
.field-label { display: block; }
.field-label > span { display: block; margin-bottom: .25rem; font-size: .75rem; font-weight: 600; color: var(--muted-foreground); }
.field-input {
  width: 100%; max-width: 100%; border-radius: .5rem; border: 1px solid var(--input);
  background: var(--background); padding: .5rem .75rem; font-size: 1rem; color: var(--foreground);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field-input:focus { border-color: var(--foreground); box-shadow: 0 0 0 2px color-mix(in oklab, var(--foreground) 15%, transparent); }
.field-input.on-dark { color: var(--foreground); }
.field-grid2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-grid2 { grid-template-columns: 1fr 1fr; } }

.segmented2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.segmented2 button {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .5rem; border: 1px solid var(--border); background: transparent;
  padding: .5rem .75rem; font-size: .875rem; font-weight: 600; color: var(--foreground); transition: background .15s;
}
.segmented2 button:hover { background: var(--muted); }
.segmented2 button.active { border-color: var(--navy); background: var(--navy); color: #fff; }

.checkbox-row { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; }
.checkbox-row input { margin-top: .25rem; accent-color: var(--navy); width: 1rem; height: 1rem; }
.inline-link { text-decoration: underline; text-underline-offset: .15rem; color: var(--foreground); font-weight: 600; }

.alert-error { display: flex; align-items: flex-start; gap: .5rem; border-radius: .5rem; border: 1px solid color-mix(in oklab, var(--destructive) 30%, var(--border)); background: color-mix(in oklab, var(--destructive) 5%, transparent); padding: .75rem; font-size: .875rem; color: var(--destructive); }
.alert-success { border-radius: .75rem; border: 1px solid color-mix(in oklab, #10b981 30%, var(--border)); background: color-mix(in oklab, #10b981 5%, transparent); padding: 1rem; margin-top: 1rem; }
.alert-success .head { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: #047857; }
.alert-success .ticket-line { margin-top: .25rem; font-size: .875rem; }
.alert-success .ticket-line .mono { font-family: monospace; font-weight: 700; }
.progress-track { margin-top: .75rem; height: .5rem; overflow: hidden; border-radius: 999px; background: color-mix(in oklab, #10b981 10%, transparent); }
.progress-fill { height: 100%; border-radius: 999px; background: #10b981; transition: width .3s; }
.alert-success .status-line { margin-top: .5rem; font-size: .75rem; color: color-mix(in oklab, #047857 80%, transparent); }

/* upload section */
.upload-grid { margin-top: 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .upload-grid { grid-template-columns: 1.3fr 1fr; } }
.upload-left { padding: 1.25rem; }
@media (min-width: 640px) { .upload-left { padding: 1.5rem; } }
.upload-left .rows { display: grid; gap: 1rem; }
.upload-doc-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .75rem; border-radius: .75rem; border: 1px solid var(--border); background: var(--background); padding: .75rem; }
.upload-doc-row .info { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.upload-doc-row .icn { display: grid; place-items: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: .5rem; background: var(--muted); color: var(--muted-foreground); }
.upload-doc-row .icn.done { background: color-mix(in oklab, #10b981 10%, transparent); color: #059669; }
.upload-doc-row .text { min-width: 0; }
.upload-doc-row .text .name { font-size: .875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-doc-row .text .hint { font-size: .75rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-doc-row .pick-btn { flex-shrink: 0; cursor: pointer; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--foreground) 20%, transparent); background: color-mix(in oklab, var(--foreground) 5%, transparent); padding: .375rem .75rem; font-size: .75rem; font-weight: 600; color: var(--foreground); }
.upload-doc-row input[type=file] { display: none; }

.upload-right { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .upload-right { padding: 1.5rem; } }

/* pricing */
.pricing-grid { margin-top: 2rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.price-card { position: relative; overflow: hidden; padding: 1.5rem; }
.price-card.featured { box-shadow: 0 0 0 2px var(--gold); }
.price-card .badge-popular { position: absolute; inset-inline-end: 1rem; top: 1rem; border-radius: 999px; background: var(--gold); padding: .25rem .625rem; font-size: 10px; font-weight: 700; color: var(--navy-deep); }
.price-card .head { display: flex; align-items: center; gap: .75rem; }
.price-card .head .icn { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .75rem; background: var(--navy); color: var(--gold); }
.price-card .head .kind { font-size: .875rem; color: var(--muted-foreground); }
.price-card .head .amount { font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; color: var(--foreground); }
.price-card .includes { margin-top: 1rem; font-size: .875rem; }
.price-card .detail { margin-top: .25rem; font-size: .75rem; color: var(--muted-foreground); }
.price-card .btn-navy { margin-top: 1.5rem; width: 100%; }

/* payment */
.pay-grid { margin-top: 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .pay-grid { grid-template-columns: 1fr 1.2fr; } }
.pay-left { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.amount-row { display: flex; align-items: center; justify-content: space-between; border-radius: .75rem; border: 1px solid var(--border); background: color-mix(in oklab, var(--secondary) 40%, transparent); padding: 1rem; }
.amount-row .lbl { font-size: .875rem; color: var(--muted-foreground); }
.amount-row .val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--foreground); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.method-btn { display: flex; flex-direction: column; align-items: center; gap: .25rem; border-radius: .5rem; border: 1px solid var(--border); background: transparent; padding: .75rem .5rem; font-size: .75rem; font-weight: 600; color: var(--foreground); }
.method-btn:hover { background: var(--muted); }
.method-btn.active { border-color: var(--foreground); background: color-mix(in oklab, var(--foreground) 6%, transparent); color: var(--foreground); }
.secure-note { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--muted-foreground); }
.secure-note svg { color: #16a34a; }
.pay-right { padding: 1.5rem; }
.pay-panel { display: none; }
.pay-panel.active { display: block; }
.bank-box { border-radius: .75rem; background: var(--navy); padding: 1.25rem; color: #fff; }
.bank-box .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-soft); }
.bank-box .kv-grid { margin-top: .75rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; font-size: .875rem; }
.kv .k { font-size: 11px; color: var(--gold-soft); }
.kv .v { font-family: monospace; font-weight: 700; }
.reveal-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  margin-top: .85rem; border: 1px dashed color-mix(in oklab, var(--gold) 50%, transparent);
  background: color-mix(in oklab, var(--gold) 12%, transparent); color: color-mix(in oklab, var(--gold) 70%, var(--foreground));
  border-radius: .6rem; padding: .6rem .75rem; font-size: .8125rem; font-weight: 700;
}
.reveal-btn:hover { background: color-mix(in oklab, var(--gold) 18%, transparent); }
.reveal-btn.done { display: none; }
.bank-box .reveal-btn { color: var(--gold-soft); }
.pay-panel .field-grid2 { margin-top: 1rem; }
.pay-panel .field-label { margin-top: 1rem; }
.pay-panel .field-label:first-child { margin-top: 0; }
.simple-box { border-radius: .75rem; border: 1px solid var(--border); background: color-mix(in oklab, var(--secondary) 40%, transparent); padding: 1.25rem; }
.simple-box .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.simple-box .amt { margin-top: .5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.simple-box p { margin: .5rem 0 0; font-size: .875rem; color: var(--muted-foreground); }
.btn-paypal { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; border-radius: 999px; background: #003087; color: #fff; padding: .75rem; font-size: .875rem; font-weight: 700; }
.btn-paypal:hover { filter: brightness(1.1); }
.demo-confirm-box { border-radius: .5rem; background: color-mix(in oklab, #10b981 10%, transparent); padding: .75rem; font-size: .875rem; color: #047857; margin-top: 1rem; }

/* why us */
.why-grid { margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card { padding: 1.25rem; }
.why-card .icn { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: color-mix(in oklab, var(--foreground) 6%, transparent); color: var(--foreground); }
.why-card .label { margin-top: .75rem; font-weight: 600; }
.why-card .desc { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }

/* faq */
.faq-box { margin-top: 1.5rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: none; border: none; text-align: start; font-weight: 600; color: var(--foreground); }
.faq-q svg { transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.25rem 1.25rem; font-size: .875rem; color: var(--muted-foreground); }
.faq-item.open .faq-a { display: block; }

/* contact (dark navy section) */
.contact-section { background: var(--navy); color: #fff; }
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-section .eyebrow { background: color-mix(in oklab, var(--gold) 15%, transparent); }
.contact-info { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; }
.contact-info .row { display: flex; align-items: center; gap: .75rem; }
.contact-info .icn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .5rem; background: rgba(255,255,255,.1); color: var(--gold); flex-shrink: 0; }
.contact-info .k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); }
.contact-info .v { font-family: monospace; font-weight: 600; }
.contact-info a:hover .v, .contact-info a:hover .k { color: var(--gold); }
.contact-form-card { border-radius: 1rem; background: rgba(255,255,255,.1); padding: 1.5rem; }
.contact-form-card .field-grid { display: grid; gap: 1rem; }
.contact-form-card .field-label > span { color: rgba(255,255,255,.7); }

/* legal / policy pages */
.legal-page { max-width: 46rem; }
.legal-updated { margin-top: .5rem; font-size: .8125rem; color: var(--muted-foreground); }
.legal-notice {
  display: flex; align-items: flex-start; gap: .625rem; margin-top: 1.5rem;
  border: 1px solid var(--border); background: color-mix(in oklab, var(--gold) 8%, transparent);
  border-radius: .75rem; padding: 1rem 1.1rem; font-size: .8125rem; line-height: 1.6; color: var(--muted-foreground);
}
.legal-notice svg { flex-shrink: 0; margin-top: .15rem; color: var(--gold); }
.legal-content { margin-top: 2rem; }
.legal-content h2 { font-size: 1.1rem; font-weight: 700; margin: 2rem 0 .75rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 .9rem; font-size: .9375rem; line-height: 1.75; color: var(--muted-foreground); }
.legal-content ul { margin: 0 0 .9rem; padding-inline-start: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.legal-content li { font-size: .9375rem; line-height: 1.7; color: var(--muted-foreground); }
.legal-content strong { color: var(--foreground); }

/* footer */

.site-footer { background: var(--background); border-top: 1px solid var(--border); }

.footer-deco {
  position: relative; height: 4.5rem; overflow: hidden; background: var(--muted); pointer-events: none;
  border-block: 1px solid var(--border);
}
.footer-deco::before {
  content: ""; position: absolute; inset: 0; opacity: .5; filter: invert(1) brightness(.65) saturate(0);
  background-repeat: no-repeat; background-size: 100% auto; background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='70' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40,52 C300,60 420,20 720,28 C1020,36 1160,12 1400,48' stroke-dasharray='2 10' opacity='.7'/%3E%3Cg transform='translate(100,32)'%3E%3Cpath d='M12 10.2V14'/%3E%3Cpath d='M12 2v3'/%3E%3Cpath d='M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6'/%3E%3Cpath d='M19.4 20A11.6 11.6 0 0 0 21 14l-8.2-3.6a2 2 0 0 0-1.6 0L3 14a11.6 11.6 0 0 0 2.8 7.8'/%3E%3Cpath d='M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1'/%3E%3C/g%3E%3Cg transform='translate(670,0) rotate(18 12 12)'%3E%3Cpath d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8l-8.2-1.8c-.3-.1-.6 0-.8.2L2.9 7.5c-.5.5-.4 1.2.2 1.5l5.6 3.4L6 15l-1.8-.3c-.3 0-.6 0-.8.3l-.9.9c-.4.4-.4 1 0 1.4l3.9 2.5 2.5 3.9c.4.4 1 .4 1.4 0l.9-.9c.3-.2.4-.5.3-.8L10 18l3.3-3.3 3.4 5.6c.3.6 1 .7 1.5.2l1.6-1.6c.2-.2.3-.5.2-.8z'/%3E%3C/g%3E%3Cg transform='translate(980,4)'%3E%3Cpath d='M12 6v16'/%3E%3Cpath d='m19 13 2-1a9 9 0 0 1-18 0l2 1'/%3E%3Cpath d='M9 11h6'/%3E%3Ccircle cx='12' cy='4' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
:root.dark .footer-deco { background: var(--navy-deep); border-block-color: transparent; }
:root.dark .footer-deco::before { opacity: .18; filter: none; }

.footer-grid { padding-block: 3rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; } }

.footer-about .brandline { display: flex; align-items: center; gap: .625rem; }
.footer-about .brand-badge {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem;
  background: var(--navy); color: var(--gold); flex-shrink: 0;
}
.footer-about .brandline strong { font-size: 1.05rem; font-weight: 700; color: var(--foreground); }
.footer-about p { margin: .85rem 0 0; font-size: .8125rem; line-height: 1.6; color: var(--muted-foreground); max-width: 18rem; }
.footer-status {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem;
  font-size: .75rem; font-weight: 600; color: var(--muted-foreground);
  background: color-mix(in oklab, #22c55e 10%, transparent); border: 1px solid color-mix(in oklab, #22c55e 25%, transparent);
  border-radius: 999px; padding: .35rem .75rem;
}
.footer-status .dot { width: .5rem; height: .5rem; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }

.footer-links-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .footer-links-wrap { display: contents; } }

.footer-links-title {
  margin: 0 0 .9rem; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--foreground);
}

.footer-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.footer-links a { display: inline-block; padding-block: .125rem; font-size: .8125rem; color: var(--muted-foreground); }
.footer-links a:hover { color: var(--foreground); }

.footer-contact-boxes { display: flex; flex-direction: column; gap: .75rem; }
.contact-box {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  border: 1px solid var(--border); background: var(--card); border-radius: .6rem;
  padding: .5rem .5rem .5rem .9rem; font-size: .8125rem; color: var(--foreground);
}
.contact-box:hover { border-color: var(--gold); }
.contact-box .ic {
  display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem;
  border-radius: .45rem; background: color-mix(in oklab, var(--navy) 6%, transparent); color: var(--foreground);
}

.footer-bottom-bar { position: relative; background: var(--navy-deep); }
.footer-bottom {
  position: relative; z-index: 1;
  padding-block: 1.25rem; display: flex; align-items: center; justify-content: center; text-align: center;
}
.footer-bottom-bar .copy { font-size: .75rem; color: rgba(255,255,255,.55); }

/* bottom app nav (mobile/tablet only) */
body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body { padding-bottom: 0; } }
.bottom-nav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 98%, transparent);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px -8px rgba(0,0,0,.25);
}
@media (min-width: 1024px) { .bottom-nav { display: none; } }
.bottom-nav a {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.5rem; color: var(--muted-foreground);
  transition: color .15s;
}
.bottom-nav a svg { width: 1.5rem; height: 1.5rem; }
.bottom-nav a.active { color: var(--foreground); }
.bottom-nav a.active svg { color: var(--foreground); }

/* language-change toast */
.toast { position: fixed; inset-inline: 0; top: calc(1rem + env(safe-area-inset-top)); z-index: 60; display: none; justify-content: center; padding-inline: 1rem; }
.toast.show { display: flex; }
.toast .box { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: .5rem 1rem; box-shadow: 0 10px 25px -10px rgba(0,0,0,.3); font-size: .875rem; font-weight: 500; }
.toast .box svg { color: var(--gold); }
.toast .close-btn { border: none; background: none; border-radius: 999px; padding: .25rem; color: var(--muted-foreground); }
.toast .close-btn:hover { background: var(--muted); }
