/* ════════════════════════════════════════════════════════════
   DİJİTAL KARTVİZİT — 5 Tema · Glassmorphism
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root { --r: 18px; --ease: cubic-bezier(.16, 1, .3, 1); }

/* ── TEMALAR ────────────────────────────────────────────────── */
body.tema-altin {
    --bg1:#1a1209; --bg2:#0c0905; --acc:#c89e50; --acc2:#f0d590;
    --txt:#f5f1ea; --muted:#9a8a72; --card:rgba(255,255,255,.05); --cardbrd:rgba(200,158,80,.22);
    --glow:rgba(200,158,80,.28);
}
body.tema-gece {
    --bg1:#16243f; --bg2:#0a1322; --acc:#d4af37; --acc2:#f0d590;
    --txt:#eef2f8; --muted:#7e8ba8; --card:rgba(255,255,255,.05); --cardbrd:rgba(212,175,55,.25);
    --glow:rgba(120,150,255,.25);
}
body.tema-beyaz {
    --bg1:#f4efe6; --bg2:#ece4d6; --acc:#b8893d; --acc2:#9a6f28;
    --txt:#2c1a06; --muted:#9a8a72; --card:#ffffff; --cardbrd:#e6dccb;
    --glow:rgba(200,158,80,.18);
}
body.tema-siyah {
    --bg1:#0c0c0c; --bg2:#000000; --acc:#d4af37; --acc2:#f0d590;
    --txt:#f5f1ea; --muted:#888; --card:rgba(255,255,255,.04); --cardbrd:rgba(212,175,55,.3);
    --glow:rgba(212,175,55,.22);
}
body.tema-bordo {
    --bg1:#3a1119; --bg2:#180709; --acc:#e0b878; --acc2:#f5dca8;
    --txt:#f5ebe0; --muted:#a98a82; --card:rgba(255,255,255,.05); --cardbrd:rgba(224,184,120,.25);
    --glow:rgba(224,120,120,.22);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100dvh;
    background: linear-gradient(165deg, var(--bg1), var(--bg2));
    color: var(--txt);
    display: flex; flex-direction: column; align-items: center;
    padding: 28px 16px calc(40px + env(safe-area-inset-bottom));
    position: relative; overflow-x: hidden;
}

.bg-decor {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 70% 50% at 50% -5%, var(--glow), transparent 60%),
      radial-gradient(ellipse 50% 40% at 90% 100%, var(--glow), transparent 55%);
}

/* ── KART ───────────────────────────────────────────────────── */
.kart { position: relative; z-index: 1; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.kart > * { animation: yukari .6s var(--ease) both; }
.profil { animation-delay: .03s; }
.aksiyonlar { animation-delay: .10s; }
.liste:nth-of-type(3) { animation-delay: .17s; }
.liste:nth-of-type(4) { animation-delay: .24s; }
.kart-footer { animation-delay: .30s; }
@keyframes yukari { from { opacity:0; transform: translateY(22px); } to { opacity:1; transform:none; } }

/* ── PROFİL ─────────────────────────────────────────────────── */
.profil { text-align: center; padding: 12px 0 4px; }
.avatar-wrap { position: relative; width: 116px; height: 116px; margin: 0 auto 16px; }
.avatar {
    width: 116px; height: 116px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--card); border: 3px solid var(--acc);
    box-shadow: 0 10px 40px var(--glow), inset 0 0 0 4px rgba(0,0,0,.15);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; padding: 6px; }
.avatar-text {
    font-family: 'Poppins', sans-serif; font-size: 2.6rem; font-weight: 800;
    background: linear-gradient(135deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.rozet {
    position: absolute; bottom: 4px; right: 4px; width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #1a1209;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    border: 3px solid var(--bg2); box-shadow: 0 4px 14px var(--glow);
}
.firma { font-family: 'Poppins', sans-serif; font-size: 1.55rem; font-weight: 800; letter-spacing: .3px; line-height: 1.2; }
.unvan { color: var(--acc); font-size: .92rem; font-weight: 600; margin-top: 5px; }
.konum { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.konum .bi { color: var(--acc); }
.slogan { color: var(--muted); font-size: .82rem; font-style: italic; margin-top: 10px; }

/* ── AKSİYONLAR ─────────────────────────────────────────────── */
.aksiyonlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0,1fr)); gap: 9px; }
.aks {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 14px 6px; border-radius: 14px; text-decoration: none;
    background: var(--card); border: 1px solid var(--cardbrd); color: var(--txt);
    font-size: .76rem; font-weight: 600; transition: transform .15s var(--ease); backdrop-filter: blur(10px);
}
.aks:active { transform: scale(.95); }
.aks-ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
          font-size: 1.15rem; background: rgba(255,255,255,.06); color: var(--acc); }
