:root{
  --bg:#070a10;
  --panel:rgba(18,22,34,.75);
  --panel2:rgba(18,22,34,.55);
  --text:rgba(235,243,255,.92);
  --muted:rgba(235,243,255,.68);
  --border:rgba(255,255,255,.10);
  --shadow:0 18px 45px rgba(0,0,0,.55);
  --radius:16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(73,246,255,.10), transparent 55%),
              radial-gradient(900px 600px at 90% 0%, rgba(179,107,255,.08), transparent 55%),
              var(--bg);
  color:var(--text);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background:rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  position:sticky; top:0; z-index:10;
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 22px rgba(0,0,0,.35);
  font-size:18px;
}
.title{font-weight:800;letter-spacing:.3px}
.subtitle{font-size:12px;color:var(--muted)}
.socialMini{
  display:flex;
  gap:8px;
  margin-top:6px;
}
.socialMini a{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:rgba(235,243,255,.74);
  opacity:.85;
  transition:opacity .15s ease, transform .15s ease, color .15s ease;
}
.socialMini a:hover{
  opacity:1;
  transform:translateY(-1px);
  color:rgba(73,246,255,.95);
}
.socialIcon{
  width:16px;
  height:16px;
  fill:currentColor;
}

.actions{display:flex;gap:10px}
.btn{
  appearance:none;border:none;cursor:pointer;
  padding:10px 12px;border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  box-shadow:0 12px 26px rgba(0,0,0,.35);
}
.btn:hover{transform:translateY(-1px)}
.topLinkTab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:13px;
  padding:10px 14px;
}
.btnPrimary{
  background:linear-gradient(90deg, rgba(73,246,255,.18), rgba(59,130,255,.14), rgba(179,107,255,.10));
  border:1px solid rgba(73,246,255,.28);
}

.grid{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:14px;
  padding:14px;
}
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
}

.panel{
  background:var(--panel);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:14px;
  backdrop-filter: blur(12px);
}

h2{
  font-size:14px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  margin:10px 0 10px;
  color:rgba(255,255,255,.88);
}

hr{
  border:none;
  border-top:1px solid rgba(255,255,255,.10);
  margin:14px 0;
}

.row{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.row.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.row.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.toolRow{display:grid;grid-template-rows:1fr 1fr;gap:10px}
.row.two>.btn,.toolRow>.btn{width:100%}
.tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}
.uxBar{
  display:grid;
  grid-template-columns:150px auto;
  grid-template-areas:"mode actions";
  gap:10px;
  margin-bottom:12px;
  align-items:end;
}
.uxMode{grid-area:mode}
.uxBarActions{
  grid-area:actions;
  display:flex;
  gap:8px;
}
.sectionHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.sectionToggle{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:8px;
  padding:4px 8px;
  font-size:11px;
  cursor:pointer;
}
.hiddenByMode{display:none !important}
.tabBtn{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  cursor:pointer;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:12px;
}
.tabBtn.active{
  background:rgba(73,246,255,.18);
  border-color:rgba(73,246,255,.34);
}
.tabPanel{display:none}
.tabPanel.active{display:block}
label{font-size:12px;color:rgba(255,255,255,.84)}
input[type="url"], input[type="text"], select, textarea{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.30);
  color:var(--text);
  outline:none;
  font-family: var(--mono);
  font-size:12px;
}
textarea{resize:vertical}
input[type="color"]{
  width:100%;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.30);
  padding:4px;
}
input[type="range"]{width:100%}
.hint{font-size:11px;color:rgba(235,243,255,.62)}
code{font-family:var(--mono)}

.previewShell{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.28);
  box-shadow:0 16px 38px rgba(0,0,0,.45);
}
iframe{
  width:100%;
  height:520px;
  border:0;
  display:block;
  background:transparent;
}

.footer{
  padding:12px 16px;
  color:rgba(235,243,255,.55);
  font-size:12px;
}

@media (max-width: 980px){
  .tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .uxBar{grid-template-columns:1fr}
  .uxBar{grid-template-areas:"mode" "actions"}
  .uxBarActions{display:grid;grid-template-columns:1fr 1fr}
  .row.three{grid-template-columns:1fr 1fr}
}
