/* ==========================================================================
   MyStore — portal do super administrador
   ========================================================================== */

.super-body {
  background: var(--cream);
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.super-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse at 14% 8%, rgba(216, 183, 123, 0.2), transparent 46%),
    radial-gradient(ellipse at 92% 96%, rgba(43, 103, 81, 0.55), transparent 52%),
    linear-gradient(150deg, var(--forest-900) 0%, var(--forest-950) 62%, #0a211a 100%);
}

.super-login-card {
  width: min(460px, 100%);
  padding: 38px 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(253, 250, 243, 0.98);
  box-shadow: var(--shadow-lg);
}

.super-login-card .brand {
  margin-bottom: 26px;
}

.super-login-card h1 {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.12;
}

.super-login-card h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--forest-700);
}

.super-login-copy {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.super-login-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.super-login-hint strong {
  color: var(--ink-soft);
}

.super-login-link {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 650;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Conta e status
   -------------------------------------------------------------------------- */

.super-account {
  cursor: default;
}

.super-account:hover {
  transform: none;
  border-color: rgba(216, 183, 123, 0.3);
}

.super-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.super-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.super-status.is-paused {
  background: var(--danger-soft);
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Filtros e busca
   -------------------------------------------------------------------------- */

.super-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.super-filter {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  transition: var(--transition);
}

.super-filter:hover {
  border-color: var(--muted-light);
  color: var(--ink-soft);
}

.super-filter.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fdfaf3;
}

/* --------------------------------------------------------------------------
   Lista de lojas
   -------------------------------------------------------------------------- */

.super-store-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.super-store-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 22px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.super-store-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.super-store-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.super-store-logo {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  color: var(--forest-950);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
}

.super-store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.super-store-info {
  min-width: 0;
}

.super-store-info h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.super-store-info p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.super-store-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.super-store-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.super-store-chip .icon {
  width: 14px;
  height: 14px;
}

.super-store-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.super-store-actions .btn {
  white-space: nowrap;
}

.super-icon-actions {
  display: flex;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   Relatórios
   -------------------------------------------------------------------------- */

.super-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 190px;
  padding: 24px 8px 0;
}

.super-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.super-chart-bar {
  width: 100%;
  max-width: 64px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--forest-600), var(--forest));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  transition: height 260ms ease;
}

.super-chart-bar.is-empty {
  background: var(--line);
  box-shadow: none;
}

.super-chart-value {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.super-chart-label {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.super-table-wrap {
  overflow-x: auto;
}

.super-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.super-table th,
.super-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.super-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.super-table tbody tr:hover {
  background: rgba(245, 242, 234, 0.6);
}

.super-table td strong {
  font-weight: 650;
}

.super-table .super-table-empty {
  padding: 26px 12px;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Modal de loja
   -------------------------------------------------------------------------- */

.super-credentials {
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--gold-soft);
}

.super-credentials-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}

.super-credentials-row + .super-credentials-row {
  border-top: 1px solid rgba(169, 123, 61, 0.18);
}

.super-credentials-row span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.super-credentials-row strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}

.super-password-field {
  display: flex;
  gap: 8px;
}

.super-password-field .text-input {
  flex: 1;
}

.super-muted-note {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .super-store-card {
    grid-template-columns: 1fr;
  }

  .super-store-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .super-login-card {
    padding: 30px 22px 26px;
  }

  .super-login-card h1 {
    font-size: 26px;
  }

  .super-chart {
    gap: 8px;
  }

  .super-chart-bar {
    max-width: 40px;
  }
}
