/* Velora — compact, mobile-first, Tinder-inspired UI */
:root{
  --bg:#0c0b10;
  --bg2:#14121a;
  --card:#1a1722;
  --card2:#221e2c;
  --ink:#f5f2f8;
  --muted:#9a93a8;
  --line:rgba(255,255,255,.08);
  --accent:#ff4f81;
  --accent2:#a855f7;
  --accent-soft:rgba(255,79,129,.18);
  --ok:#34d399;
  --warn:#fbbf24;
  --radius:22px;
  --radius-sm:14px;
  --nav-h:58px;
  --bottom-h:64px;
  --safe-b:env(safe-area-inset-bottom,0px);
  --font:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --shadow:0 12px 40px rgba(0,0,0,.35);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:var(--font);background:var(--bg);color:var(--ink);
  min-height:100dvh;line-height:1.45;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}

/* Top nav */
.nav{
  height:var(--nav-h);display:flex;align-items:center;justify-content:space-between;
  padding:0 16px;background:rgba(12,11,16,.85);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40;
}
.brand{
  font-weight:900;letter-spacing:.2em;font-size:15px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.navlinks{display:none;gap:6px;align-items:center;font-size:13px;font-weight:600}
.navlinks a{padding:8px 12px;border-radius:999px;color:var(--muted)}
.navlinks a:hover,.navlinks a.active{color:var(--ink);background:var(--card)}
.nav-right{display:flex;align-items:center;gap:10px}
.inbox-pill{
  position:relative;display:inline-flex;align-items:center;gap:6px;
  padding:8px 12px;border-radius:999px;background:var(--card);border:1px solid var(--line);
  font-size:13px;font-weight:700;color:var(--ink);
}
.inbox-pill .dot{
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:var(--accent);color:#fff;font-size:11px;display:inline-grid;place-items:center;
}
.inbox-pill .dot:empty,.inbox-pill .dot[data-count="0"]{display:none}

/* Bottom mobile nav */
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:50;
  height:calc(var(--bottom-h) + var(--safe-b));
  padding-bottom:var(--safe-b);
  background:rgba(18,16,24,.94);backdrop-filter:blur(16px);
  border-top:1px solid var(--line);
  display:grid;grid-template-columns:repeat(5,1fr);align-items:stretch;
}
.bottom-nav a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  font-size:10px;font-weight:700;color:var(--muted);position:relative;
}
.bottom-nav a .ico{font-size:20px;line-height:1}
.bottom-nav a.active,.bottom-nav a:hover{color:var(--accent)}
.bottom-nav .badge{
  position:absolute;top:6px;right:calc(50% - 18px);
  min-width:16px;height:16px;padding:0 4px;border-radius:999px;
  background:var(--accent);color:#fff;font-size:10px;display:grid;place-items:center;
}
body.has-bottom-nav{padding-bottom:calc(var(--bottom-h) + var(--safe-b) + 8px)}

.container{max-width:480px;margin:0 auto;padding:14px 14px 28px;min-height:calc(100dvh - var(--nav-h))}
.container.wide{max-width:960px}
.section-head{margin:4px 0 14px}
.section-head h1{margin:4px 0;font-size:1.55rem;letter-spacing:-.02em}
.section-head p{margin:4px 0 0;color:var(--muted);font-size:14px}
.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.16em;color:var(--accent2);font-weight:800}

