:root{
  --bg1:#0b0f14;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --accent: rgba(130,170,255,.95);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: var(--bg1);
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(800px 600px at 10% 10%, rgba(130,170,255,.14), transparent 60%),
    radial-gradient(900px 700px at 90% 20%, rgba(255,160,190,.10), transparent 60%),
    radial-gradient(700px 700px at 50% 100%, rgba(120,255,220,.08), transparent 55%),
    linear-gradient(180deg, #070a0f, #0b0f14 40%, #070a0f);
  pointer-events:none;
}

.wrap{max-width:980px; margin:0 auto; padding:28px 18px}
.top h1{margin:0 0 6px; font-size:34px; letter-spacing:-.4px}
.sub{margin:0; color:var(--muted)}
.muted{color:var(--muted)}
.card{
  border:1px solid var(--border);
  background: var(--card);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.card-head{display:flex; justify-content:space-between; align-items:flex-end; gap:10px; margin-bottom:10px}
.card-head h2{margin:0; font-size:18px}
.hint{margin:0; color:var(--muted); font-size:13px}

.form label{display:block; margin:10px 0 6px; color:var(--muted); font-size:13px}
input,select,textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  outline:none;
}
textarea{resize:vertical}
input:focus,select:focus,textarea:focus{border-color: rgba(130,170,255,.55)}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.grid .full{grid-column:1/-1}
.price{display:flex; align-items:center; gap:10px}
.price span{opacity:.8}
.btn{
  width:100%;
  margin-top:14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(130,170,255,.18);
  color: var(--text);
  cursor:pointer;
  font-weight: 800;
  letter-spacing:.2px;
}
.btn:hover{background: rgba(130,170,255,.24)}
.btn-sm{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size:13px;
}
.btn-sm:hover{background: rgba(255,255,255,.10)}
.btn-danger{border-color: rgba(255,80,100,.35); background: rgba(255,80,100,.12)}
.spark{opacity:.9; margin-left:6px}

.fine{color:var(--muted); font-size:12px; margin:10px 0 0}
.toast{
  display:none;
  margin-top:12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
}
.notice{
  margin: 14px 0 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
  line-height: 1.35;
}

.foot{margin-top:18px; color:var(--muted); font-size:13px; text-align:center}

/* MAZHOSTING tiles */
.offers-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.offer-tile{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 14px;
}
.offer-title{
  font-weight: 900;
  margin-bottom: 6px;
}

/* Admin */
.admin{display:flex; min-height:100vh; position:relative; z-index:1}
.sidebar{width:260px; flex:0 0 260px; padding:18px 14px; border-right:1px solid rgba(255,255,255,.10); background:rgba(10,14,20,.55); backdrop-filter: blur(10px)}
.content{flex:1; padding:20px}
.brand-title{font-weight:900; letter-spacing:.3px}
.brand-sub{opacity:.75; font-size:13px; margin-top:2px}
.side{display:flex; flex-direction:column; gap:8px; margin-top:14px}
.side a{padding:10px 12px; border-radius:12px; text-decoration:none; color:rgba(255,255,255,.85); border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.03)}
.side a:hover{background:rgba(255,255,255,.06)}
.side a.active{background:rgba(255,255,255,.09); border-color:rgba(255,255,255,.18)}
.kpi-grid{display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; margin-top:10px}
.kpi{border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.03); border-radius:16px; padding:12px}
.kpi-label{color:var(--muted); font-size:12px}
.kpi-val{font-size:20px; font-weight:900; margin-top:4px}
.grid2{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px}

.tbl{width:100%; border-collapse:separate; border-spacing:0 8px}
.tbl th{color:var(--muted); font-size:12px; text-align:left; font-weight:700}
.tbl td{padding:10px 10px; background:rgba(0,0,0,.18); border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06)}
.tbl tr td:first-child{border-left:1px solid rgba(255,255,255,.06); border-top-left-radius:14px; border-bottom-left-radius:14px}
.tbl tr td:last-child{border-right:1px solid rgba(255,255,255,.06); border-top-right-radius:14px; border-bottom-right-radius:14px}
.hr{border:0; border-top:1px solid rgba(255,255,255,.10); margin:14px 0}
.prelog{white-space:pre-wrap; background:rgba(0,0,0,.25); padding:12px; border-radius:14px; border:1px solid rgba(255,255,255,.10); max-height:60vh; overflow:auto; font-size:12px; line-height:1.45}

@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
  .offers-grid{grid-template-columns:1fr}
  .kpi-grid{grid-template-columns: repeat(2, minmax(0,1fr))}
  .grid2{grid-template-columns:1fr}
  .admin{flex-direction:column}
  .sidebar{width:100%; flex:0 0 auto}
}
