/* GSM Starter Kit v0.1
   Dark glass + neon accents, responsive.
*/
:root{
  --bg:#070a12;
  --panel:rgba(15,18,31,.64);
  --panel2:rgba(15,18,31,.84);
  --stroke:rgba(255,255,255,.08);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.70);
  --muted2:rgba(234,240,255,.55);
  --brand:#7c5cff;
  --brand2:#00e5ff;
  --good:#3bf39a;
  --bad:#ff5c7a;
  --warn:#ffd166;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:26px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 600px at 10% 0%, rgba(124,92,255,.18), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(0,229,255,.12), transparent 60%),
              linear-gradient(180deg, #070a12 0%, #05070c 100%);
  color:var(--text);
}

.bg-orbs{
  position:fixed; inset:0; pointer-events:none; opacity:.65;
  background:
    radial-gradient(260px 260px at 20% 30%, rgba(124,92,255,.20), transparent 70%),
    radial-gradient(300px 300px at 80% 20%, rgba(0,229,255,.16), transparent 70%),
    radial-gradient(220px 220px at 75% 70%, rgba(59,243,154,.10), transparent 70%),
    radial-gradient(220px 220px at 25% 75%, rgba(255,92,122,.10), transparent 70%);
  filter: blur(2px);
}

.container{ width:min(1120px, 92vw); margin:0 auto; }

a{ color:inherit; text-decoration:none; }
.link{ color:var(--brand2); }
.link:hover{ text-decoration:underline; }

.topbar{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(14px);
  background: rgba(7,10,18,.55);
  border-bottom:1px solid var(--stroke);
}
.topbar-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand), rgba(124,92,255,.25));
  border:1px solid rgba(124,92,255,.40);
  box-shadow: 0 8px 20px rgba(124,92,255,.15);
  font-weight:800;
}
.brand-name{ font-weight:700; letter-spacing:.2px; }

.topnav{ display:flex; gap:16px; align-items:center; }
.topnav a{ color:var(--muted); font-weight:600; font-size:14px; }
.topnav a:hover{ color:var(--text); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.btn:active{ transform: translateY(1px); }
.btn-lg{ padding:12px 18px; border-radius:16px; font-size:15px; }

.btn-primary{
  border:1px solid rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,229,255,.35));
  box-shadow: 0 14px 28px rgba(124,92,255,.20);
}
.btn-primary:hover{ filter: brightness(1.05); }
.btn-ghost{ background: rgba(255,255,255,.03); }

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  color: var(--muted);
  font-weight:700;
  font-size:13px;
}
.pill.small{ padding:6px 10px; font-size:12px; }

.hero{
  padding:54px 0 18px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:28px;
  align-items:start;
}
.hero h1{ font-size: clamp(34px, 4vw, 54px); line-height:1.02; margin:14px 0 12px; letter-spacing:-.8px; }
.lead{ color:var(--muted); font-size:16.5px; line-height:1.55; margin:0 0 18px; }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; margin: 12px 0 10px; }
.fineprint{ color:var(--muted2); font-size:13px; }

.card{
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.glass{
  background: linear-gradient(180deg, rgba(15,18,31,.75), rgba(15,18,31,.55));
  backdrop-filter: blur(16px);
}
.card-head, .card-foot{ padding:14px 16px; border-bottom:1px solid var(--stroke); }
.card-foot{ border-bottom:none; border-top:1px solid var(--stroke); }
.kicker{ font-weight:800; letter-spacing:.4px; text-transform:uppercase; font-size:12px; color:rgba(234,240,255,.78); }
.muted{ color:var(--muted); }
.small{ font-size:12px; }
.badge{
  padding:6px 10px; border-radius:999px;
  background: rgba(124,92,255,.20);
  border:1px solid rgba(124,92,255,.38);
  font-weight:800; font-size:12px;
}
.chip{
  padding:6px 10px; border-radius:999px;
  background: rgba(0,229,255,.14);
  border:1px solid rgba(0,229,255,.28);
  font-weight:800; font-size:12px;
}

.hero-card{ display:flex; flex-direction:column; gap:14px; }
.card.glass.mini{ padding:14px 16px; }
.row{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.meter{ height:10px; background: rgba(255,255,255,.06); border:1px solid var(--stroke); border-radius:999px; overflow:hidden; margin:10px 0 8px; }
.meter-bar{ height:100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); }

.section{ padding:30px 0; }
.section h2{ margin:0 0 14px; letter-spacing:-.4px; }
.grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.grid3 .card{ padding:16px; }
.grid3 h3{ margin:0 0 8px; }
.grid3 p{ margin:0; color:var(--muted); line-height:1.55; }

.steps{ display:grid; gap:12px; }
.step{ display:flex; gap:14px; padding:16px; align-items:flex-start; }
.step-n{
  width:34px; height:34px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.05);
  border:1px solid var(--stroke);
  font-weight:900;
}

.pricing .price{ font-size:30px; font-weight:900; letter-spacing:-.5px; margin:6px 0 12px; }
.pricing ul{ margin:0 0 14px; padding-left:18px; color:var(--muted); line-height:1.8; }
.pricing.featured{ border-color: rgba(124,92,255,.35); box-shadow: 0 20px 60px rgba(124,92,255,.22); }

.footer{ padding:26px 0 40px; display:flex; justify-content:space-between; align-items:center; gap:14px; }
.footer-links{ display:flex; gap:14px; }

