:root{
  --bg0:#07070a; --bg1:#0b0b12;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --text:#f5f5f7; --muted: rgba(245,245,247,.70);
  --gold1:#f7d77b; --gold2:#caa84c;
  --good:#35d07f; --bad:#ff4d4d; --warn:#ffcc66;
  --shadow: 0 18px 45px rgba(0,0,0,.45);
  --radius: 18px; --radius2: 22px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(247,215,123,.13), transparent 60%),
    radial-gradient(800px 380px at 92% 20%, rgba(202,168,76,.11), transparent 55%),
    radial-gradient(900px 520px at 30% 95%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
a{color:var(--gold1); text-decoration:none}
a:hover{opacity:.9; text-decoration:underline}

.container{width:min(1100px,92vw); margin:0 auto; padding:24px 0 70px;}

.topbar{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(7,7,10,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  width:min(1100px,92vw);
  margin:0 auto;
  display:flex; gap:14px;
  align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; gap:10px; align-items:center}
.brand-badge{
  width:40px; height:40px; border-radius:14px;
  background: radial-gradient(22px 22px at 30% 25%, rgba(247,215,123,.45), transparent 60%),
              radial-gradient(28px 28px at 70% 80%, rgba(202,168,76,.35), transparent 65%),
              rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 12px 35px rgba(0,0,0,.35);
}
.brand-title{font-weight:900; letter-spacing:.2px; line-height:1.1}
.brand-sub{font-size:12px; color:var(--muted); margin-top:2px}

.nav{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.pill:hover{background: rgba(255,255,255,.07); text-decoration:none}

.hero{padding:18px 0 8px}
.hero h1{margin:0 0 10px; font-size:clamp(22px,2.4vw,34px); letter-spacing:.2px}
.hero p{margin:0; color:var(--muted); line-height:1.8}

.grid{display:grid; gap:16px}
.grid.two{grid-template-columns: repeat(2, minmax(0,1fr))}
.grid.three{grid-template-columns: repeat(3, minmax(0,1fr))}
@media (max-width: 900px){ .grid.two,.grid.three{grid-template-columns:1fr} }

.card{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-inner{padding:18px}
.card-title{display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:10px}
.card-title h3{margin:0; font-size:16px; letter-spacing:.2px}
.badge{
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--muted); font-size:12px; white-space:nowrap;
}
.badge.gold{
  color: rgba(255,255,255,.92);
  background: linear-gradient(90deg, rgba(247,215,123,.20), rgba(202,168,76,.12));
  border-color: rgba(247,215,123,.20);
}

.kv{display:grid; grid-template-columns: 140px 1fr; gap:10px 14px; align-items:center}
@media (max-width:520px){ .kv{grid-template-columns:1fr} }
.kv .k{color:var(--muted); font-size:13px}
.kv .v{font-weight:800}

code{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  padding:.15rem .4rem;
  border-radius:10px;
  color:#fff;
  word-break: break-all;
}
hr{
  border:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  margin:18px 0;
}

.input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(247,215,123,.35);
  box-shadow: 0 0 0 4px rgba(247,215,123,.10);
}

.btnrow{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.btn{
  cursor:pointer;
  border:0;
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn-primary{color:#0b0b12; background: linear-gradient(90deg, var(--gold1), var(--gold2))}
.btn-primary:hover{filter: brightness(1.06)}
.btn-ghost{color: var(--text); background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10)}
.btn-ghost:hover{background: rgba(255,255,255,.08)}
.btn-danger{color:#fff; background: rgba(255,77,77,.18); border:1px solid rgba(255,77,77,.30)}
.btn-danger:hover{background: rgba(255,77,77,.24)}
.btn-ok{color:#00170b; background: rgba(53,208,127,.20); border:1px solid rgba(53,208,127,.35)}
.btn-ok:hover{background: rgba(53,208,127,.26)}

.alert{
  padding:12px 14px; border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  margin:12px 0; line-height:1.8;
}
.alert.good{border-color: rgba(53,208,127,.35); background: rgba(53,208,127,.10)}
.alert.bad{border-color: rgba(255,77,77,.35); background: rgba(255,77,77,.10)}
.alert.warn{border-color: rgba(255,204,102,.35); background: rgba(255,204,102,.10)}

.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
}
.table th,.table td{
  padding:12px 12px;
  text-align:right;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.table th{font-size:12px; color:var(--muted); background: rgba(255,255,255,.05)}
.table tr:hover td{background: rgba(255,255,255,.03)}
.table tr:last-child td{border-bottom:0}

.preview-img{
  width:100%;
  max-width: 560px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}

.small{font-size:12px; color:var(--muted)}
.copyline{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.copybtn{
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.copybtn:hover{background: rgba(255,255,255,.08)}

.footer{margin-top:22px; color:var(--muted); font-size:12px; text-align:center}
/* QR Beautiful Block */
.qr-wrap{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}
.qr-box{
  width: min(280px, 100%);
  aspect-ratio: 1/1;
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(90px 90px at 30% 20%, rgba(247,215,123,.22), transparent 60%),
    radial-gradient(120px 120px at 80% 90%, rgba(202,168,76,.18), transparent 65%),
    rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
}
.qr-img{
  width:100%;
  height:100%;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.qr-info{
  flex:1;
  min-width: 220px;
}
