/* style.css — Sistem Desain Global Terpadu Platform Undangan Digital
   Konsep: Editorial Studio & Modern Vibrant (Mobile-First, Kohesif untuk Publik, Pelanggan & Admin) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --primary: #465945;
  --primary-hover: #344333;
  --primary-soft: #EDF2EC;
  --primary-border: #C5D3C2;
  --accent: #9C7D52;
  --accent-soft: #F6F1E8;
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-alt: #F4EFEA;
  --text: #1C1B19;
  --text-muted: #6E6A63;
  --border: #E6E1D8;
  --danger: #C83E3B;
  --danger-soft: #FDECEC;
  --success: #286646;
  --success-soft: #E6F4EC;
  --warning: #B4690E;
  --warning-soft: #FEF5E7;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(28, 27, 25, 0.04);
  --shadow-md: 0 10px 28px -6px rgba(28, 27, 25, 0.07);
  --shadow-lg: 0 20px 40px -10px rgba(28, 27, 25, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Container & Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.container-narrow {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 16px;
}

/* Header Standar (Template Undangan tetap putih, Halaman Aplikasi bergaya Studio Editorial) */
header {
  background: linear-gradient(135deg, #2d3b2c 0%, #465945 100%);
  color: #fff;
  padding: 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

header p {
  margin: 6px 0 0;
  opacity: 0.9;
  font-size: 0.93rem;
}

body:not([class*="tpl-"]) > header:not(.editor-topbar) {
  background: linear-gradient(180deg, #F4EFEA 0%, #FAF8F5 100%);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 26px 16px;
}

body:not([class*="tpl-"]) > header:not(.editor-topbar) h1 {
  color: var(--text);
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  font-weight: 700;
}

body:not([class*="tpl-"]) > header:not(.editor-topbar) p {
  color: var(--text-muted);
  opacity: 1;
}

/* Navigasi Topbar Global & Dashboard (Unified Studio Style) */
.site-navbar,
.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.site-navbar-inner,
.dashboard-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-brand,
.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-brand:hover,
.dashboard-brand:hover {
  color: var(--primary);
}

.site-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: var(--font-serif);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.site-brand small,
.dashboard-brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}

.site-nav-links,
.dashboard-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav-links a:not(.btn),
.dashboard-links a:not(.btn) {
  font-size: 0.86rem;
  font-weight: 600;
  color: #3C3935;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.site-nav-links a:not(.btn):hover,
.site-nav-links a:not(.btn).active,
.dashboard-links a:not(.btn):hover,
.dashboard-links a:not(.btn).active {
  color: var(--primary);
  background: var(--primary-soft);
}

/* Kartu & Panel */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-header > * {
  min-width: 0;
}

.card-header h2, .card-header h3 {
  margin: 0;
}

/* Kotak URL Publik (Rapi & Tidak Melebar Keluar Kartu) */
.public-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 10px 0;
  max-width: 100%;
  box-sizing: border-box;
}

.public-link-url {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.public-link-icon {
  flex-shrink: 0;
}

.public-link-url a {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: underline;
}

.public-link-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-wa-share {
  background: #25D366 !important;
  color: #ffffff !important;
  border-color: #25D366 !important;
  font-weight: 700;
}

.btn-wa-share:hover {
  background: #1EBE5D !important;
  color: #ffffff !important;
}

.order-card-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.order-actions-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

/* Grid Responsif */
.grid {
  display: grid;
  gap: 16px;
}

.grid > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Statistik / Metric Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0;
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card .stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 6px;
  line-height: 1.2;
}

.stat-card .stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Form Elements */
label {
  display: block;
  margin: 12px 0 5px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #292524;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="search"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #d6d3d1;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.14);
}

input[type="color"] {
  width: 64px;
  height: 40px;
  padding: 3px;
  border: 1px solid #d6d3d1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.form-section-title {
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-soft);
  font-size: 1.1rem;
  color: #042f2e;
}

.form-help {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.3;
}

button:hover, .btn:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.2);
}

.btn-secondary {
  background: #57534e;
  color: #fff;
}

.btn-secondary:hover {
  background: #44403c;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.84rem;
  border-radius: 6px;
}

