/* ═══════════════════════════════════════════════════════════
   AxentraGaming — "B · Premium minimal" arayüz katmanı
   style.css'in ÜSTÜNE biner: renk, tipografi, bileşen görünümü.
═══════════════════════════════════════════════════════════ */

:root {
  --bg-void:  #050506;
  --bg-deep:  #08080a;
  --bg-dark:  #0b0b0e;
  --bg-card:  #0d0d10;
  --bg-card2: #121216;
  --bg-hover: #17171d;

  --accent-cyan:   #ff7900;           /* ana vurgu: nazik mor */
  --accent-green:  #34d399;
  --accent-gold:   #fbbf24;
  --accent-red:    #f87171;
  --accent-purple: #ff9d2e;
  --accent-orange: #fb923c;
  --accent-pink:   #ffad42;

  --text-bright:  #ededf0;
  --text-primary: #c4c4cf;
  --text-muted:   #8a8a95;
  --text-dim:     #5d5d68;

  --border-dim:  rgba(255,255,255,.07);
  --border-glow: rgba(255,255,255,.14);
  --border-hot:  rgba(255,255,255,.30);

  --btn-bg: #ffffff;
  --btn-fg: #0a0a0b;

  --font-head: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 12px; --radius-xl: 16px;
  --shadow-glow: none;
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset;
}

[data-theme="light"] {
  --bg-void:  #fafafa;
  --bg-deep:  #f4f4f6;
  --bg-dark:  #eeeef1;
  --bg-card:  #ffffff;
  --bg-card2: #f6f6f8;
  --bg-hover: #eeeef2;

  --accent-cyan:   #ff8a00;
  --accent-green:  #059669;
  --accent-gold:   #d97706;
  --accent-red:    #dc2626;
  --accent-purple: #ff9d2e;
  --accent-orange: #ea580c;
  --accent-pink:   #db2777;

  --text-bright:  #0a0a0b;
  --text-primary: #3f3f46;
  --text-muted:   #71717a;
  --text-dim:     #a1a1aa;

  --border-dim:  rgba(0,0,0,.08);
  --border-glow: rgba(0,0,0,.14);
  --border-hot:  rgba(0,0,0,.32);

  --btn-bg: #0a0a0b;
  --btn-fg: #ffffff;
  --shadow-card: 0 1px 2px rgba(0,0,0,.04);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 15px; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
body::before { display: none; }          /* eski ızgara arka planı kapalı */
.scan-line::after, .scan-line::before { display: none !important; }
::selection { background: rgba(255,121,0,.35); }

/* ── Tipografi: büyük harf yok, sıkı başlıklar ── */
.page-title, .sec-title, .hero h1, .modal-title, .why-card h3, .step h3, .lvl-name, .chart-title, .card-title-sm,
.nav-links a, .btn, .badge, .filter-btn, .product-buy, .tab-btn, .admin-nav-item, .stat-label, .form-label, .chip,
.debt-card-title, .bayi-card-title, .tg-card-title, .ft-col h4 { text-transform: none; }
.page-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--text-bright); }
.page-title span { color: var(--text-muted); font-weight: 500; }
.modal-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.form-label { font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--text-primary); }
.btn { letter-spacing: 0; font-weight: 600; font-size: .88rem; border-radius: var(--radius-md); padding: .65rem 1.3rem; }
.badge { letter-spacing: 0; font-weight: 600; border-radius: 999px; }
.filter-btn { letter-spacing: 0; font-weight: 600; font-size: .82rem; border-radius: 999px; }
.sec-kicker { letter-spacing: .14em; color: var(--text-muted); font-weight: 600; }

/* ── Butonlar ── */
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg); }
.btn-primary:hover { background: var(--btn-bg); opacity: .88; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255,255,255,.08); }
[data-theme="light"] .btn-primary:hover { box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.btn-outline { background: transparent; color: var(--text-bright); border: 1px solid var(--border-glow); }
.btn-outline:hover { background: rgba(255,255,255,.05); border-color: var(--border-hot); }
[data-theme="light"] .btn-outline:hover { background: rgba(0,0,0,.04); }
.btn-ghost { color: var(--text-primary); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--text-bright); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn.shine { position: relative; overflow: hidden; }
.btn.shine::after { content: ''; position: absolute; top: 0; bottom: 0; width: 28px; left: 0; background: rgba(255,255,255,.55); mix-blend-mode: soft-light; animation: shimB 3.8s ease-in-out infinite; pointer-events: none; }
@keyframes shimB { 0% { transform: translateX(-140%) skewX(-18deg); } 55%, 100% { transform: translateX(520%) skewX(-18deg); } }

/* ── Form ── */
.form-input, .form-select, .form-textarea { background: var(--bg-card2); border: 1px solid var(--border-dim); border-radius: var(--radius-md); color: var(--text-bright); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--border-hot); box-shadow: 0 0 0 3px rgba(255,121,0,.18); outline: none; }

