:root {
  --sc-bg: #f0f4fb;
  --sc-surface: #ffffff;
  --sc-ink: #0f172a;
  --sc-muted: #64748b;
  --sc-line: #e2e8f0;
  --sc-primary: #2563eb;
  --sc-primary-dark: #1d4ed8;
  --sc-navy: #0b1220;
  --sc-accent: #06b6d4;
  --sc-success: #059669;
  --sc-warn: #d97706;
  --sc-danger: #dc2626;
  --sc-radius: 16px;
  --sc-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html, body.sc-app {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--sc-ink);
  background: var(--sc-bg);
}

a { color: var(--sc-primary); }
a:hover { color: var(--sc-primary-dark); text-decoration: none; }

.sc-shell { display: flex; min-height: 100vh; }

.sc-sidebar {
  width: 268px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0b1220 0%, #111c33 100%);
  color: #cbd5e1;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 18px;
}

.sc-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.sc-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.sc-brand h1 {
  margin: 0;
  font-size: 15px;
  color: #fff;
  letter-spacing: -.02em;
}

.sc-brand small {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}

.sc-nav {
  flex: 1;
}

.sc-nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #64748b;
  padding: 8px 12px;
  margin-top: 8px;
}

.sc-dev-card {
  display: block;
  margin-top: 18px;
  padding: 14px 12px 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, .18) 0%, rgba(6, 182, 212, .08) 100%),
    rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  color: inherit;
  text-decoration: none !important;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sc-dev-card:hover {
  color: inherit;
  border-color: rgba(37, 99, 235, .55);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .18);
}

.sc-dev-card__kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 10px;
}

.sc-dev-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-dev-card__avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .35);
}

.sc-dev-card__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sc-dev-card__meta strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.sc-dev-card__meta em {
  font-style: normal;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-dev-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(6, 182, 212, .12);
  color: #a5f3fc;
  font-size: 10px;
  font-weight: 600;
}

.sc-dev-card__badge i { font-size: 10px; }

.sc-dev-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
}

.sc-dev-card__link i { font-size: 10px; opacity: .8; }

.sc-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 14px;
}

.sc-nav a i { width: 18px; text-align: center; opacity: .85; }

.sc-nav a:hover, .sc-nav a.active {
  background: rgba(37, 99, 235, .28);
  color: #fff;
}

.sc-main { flex: 1; min-width: 0; }

.sc-topbar {
  background: #fff;
  border-bottom: 1px solid var(--sc-line);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

.sc-topbar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.sc-topbar p { margin: 2px 0 0; color: var(--sc-muted); font-size: 13px; }

.sc-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--sc-muted);
}

.sc-user-menu {
  position: relative;
}

.sc-user-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.15s;
}

.sc-user-toggle:hover,
.sc-user-menu.is-open .sc-user-toggle {
  background: #f1f5f9;
}

.sc-user-meta {
  text-align: right;
}

.sc-user-meta strong {
  color: #0f172a;
  display: block;
}

.sc-user-caret {
  font-size: 10px;
  color: #94a3b8;
  margin-left: 2px;
}

.sc-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
  z-index: 200;
  overflow: hidden;
}

.sc-user-dropdown.is-open {
  display: block;
}

.sc-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}

.sc-user-dropdown a:hover {
  background: #f8fafc;
  color: #0f172a;
}

.sc-user-dropdown a + a {
  border-top: 1px solid var(--sc-line);
}

.sc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sc-content { padding: 28px; }

.sc-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  padding: 22px;
  margin-bottom: 20px;
}

.sc-card h3, .sc-card h4 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.sc-kpi {
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  padding: 20px;
  box-shadow: var(--sc-shadow);
  margin-bottom: 20px;
  min-height: 120px;
}

.sc-kpi .k { color: var(--sc-muted); font-size: 13px; font-weight: 600; }
.sc-kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; }
.sc-kpi .s { font-size: 12px; color: var(--sc-muted); }

