﻿:root{
  --bg0:#06050b;
  --bg1:#0b0814;
  --surface: rgba(255,255,255,.045);
  --surface2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(138,92,255,.28);
  --text:#f4f1ff;
  --muted: rgba(244,241,255,.72);
  --muted2: rgba(244,241,255,.56);
  --v1:#8a5cff;
  --v2:#6e3bff;
  --v3:#b79cff;
  --shadow1: 0 18px 80px rgba(0,0,0,.55);
  --shadow2: 0 12px 48px rgba(0,0,0,.45);
  --glow: 0 14px 60px rgba(138,92,255,.22);
  --glow2: 0 18px 90px rgba(138,92,255,.30);
  --r16:16px;
  --r24:24px;
  --r28:28px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --font-ui: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;
}
*{box-sizing:border-box}
html,body{height:100%}
html{
  background: linear-gradient(180deg, var(--bg1), var(--bg0));
}
body{
  margin:0;
  min-height:100svh;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 18% 12%, rgba(138,92,255,.22), transparent 58%),
    radial-gradient(900px 520px at 82% 28%, rgba(183,156,255,.14), transparent 62%),
    radial-gradient(960px 560px at 50% 86%, rgba(138,92,255,.12), transparent 68%),
    radial-gradient(900px 540px at 50% 110%, rgba(138,92,255,.09), transparent 72%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  position: relative;
}
h1,h2,h3,h4,h5,h6{color:var(--text)}
p{color:var(--muted)}

/* subtle noise texture */
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.06;
  mix-blend-mode: overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* global atmospheric layer */
#stars{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .48;
  mix-blend-mode: screen;
}
.star-sprinkles{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .44;
  background:
    radial-gradient(760px 320px at 50% 30%, rgba(183,156,255,.14), rgba(183,156,255,0) 70%),
    radial-gradient(920px 460px at 50% 76%, rgba(138,92,255,.11), rgba(138,92,255,0) 74%);
  filter: blur(1.2px);
  mix-blend-mode: screen;
  animation: sprPulse 16s ease-in-out infinite alternate;
}
body.page--home .star-sprinkles{
  background:
    radial-gradient(680px 300px at 50% 34%, rgba(183,156,255,.18), rgba(183,156,255,0) 72%),
    radial-gradient(900px 440px at 50% 78%, rgba(138,92,255,.13), rgba(138,92,255,0) 76%);
}
body.gallery-page .star-sprinkles{
  background:
    radial-gradient(760px 320px at 50% 25%, rgba(183,156,255,.20), rgba(183,156,255,0) 72%),
    radial-gradient(980px 480px at 50% 74%, rgba(138,92,255,.14), rgba(138,92,255,0) 76%);
}
@keyframes sprPulse{
  from { opacity:.38; }
  to { opacity:.52; }
}
#navbar,main,#footer,.topbar,.site-nav,.site-footer,.footer{
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce){
  .star-sprinkles{animation:none}
}

/* IMPORTANT: remove any existing strong diagonal/repeating stripe background rules.
   If found in old CSS, delete/disable them. Do not add obvious stripes. */

.container{
  width:min(1100px, calc(100% - 48px));
  margin:0 auto;
  padding:0;
}
a{color:inherit; text-decoration:none}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6,5,11,.82), rgba(6,5,11,.46));
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin:0;
}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px}
.brand img{width:28px; height:28px; filter: drop-shadow(0 0 18px rgba(138,92,255,.45))}
.nav-actions{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  cursor:pointer; font-weight:700;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(138,92,255,.35); box-shadow: var(--glow)}
.btn:active{transform: translateY(0) scale(.99)}
.btn-primary{
  border:1px solid rgba(138,92,255,.45);
  background: linear-gradient(180deg, rgba(138,92,255,.95), rgba(110,59,255,.92));
  box-shadow: var(--glow2);
}
.btn-primary:hover{border-color: rgba(183,156,255,.55)}
.btn-ghost{background: transparent}