/* Panels / cards */
.panel,.hero-card,.discover-card,.match,.auth{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);
}
.panel{padding:16px}
.muted{color:var(--muted)}
.badge{
  display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;
  background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:800;
}
.alert{padding:12px 14px;border-radius:var(--radius-sm);margin-bottom:12px;font-size:14px;font-weight:600}
.alert.error{background:rgba(239,68,68,.15);color:#fca5a5}
.alert.success{background:rgba(52,211,153,.12);color:#6ee7b7}

/* Buttons */
.btn{
  border:0;border-radius:999px;padding:12px 18px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  color:#fff;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  font-size:14px;
}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn.small{padding:8px 12px;font-size:12px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.icon{
  width:56px;height:56px;border-radius:50%;padding:0;font-size:22px;
  box-shadow:0 8px 24px rgba(255,79,129,.35);
}
.btn.icon.pass{background:var(--card2);border:1px solid var(--line);box-shadow:none;color:#f87171;font-size:26px}
.btn.icon.like{background:linear-gradient(135deg,#34d399,#10b981);box-shadow:0 8px 24px rgba(16,185,129,.35)}
.btn.icon.super{background:linear-gradient(135deg,#60a5fa,#a855f7);font-size:18px}

/* Forms */
form{display:grid;gap:12px}
form.inline,.inline{display:inline-flex;align-items:center;gap:6px;margin:0}
label{font-weight:700;font-size:13px;display:grid;gap:6px;color:var(--muted)}
input,select,textarea{
  width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--line);
  background:var(--bg2);color:var(--ink);outline:none;
}
input:focus,select:focus,textarea:focus{border-color:var(--accent)}
.check{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--ink)}
.check input{width:auto}

/* Auth */
.auth{max-width:400px;margin:24px auto;padding:22px}
.auth h1{margin:0 0 8px;font-size:1.4rem}

/* Home hero */
.hero{padding:28px 0 12px;display:grid;gap:18px}
.hero h1{font-size:clamp(1.8rem,7vw,2.6rem);line-height:1.05;margin:8px 0;letter-spacing:-.03em}
.hero p{color:var(--muted);margin:0 0 14px;font-size:15px}
.hero-card{padding:22px;text-align:center}
.orb{
  width:88px;height:88px;border-radius:50%;margin:0 auto 12px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  display:grid;place-items:center;font-size:36px;font-weight:900;
}
.grid{display:grid;gap:12px}
.three,.two{grid-template-columns:1fr}
.three article,.two article{padding:16px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--card)}
.three article b,.two article b{display:block;margin-bottom:4px}

/* Daily spark / engagement strip */
.spark-bar{
  display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:14px;
  background:linear-gradient(135deg,rgba(255,79,129,.2),rgba(168,85,247,.18));
  border:1px solid rgba(255,79,129,.25);border-radius:var(--radius);
}
.spark-bar .spark-ico{font-size:22px}
.spark-bar strong{display:block;font-size:13px}
.spark-bar span{font-size:12px;color:var(--muted)}

/* ===== Discovery — Tinder-style stack ===== */
.discover-wrap{max-width:380px;margin:0 auto}
.discover-stack{position:relative;min-height:520px}
.discover-card{
  position:relative;overflow:hidden;padding:0;border-radius:24px;
  background:var(--card2);isolation:isolate;
}
.discover-card .photo{
  width:100%;aspect-ratio:3/4;object-fit:cover;background:#2a2435;
}
.discover-card .photo-fallback{
  width:100%;aspect-ratio:3/4;display:grid;place-items:center;
  background:linear-gradient(160deg,#2a2038,#1a1524);font-size:72px;font-weight:900;color:rgba(255,255,255,.2);
}
.discover-card .info{
  position:absolute;left:0;right:0;bottom:0;padding:48px 16px 16px;
  background:linear-gradient(transparent,rgba(0,0,0,.85) 55%);
}
.discover-card .info h2{margin:0;font-size:1.45rem;display:flex;align-items:baseline;gap:8px}
.discover-card .info h2 small{font-weight:600;font-size:1.1rem;opacity:.9}
.discover-card .info p{margin:4px 0 0;font-size:13px;color:rgba(255,255,255,.85)}
.discover-card .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.discover-card .tag{
  font-size:11px;font-weight:700;padding:4px 8px;border-radius:999px;
  background:rgba(255,255,255,.12);backdrop-filter:blur(6px);
}
.discover-actions{
  display:flex;justify-content:center;align-items:center;gap:18px;margin-top:18px;padding-bottom:8px;
}
.discover-meta{text-align:center;color:var(--muted);font-size:12px;margin-top:8px}
.discover-empty{text-align:center;padding:40px 20px}
.discover-empty .orb{margin-bottom:16px}

/* ===== Matches — compact inbox list ===== */
.list{display:grid;gap:8px}
.match{
  display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;
  padding:10px 12px;border-radius:18px;
}
.match:hover{background:var(--card2)}
.mini-avatar{
  width:52px;height:52px;border-radius:50%;overflow:hidden;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  display:grid;place-items:center;font-weight:900;font-size:18px;flex-shrink:0;
}
.mini-avatar img{width:100%;height:100%;object-fit:cover}
.match-info{min-width:0}
.match-info b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-info p{margin:2px 0 0;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.count{
  background:var(--accent);color:#fff;font-size:11px;font-weight:800;
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:grid;place-items:center;
}
.match-actions{display:flex;flex-direction:column;gap:4px;align-items:flex-end}
.match-actions .btn.small{padding:6px 10px}

/* ===== Chat — messenger style ===== */
.chat-page{max-width:480px;margin:0 auto;display:flex;flex-direction:column;height:calc(100dvh - var(--nav-h) - var(--bottom-h) - var(--safe-b) - 12px);min-height:420px}
.chat.panel{display:flex;flex-direction:column;flex:1;padding:0;overflow:hidden;border-radius:20px}
.chat-head{
  display:flex;align-items:center;gap:10px;padding:10px 12px;
  border-bottom:1px solid var(--line);background:var(--card2);flex-shrink:0;
}
.chat-head h2{margin:0;font-size:15px}
.chat-head small{color:var(--muted);font-size:11px}
.chat-head .mini-avatar{width:40px;height:40px;font-size:14px}
.chat-actions{margin-left:auto;display:flex;gap:4px;flex-wrap:wrap}
.chat-actions .btn.small{padding:6px 8px;font-size:11px}
.messages{
  flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:8px;
  background:var(--bg);scroll-behavior:smooth;
}
.msg{
  max-width:78%;padding:10px 12px;border-radius:18px 18px 18px 6px;
  background:var(--card2);font-size:14px;line-height:1.4;align-self:flex-start;
  word-break:break-word;
}
.msg.mine{
  align-self:flex-end;background:linear-gradient(135deg,var(--accent),#e11d5a);
  border-radius:18px 18px 6px 18px;color:#fff;
}
.msg small{display:block;opacity:.7;font-size:10px;margin-top:4px}
.composer{
  display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--line);
  background:var(--card2);flex-shrink:0;align-items:center;
}
.composer input[name=body]{
  flex:1;border-radius:999px;padding:12px 16px;background:var(--bg);border:1px solid var(--line);
}
.composer .btn{border-radius:999px;padding:12px 16px;flex-shrink:0}
.report-menu{position:relative}
.report-menu summary{list-style:none;cursor:pointer}
.report-menu .report-form{
  position:absolute;right:0;top:110%;z-index:30;width:min(260px,80vw);
  background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px;display:grid;gap:8px;
}

/* Profile compact */
.profile-layout{display:grid;gap:14px}
.profile-card .avatar{
  width:120px;height:120px;border-radius:24px;overflow:hidden;margin:0 auto 12px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  display:grid;place-items:center;font-size:40px;font-weight:900;
}
.profile-card .avatar img{width:100%;height:100%;object-fit:cover}
.profile-card{text-align:center}
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.photo-grid>div{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--bg2)}
.photo-grid img{width:100%;height:100%;object-fit:cover}
.photo-grid .x{
  position:absolute;top:4px;right:4px;width:26px;height:26px;border:0;border-radius:50%;
  background:rgba(0,0,0,.65);color:#fff;cursor:pointer;font-size:14px;
}
.progress{height:6px;background:var(--bg2);border-radius:99px;overflow:hidden;margin:10px 0 4px}
.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2))}
.interest-grid{display:flex;flex-wrap:wrap;gap:8px}
.interest{
  display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;
  background:var(--bg2);border:1px solid var(--line);font-size:12px;font-weight:700;color:var(--ink);
}
.interest input{width:auto}

/* Stats admin */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:14px}
.stat{padding:14px;text-align:center}
.stat b{display:block;font-size:1.3rem}
.stat span{font-size:11px;color:var(--muted)}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-size:12px}
th,td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.checklist{margin:0;padding-left:1.1rem;line-height:1.65;font-size:13px;color:var(--muted)}
.admin-section{margin-top:14px}
.empty{text-align:center;padding:28px 16px;color:var(--muted)}
.empty h2{color:var(--ink);margin:0 0 8px}
dialog{
  border:1px solid var(--line);border-radius:18px;padding:18px;background:var(--card);color:var(--ink);
  max-width:min(360px,92vw);
}
dialog::backdrop{background:rgba(0,0,0,.6)}
hr{border:0;border-top:1px solid var(--line);margin:14px 0}
footer{
  display:none; /* mobile uses bottom nav */
}

/* Desktop enhancements */
@media (min-width:768px){
  .navlinks{display:flex}
  .bottom-nav{display:none}
  body.has-bottom-nav{padding-bottom:0}
  footer{display:flex;justify-content:space-between;padding:18px 5vw;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}
  .container{max-width:720px;padding:24px}
  .container.wide{max-width:1100px}
  .three{grid-template-columns:repeat(3,1fr)}
  .two{grid-template-columns:repeat(2,1fr)}
  .hero{grid-template-columns:1.2fr .8fr;align-items:center;gap:32px;padding:48px 0}
  .stats{grid-template-columns:repeat(4,1fr)}
  .chat-page{max-width:560px;height:calc(100dvh - var(--nav-h) - 40px)}
  .discover-wrap{max-width:400px}
  .profile-layout{grid-template-columns:280px 1fr;align-items:start}
}
@media (min-width:1024px){
  .container{max-width:800px}
  .chat-page{max-width:600px}
}

@media (max-width:767px){.hide-mobile{display:none!important}}
.nav-right .inbox-pill{padding:8px 10px}
body.chat-focus .bottom-nav{display:none}
body.chat-focus{padding-bottom:0}
body.chat-focus .chat-page{height:calc(100dvh - var(--nav-h) - 8px)}


/* --- Card depth / shadows --- */
.discover-stack{
  position:relative;min-height:min(72vw,520px);max-width:380px;margin:0 auto;
  perspective:1200px;
}
.discover-card{
  position:relative;overflow:hidden;padding:0;border-radius:24px;
  background:var(--card2);isolation:isolate;touch-action:none;user-select:none;
  box-shadow:
    0 2px 4px rgba(0,0,0,.2),
    0 12px 28px rgba(0,0,0,.35),
    0 28px 56px rgba(0,0,0,.25),
    0 0 0 1px rgba(255,255,255,.06);
  transition: box-shadow .25s ease, transform .15s ease;
  will-change: transform;
}
.discover-card.is-front{
  z-index:2;cursor:grab;
  box-shadow:
    0 4px 8px rgba(0,0,0,.25),
    0 16px 36px rgba(0,0,0,.4),
    0 32px 64px rgba(255,79,129,.12),
    0 0 0 1px rgba(255,255,255,.08);
}
.discover-card.is-front:active{cursor:grabbing}
.discover-card.is-peek{
  position:absolute;inset:10px 8px auto;z-index:1;
  transform:scale(.96);opacity:.55;pointer-events:none;
  box-shadow:0 8px 24px rgba(0,0,0,.3);
}
.discover-card.is-dragging{
  box-shadow:
    0 8px 16px rgba(0,0,0,.3),
    0 24px 48px rgba(0,0,0,.45),
    0 0 40px rgba(255,79,129,.15);
  transition:none;
}
.discover-card.fly-right{
  transition:transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  transform:translate(120vw,-20px) rotate(28deg)!important;opacity:0;
}
.discover-card.fly-left{
  transition:transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  transform:translate(-120vw,-20px) rotate(-28deg)!important;opacity:0;
}
.discover-card.fly-up{
  transition:transform .4s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  transform:translate(0,-120vh) rotate(0deg)!important;opacity:0;
}
.discover-card .stamp{
  position:absolute;top:28px;z-index:5;padding:8px 14px;border:3px solid;border-radius:12px;
  font-weight:900;font-size:28px;letter-spacing:.08em;opacity:0;transform:scale(.85) rotate(-12deg);
  pointer-events:none;backdrop-filter:blur(4px);
}
.discover-card .stamp-like{
  left:18px;color:#34d399;border-color:#34d399;background:rgba(52,211,153,.12);transform:rotate(-12deg);
}
.discover-card .stamp-nope{
  right:18px;color:#f87171;border-color:#f87171;background:rgba(248,113,113,.12);transform:rotate(12deg);
}
.discover-card .stamp-super{
  left:50%;top:40%;transform:translateX(-50%) rotate(-6deg) scale(.85);
  color:#60a5fa;border-color:#60a5fa;background:rgba(96,165,250,.15);
}
.discover-card.show-like .stamp-like{opacity:1}
.discover-card.show-nope .stamp-nope{opacity:1}
.discover-card.show-super .stamp-super{opacity:1}

.panel,.match,.auth,.hero-card{
  box-shadow:
    0 1px 2px rgba(0,0,0,.2),
    0 8px 24px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.05);
}
.msg.mine{box-shadow:0 4px 14px rgba(255,79,129,.25)}
.btn.icon{transition:transform .15s ease, box-shadow .2s ease}
.btn.icon:active{transform:scale(.92)}