/* ── Navbar ── */
.navbar { background: rgba(5,5,6,.72); border-bottom: 1px solid var(--border-dim); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
[data-theme="light"] .navbar { background: rgba(250,250,250,.78); }
.nav-logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; text-transform: none; color: var(--text-bright); }
.nav-logo::before { display: none; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--text-bright); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 14px; height: 14px; fill: none; stroke: var(--bg-void); stroke-width: 2.4; stroke-linejoin: round; }
.nav-links a, .nav-links button { text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 500; padding: .45rem .85rem; color: var(--text-muted); }
.nav-links a:hover, .nav-links button:hover { color: var(--text-bright); background: rgba(255,255,255,.06); }
.nav-links a.active, .nav-links button.active { color: var(--text-bright); background: rgba(255,255,255,.08); }
[data-theme="light"] .nav-links a:hover, [data-theme="light"] .nav-links a.active { background: rgba(0,0,0,.05); }
.nav-balance { font-family: var(--font-mono); font-size: .8rem; border-radius: 999px; border: 1px solid var(--border-glow); background: transparent; color: var(--text-bright); }
.nav-mobile-drawer { background: rgba(8,8,10,.98); }
[data-theme="light"] .nav-mobile-drawer { background: rgba(250,250,250,.98); }
.tool-btn { border-radius: var(--radius-md); background: transparent; }

