:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --ink: #16121f;
  --muted: #6b6478;
  --bg: #ffffff;
  --bg-soft: #faf8fc;
  --border: #ece7f3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(35, 15, 60, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { height: 28px; width: auto; border-radius: 6px; }

.hero {
  padding: 36px 0 24px;
  text-align: center;
}
.hero .app-logo {
  width: 72px; height: 72px; border-radius: 20px;
  margin: 0 auto 18px; object-fit: cover;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.hero p.subtitle {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 22px;
}

.badge-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 22px;
}
.badge {
  font-size: 12.5px; color: var(--primary-dark); background: #f2ebfd;
  border: 1px solid #e3d6fb; padding: 6px 12px; border-radius: 999px;
  font-weight: 600;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 15px 18px; border-radius: 12px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer; transition: transform .05s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--border); }
.btn-block + .btn-block { margin-top: 10px; }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

.referral-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; background: #fff; border: 1.5px dashed var(--primary);
  border-radius: 12px; padding: 14px 16px; margin: 14px 0;
}
.referral-code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 20px; font-weight: 800; letter-spacing: 0.05em; color: var(--ink);
}
.copy-btn {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 9px 14px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.copy-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.copy-confirm { font-size: 13px; color: #15803d; font-weight: 700; display: none; margin-top: 6px; }

.section-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; margin: 30px 0 12px;
}

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-weight: 800; color: var(--primary); flex-shrink: 0; font-size: 14px;
  padding-top: 2px;
}

.video-wrap {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 16px;
}
.video-wrap video, .video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}

