/* ── app.css ── */
/* ── Ira Print: Premium Aesthetic Stylesheet ────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors - Premium Deep Orange & Slate */
  --brand: #ea580c; /* Orange 600 */
  --brand-dark: #c2410c; /* Orange 700 */
  --brand-light: #ffedd5; /* Orange 100 */
  
  --wa: #25d366;
  --wa-dark: #1da851;
  
  /* Neutral Slate for professional SaaS look */
  --ink: #0f172a; /* Slate 900 */
  --muted: #64748b; /* Slate 500 */
  --line: #e2e8f0; /* Slate 200 */
  --bg: #ffffff;
  --bg-alt: #f8fafc; /* Slate 50 */
  
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-card: 0 20px 25px -5px rgb(0 0 0 / 0.03), 0 8px 10px -6px rgb(0 0 0 / 0.03);
  
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--brand-dark); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mt { margin-top: 1rem; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
}
.btn:hover { 
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-primary { 
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.39);
}
.btn-primary:hover { color: #fff; }

.btn-whatsapp { 
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
}
.btn-whatsapp:hover { color: #fff; }

.btn-outline { 
  border-color: var(--line); 
  color: var(--ink); 
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.39); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }

.btn-link {
  background: none; border: none; padding: 0;
  color: var(--brand); font: inherit; cursor: pointer;
  font-weight: 500;
}
.btn-link:hover { color: var(--brand-dark); text-decoration: underline; transform: none; box-shadow: none; }
.btn-danger.btn-link { color: #ef4444; }
.inline { display: inline; }

/* ── Header / nav ─────────────────────────────────────────────── */
.site-header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.5rem 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand:hover { transform: scale(1.02); }
.brand-logo { border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.2rem; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand-text small { color: var(--muted); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

.site-nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
  padding: 0.5rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.nav-link:hover { color: var(--brand); background: var(--brand-light); }
.nav-link.is-active { color: var(--brand-dark); background: var(--brand-light); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, var(--brand-light) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -10%; width: 50%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(30deg); pointer-events: none;
}
.hero-inner { padding: 6rem 20px 5rem; text-align: center; max-width: 800px; position: relative; z-index: 1; }
.hero-title { 
  font-size: clamp(2.5rem, 6vw, 4rem); 
  margin: 0 0 1rem; 
  line-height: 1.1; 
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ink), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text { font-size: 1.25rem; color: var(--muted); margin: 0 auto 2rem; max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Sections & cards ─────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 2rem; margin: 0 0 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head .section-title { margin: 0; }

.page-head { padding: 3rem 20px 2rem; text-align: center; }
.page-head .section-title { font-size: 2.5rem; }
.page-sub { margin: 0.5rem 0 0; color: var(--muted); font-size: 1.1rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover, a.card:hover { 
  text-decoration: none; 
  box-shadow: var(--shadow-card); 
  transform: translateY(-4px); 
  border-color: var(--brand-light);
}
.card h3 { margin: 1rem 0 0.25rem; font-size: 1.15rem; font-weight: 700; }
.card p { margin: 0 0 0.5rem; color: var(--muted); }
.card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--bg-alt);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
a.card { overflow: hidden; }
.card:hover, a.card:hover .card-img { transform: scale(1.05); }

.card-img-placeholder {
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 700; color: var(--brand); background: var(--brand-light);
  border-radius: var(--radius-sm);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover, a.card:hover .card-img-placeholder { transform: scale(1.05); }

.card-link { color: var(--brand); font-weight: 600; font-size: 0.95rem; margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: 0.25rem; }
.card-link::after { content: '→'; transition: transform 0.2s; }
.card:hover, a.card:hover .card-link::after { transform: translateX(4px); }

.price { color: var(--brand-dark); font-weight: 800; font-size: 1.1rem; }
.price-lg { font-size: 1.5rem; }
.cat-card { min-height: 180px; justify-content: center; align-items: center; text-align: center; background: linear-gradient(135deg, #fff, var(--bg-alt)); }
.cat-card h3 { font-size: 1.3rem; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1rem; }
.cat-landing-card { justify-content: space-between; min-height: 180px; border-width: 1px; transition: all 0.3s; }
.cat-landing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.cat-landing-card h3 { font-size: 1.4rem; margin-top: 0; }
.cat-landing-card p { margin-bottom: 1.5rem; }
.cat-meta { margin-top: auto; display: flex; align-items: center; justify-content: flex-start; }
.badge-terlaris {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  pointer-events: none;
}

.badge-diskon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  pointer-events: none;
}

.price-original {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.price-current {
  font-size: 1.15rem;
  color: var(--brand);
  font-weight: 800;
}

.empty { color: var(--muted); text-align: center; padding: 4rem 0; font-size: 1.1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; position: relative; }
.gallery-item a { display: block; overflow: hidden; position: relative; }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); display: block; }
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 1rem; font-size: 0.9rem; color: var(--muted); font-weight: 500; border-top: 1px solid var(--line); }
.gallery-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(124, 58, 237, 0.92);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 3;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  pointer-events: none;
}
.gallery-video-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 2;
}
.gallery-item:hover .gallery-video-overlay {
  background: rgba(0,0,0,0.4);
}
.gallery-play-icon {
  width: 48px;
  height: 48px;
  background: #7c3aed;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.5);
  transition: transform 0.3s ease, background 0.3s ease;
}
.gallery-item:hover .gallery-play-icon {
  transform: scale(1.15);
  background: #6d28d9;
}
.gallery-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gallery-modal-backdrop.is-active {
  display: flex;
}
.gallery-modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.gallery-modal-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.chip {
  padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); font-size: 0.9rem; color: var(--muted); font-weight: 500;
  transition: all 0.2s;
}
.chip.is-active, .chip:hover { 
  background: var(--brand); 
  color: #fff; 
  border-color: var(--brand); 
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

/* ── Shop layout ──────────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; padding-top: 1rem; }
.shop-sidebar h3 { margin: 1.25rem 0 0.75rem; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.cat-list a { display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; transition: all 0.2s; }
.cat-list a.is-active, .cat-list a:hover { background: var(--brand-light); color: var(--brand-dark); padding-left: 1rem; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; background: #fff; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.search-form { display: flex; gap: 0.5rem; flex: 1; max-width: 400px; }
.sort-form select { padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); font-weight: 500; cursor: pointer; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: 2.5rem 0; font-weight: 600; }

/* ── Product detail ───────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem 0 4rem; }
.product-gallery { display: flex; flex-direction: column; gap: 1rem; }
.slider-container { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow); border: 1px solid var(--line); }
.product-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.product-slider::-webkit-scrollbar { display: none; }
.slider-slide { flex: 0 0 100%; scroll-snap-align: center; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); color: var(--ink); transition: background 0.2s; z-index: 10; }
.slider-btn:hover { background: #fff; color: var(--brand); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.product-main-img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }
.product-thumbs { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.product-thumbs img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: all 0.2s; box-shadow: var(--shadow-sm); }
.product-thumbs img:hover, .product-thumbs img.is-active { border-color: var(--brand); transform: translateY(-2px); }

.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: #fff; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); padding: 0.75rem 1rem; text-align: left; vertical-align: top; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; background: var(--bg-alt); }
.prose { margin: 1.5rem 0; font-size: 1.05rem; color: var(--muted); }
.prose p { margin: 0 0 1rem; }
.demo-hero { border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.cta-box { text-align: center; background: linear-gradient(135deg, var(--bg-alt), #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem; margin: 2rem 0; box-shadow: var(--shadow); }
.cta-box p { margin: 0 0 1.5rem; font-size: 1.1rem; color: var(--muted); }

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb { padding: 1.5rem 0 0; font-size: 0.9rem; color: var(--muted); display: flex; gap: 0.5rem; flex-wrap: wrap; font-weight: 500; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb a::after { content: "/"; margin-left: 0.5rem; color: var(--line); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: all 0.2s; }
.faq-item:hover { box-shadow: var(--shadow); border-color: var(--brand-light); }
.faq-item summary { cursor: pointer; padding: 1.25rem 1.5rem; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--brand); transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.5rem 1.5rem; color: var(--muted); }

/* ── Article ──────────────────────────────────────────────────── */
.article-img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow); }
.article h1 { font-size: 2.5rem; margin: 0.5rem 0; font-weight: 800; letter-spacing: -0.02em; }

/* ── Contact ──────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; padding-bottom: 4rem; }
.contact-line { margin: 1rem 0; display: flex; align-items: center; gap: 1rem; font-size: 1.1rem; }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"],
.form-group input[type="search"], .form-group input[type="number"], .form-group input[type="url"],
.form-group input[type="password"], .form-group select, .form-group textarea,
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-alt);
  transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-light);
}
.form-group textarea, .contact-form textarea { resize: vertical; min-height: 100px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.form-inline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.form-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.form-seo { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }

/* ── Alerts ───────────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-close { background: none; border: 0; font-size: 1.25rem; cursor: pointer; color: inherit; opacity: 0.7; transition: 0.2s; }
.alert-close:hover { opacity: 1; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 3rem; padding: 4rem 20px 2rem; }
.footer-col h3 { color: #fff; font-size: 1.1rem; margin: 0 0 1.25rem; font-weight: 700; letter-spacing: 0.02em; }
.footer-col p { margin: 0 0 0.5rem; }
.footer-col a { display: block; color: #94a3b8; margin-bottom: 0.6rem; font-weight: 500; }
.footer-col a:hover { color: #fff; padding-left: 0.25rem; }
.footer-brand { color: #fff; font-size: 1.4rem; font-weight: 800; display: block; margin-bottom: 1rem; letter-spacing: -0.01em; }
.footer-social { display: flex; gap: 0.65rem; margin-top: 1rem; flex-wrap: wrap; align-items: center; }
.footer-social a.social-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.footer-social a.social-btn svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.footer-social a.social-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  padding-left: 0.85rem;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}
.footer-social a.social-btn:hover svg {
  transform: scale(1.15);
}
.footer-social a.social-shopee:hover { background: #ee4d2d; border-color: #ee4d2d; box-shadow: 0 6px 16px rgba(238, 77, 45, 0.35); }
.footer-social a.social-tokopedia:hover { background: #03ac0e; border-color: #03ac0e; box-shadow: 0 6px 16px rgba(3, 172, 14, 0.35); }
.footer-social a.social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #e6683c; box-shadow: 0 6px 16px rgba(220, 39, 67, 0.35); }
.footer-social a.social-tiktok:hover { background: #000000; border-color: #25f4ee; box-shadow: 0 6px 16px rgba(37, 244, 238, 0.3); }
.footer-social a.social-facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35); }
.footer-social a.social-youtube:hover { background: #ff0000; border-color: #ff0000; box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 20px; font-size: 0.9rem; color: #64748b; text-align: center; }

.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  background: var(--wa); color: #fff; border-radius: 50%;
  width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wa-float:hover { background: var(--wa-dark); transform: scale(1.1) translateY(-4px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5); }

/* ── Errors ───────────────────────────────────────────────────── */
.error-page { min-height: 100vh; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.error-box { text-align: center; padding: 4rem 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 500px; width: 100%; }
.error-status { font-size: 6rem; font-weight: 900; color: var(--brand); margin: 0; line-height: 1; letter-spacing: -0.05em; }
.error-box h1 { font-size: 1.75rem; margin: 1rem 0; }

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.9); z-index: 100;
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
  backdrop-filter: blur(8px);
}
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-sm); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }

