:root {
  --bg: #ffffff;
  --bg-2: #f7f7f5;
  --panel: #fafaf8;
  --panel-2: #f2f2ef;
  --line: #eaeae6;
  --line-2: #d9d9d3;
  --text: #141414;
  --muted: #65666a;
  --dim: #97989c;
  --accent: #141414;
  --accent-ink: #ffffff;
  --danger: #d23b2c;
  --danger-bg: #fdeeec;
  --ok: #1d9a62;
  --radius: 18px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}
/* Ürün sayfalarında vurgu rengi ürünün rengi olur */
body.p-wed { --accent: #a8803f; }
body.p-pet { --accent: #d9661f; }
body.p-love { --accent: #d6305f; }
body.p-wifi { --accent: #2f63e0; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 520px; }
.mid { max-width: 760px; }

/* ---------- üst çubuk ---------- */
.nav { position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(255,255,255,.95); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; font-size: 18px; }
.logo-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--text); position: relative; }
.logo-mark::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--bg); top: 4px; left: 4px; }
.nav-products { display: flex; gap: 2px; align-items: center; }
.nav-products a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav-products a:hover { color: var(--text); background: var(--bg-2); }
.nav-products a.on { color: var(--pa); background: var(--bg-2); background: color-mix(in srgb, var(--pa) 10%, #fff); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--panel); }

/* ---------- ana sayfa: ürün kutuları ---------- */
.home-hero { padding: 72px 0 40px; }
.home-hero h1 { margin-top: 20px; }
.home-hero .lead { margin: 20px 0 0; }
.home-products { padding: 8px 0 72px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-box { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 6px 20px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; }
.product-box:hover { border-color: var(--line-2); border-color: color-mix(in srgb, var(--pa) 45%, var(--line)); transform: translateY(-2px); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--pa) 60%, transparent); }
.product-art { grid-row: span 2; width: 128px; aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; background: var(--bg-2); background: color-mix(in srgb, var(--pa) 9%, #fff); }
.product-meta { display: grid; gap: 4px; min-width: 0; }
.product-name { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--pa); }
.product-title { font-weight: 600; }
.product-tagline { color: var(--muted); font-size: 15px; }
.product-box .badge { justify-self: start; align-self: end; }
.pfig { display: block; }
.device .pfig { width: 46%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.14)); animation: float 6s ease-in-out infinite; }
@media (max-width: 860px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; }
  .nav-products { order: 3; width: 100%; overflow-x: auto; padding: 6px 0 8px; scrollbar-width: none; }
  .nav-products::-webkit-scrollbar { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .home-hero { padding-top: 44px; }
}
@media (max-width: 480px) {
  .product-box { grid-template-columns: 1fr; padding: 18px; }
  .product-art { grid-row: auto; width: 100%; aspect-ratio: 16 / 9; }
}

/* ---------- tipografi ---------- */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.05; margin: 0; font-weight: 600; }
h1 { font-size: clamp(40px, 7vw, 80px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }

/* ---------- düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 14px; font: 600 16px var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); transition: transform .12s ease, background .15s ease, border-color .15s; }
.btn:hover { border-color: var(--dim); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); border-color: color-mix(in srgb, var(--accent) 85%, #fff); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- kartlar & formlar ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 14px; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field + .field { margin-top: 18px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=datetime-local], input[type=date], textarea, select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 14px 16px; font: 16px var(--sans); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.code-input { font: 600 24px var(--mono) !important; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.hint { font-size: 13px; color: var(--dim); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; cursor: pointer; margin: 0; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.alert { border-radius: 12px; padding: 14px 16px; font-size: 15px; border: 1px solid var(--line-2); background: var(--panel-2); }
.alert-error { border-color: var(--line-2); border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: var(--danger-bg); color: var(--danger); }
.alert-ok { border-color: var(--line-2); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--bg-2); background: color-mix(in srgb, var(--ok) 10%, #fff); color: var(--ok); }
.dev-link { display: block; margin-top: 8px; word-break: break-all; font: 13px var(--mono); }

/* ---------- segment seçici (mod seçimi) ---------- */

/* ---------- sayfa iskeleti ---------- */
.page { padding: 48px 0 80px; }
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--dim); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }

/* ---------- vitrin ---------- */
.grid-bg { background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; }
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 22px 0 32px; }

