:root {
  --bg: #0f0f12; --card: #19191e; --line: #2a2a31; --text: #f2f2f4; --muted: #9a9aa6;
  --accent: #e8344e; --accent-2: #ff6b81; --ok: #3ccf8e; --warn: #f5b84a;
  --radius: 16px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.muted { color: var(--muted); margin: 0 0 12px; }
.small { font-size: 12px; font-weight: 400; }
.err { color: var(--accent-2); min-height: 1em; margin: 8px 0 0; font-size: 14px; }
h2 { font-size: 16px; margin: 0 0 6px; }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .2px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ff9a5a); }
.badge { font-size: 10px; background: var(--warn); color: #222; padding: 2px 6px; border-radius: 6px; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: rgba(15,15,18,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
main { max-width: 760px; margin: 0 auto; padding: 14px 14px calc(90px + var(--safe-b)); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea { width: 100%; background: #111115; color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; margin-bottom: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.radio { flex-direction: row; align-items: center; gap: 6px; color: var(--text); }
.radio input { width: auto; }

.btn { border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); background: #26262d; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff5a5f); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.cost { font-weight: 400; opacity: .8; font-size: 13px; margin-left: 6px; }

.sticky-cta { position: sticky; bottom: calc(70px + var(--safe-b)); z-index: 4; padding-top: 6px; }

/* Görsel slotları */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 600px) { .slots { grid-template-columns: repeat(5, 1fr); } }
.slot { position: relative; border: 1.5px dashed var(--line); border-radius: 12px; aspect-ratio: 3/4; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; background: #121216; }
.slot.filled { border-style: solid; border-color: var(--accent); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .pick { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--muted); font-size: 13px; cursor: pointer; }
.slot .pick b { font-size: 26px; font-weight: 300; color: var(--text); }
.slot input[type=file] { display: none; }
.slot .meta { position: relative; z-index: 1; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.slot .meta span { font-size: 12px; font-weight: 600; display: block; margin-bottom: 4px; }
.slot .meta input { padding: 6px 8px; font-size: 12px; border-radius: 8px; background: rgba(0,0,0,.6); }
.slot .rm { position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; }

/* İş detayı */
.steps { display: flex; gap: 8px; margin-bottom: 14px; }
.step { flex: 1; text-align: center; font-size: 12px; padding: 8px; border-radius: 10px; background: #121216; color: var(--muted); border: 1px solid var(--line); }
.step.on { color: var(--text); border-color: var(--accent); }
.step.ok { color: var(--ok); border-color: rgba(60,207,142,.4); }
.media { width: 100%; border-radius: 12px; background: #000; display: block; max-height: 70vh; object-fit: contain; }
.loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 10px; color: var(--muted); text-align: center; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: grid; gap: 10px; margin-top: 14px; }
.actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
details { margin-top: 12px; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
details textarea { margin-top: 8px; font-size: 13px; }
.thumbs { display: flex; gap: 6px; margin-top: 10px; }
.thumbs img { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.back { margin-bottom: 12px; }

/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.g-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; }
.g-item .thumb { aspect-ratio: 9/14; background: #000 center/cover no-repeat; position: relative; }
.g-item .thumb video { width: 100%; height: 100%; object-fit: cover; }
.g-item .info { padding: 8px 10px; }
.g-item .t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 20px; margin-top: 4px; background: #26262d; color: var(--muted); }
.pill.done { background: rgba(60,207,142,.15); color: var(--ok); }
.pill.err { background: rgba(232,52,78,.15); color: var(--accent-2); }
.pill.run { background: rgba(245,184,74,.15); color: var(--warn); }
.empty { color: var(--muted); text-align: center; padding: 50px 10px; grid-column: 1/-1; }

/* Alt sekme çubuğu */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; gap: 40px;
  padding: 8px 0 calc(8px + var(--safe-b)); background: rgba(15,15,18,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; padding: 4px 18px; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tabbar button.active { color: var(--text); }

/* Giriş */
.screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 360px; display: grid; gap: 12px; }
.login-card .brand { font-size: 18px; }

/* ===== Herkese açık sürüm eklemeleri ===== */
a { color: var(--accent-2); }
.center { text-align: center; }
.stack { display: grid; gap: 10px; }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px; }
.btn.big { padding: 15px 28px; font-size: 17px; }
.btn.danger { color: var(--accent-2); border-color: rgba(232,52,78,.4); }
.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); font-size: 13px; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }
#toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: #2a2a31;
  color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; z-index: 50; pointer-events: none; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%); }
.banner { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }
.banner.ok { background: rgba(60,207,142,.12); color: var(--ok); border: 1px solid rgba(60,207,142,.3); }
.banner.fail { background: rgba(232,52,78,.12); color: var(--accent-2); border: 1px solid rgba(232,52,78,.3); }

.credit-pill { background: #22222a; border: 1px solid var(--line); color: var(--text); border-radius: 20px; padding: 6px 12px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.credit-pill span { color: #ffb36b; }

/* Tanıtım */
.landing { max-width: 960px; }
.hero { text-align: center; padding: 36px 6px 20px; }
.hero h1 { font-size: clamp(30px, 8vw, 52px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.5px; }
.grad { background: linear-gradient(90deg, var(--accent), #ff9a5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #c9c9d2; font-size: 17px; max-width: 560px; margin: 0 auto 22px; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 26px 0 34px; }
.how-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.how-step b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ff9a5a); font-size: 14px; }
.how-step h3 { margin: 10px 0 4px; font-size: 16px; }
.how-step p { margin: 0; color: var(--muted); font-size: 14px; }
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pkg { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; cursor: pointer; transition: border-color .15s; }
.pkg:hover, .pkg.sel { border-color: var(--accent); }
.pkg .name { font-weight: 700; }
.pkg .cr { font-size: 30px; font-weight: 800; margin: 6px 0 0; }
.pkg .price { font-size: 18px; margin: 2px 0 6px; }
.pkg .per { color: var(--muted); font-size: 12px; }
.pkg .tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); font-size: 11px; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 13px; padding: 30px 0 10px; border-top: 1px solid var(--line); margin-top: 30px; }
.footer a { color: var(--muted); }
.pay-logos { width: 100%; text-align: center; color: var(--muted); font-size: 12px; margin-top: 6px; }
#landing main { padding-bottom: 40px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { position: relative; width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px 14px; max-height: 92vh; overflow: auto; }
.modal-card h3 { margin: 0; }
.modal-x { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #111115; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 9px; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.seg button.on { background: #26262d; color: var(--text); }
.google-slot { display: flex; justify-content: center; min-height: 44px; margin: 14px 0 4px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 10px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
input.code { text-align: center; font-size: 24px; letter-spacing: 8px; }

/* Kredi sekmesi */
.balance-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.big-num { font-size: 28px; font-weight: 800; }
.section-h { margin: 18px 4px 12px; }
.ledger, .admin-list { display: grid; gap: 6px; font-size: 13px; margin-top: 8px; }
.ledger div, .admin-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #121216; border-radius: 8px; align-items: center; }
.plus { color: var(--ok); font-weight: 700; } .minus { color: var(--muted); font-weight: 700; }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }
.admin-list .u { flex-wrap: wrap; }
.admin-list .u .em { flex: 1 1 180px; word-break: break-all; }
.admin-list .u input { width: 80px; padding: 6px 8px; }
.admin-list .u .btn { padding: 6px 10px; font-size: 12px; }
.tabbar { gap: 18px; }

.logo { width: 28px; height: 28px; border-radius: 8px; display: block; flex: none; }
.brandName { font-size: 18px; letter-spacing: -.3px; }
.hero-logo { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 18px; display: block; box-shadow: 0 10px 40px rgba(232,52,78,.35); }
.btn .cost { white-space: nowrap; }

/* ===== Global sürüm: dil, modlar, para birimi ===== */
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.lang-btn:hover { color: var(--text); }
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 26px; }
.mode-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.mode-card .mc-ico { font-size: 28px; }
.mode-card h3 { margin: 8px 0 4px; font-size: 17px; }
.mode-card p { margin: 0; color: var(--muted); font-size: 14px; }
.mode-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mode-pick label, .src-seg label { position: relative; cursor: pointer; }
.mode-pick input, .src-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mode-pick span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 12px 6px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #121216; color: var(--muted); font-size: 22px; line-height: 1.2; }
.mode-pick span b { font-size: 13px; color: var(--text); font-weight: 600; }
.mode-pick input:checked + span { border-color: var(--accent); background: rgba(232,52,78,.08); color: var(--text); }
.src-seg { margin: 6px 0 14px; }
.src-seg span { display: block; text-align: center; padding: 9px; border-radius: 9px; color: var(--muted); font-weight: 600; }
.src-seg input:checked + span { background: #26262d; color: var(--text); }
.slots.one { grid-template-columns: minmax(0, 220px); }
.pricing-head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pricing-head h2 { margin: 0; }
.section-h.pricing-head { justify-content: space-between; }
.cur-select { width: auto; padding: 6px 10px; font-size: 13px; }
.g-item .pill + .pill { margin-left: 4px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }

/* ===== Sahneler ve birleştirme ===== */
.scene-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.scene-box h3 { margin: 0; font-size: 15px; }
.scene-opt { background: #121216; border: 1px solid var(--line); border-radius: 12px; }
.scene-opt > button { width: 100%; background: none; border: 0; color: var(--text); font: inherit; text-align: left; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.scene-opt > button b { font-size: 14px; }
.scene-opt > button span { color: var(--muted); font-size: 12px; }
.scene-opt .so-body { padding: 0 12px 12px; display: grid; gap: 8px; }
.gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.gallery-head p { margin: 0; }
.g-item { position: relative; }
.g-item.dim { opacity: .35; }
.g-item.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.g-item .num { position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.merge-panel { position: sticky; bottom: calc(70px + var(--safe-b)); z-index: 4; margin-top: 14px; background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px; box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
.merge-panel .mp-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.merge-panel input[type=file] { padding: 8px; font-size: 13px; }
