:root{
  --bg:#0b1220;
  --panel:#111a2b;
  --panel2:#0f1727;
  --text:#e7ecf5;
  --muted:#aab6cf;
  --line:#223050;

  --ok:#2ecc71;
  --warn:#f1c40f;
  --bad:#e74c3c;

  --radius:14px;
  --shadow: 0 10px 25px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: radial-gradient(1000px 700px at 20% 0%, #1a2a4a 0%, var(--bg) 50%) fixed;
  color:var(--text);
}

a{color:inherit}
.link{opacity:.9; text-decoration:none}
.link:hover{opacity:1; text-decoration:underline}

.topbar{
  position:sticky; top:0;
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 22px;
  background: rgba(17,26,43,.85);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-right{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.lang-switch{display:inline-flex; gap:10px; align-items:center; white-space:nowrap}

.brand{display:flex; gap:12px; align-items:center}
.brand-dot{width:12px; height:12px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 6px rgba(46,204,113,.15)}
.brand-title{font-weight:700; letter-spacing:.2px}
.brand-sub{font-size:12px; color:var(--muted)}

.user-chip{display:flex; gap:12px; align-items:center; padding:8px 10px; border:1px solid var(--line); border-radius:999px; background: rgba(15,23,39,.65)}
.user-name{font-size:14px; color:var(--muted)}

.layout{display:grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 64px);}
.sidebar{padding:20px; border-right:1px solid var(--line); background: rgba(15,23,39,.45)}
.menu{display:flex; flex-direction:column; gap:8px}
.menu-item{
  padding:10px 12px;
  border-radius: 12px;
  text-decoration:none;
  border:1px solid transparent;
  color:var(--muted);
  background: transparent;
}
.menu-item:hover{border-color: var(--line); color:var(--text); background: rgba(17,26,43,.35)}
.menu-item.active{border-color: rgba(46,204,113,.45); color:var(--text); background: rgba(46,204,113,.08)}

.sidebar-note{
  margin-top:18px;
  padding:12px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,26,43,.35);
}
.note-title{font-weight:600}
.note-text{font-size:12px; color:var(--muted); margin-top:6px; line-height:1.45}

.content{padding:26px; max-width: 1100px}
.h1{font-size:22px; margin:0 0 16px 0}
.sub{color:var(--muted); font-size:14px; margin-bottom:20px; line-height:1.45}

.grid-4{display:grid; grid-template-columns: repeat(4, 1fr); gap:16px}
.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px}
.grid-2{display:grid; grid-template-columns: repeat(2, 1fr); gap:16px}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
  margin-bottom:18px;
}
.kicker{font-size:12px; color:var(--muted); letter-spacing:.25px; text-transform:uppercase}
.hero-title{font-size:34px; line-height:1.12; margin:10px 0 10px 0}
.hero-sub{color:var(--muted); font-size:16px; line-height:1.5; margin:0}
.highlight{border-color: rgba(46,204,113,.45); background: rgba(46,204,113,.06)}
.checklist{display:grid; gap:10px; margin-top:12px}
.check{display:flex; gap:10px; align-items:flex-start}
.check b{font-weight:700}
.section{margin-bottom:18px}
.section-title{font-size:13px; color:var(--muted); letter-spacing:.2px; text-transform:uppercase}
.divider{height:1px; background:var(--line); margin:14px 0}
.list{display:grid; gap:8px}
.price{font-size:28px; font-weight:800; letter-spacing:.2px}
.muted{color:var(--muted)}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,26,43,.55);
  box-shadow: var(--shadow);
  padding:16px;
}
.kpi-row{display:flex; justify-content:space-between; gap:12px; align-items:flex-start}
.kpi-left{min-width:0}
.kpi-right{white-space:nowrap; color:var(--muted)}
.card-title{font-size:13px; color:var(--muted)}
.card-value{font-size:20px; margin-top:8px; font-weight:700}
.badge{display:inline-flex; align-items:center; gap:8px}
.dot{width:10px; height:10px; border-radius:50%}
.dot.ok{background: var(--ok); box-shadow:0 0 0 6px rgba(46,204,113,.12)}
.dot.warn{background: var(--warn); box-shadow:0 0 0 6px rgba(241,196,15,.12)}
.dot.bad{background: var(--bad); box-shadow:0 0 0 6px rgba(231,76,60,.12)}

.actions{display:flex; gap:10px; flex-wrap:wrap; margin:20px 0}
.btn{
  display:inline-flex; gap:10px; align-items:center;
  padding:11px 14px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(15,23,39,.65);
  text-decoration:none;
  color:var(--text);
}
.btn:hover{border-color: rgba(46,204,113,.45); background: rgba(46,204,113,.08)}
.btn.primary{border-color: rgba(46,204,113,.55); background: rgba(46,204,113,.12)}
.btn.primary:hover{border-color: rgba(46,204,113,.75); background: rgba(46,204,113,.16)}

.tag{display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; border:1px solid var(--line); background: rgba(17,26,43,.35); color:var(--muted); font-size:12px}
.tag.ok{border-color: rgba(46,204,113,.45); background: rgba(46,204,113,.08); color:var(--text)}

.notice{border:1px solid var(--line); border-radius: var(--radius); padding:14px; background: rgba(17,26,43,.35)}
.notice.ok{border-color: rgba(46,204,113,.45); background: rgba(46,204,113,.06)}
.notice.bad{border-color: rgba(231,76,60,.45); background: rgba(231,76,60,.06)}

.pricing{display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:16px}
.pricing .card{height:100%}
.price-small{font-size:14px; color:var(--muted)}
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(17,26,43,.35);
}
.table th, .table td{padding:11px 14px; border-bottom:1px solid var(--line); font-size:14px}
.table th{color:var(--muted); text-align:left; font-weight:600}
.pill{padding:4px 10px; border-radius:999px; border:1px solid var(--line); font-size:13px; display:inline-block}
.pill.ok{border-color: rgba(46,204,113,.45); background: rgba(46,204,113,.10)}
.pill.warn{border-color: rgba(241,196,15,.45); background: rgba(241,196,15,.10)}
.pill.bad{border-color: rgba(231,76,60,.45); background: rgba(231,76,60,.10)}

.footer{
  padding:14px 22px;
  border-top:1px solid var(--line);
  color:var(--muted);
  background: rgba(15,23,39,.35);
  font-size:12px;
}

.auth-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
}
.auth-card{
  width:min(420px, 100%);
  padding:20px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(17,26,43,.65);
  box-shadow: var(--shadow);
}
.field{display:flex; flex-direction:column; gap:6px; margin-top:10px}
.input{
  padding:11px 14px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(15,23,39,.65);
  color:var(--text);
}
.input:focus{outline:none; border-color: rgba(46,204,113,.55)}
.error{margin-top:10px; color:#ffd1d1; font-size:13px}
.small{color:var(--muted); font-size:13px}

@media (max-width: 980px){
  .layout{grid-template-columns: 1fr}
  .sidebar{border-right:none; border-bottom:1px solid var(--line)}
  .grid-4{grid-template-columns: repeat(2, 1fr)}
  .grid-3{grid-template-columns: repeat(2, 1fr)}
  .grid-2{grid-template-columns: 1fr}
  .hero{grid-template-columns: 1fr}
  .hero-title{font-size:28px}
  .pricing{grid-template-columns: 1fr}
}
@media (max-width: 520px){
  .grid-4{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
}
