/* ===== Editor — Inline + Bottom Sheet ===== */

[x-cloak] { display: none !important; }

:root {
    /* Brand token eşleştirmeleri — tokens.css'den */
    --ed-bg:     #2a0f1c;              /* plum-900 altı sıcak koyu — zemin */
    --ed-800:    var(--plum-900);      /* #3E1A2A — sheet yüzey */
    --ed-700:    #2a0f1c;              /* modal yüzey */
    --ed-600:    var(--plum-800);      /* #5C2A3E */
    --ed-400:    var(--plum-700);      /* #7A3A55 */
    --ed-300:    var(--plum-500);      /* #B85A82 */
    --ed-200:    var(--plum-200);      /* #F0C8DC — vurgu border */
    --ed-text:   var(--cream-50);      /* #FAF7F4 */
    --ed-muted:  var(--ink-400);       /* #9C8A92 — koyu zeminde ~4.6:1 ✓ */
    --ed-border: rgba(250,247,244,0.10);
    --ed-r-lg:   var(--radius-card);   /* 16px */
    --ed-r-md:   var(--radius-input);  /* 8px */
    --ed-r-sm:   var(--radius-badge);  /* 6px */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body, 'Raleway'), system-ui, sans-serif;
    background: var(--ed-bg);
    color: var(--ed-text);
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ─── GLOBAL FOCUS RING (WCAG 2.4.7) ─── */
:focus-visible {
    outline: 2px solid var(--plum-200);
    outline-offset: 2px;
}

/* ─── ÜST BAR ─── */
.ed-ust-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    background: rgba(42, 15, 28, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ed-border);
    z-index: var(--z-overlay);
    gap: var(--space-2);
}
.ed-geri-btn {
    display: flex; align-items: center; gap: var(--space-1);
    color: var(--ed-text); text-decoration: none;
    font-size: var(--text-sm); opacity: 0.72;
    background: none; border: none; cursor: pointer;
    padding: var(--space-2) var(--space-2);
    min-height: 44px; min-width: 44px;
    flex-shrink: 0; font-family: var(--font-body, 'Raleway'), sans-serif;
    transition: opacity var(--duration-instant);
}
.ed-geri-btn:hover { opacity: 1; }

/* ─── ÜST BAR MERKEZ ─── */
.ed-ust-bar-merkez {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    overflow: hidden;
    min-width: 0;
}
.ed-davetiye-isim {
    font-family: var(--font-display, 'Gloock'), serif;
    font-size: 0.82rem;
    color: var(--cream-50);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}
.ed-kayit-durum {
    text-align: center; font-size: var(--text-xs);
    color: var(--ed-muted); transition: color 300ms;
}
.ed-kayit-durum.ok { color: var(--state-live, #4ade80); }

/* Önizleme butonu */
.ed-onizleme-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: none; border: 1px solid var(--ed-border);
    border-radius: var(--ed-r-sm); cursor: pointer;
    color: var(--ed-text); opacity: 0.72;
    flex-shrink: 0;
    transition: opacity var(--duration-instant), border-color var(--duration-instant);
}
.ed-onizleme-btn:hover { opacity: 1; border-color: var(--plum-200); }

/* ─── TAM EKRAN ÖNİZLEME ─── */
body.ed-onizleme .ed-ust-bar,
body.ed-onizleme .ed-alt-bar,
body.ed-onizleme .bottom-sheet,
body.ed-onizleme .ed-gonder-btn { display: none !important; }

body.ed-onizleme .ed-kanvas {
    padding-top: 0;
    padding-bottom: 0;
    max-width: 100%;
}

body.ed-onizleme .ed-onizleme-btn {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--space-2));
    right: var(--space-2);
    z-index: var(--z-modal);
    opacity: 0.6;
    background: rgba(42,15,28,0.6);
    backdrop-filter: blur(8px);
}

/* Yayınla kaldırıldı — asıl CTA "Tasarımı Gönder" floating butonu */

/* ─── KANVAS ─── */
.ed-kanvas {
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
    padding-bottom: 60px;
    min-height: 100dvh;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--cream-50);
}

/* ─── HERO ─── */
.ed-hero {
    position: relative;
    min-height: 62vh;
    background-size: cover;
    background-position: center;
    display: flex; align-items: center; justify-content: center;
}
.ed-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(62,26,42,0.55) 0%,
        rgba(62,26,42,0.28) 55%,
        rgba(62,26,42,0.68) 100%
    );
}
.ed-hero-icerik {
    position: relative; z-index: 1;
    text-align: center; padding: 48px 24px 40px; width: 100%;
}
.ed-davet-etiketi {
    font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(255,255,255,0.85); margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
}
.ed-isimler-wrap {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; margin-bottom: 16px;
}
.ed-isim {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic; font-size: 2.7rem; font-weight: 400;
    color: #fff; line-height: 1.1; padding-bottom: 2px;
    display: block; min-width: 50px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
}
.ed-ve {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.6rem; color: rgba(255,255,255,0.85);
    display: block; margin: 1px 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
}
.ed-acilis {
    font-size: 0.78rem; color: rgba(255,255,255,0.88);
    max-width: 30ch; margin: 0 auto; line-height: 1.65;
    font-style: italic; min-height: 1.2em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
}

