@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Inter:wght@400;500;600;700&display=swap');
:root { --ink: #2b2230; --muted: #7a6d80; --line: #eadfe8; --bg: #fdf9fb; --brand: #c2577a; --brand-d: #a43f61; --card: #fff; --ok: #2e9e6a; --no: #d1495b; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-d); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(253,249,251,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { font: 30px 'Great Vibes', cursive; color: var(--brand-d); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }

.btn { display: inline-block; border: 0; cursor: pointer; font: 600 14px Inter, sans-serif; padding: 11px 20px; border-radius: 10px; background: var(--brand); color: #fff; text-decoration: none; }
.btn:hover { background: var(--brand-d); }
.btn.sec { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.sec:hover { background: #f6eef3; }
.btn.danger { background: #fff; color: var(--no); border: 1px solid #f0c6cc; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: wait; }

.hero { padding: 80px 0 60px; text-align: center; background: radial-gradient(60% 80% at 50% 0, #f9dce6 0, transparent 70%); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -.02em; }
.hero h1 em { font: 400 1.25em 'Great Vibes', cursive; color: var(--brand); font-style: normal; }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 16px auto 28px; }
.hero .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

section.block { padding: 54px 0; }
section.block > .wrap > h2 { font-size: 28px; margin-bottom: 8px; }
.lead { color: var(--muted); margin: 0 0 26px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px; text-align: center; text-decoration: none; color: var(--ink); font-weight: 600; position: relative; }
.cat .ic { font-size: 30px; display: block; margin-bottom: 6px; }
.cat.on { border-color: var(--brand); box-shadow: 0 6px 20px rgba(194,87,122,.15); }
.cat.off { opacity: .55; }
.cat small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; margin-top: 2px; }

.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.tpl { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; }
.tpl .mini { width: 190px; height: 380px; margin: 0 auto 14px; border-radius: 24px; border: 6px solid #1d1620; overflow: hidden; position: relative; background: #fff; }
.tpl .mini iframe { width: 375px; height: 760px; border: 0; transform: scale(.4667); transform-origin: 0 0; pointer-events: none; }
.tpl h3 { font-size: 17px; }
.tpl p { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feat b { display: block; margin: 6px 0 4px; }
.feat span { color: var(--muted); font-size: 14px; }
footer.site { padding: 36px 0; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }

/* kimlik doğrulama */
.auth { max-width: 400px; margin: 60px auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.auth h1 { font-size: 24px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select { font: 400 15px Inter, sans-serif; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid #e9b6c8; border-color: var(--brand); }
.err { color: var(--no); font-size: 13px; min-height: 18px; margin: 6px 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tabs button { flex: 1; padding: 9px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font: 600 14px Inter; color: var(--muted); }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* özelleştirme */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; padding: 26px 20px 60px; max-width: 1200px; margin: 0 auto; align-items: start; }
.panel-form { display: flex; flex-direction: column; gap: 14px; }
.acc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.acc > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.acc > summary::after { content: '＋'; color: var(--brand); }
.acc[open] > summary::after { content: '－'; }
.acc > div { padding: 4px 18px 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.tpl-pick button { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; cursor: pointer; font: 600 12px Inter; }
.tpl-pick button.on { border-color: var(--brand); box-shadow: 0 0 0 3px #f6d3df; }
.tpl-pick i { display: block; height: 46px; border-radius: 8px; margin-bottom: 6px; border: 1px solid rgba(0,0,0,.08); }
.prog-row { display: grid; grid-template-columns: 90px 1fr 36px; gap: 8px; margin-bottom: 8px; }
.prog-row input { font: 400 14px Inter; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.up { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.up img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.preview-col { position: sticky; top: 80px; }
.phone { width: 392px; height: 800px; max-width: 100%; border-radius: 48px; background: #1d1620; padding: 14px; box-shadow: 0 30px 60px rgba(60,20,50,.28); position: relative; }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 100px; height: 24px; background: #1d1620; border-radius: 14px; z-index: 2; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #fff; }
.save-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #2b2230; color: #fff; padding: 11px 20px; border-radius: 10px; z-index: 50; }

/* panel */
.dash { padding: 28px 20px 70px; max-width: 1100px; margin: 0 auto; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.inv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.icard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; }
.icard.sel { border-color: var(--brand); box-shadow: 0 6px 22px rgba(194,87,122,.16); }
.icard h3 { font-size: 18px; }
.icard .meta { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.mini-stats { display: flex; gap: 8px; }
.mini-stats div { flex: 1; text-align: center; background: #faf3f7; border-radius: 10px; padding: 8px 4px; }
.mini-stats b { display: block; font-size: 20px; }
.mini-stats span { font-size: 11px; color: var(--muted); }
.detail { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { border-radius: 14px; padding: 14px 16px; background: #faf3f7; }
.stat b { font-size: 30px; display: block; }
.stat.yes b { color: var(--ok); } .stat.no b { color: var(--no); }
.bar { height: 10px; background: #f0e2ea; border-radius: 6px; overflow: hidden; display: flex; margin-bottom: 16px; }
.bar i { display: block; height: 100%; } .bar .y { background: var(--ok); } .bar .n { background: var(--no); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: 500 13px Inter; }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.pill { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.yes { background: #def4e9; color: var(--ok); } .pill.no { background: #fbe1e4; color: var(--no); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mem { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.mem img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.mem div { padding: 10px; font-size: 13px; }
.share-box { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #faf3f7; padding: 12px; border-radius: 12px; }
.share-box input { flex: 1; min-width: 200px; font: 14px Inter; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }

@media (max-width: 920px) {
  .studio { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; display: flex; justify-content: center; }
  .phone { height: 680px; }
  .nav-links a:not(.btn) { display: none; }
}

/* anı galerisi */
.banner { min-height: 190px; border-radius: 18px; padding: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; color: #fff; background: linear-gradient(135deg, #c2577a, #7b57c9) center/cover; margin-bottom: 16px; }
.banner h2 { font-size: 28px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.banner p { margin: 4px 0 0; opacity: .92; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.masonry { column-count: 4; column-gap: 12px; }
@media (max-width: 900px) { .masonry { column-count: 3; } }
@media (max-width: 560px) { .masonry { column-count: 2; } }
.tile { position: relative; break-inside: avoid; margin-bottom: 12px; border-radius: 14px; overflow: hidden; cursor: pointer; background: #f1e6ee; }
.tile img { width: 100%; display: block; transition: transform .35s; }
.tile:hover img { transform: scale(1.04); }
.tile-over { position: absolute; inset: auto 0 0 0; padding: 26px 10px 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .2s; }
.tile:hover .tile-over, .tile.picked .tile-over { opacity: 1; }
@media (hover: none) { .tile-over { opacity: 1; } }
.tile-btns { display: flex; gap: 6px; }
.ib { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #222; display: grid; place-items: center; cursor: pointer; font-size: 14px; text-decoration: none; }
.tile.picked { outline: 3px solid var(--brand); outline-offset: -3px; }
.chk { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.85); border: 2px solid var(--brand); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.tile.picked .chk { background: var(--brand); color: #fff; }
.sel-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #faf3f7; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; }
.sel-bar .btn:disabled { opacity: .45; cursor: not-allowed; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.note { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.note-head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.note p { margin: 8px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,8,20,.92); display: grid; place-items: center; padding: 20px; }
.lb-body { max-width: min(92vw, 1000px); max-height: 94vh; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lb-body img { max-width: 100%; max-height: 76vh; border-radius: 10px; object-fit: contain; }
.lb-cap { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; color: #fff; flex-wrap: wrap; }
.lb-cap p { margin: 2px 0; max-width: 520px; overflow-wrap: anywhere; } .lb-cap small { opacity: .7; }
.lb-btns { display: flex; gap: 8px; }
.lb-x { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; cursor: pointer; }
.lb-nav.l { left: 14px; } .lb-nav.r { right: 14px; } .lb-nav[hidden] { display: none; }

/* galeri yükleme (editör) ve saklama uyarısı */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.gal-grid:empty { display: none; }
.gal-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item button { position: absolute; bottom: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; cursor: pointer; }
.gal-item button:nth-of-type(1) { left: 3px; } .gal-item button:nth-of-type(2) { left: 28px; } .gal-item button:nth-of-type(3) { right: 3px; top: 3px; bottom: auto; }
.retention { background: #f3f0fa; border: 1px solid #ddd3f3; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; color: #4a3b78; }
.retention.warn { background: #fff4e5; border-color: #f4d3a0; color: #8a4b00; }
