:root{
  --bg:#0d0d12;
  --page:#050507;
  --card:#1a1a22;
  --card-2:#20202a;
  --border:#2a2a35;
  --text-1:#f5f5f7;
  --text-2:#9a9aa5;
  --text-3:#6b6b76;
  --pink:#ff2d95;
  --purple:#7b2ff7;
  --grad: linear-gradient(135deg, var(--pink), var(--purple));
  --grad-soft: linear-gradient(135deg, rgba(255,45,149,.16), rgba(123,47,247,.16));
  --green:#2ee6a8;
  --blue:#3fa9ff;
  --gold:#ffb545;
  --radius-lg:20px;
  --radius-md:16px;
  --radius-sm:12px;
}

*{box-sizing:border-box; margin:0; padding:0;}

body{
  background:
    radial-gradient(circle at 50% 0%, rgba(123,47,247,.18), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(255,45,149,.10), transparent 40%),
    var(--page);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 16px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color:var(--text-1);
}

svg.icon{ width:20px; height:20px; stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.phone svg{ fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- phone frame ---------- */
.phone{
  width:390px;
  height:820px;
  background:var(--bg);
  border-radius:44px;
  border:1px solid #2a2a35;
  box-shadow:
    0 0 0 8px #0a0a0d,
    0 30px 80px rgba(0,0,0,.6),
    0 0 60px rgba(123,47,247,.15);
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
}

/* ---------- header ---------- */
.app-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 20px 14px;
  flex-shrink:0;
}
.header-brand{ display:flex; align-items:center; gap:10px; }
.logo-mark{
  width:36px; height:36px; border-radius:11px;
  background:linear-gradient(135deg,#1b1b24,#0d0d12);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 0 14px rgba(255,45,149,.35), inset 0 0 10px rgba(123,47,247,.25);
}
.logo-mark svg{ width:20px; height:14px; }
.header-title{ font-size:16px; font-weight:700; letter-spacing:.2px; }
.header-title span{
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.icon-btn{
  width:38px; height:38px; border-radius:12px;
  background:var(--card);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-1);
  position:relative;
  cursor:pointer;
}
.icon-btn .dot{
  position:absolute; top:8px; right:8px;
  width:7px; height:7px; border-radius:50%;
  background:var(--pink);
  box-shadow:0 0 6px var(--pink);
}

/* ---------- screens ---------- */
.screens{ flex:1; overflow:hidden; position:relative; }
.screen{
  position:absolute; inset:0;
  overflow-y:auto;
  padding:4px 20px 100px;
  display:none;
  -ms-overflow-style:none; scrollbar-width:none;
}
.screen::-webkit-scrollbar{ display:none; }
.screen.active{ display:block; }

.section-row{ display:flex; align-items:center; justify-content:space-between; margin:22px 0 12px; }
.section-title{ font-size:16px; font-weight:700; }
.section-link{ font-size:12.5px; color:var(--text-2); display:flex; align-items:center; gap:2px; }
.section-link svg{ width:14px; height:14px; }

/* ---------- search ---------- */
.search-bar{
  display:flex; align-items:center; gap:10px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:12px 14px;
  color:var(--text-3);
  margin-top:14px;
}
.search-bar svg{ color:var(--text-3); }
.search-bar input{
  background:none; border:none; outline:none; color:var(--text-1);
  font-size:13.5px; width:100%;
}
.search-bar input::placeholder{ color:var(--text-3); }

/* ---------- pills / chips ---------- */
.chip-row{ display:flex; gap:8px; margin-top:14px; }
.chip{
  padding:8px 14px; border-radius:999px; font-size:12px; font-weight:600;
  background:var(--card); border:1px solid var(--border); color:var(--text-2);
  cursor:pointer; white-space:nowrap;
}
.chip.active{ background:var(--grad); color:#fff; border:none; }

.tag{
  display:inline-flex; align-items:center; gap:4px;
  font-size:10.5px; font-weight:700; padding:4px 9px; border-radius:999px;
}
.tag.hot{ background:rgba(255,45,149,.16); color:var(--pink); }
.tag.new{ background:rgba(46,230,168,.15); color:var(--green); }
.tag.vip{ background:rgba(255,181,69,.16); color:var(--gold); }

.btn-grad{
  background:var(--grad);
  color:#fff; border:none; font-weight:700; font-size:12.5px;
  padding:10px 16px; border-radius:999px;
  display:inline-flex; align-items:center; gap:6px;
  box-shadow:0 8px 18px rgba(255,45,149,.35);
  cursor:pointer;
}
.btn-grad svg{ width:14px; height:14px; }
.btn-grad.sm{ padding:7px 13px; font-size:11.5px; }
.btn-grad.block{ width:100%; justify-content:center; padding:14px; font-size:14px; }

.btn-outline{
  padding:7px 14px; border-radius:999px; font-size:11.5px; font-weight:700;
  background:var(--card-2); border:1px solid var(--border); color:var(--text-1);
  cursor:pointer;
}

/* ---------- bottom nav ---------- */
.bottom-nav{
  flex-shrink:0;
  display:flex; justify-content:space-around; align-items:center;
  padding:12px 10px calc(20px + env(safe-area-inset-bottom));
  background:rgba(13,13,18,.85); backdrop-filter:blur(14px);
  border-top:1px solid var(--border);
}
.nav-btn{
  background:none; border:none; display:flex; flex-direction:column; align-items:center; gap:4px;
  color:var(--text-3); font-size:10px; font-weight:600; cursor:pointer; width:64px;
}
.nav-btn svg{ width:22px; height:22px; }
.nav-btn.active{ color:var(--pink); }
.nav-btn.active svg{ stroke:url(#navGrad); }

/* ---------- responsive ---------- */
@media (max-width:480px){
  body{ padding:0; align-items:stretch; }
  .phone{
    width:100%; height:100dvh;
    border-radius:0; border:none;
    box-shadow:none;
  }
}