/* ── Kartlar ── */
.card, .card-glow, .why-card, .trust-item, .rev-card, .rev-top, .step-n, .faq details, .level-card, .stat-card, .chart-card {
  background: var(--bg-card); border: 1px solid var(--border-dim); box-shadow: var(--shadow-card);
}
.card-glow::before, .why-card::before, .modal::before, .product-card::before { display: none; }
.card:hover, .why-card:hover, .trust-item.in:hover, .rev-card:hover { border-color: var(--border-glow); }
.modal { border: 1px solid var(--border-glow); border-radius: 20px; padding: 1.9rem; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.modal-backdrop { background: rgba(0,0,0,.66); backdrop-filter: blur(6px); }
[data-theme="light"] .modal-backdrop { background: rgba(10,10,20,.4); }
.modal-close { border-radius: 50%; }

/* ── Hero ── */
.hero.hero-v2 { min-height: 0; padding: clamp(4.2rem, 10vw, 7.5rem) 1.25rem clamp(2.5rem, 6vw, 4.2rem); text-align: center; display: flex; flex-direction: column; align-items: center; isolation: isolate; }
.hero-glow2 { position: absolute; left: 50%; top: 4%; width: min(720px, 130vw); height: min(520px, 90vw); margin-left: calc(min(720px, 130vw) / -2); background: radial-gradient(closest-side, rgba(255,121,0,.40), transparent); z-index: -1; animation: glowDrift 10s ease-in-out infinite; pointer-events: none; }
[data-theme="light"] .hero-glow2 { background: radial-gradient(closest-side, rgba(255,121,0,.20), transparent); }
@keyframes glowDrift { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-26px) scale(1.1); } }
.hero-pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 500; color: var(--text-primary); border: 1px solid var(--border-glow); border-radius: 999px; padding: .32rem .8rem; background: rgba(255,255,255,.03); margin-bottom: 1.25rem; }
.hero-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); animation: tick 1.4s steps(1) infinite; }
@keyframes tick { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .3; } }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; color: var(--text-bright); text-shadow: none; margin-bottom: 1.1rem; }
.hero h1 b { font-weight: 800; background: linear-gradient(90deg, var(--text-bright), #ffad42); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .hero h1 b { background: linear-gradient(90deg, #0a0a0b, #ff8a00); -webkit-background-clip: text; background-clip: text; }
.hero-sub { font-size: clamp(.95rem, 2.4vw, 1.1rem); color: var(--text-muted); max-width: 520px; line-height: 1.6; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { margin-top: clamp(2rem, 5vw, 3.2rem); padding-top: 1.6rem; border-top: 1px solid var(--border-dim); display: flex; gap: clamp(1.5rem, 6vw, 4rem); justify-content: center; width: min(520px, 100%); }
.hero-stat-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; color: var(--text-bright); }
.hero-stat-label { font-size: .72rem; letter-spacing: .04em; text-transform: none; color: var(--text-muted); }

/* ── Kayan oyun şeridi ── */
.ticker { background: transparent; border-top: 1px solid var(--border-dim); border-bottom: 1px solid var(--border-dim); }
.ticker-track span { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); padding: .95rem 1.7rem; }

/* ── Bölümler ── */
.sec { padding: clamp(3.4rem, 7vw, 6rem) 1.25rem; }
.sec-alt { background: var(--bg-deep); border-color: var(--border-dim); }
.sec-title { font-family: var(--font-head); font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; color: var(--text-bright); text-transform: none; line-height: 1.1; }
.sec-title span { color: var(--accent-cyan); }
.sec-sub { color: var(--text-muted); }
.chip { background: var(--bg-card); border: 1px solid var(--border-dim); color: var(--text-primary); font-weight: 600; letter-spacing: 0; }
.chip:hover { border-color: var(--border-hot); color: var(--text-bright); box-shadow: none; }

/* ── İkon kutuları ── */
.why-ico, .trust-ico { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--bg-card2); border: 1px solid var(--border-dim); margin-bottom: .9rem; animation: none; font-size: 0; }
.trust-ico { margin-bottom: .5rem; }
.why-ico .ic, .trust-ico .ic, .shop-banner .ic, .fab-item .ic, .fab-main .ic { width: 20px; height: 20px; fill: none; stroke: var(--accent-cyan); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.fab-main .ic { width: 24px; height: 24px; stroke: var(--btn-fg); }
.fab-item span { display: inline-flex; font-size: 0; }
.why-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.why-big h3 { font-size: 1.3rem; }
.keydemo .kd-key { border-color: var(--border-hot); background: var(--bg-void); border-radius: 10px; }
.kd-key b { color: var(--text-bright); }
.step-n { color: var(--text-bright); border: 1px solid var(--border-glow); font-family: var(--font-head); }
.step:not(:last-child)::after { background: var(--border-glow); opacity: 1; }
.step h3 { font-size: 1.02rem; letter-spacing: -.01em; }
.faq summary::after { color: var(--text-muted); }

/* ── Mağaza ── */
.shop-banner { display: flex; gap: .5rem 1.4rem; flex-wrap: wrap; background: transparent; border: 1px solid var(--border-dim); border-radius: var(--radius-lg); color: var(--text-muted); font-weight: 500; letter-spacing: 0; }
.shop-banner span { display: inline-flex; align-items: center; gap: .45rem; }
.shop-banner .ic { width: 15px; height: 15px; }
.search-box input { background: var(--bg-card2); border-radius: 999px; }
.filter-btn { background: var(--bg-card); border: 1px solid var(--border-dim); color: var(--text-muted); }
.filter-btn:hover { color: var(--text-bright); border-color: var(--border-glow); }
.filter-btn.active { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); box-shadow: none; }
.product-card { padding: .7rem; gap: .6rem; border-radius: 16px; background: var(--bg-card); }
.product-card:hover { border-color: var(--border-hot); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
[data-theme="light"] .product-card:hover { box-shadow: 0 14px 36px rgba(0,0,0,.10); }
.product-card .product-img { height: 118px; border-radius: 12px; margin: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-card2); }
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .product-img::after { background: linear-gradient(to top, rgba(0,0,0,.25), transparent 60%); }
.product-img-placeholder .art-ini { font-family: var(--font-head); font-weight: 800; font-size: 2rem; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.28); position: relative; z-index: 1; }
.product-card > div:not(.product-img):not(.product-buy) { padding: 0 .35rem; }
.product-category { background: transparent; border: 0; padding: 0; font-size: .72rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.product-name { font-family: var(--font-head); font-size: .98rem; font-weight: 650; letter-spacing: -.01em; color: var(--text-bright); }
.product-desc { color: var(--text-muted); font-size: .82rem; }
.price-main { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-bright); }
.price-sub { font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim); }
.product-buy { margin: .15rem 0 0; padding: .6rem .9rem; border-radius: var(--radius-md); background: rgba(255,255,255,.05); border: 1px solid var(--border-dim); color: var(--text-bright); font-weight: 600; font-size: .84rem; letter-spacing: 0; text-transform: none; }
[data-theme="light"] .product-buy { background: rgba(0,0,0,.04); }
.product-card:hover .product-buy { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.fav-btn { background: rgba(10,10,12,.6); }
.dc, .product-stock.low { font-weight: 600; }

/* ── Duyuru çubuğu ── */
.announce { background: var(--bg-card); color: var(--text-primary); border-bottom: 1px solid var(--border-dim); --ac: var(--accent-cyan); font-weight: 500; }
.announce.success { --ac: var(--accent-green); } .announce.warning { --ac: var(--accent-gold); } .announce.promo { --ac: var(--accent-purple); }
.announce::before { display: none; }
.ann-dot { background: var(--ac); }
.ann-link { color: var(--ac); } .ann-x { color: var(--text-muted); } .ann-x:hover { background: rgba(255,255,255,.08); }
[data-theme="light"] .ann-x:hover { background: rgba(0,0,0,.06); }

/* ── Yüzen destek ── */
.fab-main { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
[data-theme="light"] .fab-main { box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.fab-main::before { border-color: var(--text-muted); }
.fab-x { color: var(--btn-fg); }
.fab-item { border-radius: 12px; border-color: var(--border-glow); font-weight: 600; }
.fab-item:hover { border-color: var(--border-hot); }

/* ── Alt menü (telefon) ── */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    padding: .35rem max(.5rem, var(--safe-right)) calc(.35rem + var(--safe-bottom)) max(.5rem, var(--safe-left));
    background: rgba(10,10,12,.88); border-top: 1px solid var(--border-dim);
    backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  }
  [data-theme="light"] .tabbar { background: rgba(255,255,255,.9); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .35rem 0; border-radius: 10px; color: var(--text-muted); font-size: .66rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: color .2s; min-height: 46px; justify-content: center; }
  .tabbar a .ic { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
  .tabbar a.on { color: var(--text-bright); }
  .tabbar a.on .ic { stroke: var(--accent-cyan); transform: translateY(-1px) scale(1.08); }
  body.modal-open .tabbar { display: none; }
  body { padding-bottom: calc(62px + var(--safe-bottom)); }
  .fab { bottom: calc(72px + var(--safe-bottom)); }
  .site-footer { padding-bottom: 1.5rem; }
}

/* ── Seviye, yorum, grafik uyumu ── */
.lvl-chip { filter: none; }
.level-card::before { width: 3px; }
.rev-num { font-family: var(--font-head); letter-spacing: -.04em; }
.chart-total { font-family: var(--font-head); letter-spacing: -.02em; }

/* ── Tablolar, admin ── */
.data-table th { text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; color: var(--text-muted); background: transparent; }
.admin-sidebar { background: var(--bg-card); border-color: var(--border-dim); }
.admin-nav-item { letter-spacing: 0; font-weight: 600; border-radius: 10px; }
.admin-nav-item.active { background: rgba(255,255,255,.07); color: var(--text-bright); }
[data-theme="light"] .admin-nav-item.active { background: rgba(0,0,0,.06); }
.stat-label { letter-spacing: .04em; }
.stat-value { font-family: var(--font-head); letter-spacing: -.03em; }
.toast { border-radius: 12px; background: var(--bg-card2); border: 1px solid var(--border-glow); color: var(--text-bright); box-shadow: 0 12px 40px rgba(0,0,0,.45); }

/* ── Alt bilgi ── */
.site-footer { background: transparent; border-top: 1px solid var(--border-dim); }
.ft-col h4 { letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; color: var(--text-muted); }
.ft-col a:hover { color: var(--text-bright); }
.ft-brand .nav-logo { font-size: 1.05rem; }

/* ── Telefon ayarları ── */
@media (max-width: 600px) {
  .hero.hero-v2 { padding-top: 3.2rem; }
  .hero h1 { font-size: 2.35rem; }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.2rem; }
  .product-card .product-img { height: 92px; }
  .product-img-placeholder .art-ini { font-size: 1.6rem; }
  .product-card > div:not(.product-img):not(.product-buy) { padding: 0 .2rem; }
}
@media (max-width: 420px) { .nav-logo { font-size: 1rem; } .logo-mark { width: 24px; height: 24px; } }

/* ── Masaüstü navbar sığdırma ── */
.nav-inner { gap: 1.1rem; }
.nav-links a { white-space: nowrap; }
.nav-right { gap: .6rem; flex-shrink: 0; }
.nav-user { gap: .5rem; }
/* sade navbar: kur etiketi ve rol rozeti gizli (profilde / menüde görünür) */
.cur-rate-tag, .nav-user .badge { display: none !important; }
@media (max-width: 1680px) { .nav-balance[style*="accent-red"] { display: none; } }
@media (max-width: 1120px) { .nav-links a { padding: .45rem .6rem; } .cur-wrap { display: none; } }
@media (max-width: 1500px) { .nav-user > span:not(.lvl-chip) { display: none; } .nav-user { padding: .2rem; border-radius: 999px; } }
@media (max-width: 1000px) { .nav-right .nav-balance { display: none; } .nav-links a { padding: .45rem .5rem; } }

/* ═══════════════ V4: Vitrin · Ürün detayı · Konfeti · PWA ═══════════════ */

/* ── Ana sayfa vitrini ── */
.showcase-sec { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: 1rem; }
.showcase { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.showcase::-webkit-scrollbar { display: none; }
.sc-card {
  position: relative; flex: 0 0 calc(50% - 8px); min-height: 330px; border-radius: 20px; overflow: hidden; cursor: pointer; scroll-snap-align: start;
  border: 1px solid var(--border-dim); isolation: isolate; background: var(--bg-card); transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.sc-card:hover { border-color: var(--border-hot); transform: translateY(-3px); }
.sc-card.sk { animation: skShine 1.4s ease-in-out infinite; background: linear-gradient(90deg, var(--bg-hover) 25%, rgba(128,160,200,.18) 37%, var(--bg-hover) 63%); background-size: 200% 100%; cursor: default; }
.sc-bg { position: absolute; inset: 0; z-index: -2; display: flex; align-items: center; justify-content: center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.sc-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-bg .art-ini { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); letter-spacing: .06em; color: rgba(255,255,255,.9); text-shadow: 0 4px 30px rgba(0,0,0,.25); margin-bottom: 2.5rem; }
.sc-card:hover .sc-bg { transform: scale(1.05); }
.sc-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5,5,6,.92) 0%, rgba(5,5,6,.55) 38%, rgba(5,5,6,0) 70%); }
.sc-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; display: flex; flex-direction: column; gap: .45rem; color: #fff; }
.sc-cat { align-self: flex-start; font-size: .72rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); }
.sc-content h3 { font-family: var(--font-head); font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.15; color: #fff; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .3rem; }
.sc-price { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.sc-cta { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 700; padding: .5rem .95rem; border-radius: 10px; background: #fff; color: #0a0a0b; transition: transform .2s; }
.sc-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.sc-card:hover .sc-cta svg { transform: translateX(3px); }
.sc-badge { position: absolute; top: 1rem; left: 1rem; font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: rgba(248,113,113,.92); color: #fff; }
.sc-badge.warn { background: rgba(251,191,36,.95); color: #1a1100; }
.sc-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.sc-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--border-glow); transition: width .3s, background .3s; }
.sc-dots i.on { width: 22px; background: var(--text-bright); }
@media (max-width: 760px) { .sc-card { flex-basis: 88%; min-height: 270px; } .sc-content { padding: 1.1rem; } }

/* ── Ürün detay penceresi ── */
.modal.pview { max-width: 460px; padding: 0; overflow-x: hidden; }
.pv-art { position: relative; height: 210px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 20px 20px 0 0; }
.pv-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-art .art-ini { font-family: var(--font-head); font-weight: 800; font-size: 4.2rem; letter-spacing: .06em; color: rgba(255,255,255,.92); text-shadow: 0 4px 24px rgba(0,0,0,.25); position: relative; }
.pv-art img + .art-ini { display: none; }
.pv-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 55%); pointer-events: none; }
.pview .modal-close { z-index: 3; background: rgba(10,10,12,.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pv-body { padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.pv-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 750; letter-spacing: -.025em; color: var(--text-bright); line-height: 1.2; }
.pv-desc { color: var(--text-muted); font-size: .92rem; line-height: 1.65; }
.pv-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: .4rem 0 .6rem; padding-top: .9rem; border-top: 1px solid var(--border-dim); }
.pv-price { display: flex; flex-direction: column; }
.pv-price .price-main { font-size: 1.7rem; }
.pv-actions { display: flex; flex-direction: column; gap: .6rem; }
.pv-row { display: flex; gap: .6rem; }
.pv-row .btn { flex: 1; justify-content: center; }
.pv-row .btn .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#pv-notify.on { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.5); color: var(--accent-green); }
#pv-notify { flex: 2; }

/* ── Satın alma başarı ekranı ── */
.confetti { position: fixed; inset: 0; z-index: 4000; pointer-events: none; }
.buy-ok { display: none; width: 68px; height: 68px; margin: 0 auto .8rem; }
.modal.is-done .buy-ok { display: block; }
.buy-ok svg { width: 100%; height: 100%; fill: none; stroke: var(--accent-green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.buy-ok circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: okDraw .7s cubic-bezier(.65,0,.35,1) forwards; }
.buy-ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: okDraw .45s cubic-bezier(.65,0,.35,1) .55s forwards; }
@keyframes okDraw { to { stroke-dashoffset: 0; } }
.modal.is-done .modal-title { text-align: center; }
.modal.is-done .key-box { border-color: rgba(52,211,153,.5); animation: keyIn .6s cubic-bezier(.2,.8,.2,1) .35s backwards; }
@keyframes keyIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ── Uygulama modu (PWA) ── */
html.is-standalone body { -webkit-user-select: none; user-select: none; }
html.is-standalone input, html.is-standalone textarea, html.is-standalone .key-box { -webkit-user-select: text; user-select: text; }
html.is-standalone { overscroll-behavior-y: none; }

@media (prefers-reduced-motion: reduce) {
  .buy-ok circle, .buy-ok path { animation: none; stroke-dashoffset: 0; }
  .sc-bg { transition: none; }
}

/* ═══════════════ V5: Gelen kutusu · Ödemeler · Yasal · Asistan ═══════════════ */
.form-hint { font-size: .75rem; color: var(--text-muted); }
.badge-muted { background: rgba(255,255,255,.06); color: var(--text-muted); border: 1px solid var(--border-dim); }
.mono { font-family: var(--font-mono); }
.terms-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .8rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.terms-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent-cyan); }
.terms-check a { color: var(--accent-cyan); text-decoration: underline; cursor: pointer; }
.chip-sm { font-size: .74rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: var(--bg-card2); border: 1px solid var(--border-dim); color: var(--text-primary); cursor: pointer; white-space: nowrap; }
.chip-sm:hover { border-color: var(--border-hot); color: var(--text-bright); }

