:root{
  --bg:#eef5ff;
  --bg2:#f8fbff;
  --surface:#ffffff;
  --surface2:#f5f8ff;
  --text:#101828;
  --muted:#667085;
  --border:rgba(15,23,42,.12);
  --primary:#2563eb;
  --primary2:#0ea5e9;
  --shadow:0 20px 60px rgba(15,23,42,.10);
  --radius:22px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(14,165,233,.12), transparent 30rem),
    linear-gradient(135deg,#eaf2ff 0%,#f8fbff 54%,#f7f4ff 100%);
  color:var(--text);
}

a{color:inherit}

.hub-layout{
  min-height:100vh;
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
}

.hub-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  background:rgba(255,255,255,.92);
  border-right:1px solid var(--border);
  padding:22px 18px;
  backdrop-filter:blur(14px);
}

.hub-brand{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:28px;
}

.hub-logo{
  width:38px;
  height:38px;
  border-radius:13px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:950;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  box-shadow:0 12px 28px rgba(37,99,235,.22);
}

.hub-brand strong{
  display:block;
  font-size:17px;
  line-height:1.1;
}

.hub-brand span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
}

.hub-nav-title{
  margin:20px 0 8px;
  color:#98a2b3;
  font-size:11px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hub-nav{
  display:grid;
  gap:6px;
}

.hub-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:10px 12px;
  border-radius:13px;
  text-decoration:none;
  color:var(--text);
  font-size:14px;
  font-weight:800;
  border:1px solid transparent;
}

.hub-nav a:hover,
.hub-nav a.active{
  background:#f1f6ff;
  border-color:rgba(37,99,235,.22);
  color:var(--primary);
}

.hub-main{
  min-width:0;
  display:flex;
  flex-direction:column;
}

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

.hub-topbar strong{
  display:block;
  font-size:17px;
}

.hub-topbar span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
}

.hub-role{
  display:flex;
  align-items:center;
  gap:10px;
}

.hub-pill{
  padding:8px 11px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.hub-avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  font-weight:950;
}

.hub-content{
  width:100%;
  max-width:1500px;
  margin:0 auto;
  padding:34px 40px;
  flex:1;
}

.hub-footer{
  padding:24px 40px 32px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}

.hero{
  border:1px solid var(--border);
  border-radius:26px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.12), transparent 30rem),
    linear-gradient(135deg,#fff 0%,#f7fbff 100%);
  box-shadow:var(--shadow);
  padding:32px;
  margin-bottom:22px;
}

.badge{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,.22);
  background:rgba(37,99,235,.09);
  color:var(--primary);
  font-size:12px;
  font-weight:850;
}

h1{
  margin:14px 0 10px;
  font-size:clamp(34px,4vw,56px);
  line-height:1;
  letter-spacing:-.05em;
}

h2{
  margin:0 0 16px;
  font-size:28px;
  letter-spacing:-.03em;
}

h3{
  margin:0 0 10px;
  font-size:19px;
}

p{
  color:var(--muted);
  line-height:1.6;
}

.grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:0 16px 45px rgba(15,23,42,.07);
  padding:20px;
}

.card.featured{
  border-color:rgba(37,99,235,.35);
  box-shadow:0 18px 55px rgba(37,99,235,.12);
}

.card-topline{
  height:4px;
  border-radius:999px;
  margin:-20px -20px 16px;
  background:linear-gradient(90deg,var(--primary),var(--primary2));
}

.price{
  margin:8px 0;
  font-size:32px;
  font-weight:950;
  letter-spacing:-.04em;
}

.small{
  color:var(--muted);
  font-size:12px;
}

ul{
  margin:14px 0 0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.7;
  font-size:13px;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.btn,
button{
  min-height:42px;
  padding:11px 15px;
  border-radius:13px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-weight:850;
  font-size:14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}

.btn.primary,
button.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  border-color:var(--primary);
  color:#fff;
  box-shadow:0 12px 28px rgba(37,99,235,.18);
}

.btn:hover,
button:hover{
  transform:translateY(-1px);
}

input,select,textarea{
  width:100%;
  min-height:44px;
  padding:12px 13px;
  border-radius:13px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font:inherit;
}

textarea{
  min-height:110px;
  resize:vertical;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.full{grid-column:1/-1}

.result{
  margin-top:12px;
  padding:12px;
  border-radius:13px;
  background:#f8fbff;
  border:1px solid var(--border);
  color:var(--muted);
  white-space:pre-wrap;
  font-size:13px;
}

.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:16px;
  background:#fff;
}

.table th,
.table td{
  padding:13px;
  border-bottom:1px solid var(--border);
  text-align:left;
  color:var(--muted);
}

.table th{
  background:#f3f7ff;
  color:var(--text);
}

.chip{
  display:inline-flex;
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  font-size:12px;
  margin:4px 4px 0 0;
}

.notice{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(37,99,235,.20);
  background:#f1f6ff;
  color:var(--muted);
}

@media(max-width:1200px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:820px){
  .hub-layout{grid-template-columns:1fr}
  .hub-sidebar{position:relative;width:100%;height:auto}
  .hub-content{padding:22px}
  .hub-topbar{padding:14px 20px}
  .grid,.grid-2,.grid-3,.form-grid{grid-template-columns:1fr}
}