.card{
  border-radius: var(--r28);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(138,92,255,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow1);
}
.card-inner{padding: clamp(18px, 2vw, 28px)}
.card-title{font-family: var(--font-display); letter-spacing:.2px}

.h1{margin:0; font-size: clamp(34px, 4.4vw, 56px); line-height:1.06; letter-spacing:-.6px}
.sub{margin: 10px 0 0; max-width: 62ch; color: var(--muted); font-size: 15px; line-height:1.55}
.hero{padding: clamp(46px, 7vw, 92px) 0 48px}
.hero-grid{display:grid;gap:22px;justify-items:center;text-align:center}
.lamp-wrap{
  width:88px;
  height:88px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background: radial-gradient(circle at 30% 30%, rgba(183,156,255,.35), rgba(138,92,255,.12) 55%, rgba(255,255,255,.03) 100%);
  border:1px solid rgba(183,156,255,.25);
  box-shadow:0 18px 90px rgba(138,92,255,.22);
}
.lamp-wrap img{width:42px;height:42px;filter: drop-shadow(0 0 28px rgba(138,92,255,.55))}
.cta-row{margin-top:18px;display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.hero__lamp{
  appearance:none;
  padding:0;
  cursor:pointer;
}
.sphere,
.orb,
.bubble,
.crystal,
.hero-orb,
.lamp-sphere,
.lamp-wrap.is-sphere,
.remove-sphere{
  display:none !important;
}
.page--home .hero-grid{
  position:relative;
  gap: clamp(10px, 1.3vw, 16px);
  max-width: min(900px, 100%);
  margin-inline: auto;
}
.page--home .hero-grid::before{
  content:"";
  position:absolute;
  inset: 8% 12% 24%;
  z-index:-1;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(138,92,255,.16), rgba(138,92,255,.05) 42%, rgba(138,92,255,0) 72%);
  filter: blur(26px);
}
.page--home .hero-grid::after{
  content:"";
  position:absolute;
  inset: 34% 16% 2%;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 12% 28%, rgba(183,156,255,.22) 0 1px, transparent 1.4px),
    radial-gradient(circle at 28% 54%, rgba(183,156,255,.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 24%, rgba(183,156,255,.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 58%, rgba(183,156,255,.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 90% 42%, rgba(183,156,255,.20) 0 1px, transparent 1.4px),
    radial-gradient(ellipse at 50% 76%, rgba(138,92,255,.18), rgba(138,92,255,0) 62%);
  opacity:.46;
}
.page--home .hero-lamp-badge{
  position:relative;
  width: clamp(200px, 28vw, 290px);
  height: clamp(98px, 13vw, 142px);
  border-radius:24px;
  display:grid;
  place-items:center;
  padding:0;
  margin: clamp(2px, .5vw, 6px) auto clamp(10px, 1.2vw, 16px);
  border:none;
  background: transparent;
  box-shadow: none;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  outline:none;
  transition: none;
}
.page--home .hero-lamp-badge::before{
  content:"";
  position:absolute;
  inset: 10% -8% -10%;
  border-radius:999px;
  background: radial-gradient(circle, rgba(138,92,255,.16) 0%, rgba(138,92,255,.04) 46%, rgba(138,92,255,0) 72%);
  filter: blur(12px);
  z-index:-2;
}
.page--home .hero-lamp-badge::after{
  content:"";
  position:absolute;
  left:50%;
  bottom: clamp(-12px, -1.6vw, -18px);
  width: clamp(250px, 38vw, 430px);
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(138,92,255,0), rgba(138,92,255,.70), rgba(138,92,255,0));
  box-shadow:
    0 0 26px rgba(138,92,255,.38),
    0 0 56px rgba(138,92,255,.20);
  opacity:.92;
  z-index:-1;
}
.page--home .hero-lamp-badge img{
  width: clamp(146px, 20vw, 220px);
  height:auto;
  max-width:none;
  margin:0;
  filter: drop-shadow(0 0 12px rgba(138,92,255,.34));
  opacity:.96;
}
.page--home .hero h1,
.page--home .hero .h1{
  display:grid;
  gap: clamp(4px, .8vw, 10px);
  line-height: 1;
  margin: 0;
  text-align:center;
  text-shadow: 0 6px 18px rgba(0,0,0,.26);
}
.page--home .hero-title-main{
  display:block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(50px, 5.9vw, 82px);
  line-height: .98;
  letter-spacing: -.9px;
}
.page--home .hero-title-accent{
  display:block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: -.4px;
  color: rgba(244,241,255,.90);
}
.page--home .sub{
  margin-top: clamp(12px, 1.6vw, 20px);
  max-width: 38ch;
  color: rgba(244,241,255,.72);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.55;
}
.page--home .hero .cta-row{
  margin-top: clamp(26px, 3.3vw, 44px);
  display:grid;
  gap:14px;
  justify-content:center;
  justify-items:center;
}
.page--home .hero .cta-row .btn{
  min-width: clamp(180px, 22vw, 230px);
  padding: 12px 26px;
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 700;
  border-radius: 999px;
}
.page--home .hero .cta-row .btn-primary{
  border:1px solid rgba(157,120,255,.52);
  background: linear-gradient(180deg, rgba(140,95,255,.96), rgba(104,57,236,.95));
  box-shadow:
    0 10px 34px rgba(104,57,236,.28),
    0 0 0 1px rgba(255,255,255,.06) inset;
}
.page--home .hero .hero-cta-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color: rgba(244,241,255,.84);
  font-size: clamp(17px, 1.15vw, 20px);
  font-weight: 500;
  letter-spacing: .1px;
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease), opacity .18s var(--ease);
}
.page--home .hero .hero-cta-link:hover{
  color: rgba(244,241,255,.97);
  transform: translateX(1px);
}
.page--home .hero .hero-cta-link span{
  font-size: 1.04em;
  line-height: 1;
}
/* override any legacy light hero rules */
.page--home .hero{
  max-width: none;
  margin: 0 auto;
  display:grid;
  align-items:start;
  padding: clamp(30px, 4.2vw, 56px) 0 clamp(28px, 4.4vw, 44px);
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
@media (max-width:760px){
  .page--home .hero h1,
  .page--home .hero .h1{
    gap: 6px;
  }
  .page--home .hero-title-main{font-size: clamp(40px, 12.4vw, 62px);}
  .page--home .hero-title-accent{font-size: clamp(32px, 9.8vw, 48px);}
  .page--home .hero-lamp-badge{
    width: clamp(170px, 52vw, 228px);
    height: clamp(90px, 28vw, 120px);
    margin: 4px auto 10px;
  }
  .page--home .hero-lamp-badge img{
    width: clamp(120px, 39vw, 170px);
  }
  .page--home .hero-lamp-badge::after{
    width: clamp(200px, 66vw, 300px);
    height: 2px;
  }
  .page--home .hero-grid::after{
    inset: 38% 6% 2%;
    opacity:.58;
  }
  .page--home .sub{
    font-size: 14px;
    max-width: 32ch;
  }
  .page--home .hero .cta-row{
    margin-top: 26px;
    gap: 12px;
  }
  .page--home .hero .cta-row .btn{
    min-width: 172px;
    padding: 11px 22px;
    font-size: 16px;
  }
  .page--home .hero .hero-cta-link{
    font-size: 16px;
  }
}

.input{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
  box-shadow: 0 10px 26px rgba(0,0,0,.24);
}
.input::placeholder{color: rgba(244,241,255,.45)}
.input:focus{border-color: rgba(138,92,255,.40); box-shadow: 0 0 0 4px rgba(138,92,255,.14), 0 16px 50px rgba(0,0,0,.35)}

.page{
  padding: clamp(26px, 4vw, 56px) 0 clamp(28px, 4vw, 42px);
}
main{
  flex:1 0 auto;
  background: transparent;
}
.center{
  display:grid;
  place-items:center;
}
.stack{display:grid; gap:14px}

/* LOGIN FORM CONSTRAINT */
.auth-shell{width:min(520px, 100%); }
.auth-card{width:100%}

/* MODAL */
.modal-backdrop{
  position:fixed; inset:0; z-index:1000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  display:none;
  place-items:center;
  padding: 22px;
}
.modal-backdrop.is-open{display:grid}
.modal-backdrop > .modal{
  width:min(720px, 100%);
  border-radius: var(--r28);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(138,92,255,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow1);
}
.modal-backdrop > .modal .modal-inner{padding: 20px}
.modal-backdrop > .modal h3{margin:0 0 6px}
.modal-backdrop > .modal p{margin:0; color: var(--muted)}
.modal-backdrop > .modal .modal-actions{margin-top:14px; display:flex; justify-content:flex-end; gap:10px}

.state-wrap{max-width:720px;margin:8vh auto;padding:24px}
.state-card{
  border-radius:var(--r24);
  border:1px solid var(--stroke);
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(138,92,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow:var(--shadow2);
  padding:28px;
}
.state-row{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}

/* SIMPLE REVEAL */
.reveal{opacity:0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease)}
.reveal.is-in{opacity:1; transform:none}

/* ===== integration mapping for existing Sendy classes ===== */
.site-nav{position:sticky;top:0;z-index:50;backdrop-filter:blur(14px);background:linear-gradient(180deg, rgba(6,5,11,.82), rgba(6,5,11,.46));border-bottom:1px solid rgba(255,255,255,.06);margin:0}
.site-nav__inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:10px}
.site-nav__brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.2px;color:var(--text)}
.site-nav__brand-icon{width:28px;height:28px;filter:drop-shadow(0 0 18px rgba(138,92,255,.45))}
.site-nav__links{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.site-nav__link{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);color:var(--text);font-weight:700;
  box-shadow:0 10px 30px rgba(0,0,0,.22);
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.site-nav__link:hover{transform:translateY(-1px);border-color:rgba(138,92,255,.35);box-shadow:var(--glow)}

.btn--primary{border:1px solid rgba(138,92,255,.45);background:linear-gradient(180deg, rgba(138,92,255,.95), rgba(110,59,255,.92));box-shadow:var(--glow2);color:var(--text)}
.btn--secondary,.btn--ghost{background:transparent;color:var(--text);border:1px solid rgba(255,255,255,.10)}
.btn--disabled,.btn[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}
.btn--disabled:hover,.btn[disabled]:hover{transform:none;border-color:rgba(255,255,255,.10);box-shadow:none}
.gift-check-row{display:flex;align-items:center;gap:.55rem;border:1px solid var(--stroke);background:var(--surface2);border-radius:12px;padding:.52rem .7rem;color:var(--muted);font-size:.92rem}
.gift-check-row input[type="checkbox"]{width:1.05rem;height:1.05rem;accent-color:var(--v2);flex:0 0 auto}

input,textarea,select{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:var(--text)}
input::placeholder,textarea::placeholder{color:rgba(244,241,255,.45)}
input:focus,textarea:focus,select:focus{outline:none;border-color:rgba(138,92,255,.40);box-shadow:0 0 0 4px rgba(138,92,255,.14), 0 16px 50px rgba(0,0,0,.35)}
label,.text-gray-600,.text-gray-500,.text-gray-400{color:var(--muted)!important}

.gallery-shell{padding-top:clamp(1.6rem, 2.8vw, 2.6rem);padding-bottom:clamp(2rem, 3vw, 3rem)}
.gallery-title{margin-bottom:.55rem;font-size:clamp(1.8rem, 3.2vw, 2.3rem);letter-spacing:.02em;color:var(--text)}
.gallery-subtitle,.gallery-meta,.gallery-search-label,.gallery-empty{color:var(--muted)}
.gallery-controls{margin:0 auto;max-width:560px;display:grid;gap:.45rem}
.gallery-search{width:100%}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:clamp(.95rem, 2vw, 1.3rem)}
#wishGrid,.card-grid{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}
/* force dark background on gallery page; overrides legacy gallery.css light background */
body.gallery-page{
  background:
    radial-gradient(1200px 700px at 18% 12%, rgba(138,92,255,.22), transparent 58%),
    radial-gradient(900px 520px at 82% 28%, rgba(183,156,255,.14), transparent 62%),
    radial-gradient(800px 520px at 50% 100%, rgba(138,92,255,.10), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg0)) !important;
}