.ed-aile-kanvas-grup {
    text-align: center;
    color: var(--plum-700, #5e2255);
    min-width: 0;
}
.ed-aile-kanvas-isimler {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: nowrap;
}
.ed-aile-kanvas-soyisim {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    margin-top: 2px;
    white-space: nowrap;
}

/* inline editable göstergesi */
.ed-inline {
    cursor: pointer; border-radius: 4px;
    outline: 2px solid transparent; outline-offset: 4px;
    transition: outline-color 150ms;
    position: relative;
}
.ed-inline:hover { outline-color: rgba(240,200,220,0.45); }
.ed-inline:focus { outline-color: var(--plum-200); cursor: text; }
[contenteditable="true"].ed-inline:empty::before {
    content: attr(data-placeholder); opacity: 0.38;
}
/* Kalem ikonu — düzenlenebilir olduğu hissettiren gösterge */
.ed-inline:not([contenteditable="true"])::after {
    content: '✏';
    position: absolute;
    top: -8px; right: -16px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 150ms;
    pointer-events: none;
}
.ed-inline:hover::after { opacity: 0.75; }

/* ─── BÖLÜMLER ─── */
.ed-bolum {
    padding: 12px 14px;
    border: 1px solid var(--plum-200, #F0C8DC);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 12px;
}
.ed-bolum-baslik {
    font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--plum-800, #4A1942); font-weight: 600; margin-bottom: var(--space-3); text-align: center;
}

/* ─── TARİH ─── */
.ed-tarih-kutu { text-align: center; }
.ed-takvim {
    display: inline-flex; flex-direction: column; align-items: center;
    border: 1.5px solid var(--plum-800); border-radius: var(--radius-input); overflow: hidden; min-width: 88px;
}
.ed-takvim-ay {
    background: var(--plum-800); color: var(--cream-50);
    font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
    padding: var(--space-1) var(--space-4); width: 100%; text-align: center;
}
.ed-takvim-gun {
    font-size: var(--text-4xl); font-weight: 700; color: var(--plum-900);
    line-height: 1; padding: var(--space-2) var(--space-4) var(--space-1);
}
.ed-takvim-yil {
    font-size: var(--text-xs); color: var(--plum-700);
    padding: 0 var(--space-4) var(--space-2); display: block; text-align: center;
}
.ed-tarih-serit {
    font-family: var(--font-display, 'Gloock'), serif;
    font-size: var(--text-lg); letter-spacing: 0.06em; color: var(--plum-900); text-align: center;
}

/* ─── ETKİNLİKLER ─── */
.ed-etkinlikler { display: flex; flex-direction: column; gap: 10px; }
.ed-etkinlik-kart {
    border: 1px solid var(--plum-200); border-radius: var(--ed-r-md);
    padding: var(--space-3) var(--space-4); background: #fff;
}
.ed-etk-tip {
    font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.13em;
    color: var(--plum-700); font-weight: 600; margin-bottom: var(--space-1);
}
.ed-etk-tarih {
    font-family: var(--font-display, 'Gloock'), serif;
    font-size: var(--text-base); color: var(--plum-900); margin-bottom: var(--space-1);
}
.ed-etk-mekan { font-size: 0.74rem; color: var(--ink-500); }
.ed-bos-etkinlik {
    text-align: center; color: var(--ink-400); font-size: var(--text-sm);
    padding: var(--space-5); border: 1.5px dashed var(--plum-200); border-radius: var(--ed-r-md);
}

/* ─── ROZETLER ─── */
.ed-rozetler { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ed-rozet {
    background: var(--plum-100); color: var(--plum-800);
    border-radius: var(--radius-badge); font-size: var(--text-xs); padding: var(--space-1) var(--space-2); font-weight: 500;
}

/* ─── GALERİ KANVASı ─── */
.ed-galeri-izgara {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
    border-radius: 8px; overflow: hidden;
}
.ed-galeri-izgara img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* ─── ALT BAR ─── */
.ed-alt-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 72px;
    display: flex; align-items: center; justify-content: space-around;
    background: rgba(42, 15, 28, 0.95);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--ed-border);
    z-index: var(--z-overlay);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ed-alt-btn {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
    color: var(--ed-muted); background: none; border: none; cursor: pointer;
    padding: var(--space-2) var(--space-3);
    min-height: 44px; min-width: 64px;
    border-radius: var(--ed-r-sm);
    transition: color var(--duration-instant), background var(--duration-instant);
    font-family: var(--font-body, 'Raleway'), sans-serif;
}
.ed-alt-btn:hover { color: var(--ed-text); background: rgba(255,255,255,0.05); }
.ed-alt-btn svg   { width: 22px; height: 22px; stroke-width: 1.6; }
.ed-alt-btn span  { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.03em; }

/* ─── BACKDROP ─── */
.sheet-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.58); z-index: calc(var(--z-modal) - 5);
}

/* ─── BOTTOM SHEET ─── */
.bottom-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--ed-800);
    border-radius: var(--ed-r-lg) var(--ed-r-lg) 0 0;
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), var(--space-4));
}
.sheet-tutamac {
    width: 40px; height: 4px;
    background: rgba(255,255,255,0.17); border-radius: 2px;
    margin: 12px auto 0;
}
.sheet-baslik {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px 10px; border-bottom: 1px solid var(--ed-border);
}
.sheet-baslik-metin { font-weight: 600; font-size: 0.9rem; color: var(--ed-text); }
.sheet-kapat {
    background: rgba(255,255,255,0.06); border: none; color: var(--ed-text);
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.72rem; transition: background 120ms;
}
.sheet-kapat:hover { background: rgba(255,255,255,0.13); }
.sheet-govde { padding: 12px 20px 4px; }
.sheet-sec-baslik {
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ed-muted); font-weight: 600; margin: 14px 0 10px;
}
.sheet-sec-baslik:first-child { margin-top: 2px; }