form .field { margin-bottom: 16px; }
label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=tel] {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  font-size: 16px; background: #fff;
}
input:focus { outline: none; border-color: var(--primary); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.error-box {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px;
}

footer.site-footer {
  border-top: 1px solid var(--border); margin-top: 40px; padding: 24px 20px 40px;
  text-align: center; color: var(--muted); font-size: 13px;
}
footer.site-footer a { color: var(--muted); margin: 0 6px; text-decoration: none; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---- Admin ---- */
body.admin { background: #f6f5f9; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; background: #17122a; color: #fff; padding: 20px 14px; flex-shrink: 0;
}
.admin-sidebar .brand { color: #fff; margin-bottom: 24px; }
.admin-sidebar a {
  display: block; padding: 10px 12px; border-radius: 8px; color: #d7d1e6;
  text-decoration: none; font-size: 14.5px; margin-bottom: 2px;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { flex: 1; padding: 28px; max-width: 1100px; }
.admin-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-topline h1 { font-size: 22px; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.stat-card .num { font-size: 26px; font-weight: 800; }
.stat-card .label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

table.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
table.data-table th, table.data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.data-table th { background: #f9f8fb; font-size: 12.5px; text-transform: uppercase; color: var(--muted); }
table.data-table tr:last-child td { border-bottom: none; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-yeni { background: #eff6ff; color: #1d4ed8; }
.pill-onaylandi { background: #f0fdf4; color: #15803d; }
.pill-reddedildi { background: #fef2f2; color: #b91c1c; }
.pill-active { background: #f0fdf4; color: #15803d; }
.pill-inactive { background: #f3f4f6; color: #6b7280; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .admin-sidebar { display: none; } .admin-main { padding: 16px; } }

.form-panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 14px; font-family: inherit; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.actions-row { display: flex; gap: 8px; margin-top: 18px; }
.btn-small { padding: 8px 12px; font-size: 13px; width: auto; border-radius: 8px; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #17122a; }
.login-card { background: #fff; border-radius: 16px; padding: 32px; width: 100%; max-width: 360px; }

/* =========================================================================
   LANDING PAGE — premium dark tema (yalnızca body.landing-page kapsamında).
   Admin panelini, kayıt formunu, teşekkür ve yasal sayfaları ETKİLEMEZ —
   onlar :root'taki orijinal açık tema değişkenlerini kullanmaya devam eder.
   ========================================================================= */

body.landing-page {
  --lp-bg: #07050f;
  --lp-surface: rgba(255, 255, 255, 0.045);
  --lp-surface-strong: rgba(255, 255, 255, 0.07);
  --lp-border: rgba(255, 255, 255, 0.09);
  --lp-text: #f6f4fb;
  --lp-muted: #a79fc2;
  --lp-grad-a: #8b5cf6;
  --lp-grad-b: #ec4899;
  --lp-grad: linear-gradient(135deg, var(--lp-grad-a), var(--lp-grad-b));
  color: var(--lp-text);
  background-color: var(--lp-bg);
  background-image:
    radial-gradient(720px 420px at 12% -8%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(640px 420px at 100% 0%, rgba(236, 72, 153, 0.20), transparent 55%),
    radial-gradient(900px 500px at 50% 100%, rgba(139, 92, 246, 0.12), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* dekoratif glow/blur efektleri hiçbir koşulda yatay scrollbar oluşturmasın */
  width: 100%;
}
html:has(body.landing-page) { scroll-behavior: smooth; background: #07050f; }

.lp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.lp-topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(7, 5, 15, 0.55); border-bottom: 1px solid var(--lp-border); }
.lp-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--lp-text); text-decoration: none; letter-spacing: -0.01em; }
.lp-brand img { height: 30px; width: auto; border-radius: 8px; }

/* Hero */
.lp-hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.lp-hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .lp-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }

.lp-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; color: #ecdcff;
  background: var(--lp-surface); border: 1px solid var(--lp-border);
  margin-bottom: 22px;
}

.lp-hero-title {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--lp-text);
}
.lp-gradient-text {
  background: var(--lp-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lp-hero-sub { font-size: clamp(15px, 2.4vw, 18px); color: var(--lp-muted); max-width: 46ch; margin: 0 0 30px; line-height: 1.6; }

.lp-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 26px; border-radius: 14px; font-size: 15.5px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lp-btn:active { transform: scale(0.97); }
.lp-btn-primary { background: var(--lp-grad); color: #fff; box-shadow: 0 12px 30px -8px rgba(139, 92, 246, 0.55); }
.lp-btn-ghost { background: var(--lp-surface); color: var(--lp-text); border-color: var(--lp-border); }
.lp-btn-block { width: 100%; }
@media (hover: hover) {
  .lp-btn-primary:hover { box-shadow: 0 16px 36px -6px rgba(236, 72, 153, 0.55); }
  .lp-btn-ghost:hover { background: var(--lp-surface-strong); }
}

.lp-trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-pill { font-size: 12.5px; font-weight: 600; color: var(--lp-muted); background: var(--lp-surface); border: 1px solid var(--lp-border); padding: 7px 13px; border-radius: 999px; }

/* Hero visual — "phone" showcase card, gerçek admin verisiyle */
.lp-hero-visual { display: flex; justify-content: center; }
.lp-phone-card {
  width: 100%; max-width: 320px; border-radius: 32px; padding: 28px 24px;
  background: linear-gradient(180deg, var(--lp-surface-strong), var(--lp-surface));
  border: 1px solid var(--lp-border);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  position: relative;
}
.lp-phone-glow {
  position: absolute; inset: -40px; z-index: -1; border-radius: 40px; filter: blur(60px); opacity: .55;
  background: var(--lp-grad);
}
.lp-phone-logo { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; margin-bottom: 16px; box-shadow: 0 10px 24px rgba(0,0,0,0.4); }
.lp-phone-appname { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.lp-phone-desc { font-size: 13.5px; color: var(--lp-muted); line-height: 1.6; margin: 0 0 20px; }
.lp-phone-code-row { display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,0.28); border: 1px dashed rgba(255,255,255,0.25); border-radius: 12px; padding: 12px 14px; }
.lp-phone-code-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-muted); }
.lp-phone-code-value { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 800; font-size: 17px; }

/* Glass cards (referral / download / final CTA) */
.lp-section { padding: 30px 0; }
.lp-glass-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 24px;
  padding: 28px 24px;
  backdrop-filter: blur(16px);
}
@media (min-width: 700px) { .lp-glass-card { padding: 40px; } }

.lp-eyebrow { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: #d8b4fe; font-weight: 700; margin: 0 0 8px; }
.lp-h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.lp-muted { color: var(--lp-muted); margin: 0; line-height: 1.6; }

.lp-referral-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 22px; background: rgba(0,0,0,0.25); border: 1px dashed rgba(236, 72, 153, 0.55);
  border-radius: 16px; padding: 18px 22px;
}
.lp-referral-code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: clamp(22px, 4vw, 28px); font-weight: 800; letter-spacing: 0.06em; }
.lp-copy-btn {
  background: var(--lp-grad); color: #fff; border: none; border-radius: 12px;
  padding: 12px 20px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px;
  box-shadow: 0 10px 22px -8px rgba(139,92,246,0.6);
}
.lp-copy-confirm { display: none; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: #4ade80; }
.lp-hint { margin-top: 12px; font-size: 13px; color: var(--lp-muted); }

/* Steps */
.lp-steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .lp-steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lp-steps-grid { grid-template-columns: repeat(4, 1fr); } }
.lp-step-card {
  background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: 18px;
  padding: 22px 20px; transition: transform .2s ease, background .2s ease;
}
@media (hover: hover) { .lp-step-card:hover { transform: translateY(-4px); background: var(--lp-surface-strong); } }
.lp-step-num { display: block; font-size: 26px; font-weight: 800; background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; margin-bottom: 10px; }
.lp-step-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #e7e2f2; }

.lp-video-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: 20px; overflow: hidden; margin-top: 24px; background: #000; border: 1px solid var(--lp-border); }
.lp-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* Download */
.lp-store-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
@media (min-width: 520px) { .lp-store-buttons { flex-direction: row; } }
.lp-store-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; border-radius: 14px; border: 1px solid var(--lp-border);
  background: var(--lp-surface); color: var(--lp-text); text-decoration: none;
  font-weight: 700; font-size: 15px; transition: all .15s ease;
}
.lp-store-btn--active { background: var(--lp-grad); border-color: transparent; box-shadow: 0 12px 28px -8px rgba(236,72,153,0.55); }
@media (hover: hover) { .lp-store-btn:hover { background: var(--lp-surface-strong); } }

/* Final CTA */
.lp-final-card { text-align: center; }
.lp-final-card .lp-btn { margin: 22px auto 0; max-width: 420px; }

/* Empty state (dark) */
.lp-empty { text-align: center; padding: 90px 20px; color: var(--lp-muted); }

/* Footer */
.lp-footer { border-top: 1px solid var(--lp-border); margin-top: 30px; padding: 36px 0 44px; }
.lp-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.lp-footer-brand { font-weight: 800; font-size: 16px; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 6px 4px; justify-content: center; }
.lp-footer-links a { color: var(--lp-muted); text-decoration: none; font-size: 13.5px; padding: 4px 8px; }
@media (hover: hover) { .lp-footer-links a:hover { color: var(--lp-text); } }
.lp-footer-copy { font-size: 12.5px; color: #6f6884; margin: 0; }

/* Scroll reveal (progressive enhancement, prefers-reduced-motion aware) */
.lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.lp-reveal.lp-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
}

/* Landing tema — sade form kartı (başvuru / teşekkür sayfaları) */
.landing-page .lp-container--narrow { max-width: 480px; }
.landing-page .lp-field { margin-bottom: 20px; text-align: left; }
.landing-page .lp-label {
  display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--lp-text);
}
.landing-page .lp-input {
  width: 100%; padding: 16px 16px; border-radius: 14px; border: 1px solid var(--lp-border);
  background: rgba(255, 255, 255, 0.05); color: var(--lp-text); font-size: 17px; min-height: 56px;
}
.landing-page .lp-input::placeholder { color: var(--lp-muted); }
.landing-page .lp-input:focus {
  outline: none; border-color: var(--lp-grad-b);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25);
}
.landing-page .lp-error-box {
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #fecaca;
  border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px;
}
.landing-page .lp-success-icon { font-size: 44px; margin-bottom: 8px; }

/* Anasayfa galerisi (hero altı, admin panelinden yönetilir) */
.lp-gallery-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .lp-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.lp-gallery-item {
  position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--lp-border); background: var(--lp-surface);
  box-shadow: 0 18px 40px -20px rgba(139, 92, 246, 0.35);
}
.lp-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-gallery-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0) 55%, rgba(7, 5, 15, 0.35) 100%);
}

/* Sağ alt "Bize Ulaş" floating iletişim alanı */
.lp-contact-widget {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.lp-contact-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--lp-border);
  background: var(--lp-grad); color: #fff; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(139, 92, 246, 0.65);
  transition: transform .15s ease;
}
.lp-contact-toggle:active { transform: scale(0.94); }
.lp-contact-menu {
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(8px) scale(0.97); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.lp-contact-widget.lp-contact-open .lp-contact-menu {
  opacity: 1; transform: none; pointer-events: auto;
}
.lp-contact-option {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 11px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--lp-surface-strong); border: 1px solid var(--lp-border);
  color: var(--lp-text); text-decoration: none; backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
@media (hover: hover) { .lp-contact-option:hover { background: var(--lp-surface); } }
@media (max-width: 480px) {
  .lp-contact-widget { right: 14px; bottom: 14px; }
  .lp-contact-toggle { width: 52px; height: 52px; font-size: 20px; }
}