/* ── ===== Admin ===== ────────────────────────────────────────── */
.admin-body { background: #f1f5f9; } /* Slate 100 */
.admin-topbar { 
  background: #ffffff; 
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40; 
  box-shadow: var(--shadow-sm);
}
.admin-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1400px; margin: 0 auto; padding: 0.75rem 24px; }
.admin-brand { color: var(--ink); font-weight: 800; font-size: 1.25rem; display: flex; align-items: baseline; }
.admin-brand small { color: var(--brand); margin-left: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.7rem; font-weight: 700; background: var(--brand-light); padding: 0.15rem 0.5rem; border-radius: 999px; }
.admin-topbar-right { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.admin-topbar-right a, .admin-topbar-right .btn-link { color: var(--muted); font-weight: 500; }
.admin-topbar-right a:hover { color: var(--brand); }
.admin-user { color: var(--ink); font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.admin-user::before { content: ''; display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-light); border: 2px solid var(--brand); }

.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; max-width: 1400px; margin: 0 auto; padding: 2rem 24px 4rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; background: #fff; padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: max-content; }
.admin-nav-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 1rem 0 0.5rem 0.5rem; }
.admin-nav-label:first-child { margin-top: 0; }
.admin-nav-link { padding: 0.6rem 0.85rem; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.admin-nav-link:hover { background: var(--bg-alt); color: var(--ink); }
.admin-nav-link.is-active { background: var(--brand-light); color: var(--brand-dark); }

.admin-main { min-width: 0; }
.admin-page-title { margin: 0 0 1.5rem; font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.admin-section-title { font-size: 1.25rem; margin: 2rem 0 1rem; font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }

.admin-toolbar, .admin-filters, .bulk-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-toolbar { justify-content: space-between; background: #fff; padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.admin-filters .form-group { margin: 0; }
.admin-filters input, .admin-filters select { background: var(--bg-alt); }

.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.admin-table th { background: var(--bg-alt); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--bg-alt); }

.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.badge-new { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-read { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.badge-draft { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.5rem; }
.stat-card strong { display: block; font-size: 2.25rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-card span { color: var(--muted); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card-accent { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border: none; box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.3); }
.stat-card-accent strong, .stat-card-accent span { color: #fff; }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.image-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.image-tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.image-tile form { padding: 0.5rem; background: var(--bg-alt); }
.upload-form { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding: 1.5rem; background: var(--bg-alt); border: 1px dashed var(--muted); border-radius: var(--radius-sm); margin-bottom: 1.5rem; }

.contact-card { display: flex; flex-direction: column; gap: 1rem; }
.contact-card-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.contact-card-meta { display: flex; align-items: center; gap: 1rem; font-weight: 500; }
.contact-message { margin: 0; white-space: pre-wrap; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1.25rem; font-size: 0.95rem; line-height: 1.6; border: 1px solid var(--line); }
.contact-actions { display: flex; gap: 0.75rem; }

.admin-login-only { background: linear-gradient(135deg, var(--bg-alt), var(--brand-light)); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.admin-login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 2.5rem; margin: 0 24px; }
.admin-login-card h1 { margin: 0 0 0.5rem; font-size: 1.75rem; font-weight: 800; text-align: center; }

/* ── Invitation Templates & Builder ──────────────────────────── */
.section-divider { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; line-height: 1.6; }
.form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-group-full { grid-column: 1 / -1; }
.public-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.public-form .form-group input[type="date"] { min-height: 46px; }
.public-form .form-group > small { color: var(--muted); }

.auth-page { display: flex; justify-content: center; padding: 4rem 24px; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 2.5rem; }
.auth-card h1 { margin: 0 0 0.25rem; font-size: 1.75rem; font-weight: 800; }
.auth-card .public-form { padding: 1.5rem 0 0; border: 0; box-shadow: none; }

.portal-head { padding: 2.5rem 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.portal-head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.portal-head h1 { margin: 0 0 0.25rem; }

/* ── Live Invitation Page ────────────────────────────────────── */
.invitation-page { padding: 2rem 0 4rem; }
.invitation-body { max-width: 860px; word-break: break-word; }
.invitation-body img { border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: 1rem auto; }
.video-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.video-frame video { width: 100%; display: block; background: #000; }

.countdown-wrap { text-align: center; padding: 2rem 0; }
.countdown-label { text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.countdown { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.countdown-item { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 84px; padding: 1rem 0.75rem; box-shadow: var(--shadow-sm); }
.countdown-item strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.countdown-item span { color: var(--muted); font-size: 0.8rem; font-weight: 600; }

/* ── Invitation template layouts (rendered content) ─────────────── */
.invite { text-align: center; padding: 2rem 0; }
.invite .invite-sub { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; margin-bottom: 0.5rem; }
.invite h1 { margin: 0.5rem 0; }
.invite .invite-date { display: inline-block; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 9999px; padding: 0.5rem 1.5rem; color: var(--brand-dark); font-weight: 700; }
.invite .invite-motto { max-width: 560px; margin: 1rem auto; color: var(--muted); font-style: italic; white-space: pre-line; }
.invite h2 { margin: 0 0 1.5rem; }
.invite .invite-acara { white-space: pre-line; text-align: left; max-width: 560px; margin: 0 auto; }
.invite .invite-btn { display: inline-block; margin-top: 1.5rem; padding: 0.7rem 1.6rem; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 700; border-radius: 9999px; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.invite .invite-btn:hover { transform: translateY(-2px); }
.invite img { max-width: 100%; height: auto; border-radius: var(--radius); }

.invitation-share { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
.invitation-share h2 { margin: 0 0 0.25rem; }
.invitation-share-row { display: flex; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap; }
.share-link { flex: 1; min-width: 220px; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); font: inherit; color: var(--ink); }

.music-player { position: fixed; right: 24px; bottom: 24px; z-index: 40; }
.music-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 1.4rem; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform 0.2s; }
.music-btn:hover { transform: scale(1.08); }
.music-btn.is-playing { animation: music-pulse 2s infinite; }
@keyframes music-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(234, 88, 12, 0); }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 1rem 24px 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
}
@media (max-width: 992px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout, .product-detail, .contact-layout, .admin-layout { grid-template-columns: 1fr; gap: 2rem; }
  .shop-sidebar { order: 2; }
  .admin-nav { order: 2; margin-top: 1rem; }
  .footer-grid, .form-grid, .form-inline-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .category-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
  .hero-inner { padding: 4rem 20px; }
  .hero-title { font-size: 2.25rem; }
  .section { padding: 3rem 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .admin-topbar-inner { flex-wrap: wrap; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .auth-page { padding: 2.5rem 20px; }
  .invitation-body { padding: 0 8px; }
}

/* ═══════════════════════════════════════════════════════════
   WEDDING PLATFORM — Admin Context
   ════════════════════════════════════════════════════════════ */

/* Wedding admin topbar accent */
.admin-topbar--wedding {
  background: linear-gradient(135deg, #1a0a2e, #2d1b4e);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-brand--wedding { color: #fff; }
.admin-brand--wedding small { background: rgba(255,255,255,0.15); color: #f0d9ff; }
.admin-topbar--wedding .admin-topbar-right a,
.admin-topbar--wedding .admin-topbar-right .btn-link { color: rgba(255,255,255,0.7); }
.admin-topbar--wedding .admin-topbar-right a:hover { color: #fff; }
.admin-topbar--wedding .admin-user { color: #fff; }
.admin-topbar--wedding .admin-user::before { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }

/* Wedding admin sidebar */
.admin-body--wedding { background: #f5f0ff; }
.admin-nav--wedding { background: #fff; border-left: 3px solid #7c3aed; }
.admin-nav--wedding .admin-nav-link { font-size: 0.9rem; }
.admin-nav--wedding .admin-nav-link:hover { background: #f5f0ff; color: #7c3aed; }
.admin-nav--wedding .admin-nav-link.is-active { background: #ede9fe; color: #5b21b6; }
.admin-nav-divider { border-top: 1px solid var(--line); margin: 0.75rem 0; }
.nav-icon { font-size: 1rem; margin-right: 0.25rem; }

/* Wedding new btn */
.wedding-new-btn { 
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff !important;
  border-radius: var(--radius-sm);
  text-align: center;
  margin: 0.25rem 0;
}
.wedding-new-btn:hover { background: linear-gradient(135deg, #6d28d9, #4c1d95); color: #fff !important; }

/* Stat cards for wedding */
.stat-card--wedding-primary { background: linear-gradient(135deg, #7c3aed, #5b21b6); border: none; }
.stat-card--wedding-primary strong, .stat-card--wedding-primary span { color: #fff; }
.stat-card--success { background: linear-gradient(135deg, #10b981, #059669); border: none; }
.stat-card--success strong, .stat-card--success span { color: #fff; }
.stat-card--accent { background: linear-gradient(135deg, #f59e0b, #d97706); border: none; }
.stat-card--accent strong, .stat-card--accent span { color: #fff; }
.stat-card--warning { border-left: 3px solid #f59e0b; }
.stat-card--new strong { color: #7c3aed; }
.badge-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* Page header */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-header-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.admin-actions-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* Editor nav grid */

.editor-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.editor-nav-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.editor-nav-card:hover { border-color: #7c3aed; background: #faf5ff; color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.editor-nav-card--done { border-color: #10b981; background: #ecfdf5; }
.editor-nav-icon { font-size: 2rem; }
.editor-nav-label { font-weight: 700; font-size: 0.9rem; }
.editor-nav-status { font-size: 0.8rem; color: var(--muted); }
.editor-nav-card--done .editor-nav-status { color: #059669; font-weight: 600; }

/* Form cards */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.form-card--danger { border-color: #fecaca; }
.form-card--editor { max-width: 100%; }
.form-section-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 1.25rem; color: var(--ink); }
.form-section-title--danger { color: #dc2626; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.form-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg-alt);
  transition: all 0.2s;
  color: var(--ink);
}
.form-input:focus { outline: none; border-color: #7c3aed; background: #fff; box-shadow: 0 0 0 3px #ede9fe; }
.form-input--code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.6; }
.form-hint { margin: 0; font-size: 0.82rem; color: var(--muted); }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; align-items: center; flex-wrap: wrap; }
.form-group--checkbox { flex-direction: row; align-items: center; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; }
.input-prefix-group { display: flex; align-items: stretch; }
.input-prefix { background: var(--bg-alt); border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 0 0.75rem; display: flex; align-items: center; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.input-prefix ~ .form-input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.required { color: #dc2626; }

/* Search bar */
.search-bar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.search-bar .form-input { max-width: 320px; }

/* Table extras */
.table-link { color: var(--ink); font-weight: 600; }
.table-link:hover { color: #7c3aed; }
.table-actions { display: flex; gap: 0.5rem; align-items: center; white-space: nowrap; }
.btn-sm { display: inline-flex; align-items: center; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); text-decoration: none; transition: all 0.15s; }
.btn-sm:hover { background: var(--bg-alt); }
.btn-sm--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.btn-sm--danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Couple form */
.couple-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }

.couple-title { font-size: 1rem; }
.couple-title--groom { color: #1e40af; }
.couple-title--bride { color: #9d174d; }
.photo-upload-area { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.photo-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid #7c3aed; }
.photo-placeholder { width: 120px; height: 120px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 3rem; border: 2px dashed var(--line); }
.photo-upload-form { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.photo-file-input { font-size: 0.82rem; }

/* Event cards */
.events-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.event-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.event-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.event-card-body p { margin: 0.25rem 0; font-size: 0.9rem; }
.event-card-actions { margin-top: 0.75rem; }

/* Gallery admin */
.gallery-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.gallery-admin-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.gallery-admin-thumb { position: relative; }
.gallery-admin-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-admin-placeholder { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: var(--bg-alt); }
.gallery-admin-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.gallery-admin-item:hover .gallery-admin-overlay { opacity: 1; }
.drag-handle { color: #fff; font-size: 1.5rem; cursor: grab; }
.gallery-admin-caption { padding: 0.5rem; font-size: 0.8rem; color: var(--muted); text-align: center; margin: 0; }
.gallery-delete-btn { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: #fef2f2; color: #991b1b; padding: 0.35rem; font-size: 0.8rem; cursor: pointer; transition: background 0.2s; }
.gallery-delete-btn:hover { background: #fee2e2; }

/* Gift cards */
.gifts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.gift-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.gift-card-header { margin-bottom: 0.75rem; }
.gift-card-body p { margin: 0.25rem 0; font-size: 0.9rem; }
.gift-card-actions { margin-top: 1rem; }

/* Stories */
.stories-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.story-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); border-left: 3px solid #ec4899; }
.story-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.story-date { font-size: 0.82rem; background: #fdf2f8; color: #9d174d; border-radius: 999px; padding: 0.2rem 0.6rem; font-weight: 600; }
.story-content { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9rem; }


/* Music */
.music-current { margin-bottom: 1.5rem; }
.music-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start; box-shadow: var(--shadow-sm); }
.music-card-icon { font-size: 2.5rem; }
.music-card-info { display: flex; flex-direction: column; gap: 0.5rem; }
.music-preview { margin-top: 0.5rem; max-width: 320px; }
.tab-group { display: flex; gap: 0; margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.tab-btn { flex: 1; padding: 0.6rem 1rem; border: none; background: var(--bg-alt); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.15s; color: var(--muted); }
.tab-btn.is-active { background: #7c3aed; color: #fff; }

/* Template grid admin */
.template-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.template-admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.template-admin-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.template-admin-thumb { position: relative; overflow: hidden; }
.template-admin-thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.template-admin-placeholder { aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: var(--bg-alt); }
.template-admin-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.template-admin-card:hover .template-admin-overlay { opacity: 1; }
.template-admin-info { padding: 1rem; border-top: 1px solid var(--line); }
.template-admin-info h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.template-admin-meta { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.template-admin-actions { padding: 0.75rem 1rem; border-top: 1px solid var(--line); display: flex; gap: 0.5rem; flex-wrap: wrap; background: var(--bg-alt); }

/* Template grid public */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.template-card { border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color 0.2s; }
.template-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.template-card:has(input:checked) { border-color: #7c3aed; box-shadow: 0 0 0 3px #ede9fe; }
.template-card-thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.template-card-placeholder { aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--bg-alt); }
.template-card-info { padding: 0.75rem; border-top: 1px solid var(--line); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.template-card-info strong { font-size: 0.9rem; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 0.75rem; }

/* Filter bar */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-bar--center { justify-content: center; }
.filter-pill { padding: 0.4rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: all 0.15s; }
.filter-pill:hover, .filter-pill.is-active { background: #7c3aed; border-color: #7c3aed; color: #fff; }

/* Preview container */
.preview-container { background: var(--bg-alt); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--line); }
.preview-toolbar { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.preview-size-btn { padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 1rem; cursor: pointer; transition: all 0.15s; }
.preview-size-btn.is-active, .preview-size-btn:hover { border-color: #7c3aed; background: #ede9fe; }
.preview-frame-wrapper { display: flex; justify-content: center; overflow: hidden; }
.preview-frame { width: 100%; min-height: 700px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); transition: width 0.3s; }

/* Thumbnail preview (template edit) */
.current-thumb { margin-bottom: 0.75rem; }
.thumbnail-preview { width: 120px; height: 160px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* Pagination */
.pagination { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 1.5rem; }
.page-link { padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: 0.85rem; }
.page-link.is-active { background: #7c3aed; border-color: #7c3aed; color: #fff; }

/* ═══════════════════════════════════════════════════════════
   WEDDING PLATFORM — Public Landing Page
   ════════════════════════════════════════════════════════════ */

.wedding-landing { --wedding-primary: #7c3aed; --wedding-accent: #ec4899; }

/* Hero */
.wedding-hero {
  background: linear-gradient(135deg, #fdf4ff 0%, #ede9fe 50%, #fce7f3 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid #e9d5ff;
}
.wedding-hero-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  border: 1px solid #e9d5ff;
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}
.wedding-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin: 0 0 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1e1b4b;
}
.text-accent {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wedding-hero-desc { font-size: 1.15rem; color: #64748b; max-width: 560px; margin: 0 auto 2.5rem; }
.wedding-hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Features */
.wedding-features { padding: 5rem 0; background: #fff; }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.section-desc { color: var(--muted); text-align: center; margin: 0 0 2.5rem; font-size: 1.05rem; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.feature-card {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ── Template Cards & Live Preview Enhancements ─────────────────── */
.template-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--brand-light);
}
.template-thumb-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.template-thumb-link {
  display: block;
  position: relative;
  text-decoration: none;
}
.template-thumb-link .card-img,
.template-thumb-link .card-img-placeholder {
  transition: transform 0.4s ease;
  width: 100%;
}
.template-thumb-wrapper:hover .card-img,
.template-thumb-wrapper:hover .card-img-placeholder {
  transform: scale(1.04);
}
.template-hover-badge {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 14, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.template-thumb-wrapper:hover .template-hover-badge {
  opacity: 1;
}
.template-card-body {
  padding: 0.75rem 0 0.5rem;
  flex: 1;
}
.template-card-body h3 {
  margin: 0.25rem 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.template-title-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.template-title-link:hover {
  color: var(--brand);
}
.template-card-footer {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.template-btn-preview {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.template-btn-order {
  flex: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Floating Customer Template Preview Banner */
.template-preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
  color: #f5f0ea;
}
.tpb-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.tpb-badge {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.tpb-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tpb-hint {
  font-size: 0.8rem;
  color: rgba(245, 240, 234, 0.6);
  white-space: nowrap;
}
.tpb-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.tpb-btn-back {
  color: rgba(245, 240, 234, 0.8);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tpb-btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}
.tpb-btn-order {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1202 !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tpb-btn-order:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.55);
  text-decoration: none;
}
@media (max-width: 640px) {
  .tpb-hint { display: none; }
  .tpb-title { max-width: 130px; font-size: 0.85rem; }
  .template-preview-banner { padding: 0.5rem 0.75rem; }
  .tpb-btn-back { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
  .tpb-btn-order { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
  .template-card-footer { flex-direction: column; }
}

/* Template public grid */
.wedding-templates { padding: 5rem 0; background: var(--bg-alt); }
.template-public-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.template-public-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.template-public-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.template-public-thumb { position: relative; overflow: hidden; }
.template-public-thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.4s; }
.template-public-card:hover .template-public-thumb img { transform: scale(1.05); }
.template-public-placeholder { aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: var(--bg-alt); }
.template-public-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.template-public-card:hover .template-public-overlay { opacity: 1; }
.template-public-info { padding: 1rem; border-top: 1px solid var(--line); }
.template-public-info h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 700; }

/* How it works */
.wedding-how-it-works { padding: 5rem 0; background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.step-card { text-align: center; }
.step-number {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  font-size: 1.5rem; font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}
.step-card h3 { margin: 0 0 0.5rem; font-weight: 700; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* CTA */
.wedding-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  text-align: center;
}
.wedding-cta h2 { color: #fff; font-size: 2rem; margin: 0 0 0.75rem; font-weight: 800; }
.wedding-cta p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin: 0 0 2rem; }
.wedding-cta .btn-primary {
  background: #fff;
  color: #7c3aed;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.wedding-cta .btn-primary:hover { color: #5b21b6; }

/* Responsive for wedding module */
@media (max-width: 768px) {
  .couple-form-grid { grid-template-columns: 1fr; }
  .editor-nav-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .wedding-hero { padding: 3rem 0 2.5rem; }
  .features-grid, .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .template-public-grid { grid-template-columns: 1fr 1fr; }
  .template-admin-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Product Media Upload & Gallery ──────────────────────────── */
.product-media-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}
.product-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.media-column {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.media-column-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.file-dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--brand);
  background: rgba(234, 88, 12, 0.04);
}
.preview-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.preview-file-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.preview-file-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-file-item .remove-preview-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  transition: background 0.15s;
}
.preview-file-item .remove-preview-btn:hover {
  background: #b91c1c;
}
.badge-primary-photo {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ── Interactive Web & Video Demo Cards ────────────────────────────── */
.demo-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(234, 88, 12, 0.3);
}
.demo-card-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16 / 10;
}
.demo-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}
.demo-thumb-link .card-img,
.demo-thumb-link .card-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.demo-card:hover .demo-thumb-link .card-img,
.demo-card:hover .demo-thumb-link .card-img-placeholder {
  transform: scale(1.05);
}
.demo-play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.65) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.demo-card:hover .demo-play-overlay {
  opacity: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.75) 100%);
}
.demo-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.demo-card:hover .demo-play-icon {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.7), 0 0 0 5px rgba(255, 255, 255, 0.4);
}
.demo-play-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.demo-card-body {
  padding: 1rem 1rem 0.5rem;
  flex: 1;
}
.demo-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}
.demo-title-link {
  color: var(--ink);
  text-decoration: none;
}
.demo-title-link:hover {
  color: var(--brand);
}
.demo-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}
.demo-action-play {
  flex: 1;
}

/* ── Interactive Web Demo Detail Page ────────────────────────────── */
.demo-hero-interactive {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--bg-alt);
  box-shadow: var(--shadow-lg);
}
.demo-hero-link {
  display: block;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}
.demo-hero-link img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.demo-hero-link:hover img {
  transform: scale(1.02);
}
.demo-hero-play-badge {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  transition: background 0.25s ease;
}
.demo-hero-link:hover .demo-hero-play-badge {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
}
.demo-hero-play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.3);
  transition: transform 0.25s ease;
}
.demo-hero-link:hover .demo-hero-play-icon {
  transform: scale(1.12);
}
.demo-hero-play-text strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.demo-hero-play-text small {
  display: block;
  color: #f1f5f9;
  font-size: 0.9rem;
}
.demo-title-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.demo-chips-line {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.demo-interactive-features {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.demo-interactive-features h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: #9a3412;
  font-weight: 700;
}
.features-list-inline {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.features-list-inline li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #7c2d12;
}
.demo-play-notice {
  background: rgba(255, 255, 255, 0.8);
  border-left: 4px solid var(--brand);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #431407;
  margin-top: 0.75rem;
}
.demo-play-notice p {
  margin: 0;
}
.cta-actions-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