.aks-vurgu { background: linear-gradient(135deg, var(--acc), var(--acc2)); border-color: transparent; color: #1a1209; }
.aks-vurgu .aks-ic { background: rgba(0,0,0,.12); color: #1a1209; }
body.tema-beyaz .aks-ic { background: rgba(0,0,0,.04); }

/* ── LİSTELER ───────────────────────────────────────────────── */
.liste { display: flex; flex-direction: column; gap: 9px; }
.liste-baslik { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 4px 0; }
.liste-baslik .bi { color: var(--acc); }
.satir {
    display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: 15px; text-decoration: none;
    background: var(--card); border: 1px solid var(--cardbrd); color: var(--txt);
    transition: transform .15s var(--ease); backdrop-filter: blur(10px);
}
.satir.sos:active { transform: scale(.98); }
.satir-ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
            background: rgba(255,255,255,.06); color: var(--acc); }
body.tema-beyaz .satir-ic { background: rgba(0,0,0,.04); }
.satir-met { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.satir-met strong { font-size: .92rem; font-weight: 700; }
.satir-met small { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.satir-ok { color: var(--muted); font-size: .9rem; }

.sos-instagram .satir-ic { background: linear-gradient(135deg,#feda75,#d62976,#962fbf); color:#fff; }
.sos-whatsapp  .satir-ic { background:#25D366; color:#fff; }
.sos-facebook  .satir-ic { background:#1877F2; color:#fff; }
.sos-youtube   .satir-ic { background:#FF0000; color:#fff; }
.sos-telegram  .satir-ic { background:#229ED9; color:#fff; }
.sos-x .satir-ic, .sos-twitter .satir-ic, .sos-tiktok .satir-ic { background:#000; color:#fff; }

.banka { align-items: flex-start; }
.iban-no { font-family: monospace; letter-spacing: .5px; color: var(--txt) !important; font-weight:600; font-size:.8rem !important; white-space: normal !important; }
.iban-sahip { color: var(--muted) !important; }
.kopyala-btn {
    flex-shrink: 0; align-self: center; display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 13px; border-radius: 11px; border: 1px solid var(--cardbrd);
    background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #1a1209;
    font-size: .76rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: transform .12s;
}
.kopyala-btn:active { transform: scale(.94); }
.kopyala-btn.ok { background: #22c55e; color:#fff; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.kart-footer { text-align: center; padding: 8px 0 0; }
.web-link { color: var(--acc); text-decoration: none; font-size: .88rem; font-weight: 600; display: inline-flex; align-items:center; gap:6px; }
.powered { color: var(--muted); font-size: .68rem; margin-top: 12px; letter-spacing: .04em; opacity: .7; }

/* ── FAB & QR ───────────────────────────────────────────────── */
.fab-grup { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.fab { width: 52px; height: 52px; border-radius: 50%; cursor: pointer; background: var(--card); border: 1px solid var(--cardbrd);
       color: var(--acc); font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
       backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .15s var(--ease); }
.fab:active { transform: scale(.9); }
.fab-qr { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #1a1209; border-color: transparent; }

.qr-modal { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
            align-items: center; justify-content: center; padding: 24px; }
.qr-modal.acik { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity:0; } to { opacity:1; } }
.qr-box { background: #fff; border-radius: 24px; padding: 22px 24px 26px; text-align: center; max-width: 320px; width: 100%;
          animation: yukari .35s var(--ease) both; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.qr-kapat { float: right; background: none; border: none; font-size: 1.2rem; color: #999; cursor: pointer; }
.qr-baslik { font-family:'Poppins',sans-serif; font-weight: 800; color: #1a1209; font-size: 1.05rem; margin-bottom: 18px; clear: both; }
.qr-canvas { display: flex; justify-content: center; padding: 8px; }
.qr-canvas img, .qr-canvas canvas { border-radius: 10px; }
.qr-not { color: #888; font-size: .8rem; margin: 16px 0; }
.qr-indir { display:inline-flex; align-items:center; gap:7px; padding: 11px 22px; border-radius: 12px; border:none; cursor:pointer;
            background: linear-gradient(135deg,#1a1209,#3a2a14); color: #f0d590; font-weight: 700; font-size:.85rem; font-family:inherit; }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast { position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%); background: #22c55e; color: #fff;
         padding: 12px 22px; border-radius: 30px; font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 8px;
         box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 200; transition: bottom .35s var(--ease); }
.toast.goster { bottom: calc(28px + env(safe-area-inset-bottom)); }

@media (min-width: 480px) { .kart { margin-top: 12px; } }