.tile,.creator-card,.wishlist-card,.soft-card,.user-header,.wishlist-wrapper,#profileHeader,.wishlists,#wishlistGrid > div,#wishGrid .wish-card,
.max-w-md,.uploader,.summary,dialog form{
  border-radius: var(--r24);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(138,92,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  box-shadow: var(--shadow2);
  color: var(--text);
}

.creator-card,.wishlist-card,.product,.wish-card,.wish-profile-card,.checkout-wish-card{
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.creator-card:hover,.wishlist-card:hover,.product:hover,.wish-card:hover,.wish-profile-card:hover,.checkout-wish-card:hover{
  transform:translateY(-3px);border-color:var(--stroke2);box-shadow:var(--glow);
}
.creator-card__img,.avatar{width:64px;height:64px;border-radius:999px;border:1px solid rgba(183,156,255,.25);object-fit:cover;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.creator-card__name,.wishlist-card__title,.wish-card__title{color:var(--text)}
.creator-card__bio,.wishlist-card__desc,.wish-card__status{color:var(--muted2)}
.creator-card__cta{color:var(--text)}
/* override legacy light card rules in gallery.css/polish.css */
body.gallery-page .creator-card{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(138,92,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)) !important;
  color: var(--text);
}
body.gallery-page .creator-card::before{
  content:"";
  position:absolute;
  top:-1px;
  left:18%;
  width:64%;
  height:2px;
  background:linear-gradient(90deg, rgba(183,156,255,0), rgba(183,156,255,.88), rgba(183,156,255,0));
  opacity:.72;
  pointer-events:none;
}
body.gallery-page .creator-card::after{
  content:"";
  position:absolute;
  bottom:-1px;
  left:22%;
  width:56%;
  height:2px;
  background:linear-gradient(90deg, rgba(138,92,255,0), rgba(138,92,255,.72), rgba(138,92,255,0));
  opacity:.56;
  pointer-events:none;
}
body.gallery-page .creator-card__name{color:var(--text)}
body.gallery-page .creator-card__bio,
body.gallery-page .creator-card__cta{color:var(--muted)}

.product,.wish-card,.wish-profile-card,.checkout-wish-card{border-radius:20px;border:1px solid var(--stroke);background:var(--surface);overflow:hidden}
.product img,.wish-card__img,.wish-profile-card img,.checkout-wish-card img,.wish-profile-card .w-full.h-40{width:100%;height:160px;object-fit:cover;display:block}
.wish-card__price,.price{color:rgba(244,241,255,.78);font-weight:700}
.badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid var(--stroke);background:var(--surface2);color:rgba(244,241,255,.86);font-size:13px}
.badge-reserved{color:rgba(244,241,255,.65)}

#wishModal{border:none;border-radius:var(--r28);padding:0;background:transparent;box-shadow:none}
#wishModal::backdrop{background:rgba(0,0,0,.55);backdrop-filter:blur(8px)}
#wishModal form{min-width:min(92vw,460px)}

#wishlist-modal,
#gift-stats-modal,
#notifications-modal{display:none}
#wishlist-modal.is-open,
#gift-stats-modal.is-open,
#notifications-modal.is-open{display:grid}

#wishlist-modal .modal,
#gift-stats-modal .modal,
#notifications-modal .modal{width:min(720px,100%)}
#wishlist-modal .modal-inner,
#gift-stats-modal .modal-inner,
#notifications-modal .modal-inner{padding:20px}

.notification-item{
  border:1px solid var(--stroke);
  background:var(--surface);
  border-radius:12px;
  padding:.75rem .85rem;
}
.notification-item h4{margin:0;font-size:.95rem;color:var(--text)}
.notification-item p{margin:.3rem 0 0;color:var(--muted);font-size:.89rem}
.notification-item time{display:block;margin-top:.45rem;color:var(--muted2);font-size:.78rem}
.modal .modal-content{
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(138,92,255,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  color:var(--text);
}

.account-stat-card{
  background: var(--surface2);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}
.account-stat-card__label{color:var(--muted2)}
.account-stat-card__value{color:var(--text)}

.footer,.site-footer{
  padding:22px 0 36px;
  color:rgba(244,241,255,.55);
  text-align:center;
  margin-top:0 !important;
  border-top:none !important;
  background:transparent !important;
  box-shadow:none !important;
}
.footer a,.site-footer a{color:rgba(244,241,255,.62)}
.footer a:hover,.site-footer a:hover{color:rgba(244,241,255,.90)}
.footer-links{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}
.footer-links a:not(:last-child)::after{content:""}
.footer-credit{margin-top:10px}
#footer{margin:0;padding:0}
.site-footer .container,
.footer .container{
  padding-top:0;
  padding-bottom:0;
}

/* homepage lamp: keep interaction premium and static */
.page--home .hero-lamp-badge,
.page--home .hero-lamp-badge:hover,
.page--home .hero-lamp-badge:active,
.page--home .hero-lamp-badge:focus{
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}
.page--home .hero-lamp-badge:focus-visible{
  box-shadow: 0 0 0 2px rgba(138,92,255,.20);
}

.hidden{display:none !important}
/* profile page: keep full page dark and force wish cards off legacy white styles */
body.page--profile{
  background:
    radial-gradient(1200px 700px at 18% 12%, rgba(138,92,255,.22), transparent 58%),
    radial-gradient(900px 520px at 82% 28%, rgba(183,156,255,.14), transparent 62%),
    radial-gradient(800px 520px at 50% 100%, rgba(138,92,255,.10), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg0)) !important;
}
body.page--profile .wish-profile-card{
  border:1px solid var(--stroke) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow2) !important;
  color: var(--text);
}
body.page--profile #wishlistGrid > div{
  border: 1px solid var(--stroke) !important;
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(138,92,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)) !important;
}

/* settings page dark compatibility */
.page--settings .settings-header p,
.page--settings .settings-section-head p,
.page--settings .settings-hint,
.page--settings .settings-field span,
.page--settings .settings-toggle{
  color: var(--muted);
}
.page--settings .settings-avatar-frame{
  background: linear-gradient(150deg, rgba(138,92,255,.28), rgba(183,156,255,.18));
  box-shadow: 0 8px 20px rgba(0,0,0,.32);
}
.page--settings .settings-avatar-img{
  background: rgba(255,255,255,.04);
}
.page--settings .settings-toggle{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
}
.page--settings .settings-toggle input[type="checkbox"]{
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.04);
}
.page--settings .settings-toggle input[type="checkbox"]:checked{
  background: var(--v2);
  border-color: var(--v2);
}
.page--settings .settings-toggle input[type="checkbox"]:focus-visible{
  box-shadow: 0 0 0 3px rgba(138,92,255,.22);
}

@media (max-width:900px){
  .gallery-grid,#wishGrid,.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .gallery-grid,#wishGrid,.card-grid{grid-template-columns:1fr}
}
@media (max-width:700px){
  .site-nav__inner{align-items:flex-start}
  .site-nav__links{justify-content:flex-end}
}