.btn[disabled], button[disabled] {
  background: #a8a29e;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Alerts & Notifications */
.alert {
  background: var(--warning-soft);
  border: 1px solid #f59e0b;
  color: #78350f;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 14px 0;
}

.error {
  background: var(--danger-soft);
  border: 1px solid #ef4444;
  color: #991b1b;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 14px 0;
}

.success {
  background: var(--success-soft);
  border: 1px solid #22c55e;
  color: #14532d;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 14px 0;
}

.small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.badge-primary {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.badge-neutral {
  background: #f5f5f4;
  color: #44403c;
  border: 1px solid #d6d3d1;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  background: var(--surface-alt);
  font-weight: 700;
  color: #44403c;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:hover td {
  background: rgba(250, 249, 246, 0.7);
}

/* Navigasi Responsif Mobile (Horizontal Swipe untuk Link Navbar) */
@media (max-width: 768px) {
  .site-navbar-inner,
  .dashboard-nav-inner {
    padding: 10px 14px;
    gap: 8px;
  }
  .site-nav-links,
  .dashboard-links {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .site-nav-links::-webkit-scrollbar,
  .dashboard-links::-webkit-scrollbar {
    display: none;
  }
}

/* Tabs */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.tab-btn {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.empty-state h3 {
  margin: 8px 0 6px;
  font-size: 1.15rem;
}

/* Galeri & QR */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f5f5f4;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.gallery-item img:hover {
  transform: scale(1.04);
}

.qr-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-backdrop img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 48px 16px 28px;
  margin-top: 56px;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .site-footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #a8a29e;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer-bottom {
  max-width: 1180px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid #292524;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #78716c;
}

@media (max-width: 640px) {
  .card {
    padding: 16px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card .stat-value {
    font-size: 1.4rem;
  }
  th, td {
    padding: 8px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   FASE 1: SMARTPHONE MOCKUP FRAME UNTUK PRATINJAU & UNDANGAN DI DESKTOP
   ========================================================================== */

/* Sembunyikan ornamen mockup pada layar HP asli atau di dalam iframe editor */
.phone-mockup-statusbar,
.phone-mockup-homebar,
.desktop-mockup-card {
  display: none;
}

.phone-mockup-viewport {
  display: contents;
}

body.is-iframe-embed .container {
  padding: 14px 14px 28px;
}

body.is-iframe-embed header {
  padding: 18px 14px;
}

@media (min-width: 768px) {
  html.desktop-mockup-html {
    background: radial-gradient(circle at 20% 15%, #1e293b 0%, #0f172a 60%, #090d16 100%);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  body.has-phone-mockup {
    width: 390px;
    max-width: 100%;
    height: min(740px, calc(100vh - 32px));
    margin: 0 auto;
    border-radius: 42px;
    border: 10px solid #1e293b;
    box-shadow:
      0 0 0 2px #334155,
      0 28px 70px -12px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .phone-mockup-viewport {
    display: block;
    flex: 1;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
  }

  body.has-phone-mockup .phone-mockup-viewport > main.container {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px 24px;
  }

  body.has-phone-mockup .phone-mockup-viewport > header .container {
    max-width: 100%;
    padding: 4px 12px;
  }

  /* Status Bar & Notch di bagian atas layar HP */
  .phone-mockup-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 8px;
    background: #0f172a;
    color: #f8fafc;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    user-select: none;
    flex-shrink: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .phone-status-time {
    width: 48px;
  }

  .phone-status-notch {
    width: 96px;
    height: 20px;
    background: #020617;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
  }

  .phone-notch-speaker {
    width: 32px;
    height: 4px;
    border-radius: 99px;
    background: #1e293b;
  }

  .phone-notch-cam {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #38bdf8 0%, #0f172a 70%);
  }

  .phone-status-icons {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    opacity: 0.9;
  }

  /* Home Indicator Bar di bagian bawah layar HP */
  .phone-mockup-homebar {
    display: flex;
    justify-content: center;
    padding: 10px 0 12px;
    margin-top: auto;
  }

  .phone-mockup-homebar span {
    width: 124px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.28;
  }

  /* Posisi tombol musik melayang agar tetap di dalam bingkai HP pada Desktop */
  body.has-phone-mockup .floating-music-btn {
    right: calc(50% - 185px);
    bottom: 48px;
  }
}

/* Panel Informasi Mengambang di Samping Kiri Mockup (Layar Lebar >= 1100px) */
@media (min-width: 1100px) {
  .desktop-mockup-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    top: 36px;
    left: max(24px, calc(50% - 540px));
    width: 285px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 22px;
    color: #f8fafc;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  }

  .desktop-mockup-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
  }

  .desktop-mockup-card h3 {
    margin: 2px 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    letter-spacing: -0.01em;
    animation: none !important;
  }

  .desktop-mockup-price {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
  }

  .desktop-mockup-desc {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #cbd5e1;
  }

  .desktop-mockup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
  }

  .desktop-mockup-actions .btn {
    width: 100%;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    font-weight: 700;
    padding: 11px 16px;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
  }

  .desktop-mockup-actions .btn-outline {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e2e8f0 !important;
    box-shadow: none;
  }

  .desktop-mockup-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
  }
}

/* ==========================================================================
   FASE 1 (P0): LIVE PREVIEW EDITOR SPLIT-SCREEN (STUDIO & MODERN VIBRANT)
   ========================================================================== */

body.editor-body {
  background: var(--bg);
  color: var(--text);
}

.editor-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.editor-topbar-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.editor-back-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--primary);
}

.editor-title-meta h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.editor-title-meta span {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.live-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.live-sync-pill.is-syncing {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #DDCDB8;
}

.live-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(70, 89, 69, 0.2);
  animation: pulseLiveDot 2s infinite;
}

.live-sync-pill.is-syncing .live-sync-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 125, 82, 0.22);
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}

.editor-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Layout Utama Split-Screen */
.editor-workspace {
  max-width: 1420px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.editor-form-pane {
  min-width: 0;
  max-width: 100%;
}

.editor-sec-mobile-footer {
  display: none;
}

.savebar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .editor-workspace {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
}

/* Navigasi Step / Bagian Cepat */
.editor-step-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.editor-step-nav::-webkit-scrollbar {
  display: none;
}

.editor-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.editor-step-pill:hover,
.editor-step-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.editor-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.editor-step-pill.active .editor-step-num,
.editor-step-pill:hover .editor-step-num {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Kartu Bagian Form */
.editor-section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 84px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-section-card:focus-within {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.editor-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.editor-section-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.editor-section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.editor-section-head p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-picker-group input[type="color"] {
  width: 44px;
  height: 41px;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 2px;
}

.color-picker-group input[type="text"] {
  flex: 1;
}

/* Sticky Save Bar di Bawah Form */
.editor-sticky-savebar {
  position: sticky;
  bottom: 14px;
  z-index: 40;
  background: rgba(28, 27, 25, 0.94);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.editor-sticky-savebar .btn-save-main {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.editor-sticky-savebar .btn-save-main:hover {
  background: var(--primary-hover);
}

/* Panel Kanan: Sticky Smartphone Mockup */
.editor-preview-pane {
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editor-preview-toolbar {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 7px 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.preview-mode-switch {
  display: inline-flex;
  background: var(--surface-alt);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.preview-mode-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

.preview-mode-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  transform: none;
  box-shadow: none;
}

.preview-mode-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.editor-phone-shell {
  width: 100%;
  max-width: 380px;
  height: min(690px, calc(100vh - 140px));
  min-height: 480px;
  background: #ffffff;
  border-radius: 42px;
  border: 10px solid #1e293b;
  box-shadow:
    0 0 0 2px #334155,
    0 24px 50px -12px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.editor-phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px 7px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.73rem;
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}

.editor-phone-iframe {
  width: 100%;
  flex: 1;
  border: none;
  background: #faf9f6;
}

.editor-phone-homebar {
  background: #0f172a;
  padding: 7px 0 9px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.editor-phone-homebar span {
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

/* Tombol Floating & Accordion untuk Layar HP/Tablet (< 1024px) */
.editor-mobile-fab,
.mobile-preview-close-btn {
  display: none;
}

@media (max-width: 1023px) {
  .editor-topbar-inner {
    padding: 8px 12px;
    gap: 6px;
  }

  .editor-brand-group {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .editor-back-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .editor-title-meta {
    min-width: 0;
  }

  .editor-title-meta h1 {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }

  .editor-title-meta span {
    font-size: 0.7rem;
    display: block;
  }

  .live-sync-pill {
    padding: 4px 9px;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  .editor-topbar-actions {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    gap: 6px;
  }

  .editor-topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .editor-topbar-actions .btn-sm {
    padding: 5px 10px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .editor-desktop-save-btn {
    display: none !important;
  }

  .editor-workspace {
    padding: 12px 12px 92px;
    gap: 16px;
  }

  .editor-section-card {
    padding: 16px 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    scroll-margin-top: 96px;
    overflow: hidden;
  }

  .editor-section-head {
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .editor-section-head h2 {
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .editor-section-head p {
    font-size: 0.76rem;
  }

  .editor-section-card.is-collapsed-mobile > *:not(.editor-section-head) {
    display: none !important;
  }

  .editor-section-card.is-collapsed-mobile .editor-section-head {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .editor-section-card.is-collapsed-mobile .editor-section-head p {
    display: none;
  }

  .editor-section-head::after {
    content: "▾";
    margin-left: auto;
    font-size: 1.05rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .editor-section-card.is-collapsed-mobile .editor-section-head::after {
    transform: rotate(-90deg);
  }

  .editor-sec-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
  }

  /* Sticky Save Bar menjadi Fixed Native Bottom Bar di Android/iPhone */
  .editor-sticky-savebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 120;
    border-radius: 16px 16px 0 0;
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: rgba(28, 27, 25, 0.96);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.25);
  }

  .savebar-info-text {
    display: none !important;
  }

  .savebar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .editor-mobile-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 10px;
    font-size: 0.84rem;
    font-weight: 700;
    width: 100%;
  }

  .editor-sticky-savebar .btn-save-main {
    width: 100%;
    padding: 11px 10px;
    font-size: 0.84rem;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
  }

  .editor-preview-pane {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    padding: 12px;
    justify-content: center;
    overflow-y: auto;
  }

  .editor-preview-pane.mobile-open {
    display: flex;
  }

  .mobile-preview-close-btn {
    display: inline-flex;
  }

  .editor-phone-shell {
    height: calc(100vh - 96px);
    max-height: 680px;
  }
}

/* Di Layar Smartphone Android / iPhone (< 768px): Live Preview tampil Full-Screen tanpa Bezel HP Ganda */
@media (max-width: 767px) {
  .hide-xs-text {
    display: none;
  }

  .editor-preview-pane {
    padding: 0;
    background: var(--bg);
    justify-content: flex-start;
  }

  .editor-preview-toolbar {
    max-width: 100%;
    border-radius: 0;
    margin-bottom: 0;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
  }

  .editor-phone-shell {
    max-width: 100%;
    width: 100%;
    height: calc(100vh - 54px);
    max-height: none;
    min-height: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .editor-phone-statusbar,
  .editor-phone-homebar {
    display: none;
  }
}

/* ==========================================================================
   MOBILE STICKY BOTTOM CTA BAR PADA PRATINJAU KATALOG (preview.php di HP)
   ========================================================================== */
.mobile-preview-sticky-bar {
  display: none;
}

@media (max-width: 767px) {
  body.has-phone-mockup {
    padding-bottom: 74px;
  }

  .mobile-preview-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 140;
    background: rgba(28, 27, 25, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    font-family: var(--font-sans);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  }

  .mobile-preview-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mobile-preview-meta strong {
    font-size: 0.86rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-preview-meta span {
    font-size: 0.78rem;
    color: #EBD4A8;
    font-weight: 700;
  }

  .mobile-preview-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .mobile-preview-btns .btn {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 13px !important;
    font-size: 0.8rem !important;
  }

  .mobile-preview-btns .btn-outline {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
  }
}

/* ==========================================================================
   WIZARD PEMESANAN 3 LANGKAH CEPAT (order.php — MOBILE-FIRST)
   ========================================================================== */
.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.wizard-step-indicator,
.wizard-step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.wizard-step-indicator:hover,
.wizard-step-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: var(--surface);
  transform: none;
  box-shadow: none;
}

.wizard-step-indicator.active,
.wizard-step-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.wizard-step-indicator.done,
.wizard-step-btn.done {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--primary);
}

.wizard-step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
}

.wizard-step-indicator.active .wizard-step-circle,
.wizard-step-btn.active .wizard-step-circle {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.wizard-step-pane {
  display: none;
  animation: wizardFadeIn 0.22s ease;
}

.wizard-step-pane.active {
  display: block;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-footer-nav,
.wizard-nav-bar {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.optional-accordion-box {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.optional-accordion-trigger {
  width: 100%;
  background: var(--surface-alt);
  color: var(--text);
  border: none;
  border-radius: 0;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.optional-accordion-trigger:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: none;
  box-shadow: none;
}

.optional-accordion-chevron {
  transition: transform 0.2s ease;
}

.optional-accordion-box.open .optional-accordion-chevron {
  transform: rotate(180deg);
}

.optional-accordion-content {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.optional-accordion-box.open .optional-accordion-content {
  display: block;
}

/* ==========================================================================
   RESPONSIVE USER DASHBOARD, GUEST CARDS & RSVP CARDS (ANDROID / IPHONE)
   ========================================================================== */
.guest-cards-mobile,
.rsvp-cards-mobile {
  display: none;
  gap: 12px;
}

.guest-card-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guest-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.guest-card-name {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
}

.guest-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.rsvp-card-message {
  background: var(--surface-alt);
  border-left: 3px solid var(--primary);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--text);
  font-style: italic;
}

.guest-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guest-card-actions > .btn,
.guest-card-actions > button {
  flex: 1 1 auto;
}

.order-action-form {
  display: inline-flex;
}

@media (max-width: 640px) {
  .guest-cards-mobile,
  .rsvp-cards-mobile {
    display: grid;
  }

  .desktop-only-table {
    display: none !important;
  }

  .wizard-step-indicator,
  .wizard-step-btn {
    padding: 9px 8px;
    font-size: 0.75rem;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 4px;
  }

  .wizard-footer-nav .btn,
  .wizard-footer-nav button {
    flex: 1 1 auto;
    justify-content: center;
  }

  /* Tata Letak Tombol Kartu Undangan di Dashboard Pelanggan pada Layar Android/iPhone */
  .order-card-footer {
    padding-top: 12px;
  }

  .order-actions-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .order-btn-primary-full {
    grid-column: 1 / -1;
    padding: 11px 14px !important;
    font-size: 0.92rem !important;
    justify-content: center;
    text-align: center;
  }

  .order-actions-grid > .btn,
  .order-actions-grid > .order-action-form {
    width: 100%;
    margin: 0;
  }

  .order-actions-grid > .order-action-form > button {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .public-link-box {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }

  .public-link-url {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .public-link-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }

  .public-link-actions > * {
    width: 100%;
    padding: 7px 6px !important;
    font-size: 0.78rem !important;
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   GENERATOR KUTIPAN & DOA PERNIKAHAN SIAP PAKAI (quotes.js)
   ========================================================================== */
.quote-picker-drawer {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 10px 0 14px;
  animation: wizardFadeIn 0.2s ease;
}

.quote-picker-drawer.open {
  display: block;
}

.quote-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .quote-picker-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.quote-card-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.quote-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
}

/* Perbaikan mobile (audit): kotak tautan publik tidak lagi punya ruang kosong tinggi
   (flex-basis 200px berubah jadi tinggi saat kolom), petunjuk geser untuk menu yang
   bisa digeser, dan area sentuh minimal 40px di navbar dashboard/admin/editor. */
@media (max-width: 768px) {
  .public-link-url {
    flex: 0 0 auto;
  }
  .site-nav-links,
  .dashboard-links,
  .editor-step-nav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .dashboard-links a,
  .dashboard-links button,
  .site-nav-links a,
  .site-nav-links button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .editor-step-pill {
    min-height: 40px;
    flex-shrink: 0;
  }
}