/* ============================================================
   VISORA — create.css
   "Davetiyeni Oluştur" — Customization Page
   ============================================================ */

/* ======================== LAYOUT ======================== */

.create-layout {
  display: grid;
  /* 40 / 60 split — panel proportional, preview fills the rest */
  grid-template-columns: minmax(360px, 40%) 1fr;
  min-height: 100vh;
  padding-top: 88px;
}

/* ======================== LEFT PANEL ======================== */

.create-panel {
  height: calc(100vh - 88px);
  position: sticky;
  top: 88px;
  overflow: hidden;                  /* panel kendisi kaymaz */
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
}

/* Kaydırılabilir içerik alanı */
.cp-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cp-body::-webkit-scrollbar { width: 4px; }
.cp-body::-webkit-scrollbar-track { background: transparent; }
.cp-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Panel header */
.cp-header {
  padding: 36px 32px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cp-collection-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.cp-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.cp-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* Progress bar */
.cp-progress {
  margin-top: 16px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.cp-progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 1px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ======================== ACCORDION SECTIONS ======================== */

.ps-section {
  border-bottom: 1px solid var(--border);
}

/* Toggle button */
.ps-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  cursor: pointer;
  transition: background 0.25s ease;
  text-align: left;
}

.ps-toggle:hover {
  background: var(--gold-dim);
}

.ps-section.active > .ps-toggle {
  background: var(--gold-dim);
}

.ps-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
  width: 20px;
  transition: opacity 0.3s ease;
}

.ps-section.active .ps-num {
  opacity: 1;
}

.ps-label-wrap {
  flex: 1;
  min-width: 0;
}

.ps-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.ps-section.active .ps-label {
  color: var(--gold);
}

.ps-desc {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 1px;
  letter-spacing: 0.02em;
}

.ps-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.ps-section.active .ps-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Content area */
.ps-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-content.open {
  max-height: 800px;
  overflow: visible;
}

.ps-content-inner {
  padding: 4px 28px 24px;
}

/* Auto padding when .open */
.ps-content.open {
  padding: 4px 28px 24px;
}

/* ======================== FORM ELEMENTS ======================== */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.create-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
}

.create-input::placeholder {
  color: var(--text-tertiary);
  font-style: italic;
}

.create-input:focus {
  border-bottom-color: var(--gold);
}

input[type="date"].create-input,
input[type="time"].create-input {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color-scheme: dark;
}

[data-theme="light"] input[type="date"].create-input,
[data-theme="light"] input[type="time"].create-input {
  color-scheme: light;
}

.create-textarea {
  resize: vertical;
  min-height: 64px;
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 0;
}

/* ======================== FONT PICKER ======================== */

.font-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.font-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
}

.font-opt span:first-child {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1;
}

.fo-name {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.font-opt:hover {
  border-color: var(--gold-border);
}

.font-opt.active {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.font-opt.active .fo-name {
  color: var(--gold);
}

/* ======================== PALETTE PICKER ======================== */

.palette-picker {
  display: flex;
  gap: 16px;
}

.pal-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.pal-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pal-opt.active .pal-swatch {
  border-color: var(--text-primary);
  transform: scale(1.18);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.pal-name {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.pal-opt.active .pal-name {
  color: var(--text-primary);
}

/* ======================== ANIMATION + EVENT TYPE PICKERS ======================== */

.anim-picker,
.event-type-picker,
.dress-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anim-opt,
.et-opt,
.dp-opt {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.anim-opt:hover,
.et-opt:hover,
.dp-opt:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}

.anim-opt.active,
.et-opt.active,
.dp-opt.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ======================== PROGRAM EDITOR ======================== */

.program-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.pe-item {
  display: grid;
  grid-template-columns: 80px 1fr 32px;
  gap: 10px;
  align-items: end;
}

.pe-time {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--gold);
  outline: none;
  transition: border-color 0.3s ease;
  color-scheme: dark;
}

[data-theme="light"] .pe-time { color-scheme: light; }

.pe-time:focus { border-bottom-color: var(--gold); }

.pe-event {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 13px;
}

.pe-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-tertiary);
  transition: color 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.pe-remove svg { width: 14px; height: 14px; }

.pe-remove:hover {
  color: #E05555;
  background: rgba(224, 85, 85, 0.08);
}

.add-pe-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  padding: 8px 0;
  transition: opacity 0.3s ease;
}

.add-pe-btn svg { width: 16px; height: 16px; }
.add-pe-btn:hover { opacity: 0.75; }

/* ======================== MUSIC OPTIONS ======================== */

.music-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.music-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
  transition: all 0.25s ease;
  text-align: left;
}

.music-opt:hover {
  border-color: var(--gold-border);
}