/* Match toast */
.match-toast{
  position:fixed;inset:0;z-index:100;display:grid;place-items:center;
  background:rgba(0,0,0,.72);backdrop-filter:blur(8px);padding:20px;
  animation:fadeIn .25s ease;
}
.match-toast[hidden]{display:none}
.match-toast-inner{
  text-align:center;background:var(--card);border:1px solid var(--line);border-radius:24px;
  padding:28px 22px;max-width:320px;width:100%;
  box-shadow:0 24px 64px rgba(0,0,0,.5), 0 0 60px rgba(255,79,129,.2);
  animation:popIn .4s cubic-bezier(.2,1.2,.4,1);
}
.match-burst{font-size:48px;animation:bounce .6s ease}
.match-toast-inner h2{margin:8px 0;font-size:1.5rem}
.match-toast-inner p{color:var(--muted);margin:0 0 16px}
.match-toast-inner .btn{width:100%;margin-bottom:8px}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}
@keyframes bounce{0%,100%{transform:scale(1)}40%{transform:scale(1.25)}70%{transform:scale(.95)}}


/* Particle burst layer (match celebration) */
.particle-layer{
  position:fixed;inset:0;z-index:120;pointer-events:none;overflow:hidden;
}
.particle{
  position:fixed;display:block;line-height:1;font-weight:700;
  transform:translate(-50%,-50%);
  animation:particleFly ease-out forwards;
  text-shadow:0 0 8px currentColor;
  opacity:1;
}
@keyframes particleFly{
  0%{transform:translate(-50%,-50%) scale(0.3);opacity:1}
  70%{opacity:1}
  100%{transform:translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1);opacity:0}
}


