/* iPhone/Android uygulaması ve üyelik sayfaları.
   html.is-app: istek uygulamanın içinden geliyor (app/lib/uyelik.php → is_app_client). */

/* ---------- Uygulama içi düzen ---------- */
/* Sayfa tam ekran açılır (viewport-fit=cover): saat/pil çubuğu ve alttaki çizgi için güvenli boşluk bırakılır. */
html.is-app { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); }
html.is-app body { padding-top: var(--sat); padding-bottom: var(--sab); -webkit-tap-highlight-color: transparent; }
html.is-app body::before { content: ""; position: fixed; z-index: 2147483000; top: 0; left: 0; right: 0; height: var(--sat); background: var(--brand); pointer-events: none; }
html.is-app .site-head, html.is-app .demo-strip { top: var(--sat); }
html.is-app .side { top: var(--sat); height: calc(100vh - var(--sat)); }
@media (max-width: 960px) {
  html.is-app .side { top: 0; height: auto; padding-top: calc(18px + var(--sat)); padding-bottom: calc(18px + var(--sab)); }
  /* Kapalı yan menünün gölgesi telefonda sol kenara taşmasın (sitede de). */
  .side:not(.open) { box-shadow: none; }
}
/* Uygulamada pazarlama menüsü, WhatsApp düğmesi ve site sohbeti yok (mağaza kuralları ve sade görünüm). */
html.is-app .wa-float, html.is-app .site-chat, html.is-app .chat-fab { display: none !important; }
.app-head-bar { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.app-back { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; color: #fff; font-size: 28px; line-height: 1; text-decoration: none; }
.app-back:active { background: rgba(255, 255, 255, .12); }
.app-head-bar .grow { flex: 1; }
.app-head-bar .nav-login { color: #fff; font-weight: 700; text-decoration: none; }
.app-foot { padding: 22px 16px calc(26px + var(--sab, 0px)); text-align: center; font-size: .82rem; color: var(--ink-2); }
.app-foot a { color: var(--ink-2); font-weight: 600; }
.app-foot p { margin: 8px auto 0; max-width: 520px; font-size: .74rem; color: var(--muted, #6b7690); }

/* ---------- Karşılama ekranı (/uygulama) ---------- */
.app-hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; padding: 26px 0 30px; border-radius: 0 0 30px 30px; }
.app-hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; }
.app-hero h1 em { font-style: normal; color: #ffc24b; }
.app-hero p { margin: 0; color: #c9d3e3; font-size: 1.02rem; max-width: 520px; }
.app-score { margin-top: 22px; max-width: 460px; background: #fff; color: var(--brand); border-radius: 20px; padding: 16px 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.app-score-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-score-top span { font-weight: 700; font-size: .9rem; }
.app-score-top em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 9px; border-radius: 99px; }
.app-score-main { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.app-band { width: 74px; height: 74px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) 0 72%, #eef1f6 72% 100%); }
.app-band b { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; }
.app-bars { flex: 1; display: grid; gap: 7px; }
.app-bar { display: grid; grid-template-columns: 76px 1fr 28px; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-2); }
.app-bar i { height: 7px; border-radius: 9px; background: #eef1f6; position: relative; overflow: hidden; }
.app-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 9px; background: linear-gradient(90deg, var(--accent), #ffc24b); }
.app-bar b { text-align: right; color: var(--brand); }
.app-body { padding-top: 22px; padding-bottom: 26px; }
.app-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.app-feats li { display: flex; gap: 13px; align-items: flex-start; }
.app-feats b { display: block; font-size: 1rem; }
.app-feats small { display: block; color: var(--ink-2); font-size: .86rem; margin-top: 2px; }
.app-actions { display: grid; gap: 10px; margin-top: 26px; max-width: 460px; }
.app-actions .btn { width: 100%; }
.app-actions small { text-align: center; color: var(--ink-2); font-size: .82rem; }
.app-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.app-legal { max-width: 760px; padding-top: 34px; padding-bottom: 40px; }
.app-legal h2 { font-size: 1.2rem; margin: 26px 0 8px; }

/* ---------- Üyelik (/uyelik) ---------- */
.uy { max-width: 620px; }
.uy-card h2 { margin: 10px 0 12px; }
.uy-kv { margin: 0 0 14px; }
.uy-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.uy-kv span { color: var(--ink-2); }
.uy-kv b { text-align: right; }
.uy-btns { flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.uy-warn { background: #fff4e5; border: 1px solid #ffd59e; color: #6b4300; border-radius: 14px; padding: 12px 14px; margin: 12px 0; font-size: .92rem; }
.uy-err { background: #fdecec; border: 1px solid #f5b5b5; color: #8a1c1c; border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.uy-pay { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 24px; padding: 22px 20px 20px; box-shadow: var(--shadow); }
.uy-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--brand); color: #fff; font-weight: 800; font-size: .78rem; padding: 6px 12px; border-radius: 99px; }
.uy-pill i { width: 8px; height: 8px; border-radius: 50%; background: #ffc24b; }
.uy-head h2 { font-size: clamp(1.7rem, 6vw, 2.1rem); letter-spacing: -.02em; margin: 12px 0 4px; }
.uy-head p { margin: 0; }
.uy-incl { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.uy-incl li { position: relative; padding-left: 30px; font-weight: 600; font-size: .95rem; }
.uy-incl li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 15px; height: 8px; border: solid #1f9d6b; border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.uy-plans { display: grid; gap: 12px; margin: 20px 0 16px; }
.uy-plan { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 15px 16px; cursor: pointer; }
.uy-plan.on { border-color: var(--accent); box-shadow: 0 8px 20px rgba(255, 138, 61, .18); }
.uy-plan .grow b { display: block; font-size: 1.05rem; }
.uy-plan small { display: block; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.uy-plan small.trial { color: var(--accent-ink); }
.uy-plan .save { color: #1f9d6b; }
.uy-price { text-align: right; font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.uy-price small { font-size: .72rem; }
.uy-radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #c5cddb; }
.uy-plan.on .uy-radio { border: 7px solid var(--accent); }
.uy-ribbon { position: absolute; top: -11px; left: 16px; background: var(--accent); color: var(--brand); font-weight: 800; font-size: .68rem; padding: 3px 10px; border-radius: 99px; letter-spacing: .02em; }
.uy-buy { width: 100%; }
.uy-after { text-align: center; margin: 10px 0 0; font-size: .85rem; font-weight: 600; color: var(--ink-2); min-height: 1em; }
.uy-msg { text-align: center; margin: 8px 0 0; font-weight: 700; min-height: 1em; }
.uy-msg.bad { color: #b42318; }
.uy-restore { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--ink-2); font: inherit; font-weight: 700; font-size: .88rem; text-decoration: underline; padding: 8px; cursor: pointer; }
.uy-fine { margin: 12px 0 0; text-align: center; font-size: .72rem; line-height: 1.5; color: var(--ink-2); }
.uy-fine a { color: var(--ink-2); font-weight: 700; }
.uy-web { margin-top: 18px; }
.uy-stores { flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.uy-foot { margin-top: 18px; text-align: center; }
.uy-foot a { color: var(--ink-2); }
.uy-del { max-width: 640px; }
.uy-del label { margin-top: 16px; }

/* ---------- Analiz sayfasında "Sonucumu paylaş" (yalnızca uygulamada görünür) ---------- */
.uy-share { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.uy-share .btn { gap: 8px; }

/* ---------- Günlük çalışma hatırlatıcısı (yalnızca uygulamada görünür) ---------- */
.uy-remind .row { gap: 12px; align-items: center; flex-wrap: wrap; }
.uy-remind input[type=time] { max-width: 130px; }
.uy-remind .note { margin: 8px 0 0; }