/* ─── ARKA PLAN IZGARA ─── */
.ap-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ap-kart {
    aspect-ratio: 2/3; background-size: cover; background-position: center;
    border-radius: var(--ed-r-sm); border: 2px solid transparent;
    cursor: pointer; position: relative; overflow: hidden;
    transition: border-color 120ms, box-shadow 120ms;
}
.ap-kart.secili { border-color: var(--ed-200); box-shadow: 0 0 0 2px var(--ed-300); }
.ap-kart--yukle {
    background: var(--plum-50, #FBF1F6);
    border: 2px dashed var(--plum-200, #F0C8DC);
    display: flex; align-items: center; justify-content: center;
}
.ap-kart--yukle:hover { border-color: var(--plum-400, #C87099); background: #F6E8F0; }
.ap-yukle-ikon {
    color: var(--plum-500, #B85A82); font-size: 0.62rem; font-weight: 600;
    text-align: center; line-height: 1.6; padding: 4px;
}
.ap-kart span {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.5); color: #fff;
    font-size: 0.58rem; text-align: center; padding: 3px 2px; font-weight: 500;
}

/* ─── TARİH STİLİ ─── */
.ts-izgara { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.ts-kart {
    border: 1.5px solid var(--ed-border); border-radius: var(--ed-r-sm);
    padding: 10px 8px; text-align: center; font-size: 0.77rem;
    cursor: pointer; color: var(--ed-muted);
    transition: border-color 120ms, color 120ms, background 120ms;
}
.ts-kart.secili {
    border-color: var(--ed-200); color: var(--ed-text);
    background: rgba(181,123,238,0.09);
}

/* ─── ETKİNLİK SHEET ─── */
.etk-satir {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--ed-border);
}
.etk-satir:last-child { border-bottom: none; }
.etk-satir-ad { flex: 1; font-size: 0.84rem; color: var(--ed-text); }
.etk-duzenle {
    background: rgba(255,255,255,0.06); border: 1px solid var(--ed-border);
    color: var(--ed-muted); border-radius: var(--radius-badge);
    padding: var(--space-2) var(--space-3);
    min-height: 44px;
    font-size: var(--text-xs); cursor: pointer;
    font-family: var(--font-body, 'Raleway'), sans-serif;
    transition: color var(--duration-instant), background var(--duration-instant);
}
.etk-duzenle:hover { color: var(--ed-text); background: rgba(255,255,255,0.1); }

.etk-detay { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--ed-border); }
.etk-detay-baslik {
    display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
    font-weight: 600; font-size: 0.84rem; color: var(--ed-text);
}
.etk-geri {
    background: rgba(255,255,255,0.06); border: none; color: var(--ed-text);
    border-radius: var(--radius-badge);
    padding: var(--space-2) var(--space-3);
    min-height: 44px;
    cursor: pointer;
    font-size: var(--text-xs);
    font-family: var(--font-body, 'Raleway'), sans-serif;
}

/* ─── FORM ─── */
.alan-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.alan-etiket {
    display: block; font-size: 0.62rem; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--ed-muted); font-weight: 600; margin-bottom: 4px;
}
.alan-input {
    width: 100%; background: rgba(255,255,255,0.06);
    border: 1px solid var(--ed-border); border-radius: var(--ed-r-sm);
    color: var(--ed-text);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-family: var(--font-body, 'Raleway'), sans-serif;
    transition: border-color var(--duration-instant);
    margin-bottom: var(--space-2); -webkit-appearance: none;
}
.alan-input:focus { border-color: var(--ed-300); }
.alan-input::placeholder { color: var(--ink-400); opacity: 0.6; }
.alan-input--hata { border-color: var(--state-error-border, #fca5a5) !important; }

.alan-hata {
    font-size: var(--text-xs);
    color: var(--state-error-border, #fca5a5);
    margin: calc(-1 * var(--space-2)) 0 var(--space-2);
    display: block;
}
.alan-input[type="date"],
.alan-input[type="time"],
select.alan-input { color-scheme: dark; }

.haritadan-sec {
    width: 100%; background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(240,200,220,0.28); color: var(--ed-muted);
    border-radius: var(--ed-r-sm);
    padding: var(--space-2) var(--space-3);
    min-height: 44px;
    font-size: var(--text-sm);
    cursor: pointer; font-family: var(--font-body, 'Raleway'), sans-serif; text-align: center;
    transition: border-color var(--duration-fast), color var(--duration-fast);
    margin-bottom: var(--space-2);
}
.haritadan-sec:hover { border-color: var(--ed-200); color: var(--ed-text); }
.konum-onay { font-size: var(--text-xs); color: var(--state-live, #4ade80); margin-bottom: var(--space-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── TOGGLE ─── */
.toggle-satir {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 0; border-bottom: 1px solid var(--ed-border);
}
.toggle-satir:last-child { border-bottom: none; }
.toggle-satir-metin { font-size: 0.83rem; color: var(--ed-text); font-weight: 500; }
.toggle-satir-acik  { font-size: 0.64rem; color: var(--ed-muted); margin-top: 1px; }

.toggle-sw { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-sw input { opacity: 0; width: 0; height: 0; }
.toggle-sl {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.11); border-radius: 11px;
    cursor: pointer; transition: background 200ms;
}
.toggle-sl::before {
    content: ''; position: absolute;
    width: 16px; height: 16px; left: 3px; top: 3px;
    border-radius: 50%; background: rgba(255,255,255,0.52);
    transition: transform 200ms;
}
.toggle-sw input:checked + .toggle-sl { background: linear-gradient(135deg, var(--plum-800), var(--plum-500)); }
.toggle-sw input:checked + .toggle-sl::before { transform: translateX(18px); background: #fff; }
.toggle-alt {
    padding: 6px 0 4px 10px; border-left: 2px solid var(--ed-400); margin-bottom: 4px;
}

/* ─── GALERİ SHEET ─── */
.foto-yukle {
    border: 1.5px dashed rgba(181,123,238,0.28); border-radius: var(--ed-r-md);
    padding: 20px; text-align: center; cursor: pointer;
    color: var(--ed-muted); font-size: 0.78rem;
    transition: border-color 150ms, background 150ms; margin-bottom: 12px;
}
.foto-yukle:hover, .foto-yukle.uzerinde { border-color: var(--ed-200); background: rgba(181,123,238,0.06); }
.foto-yukle-ikon { font-size: 1.4rem; margin-bottom: 5px; }
.foto-yukle-alt  { font-size: 0.58rem; margin-top: 4px; color: rgba(240,232,255,0.28); }

.foto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.foto-item { position: relative; aspect-ratio: 1; }
.foto-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.foto-sil {
    position: absolute; top: 2px; right: 2px;
    background: rgba(0,0,0,0.65); border: none; color: var(--cream-50);
    width: 24px; height: 24px; border-radius: 50%;
    font-size: 0.65rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.foto-sil:hover {
    background: rgba(220, 38, 38, 0.8);
}
/* Görünmez genişletilmiş dokunma hedefi (44×44px) */
.foto-sil::before {
    content: '';
    position: absolute;
    inset: -10px;
}

/* ─── HARITA MODALİ ─── */
.maps-modal-bg {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.72); z-index: calc(var(--z-modal) + 20);
    display: flex; align-items: flex-end; justify-content: center;
}
.maps-modal-box {
    background: var(--ed-700);
    border-radius: var(--ed-r-lg) var(--ed-r-lg) 0 0;
    width: 100%; max-width: 480px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.maps-modal-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-3) var(--space-4) var(--space-2);
    border-bottom: 1px solid var(--ed-border);
    font-weight: 600; font-size: var(--text-sm); color: var(--ed-text);
}
#harita-arama {
    display: block;
    width: calc(100% - 2 * var(--space-4));
    margin: var(--space-2) var(--space-4);
    background: rgba(255,255,255,0.08); border: 1px solid var(--ed-border);
    border-radius: var(--ed-r-sm); color: var(--ed-text);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-family: var(--font-body, 'Raleway'), sans-serif;
}
#harita-arama:focus { border-color: var(--ed-300); }
#harita-konteyner { height: 240px; width: 100%; }
.maps-modal-ftr {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 18px 14px; border-top: 1px solid var(--ed-border); gap: 12px;
}
#secili-adres {
    font-size: 0.68rem; color: var(--ed-muted); flex: 1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ─── GENEL BUTONLAR ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--space-1);
    cursor: pointer;
    font-family: var(--font-body, 'Raleway'), sans-serif;
    border: none; border-radius: var(--ed-r-sm);
    padding: var(--space-2) var(--space-3);
    min-height: 44px;
    font-size: var(--text-sm); font-weight: 500;
    transition: opacity var(--duration-instant);
}
.btn-primary { background: linear-gradient(135deg, var(--plum-800), var(--plum-500)); color: var(--cream-50); }
.btn-ghost   { background: rgba(255,255,255,0.07); color: var(--ed-text); border: 1px solid var(--ed-border); }
.btn-sm      { padding: var(--space-1) var(--space-2); min-height: 36px; font-size: var(--text-xs); }
.btn:hover   { opacity: 0.82; }

/* ─── SHEET ANİMASYON SINIFLARI ─── */
.sheet-enter       { transition: transform 220ms cubic-bezier(0.22,1,0.36,1), opacity 220ms; }
.sheet-enter-start { transform: translateY(100%); opacity: 0; }
.sheet-enter-end   { transform: translateY(0);    opacity: 1; }
.sheet-leave       { transition: transform 180ms cubic-bezier(0.55,0,1,0.45), opacity 180ms; }
.sheet-leave-start { transform: translateY(0);    opacity: 1; }
.sheet-leave-end   { transform: translateY(100%); opacity: 0; }

.bd-enter       { transition: opacity 200ms; }
.bd-enter-start { opacity: 0; }
.bd-enter-end   { opacity: 1; }
.bd-leave       { transition: opacity 180ms; }
.bd-leave-start { opacity: 1; }
.bd-leave-end   { opacity: 0; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration:  0.01ms !important;
    }
}

/* ─── DESKTOP ─── */
@media (min-width: 520px) {
    .ed-kanvas {
        border-left:  1px solid #ede4f5;
        border-right: 1px solid #ede4f5;
        box-shadow: 0 0 40px rgba(74,32,89,0.07);
    }
    .bottom-sheet, .ed-alt-bar {
        left:  calc(50% - 240px);
        right: calc(50% - 240px);
    }
    .maps-modal-bg   { align-items: center; }
    .maps-modal-box  { border-radius: var(--ed-r-lg); }
}

/* ─── GALERİ SEKMELERİ ─── */
.gallery-tabs {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4) 0;
    border-bottom: 1px solid var(--ed-border);
}
.gallery-tab {
    padding: var(--space-2) var(--space-4);
    border: none;
    background: transparent;
    border-radius: var(--radius-badge) var(--radius-badge) 0 0;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ed-muted);
    cursor: pointer;
    transition: color var(--duration-fast), background var(--duration-fast);
    min-height: 44px;
}
.gallery-tab--active {
    background: rgba(250,247,244,0.06);
    color: var(--ed-text);
    border-bottom: 2px solid var(--plum-200);
}
.gallery-panel {
    padding: var(--space-3) var(--space-4);
}
.gallery-panel--hidden {
    display: none;
}

/* ─── GALERİ FİLTRE ÇİPLERİ ─── */
.gallery-filtre {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-bottom: 1px solid var(--ed-border);
}
.gallery-filtre-cip {
    padding: 3px var(--space-3);
    border-radius: 999px;
    border: 1px solid var(--ed-border);
    background: none;
    color: var(--ed-muted);
    font-size: var(--text-xs);
    font-family: var(--font-body, 'Raleway'), sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--duration-instant), border-color var(--duration-instant), background var(--duration-instant);
    min-height: 32px;
}
.gallery-filtre-cip:hover {
    color: var(--ed-text);
    border-color: var(--plum-200);
}
.gallery-filtre-cip--aktif {
    background: rgba(240,200,220,0.12);
    border-color: var(--plum-200);
    color: var(--cream-50);
}