/* Full profile view */
.profile-view{padding:0;overflow:hidden}
.photo-carousel{position:relative;background:#120f18;aspect-ratio:3/4;max-height:70vh}
.carousel-slide{display:none;width:100%;height:100%;position:absolute;inset:0}
.carousel-slide.is-active{display:block}
.carousel-slide img{width:100%;height:100%;object-fit:cover}
.photo-fallback-lg{
  display:grid!important;place-items:center;font-size:80px;font-weight:900;
  background:linear-gradient(160deg,#2a2038,#1a1524);color:rgba(255,255,255,.25);
}
.carousel-dots{position:absolute;top:10px;left:0;right:0;display:flex;gap:4px;justify-content:center;padding:0 12px;z-index:2}
.carousel-dots .dot{flex:1;max-width:40px;height:3px;border:0;border-radius:99px;background:rgba(255,255,255,.35);cursor:pointer;padding:0}
.carousel-dots .dot.is-active{background:#fff}
.carousel-nav{
  position:absolute;top:0;bottom:0;width:40%;border:0;background:transparent;cursor:pointer;z-index:1;
  color:transparent;font-size:28px;
}
.carousel-nav.prev{left:0}
.carousel-nav.next{right:0}
.profile-view-body{padding:16px}
.profile-view-body h3{margin:16px 0 8px;font-size:14px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.profile-view-body h3:first-child{margin-top:0}
.meta-chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.interest.is-common{border-color:rgba(52,211,153,.45);background:rgba(52,211,153,.12);color:#6ee7b7}
.prompt-list{display:grid;gap:10px}
.prompt-card{background:var(--bg2);border:1px solid var(--line);border-radius:14px;padding:12px}
.prompt-q{font-size:12px;color:var(--muted);font-weight:700;margin-bottom:4px}
.prompt-a{font-size:15px;font-weight:600}
.profile-view-actions{
  display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;
  margin-top:16px;padding-bottom:8px;
}

.online-dot{
  display:inline-block;width:8px;height:8px;border-radius:50%;
  background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.25);margin-right:4px;vertical-align:middle;
}
.typing-label{font-size:11px;color:var(--accent);font-weight:700;margin-top:2px}
.call-panel{padding:12px}
.call-frame-wrap{
  position:relative;width:100%;aspect-ratio:16/10;border-radius:16px;overflow:hidden;
  background:#000;border:1px solid var(--line);
}
.call-frame{position:absolute;inset:0;width:100%;height:100%;border:0}
.profile-view-sticky{
  position:sticky;bottom:calc(var(--bottom-h) + var(--safe-b) + 8px);
  background:rgba(12,11,16,.9);backdrop-filter:blur(12px);
  padding:12px;border-radius:20px;border:1px solid var(--line);z-index:15;
}
body.chat-focus .profile-view-sticky{bottom:12px}
.chat-head h2 a{color:inherit}
code{font-size:12px;background:var(--bg2);padding:2px 6px;border-radius:6px}


/* ========== Tinder-inspired marketing landing (Velora brand) ========== */
body:has(.landing){
  background:#0a0a0c;
}
body:has(.landing) .nav{
  background:transparent;border-bottom:0;
  position:absolute;left:0;right:0;top:0;
}
body:has(.landing) .nav .brand{
  color:#fff;-webkit-text-fill-color:#fff;background:none;
  font-size:18px;letter-spacing:.22em;
}
body:has(.landing) .navlinks a{color:rgba(255,255,255,.9)}
body:has(.landing) .navlinks .btn.small{
  background:#fff;color:#111;border:0;
}
body:has(.landing) > .container:first-of-type{
  /* header opens a container — collapse it for landing */
  max-width:none;padding:0;min-height:0;margin:0;
}
body:has(.landing) > .container:first-of-type .alert{margin:12px 16px}

.landing{color:#fff}
.landing-hero{
  position:relative;min-height:100dvh;display:flex;align-items:center;
  justify-content:center;padding:88px 20px 48px;overflow:hidden;
}
.landing-hero-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255,79,129,.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(168,85,247,.3), transparent 50%),
    linear-gradient(160deg, #1a0a14 0%, #0c0b10 45%, #12081a 100%);
}
.landing-hero-bg::after{
  content:"";position:absolute;inset:0;opacity:.35;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:48px 48px;
}
.landing-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.landing-hero-inner{
  position:relative;z-index:2;text-align:center;max-width:640px;margin:0 auto;
}
.landing-kicker{
  text-transform:uppercase;letter-spacing:.2em;font-size:12px;font-weight:800;
  color:rgba(255,255,255,.75);margin:0 0 16px;
}
.landing-title{
  font-size:clamp(2.6rem, 9vw, 4.6rem);line-height:.98;font-weight:900;
  letter-spacing:-.04em;margin:0 0 18px;
  text-shadow:0 12px 40px rgba(0,0,0,.4);
}
.landing-sub{
  font-size:clamp(1rem, 2.5vw, 1.2rem);line-height:1.5;color:rgba(255,255,255,.82);
  margin:0 auto 28px;max-width:480px;
}
.landing-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.landing-btn-primary{
  background:#fff;color:#111;padding:14px 28px;font-size:15px;
  box-shadow:0 12px 32px rgba(0,0,0,.35);
}
.landing-btn-primary:hover{transform:translateY(-1px)}
.landing-btn-ghost{
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.35);color:#fff;
  padding:14px 28px;backdrop-filter:blur(8px);
}
.landing-legal{margin:20px 0 0;font-size:11px;color:rgba(255,255,255,.5)}

/* Floating profile cards (decorative) */
.landing-cards{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  display:none;
}
@media (min-width:900px){
  .landing-cards{display:block}
}
.float-card{
  position:absolute;width:200px;border-radius:20px;overflow:hidden;
  background:#1a1722;border:1px solid rgba(255,255,255,.12);
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  animation:floatY 7s ease-in-out infinite;
}
.float-card.c1{left:6%;top:22%;transform:rotate(-8deg)}
.float-card.c2{right:7%;top:18%;transform:rotate(6deg);animation-delay:-2s}
.float-card.c3{right:12%;bottom:16%;transform:rotate(-4deg);animation-delay:-4s;width:170px}
.float-photo{height:240px;overflow:hidden;background:#1a1520}
.float-photo img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.float-card.c3 .float-photo,.float-card.c4 .float-photo,.float-card.c5 .float-photo{height:200px}
.float-card.c4{left:8%;bottom:14%;transform:rotate(5deg);animation-delay:-3s;width:160px}
.float-card.c5{left:18%;top:12%;transform:rotate(4deg);animation-delay:-1.5s;width:150px;opacity:.95}
@media (max-width:899px){
  .landing-cards{display:flex;position:relative;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:28px;padding:0 8px}
  .float-card{position:relative;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    width:120px;transform:none!important;animation:none}
  .float-photo{height:140px}
  .float-card.c3 .float-photo,.float-card.c4 .float-photo,.float-card.c5 .float-photo{height:140px}
  .float-card.c4,.float-card.c5{display:none}
}
.float-meta{padding:12px;font-size:12px}
.float-meta b{display:block;font-size:14px;margin-bottom:2px}
.float-meta span{color:rgba(255,255,255,.65)}
@keyframes floatY{
  0%,100%{translate:0 0}
  50%{translate:0 -14px}
}

/* Feature strip */
.landing-strip{
  background:#0f0e14;border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);padding:28px 20px;
}
.landing-strip-inner{
  max-width:1000px;margin:0 auto;display:grid;gap:20px;
  grid-template-columns:1fr;
}
@media (min-width:700px){
  .landing-strip-inner{grid-template-columns:repeat(4,1fr);gap:16px}
}
.landing-strip-inner > div{display:flex;gap:12px;align-items:flex-start}
.strip-ico{font-size:22px}
.landing-strip-inner b{display:block;font-size:14px;margin-bottom:4px}
.landing-strip-inner p{margin:0;font-size:13px;color:rgba(255,255,255,.6)}

/* Showcase */
.landing-showcase{
  max-width:1000px;margin:0 auto;padding:64px 20px;
  display:grid;gap:40px;align-items:center;
}
@media (min-width:800px){
  .landing-showcase{grid-template-columns:1.1fr .9fr}
}
.showcase-copy h2{
  font-size:clamp(1.8rem,4vw,2.6rem);letter-spacing:-.03em;margin:8px 0 12px;line-height:1.1;
}
.showcase-copy p{color:rgba(255,255,255,.7);font-size:15px;line-height:1.55}
.showcase-list{margin:18px 0 24px;padding:0;list-style:none}
.showcase-list li{
  padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08);
  font-weight:600;font-size:14px;
}
.showcase-list li::before{content:"✓ ";color:var(--accent)}

.showcase-phone{display:flex;justify-content:center}
.phone-frame{
  width:260px;border-radius:36px;padding:12px;
  background:linear-gradient(160deg,#2a2a32,#121218);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05);
}
.phone-notch{
  width:90px;height:22px;background:#0a0a0c;border-radius:0 0 14px 14px;margin:0 auto 10px;
}
.phone-screen{
  background:#0c0b10;border-radius:24px;padding:12px;min-height:420px;
  display:flex;flex-direction:column;
}
.phone-card{
  flex:1;border-radius:18px;overflow:hidden;background:#1a1722;
  box-shadow:0 16px 40px rgba(0,0,0,.4);display:flex;flex-direction:column;
}
.phone-card-img{
  flex:1;min-height:280px;overflow:hidden;background:#1a1520;
}
.phone-card-img img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.phone-card-info{padding:14px}
.phone-card-info b{display:block;font-size:16px}
.phone-card-info span{font-size:12px;color:rgba(255,255,255,.6)}
.phone-actions{display:flex;justify-content:center;gap:28px;padding:18px 0 6px}
.phone-actions .pa{
  width:54px;height:54px;border-radius:50%;display:grid;place-items:center;
  font-size:22px;font-weight:800;
  border:1px solid rgba(255,255,255,.12);background:#1a1722;
}
.phone-actions .pa.like{
  background:linear-gradient(135deg,#34d399,#10b981);border:0;color:#fff;
  box-shadow:0 8px 24px rgba(16,185,129,.35);
}
.phone-actions .pa.nope{color:#f87171}

.landing-safety{
  margin:0 20px 40px;border-radius:28px;
  background:linear-gradient(135deg, rgba(255,79,129,.2), rgba(168,85,247,.18));
  border:1px solid rgba(255,255,255,.1);padding:40px 24px;text-align:center;
}
.landing-safety-inner{max-width:520px;margin:0 auto}
.landing-safety h2{margin:0 0 10px;font-size:1.6rem}
.landing-safety p{color:rgba(255,255,255,.75);margin:0 0 18px}

.landing-final{text-align:center;padding:48px 20px 32px}
.landing-final h2{font-size:clamp(1.8rem,4vw,2.4rem);margin:0 0 10px}
.landing-final p{color:rgba(255,255,255,.65);margin:0 0 22px}

.landing-footer{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;
  padding:24px 20px 40px;border-top:1px solid rgba(255,255,255,.06);
  font-size:12px;color:rgba(255,255,255,.45);max-width:1000px;margin:0 auto;
}
.landing-footer .brand{
  font-weight:900;letter-spacing:.18em;color:#fff;
}

@supports not (selector(:has(*))){
  /* fallback: landing still works; nav stays dark */
}


/* Landing page body class (works without :has) */
body.landing-page{background:#0a0a0c}
body.landing-page .nav{
  background:transparent;border-bottom:0;position:absolute;left:0;right:0;top:0;
}
body.landing-page .nav .brand{
  color:#fff;-webkit-text-fill-color:#fff;background:none;font-size:18px;letter-spacing:.22em;
}
body.landing-page .navlinks a{color:rgba(255,255,255,.9)}
body.landing-page .navlinks .btn.small{background:#fff;color:#111;border:0}
body.landing-page > main.container{
  max-width:none;padding:0;min-height:0;margin:0;
}
body.landing-page footer{display:none}


.paid-badge{display:inline-flex;align-items:center;justify-content:center;width:1.15em;height:1.15em;margin-left:.25em;border-radius:50%;background:#1d9bf0;color:#fff;font-size:.75em;font-weight:700;vertical-align:middle;line-height:1;box-shadow:0 0 0 2px rgba(29,155,240,.25)}
.compact-chat .chat{max-width:520px;margin:0 auto}
.compact-chat .messages{max-height:min(55vh,480px)}
.compact-chat .msg{padding:8px 12px;margin-bottom:6px;font-size:.95rem}
.icebreakers{display:flex;flex-direction:column;gap:6px;padding:8px 4px 12px}
.icebreaker-chip{text-align:left;background:rgba(29,155,240,.08);border:1px solid rgba(29,155,240,.25);border-radius:12px;padding:10px 12px;cursor:pointer;font-size:.9rem;color:inherit}
.icebreaker-chip:hover{background:rgba(29,155,240,.16)}
.pay-panel label{display:block;margin-bottom:10px}
.pay-panel input[type=tel]{width:100%}
.status-paid{color:#0a7;font-weight:600}
.notice.success{background:rgba(10,170,100,.12);border-left:3px solid #0a7;padding:10px 12px}
.notice.error{background:rgba(200,50,50,.1);border-left:3px solid #c33;padding:10px 12px}

/* Discover multi-photo + rewind — relative box so card keeps 3:4 height */
.card-photos {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #1a1524;
  overflow: hidden;
}
.card-photos .card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.card-photos .card-photo.is-active { opacity: 1; }
.discover-card .info {
  z-index: 3;
  pointer-events: none;
}
.discover-card .info a { pointer-events: auto; }
.discover-card .info .detail-line {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.9);
}
.discover-card .info .detail-chip {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.photo-bars { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 5; }
.photo-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.photo-bar.is-active { background: #fff; }
.photo-hit { position: absolute; top: 0; bottom: 35%; width: 32%; border: 0; background: transparent; z-index: 4; cursor: pointer; padding: 0; }
.photo-hit.left { left: 0; }
.photo-hit.right { right: 0; }
.btn.icon.rewind { background: #2a2a2e; color: #fff; border: 1px solid rgba(255,255,255,.15); }
.btn.icon.rewind:hover { background: #3a3a40; }

#swipe-card{touch-action:pan-y;user-select:none;-webkit-user-select:none;}
#swipe-card.is-dragging{cursor:grabbing;}

.trial-banner{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 16px;background:linear-gradient(90deg,rgba(29,155,240,.18),rgba(120,80,200,.15));
  border-bottom:1px solid rgba(255,255,255,.08);font-size:13px;
}
.trial-banner.trial-ended{background:rgba(200,60,60,.15);border-bottom-color:rgba(200,60,60,.3)}
.trial-banner .btn.small{white-space:nowrap}

/* Premium comparison table */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:12px}
.compare-table{
  width:100%;border-collapse:collapse;font-size:13px;min-width:520px;
}
.compare-table th,.compare-table td{
  padding:10px 12px;text-align:left;border-bottom:1px solid rgba(255,255,255,.08);vertical-align:top;
}
.compare-table thead th{
  background:rgba(255,255,255,.06);font-weight:700;white-space:nowrap;
}
.compare-table tbody th{
  font-weight:600;color:rgba(255,255,255,.92);min-width:140px;
}
.compare-table .yes{color:#3dd68c;font-weight:600}
.compare-table .no{color:#f07178;font-weight:600}
.compare-section h2{margin-bottom:4px}

/* Modern admin dashboard */
.admin-hero{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:18px}
.admin-hero h1{margin:4px 0}
.admin-hero-actions{display:flex;flex-wrap:wrap;gap:8px}
.dash-counters{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-bottom:22px;
}
.dash-card{
  background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px 16px;
  display:flex;flex-direction:column;gap:6px;min-height:88px;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
}
.dash-card.accent{border-color:rgba(120,100,255,.35)}
.dash-card.paid{border-color:rgba(29,155,240,.4)}
.dash-card.warn{border-color:rgba(240,113,120,.35)}
.dash-card.money{border-color:rgba(61,214,140,.35)}
.dash-card.geo{border-color:rgba(255,180,80,.3)}
.dash-label{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700}
.dash-value{font-size:1.55rem;font-weight:800;line-height:1.1}
.admin-table code{font-size:12px}