/* Landing movers list */
.movers{ padding: 8px 8px 14px; }
.mover{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  margin:8px 0;
}
.mover:hover{ border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.mover .sym{ font-weight:900; letter-spacing:.2px; }
.mover .name{ color:var(--muted); font-size:12px; margin-top:2px; }
.mover .chg{ font-weight:900; }
.chg.up{ color:var(--good); }
.chg.down{ color:var(--bad); }

/* App layout */
body.app{ padding-bottom: 40px; }
.appbar{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(14px);
  background: rgba(7,10,18,.55);
  border-bottom:1px solid var(--stroke);
}
.appbar-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px; }
.appbar-actions{ display:flex; gap:10px; align-items:center; }

.appshell{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:14px;
  padding-top: 14px;
}
.sidebar{ padding:10px; height: calc(100vh - 120px); position:sticky; top:78px; }
.navitem{
  display:flex; align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  margin:8px 0;
  font-weight:800;
  color: rgba(234,240,255,.86);
}
.navitem:hover{ border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
.sidebar-foot{ margin-top:14px; padding:10px 12px; border-top:1px solid var(--stroke); }

.view{ min-height: calc(100vh - 120px); }

.view .page{
  padding:16px;
}
.page h2{ margin:0 0 12px; letter-spacing:-.4px; }
.toolbar{ display:flex; gap:10px; flex-wrap:wrap; margin:12px 0 8px; align-items:center; }
.input, select{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  outline:none;
}
.input:focus, select:focus{ border-color: rgba(124,92,255,.55); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 8px;
}
.table th{
  text-align:left;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.45px;
  padding:0 10px;
}
.table td{
  padding:12px 10px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}
.table tr td:first-child{ border-radius:14px 0 0 14px; }
.table tr td:last-child{ border-radius:0 14px 14px 0; }
.trlink{ cursor:pointer; }
.trlink:hover td{ border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.05); }

.grid2{ display:grid; grid-template-columns: 1.2fr .8fr; gap:14px; }
.chartbox{ padding:12px; }
.chart{ height: 380px; }
.orderbox{ padding:12px; }
.orderbox h3{ margin:0 0 10px; }
.ordergrid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.ordergrid .full{ grid-column: 1 / -1; }
hr.sep{ border:0; border-top:1px solid var(--stroke); margin:12px 0; }

.tag{
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:800; font-size:12px;
}

/* Modal */
.modal{ position:fixed; inset:0; display:grid; place-items:center; z-index:70; }
.modal.hidden{ display:none; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); }
.modal-card{ position:relative; width:min(720px, 92vw); max-height: 84vh; overflow:auto; }
.modal-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--stroke); }
.iconbtn{
  width:38px; height:38px; border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
}
.iconbtn:hover{ background: rgba(255,255,255,.06); }

@media (max-width: 960px){
  .hero{ grid-template-columns:1fr; }
  .topnav{ display:none; }
  .appshell{ grid-template-columns:1fr; }
  .sidebar{ position:relative; top:0; height:auto; }
  .grid2{ grid-template-columns:1fr; }
  .chart{ height: 320px; }
}


/* v0.1.1 polish */
.topbar{backdrop-filter: blur(10px);}
.hero h1{letter-spacing:-0.02em;}
.card.glass{border:1px solid rgba(255,255,255,.06);}


/* === v0.2.0 premium chart tools + fullscreen === */

.chartwrap{ position: relative; border-radius: 16px; overflow:hidden; }
.drawlayer{ touch-action: none; }

.chart-tools{
  display:flex; gap:8px; flex-wrap:wrap;
  padding:10px 8px 8px;
  border-top:1px solid rgba(255,255,255,.06);
  margin-top:10px;
}
.toolbtn{
  height:34px; min-width:34px;
  padding:0 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.88);
  font-weight:900;
  cursor:pointer;
}
.toolbtn:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.toolbtn.active{
  border-color: rgba(0,229,255,.35);
  background: rgba(0,229,255,.10);
  box-shadow: 0 10px 24px rgba(0,229,255,.10);
}
.toolsep{ width:1px; height:34px; background: rgba(255,255,255,.08); margin:0 2px; }

body.chartfs .appshell{ grid-template-columns: 1fr; }
body.chartfs .sidebar{ display:none; }
body.chartfs .orderbox{ display:none; }
body.chartfs .grid2{ grid-template-columns: 1fr; }
body.chartfs .chart{ height: calc(100vh - 190px); }
body.chartfs .chartbox{ position: relative; }

.stats-strip{
  display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 8px;
}
.stat{
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.stat-k{ font-weight:900; letter-spacing:.25px; }
.stat-v{ color: var(--muted); font-size:12px; margin-top:2px; }


/* === v0.2.1 landing polish === */

body{
  background:
    radial-gradient(1200px 700px at 15% 20%, rgba(0,229,255,.14), transparent 60%),
    radial-gradient(900px 600px at 80% 35%, rgba(124,92,255,.16), transparent 55%),
    radial-gradient(600px 480px at 55% 85%, rgba(255,92,122,.10), transparent 60%),
    var(--bg);
}
.section{ padding: 26px 0; }
.section-head{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.list{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 6px 0; }
@media (max-width: 980px){ .grid3{ grid-template-columns: 1fr; } }


/* v0.2.2 selection/edit polish */
.drawlayer{ user-select:none; }