.music-opt.active {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.mo-icon {
  font-size: 16px;
  color: var(--gold);
  opacity: 0.7;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.mo-info { flex: 1; min-width: 0; }

.mo-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mo-artist {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.mo-check {
  font-size: 12px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.25s ease;
  flex-shrink: 0;
}

.music-opt.active .mo-check { opacity: 1; }

.upload-music-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.upload-music-label svg { width: 16px; height: 16px; color: var(--gold); }

.upload-music-label:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}

/* ======================== RSVP TOGGLE ======================== */

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--gold);
}

.ts-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active .ts-thumb {
  transform: translateX(20px);
}

/* ======================== WIZARD NAVIGATION ======================== */

.wizard-nav {
  flex-shrink: 0;
  background: var(--bg-secondary);
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-step-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.wizard-back-btn,
.wizard-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wizard-back-btn svg,
.wizard-next-btn svg {
  width: 15px;
  height: 15px;
}

/* ======================== YAYINLA (PUBLISH) STEP ======================== */

.pub-publish-btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.pub-result-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-tertiary, rgba(198,167,125,0.06));
  border: 1px solid var(--border);
}

.pub-link-row {
  display: flex;
  gap: 8px;
}

.pub-link-row .create-input {
  flex: 1;
}

/* ======================== PANEL FOOTER ACTIONS ======================== */

.cp-actions {
  flex-shrink: 0;                    /* sticky kaldırıldı, her zaman altta */
  background: var(--bg-secondary);
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cp-save-btn {
  flex: 1;
  justify-content: center;
}

.cp-save-btn svg { width: 15px; height: 15px; }

.cp-order-btn {
  flex: 2;
  justify-content: center;
}

/* ======================== RIGHT PREVIEW PANEL ======================== */

/* ╔══════════════════════════════════════════════════════════════╗
   ║  PREMIUM SHOWCASE PREVIEW — Tema Duyarlı                    ║
   ║  Dark: Sinematik siyah / gold · Light: Krem / ivory         ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ── Ana preview alanı ── */
.create-preview {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  min-height: calc(100vh - 88px);

  background:
    radial-gradient(ellipse 100% 70% at 50% 40%,
      #1e1608 0%,
      #0f0c07 45%,
      #060508 100%
    );
}

/* ── LIGHT MODE: Referans görseldeki gibi açık beyaz/krem ── */
[data-theme="light"] .create-preview {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%,
      #ffffff 0%,
      #f8f7f5 45%,
      #f0eeea 100%
    );
}

.create-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 65% at 50% 45%,
      transparent 30%,
      rgba(0, 0, 0, 0.60) 100%
    );
  pointer-events: none;
  z-index: 0;
  transition: background 0.40s ease;
}

/* Light modda vignette çok hafif — açık arka plan bozulmasın */
[data-theme="light"] .create-preview::after {
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%,
      transparent 40%,
      rgba(0, 0, 0, 0.06) 100%
    );
}

.create-preview::before {
  content: '';
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(198, 167, 125, 0.16) 0%,
    rgba(198, 167, 125, 0.06) 42%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  transition: background 0.40s ease;
}

/* Light modda ambient: çok silik, beyaz arka plana uyumlu */
[data-theme="light"] .create-preview::before {
  background: radial-gradient(ellipse,
    rgba(200, 190, 175, 0.20) 0%,
    rgba(200, 190, 175, 0.06) 45%,
    transparent 70%
  );
}

/* ── Preview sticky: ortalanmış, GPU katman ── */
.preview-sticky {
  position: sticky;
  top: calc(88px + 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
}

/* Stage refleksiyon */
.preview-sticky::after {
  content: '';
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 55px;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
  transition: background 0.40s ease;
  background: radial-gradient(ellipse,
    rgba(198, 167, 125, 0.18) 0%,
    transparent 70%
  );
}
[data-theme="light"] .preview-sticky::after {
  background: radial-gradient(ellipse,
    rgba(160, 130, 90, 0.22) 0%,
    transparent 70%
  );
}

/* Preview label */
.preview-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: color 0.30s ease;
  color: rgba(198, 167, 125, 0.50);
}
[data-theme="light"] .preview-label {
  color: rgba(120, 90, 50, 0.55);
}

/* ══════════════════════════════════════════════════════════════
   YENİ CSS TELEFON MOCKUPU — Transform/Scale/Zoom YOK
   iframe = phone-screen ile birebir aynı ölçü
   Sağda/altta siyah alan: imkânsız (ölçü farkı yok)
   ══════════════════════════════════════════════════════════════ */

/* ─── Floating animation ─── */
@keyframes phoneFloat {
  0%,  100% { transform: translateY(0); }
  50%        { transform: translateY(-8px); }
}

/* ─── Zarif ince telefon konturu ─── */
.phone-preview {
  position: relative;
  width: 340px;
  height: 720px;
  flex-shrink: 0;

  border-radius: 46px;

  /* Dark mode: çok ince fildişi/şampanya çerçeve */
  border: 1.5px solid rgba(244, 231, 202, 0.55);

  /* Gövde yok — sadece davetiye + ince kontur */
  background: transparent;

  /* Yumuşak dış gölge — derinlik için, sert bant değil */
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.50),
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.05);

  animation: phoneFloat 5s ease-in-out infinite;
  will-change: transform;
}