.device { position: relative; aspect-ratio: 1; max-width: 460px; margin-left: auto; width: 100%; display: grid; place-items: center; }
.ring { position: absolute; border: 1px solid var(--accent); border-radius: 50%; opacity: 0; animation: ring 3.2s cubic-bezier(.2,.6,.3,1) infinite; }
.ring:nth-child(2) { animation-delay: 1.07s; }
.ring:nth-child(3) { animation-delay: 2.14s; }
@keyframes ring { 0% { width: 30%; height: 30%; opacity: .7; } 100% { width: 100%; height: 100%; opacity: 0; } }
.disc { position: relative; width: 58%; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0,0,0,.16)); animation: float 6s ease-in-out infinite; }
.disc .cord { fill: none; stroke: #d8d4cc; stroke-width: 7; stroke-linecap: round; }
.disc .stopper { fill: #d8d4cc; }
.disc .tap { opacity: .92; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step .num { font: 500 13px var(--mono); color: var(--accent); }
.step h3 { margin: 40px 0 10px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 32px; overflow: hidden; position: relative; }
.mode-card h3 { font-size: 28px; margin: 18px 0 12px; }
.mode-card p { color: var(--muted); margin: 0 0 24px; }
.mode-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mode-card li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.mode-card li::before { content: ''; width: 16px; height: 1px; background: var(--accent); flex: none; }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec { padding: 26px; border-right: 1px solid var(--line); }
.spec:last-child { border-right: 0; }
.spec .k { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.spec .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* ---------- herkese açık etiket sayfası ---------- */
.info-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.info-row { background: var(--panel); padding: 16px 18px; }
.info-row .k { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.info-row .v { margin-top: 4px; white-space: pre-wrap; }
.owner-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 10px 10px 16px; margin-bottom: 18px; font-size: 14px; }
.tagline { text-align: center; margin-top: 36px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); text-decoration: none; display: block; }

/* hediye */
.gift { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0 56px; }
.gift-env { position: relative; }
.gift-to { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.gift-title { font-size: clamp(36px, 10vw, 60px); margin: 14px 0 22px; }
.gift-msg { font-size: 20px; line-height: 1.6; white-space: pre-wrap; }
.gift-from { margin-top: 26px; color: var(--muted); font-size: 17px; }
.gift-photo { border-radius: 22px; margin-top: 28px; width: 100%; border: 1px solid var(--line); }
.reveal { animation: reveal .9s cubic-bezier(.2,.7,.2,1) both; }
.reveal-2 { animation-delay: .15s; } .reveal-3 { animation-delay: .3s; } .reveal-4 { animation-delay: .45s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 28px; }
.countdown div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 6px; text-align: center; }
.countdown b { display: block; font: 600 30px var(--mono); }
.countdown span { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- panel ---------- */
.tag-list { display: grid; gap: 10px; }
.tag-item { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; transition: border-color .15s; }
.tag-item:hover { border-color: var(--line-2); }
.tag-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--panel-2); display: grid; place-items: center; font-size: 26px; flex: none; border: 1px solid var(--line); }
.tag-item .meta { flex: 1; min-width: 0; }
.tag-item .title { font-weight: 600; font-size: 17px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.badge-ok { border-color: var(--line-2); border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok); }
.photo-pick { display: flex; gap: 16px; align-items: center; }
.photo-pick img, .photo-pick .ph { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; font-size: 34px; flex: none; }
.toggle-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: background .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--danger); }
.switch input:checked + span::after { transform: translateX(22px); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a { padding: 12px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; }
.tabs a.on { color: var(--text); border-color: var(--accent); }
.sticky-save { position: sticky; bottom: 0; padding: 16px 0 20px; background: linear-gradient(transparent, var(--bg) 35%); margin-top: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

/* NFC yazma ekranı */
.writer { text-align: center; padding: 36px 24px; }
.writer .big-code { font: 600 44px var(--mono); letter-spacing: .12em; margin: 12px 0; }
.writer .status { min-height: 26px; color: var(--muted); }
.writer .status.ok { color: var(--ok); }
.writer .status.err { color: var(--danger); }
.pulse { width: 120px; height: 120px; margin: 8px auto 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; position: relative; }
.pulse.on::before, .pulse.on::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); animation: ring2 1.8s ease-out infinite; }
.pulse.on::after { animation-delay: .9s; }
@keyframes ring2 { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid, .modes { grid-template-columns: 1fr; }
  .device { margin: 0 auto; max-width: 340px; }
  .steps { grid-template-columns: 1fr; }
  .step h3 { margin-top: 20px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .nav-links .hide-m { display: none; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ring { opacity: .25; width: 70%; height: 70%; }
}

input[type=file] { color: var(--muted); font: 14px var(--sans); max-width: 100%; }
input[type=file]::file-selector-button { font: 600 14px var(--sans); color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; margin-right: 12px; cursor: pointer; }
.edit-link { display: block; text-align: center; margin-top: 40px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.edit-link + .tagline { margin-top: 14px; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; }

/* ---------- etiket ana sayfası (panel) ---------- */
.tag-head { display: flex; align-items: center; gap: 16px; margin: 16px 0 28px; }
.tag-thumb.lg { width: 72px; height: 72px; border-radius: 18px; font-size: 34px; }
.home-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.phone { width: 100%; max-width: 380px; aspect-ratio: 9 / 18.5; border-radius: 40px; border: 10px solid #1b1e21; box-shadow: 0 0 0 1px #2c3136, 0 30px 60px -30px rgba(0,0,0,.8); overflow: hidden; background: var(--bg); }
/* iPhone Safari iframe'i içeriğinin boyuna büyütür ve telefon çerçevesinden taşırır:
   genişlik 1px + min-width ile sabitlenir, kaydırma çerçevenin kendisinde olur */
.phone { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; transform: translateZ(0); height: 680px; max-height: 78vh; }
/* Eski iOS aspect-ratio tanımıyor; yükseklik sabit verildi */
.phone iframe { width: 1px; min-width: 100%; height: 100%; border: 0; display: block; }
.phone.empty { display: grid; place-items: center; text-align: center; padding: 24px; }
.phone.empty p { margin: 8px 0 18px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-stats .k { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.mini-stats .v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.mini-stats .v.small { font-size: 17px; margin-top: 10px; }
.activity { display: grid; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.act-row { display: flex; justify-content: space-between; gap: 12px; background: var(--bg-2); padding: 11px 14px; font-size: 14px; }
.danger-card { border-color: var(--line-2); border-color: color-mix(in srgb, var(--danger) 25%, var(--line)); }
@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; max-width: 320px; }
}

/* ---------- şablon seçici ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.theme-grid input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card { margin: 0; cursor: pointer; display: block; border: 1px solid var(--line-2); border-radius: 14px; padding: 8px; background: var(--bg-2); transition: border-color .15s, transform .15s; }
.theme-card:hover { transform: translateY(-1px); }
.theme-grid input:checked + .theme-card { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.theme-swatch { display: flex; flex-direction: column; gap: 5px; aspect-ratio: 3 / 4; border-radius: 9px; padding: 10px 9px; position: relative; overflow: hidden; }
.theme-emoji { font-size: 20px; line-height: 1; margin-bottom: auto; }
.theme-line { height: 4px; border-radius: 2px; opacity: .85; width: 80%; }
.theme-line.short { width: 50%; opacity: .45; }
.theme-btn { height: 10px; border-radius: 4px; margin-top: 4px; }
.theme-name { display: block; font-size: 12.5px; color: var(--text); margin-top: 8px; text-align: center; line-height: 1.25; }

/* ---------- şablonlar: renkler ---------- */
body.theme-aile {
  color-scheme: light;
  --bg-2: #fbfbf9; --panel: #ffffff; --panel-2: #f2f2ee; --line: #e4e4de; --line-2: #d3d3cc;
}
body.theme-dogumgunu .btn-primary:hover, body.theme-mezuniyet .btn-primary:hover { filter: brightness(1.08); background: var(--accent); border-color: var(--accent); }

body.theme-dogumgunu { --bg: #1c1030; --panel: #26173f; --line: #3a2858; --line-2: #4a3670; --text: #fff6e8; --muted: #d9c9e6; --dim: #a491b8; --accent: #ffcf3f; --accent-ink: #1c1030; }
body.theme-sevgililer { --bg: #2a0812; --panel: #3a0e1b; --line: #561a2b; --line-2: #6b2338; --text: #ffe9ee; --muted: #f0b7c3; --dim: #c47d8d; --accent: #ff4d6d; --accent-ink: #ffffff; }
body.theme-aile { --bg: #fbf3ec; --text: #3b2a22; --muted: #7e6457; --dim: #a8897a; --accent: #d9694f; --accent-ink: #ffffff; }
body.theme-yilbasi { --bg: #0b1f17; --panel: #10291f; --line: #1d3d2f; --line-2: #2a5240; --text: #effaf4; --muted: #b4d4c3; --dim: #7fa592; --accent: #e63946; --accent-ink: #ffffff; }
body.theme-mezuniyet { --bg: #0b1430; --panel: #111d42; --line: #1f2d5c; --line-2: #2c3d73; --text: #eef2ff; --muted: #b9c3e6; --dim: #8592bd; --accent: #f2c14e; --accent-ink: #0b1430; }
body.theme-sevgililer .btn-primary:hover, body.theme-yilbasi .btn-primary:hover, body.theme-aile .btn-primary:hover { filter: brightness(1.08); background: var(--accent); border-color: var(--accent); }
body.theme-sevgililer .gift-title, body.theme-aile .gift-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -0.01em; }
body.theme-dogumgunu .gift-title { background: linear-gradient(90deg, #ffcf3f, #ff7ab6, #7ad7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.theme-mezuniyet .gift-title { color: var(--accent); }

/* ---------- şablonlar: süsler ---------- */
.gift { position: relative; z-index: 1; }
.fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.fx span { position: absolute; top: -8%; display: block; animation: fall linear infinite; will-change: transform; }
@keyframes fall { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(var(--dx, 30px), 115vh, 0) rotate(540deg); } }
@keyframes rise { from { transform: translate3d(0, 0, 0) scale(var(--s)); opacity: 0; } 12% { opacity: .9; } to { transform: translate3d(var(--dx, -20px), -115vh, 0) scale(var(--s)); opacity: 0; } }
.fx-confetti span { width: calc(7px * var(--s)); height: calc(12px * var(--s)); border-radius: 2px; background: hsl(var(--h) 90% 62%); opacity: .85; }
.fx-snow span { color: #fff; font-size: calc(22px * var(--s)); opacity: .7; --dx: 40px; animation-name: fall; }
.fx-stars span { color: #f2c14e; font-size: calc(16px * var(--s)); opacity: .8; }
.fx-hearts span { top: auto; bottom: -8%; color: #ff4d6d; font-size: calc(22px * var(--s)); animation-name: rise; }
.fx-petals span { width: calc(12px * var(--s)); height: calc(8px * var(--s)); border-radius: 60% 0 60% 0; background: hsl(calc(340 + var(--h) / 18) 75% 78%); opacity: .8; --dx: 60px; }
@media (prefers-reduced-motion: reduce) { .fx { display: none; } }

/* ---------- hediye açılış animasyonu ---------- */
.gift-intro { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--bg); background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 16%, var(--bg)) 0%, var(--bg) 62%); transition: opacity .6s ease, visibility .6s; --ribbon: #ffffff; }
body.theme-sade .gift-intro { --ribbon: #ffffff; }
.gift-intro.gone { opacity: 0; visibility: hidden; }
.gi-stage { position: relative; width: 220px; height: 220px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.gi-glow { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, color-mix(in srgb, var(--accent) 70%, #fff) 35%, transparent 70%); opacity: 0; transform: scale(.2); }
.gi-box { position: relative; width: 150px; height: 150px; display: block; animation: gi-wobble 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.gi-base { position: absolute; left: 12px; right: 12px; bottom: 0; height: 100px; border-radius: 10px; background: var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent) 45%, color-mix(in srgb, var(--accent) 72%, #000)); box-shadow: 0 24px 40px -18px rgba(0,0,0,.65), inset 0 -10px 0 rgba(0,0,0,.08); }
.gi-base::before, .gi-lid::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 22px; transform: translateX(-50%); background: var(--ribbon); opacity: .92; }
.gi-lid { position: absolute; left: 0; right: 0; top: 18px; height: 36px; border-radius: 9px; z-index: 2; background: var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)); box-shadow: 0 6px 12px -4px rgba(0,0,0,.35); }
.gi-bow { position: absolute; left: 50%; top: -26px; width: 0; height: 0; }
.gi-bow::before, .gi-bow::after { content: ''; position: absolute; top: 0; width: 34px; height: 26px; border: 7px solid var(--ribbon); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; opacity: .95; }
.gi-bow::before { right: 0; transform: rotate(-22deg); transform-origin: 100% 100%; }
.gi-bow::after { left: 0; transform: rotate(22deg); transform-origin: 0 100%; }
.gi-hint { font-size: clamp(24px, 7vw, 32px); font-weight: 600; letter-spacing: -0.03em; margin: 26px 0 6px; color: var(--text); }
.gi-sub { color: var(--muted); margin: 0; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; animation: gi-pulse 1.8s ease-in-out infinite; }
@keyframes gi-wobble { 0%, 70%, 100% { transform: rotate(0) } 76% { transform: rotate(-5deg) } 82% { transform: rotate(5deg) } 88% { transform: rotate(-3deg) } 94% { transform: rotate(2deg) } }
@keyframes gi-pulse { 50% { opacity: .45 } }

.gift-intro.opening .gi-box { animation: gi-shake .45s linear both; }
.gift-intro.opening .gi-lid { animation: gi-lid .9s cubic-bezier(.2,.7,.3,1) .4s both; }
.gift-intro.opening .gi-glow { animation: gi-glow 1.1s ease-out .45s both; }
.gift-intro.opening .gi-hint, .gift-intro.opening .gi-sub { transition: opacity .3s; opacity: 0; }
@keyframes gi-shake { 0%,100% { transform: none } 15% { transform: translateX(-6px) rotate(-4deg) } 30% { transform: translateX(6px) rotate(4deg) } 45% { transform: translateX(-5px) rotate(-3deg) } 60% { transform: translateX(5px) rotate(3deg) } 80% { transform: translateY(4px) scale(1.04, .96) } }
@keyframes gi-lid { to { transform: translate(40px, -260px) rotate(38deg); opacity: 0; } }
@keyframes gi-glow { 0% { opacity: 0; transform: scale(.2) } 25% { opacity: 1 } 100% { opacity: 0; transform: scale(9) } }

.gi-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
.gift.waiting { visibility: hidden; }
.gift.waiting .reveal { animation: none; }

/* özellik blokları (ana sayfa) */
.section-head.center { text-align: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
.feature { text-align: center; padding: 0 8px; }
.feature svg { width: 44px; height: 44px; color: var(--accent); }
.feature h3 { font-size: 24px; margin: 18px 0 12px; }
.feature p { color: var(--muted); margin: 0 auto; max-width: 320px; font-size: 16px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; gap: 44px; } }

/* ana sayfa ürün kartları */

/* Etiketlerim: ürün grupları */
.tag-thumb.fig { background: var(--bg-2); }
.content-line { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 2px; }
.content-line > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-photo { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line-2); }
.product-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tag-list > * { min-width: 0; }
.tag-item .badge { flex: none; }

/* ---------- premium: fiyat & kilit ---------- */
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.price-tag s { color: var(--dim); font-weight: 400; font-size: .9em; }
.campaign-pill { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--bg-2); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.badge-premium { border-color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.feature-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feature-head h3 { font-size: 18px; margin: 0; }
.feature-head .badge { margin-left: auto; flex: none; }
.feature-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--bg-2); border: 1px solid var(--line); flex: none; }
.feature-card.is-locked { background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.locked { margin-top: 14px; }
.locked-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bundle-banner { display: grid; gap: 14px; text-decoration: none; border-radius: var(--radius); padding: 22px; margin-bottom: 14px; color: var(--accent-ink); background: var(--accent); background: radial-gradient(circle at 100% 0%, color-mix(in srgb, #fff 35%, transparent), transparent 55%), var(--accent); transition: transform .2s; }
.bundle-banner:hover { transform: translateY(-1px); }
.bundle-banner strong { display: block; font-size: 22px; margin: 8px 0 4px; }
.bundle-banner span:not(.dot) { font-size: 14px; opacity: .75; }
.bundle-price { display: flex; align-items: baseline; gap: 10px; font-size: 26px; }
.bundle-price s { font-size: 16px; opacity: .55; }
.bundle-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bundle-list li { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 600; }

/* ---------- premium: düzenleyici ---------- */
.reveal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.reveal-grid input { position: absolute; opacity: 0; pointer-events: none; }
.reveal-grid label { margin: 0; color: var(--text); position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); cursor: pointer; font-size: 13.5px; text-align: center; transition: border-color .15s, transform .15s; }
.reveal-grid label .theme-emoji { margin: 0; font-size: 26px; }
.reveal-grid input:checked + label { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.reveal-grid label.locked-opt { cursor: not-allowed; opacity: .55; }
.lock-mini { position: absolute; top: 6px; right: 8px; font-size: 12px; }
.recorder { display: grid; gap: 12px; }
.recorder audio { width: 100%; }
.recorder .btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.recorder .hint { margin: 0; }
.album-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.album-thumb { margin: 0; display: grid; gap: 6px; justify-items: center; font-size: 12px; }
.album-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); }
.capsule-list { display: grid; gap: 12px; }
.capsule-row { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.capsule-row input, .capsule-row textarea { width: 100%; }
.mini-features { margin-top: 12px; }
.mini-feature { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini-features .mini-feature:first-child { border-top: 0; }
.mini-feature > span:first-child { font-size: 20px; text-align: center; }
.mini-feature > div { min-width: 0; }
.mini-feature .btn, .mini-feature .badge { justify-self: end; }

/* ---------- premium: yönetim ---------- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.admin-grid label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.admin-grid input { width: 100%; }
.admin-feature .feature-head { margin-bottom: 4px; }

/* ---------- açılış: zarf ---------- */
.env { position: relative; width: 180px; height: 120px; display: block; animation: gi-wobble 2.6s ease-in-out infinite; transform-origin: 50% 100%; perspective: 600px; }
.env-back { position: absolute; inset: 0; border-radius: 10px; background: var(--accent); background: color-mix(in srgb, var(--accent) 70%, #000); }
.env-letter { position: absolute; left: 14px; right: 14px; top: 10px; height: 96px; border-radius: 6px; background: #fff; display: grid; place-items: center; font-size: 34px; z-index: 1; transition: transform .7s cubic-bezier(.2,.7,.2,1) .35s; }
.env-front { position: absolute; inset: 0; border-radius: 10px; z-index: 2; background: var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); box-shadow: 0 24px 40px -18px rgba(0,0,0,.65); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 72px; z-index: 3; background: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), color-mix(in srgb, var(--accent) 85%, #000)); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform .45s ease; border-radius: 10px 10px 0 0; }
.gift-intro.opening .env { animation: none; }
.gift-intro.opening .env-flap { transform: rotateX(180deg); z-index: 0; }
.gift-intro.opening .env-letter { transform: translateY(-90px) scale(1.1); }
.gift-intro.opening .gi-glow { animation: gi-glow 1.1s ease-out .45s both; }

/* ---------- açılış: kazı-kazan ---------- */
.scratch-card { position: relative; width: min(300px, 80vw); aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 40px -18px rgba(0,0,0,.65); touch-action: none; }
.scratch-under { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 16px; background: var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); color: var(--accent-ink); }
.scratch-under span { font-size: 40px; }
.scratch-under b { font-size: 20px; }
.scratch-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; transition: opacity .5s; }
.gift-intro.opening .scratch-card canvas { opacity: 0; }

/* ---------- açılış: kalp ---------- */
.big-heart { --s: 1; display: block; font-size: 120px; line-height: 1; color: #ff4d6d; transform: scale(var(--s)); transition: transform .2s; filter: drop-shadow(0 18px 30px rgba(255,77,109,.35)); animation: heart-idle 1.6s ease-in-out infinite; }
.big-heart.beat { animation: beat .35s ease-out; }
@keyframes heart-idle { 0%,100% { transform: scale(var(--s)) } 50% { transform: scale(calc(var(--s) * 1.06)) } }
@keyframes beat { 0% { transform: scale(var(--s)) } 40% { transform: scale(calc(var(--s) * 1.25)) } 100% { transform: scale(var(--s)) } }
.gift-intro.opening .big-heart { animation: heart-burst .6s ease-in forwards; }
@keyframes heart-burst { to { transform: scale(4); opacity: 0; } }

/* ---------- hediye sayfası ekleri ---------- */
.since-card { display: grid; gap: 2px; margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.since-label { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.since-card b { font: 600 34px var(--mono); }
.since-rest { font-size: 14px; }
.voice-card { display: grid; gap: 12px; margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.voice-card audio { width: 100%; }
.album { margin-top: 28px; }
.album-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 18px; scrollbar-width: none; }
.album-track::-webkit-scrollbar { display: none; }
.polaroid { flex: 0 0 72%; margin: 0; scroll-snap-align: center; background: #fff; padding: 10px 10px 34px; border-radius: 6px; transform: rotate(var(--r, 0deg)); box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.player { display: block; width: 100%; border: 0; border-radius: 16px; margin-top: 24px; }
.player-spotify { height: 152px; }
.player-youtube { aspect-ratio: 16 / 9; height: auto; }
.capsule { margin-top: 32px; display: grid; gap: 10px; }
.capsule-item { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 14px 16px; }
.capsule-item summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 600; list-style: none; }
.capsule-item summary::-webkit-details-marker { display: none; }
.capsule-item p { margin: 12px 0 0; white-space: pre-wrap; color: var(--text); }
.capsule-item.sealed { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); border-style: dashed; }
.reply-card { margin-top: 28px; }
.reply-card summary { cursor: pointer; font-weight: 600; list-style: none; }
.reply-card summary::-webkit-details-marker { display: none; }

/* ---------- Wifi Tag ---------- */
.wifi-title { font-size: clamp(34px, 9vw, 48px); margin-top: 12px; }
.wifi-note { margin: 10px 0 0; white-space: pre-wrap; }
.wifi-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wifi-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k b" "v b"; gap: 2px 12px; align-items: center; padding: 16px 18px; background: var(--panel); }
.wifi-row + .wifi-row { border-top: 1px solid var(--line); }
.wifi-row .k { grid-area: k; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.wifi-row .v { grid-area: v; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; min-width: 0; }
.wifi-row .btn { grid-area: b; }
.wifi-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.wifi-writer .status { min-height: 22px; color: var(--muted); }
.wifi-writer .status.ok { color: var(--ok); }
.wifi-writer .status.err { color: var(--danger); }

/* ---------- Pet Tag ---------- */
.profile { padding: 20px 0 64px; }
.profile-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); background: color-mix(in srgb, var(--accent) 8%, #fff); }
.profile-photo.placeholder { display: grid; place-items: center; }
.profile-name { font-size: clamp(40px, 11vw, 56px); margin-top: 22px; }
.profile-sub { color: var(--muted); font-size: 17px; margin-top: 6px; }
.lost-banner { background: var(--danger); color: #fff; border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.lost-banner .eyebrow { color: rgba(255,255,255,.85); }
.lost-banner .eyebrow .dot { background: #fff; box-shadow: 0 0 10px #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.lost-banner p { margin: 8px 0 0; font-size: 17px; font-weight: 500; }
.actions { display: grid; gap: 10px; margin-top: 18px; }
.badge-lost { border-color: var(--danger); color: var(--danger); }
.lost-on { border-color: var(--danger); background: var(--bg-2); background: color-mix(in srgb, var(--danger) 8%, #fff); }

/* ---------- Wed Tag ---------- */
.event { padding-bottom: 64px; }
.event-cover { width: 100%; max-width: 760px; margin: 0 auto 8px; aspect-ratio: 16 / 10; overflow: hidden; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-cover.empty { display: grid; place-items: center; background: var(--bg-2); background: color-mix(in srgb, var(--accent) 9%, #fff); aspect-ratio: 16 / 7; }
@media (min-width: 760px) { .event-cover { border-radius: 0 0 28px 28px; } }
.event-head { text-align: center; padding-top: 18px; }
.event-head .eyebrow { justify-content: center; }
.event-names { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -0.01em; font-size: clamp(38px, 10vw, 60px); margin-top: 14px; }
.event-date { margin: 14px 0 0; font-size: 17px; }
.event-venue { margin: 6px 0 0; color: var(--muted); }
.event-venue a { color: var(--accent); }
.event-story { white-space: pre-wrap; text-align: center; font-size: 17px; color: var(--muted); }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.event-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--panel-2); }
.event-grid.lg { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.album-item { margin: 0; display: grid; gap: 6px; }
.album-item .btn { justify-self: start; }
.upload-pick { margin: 6px 0 0; }
.upload-pick.disabled { opacity: .5; pointer-events: none; }

/* ---------- yönetim ---------- */
.admin-badge { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--text); color: var(--bg); margin-left: 4px; }

/* ---------- Wed Tag şablonları: etkinlik türüne göre renk ve yazı ---------- */
/* color-mix kullanılan yerlerin önünde düz renk yedeği var: eski iPhone Safari color-mix tanımıyor.
   Davetiye renkleri düz hex: eski telefon tarayıcıları color-mix tanımayınca kapılar şeffaf kalıyordu */
body.ev { --ev-display: 'Cormorant Garamond', Georgia, serif; --ev-script: 'Great Vibes', 'Cormorant Garamond', Georgia, serif; --ev-door: #f3ead9; --ev-line: #cdb38a; background: var(--bg); }
body.ev-dugun { --ev-door: #f3ead9; --ev-line: #cdb38a; --bg: #fbf8f2; --text: #2b2520; --muted: #75695d; --line: #ece4d6; --panel: #fffdf9; --accent: #a8803f; }
body.ev-nisan { --ev-door: #f6e2e6; --ev-line: #d9a3b5; --bg: #fdf5f5; --text: #3a2229; --muted: #8a6570; --line: #f1dde1; --panel: #fffafa; --accent: #c0567a; }
body.ev-kina { --ev-door: #3d1219; --ev-line: #8a6a3a; --bg: #2a0b10; --bg-2: #36121a; --panel: #3a1219; --panel-2: #47171f; --line: #5a2029; --line-2: #6e2833; --text: #f8e9d6; --muted: #d9b9a0; --dim: #b08f7a; --accent: #d9a74a; --accent-ink: #2a0b10; color-scheme: dark; }
body.ev-soz { --ev-door: #ebe4f5; --ev-line: #b7a3d4; --bg: #f7f4fb; --text: #2c2438; --muted: #6f6382; --line: #e6def0; --panel: #fdfbff; --accent: #7a5ba8; }
body.ev-dogum { --ev-door: #e2eef7; --ev-line: #9cc3e2; --bg: #f2f7fb; --text: #1f2d3a; --muted: #5d7182; --line: #dce8f1; --panel: #fbfdff; --accent: #4a8fc7; --ev-display: 'Quicksand', system-ui, sans-serif; --ev-script: 'Quicksand', system-ui, sans-serif; }
body.ev-diger { --ev-door: #f1ece4; --ev-line: #cdb38a; --bg: #faf8f5; --accent: #a8803f; }
body.ev .event-names { font-family: var(--ev-script); font-weight: 400; font-size: clamp(46px, 13vw, 76px); letter-spacing: 0; line-height: 1.1; color: var(--accent); }
body.ev-dogum .event-names { font-weight: 600; font-size: clamp(38px, 10vw, 56px); }
body.ev .event-date, body.ev .event-story { font-family: var(--ev-display); font-size: 20px; }
body.ev .event-story { color: var(--text); font-style: italic; }
body.ev .event-cover.empty { background: var(--bg); background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 16%, var(--bg)), var(--bg) 70%); }
.ev-ornament { color: var(--accent); font-size: 30px; line-height: 1; }
.ev-ornament.big { font-size: 64px; }

/* Hatıra açılışı: halkalara dokununca parlama, büyüme ve konfeti; ekran söner, sayfa belirir.
   Renkler düz hex/değişken: eski iPhone Safari color-mix ve inset tanımıyor. */
html.ev-locked, html.lb-open { overflow: hidden; }
.ev-intro { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: #f3ead9; background: var(--ev-door); transition: opacity .6s ease .55s, visibility .6s ease .55s; }
.ev-intro-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; max-width: 380px; }
.ev-intro-inner > * + * { margin-top: 14px; }
.ev-intro-lead { font-family: var(--ev-display); font-size: 19px; letter-spacing: .04em; color: var(--muted); animation: ev-in .8s ease both; }
.ev-intro-names { font-family: var(--ev-script); font-size: 48px; line-height: 1.15; color: var(--accent); animation: ev-in .8s ease .25s both; }
body.ev-dogum .ev-intro-names { font-weight: 600; font-size: 38px; }
.ev-intro-hint { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); animation: ev-blink 1.6s ease-in-out infinite; }
.ev-stage { position: relative; width: 190px; height: 190px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--accent); display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.ev-stage::before, .ev-stage::after { content: ''; position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 1.5px solid var(--ev-line); animation: ev-ring 2.4s ease-out infinite; }
.ev-stage::after { animation-delay: 1.2s; }
.ev-glow { position: absolute; top: 50%; left: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 70%); opacity: .7; }
.ev-rings { display: block; width: 150px; animation: ev-float 3s ease-in-out infinite; }
.ev-rings svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); }
.ev-ornament.huge { font-size: 110px; animation: ev-float 3s ease-in-out infinite; }
@keyframes ev-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ev-ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes ev-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes ev-blink { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
/* Dokununca: halkalar büyüyüp döner, parlama patlar, yazılar söner */
.ev-intro.opening { opacity: 0; visibility: hidden; }
.ev-intro.opening .ev-rings, .ev-intro.opening .ev-ornament.huge { animation: ev-pop .7s cubic-bezier(.2,.8,.2,1) forwards; }
.ev-intro.opening .ev-glow { animation: ev-flash .7s ease-out forwards; }
.ev-intro.opening .ev-stage::before, .ev-intro.opening .ev-stage::after { animation: none; opacity: 0; }
.ev-intro.opening .ev-intro-lead, .ev-intro.opening .ev-intro-names, .ev-intro.opening .ev-intro-hint { transition: opacity .3s ease; opacity: 0; animation: none; }
@keyframes ev-pop { 0% { transform: scale(1) rotate(0); } 35% { transform: scale(.85) rotate(-8deg); } 100% { transform: scale(2.4) rotate(25deg); opacity: 0; } }
@keyframes ev-flash { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(6); opacity: 0; } }
.ev-confetti { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
/* Açılıştan sonra sayfa başlığı belirir */
body.ev-opened .event-head { animation: ev-in .9s cubic-bezier(.2,.7,.2,1) .2s both; }
body.ev-opened .event-cover img { animation: ev-zoom 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ev-zoom { from { transform: scale(1.12); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ev-intro, .ev-intro * { animation: none !important; transition: none !important; } }
.ev-sound { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; font: 600 13px var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); box-shadow: 0 8px 24px -10px rgba(0,0,0,.3); cursor: pointer; }

/* Büyütülmüş fotoğraf */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.94); display: grid; place-items: center; padding: 48px 12px 56px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 24px; cursor: pointer; }
.lb-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; font-size: 18px !important; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); text-align: center; color: #ddd; font-size: 14px; }
.event-grid a { display: block; }

/* Albüm: misafire göre gruplar */
.album-group { margin-bottom: 28px; }
.album-group h3 { margin-bottom: 12px; }

/* Düzenleyici + canlı önizleme */
.editor-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 20px; }
/* Grid öğesi içeriğinin genişliğine göre büyümesin (telefonda sayfa yana taşıyordu) */
.editor-split > * { min-width: 0; }
.editor-preview { position: sticky; top: 80px; display: grid; gap: 8px; justify-items: center; }
.editor-preview .phone { max-width: 340px; }
@media (max-width: 900px) {
  .editor-split { grid-template-columns: minmax(0, 1fr); }
  .editor-preview { position: static; }
}

/* Çiftin fotoğrafları: kaydırmalı galeri */
.ev-gallery { margin: 4px -16px 0; }
.ev-gallery-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ev-gallery-track::-webkit-scrollbar { display: none; }
.ev-gallery-item { flex: 0 0 82%; scroll-snap-align: center; border-radius: 16px; overflow: hidden; background: var(--panel); }
.ev-gallery-item:only-child { flex-basis: 100%; }
.ev-gallery-item img { display: block; width: 100%; height: 340px; object-fit: cover; }
.ev-gallery-hint { margin: 2px 0 0; }
.ev-tagcode { text-align: center; margin: 6px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
/* Dosya seçme alanı dar ekranda küçülsün */
.photo-pick input[type=file] { flex: 1; min-width: 0; width: 100%; }
input[type=file] { max-width: 100%; }

/* Albümde seçerek silme */
.select-bar { position: sticky; top: 61px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; margin-bottom: 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
.select-bar [data-select-count] { flex: 1; min-width: 160px; }
.album-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.album-group-head h3 { margin: 0; }
.album-item { position: relative; }
.pick-box { position: absolute; top: 8px; left: 8px; z-index: 2; margin: 0; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.pick-box input { width: 18px; height: 18px; margin: 0; accent-color: var(--danger); }
.album-item.picked img { outline: 3px solid var(--danger); outline-offset: -3px; opacity: .75; }
.lb-delete { top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; width: auto !important; padding: 0 16px; font: 600 14px var(--sans) !important; background: #d23b2c !important; }
