:root{
  --bg0:#070A13;
  --bg1:#0B1226;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.05);
  --card3:rgba(255,255,255,.035);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.72);
  --muted2:rgba(255,255,255,.58);
  --border:rgba(255,255,255,.14);
  --border2:rgba(255,255,255,.10);
  --shadow:0 22px 70px rgba(0,0,0,.55);
  --primary:#4ab1ff;
  --primary2:#1a7fff;
  --accent:#7c5cff;
  --success:#00d58f;
  --warn:#ffc457;
  --ring:rgba(74,177,255,.25);
  --r:24px;
}

@media (prefers-color-scheme: light){
  :root{
    --bg0:#f6f7fb;
    --bg1:#e9eefc;
    --card:rgba(0,0,0,.04);
    --card2:rgba(0,0,0,.035);
    --card3:rgba(0,0,0,.03);
    --text:rgba(0,0,0,.88);
    --muted:rgba(0,0,0,.68);
    --muted2:rgba(0,0,0,.54);
    --border:rgba(0,0,0,.12);
    --border2:rgba(0,0,0,.10);
    --shadow:0 22px 70px rgba(0,0,0,.12);
    --ring:rgba(26,127,255,.18);
  }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif;
  font-size:16px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  color:var(--text);
  background:
    radial-gradient(980px 720px at 14% 12%, rgba(124, 92, 255,.42), transparent 63%),
    radial-gradient(980px 720px at 92% 16%, rgba(0, 210, 255,.30), transparent 60%),
    radial-gradient(1100px 980px at 52% 120%, rgba(0, 255, 163,.18), transparent 62%),
    radial-gradient(1100px 850px at 65% -10%, rgba(255, 70, 200,.10), transparent 52%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment:fixed;
  padding:28px 16px 36px;
  position:relative;
  overflow-x:hidden;
  isolation:isolate;
}

body::before{
  content:"";
  position:fixed;
  inset:-20%;
  background:
    radial-gradient(700px 520px at 20% 30%, rgba(255,255,255,.10), transparent 65%),
    radial-gradient(800px 620px at 80% 40%, rgba(255,255,255,.08), transparent 65%),
    radial-gradient(900px 680px at 55% 85%, rgba(255,255,255,.06), transparent 70%);
  filter:blur(22px);
  opacity:.22;
  mix-blend-mode:overlay;
  animation:aurora 16s ease-in-out infinite alternate;
  pointer-events:none;
  z-index:-2;
}
@keyframes aurora{
  from{transform:translate3d(-1.5%,-1.2%,0) scale(1)}
  to{transform:translate3d(1.8%,1.4%,0) scale(1.03)}
}

.grain{
  position:fixed; inset:-40%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity:.08;
  mix-blend-mode:overlay;
  animation:drift 14s linear infinite;
  pointer-events:none;
  z-index:-1;
}
@keyframes drift{
  from{transform:translate3d(-2%,-2%,0)}
  to{transform:translate3d(2%,2%,0)}
}

.blob{
  position:fixed;
  width:520px;height:520px;
  filter:blur(50px);
  opacity:.55;
  border-radius:999px;
  background:radial-gradient(circle at 30% 30%, rgba(124,92,255,.9), rgba(124,92,255,0) 60%);
  animation:float 10s ease-in-out infinite;
  pointer-events:none;
  z-index:-1;
}
.blob.b1{left:-210px;top:-240px;animation-delay:-1s}
.blob.b2{right:-180px;top:-220px;width:560px;height:560px;background:radial-gradient(circle at 35% 35%, rgba(0,210,255,.85), rgba(0,210,255,0) 60%);animation-duration:12s;animation-delay:-3s}
.blob.b3{left:10%;bottom:-420px;width:620px;height:620px;background:radial-gradient(circle at 35% 35%, rgba(0,255,163,.60), rgba(0,255,163,0) 62%);animation-duration:13s;animation-delay:-5s;opacity:.35}
@keyframes float{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(0,18px,0) scale(1.03)}
}

.wrap{width:min(1180px,100%); margin:0 auto; position:relative}

.hero, .card, .faq, .share{
  background:linear-gradient(180deg, var(--card), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  position:relative;
  overflow:hidden;
}

.hero::before, .card::before, .faq::before, .share::before{
  content:"";
  position:absolute; inset:-2px;
  background:linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,.14), rgba(255,255,255,0));
  transform:translateX(-60%);
  animation:shine 8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes shine{
  0%{transform:translateX(-70%)}
  45%{transform:translateX(20%)}
  100%{transform:translateX(70%)}
}

.hero{padding:clamp(22px,4vw,36px); margin-bottom:18px}
.hero-top{display:flex; gap:18px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap}
.brand{display:flex; gap:16px; align-items:center}
.logo{
  width:62px;height:62px;min-width:62px;
  display:grid;place-items:center;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  box-shadow:inset 0 0 24px rgba(74,177,255,.10);
  font-size:30px;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background:rgba(255,255,255,.06); border:1px solid var(--border2);
  color:var(--muted); font-size:13px; margin-bottom:14px;
}
h1{margin:0 0 10px; font-size:clamp(28px,5vw,46px); line-height:1.05; letter-spacing:-.03em}
.hero p{margin:0; color:var(--muted); max-width:760px; font-size:clamp(15px,2vw,18px)}

.hero-grid{
  margin-top:24px;
  display:grid; grid-template-columns:1.2fr .8fr; gap:14px;
}
.hero-box{
  padding:18px; border-radius:20px;
  background:var(--card3); border:1px solid var(--border2);
}
.hero-box strong{display:block; margin-bottom:8px; font-size:15px}
.hero-list{margin:0; padding-left:18px; color:var(--muted)}
.hero-list li+li{margin-top:8px}
.quick-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}

