:root{
  --bg:#f5f6f8;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --primary:#0ea5e9;
  --primary-dark:#0284c7;
  --shadow: 0 10px 25px rgba(0,0,0,.06);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.wrap{max-width:980px;margin:0 auto;padding:18px}

.top{background:#fff;border-bottom:1px solid var(--border)}
.top h1{margin:0;font-size:22px;font-weight:900}
.top p{margin:6px 0 0;color:var(--muted)}

.quick{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.pill{
  border:1px solid var(--border);
  background:#fff;
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
}
.pill:hover{border-color:#cbd5e1}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
  margin:14px 0;
  box-shadow:var(--shadow);
}
.card h2{margin:0 0 12px;font-size:18px}

.grid{display:grid;grid-template-columns: repeat(3, 1fr);gap:12px}
@media (max-width:800px){ .grid{grid-template-columns:1fr} }

label{font-size:13px;font-weight:800}
input, select{
  width:100%;
  margin-top:6px;
  padding:10px 11px;
  border:1px solid var(--border);
  border-radius:10px;
  outline:none;
}
input:focus, select:focus{border-color:#93c5fd}

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

.btn{
  background:var(--primary);
  color:#fff;
  border:0;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  font-weight:900;
}
.btn:hover{background:var(--primary-dark)}

.btn.ghost{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}
.btn.ghost:hover{border-color:#cbd5e1}

.msg{margin:10px 0 0;color:var(--muted);font-size:13px}

.packages{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
}

.pkg{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
}
.pkg-title{font-weight:900;margin-bottom:6px}
.pkg-desc{color:var(--muted);font-size:13px;margin-bottom:10px}
.btn.small{ padding:6px 10px; font-size:12px; }

.bundle-link{
  display:inline-block;
  margin-top:6px;
  font-size:12px;
  font-weight:700;
  text-decoration:underline;
  opacity:.9;
}
.bundle-link:hover{opacity:1}

.bundle-list{
  margin-top:10px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}

.bundle-item{
  padding:10px;
  border-bottom:1px solid #eee;
}
.bundle-item:last-child{ border-bottom:none; }
.bundle-title{ font-weight:900; margin-bottom:4px; }
.bundle-desc{ font-size:12px; opacity:.85; margin-bottom:8px; }

.kv{display:grid;gap:6px}
.sep{border:0;border-top:1px solid var(--border);margin:16px 0}
.foot{padding:20px 4px 30px;text-align:center;color:var(--muted)}
.actions{ margin-top:14px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.btn-primary{ padding:10px 14px; border:0; border-radius:10px; cursor:pointer; }
.msg{ font-weight:600; }

.bundle-groups{
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.bundle-group{
  background: #f7f7f9;
  border: 1px solid #e6e6ea;
  border-radius: 12px;
  padding: 12px;
}

.bundle-group h3{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;
}

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

.bundle-btn{
  width: 100%;
  text-align: left;
  border: 1px solid #d9d9df;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font-size: 13px;
}

.bundle-btn small{
  display:block;
  color:#666;
  font-size:12px;
  margin-top:3px;
}

.bundle-btn.active{
  border-color: #0073ff;
  box-shadow: 0 0 0 2px rgba(0,115,255,.15);
}

.tabs{
  display:flex;
  gap:10px;
  border-bottom:1px solid #e6e6ea;
  margin:12px 0;
}
.tab{
  border:1px solid #e6e6ea;
  border-bottom:none;
  background:#fff;
  padding:10px 14px;
  border-radius:10px 10px 0 0;
  cursor:pointer;
  font-weight:700;
}
.tab.active{ background:#f7f7f9; }

.subtabs{
  display:flex;
  gap:10px;
  margin:10px 0 14px;
}
.subtab{
  border:1px solid #e6e6ea;
  background:#fff;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
}
.subtab.active{ background:#67a53a; color:#fff; border-color:#67a53a; }

.cards-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
@media(max-width:900px){ .cards-grid{ grid-template-columns: repeat(2, 1fr); } }
@media(max-width:560px){ .cards-grid{ grid-template-columns: 1fr; } }

.bundle-card{
  background:#fff;
  border:1px solid #e6e6ea;
  border-radius:12px;
  padding:14px;
  text-align:center;
  box-shadow:0 1px 6px rgba(0,0,0,.05);
}
.bundle-card h4{ margin:6px 0 10px; font-size:18px; }
.bundle-card .price{ font-weight:900; font-size:16px; margin:6px 0; }
.bundle-card .meta{ color:#666; font-size:12px; min-height:34px; }
.bundle-card button{
  margin-top:12px;
  width:100%;
  border:1px solid #67a53a;
  background:#fff;
  color:#67a53a;
  font-weight:900;
  padding:10px;
  border-radius:8px;
  cursor:pointer;
}
.bundle-card button:hover{ background:#67a53a; color:#fff; }
