
:root{
  --bg:#0b0f16;
  --panel:#121826;
  --card:#0f1522;
  --text:#e8eefc;
  --muted:#a7b2c9;
  --stroke:rgba(255,255,255,.08);
  --accent:#ffffff;
  --accent2:#6aa2ff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(106,162,255,.16), transparent 55%),
              radial-gradient(1000px 600px at 80% 10%, rgba(255,255,255,.08), transparent 55%),
              var(--bg);
  color:var(--text);
}
.app{min-height:100vh; display:flex; flex-direction:column}
.topbar{
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 18px 10px;
}
.title{display:flex; gap:10px; align-items:baseline; flex-wrap:wrap}
.hint{color:var(--muted); font-size:12px}
.lang{display:flex; gap:8px}
.pill{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
}
.pill.active{background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.18)}
.main{flex:1; display:grid; grid-template-columns: 1fr 360px; gap:16px; padding:10px 18px 18px}
.viewer{
  border:1px solid var(--stroke);
  border-radius:18px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  position:relative;
  min-height:540px;
  overflow:hidden;
}
.viewer-placeholder{
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  gap:10px;
}
.viewer-badge{
  width:54px; height:54px; border-radius:14px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  display:flex; align-items:center; justify-content:center;
  font-weight:700;
}
.viewer-text{color:var(--muted); font-size:13px}
.panel{display:flex; flex-direction:column; gap:12px}
.card{
  border:1px solid var(--stroke);
  border-radius:16px;
  background:rgba(15,21,34,.72);
  padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.card-title{font-weight:700; margin-bottom:10px}
.price-card .price{font-size:34px; font-weight:800; letter-spacing:.2px}
.small{color:var(--muted); font-size:12px; margin-top:6px}
select, input[type="text"], input[type="email"], input[type="tel"], textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}
.row{margin-top:10px}
.row label{display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:13px}
.row .val{color:var(--text)}
input[type="range"]{width:100%}
.check{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:8px 10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  margin-top:8px;
}
.check input{transform:scale(1.1)}
.chip{
  border:1px solid rgba(255,255,255,.14);
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  color:var(--text);
  background:rgba(255,255,255,.06);
}
.btnrow{display:flex; gap:10px; margin-top:12px}
button{
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  cursor:pointer;
}
button.primary{
  background:rgba(255,255,255,.92);
  color:#0b0f16;
  border-color:rgba(255,255,255,.92);
  font-weight:700;
  flex:1;
}
button.ghost{flex:1}
.footnote{margin-top:10px; color:var(--muted); font-size:12px}

.dialog{
  border:none;
  border-radius:16px;
  padding:0;
  width:min(720px, calc(100vw - 24px));
  background:rgba(15,21,34,.98);
  color:var(--text);
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
}
.dialog::backdrop{background:rgba(0,0,0,.55)}
.dialog-inner{padding:14px; margin:0}
.dialog-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px}
.dialog-head .x{width:38px; height:38px; border-radius:12px; font-size:22px; padding:0}
.grid{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
.grid .full{grid-column:1/-1}
.dialog-actions{display:flex; justify-content:flex-end; gap:10px; margin-top:10px}
@media (max-width: 900px){
  .main{grid-template-columns: 1fr; }
}
