/* ==========================================================================
   Gümüşsoy Döviz – styles
   ========================================================================== */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #17171a;
  --ink-2: #3a3a40;
  --muted: #6d6b70;
  --line: #e8e3d8;
  --gold: #a87b22;
  --gold-strong: #8a6417;
  --gold-soft: #f4ead3;
  --gold-bright: #e0b95c;
  --dark: #141416;
  --dark-2: #1d1d21;
  --up: #15803d;
  --up-bg: rgba(21, 128, 61, .12);
  --down: #c2261f;
  --down-bg: rgba(194, 38, 31, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 22, .04), 0 8px 24px rgba(20, 20, 22, .06);
  --header-h: 68px;
  --quickbar-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* Arabic UI: no Noto Sans Arabic webfont (I18N-SPEC.md §1.3, decision D2) — every target platform
   already ships a good Arabic face, so the stack just extends with the system ones. */
:root[data-lang="ar"] {
  --font: "Inter", system-ui, -apple-system, "SF Arabic", "Geeza Pro",
          "Noto Sans Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11;
    --surface: #17171a;
    --surface-2: #1c1c20;
    --ink: #f3f0e9;
    --ink-2: #d4d0c7;
    --muted: #9c988f;
    --line: #2a2a2f;
    --gold: #e0b95c;
    --gold-strong: #ecc977;
    --gold-soft: rgba(224, 185, 92, .12);
    --up: #4ade80;
    --up-bg: rgba(74, 222, 128, .14);
    --down: #f87171;
    --down-bg: rgba(248, 113, 113, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 900px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sprite { position: absolute; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(180deg, #e7c46f, #c99a3b); color: #1a1406; }
.btn-gold:hover { background: linear-gradient(180deg, #edcd7e, #d0a246); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #2a2a30; }
@media (prefers-color-scheme: dark) {
  .btn-dark { background: var(--gold); color: #1a1406; }
  .btn-dark:hover { background: var(--gold-strong); }
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 22, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #fff;
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { height: 36px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--gold-bright); white-space: nowrap; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, .12); }

.menu-toggle { display: none; }

/* Language switcher --------------------------------------------------------- */
.langbar { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.langbar button {
  border: 0; background: transparent; color: rgba(255, 255, 255, .7);
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 6px 10px; border-radius: 999px; cursor: pointer; min-height: 26px;
}
.langbar button:hover { color: #fff; }
.langbar button[aria-pressed="true"] { background: var(--gold); color: #1a1406; }
@media (max-width: 767px) {
  /* Desktop header pill is direct child of .header-inner; the in-menu copy below lives
     inside #nav, so this selector must not catch it. */
  .header-inner > .langbar { display: none; }
}

/* Language switcher inside the mobile hamburger menu -------------------- */
.nav .langbar-menu { display: none; }
@media (max-width: 767px) {
  .nav .langbar-menu {
    display: flex; justify-content: center; gap: 8px;
    margin: 12px 8px 4px; padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
  }
  .nav .langbar-menu button { min-width: 44px; min-height: 44px; font-size: 13px; }
}

@media (max-width: 860px) {
  .header-inner { gap: 12px; }
  .header-call span { display: none; }
  .header-call { margin-left: auto; width: 40px; padding: 0; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px; background: transparent; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: rgba(20, 20, 22, .97); border-bottom: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav a { padding: 14px 8px; border-radius: 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav a:last-child { border-bottom: 0; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(224, 185, 92, .22), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, rgba(224, 185, 92, .10), transparent 60%),
    var(--dark);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 36px; align-items: center;
  padding-top: 44px; padding-bottom: 52px;
}
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 84px; padding-bottom: 96px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; color: rgba(255, 255, 255, .8);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #8b8b90; position: relative; flex: none; }
.live-dot[data-state="live"] { background: #4ade80; }
.live-dot[data-state="live"]::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #4ade80; animation: pulse 2s ease-out infinite;
}
.live-dot[data-state="stale"] { background: #fbbf24; }

@keyframes pulse { from { opacity: .8; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }

.hero h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 700; margin: 18px 0 16px; letter-spacing: -.035em; }
.gold-text {
  background: linear-gradient(90deg, #f1d58e, #d3a543 60%, #f1d58e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, .72); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* On phones prices come first: the quick bar already offers call / directions. */
@media (max-width: 767px) {
  .hero-inner { gap: 20px; padding-top: 20px; padding-bottom: 28px; }
  .hero h1 { font-size: 26px; margin: 12px 0 0; }
  .hero .lead, .hero-actions { display: none; }
}

/* Ticker cards */
.tickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .tickers { gap: 16px; } }

.tick {
  position: relative;
  padding: 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .4s ease, background-color .4s ease;
}
@media (min-width: 560px) { .tick { padding: 20px; } }
.tick header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-width: 0; }
.tick h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick .trend { margin-left: auto; }
.tick dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.tick dt { font-size: 12px; color: rgba(255, 255, 255, .55); }
.tick dd { margin: 2px 0 0; font-size: clamp(16px, 2.2vw, 22px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.tick dd[data-f="sell"] { color: var(--gold-bright); }
.tick.flash-up { border-color: rgba(74, 222, 128, .6); }
.tick.flash-down { border-color: rgba(248, 113, 113, .6); }
.tick { container-type: inline-size; }
.trend:not([data-dir]) { display: none; }
@container (max-width: 250px) {
  .tick header { gap: 8px; }
  .tick .chip { width: 28px; height: 28px; font-size: 13px; }
  .tick dl { grid-template-columns: 1fr; gap: 6px; }
  .tick dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .tick dd { font-size: 18px; }
}

.chip {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 15px; font-weight: 700;
}
.chip-gold { background: linear-gradient(145deg, #f1d58e, #b98a2f); color: #2a1f08; font-size: 13px; }

/* Trend arrows */
.trend { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; line-height: 1; }
.trend[data-dir="up"] { color: var(--up); background: var(--up-bg); }
.trend[data-dir="down"] { color: var(--down); background: var(--down-bg); }
.trend[data-dir="up"]::before { content: "▲"; }
.trend[data-dir="down"]::before { content: "▼"; }
.hero .trend[data-dir="up"] { color: #4ade80; background: rgba(74, 222, 128, .15); }
.hero .trend[data-dir="down"] { color: #f87171; background: rgba(248, 113, 113, .15); }

/* Skeleton */
.skel { display: inline-block; width: 5.5em; height: .9em; border-radius: 6px; vertical-align: middle; background: linear-gradient(90deg, rgba(128, 128, 128, .15), rgba(128, 128, 128, .28), rgba(128, 128, 128, .15)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel.wide { width: 100%; height: 1.1em; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Duyurular (campaign images) ----------------------------------------------
   `--duyuru-ratio` is set from JS via el.style.setProperty (CSP-safe: no inline style="" attribute).
   The slot reserves its space via aspect-ratio BEFORE the image loads, so there is no layout shift
   when a duyuru appears, and it collapses to nothing (`hidden`) when there is none. */
.duyuru {
  --duyuru-ratio: 4;
  margin: 20px auto;
  max-width: 1200px;
  padding: 0 16px;
}
@media (min-width: 768px) { .duyuru { padding: 0 28px; } }
.duyuru[hidden] { display: none; }
.duyuru a {
  display: block;
  aspect-ratio: var(--duyuru-ratio);
  border-radius: var(--radius);
  overflow: clip;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.duyuru img { width: 100%; height: 100%; object-fit: cover; }
.duyuru-kare { max-width: none; margin: 0 0 20px; padding: 0; }
.duyuru-kare a { border-radius: var(--radius-sm); }

/* Sections --------------------------------------------------------------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.updated { font-size: 14px; color: var(--muted); }
.updated time { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

/* Prices ----------------------------------------------------------------- */
.prices { padding-top: 48px; }
.prices-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 980px) {
  .prices-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .side { position: sticky; top: calc(var(--header-h) + 20px); }
}
.side { display: grid; gap: 20px; }

.price-card { padding: 8px; overflow: clip; }
@media (min-width: 560px) { .price-card { padding: 12px; } }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  margin-bottom: 8px;
}
.tabs button {
  min-height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--muted);
  transition: background-color .15s ease, color .15s ease;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
@media (prefers-color-scheme: dark) { .tabs button[aria-selected="true"] { background: #2a2a30; } }

.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates th {
  position: sticky; top: var(--header-h); z-index: 2;
  padding: 10px 12px; background: var(--surface);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  text-align: right; border-bottom: 1px solid var(--line);
}
.rates th:first-child { text-align: left; }
.rates td { padding: 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-size: 16px; font-weight: 600; }
.rates td:first-child { text-align: left; white-space: normal; font-weight: 500; width: 100%; }
.rates tbody tr:last-child td { border-bottom: 0; }
.rates td.sell { color: var(--gold-strong); }
.rates tbody tr:not(.group):hover td { background: var(--surface-2); }
@media (max-width: 480px) {
  .rates th, .rates td { padding-left: 8px; padding-right: 8px; }
  .rates td { font-size: 15px; }
}

.unit { display: flex; align-items: center; gap: 12px; min-width: 0; }
.unit .code {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 30px; border-radius: 8px;
  background: var(--gold-soft); color: var(--gold-strong);
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
}
.unit .name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.unit .name small { font-size: 12px; font-weight: 400; color: var(--muted); }
.unit .trend { margin-left: auto; }
@media (max-width: 400px) { .unit .code { display: none; } }

.rates tr.group td {
  padding: 18px 12px 8px; border-bottom: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  background: transparent;
}
.rates tbody tr.group:first-child td { padding-top: 8px; }

.rates tr.flash-up td { animation: flashUp 1.6s ease-out; }
.rates tr.flash-down td { animation: flashDown 1.6s ease-out; }
@keyframes flashUp { from { background: var(--up-bg); } }
@keyframes flashDown { from { background: var(--down-bg); } }

.note { padding: 14px 12px 8px; font-size: 13px; color: var(--muted); }
.error-row td { text-align: center !important; color: var(--muted); font-weight: 400; padding: 28px 12px; }

/* Converter */
.converter { padding: 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 40px; padding: 4px 6px; border-radius: 9px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
@media (prefers-color-scheme: dark) { .seg input:checked + span { background: #2a2a30; } }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--surface); }

.result {
  display: grid; gap: 2px; margin-top: 4px; padding: 16px; border-radius: var(--radius-sm);
  background: var(--dark); color: #fff;
}
.result-label { font-size: 12px; color: rgba(255, 255, 255, .6); }
.result strong { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--gold-bright); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result small { font-size: 12px; color: rgba(255, 255, 255, .6); }
@media (prefers-color-scheme: dark) { .result { background: #25252a; } }

.visit { padding: 20px; }
.info-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.info-list .icon { margin-top: 3px; color: var(--gold); }
.info-list small { color: var(--muted); font-size: 13px; }
.info-list.big small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.info-list a { text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--gold); }

/* Features --------------------------------------------------------------- */
.why { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.features li { padding: 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.features h3 { font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
.features p { color: var(--muted); font-size: 15px; }
.f-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-strong); }
.f-icon .icon { width: 22px; height: 22px; }

/* About ------------------------------------------------------------------ */
.about-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.about-photo { position: relative; margin: 0; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.about-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(20, 20, 22, .85); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 14px; line-height: 1.3;
}
.about-photo figcaption strong { font-size: 26px; color: var(--gold-bright); letter-spacing: -.02em; }
.about-copy h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 18px; }
.about-copy > p { color: var(--ink-2); }
.about-copy { container-type: inline-size; }
.mv { display: grid; gap: 16px; margin-top: 28px; }
@container (min-width: 520px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv > div { padding: 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.mv h3 { font-size: 16px; margin-bottom: 8px; }
.mv p { font-size: 14.5px; color: var(--muted); }

/* Corporate -------------------------------------------------------------- */
.corporate { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 12px; overflow: hidden; }
.acc summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600; font-size: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; flex: none; }
.acc[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.acc[open] summary { border-bottom: 1px solid var(--line); }

.kv { margin: 0; padding: 8px 20px 16px; display: grid; }
.kv > div { display: grid; gap: 2px 24px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
@media (min-width: 600px) { .kv > div { grid-template-columns: 200px 1fr; } }
.kv dt { font-size: 14px; color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

.table-scroll { overflow-x: auto; padding: 4px 20px 16px; }
.simple { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.simple th, .simple td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.simple thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.simple td + td, .simple th + th { text-align: right; }
.simple tfoot th, .simple tfoot td { font-weight: 700; border-bottom: 0; }
.simple a { text-decoration: none; color: var(--gold-strong); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .simple thead { display: none; }
  .simple tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .simple th, .simple td { border: 0; padding: 2px 0; text-align: left !important; }
  .simple td:first-child, .simple tfoot th { grid-column: 1 / -1; font-weight: 600; }
  .simple td:nth-child(2) { color: var(--muted); font-size: 14px; }
  .simple td:nth-child(3) { text-align: right !important; }
}

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.contact-info, .contact-form { padding: 24px; }
.map { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.row2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-size: 14px; min-height: 1.4em; }
.form-status[data-state="ok"] { color: var(--up); }
.form-status[data-state="error"] { color: var(--down); }
.field.invalid input { border-color: var(--down); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .65); padding: 32px 0 calc(32px + var(--quickbar-h) + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
@media (min-width: 768px) { .site-footer { padding-bottom: 32px; } }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand-text strong { color: #fff; font-size: 15px; white-space: normal; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.footer-links a, .footer-link {
  color: rgba(255, 255, 255, .65); text-decoration: underline; text-underline-offset: 2px;
  background: none; border: none; padding: 0; margin: 0; font: inherit; cursor: pointer;
}
.footer-links a:hover, .footer-link:hover { color: #fff; }

/* Get the app (official store badges) --------------------------------------
   Apple SVG + Google PNG artwork is used UNMODIFIED, one file per language; only the file
   matching <html lang> is shown. Both badges render at the same visible height (--bh, >= 40px).
   Google's PNG has transparent padding built in (TR: 29/250 top+bottom; EN/AR: 41/250 all round),
   so it is drawn larger and pulled back with negative margins until its visible badge is --bh
   high. Clear space between badges is >= 1/4 of --bh. */
.store-badges { --bh: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.store-badge { display: inline-flex; align-items: center; height: var(--bh); line-height: 0; text-decoration: none; }
.store-badge:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 0; }
.store-badge img { display: none; width: auto; height: var(--bh); }
html[lang="tr"] .store-badge .b-tr, html[lang="en"] .store-badge .b-en, html[lang="ar"] .store-badge .b-ar { display: block; }
.store-play { overflow: hidden; }
.store-play img.b-tr { height: calc(var(--bh) * 250 / 192); margin-block: calc(var(--bh) * -58 / 384); }
.store-play img.b-en, .store-play img.b-ar {
  height: calc(var(--bh) * 250 / 168); margin-block: calc(var(--bh) * -82 / 336);
  margin-inline: calc(var(--bh) * -41 / 168);
}
.getapp { padding: 16px 0 0; }
.getapp-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 20px;
}
.getapp-copy h2 { font-size: 18px; font-weight: 700; }
.getapp-copy p { margin-top: 4px; font-size: 14px; color: var(--muted); max-width: 52ch; }
.footer-apps { flex: 1 0 100%; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; }

/* Çerez (cookie consent) bar -----------------------------------------------
   Anchored to the BOTTOM of the viewport (never the top: the sticky header is
   z-index 50 and must stay clickable underneath nothing). On phones the
   quickbar (z-index 40) already lives at the bottom, so the consent bar sits
   directly above it; on desktop the quickbar is hidden (>=768px) so the bar
   sits flush at bottom:0. z-index is above the quickbar but below the header,
   so it can never cover the logo/menu/langbar. */
.cerez-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--dark); color: rgba(255, 255, 255, .85);
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
}
@media (max-width: 767px) {
  .cerez-bar { bottom: calc(var(--quickbar-h) + env(safe-area-inset-bottom, 0px)); }
}
.cerez-bar[hidden] { display: none; }
.cerez-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.cerez-bar p { margin: 0; font-size: 14px; flex: 1 1 240px; }
.cerez-actions { display: flex; flex: none; gap: 8px; }

/* Reserve room for the bar while it is open so it never overlaps footer
   content or the quickbar's own reserved space. */
body[data-cerez-open] .site-footer { padding-bottom: calc(32px + var(--quickbar-h) + env(safe-area-inset-bottom, 0px) + 56px); }
@media (min-width: 768px) {
  body[data-cerez-open] .site-footer { padding-bottom: calc(32px + 56px); }
}

/* Mobile quick bar --------------------------------------------------------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; width: auto; box-sizing: border-box;
  height: calc(var(--quickbar-h) + env(safe-area-inset-bottom, 0px));
  z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
  padding: 0 6px env(safe-area-inset-bottom, 0px);
  border-radius: 18px 18px 0 0;
  background: rgba(20, 20, 22, .92); border-top: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .3);
}
.quickbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; border-radius: 12px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 500;
}
.quickbar a:first-child { background: linear-gradient(180deg, #e7c46f, #c99a3b); color: #1a1406; }
.quickbar .icon { width: 20px; height: 20px; }
@media (min-width: 768px) { .quickbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* RTL (Arabic) ------------------------------------------------------------
   I18N-SPEC.md §1.4: one block, mirroring only the rules the audit found broken. Everything
   else (flex rows, gaps, grid) mirrors on its own because `dir` is set on `<html>`. */
[dir="rtl"] body { line-height: 1.65; }

[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { left: auto; right: 8px; }

[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .header-call { margin-left: 0; margin-right: auto; }

[dir="rtl"] .tick .trend, [dir="rtl"] .unit .trend { margin-left: 0; margin-right: auto; }

[dir="rtl"] .rates th, [dir="rtl"] .rates td { text-align: left; }
[dir="rtl"] .rates th:first-child, [dir="rtl"] .rates td:first-child { text-align: right; }

[dir="rtl"] .about-photo figcaption { left: auto; right: 16px; }

[dir="rtl"] .acc summary::after {
  border-right: 0; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold);
  transform: rotate(-45deg) translateY(-3px);
}
[dir="rtl"] .acc[open] summary::after { transform: rotate(135deg) translateY(-3px); }

[dir="rtl"] .simple th, [dir="rtl"] .simple td { text-align: right; }
[dir="rtl"] .simple td + td, [dir="rtl"] .simple th + th { text-align: left; }
@media (max-width: 560px) {
  [dir="rtl"] .simple th, [dir="rtl"] .simple td { text-align: right !important; }
  [dir="rtl"] .simple td:nth-child(3) { text-align: left !important; }
}

[dir="rtl"] .hp { left: auto; right: -9999px; }
