*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg-deep:#0f0a1c;
  --bg-card:#ffffff;
  --bg-step: #faf9fd;
  --pink:#ec4899;
  --purple:#a855f7;
  --teal:#14b8a6;
  --green:#10b981;
  --text:#1a1033;
  --text-muted:#6b7280;
  --text-light:#9ca3af;
  --border:#ede8f5;
}
html,body{min-height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #5b2a8a 0%, transparent 55%), linear-gradient(180deg, #1a1024 0%, #120a1a 40%, #1a1024 100%);
  color:var(--text);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  max-width:480px;
  margin:0 auto;
  position:relative;
  overflow-x:hidden;
}

/* ===== Top Nav ===== */
.topnav{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;
  position:relative;z-index:5;
}
.logo{
  display:flex;align-items:center;gap:7px;
  color:#fff;font-size:14px;font-weight:700;
}
.logo-heart{
  width:24px;height:24px;border-radius:8px;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  display:flex;align-items:center;justify-content:center;
  font-size:12px;
}
.prep-badge{
  display:flex;align-items:center;gap:6px;
  padding:5px 12px;border-radius:20px;
  background:rgba(168,85,247,.25);
  border:1px solid rgba(168,85,247,.35);
  color:#fff;font-size:11px;font-weight:600;
}
.prep-badge::before{
  content:"";width:7px;height:7px;border-radius:50%;
  background:#34d399;
  box-shadow:0 0 0 0 rgba(52,211,153,.7);
  animation:pulse 1.8s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(52,211,153,.7)}
  70%{box-shadow:0 0 0 8px rgba(52,211,153,0)}
  100%{box-shadow:0 0 0 0 rgba(52,211,153,0)}
}

/* ===== Hero ===== */
.hero{
  position:relative;
  width:calc(100% - 28px);
  margin:6px 14px 0;
  aspect-ratio:4/3;
  background:#2a1f44;
  overflow:hidden;
  border-radius:16px;
}
.hero img{
  width:100%;height:100%;object-fit:cover;display:block;
  border-radius:16px;
  transition:opacity .25s ease;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,
    rgba(15,10,28,.0) 0%,
    rgba(15,10,28,.0) 35%,
    rgba(15,10,28,.5) 65%,
    rgba(15,10,28,.88) 100%);
  pointer-events:none;z-index:1;
}
.hero-meta{
  position:absolute;left:14px;right:14px;bottom:14px;z-index:3;
}
.hero-tags{
  display:flex;gap:7px;margin-bottom:10px;
}
.hero-tags .tag{
  display:inline-flex;align-items:center;gap:4px;
  padding:4px 10px;border-radius:12px;
  font-size:10px;font-weight:600;
}
.hero-tags .tag:nth-child(1){
  background:rgba(15,10,28,.75);
  color:#fff;
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.12);
}
.hero-tags .tag:nth-child(2){
  background:rgba(255,255,255,.95);
  color:var(--text);
}
.hero-name{
  font-size:22px;font-weight:800;color:#fff;
  line-height:1.2;margin-bottom:5px;
  letter-spacing:-.3px;
}
.hero-desc{
  font-size:12px;color:rgba(255,255,255,.85);
  line-height:1.5;margin-bottom:8px;
}
.distance{
  display:inline-flex;align-items:center;gap:1px;
  font-size:11px;color:rgba(255,255,255,.8);
  font-weight:500;
}
.distance #staySeconds{font-weight:700}

/* ===== Cards ===== */
.card{
  background:#fff;
  border-radius:20px;
  padding:16px;
  margin:0 12px 14px;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
}
.card-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:12px;
}
.card-title{
  display:flex;align-items:center;gap:6px;
  font-size:11px;font-weight:700;
  letter-spacing:.4px;text-transform:uppercase;
  color:#be185d;
}
.card-title .dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--pink);
}
.card-tag{
  padding:3px 9px;border-radius:12px;
  font-size:10px;font-weight:600;
  display:inline-flex;align-items:center;gap:4px;
}
.tag-pending{background:#fdf2f8;color:#be185d}
.tag-pending::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--pink);animation:pulse 1.5s infinite}
.tag-ready{background:#ecfdf5;color:#047857}
.tag-ready::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--green)}

