/* Portal hub — chooser for Admin / Account / Reseller / Whitelabel */

.portal-hub__chooser {
  max-width: 36rem;
}

.portal-hub__lead {
  color: var(--portal-text-secondary, var(--bs-secondary-color));
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}

.portal-hub__guide {
  font-size: 0.9rem;
}

.portal-hub__clear {
  font-weight: 600;
  white-space: nowrap;
}

.portal-hub__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

@media (max-width: 575.98px) {
  .portal-hub__grid {
    grid-template-columns: 1fr;
  }
}

.portal-hub__tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: center;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--portal-border-subtle, var(--bs-border-color));
  border-radius: 0.5rem;
  background: var(--portal-surface-card, var(--bs-body-bg));
  color: var(--portal-text-primary, var(--bs-body-color));
  text-decoration: none;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.portal-hub__tile:hover {
  border-color: var(--portal-brand-blue, var(--bs-primary));
  box-shadow: 0 0.25rem 0.75rem rgba(15, 20, 34, 0.08);
  color: var(--portal-text-primary, var(--bs-body-color));
  transform: translateY(-1px);
}

a.portal-hub__tile:hover .portal-hub__tile-icon {
  background: rgba(var(--portal-brand-blue-rgb, 30, 122, 230), 0.18);
}

.portal-hub__tile-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(var(--portal-brand-blue-rgb, 30, 122, 230), 0.12);
  color: var(--portal-brand-blue, #1e7ae6);
  font-size: 0.95rem;
  line-height: 1;
  transition: background-color 0.15s ease;
}

.portal-hub__tile--recommended .portal-hub__tile-icon {
  background: rgba(var(--portal-brand-blue-rgb, 30, 122, 230), 0.18);
}

.portal-hub__tile-name {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.portal-hub__tile-desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--portal-text-secondary, var(--bs-secondary-color));
}

.portal-hub__tile--recommended {
  border-color: var(--portal-brand-blue, var(--bs-primary));
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(59, 148, 235, 0.18);
}

.portal-hub__tile--disabled {
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.2);
  background: var(--portal-surface-inset, var(--bs-tertiary-bg));
  border-color: var(--portal-border-subtle, var(--bs-border-color));
  color: var(--portal-text-muted, var(--bs-secondary-color));
  opacity: 1;
}

.portal-hub__tile--disabled .portal-hub__tile-icon {
  background: rgba(var(--portal-brand-blue-rgb, 30, 122, 230), 0.08);
  color: var(--portal-text-muted, var(--bs-secondary-color));
}

.portal-hub__tile--disabled .portal-hub__tile-name,
.portal-hub__tile--disabled .portal-hub__tile-desc {
  color: var(--portal-text-muted, var(--bs-secondary-color));
}

.portal-hub__badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--portal-brand-blue, var(--bs-primary));
  background: rgba(59, 148, 235, 0.12);
  border-radius: 0.25rem;
  padding: 0.15rem 0.4rem;
}

html.dark-style.portal-hub .portal-hub__lead,
html.dark-style.portal-hub .portal-hub__tile-desc {
  color: #b6bcc8;
}

html.dark-style.portal-hub .portal-hub__tile--disabled {
  background: rgba(255, 255, 255, 0.04);
  color: #9aa1ae;
}

html.dark-style.portal-hub .portal-hub__tile--disabled .portal-hub__tile-icon,
html.dark-style.portal-hub .portal-hub__tile--disabled .portal-hub__tile-name,
html.dark-style.portal-hub .portal-hub__tile--disabled .portal-hub__tile-desc {
  color: #9aa1ae;
}

html.dark-style.portal-hub .portal-hub__tile--recommended {
  box-shadow: 0 0 0 3px rgba(59, 148, 235, 0.28);
}

html.dark-style.portal-hub a.portal-hub__tile:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.35);
}

html.portal-hub .portal-hub__login-pane {
  border-left: 1px solid var(--portal-border-subtle, var(--bs-border-color));
}

@media (max-width: 991.98px) {
  html.portal-hub .portal-hub__login-pane {
    border-left: none;
    border-top: 1px solid var(--portal-border-subtle, var(--bs-border-color));
  }
}
