/* Uygulamadaki renkler (android/.../ui/Theme.kt) */
:root {
  --brand: #2563EB;
  --brand-dark: #1E40AF;
  --brand-soft: #E8EFFE;
  --ink: #0A0A0A;
  --muted: #6B7280;
  --surface: #F5F5F7;
  --card: #FFFFFF;
  --chip: #E9E9EC;
  --ok: #16A34A;
  --warn: #D97706;
  --error: #DC2626;
  --green: #22C55E;
  --radius: 16px;
  --bottombar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font: inherit; }
img { display: block; }
[hidden] { display: none !important; }

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 16px calc(var(--bottombar) + 32px + env(safe-area-inset-bottom));
}

/* ---------- Gezinme: telefonda altta, bilgisayarda üstte ---------- */
.topbar { display: none; }
.bottombar {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: flex; background: #fff; border-top: 1px solid #ECECEF;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottombar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 10px; font-size: 12px; color: var(--muted); font-weight: 500;
}
.bottombar a .pill { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 15px; }
.bottombar a.active { color: var(--brand); }
.bottombar a.active .pill { background: var(--brand-soft); }
.bottombar svg { width: 24px; height: 24px; }

@media (min-width: 900px) {
  .bottombar { display: none; }
  .topbar { display: block; position: sticky; top: 0; z-index: 10; background: rgba(245,245,247,.9); backdrop-filter: blur(12px); }
  .topbar-inner { max-width: 1080px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 24px; }
  .logo { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
  .tabs { display: flex; gap: 4px; }
  .tabs a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; }
  .tabs a.active { background: var(--brand-soft); color: var(--brand); }
  .tabs svg { width: 20px; height: 20px; }
  main { padding-bottom: 48px; }
  .page-title.hide-desktop { display: none; }
}