/* ── Gelen kutusu ── */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: min(78vh, 760px); min-height: 520px; border: 1px solid var(--border-dim); border-radius: 16px; background: var(--bg-card); overflow: hidden; }
.inbox-list-pane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border-dim); }
.inbox-top { padding: .9rem; border-bottom: 1px solid var(--border-dim); display: flex; flex-direction: column; gap: .6rem; }
.inbox-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: center; }
.inbox-counts { font-size: .74rem; font-weight: 600; color: var(--accent-gold); }
.inbox-search { border-radius: 999px !important; }
.inbox-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.inbox-filters button { font-size: .74rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: transparent; border: 1px solid var(--border-dim); color: var(--text-muted); cursor: pointer; }
.inbox-filters button.on { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.inbox-list { flex: 1; overflow-y: auto; min-height: 0; }
.inbox-empty { padding: 2.5rem 1rem; text-align: center; color: var(--text-muted); font-size: .88rem; }
.inb-item { display: flex; gap: .7rem; width: 100%; text-align: left; padding: .8rem .9rem; border: 0; border-bottom: 1px solid var(--border-dim); background: transparent; color: inherit; cursor: pointer; position: relative; font-family: inherit; }
.inb-item:hover, .inb-item.sel { background: var(--bg-hover); }
.inb-item.wait::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-gold); }
.inb-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.inb-row { display: flex; justify-content: space-between; gap: .5rem; font-size: .86rem; }
.inb-row b { color: var(--text-bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .inb-row time { font-size: .72rem; color: var(--text-dim); flex-shrink: 0; }
.inb-subj { font-size: .82rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inb-prev { font-size: .76rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inb-tags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .25rem; }
.inb-tags .badge { font-size: .64rem; padding: .1rem .5rem; }
.inb-pri { font-size: .64rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: rgba(251,146,60,.15); color: var(--accent-orange); }
.inb-pri.urgent { background: rgba(248,113,113,.15); color: var(--accent-red); }
.inb-asg { font-size: .68rem; color: var(--text-muted); } .inb-asg.none { color: var(--accent-gold); }
.inbox-thread-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.inbox-pick { margin: auto; }
.inbox-thread { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.thr-head { padding: .8rem 1rem; border-bottom: 1px solid var(--border-dim); display: flex; flex-direction: column; gap: .6rem; }
.thr-top { display: flex; align-items: center; gap: .7rem; }
.thr-back { display: none; }
.thr-ttl { display: flex; flex-direction: column; min-width: 0; }
.thr-ttl b { color: var(--text-bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; }
.thr-ttl span { font-size: .74rem; color: var(--text-muted); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.thr-ctrl { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.thr-ctrl label { display: flex; flex-direction: column; gap: .2rem; font-size: .68rem; color: var(--text-muted); font-weight: 600; }
.thr-ctrl select { min-width: 120px; padding: .35rem .5rem; }
.thr-cust { font-size: .8rem; color: var(--text-muted); } .thr-cust summary { cursor: pointer; }
.thr-cust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; padding: .7rem 0 .2rem; }
.thr-cust-grid span { display: block; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.thr-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; min-height: 0; }
.thr-msg { display: flex; flex-direction: column; max-width: 78%; gap: .2rem; }
.thr-msg.me { align-self: flex-end; align-items: flex-end; } .thr-msg.them { align-self: flex-start; }
.thr-bub { padding: .6rem .9rem; border-radius: 16px; font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; background: var(--bg-card2); border: 1px solid var(--border-dim); color: var(--text-primary); }
.thr-msg.me .thr-bub { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); border-bottom-right-radius: 5px; }
.thr-msg.them .thr-bub { border-bottom-left-radius: 5px; }
.thr-meta { font-size: .68rem; color: var(--text-dim); display: flex; gap: .3rem; align-items: center; }
.thr-staff { font-size: .62rem; font-weight: 700; padding: .05rem .4rem; border-radius: 999px; background: rgba(255,121,0,.18); color: var(--accent-cyan); margin-left: .25rem; }
.typing-ind { display: flex; align-items: center; gap: .4rem; padding: .2rem 1rem .5rem; font-size: .74rem; color: var(--text-muted); }
.typing-ind[hidden] { display: none; }
.typing-ind i, .ai-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typDot 1.1s ease-in-out infinite; display: inline-block; }
.typing-ind i:nth-child(2), .ai-dots i:nth-child(2) { animation-delay: .15s; } .typing-ind i:nth-child(3), .ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.thr-compose { border-top: 1px solid var(--border-dim); padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.thr-canned { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; } .thr-canned::-webkit-scrollbar { display: none; }
.thr-hint { font-size: .74rem; color: var(--text-dim); }
.thr-actions { display: flex; gap: .6rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.canned-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem .8rem; border: 1px solid var(--border-dim); border-radius: 10px; }
.canned-row b { display: block; font-size: .88rem; } .canned-row span { font-size: .76rem; color: var(--text-muted); }
@media (max-width: 900px) {
  .inbox { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 190px); min-height: 480px; }
  .inbox-thread-pane { display: none; }
  .inbox.thread-open .inbox-list-pane { display: none; }
  .inbox.thread-open .inbox-thread-pane { display: flex; }
  .thr-back { display: inline-flex; }
  .thr-msg { max-width: 90%; }
}

/* ── Bakiye yükleme ── */
.topup-card { margin-bottom: 1.5rem; }
.topup-card:empty { display: none; }
.tp-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tp-kicker { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.tp-bal { font-family: var(--font-head); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-bright); }
.tp-list { margin-top: 1rem; border-top: 1px solid var(--border-dim); }
.tp-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--border-dim); flex-wrap: wrap; }
.tp-row:last-child { border-bottom: 0; } .tp-row b { display: block; } .tp-row span { font-size: .74rem; color: var(--text-muted); }
.tp-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.tp-chip { padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--border-glow); background: transparent; color: var(--text-bright); font-weight: 700; cursor: pointer; font-family: inherit; }
.tp-chip:hover, .tp-chip.on { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.tp-note { font-size: .8rem; color: var(--text-muted); line-height: 1.55; margin-top: .6rem; }
.tp-amount-box { text-align: center; padding: 1rem; border-radius: 14px; background: var(--bg-card2); border: 1px solid var(--border-dim); margin-bottom: .9rem; }
.tp-amount-box span { display: block; font-size: .74rem; color: var(--text-muted); } .tp-amount-box b { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.tp-bank { display: flex; flex-direction: column; border: 1px solid var(--border-dim); border-radius: 12px; overflow: hidden; }
.tp-bank > div { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .9rem; border-bottom: 1px solid var(--border-dim); }
.tp-bank > div:last-child { border-bottom: 0; }
.tp-bank span { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); } .tp-bank b { font-size: .9rem; word-break: break-all; }
.tp-copy { position: relative; padding-right: 5.5rem !important; }
.tp-copy button { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: 8px; border: 1px solid var(--border-glow); background: var(--bg-card); color: var(--text-bright); cursor: pointer; }
.tp-ref { background: rgba(255,121,0,.08); } .tp-ref b { color: var(--accent-cyan); font-size: 1.15rem; letter-spacing: .08em; }
.tp-done { text-align: center; display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.tp-done svg { width: 64px; height: 64px; fill: none; stroke: var(--accent-green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tp-done circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: okDraw .7s forwards; } .tp-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: okDraw .45s .55s forwards; }
.tp-done p { color: var(--text-muted); font-size: .9rem; }
.pay-doc { font-size: .82rem; color: var(--text-muted); } .pay-doc summary { cursor: pointer; } .pay-doc p { margin-top: .5rem; line-height: 1.6; }
.pay-doc code { background: var(--bg-card2); padding: .1rem .4rem; border-radius: 5px; font-family: var(--font-mono); font-size: .78rem; word-break: break-all; }

/* ── Ekip yetkileri ── */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.perm-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--border-dim); border-radius: 10px; font-size: .84rem; cursor: pointer; }
.perm-item:has(input:checked) { border-color: var(--border-hot); background: var(--bg-hover); }
.perm-item input { width: 17px; height: 17px; accent-color: var(--accent-cyan); }

/* ── Yasal sayfalar ── */
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; padding-bottom: 3rem; }
.legal-nav { display: flex; flex-direction: column; gap: .3rem; position: sticky; top: calc(var(--nav-h) + var(--safe-top) + 1rem); }
.legal-nav button { text-align: left; padding: .65rem .9rem; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-muted); font-weight: 600; font-size: .88rem; cursor: pointer; font-family: inherit; }
.legal-nav button:hover { color: var(--text-bright); background: var(--bg-hover); }
.legal-nav button.on { color: var(--text-bright); background: var(--bg-card); border-color: var(--border-glow); }
.legal-doc { background: var(--bg-card); border: 1px solid var(--border-dim); border-radius: 18px; padding: clamp(1.2rem, 4vw, 2.4rem); line-height: 1.75; color: var(--text-primary); font-size: .95rem; }
.legal-doc h2 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-bright); margin-bottom: .2rem; }
.legal-doc h3 { font-size: 1.02rem; color: var(--text-bright); margin: 1.5rem 0 .4rem; }
.legal-doc ul { padding-left: 1.2rem; margin: .5rem 0; } .legal-doc li { margin: .3rem 0; }
.legal-doc mark { background: rgba(251,191,36,.18); color: var(--accent-gold); padding: .05rem .35rem; border-radius: 5px; }
.legal-upd { color: var(--text-dim); font-size: .8rem; margin-bottom: .6rem; }
@media (max-width: 800px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .legal-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: .4rem; margin: 0 -1rem; padding: 0 1rem; }
  .legal-nav::-webkit-scrollbar { display: none; } .legal-nav button { white-space: nowrap; border-color: var(--border-dim); }
}

