:root {
  --bg: #08080b;
  --panel: rgba(15, 17, 24, 0.82);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #9ca3af;
  --accent: #ff202d;
  --accent-2: #ff4a55;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #050507;
  color: var(--text);
}
.site-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 0, 40, 0.12), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(255, 0, 40, 0.12), transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(255, 0, 40, 0.10), transparent 24%),
    linear-gradient(180deg, #0b0b10 0%, #040406 100%);
  pointer-events: none;
}
.app-shell {
  position: relative;
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 28px;
}
.topbar {
  display: grid;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}
.eyebrow {
  color: #c9cad1;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.topbar h1 {
  margin: 0;
  font-size: clamp(24px, 5vw, 42px);
  line-height: .98;
  letter-spacing: -.03em;
}
.call-box {
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.call-label { color: #d2d5df; font-size: 13px; }
.call-number { color: #ff434d; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.preview-card, .panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}
.preview-card { padding: 14px; }
.preview-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 4px 6px 12px;
}
.preview-title, .panel-title {
  font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #e7e8ee;
}
.invite-stage {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #020204;
  border: 1px solid rgba(255,255,255,.06);
}
.invite-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #020204;
}
.controls-section {
  display: grid;
  gap: 16px;
}
.panel { padding: 16px; }
.style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}
.style-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #fff;
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.style-card.active {
  border-color: rgba(255, 64, 77, .9);
  box-shadow: 0 0 0 1px rgba(255, 64, 77, .55) inset, 0 0 24px rgba(255, 43, 57, .18);
}
.style-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background-size: cover;
}
.style-thumb.classic { background: linear-gradient(135deg,#0b0b10,#1a1a1f 55%,#5d0c13), linear-gradient(#fff,#fff); position: relative; }
.style-thumb.horror { background: linear-gradient(135deg,#050507,#141417 50%,#3f0b11); }
.style-thumb.girls { background: linear-gradient(135deg,#100711,#201225 50%,#5e164f); }
.style-thumb.boys { background: linear-gradient(135deg,#071019,#101725 55%,#0f3f70); }
.switcher {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.switch-btn {
  appearance: none; border: 1px solid rgba(255,255,255,.08); cursor: pointer;
  border-radius: 18px; background: rgba(255,255,255,.03); color: #fff; padding: 15px 14px; font-weight: 800; font-size: 18px;
}
.switch-btn.active { background: linear-gradient(180deg, #ff2431, #cb0f1d); box-shadow: 0 10px 28px rgba(255,20,30,.26); }
.field-list { display: grid; gap: 12px; margin-top: 12px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 14px; font-weight: 700; color: #ececf1; }
.field input {
  width: 100%; border: 1px solid rgba(255,255,255,.08); outline: none;
  border-radius: 16px; background: rgba(0,0,0,.26); color: #fff; padding: 16px 16px; font-size: 21px; font-weight: 700;
}
.field input::placeholder { color: #676b74; }
.sticky-actions { display: grid; gap: 10px; }
.action-btn, .mini-btn {
  appearance: none; border: 0; cursor: pointer; font-weight: 800; color: #fff;
}
.action-btn {
  border-radius: 18px; padding: 16px 18px; font-size: 18px;
}
.action-btn.primary, .mini-btn {
  background: linear-gradient(180deg,#ff303c,#ce0c1a);
  box-shadow: 0 14px 30px rgba(255,20,30,.24);
}
.action-btn.secondary, .mini-btn-dark {
  background: linear-gradient(180deg,#2c2d33,#17181c);
  border: 1px solid rgba(255,255,255,.08);
}
.preview-actions { display:flex; gap:8px; }
.mini-btn { border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.desktop-only { display:none; }

@media (min-width: 980px) {
  .app-shell { width: min(1320px, calc(100% - 42px)); padding-top: 24px; }
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 22px;
  }
  .call-box { justify-self: end; }
  .layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 420px);
    align-items: start;
  }
  .preview-card { padding: 18px; }
  .preview-toolbar { padding: 2px 4px 14px; }
  .desktop-only { display:flex; }
  .sticky-actions { position: sticky; top: 16px; }
}