/* Light mode: ince grafit/siyah çerçeve */
[data-theme="light"] .phone-preview {
  border: 1.5px solid rgba(24, 24, 20, 0.45);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.14),
    0  8px 20px rgba(0, 0, 0, 0.09),
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

/* ::before kaldırıldı — ek yansıma katmanı gerekmez */
.phone-preview::before { display: none; }

/* ─── Ekran: çerçeveyi tam doldurur ─── */
.phone-preview .phone-screen {
  position: absolute;
  inset: 0;
  border-radius: inherit;   /* phone-preview ile aynı köşe */
  overflow: hidden;          /* scrollbar yer kaplamaz, taşma yok */
  background: transparent;   /* siyah gövde rengi yok */
  z-index: 1;
}

/* ─── iframe: scale/transform YOK ─── */
.phone-preview .tpl-iframe {
  display: block !important;
  width:   100% !important;
  height:  100% !important;
  border:  none !important;
  transform: none !important;
  background: transparent !important;
  /* pointer-events: auto — JS wheel handler phone wrapper'dan scroll eder */
}

/* ─── İsteğe bağlı: çok ince yan tuş çizgileri ─── */
.pp-btn-vol {
  position: absolute;
  left: -1px;
  top: 175px;
  width: 1.5px;
  height: 80px;
  border-radius: 1px;
  /* Dark: açık / Light: koyu — çerçeveyle uyumlu */
  background: rgba(244, 231, 202, 0.40);
}
[data-theme="light"] .pp-btn-vol {
  background: rgba(24, 24, 20, 0.30);
}
.pp-btn-pwr {
  position: absolute;
  right: -1px;
  top: 215px;
  width: 1.5px;
  height: 50px;
  border-radius: 1px;
  background: rgba(244, 231, 202, 0.40);
}
[data-theme="light"] .pp-btn-pwr {
  background: rgba(24, 24, 20, 0.30);
}

/* ─── Geçiş animasyonları ─── */
.create-preview,
.create-preview::before,
.create-preview::after,
.preview-sticky::after,
.preview-label {
  transition:
    background 0.40s ease,
    color 0.30s ease;
}

/* ─── Default phone screen (mini invitation, static HTML mode) ─── */
.phone-screen {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar { display: none; }

/* ======================== MINI INVITATION ======================== */

.mini-inv {
  width: 100%;
  min-height: 100%;
  background: #080604;
  font-family: var(--mi-font, 'Playfair Display', serif);
  --mi-gold: #C6A77D;
  --mi-text: #F0E8D8;
  --mi-dim: rgba(240, 232, 216, 0.55);
  --mi-bg: #080604;
  --mi-bg-alt: #0E0C09;
  --mi-border: rgba(198, 167, 125, 0.14);
}

[data-theme="light"] .mini-inv {
  background: #F5EFE6;
  --mi-text: #1A1208;
  --mi-dim: rgba(26, 18, 8, 0.55);
  --mi-bg: #F5EFE6;
  --mi-bg-alt: #EDE5D6;
  --mi-border: rgba(184, 144, 106, 0.2);
}

/* Status bar */
.mi-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--mi-text);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--mi-bg);
}

.mi-status-icons { display: flex; align-items: center; gap: 4px; color: var(--mi-text); }

/* Each section */
.mi-sec {
  min-height: 360px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--mi-border);
  background: var(--mi-bg);
  position: relative;
}

.mi-sec:nth-child(even) {
  background: var(--mi-bg-alt);
}

.mi-sec--names {
  min-height: 400px;
}

.mi-sec--close {
  min-height: 280px;
}

/* Opener */
.mi-opener-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mi-vs-mark {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  color: var(--mi-gold);
  letter-spacing: -0.5px;
}

.mi-rule {
  width: 80px;
  height: 1px;
  background: var(--mi-gold);
  opacity: 0.25;
}

.mi-rule--sm { width: 50px; }

.mi-std-label {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mi-gold);
}

.mi-big-date {
  font-family: var(--mi-font, 'Playfair Display', serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--mi-text);
  letter-spacing: -0.01em;
}

.mi-couple-sm {
  font-family: var(--mi-font, 'Playfair Display', serif);
  font-style: italic;
  font-size: 13px;
  color: var(--mi-dim);
}

/* Names section */
.mi-names-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mi-event-tag {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mi-dim);
  margin-bottom: 14px;
}

.mi-name {
  font-family: var(--mi-font, 'Playfair Display', serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--mi-text);
}

.mi-amp {
  font-family: var(--mi-font, 'Playfair Display', serif);
  font-style: italic;
  font-size: 16px;
  color: var(--mi-gold);
  margin: 6px 0;
  display: block;
}

.mi-venue-short {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mi-dim);
  margin-top: 14px;
}

