/* PhotoRestore AI — warm paper / charcoal design system (ported from the React build) */

:root {
  --background: #FDFBF7;
  --foreground: #1C1B19;
  --card: #FFFFFF;
  --secondary: #F3EFEA;
  --muted: #EAE4DB;
  --muted-foreground: #6B665E;
  --accent: #8C8476;
  --border: #EAE4DB;
  --destructive: #993333;
  --success: #3E5C4A;
  --radius: 12px;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3, h4, .font-display { font-family: 'Playfair Display', serif; font-weight: 400; margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
section[id] { scroll-margin-top: 5rem; }
code { background: var(--secondary); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted-foreground); }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }

.eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-foreground); font-weight: 500; margin: 0 0 8px;
}
.eyebrow.inverse { color: rgba(253, 251, 247, 0.7); }
.eyebrow.dim { opacity: 0.7; color: inherit; }
.eyebrow.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: 8px; border: 1px solid transparent;
  background: var(--foreground); color: var(--background);
  cursor: pointer; text-decoration: none;
  transition: all 0.2s ease-in-out; white-space: nowrap;
}
.btn:hover { background: #000; color: #fff; }
.btn.primary { background: var(--foreground); color: var(--background); }
.btn.outline { background: transparent; color: var(--foreground); border-color: var(--foreground); }
.btn.outline:hover { background: var(--secondary); color: var(--foreground); }
.btn.ghost { background: transparent; color: var(--foreground); }
.btn.ghost:hover { background: var(--secondary); color: var(--foreground); }
.btn.inverse { background: var(--background); color: var(--foreground); }
.btn.inverse:hover { background: var(--secondary); color: var(--foreground); }
.btn.danger { background: var(--destructive); color: #fff; }
.btn.danger:hover { background: #7a2626; color: #fff; }
.btn.pill { border-radius: 999px; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 13px 28px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }

/* ---------- Header / nav ---------- */
.glass-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(253, 251, 247, 0.78);
  border-bottom: 1px solid rgba(234, 228, 219, 0.7);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 19px; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--muted-foreground); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-auth { display: flex; align-items: center; gap: 6px; }
.mobile-only { display: none; }

.lang-menu { position: relative; }
.lang-btn span { font-size: 11px; letter-spacing: 0.15em; }
.lang-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(28, 27, 25, 0.12); padding: 6px; display: none; z-index: 60;
}
.lang-dropdown.open { display: block; }
.lang-dropdown a {
  display: flex; gap: 8px; align-items: center; padding: 8px 10px;
  border-radius: 6px; text-decoration: none; font-size: 14px;
}
.lang-dropdown a:hover, .lang-dropdown a.active { background: var(--secondary); }

.mobile-sheet {
  display: none; border-top: 1px solid var(--border);
  background: rgba(253, 251, 247, 0.97); padding: 16px 24px;
}
.mobile-sheet.open { display: block; }
.mobile-sheet a { display: block; padding: 10px 0; text-decoration: none; font-size: 15px; }
.sheet-divider { border-top: 1px solid var(--border); margin: 10px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.65;
  background:
    radial-gradient(ellipse 65% 60% at 18% 18%, #EFE6D8 0%, transparent 65%),
    radial-gradient(ellipse 55% 55% at 85% 25%, #E7DFD2 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 55% 95%, #F1EAE0 0%, transparent 60%),
    linear-gradient(180deg, #F8F4ED 0%, var(--background) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding-top: 96px; padding-bottom: 96px;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; }
.hero-title em { font-style: italic; }
.hero-subtitle { margin-top: 22px; font-size: 17px; color: var(--muted-foreground); max-width: 540px; }
.hero-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 32px; font-size: 13px; color: var(--muted-foreground); }

.hero-carousel {
  position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(28, 27, 25, 0.22); background: var(--muted);
}
.hero-placeholder { display: flex; align-items: center; justify-content: center; }
.placeholder-note { text-align: center; color: var(--muted-foreground); }
.placeholder-note span { font-size: 30px; display: block; margin-bottom: 8px; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease-in-out; pointer-events: none; }
.carousel-slide.active { opacity: 1; pointer-events: auto; z-index: 2; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 30;
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88); font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.carousel-arrow:hover { background: #fff; }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 30;
}
.carousel-dots button {
  height: 6px; width: 6px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.5); transition: all 0.25s; padding: 0;
}
.carousel-dots button:hover { background: rgba(255, 255, 255, 0.75); }
.carousel-dots button.active { width: 26px; background: #fff; }

/* ---------- Before/after slider ---------- */
.ba-slider {
  position: relative; overflow: hidden; border-radius: 16px;
  user-select: none; -webkit-user-select: none; cursor: ew-resize;
  background: var(--muted); aspect-ratio: 1 / 1; touch-action: none;
}
.ba-slider.fill { border-radius: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.ba-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.ba-label {
  position: absolute; top: 14px; z-index: 10; padding: 4px 12px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-family: 'Outfit', sans-serif;
}
.ba-label.before { left: 14px; background: rgba(0, 0, 0, 0.6); color: #fff; }
.ba-label.after { right: 14px; background: rgba(255, 255, 255, 0.85); color: var(--foreground); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; width: 1px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); z-index: 10; pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; z-index: 20; width: 42px; height: 42px;
  transform: translate(-50%, -50%); border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--foreground); cursor: ew-resize; transition: transform 0.15s;
}
.ba-handle:hover { transform: translate(-50%, -50%) scale(1.06); }

/* ---------- Sections / cards / grids ---------- */
.section { padding: 88px 0; }
.section.bordered { border-top: 1px solid var(--border); }
.section.tinted { background: rgba(243, 239, 234, 0.45); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 300; letter-spacing: -0.01em; max-width: 640px; }
.section-title.center { margin: 0 auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  box-shadow: 0 1px 2px rgba(28, 27, 25, 0.04);
}
.step-card { transition: box-shadow 0.3s; }
.step-card:hover { box-shadow: 0 10px 26px rgba(28, 27, 25, 0.09); }
.step-icon { font-size: 22px; margin-bottom: 18px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }

.pkg-card { display: flex; flex-direction: column; }
.pkg-card.featured { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.pkg-card.featured .muted, .pkg-card.featured .pkg-credits, .pkg-card.featured .pkg-desc { color: rgba(253, 251, 247, 0.72); }
.pkg-price { font-size: 38px; margin-top: 14px; }
.pkg-original { font-size: 17px; text-decoration: line-through; opacity: 0.5; margin-top: 12px; }
.pkg-credits { font-size: 13px; margin-top: 4px; color: var(--muted-foreground); }
.pkg-desc { font-size: 14px; margin-top: 18px; flex: 1; color: var(--muted-foreground); }
.pkg-features { list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; }
.pkg-features li { padding: 3px 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-item summary {
  cursor: pointer; padding: 16px 0; font-size: 16px; font-weight: 500; 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: 20px; color: var(--muted-foreground); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--muted-foreground); }

.site-footer {
  border-top: 1px solid var(--border); padding: 40px 24px; text-align: center;
  font-size: 13px; color: var(--muted-foreground);
}

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 14px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="datetime-local"], input[type="file"], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  font: inherit; font-size: 14px; color: var(--foreground);
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--foreground); outline-offset: -1px; }
input:disabled { background: var(--secondary); color: var(--muted-foreground); }
textarea { resize: vertical; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > label { flex: 1; min-width: 140px; }
.form-row.checks { gap: 18px; align-items: center; }
.form-row.checks label, .checks { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-weight: 400; }
.form-row.checks input, .checks input { width: auto; margin: 0; }
.form-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card {
  width: 100%; max-width: 410px; background: var(--card);
  border: 1px solid var(--border); border-radius: 18px; padding: 38px;
  box-shadow: 0 8px 32px rgba(28, 27, 25, 0.07);
}
.auth-card h1 { font-size: 30px; }
.auth-card .muted { margin: 8px 0 22px; }
.auth-alt { font-size: 14px; margin-top: 18px; text-align: center; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.alert.error { background: #F7E8E8; color: var(--destructive); border: 1px solid #E5C9C9; }
.alert.success { background: #E8F0EB; color: var(--success); border: 1px solid #CBDCD2; }

/* ---------- Generic page ---------- */
.page-pad { padding-top: 56px; padding-bottom: 88px; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab {
  padding: 10px 18px; text-decoration: none; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-foreground);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--foreground); border-bottom-color: var(--foreground); }
.tab:hover { color: var(--foreground); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-foreground); font-weight: 500; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--muted); color: var(--foreground);
}
.badge.good { background: #E2EDE6; color: var(--success); }
.badge.warn { background: #F7F0DB; color: #8A6D1A; }
.badge.bad { background: #F7E8E8; color: var(--destructive); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Promo bar / modal ---------- */
.promo-bar {
  display: flex; align-items: center; gap: 14px; max-width: 560px;
  background: rgba(243, 239, 234, 0.6); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 18px;
}
.promo-icon {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 999px;
  background: var(--foreground); color: var(--background);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.promo-input-row { display: flex; gap: 10px; flex: 1; }
.promo-input-row input { margin: 0; text-transform: uppercase; }
.promo-applied-row { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; }
.promo-applied-row .font-display { font-size: 18px; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28, 27, 25, 0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.promo-card {
  width: 100%; max-width: 420px; background: var(--background);
  border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.promo-hero { background: var(--foreground); color: var(--background); padding: 40px 32px 32px; text-align: center; }
.promo-badge {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 999px;
  background: rgba(253, 251, 247, 0.15); display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.promo-value { font-family: 'Playfair Display', serif; font-size: 52px; line-height: 1; margin-top: 8px; }
.promo-off { font-size: 14px; opacity: 0.8; margin-top: 8px; }
.promo-body { padding: 28px 32px 30px; text-align: center; }
.promo-body h2 { font-size: 24px; }
.promo-body p { font-size: 14px; color: var(--muted-foreground); }
.promo-body .btn { width: 100%; margin-top: 10px; }
.promo-code { font-weight: 600; color: var(--foreground); }
.fine-print { font-size: 11px !important; margin-top: 14px; }

/* ---------- Dashboard ---------- */
.dash-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 36px; }
.dash-header-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.credits-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px 18px;
}
.credits-chip .coin { font-size: 20px; }
.credits-chip .font-display { font-size: 20px; }

.dash-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 26px; align-items: start; }

.upload-zone {
  border: 2px dashed var(--border); border-radius: 18px;
  background: rgba(243, 239, 234, 0.5); padding: 46px 24px; text-align: center;
  cursor: pointer; transition: all 0.25s;
}
.upload-zone:hover, .upload-zone.dragover { background: var(--secondary); }
.upload-zone.dragover { border-color: var(--foreground); }
.upload-icon { font-size: 26px; color: var(--muted-foreground); margin-bottom: 12px; }
.upload-title { font-size: 24px; margin-bottom: 6px; }
#upload-preview { max-height: 300px; border-radius: 12px; margin-bottom: 12px; }

.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.type-card {
  text-align: left; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card);
  cursor: pointer; font: inherit; transition: all 0.2s;
}
.type-card:hover { border-color: rgba(28, 27, 25, 0.4); }
.type-card.selected { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.type-card .font-display { font-size: 17px; }
.type-cost { font-size: 12px; margin-top: 3px; color: var(--muted-foreground); }
.type-card.selected .type-cost { color: rgba(253, 251, 247, 0.7); }

.dash-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.history-title { font-size: 22px; margin-bottom: 18px; }
.history-list { max-height: 640px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.gen-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.gen-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.gen-card-head .font-display { font-size: 16px; }
.gen-meta { font-size: 12px; color: var(--muted-foreground); margin-bottom: 10px; }
.gen-failed { background: #F7E8E8; border: 1px solid #E5C9C9; border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--destructive); }
.gen-failed strong { display: block; margin-bottom: 3px; }
.gen-card .ba-slider { margin-bottom: 10px; }
.gen-card .btn { width: 100%; }
.gen-actions { display: flex; flex-direction: column; gap: 8px; }
.view-full-btn {
  position: absolute; bottom: 10px; right: 10px; z-index: 25;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92); color: var(--foreground);
  border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.progress-panel {
  background: rgba(243, 239, 234, 0.6); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; margin-top: 6px;
}
.progress-stage { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.pulse-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--foreground);
  animation: dot-pulse 1.2s ease-in-out infinite; margin-left: auto;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.progress-indeterminate {
  position: relative; overflow: hidden; background: var(--muted);
  border-radius: 999px; height: 4px;
}
.progress-indeterminate::after {
  content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent 0%, var(--foreground) 50%, transparent 100%);
  border-radius: 999px; animation: progress-sweep 1.6s ease-in-out infinite;
}
@keyframes progress-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.progress-meta {
  display: flex; justify-content: space-between; margin-top: 9px;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-foreground);
}
.progress-tip { font-size: 12px; color: var(--muted-foreground); margin-top: 8px; }

/* Lightbox */
.lightbox-card {
  width: min(95vw, 1000px); max-height: 92vh; display: flex; flex-direction: column;
  background: var(--background); border-radius: 18px; overflow: hidden;
}
.lightbox-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 24px 12px; }
.lightbox-head h3 { font-size: 24px; }
.lightbox-body { padding: 0 24px; overflow: auto; }
.lightbox-body img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: rgba(0, 0, 0, 0.05); border-radius: 12px; }
.lightbox-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px 20px; }

.spinner {
  width: 34px; height: 34px; margin: 0 auto; border-radius: 999px;
  border: 3px solid var(--muted); border-top-color: var(--foreground);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.big-check { font-size: 44px; color: var(--success); margin-bottom: 14px; }
.balance-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(28, 27, 25, 0.16);
  padding: 12px 16px; font-size: 14px; min-width: 220px; max-width: 360px;
  animation: toast-in 0.25s ease-out;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--destructive); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Admin ---------- */
.admin-body { background: var(--background); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 232px; flex-shrink: 0; background: var(--card);
  border-right: 1px solid var(--border); padding: 22px 14px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-logo { font-size: 19px; text-decoration: none; padding: 0 10px 18px; display: block; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  font-size: 14px; text-decoration: none; border-radius: 8px; color: var(--muted-foreground);
}
.admin-sidebar nav a .icon { width: 18px; text-align: center; }
.admin-sidebar nav a:hover { background: var(--secondary); color: var(--foreground); }
.admin-sidebar nav a.active { background: var(--foreground); color: var(--background); }
.admin-side-foot { padding: 14px 10px 0; border-top: 1px solid var(--border); }
.admin-main { flex: 1; padding: 28px 32px 64px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: 30px; }
.admin-cols { display: grid; grid-template-columns: 5fr 7fr; gap: 22px; align-items: start; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 20px; }
.stat-value { font-size: 32px; margin-top: 4px; }
.searchbar { display: flex; gap: 10px; max-width: 420px; }
.searchbar input { margin: 0; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 2px 4px 2px 0; }
.inline-form input { margin: 0; padding: 6px 8px; font-size: 13px; }
.actions-cell { white-space: normal; }
.pair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pair-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair-thumbs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.content-row { display: block; }
.content-key { display: block; font-size: 12px; color: var(--muted-foreground); }
.content-key em { font-style: normal; font-size: 11px; }
.going-live { font-size: 14px; line-height: 1.8; padding-left: 20px; }
.going-live li { margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .admin-cols { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pair-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .desktop-only { display: none; }
  .mobile-only { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .dash-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .admin-side-foot { border: 0; padding: 0 10px; }
  .admin-main { padding: 20px 16px 48px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .type-grid, .pair-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
