
:root {
  color-scheme: dark;
  --bg: #100c1c;
  --panel: rgba(30, 23, 46, .84);
  --panel-strong: #201832;
  --text: #f7f2ff;
  --muted: #b8aeca;
  --faint: #827796;
  --purple: #bd8bff;
  --purple-bright: #d5b5ff;
  --border: rgba(210, 184, 255, .16);
  --serif: 'Manrope', sans-serif;
  --sans: 'DM Sans', sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh; margin: 0; color: var(--text); font-family: var(--sans);
  background: radial-gradient(ellipse at 52% 18%, #211532 0%, #151022 43%, #100c1c 100%);
  overflow-x: hidden;
}
button, input { font: inherit; }
a { color: inherit; }
.ambient { position: fixed; width: 28rem; height: 28rem; border-radius: 50%; filter: blur(100px); opacity: .16; pointer-events: none; z-index: 0; }
.ambient-one { background: #8d4eea; top: 2rem; left: -17rem; }
.ambient-two { background: #a85bca; right: -18rem; bottom: 0; }
.topbar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 27px clamp(24px, 6vw, 86px); }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(213,181,255,.43); border-radius: 10px; color: var(--purple-bright); font-size: 16px; }
.admin-link { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .2s; }
.admin-link:hover { color: var(--purple-bright); }
.page-shell { position: relative; z-index: 1; width: min(100% - 32px, 900px); margin: 6.4vh auto 0; }
.panel { border: 1px solid var(--border); background: linear-gradient(145deg, rgba(36, 27, 53, .88), rgba(23, 18, 36, .93)); box-shadow: 0 28px 100px rgba(0,0,0,.28); border-radius: 28px; }
.gate-panel, .countdown-panel { width: min(100%, 680px); min-height: 510px; margin: 0 auto; padding: clamp(34px, 7vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--purple-bright); text-transform: uppercase; font-size: 11px; letter-spacing: .18em; font-weight: 700; }
.sparkle { font-size: 15px; }
h1 { margin: 20px 0 15px; font-family: var(--serif); font-size: clamp(42px, 7.2vw, 68px); line-height: 1.08; font-weight: 700; letter-spacing: -.065em; }
h1 span { color: var(--purple); }
.intro { color: var(--muted); line-height: 1.7; max-width: 440px; margin: 0; font-size: 15px; }
.gate-form { margin-top: 39px; }
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: #e8dffc; }
.code-row { display: flex; gap: 11px; margin-top: 10px; }
input { width: 100%; min-width: 0; background: rgba(12, 9, 20, .62); border: 1px solid rgba(211, 186, 248, .2); border-radius: 12px; padding: 14px 16px; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: rgba(190, 143, 255, .85); box-shadow: 0 0 0 3px rgba(174, 113, 245, .12); }
input::placeholder { color: #746a84; }
.button { display: inline-flex; flex: 0 0 auto; gap: 12px; align-items: center; justify-content: center; min-height: 47px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .2s, filter .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button-primary { background: linear-gradient(135deg, #c18fff, #a669f2); color: #1a1028; box-shadow: 0 8px 28px rgba(160, 98, 233, .21); }
.button-outline { background: rgba(169, 112, 238, .08); border: 1px solid rgba(190, 143, 255, .35); color: var(--purple-bright); }
.button-quiet { background: transparent; border: 1px solid var(--border); color: var(--muted); min-height: 40px; }
.form-message { min-height: 19px; margin: 9px 0 0; font-size: 12px; color: #f2a6c9; }
.privacy-note { display: flex; align-items: center; gap: 9px; margin-top: 35px; color: var(--faint); font-size: 11px; }
.lock-icon { color: var(--purple); font-size: 16px; transform: rotate(180deg); }
.hidden { display: none !important; }
.countdown-panel { text-align: center; align-items: center; min-height: 540px; }
.countdown-panel .intro { margin: 0 auto; }
.countdown-panel.countdown-ending { animation: countdown-out .38s ease-in both; pointer-events: none; }
@keyframes countdown-out { to { opacity: 0; transform: translateY(-8px) scale(.99); filter: blur(3px); } }
.timer { display: flex; align-items: stretch; gap: clamp(9px, 2vw, 17px); margin: 42px 0 20px; }
.time-box { display: grid; align-content: center; gap: 8px; min-width: clamp(62px, 12vw, 103px); min-height: 94px; padding: 13px; border: 1px solid rgba(207, 177, 255, .17); background: rgba(14, 10, 23, .56); border-radius: 16px; }
.time-box strong { font-family: var(--serif); font-size: clamp(27px, 5vw, 39px); letter-spacing: -.05em; color: var(--purple-bright); font-variant-numeric: tabular-nums; }
.time-box span { color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.countdown-foot { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--faint); font-size: 11px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #c99aff; box-shadow: 0 0 12px #b36bff; }
.not-started { margin-top: 28px; padding: 15px 19px; border-radius: 14px; color: var(--muted); border: 1px solid var(--border); background: rgba(14,10,23,.5); font-size: 13px; }
.not-started span { color: var(--purple); margin-left: 5px; }
.products-section { padding: 14px 0 20px; }
.products-section.revealing > .eyebrow,
.products-section.revealing > h1,
.products-section.revealing > .intro,
.products-section.revealing > .product-grid,
.products-section.revealing > .affiliate-note { animation: reveal-in .7s cubic-bezier(.2,.75,.25,1) both; }
.products-section.revealing > h1 { animation-delay: 90ms; }
.products-section.revealing > .intro { animation-delay: 150ms; }
.products-section.revealing .product-card { animation: card-reveal .65s cubic-bezier(.2,.75,.25,1) both; animation-delay: calc(220ms + var(--card-index, 0) * 110ms); }
@keyframes reveal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-reveal { from { opacity: 0; transform: translateY(22px) scale(.975); filter: blur(5px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
.products-section > .intro { margin-bottom: 32px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { display: block; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(145deg, rgba(39,29,58,.96), rgba(25,19,39,.98)); border-radius: 20px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); border-color: rgba(202,160,255,.5); box-shadow: 0 16px 44px rgba(0,0,0,.22); }
.product-image { position: relative; display: grid; place-items: center; height: 190px; background: radial-gradient(ellipse, rgba(159,105,223,.2), rgba(18,13,27,.6)); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.very-wanted-badge { position: absolute; z-index: 1; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 7px 10px; border: 1px solid rgba(255,231,197,.45); border-radius: 999px; background: linear-gradient(135deg, #ffc46d, #ff8a45); box-shadow: 0 4px 18px rgba(255,138,69,.25); color: #351b12; font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .01em; }
.image-placeholder { color: rgba(211,181,255,.6); font-size: 42px; }
.product-copy { padding: 17px 18px 20px; }
.product-label { color: var(--purple); font-size: 9px; letter-spacing: .15em; font-weight: 700; text-transform: uppercase; }
.product-copy h2 { margin: 8px 0 13px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; }
.store-circle { display: grid; place-items: center; width: 44px; height: 44px; padding: 3px; border: 1px solid rgba(202,160,255,.36); border-radius: 50%; background: rgba(169,112,238,.1); color: var(--purple-bright); text-align: center; text-decoration: none; font-size: 8px; line-height: 1; font-weight: 700; letter-spacing: -.04em; overflow-wrap: anywhere; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; }
.store-circle:hover, .store-circle:focus-visible { transform: translateY(-2px) scale(1.06); border-color: var(--purple-bright); background: rgba(169,112,238,.24); box-shadow: 0 5px 18px rgba(169,112,238,.2); outline: none; }
.affiliate-note { color: var(--faint); margin-top: 19px; font-size: 11px; }
.footer { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px 10px; color: #736984; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer-heart { color: var(--purple); font-size: 14px; }

.admin-shell { width: min(100% - 32px, 960px); margin-top: 4vh; }
.login-panel { width: min(100%, 650px); margin: 0 auto; padding: clamp(32px, 6vw, 60px); }
.editor-panel { padding: clamp(24px, 5vw, 48px); }
.editor-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.editor-heading h1 { margin-bottom: 0; font-size: clamp(36px, 5vw, 52px); }
.editor-block { border-top: 1px solid var(--border); padding: 27px 0 30px; }
.block-title { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 21px; }
.step { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; color: var(--purple-bright); background: rgba(170,109,241,.12); font-size: 11px; font-weight: 700; }
.block-title h2 { margin: 1px 0 5px; font-family: var(--serif); font-size: 18px; letter-spacing: -.03em; }
.block-title p { margin: 0; color: var(--faint); font-size: 12px; }
#countdownEndsAt { max-width: 340px; display: block; margin-top: 9px; color-scheme: dark; }
.text-button { display: block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 11px; }
.product-editors { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; margin-bottom: 15px; }
.product-editor { min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: rgba(13,9,21,.35); }
.product-editor-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--purple-bright); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.product-editor-actions { display: flex; gap: 5px; }
.product-move, .remove-product { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; }
.product-move:hover:not(:disabled), .remove-product:hover:not(:disabled) { color: var(--purple-bright); border-color: rgba(202,160,255,.5); background: rgba(169,112,238,.1); }
.product-move:disabled { opacity: .3; cursor: default; }
.product-editor label { margin-top: 10px; color: var(--muted); font-size: 10px; }
.product-editor input { margin-top: 6px; padding: 10px 11px; border-radius: 9px; font-size: 11px; }
.product-editor input::placeholder { font-size: 10px; }
.product-editor .highlight-toggle { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: #f1c08b; cursor: pointer; font-size: 11px; letter-spacing: 0; text-transform: none; }
.product-editor .highlight-toggle input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; padding: 0; border: 1px solid rgba(255,174,96,.55); border-radius: 4px; background: rgba(255,155,71,.12); accent-color: #ff9d4d; }
.store-editor-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-top: 15px; color: #e8dffc; font-size: 10px; font-weight: 700; }
.store-hint { color: var(--faint); font-size: 9px; font-weight: 400; }
.store-editor-list { display: grid; gap: 8px; }
.store-editor-row { display: grid; grid-template-columns: minmax(70px, .4fr) minmax(0, 1fr) 28px; gap: 8px; align-items: end; }
.store-editor-row label { min-width: 0; }
.remove-store { width: 28px; height: 35px; margin-bottom: 1px; border: 1px solid var(--border); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; }
.remove-store:hover { color: #f2a6c9; border-color: rgba(242,166,201,.5); }
.add-store { margin-top: 8px; }
.save-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--border); padding-top: 22px; }
.save-row .form-message { margin: 0; }
@media (max-width: 680px) {
  .topbar { padding: 19px 20px; }
  .page-shell { margin-top: 4vh; }
  .gate-panel, .countdown-panel { min-height: 480px; border-radius: 23px; }
  .code-row { flex-direction: column; }
  .code-row .button { width: 100%; }
  .timer { width: 100%; justify-content: center; gap: 7px; }
  .time-box { min-width: 0; flex: 1; padding: 10px 4px; min-height: 83px; }
  .time-box span { font-size: 8px; letter-spacing: .06em; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  .product-image { height: 145px; }
  .product-copy { padding: 13px; }
  .product-copy h2 { font-size: 13px; }
  .product-editors { grid-template-columns: 1fr; }
  .editor-heading { align-items: flex-start; }
  .editor-heading h1 { font-size: 38px; }
  .save-row { align-items: stretch; flex-direction: column-reverse; }
}
@media (max-width: 390px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 205px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