/* Section label */
.mi-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mi-gold);
  margin-bottom: 16px;
  align-self: flex-start;
}

/* Details */
.mi-detail-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mi-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mi-border);
}

.mi-dl {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mi-dim);
  flex-shrink: 0;
}

.mi-dv {
  font-family: var(--mi-font, 'Playfair Display', serif);
  font-style: italic;
  font-size: 12px;
  color: var(--mi-text);
  text-align: right;
}

/* Timeline */
.mi-timeline {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mi-tl-item {
  display: grid;
  grid-template-columns: 40px 10px 1fr;
  gap: 8px;
  align-items: center;
}

.mi-tl-t {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--mi-gold);
  font-weight: 400;
}

.mi-tl-d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mi-gold);
  opacity: 0.6;
  justify-self: center;
}

.mi-tl-e {
  font-family: var(--mi-font, 'Playfair Display', serif);
  font-style: italic;
  font-size: 11px;
  color: var(--mi-text);
  text-align: left;
}

/* Music */
.mi-music-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mi-bg-alt);
  border: 1px solid var(--mi-border);
  border-radius: 20px;
  padding: 8px 14px;
}

.mi-music-ico {
  font-size: 14px;
  color: var(--mi-gold);
}

.mi-music-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--mi-text);
}

/* RSVP */
.mi-rsvp-btn {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mi-gold);
  border: 1px solid rgba(198, 167, 125, 0.35);
  border-radius: 20px;
  padding: 8px 20px;
  margin-bottom: 10px;
  cursor: default;
}

.mi-rsvp-deadline {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: var(--mi-dim);
  letter-spacing: 0.04em;
}

/* Dress code */
.mi-dress-title {
  font-family: var(--mi-font, 'Playfair Display', serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--mi-text);
  margin-bottom: 8px;
}

.mi-dress-note {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  line-height: 1.7;
  color: var(--mi-dim);
}

/* Closing */
.mi-close-msg {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mi-dim);
  margin-bottom: 10px;
}

.mi-close-names {
  font-family: var(--mi-font, 'Playfair Display', serif);
  font-style: italic;
  font-size: 22px;
  color: var(--mi-text);
  margin-bottom: 12px;
}

.mi-vs-credit {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mi-gold);
  opacity: 0.5;
  margin-top: 10px;
}

/* Mini countdown */
.mi-sec--cd { min-height: 220px; }

.mi-cd {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin: 10px 0 8px;
}

.mi-cdu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mi-cdn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 42px;
  font-family: var(--mi-font, 'Playfair Display', serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--mi-text);
  background: var(--mi-bg-alt);
  border: 1px solid var(--mi-border);
  border-radius: 7px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.mi-cdn.ticking {
  transform: translateY(-2px) scale(0.92);
  opacity: 0.5;
}

.mi-cdl {
  font-family: 'Inter', sans-serif;
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mi-gold);
  opacity: 0.7;
}

.mi-cdc {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--mi-gold);
  opacity: 0.4;
  margin-bottom: 14px;
  line-height: 1;
}

/* Highlight pulse — when section is scrolled to */
.mi-sec.highlight {
  animation: miHighlight 1.2s ease;
}

@keyframes miHighlight {
  0%   { background: var(--mi-bg); }
  30%  { background: rgba(198, 167, 125, 0.06); }
  100% { background: var(--mi-bg); }
}

/* ======================== PREVIEW ACTIONS ======================== */

.preview-actions {
  display: flex;
  gap: 10px;
}

.preview-demo-btn {
  font-size: 11px;
}

/* ======================== WATERMARK OVERLAY ======================== */

/*
   Subtle repeating VISORA watermark on the preview phone.
   Purpose: deter design screenshots / theft.
   Elegant, non-intrusive, premium.
*/
/*
   Subtle repeating VISORA watermark on the preview phone.
   Purpose: deter design screenshots / theft.
   Elegant, non-intrusive, premium.
*/
.preview-watermark {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Ctext x='8' y='52' fill='rgba(198%2C167%2C125%2C0.09)' font-family='Georgia%2C serif' font-style='italic' font-size='11' letter-spacing='3' transform='rotate(-35 45 45)'%3EVISORA%3C%2Ftext%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.9;
}

/* ======================== TEMPLATE IFRAME PHONE ======================== */

/* The iframe phone screen allows internal scroll */
.tpl-phone-screen {
  overflow: hidden !important;
  position: relative;
}

/* The iframe fills the phone screen and scales mobile content down */
.tpl-iframe {
  width: 390px;
  height: 849px;
  border: none;
  transform: scale(0.585);
  transform-origin: top left;
  display: block;
  background: #fff;
}

/* Loading spinner shown while iframe loads */
.tpl-iframe-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-card);
  z-index: 2;
}

.tpl-iframe-loading p {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.tpl-loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spinnerRot 0.8s linear infinite;
}

@keyframes spinnerRot {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ======================== SEGMENT TABS ======================== */

.seg-tabs {
  padding: 18px 28px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}

.seg-tabs-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.seg-tab-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.seg-tab-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.seg-tab-btn:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}