/* ── Çerez bildirimi ── */
.cookie-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1rem + var(--safe-bottom)); z-index: 960; width: min(640px, calc(100% - 1.5rem)); display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: 16px; background: var(--bg-card2); border: 1px solid var(--border-glow); box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: cardIn .5s backwards; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { font-size: .8rem; color: var(--text-muted); line-height: 1.5; margin: 0; flex: 1; }
.cookie-bar a { color: var(--accent-cyan); text-decoration: underline; cursor: pointer; }
@media (max-width: 900px) { .cookie-bar { bottom: calc(76px + var(--safe-bottom)); } }
@media (max-width: 520px) { .cookie-bar { flex-direction: column; align-items: stretch; } }

/* ── Yapay zeka asistanı ── */
.fab-ai { border-color: rgba(255,121,0,.5); }
.fab-ai .ic { stroke: var(--accent-cyan); }
.ai-nudge { position: fixed; right: max(1rem, var(--safe-right)); bottom: calc(5.4rem + var(--safe-bottom)); z-index: 899; display: flex; align-items: center; gap: .5rem; padding: .6rem .6rem .6rem 1rem; border-radius: 14px 14px 4px 14px; background: var(--bg-card2); border: 1px solid var(--border-glow); font-size: .84rem; font-weight: 600; color: var(--text-bright); cursor: pointer; box-shadow: 0 12px 36px rgba(0,0,0,.4); animation: cardIn .5s backwards; }
.ai-nudge[hidden] { display: none; }
.ai-nudge button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
@media (max-width: 900px) { .ai-nudge { bottom: calc(142px + var(--safe-bottom)); } }
.ai-panel {
  position: fixed; right: max(1rem, var(--safe-right)); bottom: calc(1rem + var(--safe-bottom)); z-index: 1200; width: min(400px, calc(100vw - 2rem)); height: min(640px, calc(100dvh - 2rem));
  display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-glow); border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.6); overflow: hidden;
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .25s, transform .25s cubic-bezier(.2,.8,.2,1); transform-origin: bottom right;
}
.ai-panel[hidden] { display: none; }
.ai-panel.open { opacity: 1; transform: none; }
body.ai-open .fab, body.ai-open .ai-nudge { display: none; }
.ai-head { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border-dim); }
.ai-av, .ai-mav, .ai-hello-ic { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, #ff7900, #ff9d2e); }
.ai-av { width: 38px; height: 38px; flex-shrink: 0; }
.ai-av svg, .ai-mav svg, .ai-hello-ic svg { fill: #fff; stroke: #fff; stroke-width: .6; stroke-linejoin: round; }
.ai-av svg { width: 20px; height: 20px; }
.ai-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ai-ttl b { font-size: .98rem; color: var(--text-bright); } .ai-ttl span { font-size: .7rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-hbtn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ai-hbtn:hover { background: var(--bg-hover); color: var(--text-bright); } .ai-hbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; min-height: 0; overscroll-behavior: contain; }
.ai-hello { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem; }
.ai-hello-ic { width: 52px; height: 52px; border-radius: 16px; } .ai-hello-ic svg { width: 28px; height: 28px; }
.ai-hello b { color: var(--text-bright); font-size: 1.02rem; } .ai-hello span { color: var(--text-muted); font-size: .84rem; max-width: 280px; line-height: 1.5; }
.ai-m { display: flex; gap: .55rem; align-items: flex-end; max-width: 92%; } .ai-m.me { align-self: flex-end; } .ai-m.bot { align-self: flex-start; }
.ai-mav { width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0; } .ai-mav svg { width: 14px; height: 14px; }
.ai-bub { padding: .6rem .9rem; border-radius: 16px; font-size: .88rem; line-height: 1.55; overflow-wrap: anywhere; background: var(--bg-card2); border: 1px solid var(--border-dim); color: var(--text-primary); }
.ai-m.me .ai-bub { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); border-bottom-right-radius: 5px; }
.ai-m.bot .ai-bub { border-bottom-left-radius: 5px; }
.ai-bub p { margin: 0; } .ai-bub p + p, .ai-bub p + ul, .ai-bub ul + p { margin-top: .5rem; }
.ai-bub ul { padding-left: 1.1rem; margin: .3rem 0 0; } .ai-bub li { margin: .15rem 0; }
.ai-bub b { color: var(--text-bright); } .ai-bub code { background: rgba(255,255,255,.08); padding: .05rem .35rem; border-radius: 5px; font-family: var(--font-mono); font-size: .8rem; }
.ai-link { color: var(--accent-cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ai-dots { display: inline-flex; gap: 4px; align-items: center; height: 14px; }
.ai-chips { display: flex; gap: .4rem; flex-wrap: wrap; padding: 0 1rem .6rem; } .ai-chips:empty { display: none; }
.ai-chips button { font-size: .76rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--border-glow); background: transparent; color: var(--text-primary); cursor: pointer; font-family: inherit; }
.ai-chips button:hover { border-color: var(--border-hot); color: var(--text-bright); background: var(--bg-hover); }
.ai-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--border-dim); }
.ai-form textarea { flex: 1; resize: none; max-height: 110px; padding: .65rem .9rem; border-radius: 14px; border: 1px solid var(--border-dim); background: var(--bg-card2); color: var(--text-bright); font: inherit; font-size: 16px; line-height: 1.4; outline: none; }
.ai-form textarea:focus { border-color: var(--border-hot); box-shadow: 0 0 0 3px rgba(255,121,0,.18); }
.ai-send { width: 42px; height: 42px; border-radius: 13px; border: 0; background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-send:disabled { opacity: .45; cursor: default; } .ai-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ai-foot { padding: 0 1rem .8rem; font-size: .68rem; color: var(--text-dim); text-align: center; } .ai-foot a { color: var(--text-muted); text-decoration: underline; cursor: pointer; }
@media (max-width: 700px) {
  .ai-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 88dvh; border-radius: 22px 22px 0 0; transform-origin: bottom center; padding-bottom: var(--safe-bottom); }
  body.ai-open .tabbar { display: none; }
}
@media (max-width: 700px) { body.ai-open { overflow: hidden; } }