/* ===== Queued Profiles ===== */
.card-queued{
  background:transparent !important;
  box-shadow:none !important;
  padding:16px 12px !important;
}
.profiles-row{
  display:flex;gap:14px;overflow-x:auto;padding:2px 0 6px;
}
.profiles-row::-webkit-scrollbar{display:none}
.prof{flex:0 0 auto;text-align:center;width:56px;cursor:pointer}
.prof-avatar{
  width:56px;height:56px;border-radius:50%;
  position:relative;
}
.prof-avatar .ring{
  width:100%;height:100%;border-radius:50%;
  padding:4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  transition:background .3s ease;
}
.prof.selected .prof-avatar .ring{
  background:linear-gradient(135deg,#ec4899,#a855f7);
}
.prof-avatar .ring-inner{
  width:100%;height:100%;border-radius:50%;
  background:#1a1030 !important;
  overflow:hidden;position:relative;
}
.prof-avatar .ring-inner img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.prof-avatar .online-dot{
  position:absolute;right:2px;bottom:2px;
  width:10px;height:10px;border-radius:50%;
  background:var(--green);border:1px solid #fff;
  box-shadow:0 0 0 1px rgba(255,255,255,.4);
}
.prof-name{
  font-size:10.5px;font-weight:600;color:rgba(255,255,255,.85);
  margin-top:5px;
}

/* ===== Local Matches Card ===== */
.sec-title{
  font-size:17px;font-weight:800;margin-bottom:3px;
  letter-spacing:-.3px;
}
.sec-desc{
  font-size:12px;color:var(--text-muted);
  margin-bottom:14px;line-height:1.5;
}

.progress-wrap{margin-bottom:18px}
.progress-labels{
  display:flex;justify-content:space-between;
  font-size:10.5px;font-weight:600;margin-bottom:6px;
}
.progress-labels .l{color:var(--green)}
.progress-labels .r{color:var(--purple)}
.progress-bar{
  height:8px;background:#f3e8ff;border-radius:3px;overflow:hidden;
}
.progress-fill{
  height:100%;width:0%;
  background:linear-gradient(90deg,var(--pink),var(--purple));
  border-radius:3px;transition:width 1s linear;
}

/* Steps */
.steps{display:flex;flex-direction:column;gap:8px}
.step{
  display:flex;gap:12px;
  align-items:flex-start;
  background: var(--bg-step);
  border-radius:12px;
  padding:12px;
  border:1px solid var(--border);
  transition:opacity .4s,background .4s,border-color .4s;
  opacity:.5;
}
.step.active{opacity:1;background:#fff;border-color:#e9d5ff;box-shadow:0 2px 8px rgba(124,58,237,.08)}
.step.done{opacity:.85}
.step-num{
  width:26px;height:26px;flex-shrink:0;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:700;color:#fff;
}
.step[data-n="1"] .step-num{background:var(--pink)}
.step[data-n="2"] .step-num{background:var(--teal)}
.step[data-n="3"] .step-num{background:var(--purple)}
.step-info h5{font-size:12.5px;font-weight:700;margin-bottom:2px}
.step-info p{font-size:11px;color:var(--text-muted);line-height:1.45}

/* Banner */
.banner{
  background:linear-gradient(135deg,#581c87 0%,#be185d 100%);
  color:#fff;border-radius:14px;
  padding:14px 16px;margin:14px 0;
  position:relative;overflow:hidden;
}
.banner::after{
  content:"";position:absolute;top:-30px;right:-30px;width:100px;height:100px;
  background:rgba(255,255,255,.08);border-radius:50%;
}
.banner h4{font-size:13px;font-weight:700;margin-bottom:2px;position:relative}
.banner p{font-size:11px;opacity:.85;position:relative}

/* CTA */
.cta{
  display:block;width:100%;
  background:linear-gradient(135deg,var(--purple) 0%,var(--pink) 100%);
  color:#fff;border:none;
  padding:16px 20px;
  margin: 14px 0;
  border-radius:14px;
  font-size:14px;font-weight:700;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(168,85,247,.35);
  box-shadow: 0 12px 26px rgba(225, 29, 116, 0.28);
  transition:transform .2s,box-shadow .2s,opacity .3s;
  letter-spacing:.2px;
}
.cta:active{transform:scale(.98)}
.cta:disabled{
  background:#e5e7eb;color:#9ca3af;
  cursor:not-allowed;box-shadow:none;
}
.cta-hint{
  text-align:center;font-size:10.5px;color:var(--text);
  margin-top:8px;
}

/* FAQ */
.faq-title{
  font-size:10px;font-weight:700;
  letter-spacing:.6px;text-transform:uppercase;
  color:var(--text-light);margin-bottom:10px;
}
.faq-item{margin-top: 10px;padding: 10px;border-radius: 12px;background: var(--bg-step);border-bottom:1px solid #f5f3fa}
.faq-item:last-child{border-bottom:none}
.faq-q{font-size:12px;font-weight:700;margin-bottom:3px}
.faq-a{font-size:11px;color:var(--text-muted);line-height:1.5}

/* ===== Bottom Sheet Modal ===== */
.modal-backdrop{
  position:fixed;inset:0;z-index:100;
  background:rgba(15,10,28,.55);
  backdrop-filter:blur(4px);
  display:flex;align-items:flex-end;justify-content:center;
  opacity:0;pointer-events:none;
  transition:opacity .3s ease;
}
.modal-backdrop.active{
  opacity:1;pointer-events:auto;
}
.modal-sheet{
  width:100%;max-width:480px;
  background:linear-gradient(180deg,#1e1633 0%,#15102a 100%);
  border-radius:28px 28px 0 0;
  padding:12px 24px 32px;
  transform:translateY(100%);
  transition:transform .35s cubic-bezier(.22,1,.36,1);
  color:#fff;
  box-shadow:0 -10px 40px rgba(0,0,0,.4);
}
.modal-backdrop.active .modal-sheet{
  transform:translateY(0);
}
.modal-handle{
  width:38px;height:4px;border-radius:3px;
  background:rgba(255,255,255,.25);
  margin:0 auto 18px;
}
.modal-title{
  font-size:24px;font-weight:800;margin-bottom:4px;
  letter-spacing:-.4px;
}
.modal-desc{
  font-size:13px;color:rgba(255,255,255,.7);
  margin-bottom:20px;line-height:1.5;
}
.form-row{
  margin-bottom:12px;
}
.form-input{
  width:100%;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  padding:14px 16px;
  border-radius:14px;
  font-size:14px;
  font-family:inherit;
  outline:none;
  transition:border-color .2s, background .2s;
}
.form-input::placeholder{color:rgba(255,255,255,.45)}
.form-input:focus{
  border-color:rgba(168,85,247,.6);
  background:rgba(255,255,255,.1);
}
.form-input.input-error{
  border-color:rgba(239,68,68,.6) !important;
  background:rgba(239,68,68,.08);
}
.field-error{
  color:#ef4444;
  font-size:11px;
  margin-top:5px;
  padding-left:4px;
}
.form-input-with-icon{
  position:relative;
  display:flex;
  align-items:stretch;
  gap:0;
}
.form-input-with-icon .form-input{
  padding-left:16px;
}
/* Custom Select */
.custom-select{
  position:relative;
  flex-shrink:0;
  width:96px;
}
.cs-trigger{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  gap:5px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-right:1px solid rgba(255,255,255,.08);
  border-radius:14px 0 0 14px;
  color:#fff;
  padding:14px 10px 14px 12px;
  font-size:13px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  transition:border-color .2s,background .2s;
}
.cs-trigger:hover{background:rgba(255,255,255,.1)}
.custom-select.open .cs-trigger{
  border-color:rgba(168,85,247,.6);
  background:rgba(168,85,247,.08);
  border-radius:14px 0 0 0;
}
.cs-flag{font-size:16px;line-height:1}
.cs-value{flex:1;font-weight:700}
.cs-arrow{flex-shrink:0;transition:transform .25s}
.custom-select.open .cs-arrow{transform:rotate(180deg)}

.cs-dropdown{
  display:none;
  position:absolute;
  bottom:100%;
  left:0;
  width:240px;
  background:rgba(20,14,38,.98);
  backdrop-filter:blur(12px);
  border:1px solid rgba(168,85,247,.3);
  border-radius:0 0 14px 14px;
  box-shadow:0 12px 32px rgba(0,0,0,.5);
  z-index:200;
  padding:0 0 6px;
  overflow:hidden;
}
.custom-select.open .cs-dropdown{display:block}

.cs-search{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.4);
}
.cs-search-icon{flex-shrink:0}
.cs-search-input{
  flex:1;
  background:transparent;
  border:none;
  outline:none;
  color:#fff;
  font-size:13px;
  font-family:inherit;
}
.cs-search-input::placeholder{color:rgba(255,255,255,.35)}

.cs-options{
  max-height:210px;
  overflow-y:auto;
}
.cs-options::-webkit-scrollbar{width:5px}
.cs-options::-webkit-scrollbar-track{background:transparent}
.cs-options::-webkit-scrollbar-thumb{background:rgba(168,85,247,.4);border-radius:3px}

.cs-option{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  font-size:13px;
  color:rgba(255,255,255,.85);
  cursor:pointer;
  transition:background .15s,color .15s;
}
.cs-option:hover{
  background:rgba(168,85,247,.15);
  color:#fff;
}
.cs-option.selected{
  background:rgba(236,72,153,.12);
  color:#fff;
}
.cs-option .cs-opt-flag{font-size:18px;width:22px;text-align:center;flex-shrink:0}
.cs-option .cs-opt-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-option .cs-opt-code{font-weight:700;color:#a855f7;flex-shrink:0}

.form-input-phone{
  border-radius:0 14px 14px 0 !important;
  flex:1;
}
.input-icon{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  font-size:16px;
}
.modal-cta{
  margin-top:8px;
}
.modal-terms{
  text-align:center;font-size:11px;
  color:rgba(255,255,255,.45);
  margin-top:14px;line-height:1.5;
}

/* Footer */
.footer{
  text-align:center;padding:14px 20px 28px;
  font-size:9.5px;color:rgba(196,181,253,.6);
}