.seg-tab-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* Segment indicator on panel heading */
.seg-active-indicator {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ======================== TIMELINE EDITOR ======================== */

.tl-editor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.tl-editor-row {
  display: grid;
  grid-template-columns: 72px 1fr 24px 32px;
  gap: 8px;
  align-items: center;
}

/* Icon selector */
.tl-icon-wrap {
  position: relative;
}

.tl-icon-btn {
  width: 36px;
  height: 36px;
  font-size: 18px;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease;
  background: transparent;
}

.tl-icon-btn:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
}

/* Icon popup grid */
.tl-icon-popup {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(5, 32px);
  gap: 4px;
  box-shadow: var(--shadow);
  margin-top: 4px;
}

.tl-icon-popup.hidden {
  display: none;
}

.tl-icon-opt {
  width: 32px;
  height: 32px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tl-icon-opt:hover {
  background: var(--gold-dim);
}

/* Sort buttons */
.tl-sort-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 24px;
}

.tl-move-btn {
  width: 24px;
  height: 17px;
  border: 1px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: color 0.25s ease, border-color 0.25s ease;
  background: transparent;
}

.tl-move-btn:hover {
  color: var(--gold);
  border-color: var(--gold-border);
}

/* ======================== FONT GROUP LABEL ======================== */

.font-group-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  display: block;
}

/* ======================== GALLERY UPLOAD GRID ======================== */

.gal-upload-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.gal-slot {
  aspect-ratio: 1;
  border: 1px dashed var(--border);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease;
  position: relative;
}

.gal-slot:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
}

.gal-slot-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.gal-slot-plus {
  font-size: 20px;
  color: var(--text-tertiary);
  line-height: 1;
  transition: color 0.25s ease;
}

.gal-slot:hover .gal-slot-plus {
  color: var(--gold);
}

/* ======================== RESPONSIVE ======================== */

@media (max-width: 1280px) {
  /* Yeni sistem: sadece phone-preview boyutu, scale yok */
  .phone-preview { width: 310px; height: 660px; }
}

@media (max-width: 1100px) {
  .create-layout { grid-template-columns: minmax(340px, 42%) 1fr; }
  .phone-preview { width: 290px; height: 618px; }
}

/* ============================================================
   YENİ BİLEŞEN STİLLERİ — Hazır Metin, Tarih Seçici, Saat, Galeri, Badge
   ============================================================ */

/* ── Admin badge (Özel Seri) ── */
.cp-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  vertical-align: middle;
  background: var(--gold-dim);
}

/* ── Hazır davet metni dropdown ── */
.vs-preset-wrap {
  margin-bottom: 8px;
}

.vs-preset-select {
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C6A77D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color 0.25s;
}
.vs-preset-select:focus {
  outline: none;
  border-color: var(--gold);
}
.vs-preset-select option {
  background: #1a1a1a;
  color: #e0d5c0;
}

.vs-invite-text {
  min-height: 76px;
  line-height: 1.65;
}

/* ── Premium tarih seçici ── */
.vs-datepicker {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vs-dp-sel {
  flex: 1;
  padding: 7px 8px;          /* kompakt */
  border-radius: 7px;
  border: 1px solid var(--border-primary);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;            /* küçük */
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23C6A77D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 20px;
  transition: border-color 0.22s;
}
.vs-dp-sel:focus { outline: none; border-color: var(--gold); }
.vs-dp-sel option { background: #1a1a1a; color: #e0d5c0; }
.vs-dp-day  { flex: 0 0 52px; }
.vs-dp-mon  { flex: 2; }
.vs-dp-year { flex: 0 0 68px; }

/* ── Premium saat seçici ── */
.vs-timepicker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vs-tp-sel {
  flex: 1;
  padding: 7px 6px;          /* kompakt */
  border-radius: 7px;
  border: 1px solid var(--border-primary);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;            /* normal boyut */
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.22s;
}
.vs-tp-sel:focus { outline: none; border-color: var(--gold); }
.vs-tp-sel option { background: #1a1a1a; color: #e0d5c0; font-family: inherit; }

.vs-tp-colon {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  flex: 0 0 auto;
  line-height: 1;
  opacity: 0.80;
}

/* Tarih+saat birleşik alan için inline saat seçici */
.vs-tp-inline {
  margin-top: 8px;
}

/* ── Galeri demo badge ve hint ── */
.gal-demo-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(198, 167, 125, 0.85);
  color: #0d0d0d;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 2px 5px;
  border-radius: 4px;
}

.gal-replace-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  color: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 9px;
  transition: background 0.25s, color 0.25s;
}
.gal-slot:hover .gal-replace-hint {
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.90);
}
.gal-slot-preview { position: relative; }

.gal-note {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
}

