:root{
  --bg:#0b1224;
  --bg2:#111a33;

  --panel:rgba(255,255,255,.06);

  --line:rgba(255,255,255,.10);
  --lineStrong:rgba(255,255,255,.18);

  --text:#f5f7ff;
  --muted:#a8b2d8;

  --primary:#7c8cff;
  --primary2:#a76bff;

  --radiusXL:26px;
  --radiusLG:18px;
  --radiusMD:14px;

  --shadowLG:0 24px 60px rgba(0,0,0,.40);
  --shadowMD:0 14px 30px rgba(0,0,0,.28);
}

/* reset */
*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
}

body{
  font-family:'Segoe UI',system-ui,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 15% 10%,rgba(123,140,255,.18),transparent 25%),
    radial-gradient(circle at 90% 10%,rgba(157,107,255,.15),transparent 22%),
    linear-gradient(180deg,#070d1f 0%,#050812 100%);
  min-height:100vh;
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

/* layout */
.shell{
  width:min(1120px,100%);
  margin:auto;
  padding:20px;
  position:relative;
  z-index:1;
}

.guide-shell{
  padding-bottom:60px;
}

/* topbar */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:18px;
  margin-bottom:18px;
}

.brand-wrap{
  max-width:760px;
}

.topbar .top-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

/* base buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  font-size:.9rem;
  font-weight:700;
  cursor:pointer;
  color:var(--text);
  transition:
    background-color .16s ease,
    border-color .16s ease,
    transform .16s ease,
    box-shadow .16s ease;
}

.btn:hover{
  background:rgba(255,255,255,.09);
  border-color:var(--lineStrong);
}

.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  border:none;
  color:#fff;
}

/* buttons */
.topbar .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:12px 18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  font-size:.95rem;
  font-weight:800;
  cursor:pointer;
  color:var(--text);
  white-space:nowrap;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.topbar .btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.1);
  border-color:var(--lineStrong);
}

.topbar .btn.ghost{
  background:rgba(255,255,255,.05);
}

.topbar .back-btn{
  min-width:132px;
  background:linear-gradient(135deg,#3146d9,#6f5bff);
  border:none;
  box-shadow:0 12px 28px rgba(99,102,241,.38);
}

.topbar .back-btn:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 15px 34px rgba(99,102,241,.5);
}

.topbar .nav-icon-btn{
  min-width:132px;
}

.topbar .nav-icon-btn.active{
  border-color:rgba(123,140,255,.45);
  background:linear-gradient(135deg,rgba(123,140,255,.2),rgba(157,107,255,.14));
  box-shadow:0 8px 22px rgba(123,140,255,.2);
}

.topbar .btn-icon{
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 20px;
}

.topbar .btn-icon img{
  width:18px;
  height:18px;
  object-fit:contain;
  display:block;
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 0 8px rgba(255,255,0,.55));
}

/* panels */
.panel,
.quick-card,
.mini-card,
.hero-card,
.accordion-item{
  background:
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
  border:1px solid var(--line);
  box-shadow:var(--shadowMD);
}

/* hero */
.hero{
  margin-bottom:20px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
}

.hero-main{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.hero h2{
  font-size:clamp(1.5rem,2.5vw,2.1rem);
  font-weight:800;
  margin:8px 0 14px;
  line-height:1.15;
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.hero-card{
  border-radius:22px;
  padding:18px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.05)),
    linear-gradient(135deg,rgba(123,140,255,.10),rgba(157,107,255,.08));
}

.hero-card p{
  margin:0;
  line-height:1.7;
  color:var(--muted);
}

/* quick cards */
.quick-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:20px;
}

.quick-card{
  border-radius:18px;
  padding:15px;
  transition:
    border-color .16s ease,
    transform .16s ease,
    background-color .16s ease;
}

.quick-card:hover{
  border-color:var(--lineStrong);
  transform:translateY(-1px);
}

.quick-label{
  font-size:.75rem;
  color:var(--muted);
  display:block;
  margin-bottom:6px;
}

.quick-card strong{
  font-size:1.05rem;
}

/* guide section */
.panel{
  border-radius:var(--radiusXL);
  padding:20px;
}

.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.panel-head h2{
  margin:0;
  font-size:1.2rem;
}

.panel-badge{
  font-size:.8rem;
  border-radius:999px;
  padding:6px 12px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  white-space:nowrap;
}

/* accordion */
.accordion-list{
  display:grid;
  gap:12px;
}

.accordion-item{
  border-radius:16px;
  overflow:hidden;
}

.accordion-toggle{
  width:100%;
  border:0;
  background:none;
  color:var(--text);
  padding:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  font-size:.95rem;
  font-weight:700;
  text-align:left;
}

.accordion-title-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.accordion-number{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.08);
  font-size:.8rem;
  font-weight:800;
  flex-shrink:0;
}

.accordion-icon{
  width:30px;
  height:30px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.06);
  font-size:.9rem;
  flex-shrink:0;
}

.accordion-body{
  max-height:0;
  overflow:hidden;
  padding:0 16px;
  opacity:0;
  transition:
    max-height .22s ease,
    opacity .18s ease,
    padding .18s ease;
}

.accordion-item.open .accordion-body{
  max-height:1000px;
  padding:0 16px 16px;
  opacity:1;
}

/* lists */
.steps,
.bullet-list{
  margin:0;
  padding-left:18px;
  line-height:1.7;
}

.flow-list{
  display:grid;
  gap:10px;
}

.flow-item{
  border-radius:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
}

/* mini cards */
.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.card-grid.two{
  grid-template-columns:repeat(2,1fr);
}

.mini-card{
  border-radius:16px;
  padding:14px;
}

.mini-card p{
  margin:0;
  color:var(--muted);
}

.mini-title img{
  width:40px;
  height:40px;
  display:block;
}

/* table */
.table-wrap{
  overflow:auto;
  margin-top:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  -webkit-overflow-scrolling:touch;
}

.info-table{
  width:100%;
  border-collapse:collapse;
  min-width:420px;
}

.info-table th,
.info-table td{
  padding:11px;
  border-bottom:1px solid rgba(255,255,255,.07);
  font-size:.9rem;
  text-align:left;
}

.info-table th{
  color:var(--muted);
  background:rgba(255,255,255,.04);
  font-weight:700;
}

/* toast */
.toast{
  position:fixed;
  left:50%;
  bottom:20px;
  transform:translateX(-50%) translateY(8px);
  padding:10px 16px;
  border-radius:999px;
  background:#0a0f22;
  border:1px solid var(--line);
  opacity:0;
  pointer-events:none;
  transition:
    opacity .18s ease,
    transform .18s ease;
  z-index:50;
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* responsive */
@media (max-width:960px){
  .hero-grid{
    grid-template-columns:1fr;
  }

  .quick-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .card-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:640px){
  .shell{
    padding:14px;
  }

  .quick-grid{
    grid-template-columns:1fr;
  }

  .card-grid{
    grid-template-columns:1fr;
  }

  .topbar .top-actions{
    width:100%;
  }

  .topbar .top-actions .btn{
    flex:1 1 auto;
  }

  .hero-actions{
    flex-direction:column;
  }

  .hero-actions .btn{
    width:100%;
  }

  .hero h2{
    font-size:1.4rem;
  }
}

@media (max-width:480px){
  .panel,
  .hero-card,
  .quick-card,
  .mini-card,
  .accordion-item{
    box-shadow:0 10px 22px rgba(0,0,0,.22);
  }
}
