/* =========================================================
   Herkese açık firma kartı (telefonda açılan sayfa)
   Renkler temadan gelir: --bg --surface --text --primary --on-primary --accent --ca --cb --oncard
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 16px/1.5 "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.tnum { font-variant-numeric: tabular-nums; }
.app { --tint: color-mix(in srgb, var(--primary) 12%, var(--surface)); --line: color-mix(in srgb, var(--text) 9%, transparent); --muted: color-mix(in srgb, var(--text) 58%, var(--bg));
  width: min(480px, 100%); margin: 0 auto; padding: 0 1rem calc(7rem + env(safe-area-inset-bottom)); }
.is-dark .app { --tint: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.is-embed .app { padding-bottom: 6rem; }

/* ---------- Üst: kart yüzü ---------- */
.top { position: relative; padding-top: calc(1.4rem + env(safe-area-inset-top)); }
.sheets { position: absolute; left: 1.2rem; right: 1.2rem; top: calc(1.4rem + env(safe-area-inset-top)); bottom: 0; }
.sheets i { position: absolute; inset: 0; border-radius: 26px; }
.sheets i:nth-child(1) { background: var(--accent); transform: rotate(-3.5deg) translate(-4px, 10px); opacity: .9; }
.sheets i:nth-child(2) { background: color-mix(in srgb, var(--accent) 45%, var(--cb)); transform: rotate(2.5deg) translate(6px, 14px); opacity: .55; }
.face { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; padding: 1.3rem 1.3rem 1.25rem; min-height: 214px; display: flex; flex-direction: column;
  background: linear-gradient(140deg, var(--ca) 5%, var(--cb)); color: var(--oncard); box-shadow: 0 24px 40px -22px color-mix(in srgb, var(--ca) 80%, transparent); }
.face::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 34px solid color-mix(in srgb, var(--oncard) 9%, transparent); }
.face::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .14) 50%, transparent 60%); }
.face-top { display: flex; justify-content: space-between; align-items: flex-start; }
.logo { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 18px; background: #fff; padding: 7px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); }
.logo-txt { display: grid; place-items: center; padding: 0; color: var(--ca); font: 700 1.35rem "Bricolage", system-ui, sans-serif; letter-spacing: -.03em; }
.face-chip { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--oncard) 10%, transparent); }
.face h1 { margin: auto 0 0; padding-top: 1.2rem; font: 700 clamp(1.3rem, 6vw, 1.65rem)/1.12 "Bricolage", system-ui, sans-serif; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.face-sub { margin: .3rem 0 0; opacity: .75; font-size: .95rem; }
.face-vkn { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px dashed color-mix(in srgb, var(--oncard) 30%, transparent); font-weight: 600; letter-spacing: .04em; }
.face-vkn span { opacity: .6; font-weight: 400; letter-spacing: 0; margin-right: .3rem; }

/* Bant: tam genişlik renkli üst alan */
.layout-bant .app { padding-inline: 0; }
.layout-bant .sheets { display: none; }
.layout-bant .top { padding-top: 0; }
.layout-bant .face { border-radius: 0 0 34px 34px; padding: calc(1.6rem + env(safe-area-inset-top)) 1.5rem 3.6rem; min-height: 0; align-items: center; text-align: center; box-shadow: none; }
.layout-bant .face-top { width: 100%; justify-content: center; position: relative; }
.layout-bant .face-chip { position: absolute; right: 0; top: 0; }
.layout-bant .logo { width: 84px; height: 84px; border-radius: 24px; }
.layout-bant .face h1 { margin-top: .4rem; }
.layout-bant .face-vkn { display: inline-block; border: 0; padding: .35rem .9rem; border-radius: 99px; background: color-mix(in srgb, var(--oncard) 12%, transparent); }
.layout-bant .quick { margin: -2.2rem 1rem 0; position: relative; }
.layout-bant main { padding-inline: 1rem; }
/* Sade: renkli yüzey yok, koçan çizgisi */
.layout-sade .sheets { display: none; }
.layout-sade .face { background: none; color: var(--text); box-shadow: none; padding: .4rem 0 1.3rem; min-height: 0; border-radius: 0; }
.layout-sade .face::before, .layout-sade .face::after { display: none; }
.layout-sade .face { border-bottom: 3px solid var(--text); }
.layout-sade .face-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--ca) 0 33%, var(--cb) 33% 66%, transparent 66%); }
.layout-sade .face-top { position: static; }
.layout-sade .logo { border: 1px solid var(--line); box-shadow: none; }
.layout-sade .logo-txt { background: var(--ca); color: var(--text); }
.layout-sade .face-chip { color: var(--text); background: var(--ca); }
.layout-sade .face-vkn { border-top-color: var(--line); }

/* ---------- Hızlı işlemler ---------- */
.quick { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; margin: 1.6rem 0 .4rem; }
.quick a { display: grid; justify-items: center; gap: .4rem; padding: .7rem .2rem .6rem; border-radius: 18px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .76rem; font-weight: 600; text-align: center; line-height: 1.2; box-shadow: 0 1px 0 var(--line), 0 8px 18px -14px rgba(0, 0, 0, .3); transition: transform .15s; }
.quick a:active { transform: scale(.95); }
.quick a span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--tint); color: var(--primary); }
.is-dark .quick a span { color: var(--primary); }
.layout-sade .quick a { box-shadow: none; border: 1.5px solid var(--line); }