/* ── Dinamik galeri: fotoğraf ekle butonu ── */
.gal-slot--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px dashed var(--border-primary);
  border-radius: 10px;
  aspect-ratio: 1;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.4;
  transition: border-color 0.22s, color 0.22s, background 0.22s;
  overflow: hidden;
}
.gal-slot--add svg {
  width: 18px; height: 18px;
  opacity: 0.55;
  transition: opacity 0.22s;
}
.gal-slot--add:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--gold-dim);
}
.gal-slot--add:hover svg { opacity: 0.9; }

/* ── Dinamik galeri: yüklenen fotoğraf slotu ── */
.gal-slot--filled {
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  aspect-ratio: 1;
  overflow: visible;
  position: relative;
  cursor: default;
}
.gal-slot--filled img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

/* ── Sil butonu ── */
.gal-slot-del {
  position: absolute;
  top: -7px; right: -7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-primary);
  background: var(--bg-card, #1a1208);
  color: var(--gold, #c8a96e);
  font-size: 10px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s, background 0.18s, color 0.18s;
  z-index: 10;
}
.gal-slot--filled:hover .gal-slot-del { opacity: 1; }
.gal-slot-del:hover {
  background: #b43232;
  border-color: #b43232;
  color: #fff;
}

/* ── Watermark güçlendirme ── */
.preview-watermark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Ctext x='5' y='62' fill='rgba(198%2C167%2C125%2C0.11)' font-family='Georgia%2Cserif' font-style='italic' font-size='13' letter-spacing='3' transform='rotate(-30 55 55)'%3EVISORA%3C%2Ftext%3E%3C/svg%3E") !important;
}

/* ── Global güvenlik: invitation preview'da metin seçimi engeli ── */
.tpl-phone-screen iframe,
.preview-watermark,
.phone-mock {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ── Mobil responsive yeni bileşenler ── */
@media (max-width: 768px) {
  .vs-datepicker { flex-wrap: wrap; }
  .vs-dp-day, .vs-dp-mon, .vs-dp-year { min-width: 80px; }
  .vs-timepicker { justify-content: center; }
  .vs-tp-sel { font-size: 16px; }
}

/* ============================================================
   FİYATLANDIRMA SİSTEMİ — Live Price Box + Extras
   ============================================================ */

/* ── Canlı fiyat kutusu (panel üstü) ── */
.live-price-box {
  margin: 0 20px 16px;
  border: 1px solid rgba(198, 167, 125, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg,
    rgba(198, 167, 125, 0.06) 0%,
    rgba(20, 20, 20, 0.30) 100%
  );
  overflow: hidden;
}

.lpb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.lpb-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.lpb-tier {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.lpb-note {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.lpb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.lpb-from {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.lpb-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ── Ekstra özellik kartları ── */
.vs-extra-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  background: var(--bg-input);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  user-select: none;
}

.vs-extra-card:hover {
  border-color: var(--gold-border);
  background: rgba(198, 167, 125, 0.05);
}

.vs-extra-card.active {
  border-color: var(--gold);
  background: rgba(198, 167, 125, 0.08);
}

.vs-extra-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  flex-shrink: 0;
  color: var(--gold);
}
.vs-extra-icon svg { width: 18px; height: 18px; }

.vs-extra-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vs-extra-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.vs-extra-desc {
  font-size: 10px;
  color: var(--text-tertiary);
  line-height: 1.45;
}

.vs-extra-price-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.vs-extra-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* Toggle switch */
.vs-extra-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.vs-extra-toggle.on {
  background: rgba(198, 167, 125, 0.25);
  border-color: var(--gold);
}
.vs-toggle-knob {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border-secondary);
  top: 2px;
  left: 2px;
  transition: transform 0.25s, background 0.25s;
}
.vs-extra-toggle.on .vs-toggle-knob {
  transform: translateX(16px);
  background: var(--gold);
}

/* ============================================================
   SİNEMATİK INTRO SELECTOR
   5 premium intro kartı + animasyonlu küçük önizleme
   ============================================================ */

/* Intro seçici panel */
.vi-selector-panel {
  margin: 4px 0 12px;
  animation: vsSlideDown 0.30s ease;
}
@keyframes vsSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vi-sel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.vi-sel-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin-bottom: 14px;
}

/* Grid: 2 kartlı, responsive */
.vi-sel-grid {
  display: grid;
  /* 3 kolon — masaüstünde yan yana, mobilde 2 */
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Intro card — kompakt, premium */
.vi-sel-card {
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary);
  transition:
    border-color 0.22s,
    box-shadow 0.22s,
    transform 0.20s;
}
.vi-sel-card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 4px 16px rgba(201,168,76,0.16);
  transform: translateY(-1px);
}
.vi-sel-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1.5px var(--gold), 0 4px 16px rgba(201,168,76,0.20);
}

/* Thumbnail: 16:9 oran, kompakt */
.vi-sel-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: #080604;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vi-sel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.vi-sel-active-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.10em;
  padding: 3px 7px;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.22s, transform 0.22s;
}
.vi-sel-card.active .vi-sel-active-badge {
  opacity: 1;
  transform: scale(1);
}

