:root{
  --bg:#0b1020;
  --panel:#101831;
  --panel2:#0f1730;
  --text:#e9ecf5;
  --muted:#aab2c7;
  --primary:#6366f1;
  --secondary:#8b5cf6;
  --stroke:rgba(255,255,255,.10);
  --shadow:0 18px 50px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:14px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(1100px 700px at 15% 10%, rgba(139,92,246,.28), transparent 60%),
    radial-gradient(1100px 700px at 85% 0%, rgba(99,102,241,.26), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:0 16px}
.section{padding:26px 0 48px}
hr.sep{border:0;border-top:1px solid var(--stroke);margin:18px 0}

.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.65);
  border-bottom:1px solid var(--stroke);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0}
.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:850; letter-spacing:.3px;
  padding:8px 12px; border-radius:12px;
  background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(139,92,246,.18));
  border:1px solid var(--stroke);
}
.brand .logo{
  width:28px;height:28px;border-radius:10px;
  background: linear-gradient(135deg, rgba(99,102,241,.9), rgba(139,92,246,.9));
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.nav{display:flex;flex-wrap:wrap;gap:10px}
.nav a{
  padding:8px 10px;border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
}
.nav a:hover{border-color:var(--stroke); color:var(--text)}
.nav a.active{color:var(--text); border-color:rgba(99,102,241,.45); background:rgba(99,102,241,.12)}
.nav .pill{border-color:rgba(139,92,246,.45);background:rgba(139,92,246,.10)}

.muted{color:var(--muted)}
.small{font-size:13px}
.kbd{
  font-size:12px;color:var(--muted);
  padding:4px 8px;border:1px solid var(--stroke);
  border-radius:999px;background:rgba(0,0,0,.14);
}

.hero{padding:22px 0 10px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .95fr;
  gap:18px;
  align-items:start;
}
.hero h1{margin:0 0 10px;font-size:34px;line-height:1.2}
.hero p{line-height:1.8;margin:0}

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

.panel{
  background: linear-gradient(180deg, rgba(16,24,49,.85), rgba(16,24,49,.55));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.panel.mini{padding:14px}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  background: rgba(139,92,246,.18);
  border:1px solid rgba(139,92,246,.35);
  color: var(--text);
  font-size:12px;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  background: linear-gradient(180deg, rgba(16,24,49,.85), rgba(16,24,49,.55));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover{transform: translateY(-3px); border-color: rgba(99,102,241,.45); background: rgba(99,102,241,.06)}
.card-icon{font-size:26px}
.card h3{margin:10px 0 6px}
.card p{margin:0;color:var(--muted);line-height:1.7}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.mt-16{margin-top:16px}
.mt-10{margin-top:10px}

.page-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px; margin-bottom:14px;
}
.page-head h1{margin:0 0 6px}
.page-head p{margin:0}

.uploader{
  border:1px dashed rgba(255,255,255,.28);
  border-radius:var(--radius);
  padding:16px;
  cursor:pointer;
  background: rgba(15,23,48,.45);
  transition: border-color .18s ease, background .18s ease;
}
.uploader:hover{border-color: rgba(99,102,241,.55); background: rgba(99,102,241,.06)}
.uploader.dragover{border-color: rgba(139,92,246,.7); background: rgba(139,92,246,.08)}
.uploader-inner{display:flex;gap:12px;align-items:center}
.uploader-icon{font-size:28px}

.preview{
  display:grid; gap:10px;
}
.preview img{
  width:100%;
  max-height:320px;
  object-fit:contain;
  border-radius:var(--radius2);
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.15);
  display:none;
}

.video{
  width:100%;
  border-radius:var(--radius2);
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
}

.form{display:grid;gap:10px}
label{font-size:13px;color:var(--muted)}
input, textarea, select{
  width:100%;
  padding:10px 12px;
  border-radius:var(--radius2);
  border:1px solid var(--stroke);
  background: rgba(11,16,32,.55);
  color:var(--text);
  outline:none;
}
textarea{resize:vertical;min-height:120px}
input:focus, textarea:focus, select:focus{border-color: rgba(99,102,241,.6)}
.hint{font-size:13px;color:var(--muted);line-height:1.8;margin-top:6px}

.btn{
  padding:10px 12px;
  border-radius:var(--radius2);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(99,102,241,.5); background: rgba(99,102,241,.10)}
.btn.primary{
  border-color: rgba(99,102,241,.55);
  background: linear-gradient(135deg, rgba(99,102,241,.35), rgba(139,92,246,.28));
}
.btn.ghost{background:transparent}
.btn.small{padding:8px 10px;border-radius:12px;font-size:13px}
.btn[disabled]{opacity:.55;cursor:not-allowed;transform:none}
.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

.tabs{display:flex;gap:8px;flex-wrap:wrap}
.tab{
  padding:8px 10px;border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  cursor:pointer;
}
.tab.active{color:var(--text);border-color:rgba(99,102,241,.5);background:rgba(99,102,241,.12)}
.preset-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.results{display:grid;gap:14px;margin-top:16px}
.result-card{
  background: linear-gradient(180deg, rgba(16,24,49,.85), rgba(16,24,49,.55));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.result-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}
.result-head h2{margin:0;font-size:16px}
.code{
  margin:12px 0 0;
  padding:12px;
  border-radius:var(--radius2);
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  overflow:auto;
  min-height:90px;
  white-space:pre-wrap;
  word-break:break-word;
  line-height:1.8;
}

.toast{
  position:fixed;bottom:18px;left:18px;z-index:999;
  background: rgba(16,24,49,.92);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding:10px 12px;
  display:none;
  align-items:center;
  gap:10px;
  max-width: 92vw;
}

.frames{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:8px;
}
.frames img{
  width:100%;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
}

.progress{
  height:10px;border-radius:999px;border:1px solid var(--stroke);
  background: rgba(0,0,0,.12);
  overflow:hidden;
}
.progress > div{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(99,102,241,.9), rgba(139,92,246,.9));
  transition: width .2s ease;
}

.ad-box{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.12);
  padding: 10px;
}
.ad-box.compact{min-width:220px}
.ad-label{font-size:12px;color:var(--muted);margin-bottom:8px}
.ad-placeholder{
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.22);
  padding:14px;
  text-align:center;
  color: rgba(255,255,255,.75);
}
.ad-placeholder.tall{padding:44px 14px}

.site-footer{
  border-top:1px solid var(--stroke);
  padding:18px 0;
  background: rgba(11,16,32,.55);
}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:10px}
.footer-nav{display:flex;gap:12px;flex-wrap:wrap}
.footer-nav a{color:var(--muted)}
.footer-nav a:hover{color:var(--text)}

.legal h2{margin-top:18px}
.list{color:var(--muted);line-height:1.9}
.price-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.price-card h3{margin:0 0 8px}
.price{font-size:28px;font-weight:800;margin:10px 0}
.tag{display:inline-block;font-size:12px;color:var(--muted);border:1px solid var(--stroke);border-radius:999px;padding:4px 10px}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.kpi{border:1px solid var(--stroke);border-radius:var(--radius2);padding:12px;background:rgba(0,0,0,.12)}
.kpi .n{font-weight:850;font-size:18px}
.kpi .t{color:var(--muted);font-size:12px;margin-top:6px}

@media (max-width: 950px){
  .hero-grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .frames{grid-template-columns: repeat(4, 1fr)}
  .page-head{flex-direction:column}
  .price-grid{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr}
}