/* ─── SHEET FOOTER ─── */
.sheet-footer {
    padding: var(--space-3) var(--space-4);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--ed-border);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    background: var(--ed-800);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    max-height: 300px;
    overflow-y: auto;
}
.gallery-thumb {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-input);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--duration-fast);
}
.gallery-thumb:hover img {
    opacity: .85;
}
.gallery-thumb--animated {
    position: relative;
}
.gallery-animated-badge {
    position: absolute;
    bottom: var(--space-1);
    right: var(--space-1);
    background: rgba(0,0,0,.6);
    color: var(--cream-50);
    font-size: var(--text-xs);
    padding: 2px var(--space-1);
    border-radius: var(--radius-badge);
    pointer-events: none;
}
.gallery-empty {
    font-size: var(--text-sm);
    color: var(--ink-300, #c4b8bd);
    text-align: center;
    padding: var(--space-5) 0;
    margin: 0;
}

.foto-limit-uyari {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--plum-200);
    text-align: center;
}

/* ─── FOTO SKELETON ─── */
.foto-item--yukleniyor {
    aspect-ratio: 1;
    border-radius: var(--radius-input);
    overflow: hidden;
}
.foto-skeleton {
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.04) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s infinite;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── TOAST BİLDİRİMLERİ ─── */
.toast-kapsayici {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 50%; transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex; flex-direction: column; gap: var(--space-2);
    width: min(420px, calc(100vw - 2 * var(--space-4)));
    pointer-events: none;
}
.toast {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-card);
    font-size: var(--text-sm);
    font-family: var(--font-body, 'Raleway'), sans-serif;
    color: var(--cream-50);
    background: var(--plum-900);
    box-shadow: var(--shadow-lg);
    animation: toast-giris 200ms var(--ease-enter, ease-out) forwards;
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-3);
    pointer-events: auto;
}
.toast-eylem {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--cream-50);
    border-radius: var(--ed-r-sm);
    padding: 2px var(--space-2);
    font-size: var(--text-xs); font-weight: 600;
    cursor: pointer; white-space: nowrap;
    font-family: var(--font-body, 'Raleway'), sans-serif;
}
.toast-eylem:hover { background: rgba(255,255,255,0.28); }
.toast--hata   { background: var(--state-error-text, #991b1b); }
.toast--uyari  { background: var(--state-warn-text,  #92400e); }
.toast--basari { background: var(--state-success-text, #065f46); }
@keyframes toast-giris {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .foto-skeleton { animation: none; }
    .toast { animation: none; }
}

/* ─── ONBOARDING SPOTLIGHT ─── */
.onboard-overlay {
    position: fixed; inset: 0;
    background: rgba(20, 6, 14, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-4));
}
.onboard-kart {
    background: var(--ed-800);
    border: 1px solid var(--ed-border);
    border-radius: var(--radius-card) var(--radius-card) var(--ed-r-sm) var(--ed-r-sm);
    padding: var(--space-6) var(--space-6) var(--space-5);
    width: min(480px, calc(100vw - var(--space-4) * 2));
    text-align: center;
    animation: toast-giris 250ms var(--ease-enter, ease-out) forwards;
}
.onboard-adim-bar {
    display: flex; gap: var(--space-2); justify-content: center;
    margin-bottom: var(--space-5);
}
.onboard-nokta {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ed-border);
    transition: background 250ms, transform 250ms;
}
.onboard-nokta--aktif {
    background: var(--plum-200);
    transform: scale(1.3);
}
.onboard-ikon {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(240,200,220,0.1);
    border: 1px solid var(--plum-200);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--plum-200);
}
.onboard-baslik {
    font-family: var(--font-display, 'Gloock'), serif;
    font-size: var(--text-lg); font-weight: 400;
    color: var(--cream-50);
    margin-bottom: var(--space-2);
}
.onboard-aciklama {
    font-size: var(--text-sm); color: var(--ed-muted);
    line-height: 1.55; margin-bottom: var(--space-5);
}
.onboard-aksiyonlar {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-3);
}
.onboard-atla {
    background: none; border: none; cursor: pointer;
    font-family: var(--font-body, 'Raleway'), sans-serif;
    font-size: var(--text-sm); color: var(--ed-muted);
    padding: var(--space-2); min-height: 44px;
    transition: color var(--duration-instant);
}
.onboard-atla:hover { color: var(--ed-text); }
.onboard-ileri { flex: 1; }

@media (prefers-reduced-motion: reduce) {
    .onboard-kart { animation: none; }
    .onboard-nokta { transition-duration: 0.01ms; }
}

/* ─── GERİ SAYIM ─── */
.ed-geri-sayim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 0 12px;
}
.ed-gs-hucre {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}
.ed-gs-sayi {
    font-family: var(--font-display, 'Gloock'), Georgia, serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--champagne, #D4B483);
    line-height: 1;
}
.ed-gs-etiket {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-400, #9C8A92);
    margin-top: 4px;
}
.ed-gs-ayrac {
    font-size: 1.8rem;
    color: var(--champagne, #D4B483);
    opacity: 0.5;
    align-self: flex-start;
    padding-top: 4px;
    line-height: 1;
}
.ed-gs-mesaj {
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-400, #9C8A92);
    padding: 12px 0 4px;
}

/* ─── FEATURE BLOKLARI ─── */
.ed-feature-blok { padding: 20px 24px; }

/* Müzik */
.ed-muzik-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(250,247,244,0.06);
    border-radius: 40px;
    padding: 12px 20px;
}
.ed-muzik-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--champagne, #D4B483);
    color: var(--plum-900, #3E1A2A);
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.ed-muzik-bilgi { flex: 1; }
.ed-muzik-ad {
    font-size: 0.82rem;
    color: var(--cream-50, #FAF7F4);
    opacity: 0.85;
}
.ed-muzik-dalga {
    display: flex; align-items: flex-end; gap: 2px; height: 18px;
}
.ed-muzik-dalga span {
    display: block; width: 3px; background: var(--champagne, #D4B483);
    border-radius: 2px; opacity: 0.5;
    animation: muzik-dalga 1.2s ease-in-out infinite;
}
.ed-muzik-dalga span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.ed-muzik-dalga span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.ed-muzik-dalga span:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.ed-muzik-dalga span:nth-child(4) { height: 12px; animation-delay: 0.45s; }
.ed-muzik-dalga span:nth-child(5) { height: 6px;  animation-delay: 0.6s; }
@keyframes muzik-dalga {
    0%,100% { transform: scaleY(0.5); }
    50%      { transform: scaleY(1); }
}

/* Hava */
.ed-hava-kart {
    display: flex; align-items: center; gap: 16px;
    background: rgba(250,247,244,0.06);
    border-radius: 12px; padding: 16px 20px;
}
.ed-hava-ikon { font-size: 2rem; flex-shrink: 0; }
.ed-hava-sicaklik { display: block; font-size: 1.4rem; color: var(--cream-50, #FAF7F4); }
.ed-hava-acik { display: block; font-size: 0.78rem; color: var(--ink-400, #9C8A92); margin-top: 2px; }

/* IBAN */
.ed-iban-kart {
    background: rgba(250,247,244,0.06);
    border: 1px solid rgba(212,180,131,0.2);
    border-radius: 12px; padding: 16px 20px;
}
.ed-iban-etiket {
    font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--champagne, #D4B483); margin-bottom: 6px;
}
.ed-iban-no {
    font-family: 'Courier New', monospace; font-size: 0.88rem;
    color: var(--cream-50, #FAF7F4); letter-spacing: 0.05em;
    word-break: break-all; margin-bottom: 12px;
}
.ed-iban-kopyala {
    font-family: var(--font-body); font-size: 0.78rem;
    padding: 7px 18px; border-radius: 9999px;
    border: 1px solid var(--champagne, #D4B483);
    background: transparent; color: var(--champagne, #D4B483);
    cursor: pointer; transition: background 150ms;
}
.ed-iban-kopyala:hover { background: rgba(212,180,131,0.12); }

/* RSVP */
.ed-rsvp {
    background: rgba(250,247,244,0.04);
    border: 1px solid rgba(250,247,244,0.1);
    border-radius: 12px; padding: 16px 20px;
}
.ed-rsvp-isim {
    width: 100%; padding: 10px 14px;
    background: rgba(250,247,244,0.08);
    border: 1px solid rgba(250,247,244,0.12);
    border-radius: 8px; color: var(--cream-50);
    font-family: var(--font-body); font-size: 0.9rem;
    margin-bottom: 12px;
}
.ed-rsvp-radio-grup {
    display: flex; gap: 16px; margin-bottom: 12px;
}
.ed-rsvp-radio {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.88rem; color: var(--cream-50); cursor: pointer;
}
.ed-rsvp-radio input { accent-color: var(--champagne, #D4B483); }
.ed-rsvp-kisi {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.ed-rsvp-sayi {
    width: 60px; padding: 6px 10px;
    background: rgba(250,247,244,0.08);
    border: 1px solid rgba(250,247,244,0.12);
    border-radius: 8px; color: var(--cream-50);
    font-family: var(--font-body); font-size: 0.9rem;
}
.ed-rsvp-btn {
    width: 100%; padding: 11px;
    background: var(--champagne, #D4B483); color: var(--plum-900, #3E1A2A);
    border: none; border-radius: 9999px;
    font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
    cursor: pointer; margin-bottom: 8px;
}
.ed-rsvp-not {
    text-align: center; font-size: 0.72rem;
    color: var(--ink-400, #9C8A92); opacity: 0.7;
}

/* Foto duvarı */
.ed-foto-duvar-on {
    text-align: center;
    background: rgba(250,247,244,0.04);
    border: 1.5px dashed rgba(250,247,244,0.15);
    border-radius: 12px; padding: 24px 20px;
}
.ed-foto-placeholder { font-size: 2rem; margin-bottom: 8px; }
.ed-foto-ckta {
    font-size: 0.82rem; color: var(--ink-400, #9C8A92); margin-bottom: 14px;
}
.ed-foto-btn {
    padding: 9px 22px; border-radius: 9999px;
    border: 1px solid var(--champagne, #D4B483);
    background: transparent; color: var(--champagne, #D4B483);
    font-family: var(--font-body); font-size: 0.82rem; cursor: pointer;
}

/* Hatıra defteri */
.ed-hatira {
    background: rgba(250,247,244,0.04);
    border: 1px solid rgba(250,247,244,0.1);
    border-radius: 12px; padding: 16px 20px;
}
.ed-hatira-mesaj { margin-bottom: 14px; }
.ed-hatira-metin {
    font-family: var(--font-display, 'Gloock'), serif;
    font-style: italic; font-size: 0.9rem;
    color: var(--cream-50); line-height: 1.5; margin-bottom: 4px;
}
.ed-hatira-yazar {
    font-size: 0.75rem; color: var(--ink-400, #9C8A92);
}
.ed-hatira-yaz-btn {
    width: 100%; padding: 10px;
    background: transparent;
    border: 1px solid rgba(250,247,244,0.2);
    border-radius: 9999px; color: var(--cream-50);
    font-family: var(--font-body); font-size: 0.82rem; cursor: pointer;
    transition: border-color 150ms;
}
.ed-hatira-yaz-btn:hover { border-color: var(--champagne, #D4B483); }

@media (prefers-reduced-motion: reduce) {
    .ed-muzik-dalga span { animation: none; }
}

/* ─── AİLE BİREYLERİ ─── */
.ed-aile-grup {
    background: rgba(250,247,244,0.04);
    border: 1px solid rgba(250,247,244,0.1);
    border-radius: 12px; padding: 12px 16px;
}
.ed-aile-baslik {
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--champagne, #D4B483); margin-bottom: 8px;
}
.ed-aile-satir {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0; border-bottom: 1px solid rgba(250,247,244,0.07);
    font-size: 0.83rem;
}
.ed-aile-satir:last-of-type { border-bottom: none; }
.ed-aile-rol {
    color: var(--ink-400, #9C8A92); font-size: 0.72rem;
    min-width: 72px; flex-shrink: 0;
}
.ed-aile-isim { flex: 1; color: var(--cream-50, #FAF7F4); }
.ed-aile-duzenle,
.ed-aile-sil {
    background: none; border: none; cursor: pointer;
    color: var(--ed-muted); font-size: 0.75rem;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: color 120ms, background 120ms;
}
.ed-aile-duzenle:hover { color: var(--cream-50); background: rgba(255,255,255,0.08); }
.ed-aile-sil:hover     { color: #f87171;         background: rgba(248,113,113,0.1); }
.ed-aile-ekle-btn {
    margin-top: 8px; width: 100%; padding: 8px;
    background: transparent; border: 1.5px dashed rgba(250,247,244,0.18);
    border-radius: 8px; color: var(--ed-muted); font-family: var(--font-body);
    font-size: 0.78rem; cursor: pointer; transition: border-color 150ms, color 150ms;
}
.ed-aile-ekle-btn:hover { border-color: var(--champagne, #D4B483); color: var(--cream-50); }

/* ─── ETKİNLİK HAVA PLACEHOLDER ─── */
.ed-etk-hava {
    display: flex; align-items: center; gap: 6px;
    margin-top: 6px;
    font-size: 0.72rem; color: var(--ink-400, #9C8A92);
    opacity: 0.75;
}
.ed-etk-hava-ikon { font-size: 1rem; }
.ed-etk-hava-not { font-size: 0.68rem; }

/* ─── ANI GALERİSİ KANVASı ─── */
.ed-ani-upload-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    margin: 8px 0;
}
.ed-ani-slot { aspect-ratio: 1 / 1; }
.ed-ani-slot-dolu {
    position: relative; width: 100%; height: 100%;
    border-radius: 8px; overflow: hidden;
}
.ed-ani-slot-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ed-ani-slot-sil {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,0.65); border: none; color: #fff;
    width: 24px; height: 24px; border-radius: 50%;
    font-size: 0.65rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.ed-ani-slot-sil::before { content: ''; position: absolute; inset: -8px; }
.ed-ani-slot-bos {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: rgba(250,247,244,0.04);
    border: 1.5px dashed rgba(250,247,244,0.18);
    border-radius: 8px; cursor: pointer;
    transition: border-color 150ms, background 150ms;
}
.ed-ani-slot-bos:hover {
    border-color: rgba(212,180,131,0.55);
    background: rgba(212,180,131,0.05);
}
.ed-ani-slot-yukleniyor { border: none; cursor: default; background: none; }
.ed-ani-slot-ikon {
    font-size: 1.25rem; line-height: 1;
    color: rgba(250,247,244,0.35);
    margin-bottom: 4px;
}
.ed-ani-slot-metin {
    font-size: 0.6rem; color: var(--ed-muted);
    letter-spacing: 0.04em;
}
.ed-ani-not {
    text-align: center; font-size: 0.68rem;
    color: var(--ink-400, #9C8A92); margin-top: 6px; opacity: 0.75;
}

/* ─── PLACEHOLDER KARTLAR ─── */
.ed-placeholder-kart {
    display: flex; align-items: center; gap: 10px;
    width: calc(100% - 48px); margin: 6px 24px;
    padding: 14px 18px;
    background: rgba(184,90,130,0.04);
    border: 1.5px dashed rgba(184,90,130,0.25);
    border-radius: 12px;
    cursor: pointer;
    color: #B85A82;
    font-family: var(--font-body, 'Raleway'), sans-serif;
    font-size: 0.82rem;
    text-align: left;
    transition: border-color 150ms, color 150ms, background 150ms;
}
.ed-placeholder-kart:hover {
    border-color: rgba(184,90,130,0.55);
    color: #8B3562;
    background: rgba(184,90,130,0.08);
}
.ed-ph-ikon {
    font-size: 1.1rem; flex-shrink: 0; opacity: 0.7;
}
.ed-ph-etiket {
    font-size: 0.8rem; letter-spacing: 0.01em;
}

/* ─── FAB — BÖLÜM YÖNET ─── */
.ed-fab {
    position: fixed;
    bottom: calc(56px + 12px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    z-index: calc(var(--z-overlay) - 1);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: linear-gradient(135deg, var(--plum-800, #4a1942), var(--plum-500, #8b3a7e));
    color: var(--cream-50, #fdf8f5);
    border: none; border-radius: 16px;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(62,26,42,0.4);
    font-family: var(--font-body, 'Raleway'), sans-serif;
    font-size: 0.58rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    transition: transform 150ms, box-shadow 150ms;
}
.ed-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62,26,42,0.55);
}
.ed-fab svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
    .ed-placeholder-kart, .ed-fab { transition-duration: 0.01ms; }
}

/* ═══ INLINE KART SİSTEMİ ═══ */
.ed-kart {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #F6E0EA;
    margin: 0;
    overflow: hidden;
}
.ed-kart-baslik {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 16px; gap: 8px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--plum-800, #3E1A2A);
    background: #FCF0F5;
    border-bottom: 1px solid #F6E0EA;
}
.ed-kart-kapat-btn {
    background: none; border: none; cursor: pointer;
    padding: 0 6px; border-radius: 6px; min-height: 32px; min-width: 32px;
    font-size: 0.9rem; color: #C87099; transition: background 150ms;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-family: var(--font-body, 'Raleway'), sans-serif;
}
.ed-kart-kapat-btn:hover { background: #F6E0EA; color: #3E1A2A; }
.ed-kart-icerik { padding: 14px 16px; }
.ed-kart-grup-baslik {
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: #C87099; font-weight: 600; margin: 14px 0 8px;
}
.ed-kart-grup-baslik:first-child { margin-top: 0; }

/* Kart içinde + Tab-sheet içinde form elemanları — açık tema */
.ed-kart .alan-input,
.tab-sheet .alan-input {
    background: #fff;
    border: 1.5px solid #F6E0EA;
    color: #3E1A2A;
}
.ed-kart .alan-input:focus,
.tab-sheet .alan-input:focus { border-color: #C87099; outline: none; }
.ed-kart .alan-input::placeholder,
.tab-sheet .alan-input::placeholder { color: #E8A8C8; opacity: 1; }
.ed-kart .alan-input[type="date"],
.ed-kart .alan-input[type="time"],
.ed-kart select.alan-input,
.tab-sheet .alan-input[type="date"],
.tab-sheet .alan-input[type="time"],
.tab-sheet select.alan-input { color-scheme: light; }
.ed-kart .alan-etiket,
.tab-sheet .alan-etiket { color: #6E2D52; }
.ed-kart .alan-hata,
.tab-sheet .alan-hata  { color: #dc2626; }

/* Toggle açık tema */
.ed-kart .toggle-satir-metin,
.tab-sheet .toggle-satir-metin { color: #3E1A2A; }
.ed-kart .toggle-satir-acik,
.tab-sheet .toggle-satir-acik  { color: #9C8A92; }
.ed-kart .toggle-satir,
.tab-sheet .toggle-satir        { border-bottom-color: #F6E0EA; }
.ed-kart .toggle-sl,
.tab-sheet .toggle-sl { background: #F6E0EA; }
.ed-kart .toggle-sl::before,
.tab-sheet .toggle-sl::before { background: #E8A8C8; }
.ed-kart .toggle-sw input:checked + .toggle-sl,
.tab-sheet .toggle-sw input:checked + .toggle-sl { background: linear-gradient(135deg, var(--plum-800), var(--plum-500)); }
.ed-kart .toggle-sw input:checked + .toggle-sl::before,
.tab-sheet .toggle-sw input:checked + .toggle-sl::before { background: #fff; }

/* Haritadan seç açık tema */
.ed-kart .haritadan-sec,
.tab-sheet .haritadan-sec {
    background: #FCF0F5; border-color: #F0C8DC; color: #B85A82;
}
.ed-kart .haritadan-sec:hover,
.tab-sheet .haritadan-sec:hover { border-color: #C87099; color: #3E1A2A; }
.ed-kart .konum-onay,
.tab-sheet .konum-onay { color: #16a34a; }

/* Aile bireyleri açık tema */
.ed-kart .ed-aile-grup,
.tab-sheet .ed-aile-grup {
    background: #FCF0F5;
    border: 1px solid #F6E0EA;
    border-radius: 10px; padding: 10px 14px;
}
.ed-kart .ed-aile-baslik,
.tab-sheet .ed-aile-baslik { color: #8B3562; }
.ed-kart .ed-aile-satir,
.tab-sheet .ed-aile-satir {
    display: grid; grid-template-columns: 100px 1fr auto;
    gap: 6px; align-items: center;
    padding: 4px 0; border-bottom: 1px solid #F6E0EA; font-size: 0.82rem;
}
.ed-kart .ed-aile-satir:last-of-type,
.tab-sheet .ed-aile-satir:last-of-type { border-bottom: none; }
.ed-kart .ed-aile-satir .alan-input,
.tab-sheet .ed-aile-satir .alan-input { margin-bottom: 0; padding: 6px 8px; font-size: 0.78rem; }
.ed-kart .ed-aile-sil,
.tab-sheet .ed-aile-sil { color: #E8A8C8; background: none; }
.ed-kart .ed-aile-sil:hover,
.tab-sheet .ed-aile-sil:hover { color: #dc2626; background: #fee2e2; }
.ed-kart .ed-aile-ekle-btn,
.tab-sheet .ed-aile-ekle-btn {
    border-color: #F0C8DC; color: #C87099;
}
.ed-kart .ed-aile-ekle-btn:hover,
.tab-sheet .ed-aile-ekle-btn:hover { border-color: #B85A82; color: #3E1A2A; background: #FCF0F5; }

/* Chip seçici (font/kenarlık/kutu/varyant) */
.ed-chip-grup {
    display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 2px;
}
.ed-chip {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 7px 10px; background: #fff;
    border: 1.5px solid #F6E0EA; border-radius: 8px; cursor: pointer;
    font-size: 0.7rem; color: #8B3562; transition: all 150ms;
    min-width: 54px; font-family: var(--font-body, 'Raleway'), sans-serif;
}
.ed-chip:hover { border-color: #E8A8C8; background: #FCF0F5; }
.ed-chip--aktif {
    border-color: #B85A82; background: #FCF0F5;
    color: #3E1A2A; font-weight: 600;
}
.ed-chip-onz {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; background: #FAF7F4; border: 1px solid #F6E0EA;
    font-size: 1.05rem; line-height: 1;
}

/* Inline etkinlik accordion */
.ed-etk-inline {
    border: 1px solid #F6E0EA; border-radius: 10px; margin-bottom: 8px; overflow: hidden;
}
.ed-etk-satir-hdr {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: #FCF0F5;
    font-size: 0.85rem; font-weight: 500; color: #3E1A2A;
}
.ed-etk-detay-inline {
    padding: 12px 14px; border-top: 1px solid #F6E0EA; background: #fff;
}

/* Geri sayım hedefi alanı */
.ed-gs-hedef {
    padding: 2px 0 14px; border-bottom: 1px solid #F6E0EA; margin-bottom: 14px;
}
.ed-gs-hedef-baslik {
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: #C87099; font-weight: 600; margin-bottom: 4px;
}
.ed-gs-hedef-acik {
    font-size: 0.72rem; color: #E8A8C8; margin-bottom: 10px;
}

/* Desktop — kart bloğu sol/sağ hizalama */
@media (min-width: 520px) {
    .ed-kart-blok { padding-left: 16px; padding-right: 16px; }
}

/* =========================================================
   EDITOR — Mobile-first Canva pattern
   ========================================================= */

/* --- Shell layout --- */
.editor-shell {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 56px);
  position: relative;
  overflow: hidden;
}

/* --- Preview area --- */
.preview-area {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream-100, #faf8f5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Tab bar (bottom on mobile) --- */
.tab-bar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  background: #fff;
  border-top: 1px solid var(--cream-300, #e8e3dc);
  z-index: 40;
  height: 56px;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-400, #9b8ea0);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.15s var(--ease-out, ease-out);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.tab-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-btn.active {
  color: var(--plum-600, #7c3aed);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--plum-600, #7c3aed);
  border-radius: 0 0 2px 2px;
}

.tab-btn:focus-visible {
  outline: 2px solid var(--plum-500, #8b5cf6);
  outline-offset: -2px;
}

/* --- Tab sheet (bottom sheet on mobile) --- */
.tab-sheet {
  position: fixed;
  bottom: 56px;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid var(--plum-200, #F0C8DC);
  box-shadow: 0 -8px 32px rgba(62,26,42,0.18);
  transition: transform 0.3s var(--ease-out, cubic-bezier(0.4,0,0.2,1));
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
}

.tab-sheet.state-peek  { transform: translateY(calc(100% - 60px)); }
.tab-sheet.state-half  { transform: translateY(45dvh); }
.tab-sheet.state-full  { transform: translateY(0); }

/* Sheet handle */
.sheet-handle {
  flex: 0 0 auto;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.sheet-handle::before {
  content: '';
  width: 40px;
  height: 4px;
  background: var(--cream-400, #d4cdc5);
  border-radius: 2px;
}

/* Sheet content scroll */
.sheet-content {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 24px;
  overscroll-behavior: contain;
}

/* Tab panel headings */
.tab-panel-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500, #6b5f72);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  margin-top: 16px;
}

/* --- Picker grid --- */
.picker-grup {
  margin-bottom: 20px;
}

.picker-baslik {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-300, #c4b8bd);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.picker-izgara {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.picker-kart {
  aspect-ratio: 3/4;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-200, #f3ede6);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.picker-kart span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  text-align: center;
}

.picker-kart.secili {
  border-color: var(--plum-600, #7c3aed);
}

.picker-kart:focus-visible {
  outline: 2px solid var(--plum-500, #8b5cf6);
  outline-offset: 2px;
}

.picker-bos {
  font-size: 13px;
  color: var(--ink-300, #c4b8bd);
  font-style: italic;
  padding: 8px 0;
}

.picker-upload-kart {
  aspect-ratio: 3/4;
  border-radius: 8px;
  border: 2px dashed var(--cream-400, #d4cdc5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: var(--cream-100, #faf8f5);
  transition: border-color 0.15s ease;
  font-size: 11px;
  color: var(--ink-400, #9b8ea0);
}

.picker-upload-kart:hover {
  border-color: var(--plum-400, #a78bfa);
  color: var(--plum-600, #7c3aed);
}

/* --- IBAN üst metin --- */
.ed-iban-baslik {
  font-style: italic;
  color: var(--ink-500, #6b5f72);
  font-size: 13px;
  margin-bottom: 6px;
  text-align: center;
}

/* --- Desktop layout (≥1024px) --- */
@media (min-width: 1024px) {
  .editor-shell {
    flex-direction: row;
    height: calc(100dvh - 56px);
  }

  .tab-bar {
    flex-direction: column;
    width: 400px;
    height: 100%;
    border-top: none;
    border-right: 1px solid var(--cream-300, #e8e3dc);
    overflow: hidden;
    position: relative;
  }

  .tab-btn {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 20px;
    height: auto;
    font-size: 14px;
    border-radius: 0;
  }

  .tab-btn.active::after {
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    height: auto;
    border-radius: 0 2px 2px 0;
  }

  .tab-sheet {
    position: static;
    transform: none !important;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--cream-300, #e8e3dc);
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
  }

  .sheet-handle { display: none; }

  .preview-area {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 24px;
  }

  .preview-area .ed-kanvas {
    max-width: 420px;
    width: 100%;
    min-height: 80vh;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    border-radius: 12px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .tab-sheet { transition: none; }
  .tab-btn   { transition: none; }
}