/* Info row — 3 kolonlu grid için kompakt */
.vi-sel-info {
  padding: 6px 8px;
}
.vi-sel-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vi-sel-desc {
  font-size: 9px;
  color: var(--text-tertiary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;   /* 3 kolonda 1 satır yeter */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobil: 2 kolon */
@media (max-width: 480px) {
  .vi-sel-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────────
   THUMBNAIL ANIMATIONS — CSS-only cinematic hints
───────────────────────────────────────────────── */

/* 1. Royal Seal */
.vi-thumb-seal {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vi-seal-ring {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.35);
  animation: sealPulse 2.4s ease-in-out infinite;
}
.vi-thumb-seal svg {
  width: 40px;
  height: 40px;
  animation: sealFloat 2.4s ease-in-out infinite;
}
@keyframes sealPulse {
  0%,100% { transform: scale(1);    opacity: 0.35; }
  50%      { transform: scale(1.12); opacity: 0.60; }
}
@keyframes sealFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* 2. Ivory Gates */
.vi-thumb-gates { position: relative; width: 100%; height: 100%; overflow: hidden; }
.vi-gate {
  position: absolute;
  top: 0; bottom: 0;
  width: 52%;
  background: linear-gradient(180deg, rgba(245,237,220,0.12) 0%, rgba(245,237,220,0.04) 100%);
  border: 1px solid rgba(201,168,76,0.22);
}
.vi-gate--l { left: 0; border-right: none;
  animation: gateSwayL 3s ease-in-out infinite; }
.vi-gate--r { right: 0; border-left: none;
  animation: gateSwayR 3s ease-in-out infinite; }
.vi-gate-light {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.45) 0%, transparent 70%);
  animation: gateGlow 3s ease-in-out infinite;
}
@keyframes gateSwayL {
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(-4px); }
}
@keyframes gateSwayR {
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(4px); }
}
@keyframes gateGlow {
  0%,100% { opacity: 0.45; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: 0.80; transform: translate(-50%,-50%) scale(1.4); }
}

/* 3. Golden Venue */
.vi-thumb-venue { position: relative; width: 100%; height: 100%; }
.vi-venue-glow {
  position: absolute;
  bottom: 20%; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.50) 0%, transparent 70%);
  animation: venueGlow 2.8s ease-in-out infinite;
}
.vi-venue-lights {
  position: absolute;
  bottom: 38%; left: 50%; transform: translateX(-50%);
  width: 60px; height: 8px;
}
.vi-venue-lights::before, .vi-venue-lights::after {
  content: '';
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(201,168,76,0.75);
  animation: venueLightBlink 1.8s ease-in-out infinite;
}
.vi-venue-lights::before { left: 10px; animation-delay: 0s; }
.vi-venue-lights::after  { right: 10px; animation-delay: 0.9s; }
@keyframes venueGlow {
  0%,100% { opacity: 0.50; width: 40px; }
  50%     { opacity: 0.85; width: 56px; }
}
@keyframes venueLightBlink {
  0%,100% { opacity: 0.40; }
  50%     { opacity: 1.00; }
}

/* 4. Golden Vow */
.vi-thumb-vow { position: relative; width: 100%; height: 100%; overflow: hidden; }
.vi-vow-silhouette {
  position: absolute;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 44px;
  background: rgba(201,168,76,0.22);
  border-radius: 14px 14px 6px 6px;
  animation: vowSway 3.5s ease-in-out infinite;
}
.vi-vow-particles {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(201,168,76,0.18) 0%, transparent 60%);
  animation: vowParticles 3.5s ease-in-out infinite;
}
@keyframes vowSway {
  0%,100% { transform: translateX(-50%) scale(1); }
  50%     { transform: translateX(-52%) scale(1.02); }
}
@keyframes vowParticles {
  0%,100% { opacity: 0.40; }
  50%     { opacity: 0.75; }
}

/* 5. The Ballroom */
.vi-thumb-ball { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.vi-ball-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.55) 0%, transparent 70%);
  animation: ballGlow 2.2s ease-in-out infinite;
}
.vi-ball-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.30);
  animation: ballRing 3s linear infinite;
}
.vi-ball-ring--1 { width: 44px; height: 44px; animation-delay: 0s; }
.vi-ball-ring--2 { width: 62px; height: 62px; animation-delay: 0.8s; }
@keyframes ballGlow {
  0%,100% { transform: scale(1);    opacity: 0.55; }
  50%     { transform: scale(1.20); opacity: 0.90; }
}
@keyframes ballRing {
  from { transform: rotate(0deg)   scale(1);    opacity: 0.30; }
  50%  { opacity: 0.60; }
  to   { transform: rotate(360deg) scale(1.08); opacity: 0.30; }
}