.sc-kpi.blue { border-top: 3px solid var(--sc-primary); }
.sc-kpi.teal { border-top: 3px solid var(--sc-accent); }
.sc-kpi.green { border-top: 3px solid var(--sc-success); }
.sc-kpi.amber { border-top: 3px solid var(--sc-warn); }
.sc-kpi.navy { border-top: 3px solid #334155; }

.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none !important;
}

.sc-btn-primary { background: var(--sc-primary); color: #fff !important; }
.sc-btn-primary:hover { background: var(--sc-primary-dark); color: #fff !important; }
.sc-btn-ghost { background: #eef2ff; color: #1d4ed8 !important; }
.sc-btn-warn { background: #fff7ed; color: #c2410c !important; }
.sc-btn-ok { background: #ecfdf5; color: #047857 !important; }
.sc-btn-danger { background: #fef2f2; color: #b91c1c !important; }
.sc-btn-sm { padding: 6px 10px; font-size: 12px; }

.sc-table { width: 100%; border-collapse: collapse; }
.sc-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sc-muted);
  padding: 10px 8px;
  border-bottom: 1px solid var(--sc-line);
}
.sc-table td { padding: 12px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.sc-table tr:hover td { background: #f8fafc; }

.sc-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}
.sc-badge-active, .sc-badge-paid { background: #dcfce7; color: #166534; }
.sc-badge-trial, .sc-badge-pending { background: #fef3c7; color: #92400e; }
.sc-badge-awaiting_approval { background: #ffedd5; color: #c2410c; }
.sc-badge-suspended, .sc-badge-failed { background: #fee2e2; color: #991b1b; }
.sc-badge-expired { background: #e2e8f0; color: #334155; }
.sc-badge-info { background: #dbeafe; color: #1e40af; }

.sc-alert {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.sc-alert-ok { background: #ecfdf5; color: #065f46; }
.sc-alert-err { background: #fef2f2; color: #991b1b; }

.sc-form .form-control, .sc-form select, .sc-form textarea, .sc-form input {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  height: auto;
  padding: 10px 12px;
  box-shadow: none;
}

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

.sc-quick a {
  display: block;
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  padding: 16px;
  color: var(--sc-ink);
  box-shadow: var(--sc-shadow);
}

.sc-quick a i { color: var(--sc-primary); font-size: 18px; margin-bottom: 8px; display: block; }
.sc-quick a strong { display: block; font-size: 14px; }
.sc-quick a span { color: var(--sc-muted); font-size: 12px; }

.sc-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 500px at 10% -10%, #bfdbfe, transparent),
              linear-gradient(180deg, #0b1220, #1e3a8a);
  padding: 24px;
}

.sc-auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.sc-auth-card h2 { margin: 8px 0 6px; }
.sc-auth-card p { color: var(--sc-muted); }

/* Platform Panel — professional login */
.sc-auth-body { margin: 0; }
.sc-auth-pro {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f8fafc;
}
.sc-auth-pro__brand {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(6,182,212,.22), transparent),
    linear-gradient(155deg, #0b1220 0%, #1e3a8a 55%, #0e7490 100%);
  color: #fff;
  padding: 48px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.sc-auth-pro__brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.sc-auth-pro__brand-inner { position: relative; z-index: 1; max-width: 440px; }
.sc-auth-pro__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  text-decoration: none !important;
  margin-bottom: 32px;
}
.sc-auth-pro__logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  padding: 4px;
}
.sc-auth-pro__logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.sc-auth-pro__logo-text { font-weight: 800; font-size: 18px; }
.sc-auth-pro__brand h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 14px;
}
.sc-auth-pro__lead {
  color: #bfdbfe;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.sc-auth-pro__features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.sc-auth-pro__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: #dbeafe;
  font-size: 15px;
}
.sc-auth-pro__features i { color: #67e8f9; width: 18px; text-align: center; }
.sc-auth-pro__copy { font-size: 13px; color: rgba(255,255,255,.55); margin: 0; }
.sc-auth-pro__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.sc-auth-pro__card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 60px rgba(15,23,42,.08);
}
.sc-auth-pro__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.sc-auth-pro__card-head h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.03em;
  color: #0f172a;
}
.sc-auth-pro__card-head p { color: #64748b; margin: 0 0 24px; font-size: 15px; }
.sc-auth-field { margin-bottom: 18px; }
.sc-auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.sc-auth-input-wrap { position: relative; }
.sc-auth-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  z-index: 2;
}
.sc-auth-input-wrap .form-control {
  padding-left: 40px;
  height: 46px;
  border-radius: 12px;
  border-color: #e2e8f0;
  box-shadow: none;
}
.sc-auth-input-wrap .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.sc-auth-pro__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(37,99,235,.35);
  transition: transform .2s, box-shadow .2s;
}
.sc-auth-pro__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37,99,235,.4);
}
.sc-auth-pro__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
}
.sc-auth-pro__footer a { color: #2563eb; font-weight: 600; text-decoration: none !important; }
.sc-auth-pro__hint { color: #94a3b8; }

@media (max-width: 900px) {
  .sc-auth-pro { grid-template-columns: 1fr; }
  .sc-auth-pro__brand { padding: 36px 28px; min-height: auto; }
  .sc-auth-pro__features { display: none; }
  .sc-auth-pro__copy { display: none; }
}

.hub-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sc-line);
  padding: 14px 0;
}

.hub-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-hero {
  background: radial-gradient(900px 400px at 80% 0%, rgba(6,182,212,.35), transparent),
              linear-gradient(135deg, #0b1220 0%, #1d4ed8 55%, #0891b2 100%);
  color: #fff;
  padding: 88px 0 72px;
}

.hub-hero h1 {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 720px;
}

.hub-hero .lead { font-size: 18px; color: #dbeafe; max-width: 620px; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }

.hub-tile {
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--sc-shadow);
  min-height: 170px;
}

.hub-tile i { font-size: 22px; color: var(--sc-primary); margin-bottom: 10px; }
.hub-price {
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--sc-shadow);
}
.hub-price.featured {
  border-color: #2563eb;
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(37,99,235,.18);
}

.hub-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 36px 0;
  margin-top: 40px;
}

.hub-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 36px 0;
  margin-top: 40px;
}

.sc-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 12px;
  color: var(--sc-ink);
}

.sc-help { color: var(--sc-muted); font-size: 14px; margin-bottom: 16px; }

.sc-domain-guide { margin-bottom: 18px; }
.sc-domain-guide-item {
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #f8fafc;
}
.sc-domain-guide-item--ok { border-color: #bbf7d0; background: #f0fdf4; }
.sc-domain-guide-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.sc-domain-guide-item p { margin: 0 0 8px; color: var(--sc-muted); font-size: 13px; }
.sc-domain-guide-item ul { margin: 0; padding-left: 18px; font-size: 13px; }
.sc-domain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.sc-domain-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--sc-line);
  font-size: 14px;
}
.sc-domain-list li:last-child { border-bottom: none; }
.sc-domain-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.sc-domain-setup-card {
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}
.sc-domain-setup-card h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sc-ink);
}
.sc-domain-setup-card h4 i { color: var(--sc-primary, #2563eb); margin-right: 6px; }
.sc-domain-steps {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}
.sc-domain-steps li { margin-bottom: 6px; }
.sc-domain-steps code,
.sc-domain-note code,
.sc-dns-box code,
.sc-domain-mobile-tip code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
}
.sc-dns-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.sc-dns-box strong { color: #93c5fd; }
.sc-domain-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.sc-domain-input-row .form-control { flex: 1 1 160px; min-width: 140px; }
.sc-domain-suffix { white-space: nowrap; font-size: 14px; color: var(--sc-muted); }
.sc-domain-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--sc-muted);
}
.sc-domain-mobile-tip {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  color: #1e3a5f;
  line-height: 1.55;
}

.sc-url-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.sc-url-mode-card {
  display: block;
  border: 2px solid var(--sc-line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  font-weight: 400;
}

.sc-url-mode-card:hover { border-color: #93c5fd; }
.sc-url-mode-card input { margin-right: 8px; }
.sc-url-mode-card strong { display: block; margin-bottom: 4px; }
.sc-url-mode-card span { font-size: 12px; color: var(--sc-muted); line-height: 1.4; }
.sc-url-mode-recommended { border-color: #2563eb; background: #eff6ff; }

.sc-url-preview {
  background: #f8fafc;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 16px;
}

.sc-url-preview-title { font-weight: 700; font-size: 13px; margin-bottom: 10px; color: var(--sc-muted); text-transform: uppercase; letter-spacing: .04em; }
.sc-url-preview ul { margin: 0; padding-left: 18px; }
.sc-url-preview li { padding: 4px 0; font-size: 14px; }
.sc-url-preview-success { background: #ecfdf5; border-color: #a7f3d0; }

.sc-slug-status { margin-top: 8px; }

.sc-domain-list .sc-domain-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid var(--sc-line);
}

.sc-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  padding: 12px;
}

.sc-module-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 400;
  margin: 0;
  background: #f8fafc;
}

.sc-module-item:hover { background: #eff6ff; }
.sc-module-item input { margin-top: 3px; }
.sc-module-item strong { display: block; font-size: 13px; }
.sc-module-item small { display: block; color: var(--sc-muted); font-size: 11px; }

.sc-badge-subdomain { background: #dbeafe; color: #1d4ed8; }
.sc-badge-path { background: #e0e7ff; color: #4338ca; }
.sc-badge-custom { background: #fef3c7; color: #b45309; }
.sc-badge-warn { background: #fef3c7; color: #92400e; }

.sc-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sc-page-toolbar h3 { margin: 0; font-size: 18px; }
.sc-page-toolbar .sc-help { margin: 4px 0 0; }
.sc-search {
  min-width: 240px;
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  padding: 9px 12px 9px 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 12px 50% no-repeat;
  font-size: 13px;
}
.sc-search:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.sc-tenant-table { margin: 0; }
.sc-tenant-table th { padding: 12px 14px; background: #f8fafc; }
.sc-tenant-table td { padding: 16px 14px; vertical-align: top; }
.sc-school-cell { display: flex; gap: 12px; align-items: flex-start; min-width: 200px; }
.sc-school-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-school-cell strong { display: block; font-size: 14px; letter-spacing: -.01em; }
.sc-school-cell small { color: var(--sc-muted); font-size: 12px; }

.sc-cred {
  background: #f8fafc;
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 180px;
}
.sc-cred dt { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--sc-muted); margin: 0 0 2px; font-weight: 700; }
.sc-cred dd { margin: 0 0 8px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.sc-cred dd:last-child { margin-bottom: 0; }

.sc-url-chips { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.sc-url-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  text-decoration: none !important;
}
.sc-url-chip:hover { color: var(--sc-primary-dark); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 6px; max-width: 280px; }
.sc-actions form { display: inline; margin: 0; }
.sc-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--sc-muted);
}
.sc-empty i { font-size: 36px; color: #93c5fd; display: block; margin-bottom: 12px; }

.sc-table-wrap { overflow-x: auto; margin: 0 -22px; }
.sc-table-wrap .sc-table { min-width: 980px; padding: 0 8px; }

.sc-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.sc-plan-card { margin-bottom: 8px; }
.sc-plan-price { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.sc-plan-price small { font-size: 14px; font-weight: 600; color: var(--sc-muted); }
.sc-plan-price span { display: block; font-size: 13px; font-weight: 500; color: var(--sc-muted); margin-top: 2px; }
.sc-plan-bar { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.sc-plan-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #06b6d4); }
.sc-plan-edit { margin-top: 12px; }
.sc-plan-edit summary { cursor: pointer; font-weight: 600; color: var(--sc-primary); font-size: 13px; }

.sc-matrix th, .sc-matrix td { padding: 10px 12px; }
.sc-matrix thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; }
.sc-matrix-plan { text-align: center; min-width: 110px; }
.sc-matrix-check { text-align: center; }
.sc-check { display: inline-flex; margin: 0; font-weight: 400; }
.sc-check input { width: 18px; height: 18px; margin: 0; }
.sc-link-btn {
  display: inline;
  border: 0;
  background: none;
  color: var(--sc-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 0 3px;
  cursor: pointer;
}
.sc-matrix-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 4px 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
}

.sp-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.sp-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.sp-card.is-featured { border-color: #2563eb; box-shadow: 0 18px 50px rgba(37, 99, 235, 0.14); }
.sp-card.is-current { border-color: #059669; }
.sp-ribbon {
  position: absolute; top: 14px; right: 14px;
  background: #059669; color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 8px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.sp-ribbon-alt { background: #2563eb; }
.sp-card-head { padding: 22px 22px 16px; background: linear-gradient(180deg, #f8fbff, #fff); }
.sp-card-head h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.sp-card-head p { margin: 0; color: #64748b; min-height: 38px; }
.sp-price { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin-top: 12px; }
.sp-price small { font-size: 14px; color: #64748b; font-weight: 600; }
.sp-year, .sp-limits, .sp-count { color: #64748b; font-size: 13px; margin-top: 4px; }
.sp-count { font-weight: 700; color: #1e3a8a; }
.sp-features { padding: 0 22px 12px; flex: 1; min-height: 0; }
.sp-features strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin-bottom: 8px; }
.sp-more { margin-top: 8px; font-size: 13px; }
.sp-more summary { cursor: pointer; color: #2563eb; font-weight: 600; }
.sp-more ul { margin-top: 8px; max-height: 180px; overflow: auto; }
.sp-features ul, .sp-mini-list { list-style: none; padding: 0; margin: 0; }
.sp-features li, .sp-mini-list li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 13px; color: #0f172a; }
.sp-features i, .sp-mini-list i { color: #059669; margin-top: 2px; }
.sp-card-foot { padding: 16px 22px 22px; border-top: 1px solid #f1f5f9; }
.sp-current-banner {
  background: linear-gradient(135deg, #0b1220, #1d4ed8);
  color: #fff; border-radius: 18px; padding: 22px 24px; margin-bottom: 22px;
}
.sp-current-banner small { opacity: .75; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.sp-current-banner h2 { margin: 6px 0 8px; font-weight: 800; }
.sp-current-banner p { margin: 0; color: #dbeafe; }
.sp-page-intro { margin-bottom: 18px; }
.sp-chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; min-height: 60px; }
.sp-chip { background: #f1f5f9; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 600; color: #334155; }
.sp-chip-more { background: #dbeafe; color: #1d4ed8; }
.sp-cycle-toggle { display: inline-flex; margin-top: 16px; background: #f1f5f9; border-radius: 999px; padding: 4px; }
.sp-cycle-toggle button {
  border: 0; background: transparent; padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 13px; color: #64748b; cursor: pointer;
}
.sp-cycle-toggle button.is-on { background: #fff; color: #1d4ed8; box-shadow: 0 2px 8px rgba(15,23,42,.08); }

.sc-tabs { border-bottom: 2px solid var(--sc-line); margin-bottom: 20px; }
.sc-tabs > li > a { font-weight: 700; color: var(--sc-muted); border: none !important; background: transparent !important; }
.sc-tabs > li.active > a { color: var(--sc-primary) !important; border-bottom: 2px solid var(--sc-primary) !important; }
.sc-subtabs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.sc-subtabs > li > a { display: block; border-radius: 999px; font-weight: 600; font-size: 13px; padding: 8px 14px; color: var(--sc-muted); text-decoration: none !important; }
.sc-subtabs > li.active > a { background: var(--sc-primary); color: #fff !important; }

@media (max-width: 900px) {
  .sc-shell { display: block; }
  .sc-sidebar { width: 100%; height: auto; position: relative; }
  .sc-dev-card { margin-top: 12px; }
  .hub-hero h1 { font-size: 32px; }
}
