:root {
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --blue-light: #38bdf8;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --bg: #f1f5f9;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --line: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue); }

.container { width: min(1100px, 100% - 40px); margin-inline: auto; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }

/* Header */
.site-header {
  background: linear-gradient(135deg, #0c4a6e 0%, var(--blue-dark) 40%, var(--blue) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(20,184,166,.25), transparent 40%);
  pointer-events: none;
}
.hero-header { padding-bottom: 56px; }
.nav-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; opacity: .95; }
.brand.compact span:last-child { font-weight: 700; font-size: 15px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { font-size: 11px; opacity: .85; font-weight: 500; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark.lg { width: 56px; height: 56px; border-radius: 18px; }
.brand-mark.lg svg { width: 28px; height: 28px; }

.nav-links, .admin-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
}
.nav-toggle::before { content: "☰"; font-size: 18px; }
.nav-toggle.light { border-color: rgba(255,255,255,.15); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links, .admin-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15,23,42,.96);
    backdrop-filter: blur(12px);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow);
  }
  .nav-links.open, .admin-nav.open { display: flex; }
  .admin-bar { position: relative; flex-wrap: wrap; }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px 0;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { order: -1; justify-self: center; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .9;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}
.lead { font-size: 1.08rem; opacity: .95; max-width: 540px; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-bullets li {
  font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 12px;
  border-radius: 999px;
}
.hero-shot img {
  width: min(300px, 100%);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 4px solid rgba(255,255,255,.22);
}
.placeholder-shot {
  width: 280px; min-height: 480px;
  border-radius: 28px;
  background: rgba(255,255,255,.1);
  border: 2px dashed rgba(255,255,255,.25);
  display: grid; place-items: center;
  text-align: center; padding: 24px;
}

.page-hero {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
  padding: 48px 20px 32px;
}
.page-hero h1 { margin: 8px 0 0; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.page-hero-sub { color: var(--muted); max-width: 640px; margin: 12px 0 0; }

/* Sections */
.section { padding: 72px 20px; }
.section.alt { background: #fff; }
.section-head { margin-bottom: 36px; }
.section h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.section-sub { color: var(--muted); margin: 0; max-width: 640px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  color: var(--blue-dark);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.shot-grid figure { margin: 0; }
.shot-grid img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  aspect-ratio: 9/16;
  object-fit: cover;
  background: var(--line);
  transition: transform .2s;
}
.shot-grid a:hover img { transform: scale(1.02); }
.shot-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow);
  position: relative;
}
.price-card.featured::before {
  content: "Önerilen";
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px; font-weight: 700;
  background: #ccfbf1; color: #0f766e;
  padding: 4px 10px; border-radius: 999px;
}
.price-card h3 { margin: 0 0 6px; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--blue-dark); margin: 0 0 16px; }
.price-card ul { padding-left: 18px; margin: 0 0 24px; color: var(--muted); flex: 1; }
.price-card .btn { align-self: flex-start; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--bg-soft); text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.05); color: #fff; }
.btn.lg { padding: 14px 22px; font-size: 15px; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.block { width: 100%; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 20px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.site-footer a { color: #e2e8f0; }
.site-footer strong { color: #fff; }
.copy { text-align: center; font-size: 13px; margin: 0; opacity: .75; }

/* Forms */
.page-main { padding: 32px 20px 64px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.form-grid label, .form-stack label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: #334155; }
.form-grid input, .form-grid select, .form-grid textarea,
.form-stack input, .form-stack select, .form-stack textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-grid input:focus, .form-stack input:focus,
.form-grid select:focus, .form-stack select:focus,
.form-grid textarea:focus, .form-stack textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2,132,199,.15);
}
.form-stack { display: flex; flex-direction: column; gap: 0; }
.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 20px;
  margin-bottom: 16px;
  background: var(--bg-soft);
}
.form-section legend { font-weight: 700; padding: 0 6px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.form-hint.center { text-align: center; }
.form-hint code { background: #e2e8f0; padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.modules { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: #fff; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; margin: 8px 0; font-size: 14px; }
.check input { margin-top: 3px; width: auto; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}
.alert.ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.err, .ok { /* legacy */ }
.hint { color: var(--muted); font-size: 14px; }

/* Auth / install */
.install-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, #e0f2fe, var(--bg-soft) 55%);
}
.auth-card { width: min(480px, 100%); }
.auth-card.wide { width: min(640px, 100%); }
.auth-card-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand h1 { margin: 12px 0 6px; font-size: 1.5rem; }
.auth-brand p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-brand .brand-mark { margin: 0 auto; color: var(--blue-dark); background: #e0f2fe; border: none; }

/* Admin */
.admin-shell { background: var(--bg); }
.admin-bar {
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.admin-nav a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.muted { opacity: .7; }
.admin-nav a.logout { color: #fca5a5; }
.admin-main { padding: 32px 20px 64px; }
.admin-container h1 { margin: 0 0 8px; font-size: 1.75rem; }
.admin-container > p { color: var(--muted); margin: 0 0 24px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 2rem; color: var(--blue-dark); line-height: 1; margin-bottom: 6px; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}
table.data th, table.data td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
table.data th {
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}
table.data tbody tr:hover { background: #fafafa; }
table.data tr.muted { opacity: .55; }
.small { font-size: 11px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-neutral { background: #f1f5f9; color: #475569; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

.page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-actions a { font-size: 13px; font-weight: 600; }

details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue-dark); }
details textarea { width: 100%; margin-top: 8px; }