/* ---------- Bilgi grupları ---------- */
.group { margin-top: 1.4rem; }
.group h2 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .55rem .3rem; font: 600 .9rem/1 "Outfit", sans-serif; color: var(--muted); }
.group h2 .ic { width: 1.05em; height: 1.05em; color: var(--primary); }
.rows { list-style: none; margin: 0; padding: .3rem; border-radius: 22px; background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(0, 0, 0, .35); }
.layout-sade .rows { box-shadow: none; border: 1.5px solid var(--line); }
.rows li { position: relative; }
.rows li + li::before { content: ""; position: absolute; left: 4.1rem; right: .9rem; top: 0; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 66px; padding: .7rem .75rem; border: 0; border-radius: 18px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s; }
.row:active { background: var(--tint); }
@media (hover: hover) { .row:hover { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); } }
.row-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--tint); color: var(--primary); flex: none; }
.row-text { display: grid; min-width: 0; flex: 1; }
.row-label { font-size: .8rem; color: var(--muted); }
.row-value { font-weight: 600; font-size: 1.04rem; line-height: 1.35; overflow-wrap: anywhere; }
.row-act { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--muted); flex: none; transition: all .25s cubic-bezier(.2, .8, .2, 1); }
.row-act .ic { position: absolute; width: 18px; height: 18px; transition: opacity .2s, transform .25s; }
.row-act .ic:last-child { opacity: 0; transform: scale(.4); }
.row.copied { background: color-mix(in srgb, #19d3a2 14%, var(--surface)); }
.row.copied .row-act { background: #19d3a2; border-color: #19d3a2; color: #0b1533; transform: scale(1.06); }
.row.copied .row-act .ic:first-child { opacity: 0; transform: scale(.4); }
.row.copied .row-act .ic:last-child { opacity: 1; transform: none; }
.iban .row { padding-bottom: 3rem; }
.eye { position: absolute; left: 4.35rem; bottom: .8rem; display: inline-flex; align-items: center; min-height: 32px; padding: 0 .8rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 600 .82rem "Outfit", sans-serif; cursor: pointer; }
.eye span { display: inline-flex; align-items: center; gap: .35rem; }
.eye .ic { width: 1em; height: 1em; }

/* ---------- Ana ekrana ekle, alt bilgi ---------- */
.install { position: relative; display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; padding: .9rem 2.8rem .9rem .9rem; border-radius: 20px; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); font-size: .92rem; line-height: 1.4; }
.install p { margin: 0; flex: 1; }
.install-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #10152a; flex: none; }
.install-x { position: absolute; right: .4rem; top: .4rem; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: var(--text); opacity: .6; cursor: pointer; border-radius: 50%; }
.install-x .ic { width: 18px; height: 18px; }
.updated { display: flex; justify-content: center; align-items: center; gap: .4rem; margin: 1.8rem 0 .2rem; font-size: .84rem; color: var(--muted); }
.updated .ic { width: 1em; height: 1em; }
.made { text-align: center; font-size: .84rem; color: var(--muted); margin: .3rem 0 0; }
.made a { display: inline-flex; align-items: center; gap: .35rem; color: var(--text); font-weight: 600; text-decoration: none; }
.mk { position: relative; width: 16px; height: 12px; }
.mk i { position: absolute; inset: 0; border-radius: 3px; }
.mk i:nth-child(1) { background: #ff8fab; transform: translate(3px, 3px); }
.mk i:nth-child(2) { background: #ffd23f; transform: translate(1.5px, 1.5px); }
.mk i:nth-child(3) { background: var(--text); }

/* ---------- Alt işlem çubuğu ---------- */
.dock { position: fixed; left: 50%; bottom: calc(.9rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; display: flex; gap: .5rem; width: min(456px, calc(100% - 1.5rem)); padding: .45rem; border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(0, 0, 0, .45); }
.dock button { border: 0; cursor: pointer; font: 600 1rem "Outfit", sans-serif; }
.dock-main { flex: 1; display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 56px; border-radius: 18px; background: var(--primary); color: var(--on-primary); transition: background-color .25s, transform .15s; }
.dock-main:active { transform: scale(.98); }
.dock-main.copied { background: #19d3a2; color: #0b1533; }
.dock-btn { display: grid; place-items: center; width: 56px; min-height: 56px; border-radius: 18px; background: var(--tint); color: var(--primary); }

/* ---------- QR penceresi ---------- */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: min(480px, 100%); max-width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; background: var(--surface); color: var(--text); }
.sheet::backdrop { background: rgba(5, 9, 26, .55); backdrop-filter: blur(3px); }
.sheet[open] { animation: up .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40%); opacity: 0; } }
.sheet-in { padding: .8rem 1.4rem calc(1.6rem + env(safe-area-inset-bottom)); text-align: center; }
.grab { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 1.2rem; }
.sheet h2 { margin: 0 0 1rem; font: 700 1.3rem "Bricolage", system-ui, sans-serif; letter-spacing: -.02em; }
.qr { width: min(270px, 78%); margin: 0 auto; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.qr-url { margin: .9rem 0 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.sheet-acts { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.pillbtn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: 0 1.2rem; border-radius: 16px; border: 0; background: var(--primary); color: var(--on-primary); font: 600 .97rem "Outfit", sans-serif; text-decoration: none; cursor: pointer; }
.pillbtn.ghost { background: var(--tint); color: var(--text); }
.install .pillbtn { min-height: 38px; padding: 0 .9rem; border-radius: 12px; }

/* ---------- Bildirim ---------- */
.toast { position: fixed; left: 50%; bottom: calc(6.4rem + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: .5rem; transform: translate(-50%, 14px); padding: .7rem 1.15rem .7rem .8rem; border-radius: 99px; background: #0b1533; color: #fff; font-weight: 600; font-size: .95rem; white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.toast::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #19d3a2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1533' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Geniş ekran ---------- */
@media (min-width: 700px) {
  body { background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--cb) 16%, var(--bg)), var(--bg) 60%); }
  .app { padding-top: 2rem; }
  .layout-bant .app { padding-top: 0; }
  .layout-bant .face { border-radius: 0 0 34px 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
