[hidden] {
  display: none !important;
}

.hosting-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 2rem auto 5rem;
  padding: 0 1.5rem 2.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 769px) and (max-width: 1260px) {
  body.hc-sb-drawer .hosting-shell {
    padding-left: 76px;
  }
}

.card {
  background: var(--bg-surface);
  border: var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.hosting-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.16);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.hosting-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  max-width: 70ch;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
}

.capacity-badge {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: var(--border-default);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.price-tag {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--galaxy-green);
}

.domain-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mode-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: var(--bg-deep);
  border: var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
}

.mode-tab strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.mode-tab.active {
  border-color: var(--brand-primary);
  background: rgba(88, 101, 242, 0.12);
}

.field-group {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.field-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.subdomain-row {
  display: flex;
  gap: 0.75rem;
}

.subdomain-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-deep);
  border: var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.subdomain-box input,
.two-col input,
.two-col select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-deep);
  color: var(--text-primary);
  border: var(--border-default);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.subdomain-box input {
  border: 0;
}

.subdomain-box span {
  padding: 0 1rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.two-col > div {
  display: grid;
  gap: 0.45rem;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spec-pills span {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.feedback-line {
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 1.2rem;
}

.feedback-line.ok { color: var(--galaxy-green); }
.feedback-line.err { color: var(--galaxy-red); }

.notice-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.sites-list {
  display: grid;
  gap: 1.25rem;
}

.site-card {
  border: var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.site-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.site-domain {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.status-pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.status-pill.ok { background: rgba(34, 197, 94, 0.16); color: var(--galaxy-green); }
.status-pill.warn { background: rgba(245, 158, 11, 0.16); color: var(--galaxy-amber); }
.status-pill.err { background: rgba(239, 68, 68, 0.16); color: var(--galaxy-red); }

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dns-box,
.upload-box,
.scan-box,
.logs-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-default);
  display: grid;
  gap: 0.65rem;
}

.upload-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

.file-table {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 240px;
  overflow: auto;
}

.file-table li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
}

.scan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 220px;
  overflow: auto;
}

.scan-list li {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
}

.logs-pre {
  background: #070812;
  border-radius: 8px;
  padding: 0.75rem;
  max-height: 220px;
  overflow: auto;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.05rem;
  border-radius: var(--radius-md);
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--brand-primary);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: var(--border-default);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}

.btn-sm {
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