.btn, a.btn, button.btn{
  font-family:inherit !important;
  font-size:15px !important;
  line-height:1.25 !important;
  letter-spacing:.1px;
}
.btn{
  appearance:none; -webkit-appearance:none;
  border:none; outline:none;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 16px; min-height:50px; border-radius:14px;
  font-weight:800; color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  cursor:pointer; text-decoration:none;
  transition:transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:focus-visible{box-shadow:0 0 0 6px var(--ring)}
.btn--primary{
  background:linear-gradient(180deg, var(--primary) 0%, var(--primary2) 100%);
  border-color:transparent; color:rgba(0,0,0,.82);
  text-shadow:0 1px 0 rgba(255,255,255,.25);
  box-shadow:0 12px 22px rgba(74,177,255,.22);
}
.btn--soft{background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05))}
.btn--small{padding:11px 13px; min-height:42px; border-radius:12px}
.btn.full{width:100%}

.stat{
  display:flex; align-items:center; gap:10px; color:var(--muted2); font-size:14px;
  margin-top:14px;
}

.section-title{margin:0 0 8px; font-size:clamp(22px,3vw,30px); letter-spacing:-.02em}
.section-sub{margin:0 0 18px; color:var(--muted); max-width:820px}

.proxies{margin-top:24px}
.grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px}
.card{padding:18px; display:flex; flex-direction:column; min-height:100%}
.card-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px; font-size:12px; font-weight:800;
  border:1px solid var(--border2); background:rgba(255,255,255,.06);
}
.badge--primary{box-shadow:inset 0 0 20px rgba(74,177,255,.12)}
.badge--reserve{box-shadow:inset 0 0 20px rgba(124,92,255,.12)}
.proxy-name{margin:0; font-size:20px; line-height:1.15}
.proxy-sub{margin:7px 0 0; color:var(--muted); font-size:14px}

.qr-box{
  display:grid; place-items:center;
  border-radius:18px; min-height:208px; padding:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid var(--border2);
  margin:6px 0 16px;
}
.qr-shell{
  width:196px; height:196px; padding:3px;
  border-radius:22px;
  background:conic-gradient(from 220deg, rgba(74,177,255,.9), rgba(124,92,255,.85), rgba(0,213,143,.85), rgba(74,177,255,.9));
  box-shadow:0 14px 28px rgba(0,0,0,.25);
}
.qr{
  width:100%; height:100%;
  border-radius:18px; background:#fff; padding:10px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
  box-sizing:border-box;
}
.qr-img{
  display:block;
  width:172px;
  height:172px;
  max-width:100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.actions{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px}
.hint{margin-top:12px; color:var(--muted2); font-size:13px; text-align:center}

.share, .faq{padding:20px; margin-top:18px}
.share-box{
  display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:space-between;
  padding:16px; border-radius:18px; background:var(--card3); border:1px solid var(--border2);
}
.share-url{
  flex:1 1 380px; user-select:all;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  background:rgba(0,0,0,.24); border:1px dashed rgba(255,255,255,.22);
  padding:12px 14px; border-radius:12px; overflow:auto; color:rgba(200,235,255,.95)
}
.faq-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}
.faq-item{padding:16px; border-radius:18px; background:var(--card3); border:1px solid var(--border2)}
.faq-item strong{display:block; margin-bottom:8px}
.faq-item p{margin:0; color:var(--muted)}

footer{
  margin-top:18px; color:var(--muted2); font-size:14px;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding:0 4px;
}

.proxy-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 16px;
}
.proxy-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--border2);
  background:var(--card3);
  color:var(--muted);
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.proxy-tab:hover{
  color:var(--text);
  border-color:var(--border);
}
.proxy-tab.is-active{
  color:var(--text);
  border-color:rgba(74,177,255,.45);
  background:rgba(74,177,255,.12);
  box-shadow:0 0 0 1px var(--ring);
}
.proxy-tab-count{
  display:inline-flex;
  min-width:1.6em;
  justify-content:center;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}
.proxy-tab.is-active .proxy-tab-count{
  background:rgba(74,177,255,.22);
  color:var(--text);
}

.proxy-pager{
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.proxy-pager-nav{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:10px;
  align-items:center;
  width:100%;
}
.proxy-pager-nav .btn{min-height:46px}
#pagePrevBtn{justify-self:start}
#pageNextBtn{justify-self:end}
.proxy-pager-info{
  color:var(--muted);
  font-size:14px;
  font-weight:700;
  text-align:center;
  white-space:nowrap;
}
#loadMoreBtn{width:100%}
.btn:disabled{opacity:.45; cursor:not-allowed; transform:none !important; pointer-events:none}

@media (max-width: 860px){
  .hero-grid, .faq-grid, .grid{grid-template-columns:1fr}
  .actions{grid-template-columns:1fr}
}
@media (max-width: 560px){
  body{padding:16px 12px 28px}
  .hero,.card,.faq,.share{border-radius:20px}
  .logo{width:56px;height:56px;min-width:56px}
  .quick-actions{flex-direction:column}
  .quick-actions .btn{width:100%}
  .qr-shell{width:184px; height:184px}
  .qr-img{width:148px; height:148px}
  .proxy-pager-nav{grid-template-columns:1fr; gap:8px}
  #pagePrevBtn,#pageNextBtn{justify-self:stretch; width:100%}
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}