/* ── Intro metin paneli + konum & font kontrolleri ── */
.vi-text-panel {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: vsSlideDown 0.28s ease;
}
.vi-text-panel-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.vi-text-optional {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.vi-text-panel-hint {
  font-size: 10px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.vi-text-input {
  /* inherit create-input styles */
  font-style: italic;
}
.vi-text-input::placeholder {
  font-style: italic;
  opacity: 0.55;
}

/* Yazı boyutu slider */
.vi-size-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vi-size-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 3px;
  border-radius: 2px;
  background: var(--border-primary);
  outline: none;
  cursor: pointer;
}
.vi-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.30);
}
.vi-size-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--bg-secondary);
}
.vi-size-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  min-width: 30px;
  text-align: right;
}

/* Yazı rengi swatchlar */
.vi-color-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.vi-color-swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-primary);
  cursor: pointer;
  transition: border-color 0.22s, transform 0.18s;
  flex-shrink: 0;
}
.vi-color-swatch:hover { transform: scale(1.15); }
.vi-color-swatch.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-dim);
}
/* Renk paleti butonu — rainbow + artı işareti */
.vi-color-custom-wrap {
  position: relative;
  width: 22px; height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.vi-color-custom {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid var(--border-primary);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: 0; /* Görünmez — wrapper'ın arkasında */
  z-index: 2;
}
/* Rainbow görünüm — kullanıcı bunun üzerine tıklar */
.vi-color-custom-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    red, yellow, lime, cyan, blue, magenta, red
  );
  border: 2px solid var(--border-primary);
  z-index: 1;
  transition: border-color 0.22s;
}
/* Artı işareti */
.vi-color-custom-wrap::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  text-shadow: 0 1px 3px rgba(0,0,0,0.60);
  z-index: 3;
  line-height: 1;
  pointer-events: none; /* tıklamayı input'a geçir */
}
.vi-color-custom-wrap:hover::before { border-color: var(--gold); }

/* Kontrol satırı (font / konum) */
.vi-ctrl-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.vi-ctrl-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Font seçici — mevcut vs-preset-select kullanır */
.vi-font-sel option {
  font-size: 13px;
}

/* 2 Eksen konum — yatay + dikey satırlar */
.vi-axis-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.vi-axis-lbl {
  font-size: 9px;
  color: var(--text-tertiary);
  min-width: 36px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}
.vi-axis-btn {
  flex: 1;
  padding: 5px 6px;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.20s, color 0.20s, background 0.20s;
}
.vi-axis-btn:hover { border-color: var(--gold-border); color: var(--gold); }
.vi-axis-btn.active {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}
.vi-pos-note {
  font-size: 10px;
  color: var(--gold);
  opacity: 0.75;
  font-style: italic;
  margin-top: 2px;
}

/* ── Video thumbnail in intro selector ── */
.vi-sel-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* contain → videonun tamamı görünür, kesilmez */
  object-fit: contain;
  background: #080604;
  display: block;
  will-change: transform;
  transform: translateZ(0);
}
.vi-video-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(4px);
  color: rgba(201,168,76,0.90);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 10px;
  border: 1px solid rgba(201,168,76,0.28);
  z-index: 5;
  pointer-events: none;
}

/* ── Sipariş Ver butonu ── */
.vs-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 0;
  margin-top: 16px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.28s, color 0.28s, transform 0.20s;
}
.vs-order-btn:hover {
  background: var(--gold);
  color: #0a0a0a;
  transform: translateY(-1px);
}
.vs-order-btn svg { transition: transform 0.25s; }
.vs-order-btn:hover svg { transform: translateX(4px); }

@media (max-width: 960px) {
  /* Mobile/tablet: Preview ABOVE, Panel BELOW */
  .create-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding-top: 72px;
  }
  .create-preview {
    order: -1;
    padding: 40px 20px 32px;
    min-height: 480px;
    align-items: flex-start;
    background: radial-gradient(ellipse 100% 100% at 50% 0%,
      #1e1608 0%, #06050a 100%
    );
  }
  [data-theme="light"] .create-preview {
    background: linear-gradient(180deg, #f5ede0 0%, #ede0cc 100%);
  }
  .create-preview::after  { display: none; }
  .create-preview::before { display: none; }
  .create-panel {
    height: auto;
    position: static;
    overflow: visible;
  }
  .cp-body {
    overflow-y: visible;
  }
  .preview-sticky {
    position: static;
    top: unset;
    gap: 14px;
  }
  .preview-sticky::after { display: none; }   /* no floor reflection */

  /* Mobil: animasyon kapalı, küçük */
  .phone-preview { width: 270px; height: 572px; animation: none; }
}

@media (max-width: 768px) {
  .cp-header  { padding: 24px 20px 16px; }
  .ps-toggle  { padding: 16px 20px; }
  .ps-content.open { padding: 4px 20px 20px; }
  .cp-actions { padding: 20px; }

  .phone-preview { width: 240px; height: 510px; }
}

@media (min-width: 1440px) {
  .phone-preview { width: 370px; height: 786px; }
}