/* Gelen kutusu: telefonda konuşma tam ekran */
@media (max-width: 900px) {
  .inbox.thread-open .inbox-thread-pane {
    position: fixed; top: calc(var(--nav-h) + var(--safe-top)); left: 0; right: 0; bottom: 0; z-index: 940; background: var(--bg-void);
    padding-bottom: var(--safe-bottom);
  }
  .inbox.thread-open .inbox-thread-pane .inbox-thread { height: 100%; }
  body.inbox-thread .tabbar, body.inbox-thread .fab, body.inbox-thread .ai-nudge, body.inbox-thread .cookie-bar { display: none; }
  .thr-head { padding: .6rem .8rem; gap: .45rem; }
  .thr-ctrl { gap: .4rem; } .thr-ctrl label { flex: 1 1 42%; } .thr-ctrl select { width: 100%; min-width: 0; }
  .thr-ctrl .btn { flex: 1 1 auto; }
  .thr-compose { padding: .6rem .8rem .7rem; }
  .thr-compose textarea { min-height: 0; }
}

/* Sistem kontrolü */
.health-card { margin-bottom: 1rem; }
.health-sum { padding: .6rem .9rem; border-radius: 10px; background: var(--bg-card2); border: 1px solid var(--border-dim); font-size: .85rem; font-weight: 600; margin-bottom: .6rem; }
.health-sum.bad { border-color: rgba(248,113,113,.5); color: var(--accent-red); } .health-sum.good { border-color: rgba(52,211,153,.5); color: var(--accent-green); }
.health-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .1rem .6rem; padding: .4rem .2rem; border-bottom: 1px solid var(--border-dim); font-size: .82rem; }
.health-row span { grid-row: span 2; font-weight: 800; } .health-row.ok span { color: var(--accent-green); } .health-row.bad span, .health-row.bad b { color: var(--accent-red); }
.health-row em { grid-column: 2; font-style: normal; color: var(--text-muted); font-size: .74rem; word-break: break-word; }
