/* ============================================
   GlobalEXB — XM'den esinlenilmiş tasarım sistemi
   Açık tema · Crimson kırmızı vurgu · Kurumsal broker
   ============================================ */

:root {
  --red: #e2103f;
  --red-dark: #b50d33;
  --red-soft: #fdecef;
  --navy: #16202e;
  --navy-2: #1e2c3d;
  --navy-3: #26374c;
  --ink: #1b2733;
  --ink-2: #47576a;
  --ink-3: #7d8da0;
  --muted: #8a99ab;
  --line: #e4e9f0;
  --line-2: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-soft-2: #eef2f7;
  --green: #16a34a;
  --green-soft: #e7f7ee;
  --red2: #dc2626;
  --red2-soft: #fdeaea;
  --gold: #f5a623;
  --brand-gold: #c9a24b;
  --brand-gold-dk: #a8843a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16,32,48,0.08), 0 1px 2px rgba(16,32,48,0.04);
  --shadow: 0 8px 30px -8px rgba(16,32,48,0.18);
  --shadow-lg: 0 24px 60px -20px rgba(16,32,48,0.28);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.red { color: var(--red); }
.green { color: var(--green); }
.neg { color: var(--red2); }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 15px; transition: all 0.18s ease; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px -6px rgba(226,16,63,0.5); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-ghost { background: var(--bg-soft); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ============================================
   TOP UTILITY BAR + NAV
   ============================================ */
.utilbar { background: var(--navy); color: #cdd6e0; font-size: 13px; }
.utilbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.utilbar a { color: #cdd6e0; }
.utilbar a:hover { color: #fff; }
.utilbar .left { display: flex; gap: 20px; align-items: center; }
.utilbar .right { display: flex; gap: 16px; align-items: center; }

.nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.5px; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--red); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; }
.logo-mark.dark { background: #fff; color: var(--red); }
.nav-links { display: flex; gap: 4px; }
.nav-links > li > a { display: block; padding: 10px 14px; color: var(--ink-2); font-size: 15px; font-weight: 600; border-radius: 6px; transition: all 0.15s; }
.nav-links > li > a:hover { color: var(--red); background: var(--bg-soft); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ============================================
   HERO
   ============================================ */
.hero { background: linear-gradient(180deg, #fbfcfe 0%, #f2f5f9 100%); padding: 60px 0 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 100px; margin-bottom: 22px; }
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -1.5px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.hero h1 .red { color: var(--red); }
.hero .lead { font-size: 19px; color: var(--ink-2); margin-bottom: 30px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; align-items: center; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; gap: 7px; align-items: center; }
.hero-visual { position: relative; padding-bottom: 40px; }

/* Trade widget */
.tw { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.tw-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.tw-pair { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tw-flag { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft-2); display: grid; place-items: center; font-size: 15px; }
.tw-price { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.tw-chart { height: 150px; padding: 8px 12px 0; }
.tw-rows { padding: 8px 12px 14px; }
.tw-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 10px; border-radius: 8px; font-size: 14px; }
.tw-row:hover { background: var(--bg-soft); }
.tw-row .sym { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.dotm { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft-2); display: grid; place-items: center; font-size: 12px; }
.chg { font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 100px; }
.chg.up { background: var(--green-soft); color: var(--green); }
.chg.down { background: var(--red2-soft); color: var(--red2); }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy); overflow: hidden; }
.ticker-track { display: flex; gap: 44px; padding: 12px 0; animation: scroll 42s linear infinite; white-space: nowrap; }
.ticker-item { display: inline-flex; gap: 9px; font-size: 14px; font-weight: 600; color: #e6ebf1; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stat strip ---------- */
.stat-strip { background: #fff; border-bottom: 1px solid var(--line); }
.stat-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { text-align: center; padding: 34px 20px; border-right: 1px solid var(--line-2); }
.stat-cell:last-child { border-right: none; }
.stat-cell .n { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -1px; }
.stat-cell .l { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 80px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.sec-head .eyebrow { color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.sec-head h2 { font-size: 40px; letter-spacing: -1px; color: var(--navy); margin: 12px 0 14px; line-height: 1.1; }
.sec-head p { color: var(--ink-2); font-size: 17px; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy .sec-head h2 { color: #fff; }
.bg-navy .sec-head p { color: #b9c4d0; }

/* Account types */
.acct-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.acct-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; transition: all 0.2s; position: relative; }
.acct-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-4px); }
.acct-card.featured { border-color: var(--red); box-shadow: var(--shadow); }
.acct-tag { position: absolute; top: -11px; left: 24px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.acct-card h3 { font-size: 21px; color: var(--navy); margin-bottom: 6px; }
.acct-card .desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; min-height: 40px; }
.acct-specs { border-top: 1px solid var(--line-2); padding-top: 16px; margin-bottom: 20px; }
.acct-spec { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.acct-spec .k { color: var(--ink-2); }
.acct-spec .v { font-weight: 700; color: var(--ink); }

/* Feature cards */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; transition: all 0.2s; }
.feat:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feat-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 25px; margin-bottom: 18px; }
.feat h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: 15px; }
.bg-navy .feat { background: var(--navy-2); border-color: var(--navy-3); }
.bg-navy .feat h3 { color: #fff; }
.bg-navy .feat p { color: #b9c4d0; }

/* Instruments */
.inst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.inst { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; align-items: center; gap: 14px; transition: all 0.2s; }
.inst:hover { border-color: var(--red); transform: translateY(-2px); }
.inst .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; font-size: 22px; }
.inst .nm { font-weight: 700; color: var(--navy); }
.inst .sub { font-size: 13px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 10px; }
.step-num { width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center; margin: 0 auto 16px; }
.step h4 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Platforms */
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; text-align: center; transition: all 0.2s; }
.plat:hover { box-shadow: var(--shadow); }
.plat .ic { font-size: 34px; margin-bottom: 12px; }
.plat h4 { color: var(--navy); margin-bottom: 4px; }
.plat p { font-size: 13px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--red), var(--red-dark)); border-radius: 22px; padding: 56px; text-align: center; color: #fff; }
.cta-band h2 { font-size: 38px; letter-spacing: -1px; margin-bottom: 12px; }
.cta-band p { font-size: 18px; opacity: 0.92; margin-bottom: 28px; }

/* Footer */
footer { background: var(--navy); color: #aeb9c6; padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.foot-col a { display: block; color: #aeb9c6; margin-bottom: 10px; font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid var(--navy-3); padding-top: 24px; font-size: 13px; }
.risk { font-size: 12px; color: #8b98a8; line-height: 1.7; margin-bottom: 16px; }

/* ============================================
   AUTH — Login + multi-step register
   ============================================ */
.auth-body { background: var(--bg-soft); min-height: 100vh; }
.auth-top { background: #fff; border-bottom: 1px solid var(--line); }
.auth-top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.auth-main { max-width: 1080px; margin: 0 auto; padding: 40px 24px 60px; }

.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.login-wrap { display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; }
.login-visual { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.login-visual h2 { font-size: 30px; letter-spacing: -0.5px; margin-bottom: 16px; }
.login-visual p { color: #b9c4d0; margin-bottom: 26px; }
.login-visual .lv-feat { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; color: #dbe3ec; font-size: 15px; }
.login-visual .lv-ic { width: 30px; height: 30px; border-radius: 7px; background: rgba(226,16,63,0.2); color: #ff6b8a; display: grid; place-items: center; flex-shrink: 0; }
.login-form { padding: 44px; }
.login-form h1 { font-size: 26px; color: var(--navy); margin-bottom: 6px; }
.login-form .sub { color: var(--ink-2); margin-bottom: 26px; font-size: 15px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select { width: 100%; padding: 12px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 15px; font-family: inherit; transition: border-color 0.15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--red); }
.field input::placeholder { color: var(--muted); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin: 4px 0 20px; }
.form-foot a { color: var(--red); font-weight: 600; }
.check { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { width: auto; margin-top: 3px; }
.hidden { display: none !important; }

/* Register wizard */
.wizard { max-width: 720px; margin: 0 auto; }
.wiz-steps { display: flex; align-items: center; margin-bottom: 30px; }
.wiz-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.wiz-step .circle { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: 14px; z-index: 2; transition: all 0.2s; }
.wiz-step .lbl { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; font-weight: 600; }
.wiz-step::before { content: ''; position: absolute; top: 18px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 1; }
.wiz-step:first-child::before { display: none; }
.wiz-step.active .circle { border-color: var(--red); color: var(--red); }
.wiz-step.done .circle { background: var(--red); border-color: var(--red); color: #fff; }
.wiz-step.done::before, .wiz-step.active::before { background: var(--red); }
.wiz-step.active .lbl, .wiz-step.done .lbl { color: var(--ink); }
.wiz-panel { display: none; }
.wiz-panel.active { display: block; animation: fade 0.3s; }
.wiz-panel h2 { font-size: 24px; color: var(--navy); margin-bottom: 4px; }
.wiz-panel .psub { color: var(--ink-2); margin-bottom: 24px; }
.wiz-nav { display: flex; justify-content: space-between; margin-top: 26px; }
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.opt-card { border: 1.5px solid var(--line); border-radius: 10px; padding: 16px; cursor: pointer; transition: all 0.15s; }
.opt-card:hover { border-color: var(--red); }
.opt-card.active { border-color: var(--red); background: var(--red-soft); }
.opt-card .t { font-weight: 700; color: var(--navy); }
.opt-card .d { font-size: 13px; color: var(--ink-2); margin-top: 3px; }

/* ============================================
   MEMBERS AREA (app.html)
   ============================================ */
.app-body { background: var(--bg-soft); }
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #cdd6e0; padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #fff; padding: 6px 10px 20px; }
.side-logo .logo-mark { width: 30px; height: 30px; font-size: 16px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #6b7a8c; padding: 16px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: #c4cede; font-weight: 500; font-size: 14.5px; cursor: pointer; margin-bottom: 2px; transition: all 0.15s; }
.side-link:hover { background: var(--navy-2); color: #fff; }
.side-link.active { background: var(--red); color: #fff; }
.side-link .ic { width: 20px; text-align: center; }
.side-link .badge-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--navy-3); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.side-user .av { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }

.main { display: flex; flex-direction: column; min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 30px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar h1 { font-size: 21px; color: var(--navy); }
.topbar-actions { display: flex; gap: 12px; align-items: center; }
.acct-pill { display: flex; align-items: center; gap: 9px; padding: 8px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.page { padding: 28px 30px; max-width: 1180px; width: 100%; }
.page-section { display: none; }
.page-section.active { display: block; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Verification banner */
.verify-banner { display: flex; align-items: center; gap: 16px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; }
.verify-banner.ok { background: var(--green-soft); border-color: #a7e0bf; }
.verify-banner .vb-ic { width: 40px; height: 40px; border-radius: 10px; background: #fef3c7; color: #d97706; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.verify-banner.ok .vb-ic { background: #c6efd6; color: var(--green); }
.verify-banner .vb-txt { flex: 1; }
.verify-banner .vb-txt b { color: var(--ink); }
.verify-banner .vb-txt p { font-size: 14px; color: var(--ink-2); }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.kpi .lbl { color: var(--ink-2); font-size: 13px; margin-bottom: 8px; }
.kpi .val { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.kpi .chg { font-size: 13px; font-weight: 600; margin-top: 5px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-head h3 { font-size: 17px; color: var(--navy); }
.link-more { color: var(--red); font-weight: 600; font-size: 14px; cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-2-wide { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }

/* Table */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--ink); }
tr:last-child td { border-bottom: none; }
.tag { padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; display: inline-block; }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-red { background: var(--red2-soft); color: var(--red2); }
.tag-amber { background: #fef3c7; color: #d97706; }
.tag-grey { background: var(--bg-soft-2); color: var(--ink-2); }

.chart-box { height: 250px; position: relative; }

/* Account cards in members area */
.acct-row { display: flex; align-items: center; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; transition: border-color 0.15s; }
.acct-row:hover { border-color: var(--red); }
.acct-row .meta .id { font-weight: 700; color: var(--navy); }
.acct-row .meta .sub { font-size: 13px; color: var(--muted); }
.acct-row .bal { font-size: 20px; font-weight: 800; color: var(--navy); }

/* Segments */
.seg { display: flex; gap: 6px; background: var(--bg-soft); padding: 5px; border-radius: 10px; margin-bottom: 22px; }
.seg button { flex: 1; padding: 11px; border-radius: 7px; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: all 0.15s; }
.seg button.active { background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.method { padding: 18px 14px; border: 1.5px solid var(--line); border-radius: 10px; text-align: center; cursor: pointer; transition: all 0.15s; }
.method:hover, .method.active { border-color: var(--red); background: var(--red-soft); }
.method .ic { font-size: 26px; margin-bottom: 8px; }
.method .nm { font-size: 14px; font-weight: 700; color: var(--navy); }
.method .fee { font-size: 12px; color: var(--muted); margin-top: 2px; }

.amount-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.chip { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.15s; font-size: 14px; }
.chip:hover, .chip.active { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* Summary rows */
.sum-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.sum-row:last-child { border-bottom: none; }
.sum-row .k { color: var(--ink-2); }
.sum-row .v { font-weight: 700; color: var(--ink); }

/* Copy cards */
.copy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.copy-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; transition: all 0.2s; }
.copy-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.copy-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.copy-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-2), var(--red)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.copy-stats { display: flex; justify-content: space-between; margin: 12px 0; padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.copy-stat .v { font-weight: 800; font-size: 15px; }
.copy-stat .l { font-size: 11px; color: var(--muted); }

/* KYC upload tiles */
.kyc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kyc-tile { border: 1.5px dashed var(--line); border-radius: 12px; padding: 24px; text-align: center; transition: all 0.15s; }
.kyc-tile.done { border-style: solid; border-color: #a7e0bf; background: var(--green-soft); }
.kyc-tile .kic { font-size: 34px; margin-bottom: 10px; }
.kyc-tile h4 { color: var(--navy); margin-bottom: 4px; }
.kyc-tile p { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }

.progress { height: 8px; background: var(--bg-soft-2); border-radius: 100px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--red); border-radius: 100px; transition: width 0.4s; }

/* Toast + modal */
.toast { position: fixed; bottom: 26px; right: 26px; background: var(--navy); color: #fff; border-radius: 12px; padding: 15px 20px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); transform: translateX(150%); transition: transform 0.4s cubic-bezier(.2,.9,.3,1.3); z-index: 1000; max-width: 360px; }
.toast.show { transform: translateX(0); }
.toast .ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(22,163,74,0.25); color: #4ade80; display: grid; place-items: center; flex-shrink: 0; }
.modal-overlay { position: fixed; inset: 0; background: rgba(16,28,42,0.55); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 900; padding: 20px; }
.modal-overlay.show { display: grid; }
.modal { background: #fff; border-radius: 16px; padding: 30px; max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal h3 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.modal p { color: var(--ink-2); margin-bottom: 20px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .login-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 38px; }
  .acct-grid, .feat-grid, .inst-grid, .plat-grid, .steps { grid-template-columns: 1fr 1fr; }
  .stat-strip-inner { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .kpi-grid, .copy-grid, .method-grid, .kyc-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-2-wide { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .login-visual { display: none; }
}
@media (max-width: 560px) {
  .acct-grid, .feat-grid, .inst-grid, .plat-grid, .steps, .kpi-grid, .copy-grid, .method-grid, .kyc-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .page, .topbar { padding-left: 18px; padding-right: 18px; }
}

/* ============================================
   Marka + Kurallar / Kullanım Şartları
   ============================================ */
.gold { color: var(--brand-gold); }
.logo .wm-exp { color: var(--brand-gold); }

/* ---- Logo yerleşimi (gerçek amblem) ---- */
/* Navbar/başlık: amblemi yuvarlak "mühür" rozetine kırp (kendi görseli zemin, renk uyuşmazlığı olmaz) */
.logo-mark {
  background: #0a0f1e url('logo.jpg') no-repeat center 27% / 172%;
  border: 1px solid rgba(201, 162, 75, 0.55);
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: 0 2px 8px rgba(10, 16, 30, 0.18);
  flex-shrink: 0;
}
.side-logo .logo-mark { box-shadow: none; }
/* Koyu bölümlerde tam logo: siyaha yakın zemin 'screen' ile kaybolur, altın amblem+yazı parlar */
.foot-logo { width: 200px; max-width: 60%; mix-blend-mode: screen; margin-bottom: 14px; display: block; }
.brand-logo { width: 155px; mix-blend-mode: screen; margin-bottom: 22px; display: block; }

/* Rules page */
.rules-hero { background: var(--navy); color: #fff; padding: 56px 0; }
.rules-hero h1 { font-size: 40px; letter-spacing: -1px; margin-bottom: 10px; }
.rules-hero p { color: #b9c4d0; max-width: 640px; }
.rules-hero .wm-exp { color: var(--brand-gold); }
.rules-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 44px 0 70px; align-items: start; }
.rules-toc { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.rules-toc a { display: block; padding: 8px 12px; border-radius: 7px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.rules-toc a:hover { background: var(--bg-soft); color: var(--red); }
.rule-block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; margin-bottom: 20px; scroll-margin-top: 90px; }
.rule-block h2 { font-size: 22px; color: var(--navy); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.rule-block .rb-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 18px; }
.rule-block > p { color: var(--ink-2); margin-bottom: 14px; }
.rule-list { list-style: none; }
.rule-list li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 15px; }
.rule-list li:last-child { border-bottom: none; }
.rule-list li::before { content: '✓'; position: absolute; left: 0; top: 9px; color: var(--green); font-weight: 800; }
.rule-list.warn li::before { content: '✕'; color: var(--red2); }
.rule-list.dot li::before { content: '•'; color: var(--red); font-size: 20px; top: 6px; }
.lev-table td .k { display: flex; align-items: center; gap: 10px; }
.lev-badge { display: inline-block; padding: 4px 12px; border-radius: 100px; background: var(--navy); color: var(--brand-gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.formula { background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 10px; font-family: monospace; font-size: 15px; margin: 10px 0; }
.formula b { color: var(--brand-gold); }
.consent-list { list-style: none; }
.consent-list li { position: relative; padding: 11px 0 11px 34px; font-size: 15px; color: var(--ink); }
.consent-list li::before { content: '✅'; position: absolute; left: 0; top: 9px; }
.note-box { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 14px 18px; font-size: 14px; color: #92582a; margin-top: 12px; }
.note-box b { color: #7c4518; }

/* Info list used in members area rules section */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 4px; }
.info-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.info-card .t { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.info-card .v { font-weight: 800; color: var(--navy); font-size: 18px; }

@media (max-width: 980px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-toc { position: static; margin-bottom: 10px; }
  .info-cards { grid-template-columns: 1fr; }
}

/* ============================================
   Dil Seçici (i18n)
   ============================================ */
.lang-select { position: relative; display: inline-block; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; user-select: none; white-space: nowrap; }
.lang-btn .caret { opacity: 0.6; font-size: 11px; }
.lang-menu { position: absolute; top: 100%; right: 0; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 180px; padding: 6px; z-index: 300; display: none; }
.lang-menu.open { display: block; }
.lang-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 500; }
.lang-opt:hover { background: var(--bg-soft); }
.lang-opt.active { color: var(--red); font-weight: 700; background: var(--red-soft); }
.lang-opt .flag { font-size: 17px; }
/* RTL desteği (Arapça) */
html[dir="rtl"] .nav-links, html[dir="rtl"] .hero-trust, html[dir="rtl"] .utilbar .left, html[dir="rtl"] .utilbar .right { direction: rtl; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .hero .lead, html[dir="rtl"] .sec-head { text-align: inherit; }

/* ============================================
   Kurumsal Kayıt (ASIC company extract) kartı
   ============================================ */
.corp-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.corp-head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; }
.corp-badge { width: 54px; height: 54px; border-radius: 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(201,162,75,0.5); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--brand-gold); flex-shrink: 0; letter-spacing: 0.5px; }
.corp-name { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.corp-acn { font-size: 14px; color: #b9c4d0; font-variant-numeric: tabular-nums; }
.corp-verify { margin-left: auto; flex-shrink: 0; }
.corp-rows { padding: 8px 26px; }
.corp-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.corp-row:last-child { border-bottom: none; }
.corp-row .k { color: var(--ink-2); font-weight: 600; flex-shrink: 0; }
.corp-row .v { color: var(--ink); text-align: right; }
.corp-note { padding: 14px 26px 22px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-2); }
@media (max-width: 560px) {
  .corp-head { flex-wrap: wrap; }
  .corp-verify { margin-left: 0; width: 100%; justify-content: center; }
  .corp-row { flex-direction: column; gap: 3px; }
  .corp-row .v { text-align: left; }
}