/* ---------- Genel ---------- */
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -.3px; margin: 12px 4px 14px; }
.section { display: flex; align-items: center; margin: 28px 4px 10px; }
.section h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; }
.section a, .link { color: var(--brand); font-weight: 600; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack { display: grid; gap: 10px; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.row { display: flex; align-items: center; gap: 14px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon { width: 22px; height: 22px; flex: none; }
.center { text-align: center; }

.search {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius);
  padding: 0 16px; height: 56px; color: var(--muted); width: 100%;
}
.search input { border: 0; outline: 0; flex: 1; background: none; height: 100%; color: var(--ink); }

.chips { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; }
.chip.active { background: var(--ink); color: #fff; }

.segmented { display: flex; background: var(--chip); border-radius: 14px; padding: 4px; }
.segmented button { flex: 1; padding: 10px; border-radius: 10px; color: var(--muted); }
.segmented button.active { background: #fff; color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600;
}
.btn.block { width: 100%; }
.btn.brand { background: var(--brand); }
.btn.white { background: #fff; color: var(--brand); border-radius: 999px; }
.btn:disabled { opacity: .5; cursor: default; }

.label {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px;
}

/* ---------- Varış yerleri ---------- */
.dest { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 14px; }
.dest:hover, .tile:hover, .clickable:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.dest .price { text-align: right; }
.dest .price b { color: var(--brand); font-size: 16px; }
.chev { color: var(--muted); width: 20px; height: 20px; flex: none; }

.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 150px; background: #fff; border-radius: var(--radius); padding: 14px; }
.tile .name { font-weight: 600; margin-top: 8px; }
.tile .from { color: var(--brand); font-weight: 600; font-size: 13px; }

/* Bayraklar: ülke için dikdörtgen, bölge için yuvarlak küme */
.flag { width: 46px; height: 46px; display: grid; place-items: center; flex: none; }
.flag img { width: 40px; height: 30px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.flag .emoji { font-size: 32px; line-height: 1; }
.flags { position: relative; width: 46px; height: 46px; flex: none; }
.flags span {
  position: absolute; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0,0,0,.15); display: grid; place-items: center;
}
.flags img { width: 100%; height: 100%; object-fit: cover; }
.flags .emoji { font-size: 30px; }
.flags.n1 span { inset: 0; box-shadow: none; }
.flags.n2 span { width: 31px; height: 31px; }
.flags.n2 span:nth-child(1) { top: 0; left: 0; }
.flags.n2 span:nth-child(2) { bottom: 0; right: 0; }
.flags.n3 span { width: 26px; height: 26px; }
.flags.n3 span:nth-child(1) { top: 0; left: 10px; }
.flags.n3 span:nth-child(2) { bottom: 0; left: 0; }
.flags.n3 span:nth-child(3) { bottom: 0; right: 0; }

/* ---------- Ana sayfa ---------- */
.hero { background: var(--brand); color: #fff; border-radius: 20px; padding: 22px; }
.hero h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.2px; }
.hero p { margin: 0 0 16px; opacity: .85; }
.banner {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 20px; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, #4F46E5, var(--brand));
}
.banner h3 { margin: 0 0 4px; font-size: 22px; }
.banner p { margin: 0; opacity: .85; font-size: 14px; }
.banner .circle { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.step { display: flex; gap: 12px; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; }
.square { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.square svg { width: 20px; height: 20px; }

details.card { padding: 0; }
details.card summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px; font-weight: 600; cursor: pointer; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: ""; width: 10px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 4px 0 auto; transition: transform .2s; }
details.card[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.card .body { padding: 0 16px 16px; color: var(--muted); font-size: 14px; }

/* ---------- Paketler ---------- */
.back { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.back button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.back button:hover { background: var(--chip); }
.back h1 { margin: 0; font-size: 22px; }
.pkg { background: #fff; border-radius: 18px; padding: 18px; border: 2px solid transparent; }
.pkg.highlight { border-color: var(--brand); }
.pkg .top { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.pkg .data { font-size: 28px; font-weight: 700; flex: 1; }
.pkg .amount { font-size: 22px; font-weight: 700; color: var(--brand); }
.pkg .per { color: var(--muted); font-size: 13px; }
.features { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; margin: 10px 0 14px; }
.features span { display: inline-flex; align-items: center; gap: 4px; }
.features svg { width: 18px; height: 18px; }
.flagwrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.flagwrap span { background: var(--surface); border-radius: 8px; padding: 4px 8px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.flagwrap img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }
.flagrow { display: flex; gap: 4px; align-items: center; margin-top: 10px; }
.flagrow img { width: 28px; height: 21px; object-fit: cover; border-radius: 3px; }

/* ---------- Ödeme ---------- */
.field { display: grid; gap: 6px; }
.field input { height: 54px; border: 1px solid #C9C9CF; border-radius: 10px; padding: 0 14px; background: #fff; outline: 0; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.stepper { display: flex; align-items: center; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 24px; }
.stepper button:disabled { opacity: .4; }
.stepper b { flex: 1; text-align: center; font-size: 22px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.quick button { background: var(--surface); padding: 8px 0; border-radius: 10px; font-size: 13px; }
.quick button.active { background: var(--brand); color: #fff; }
.bullets { display: grid; gap: 8px; }
.bullets div { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.bullets svg { color: var(--brand); width: 18px; height: 18px; flex: none; }
.paybar { position: sticky; bottom: calc(var(--bottombar) + env(safe-area-inset-bottom)); background: var(--surface); padding: 12px 0; }
@media (min-width: 900px) { .paybar { bottom: 0; } }
.error { color: var(--error); }
.narrow { max-width: 560px; margin: 0 auto; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 30; padding: 16px; }
.modal .card { width: 100%; max-width: 460px; }

/* ---------- Sipariş ---------- */
.qr { width: 220px; height: 220px; margin: 0 auto; image-rendering: pixelated; }
.copy { display: flex; align-items: center; background: var(--surface); border-radius: 12px; padding: 10px 6px 10px 14px; }
.copy code { font: 14px ui-monospace, Menlo, monospace; word-break: break-all; }
.copy button { width: 40px; height: 40px; border-radius: 50%; color: var(--brand); display: grid; place-items: center; flex: none; }
.bar { height: 8px; border-radius: 4px; background: var(--brand-soft); overflow: hidden; margin: 8px 0 6px; }
.bar div { height: 100%; background: var(--brand); border-radius: 4px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.state { padding: 64px 24px; text-align: center; }

/* ---------- Telefon (tuş takımı) ---------- */
.dialer { max-width: 340px; margin: 0 auto; padding-top: 6vh; text-align: center; }
.dialer .number { font-size: 36px; min-height: 56px; letter-spacing: .5px; overflow: hidden; white-space: nowrap; }
.keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 26px; justify-content: center; margin-top: 24px; }
.key { width: 76px; height: 76px; border-radius: 50%; background: var(--chip); display: flex; flex-direction: column; align-items: center; justify-content: center; user-select: none; }
.key:active { background: #D9D9DE; }
.key b { font-size: 30px; font-weight: 400; line-height: 1.05; }
.key small { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); min-height: 12px; }
.call-row { display: grid; grid-template-columns: repeat(3, 76px); gap: 26px; justify-content: center; margin-top: 22px; align-items: center; }
.call { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.call svg { width: 34px; height: 34px; }
.del { width: 56px; height: 56px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; margin: auto; }

.toast { position: fixed; left: 50%; bottom: calc(var(--bottombar) + 24px); transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 40; }
