/* Dashboard — Painel do Cliente
   Reuses tokens from main.css. Dashboard-specific layout + components. */

/* ===== PAGE SHELL ===== */

.painel-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--stk-bg-dark);
  color: var(--stk-text-on-dark);
}

.painel-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */

.painel-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.painel-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--stk-space-md);
  height: var(--stk-header-h);
  display: flex;
  align-items: center;
  gap: var(--stk-space-sm);
}

.painel-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: var(--stk-radius-md);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.painel-header__toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--stk-white);
}

.painel-header__logo {
  display: flex;
  align-items: center;
  gap: var(--stk-space-sm);
  text-decoration: none;
  color: var(--stk-white);
}

.painel-header__logo .logo-icon {
  width: 28px;
  height: 28px;
}

.painel-header__wordmark {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.painel-header__spacer { flex: 1; }

.painel-header__plan {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--stk-radius-full);
  background: linear-gradient(135deg, rgba(0, 178, 255, 0.15), rgba(0, 208, 231, 0.15));
  color: var(--stk-cyan);
  display: none;
}

.painel-header__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  display: none;
}

.painel-header__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
  padding: var(--stk-space-sm);
  min-height: 44px;
  display: none;
  align-items: center;
}

.painel-header__link:hover { color: var(--stk-white); }

.painel-header__logout {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--stk-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  min-height: 36px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.painel-header__logout:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--stk-white);
}

@media (min-width: 480px) {
  .painel-header__plan { display: inline-block; }
  .painel-header__inner { gap: var(--stk-space-md); }
}

@media (min-width: 768px) {
  .painel-header__toggle { display: none; }
  .painel-header__name { display: inline; }
  .painel-header__link { display: inline-flex; }
  .painel-header__inner { padding: 0 var(--stk-space-lg); }
}

/* ===== ALERT BANNER ===== */

.painel-alerts {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.painel-alert {
  display: flex;
  align-items: center;
  gap: var(--stk-space-sm);
  padding: 10px var(--stk-space-md);
  font-size: 0.8125rem;
  font-weight: 500;
  max-width: 1280px;
  margin: 0 auto;
}

.painel-alert__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.painel-alert__text { flex: 1; }

.painel-alert__btn {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--stk-radius-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 32px;
  transition: opacity 0.15s;
}

.painel-alert__btn:hover { opacity: 0.85; }

.painel-alert--warning {
  background: rgba(255, 200, 50, 0.08);
  color: #ffd666;
}

.painel-alert--warning .painel-alert__btn {
  background: rgba(255, 200, 50, 0.2);
  color: #ffd666;
}

.painel-alert--danger {
  background: rgba(255, 68, 68, 0.08);
  color: #ff9b9b;
}

.painel-alert--danger .painel-alert__btn {
  background: rgba(255, 68, 68, 0.2);
  color: #ff9b9b;
}

.painel-alert--info {
  background: rgba(0, 178, 255, 0.08);
  color: var(--stk-blue-bright);
}

.painel-alert__dismiss {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  line-height: 1;
}

.painel-alert__dismiss:hover { opacity: 1; }

/* ===== LAYOUT ===== */

.painel-layout {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* ===== SIDEBAR ===== */

.painel-sidebar {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  background: rgba(10, 10, 10, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
  position: sticky;
  top: var(--stk-header-h);
  height: calc(100vh - var(--stk-header-h));
  height: calc(100dvh - var(--stk-header-h));
  padding: var(--stk-space-md) 0;
}

/* Mobile overlay mode */
.painel-sidebar.is-open {
  display: flex;
  position: fixed;
  top: var(--stk-header-h);
  left: 0;
  bottom: 0;
  width: min(260px, 85vw);
  z-index: 200;
  animation: painel-slide-in 0.2s ease;
}

@keyframes painel-slide-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.painel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 199;
}

.painel-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.painel-nav__item {
  display: flex;
  align-items: center;
  gap: var(--stk-space-sm);
  padding: 10px var(--stk-space-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
  min-height: 40px;
  cursor: pointer;
}

.painel-nav__item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}

.painel-nav__item--active {
  color: var(--stk-white);
  background: rgba(255, 255, 255, 0.06);
  border-right: 2px solid var(--stk-cyan);
}

.painel-nav__item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.painel-nav__item--active svg { opacity: 1; }

.painel-nav__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: var(--stk-space-sm) var(--stk-space-lg);
}

.painel-nav__label { white-space: nowrap; }

@media (min-width: 768px) {
  .painel-sidebar {
    display: flex;
    width: 64px;
  }

  .painel-nav__item {
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px;
    font-size: 0.625rem;
    justify-content: center;
    text-align: center;
  }

  .painel-nav__item--active {
    border-right: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--stk-radius-md);
    margin: 0 6px;
    padding: 10px 4px;
  }

  .painel-nav__divider {
    margin: var(--stk-space-sm) 12px;
  }
}

@media (min-width: 1024px) {
  .painel-sidebar { width: 220px; }

  .painel-nav__item {
    flex-direction: row;
    gap: var(--stk-space-sm);
    padding: 10px var(--stk-space-lg);
    font-size: 0.875rem;
    text-align: left;
    justify-content: flex-start;
  }

  .painel-nav__item--active {
    border-radius: 0;
    margin: 0;
    padding: 10px var(--stk-space-lg);
    border-right: 2px solid var(--stk-cyan);
  }

  .painel-nav__divider {
    margin: var(--stk-space-sm) var(--stk-space-lg);
  }
}

/* ===== MAIN CONTENT ===== */

.painel-main {
  flex: 1;
  min-width: 0;
  padding: var(--stk-space-lg) var(--stk-space-md);
  padding-bottom: calc(var(--stk-space-2xl) + 72px);
  overflow-y: auto;
}

.painel-main__inner {
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .painel-main {
    padding: var(--stk-space-xl) var(--stk-space-lg);
    padding-bottom: var(--stk-space-2xl);
  }
}

@media (min-width: 1024px) {
  .painel-main {
    padding: var(--stk-space-xl) var(--stk-space-2xl);
  }
}

/* ===== BOTTOM TAB BAR ===== */

.painel-bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 90;
}

.painel-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 6px;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.painel-tab svg {
  width: 20px;
  height: 20px;
}

.painel-tab:hover,
.painel-tab--active {
  color: var(--stk-white);
}

.painel-tab--active svg {
  color: var(--stk-cyan);
}

@media (min-width: 768px) {
  .painel-bottombar { display: none; }
}

/* ===== BOTTOM SHEET (More menu) ===== */

.painel-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.painel-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.painel-sheet__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: var(--stk-space-md) var(--stk-space-lg);
  padding-bottom: calc(var(--stk-space-lg) + env(safe-area-inset-bottom));
  animation: painel-sheet-up 0.25s ease;
}

@keyframes painel-sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.painel-sheet__handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto var(--stk-space-md);
}

.painel-sheet__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.painel-sheet__item {
  display: flex;
  align-items: center;
  gap: var(--stk-space-sm);
  padding: 12px var(--stk-space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: var(--stk-radius-md);
  transition: background 0.15s;
  cursor: pointer;
}

.painel-sheet__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.painel-sheet__item svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

/* ===== LOGIN ===== */

.painel-login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--stk-space-2xl) var(--stk-space-lg);
}

.painel-login__card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--stk-radius-lg);
  padding: var(--stk-space-xl);
  text-align: center;
}

.painel-login__card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--stk-space-sm);
  color: var(--stk-white);
}

.painel-login__card p {
  font-size: 0.875rem;
  color: rgba(246, 246, 246, 0.5);
  margin-bottom: var(--stk-space-lg);
}

.painel-login__form {
  display: flex;
  flex-direction: column;
  gap: var(--stk-space-md);
}

.painel-login__form .stk-input {
  width: 100%;
  text-align: center;
}

.painel-login__submit {
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--stk-radius-md);
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--stk-blue-mid), var(--stk-cyan));
  color: var(--stk-white);
  min-height: 44px;
  transition: opacity 0.15s;
}

.painel-login__submit:hover { opacity: 0.9; }

.painel-login__submit:focus-visible {
  outline: 2px solid var(--stk-green);
  outline-offset: 2px;
}

.painel-login__hint {
  font-size: 0.75rem;
  color: rgba(246, 246, 246, 0.35);
  margin-top: var(--stk-space-sm);
}

/* ===== SECTION HEADERS ===== */

.painel-section-header {
  margin-bottom: var(--stk-space-lg);
}

.painel-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stk-white);
  margin-bottom: 4px;
}

.painel-section-subtitle {
  font-size: 0.875rem;
  color: rgba(246, 246, 246, 0.5);
}

/* ===== SUMMARY CARDS ===== */

.dash-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stk-space-sm);
  margin-bottom: var(--stk-space-lg);
}

.dash-summary-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s;
  cursor: pointer;
}

.dash-summary-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.dash-summary-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.dash-summary-card__text {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(246, 246, 246, 0.6);
}

.dash-summary-card__text strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stk-white);
  margin-bottom: 2px;
}

@media (min-width: 480px) {
  .dash-summary { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .dash-summary { grid-template-columns: repeat(4, 1fr); }
}

/* ===== CARDS ===== */

.painel-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: var(--stk-space-lg);
  margin-bottom: var(--stk-space-md);
}

.painel-card--clickable {
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.painel-card--clickable:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.painel-card--highlight {
  border-color: rgba(0, 178, 255, 0.25);
  background: rgba(0, 178, 255, 0.04);
}

.painel-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--stk-white);
  margin-bottom: var(--stk-space-sm);
  display: flex;
  align-items: center;
  gap: var(--stk-space-sm);
}

.painel-card__meta {
  font-size: 0.8125rem;
  color: rgba(246, 246, 246, 0.5);
  line-height: 1.5;
}

.painel-card__meta a {
  color: var(--stk-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.painel-card__meta a:hover { opacity: 0.8; }

/* ===== RECORD CARDS (domains, sites, emails) ===== */

.dash-record {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: var(--stk-space-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dash-record:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.dash-record:focus-visible {
  outline: 2px solid var(--stk-cyan);
  outline-offset: 2px;
}

.dash-record__header {
  display: flex;
  align-items: center;
  gap: var(--stk-space-sm);
  margin-bottom: 4px;
}

.dash-record__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--stk-white);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-record__meta {
  font-size: 0.75rem;
  color: rgba(246, 246, 246, 0.45);
  line-height: 1.4;
}

/* ===== STATUS BADGES ===== */

.dash-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--stk-radius-full);
  flex-shrink: 0;
}

.dash-badge--active,
.dash-badge--published,
.dash-badge--paid,
.dash-badge--done {
  background: rgba(0, 255, 194, 0.15);
  color: var(--stk-green);
}

.dash-badge--pending {
  background: rgba(255, 200, 50, 0.15);
  color: #ffd666;
}

.dash-badge--expired {
  background: rgba(255, 68, 68, 0.15);
  color: #ff7b7b;
}

.dash-badge--in_progress {
  background: rgba(0, 178, 255, 0.15);
  color: var(--stk-blue-bright);
}

/* ===== INVOICE LIST ===== */

.dash-invoice {
  display: flex;
  align-items: center;
  gap: var(--stk-space-sm);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: var(--stk-space-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.dash-invoice:hover {
  background: rgba(255, 255, 255, 0.07);
}

.dash-invoice__info {
  flex: 1;
  min-width: 0;
}

.dash-invoice__desc {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stk-white);
}

.dash-invoice__date {
  font-size: 0.7rem;
  color: rgba(246, 246, 246, 0.4);
}

.dash-invoice__amount {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--stk-white);
  flex-shrink: 0;
}

/* ===== USAGE BAR ===== */

.dash-usage {
  margin: var(--stk-space-sm) 0;
}

.dash-usage__label {
  font-size: 0.75rem;
  color: rgba(246, 246, 246, 0.5);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.dash-usage__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.dash-usage__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--stk-blue-bright), var(--stk-cyan));
  transition: width 0.4s ease;
}

.dash-usage__fill--warn {
  background: linear-gradient(90deg, #ffa726, #ff7043);
}

/* ===== DNS TABLE ===== */

.dash-dns-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dash-dns {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin: var(--stk-space-sm) 0;
}

.dash-dns th {
  text-align: left;
  padding: 6px 8px;
  color: rgba(246, 246, 246, 0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-dns td {
  padding: 8px;
  color: rgba(246, 246, 246, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.7rem;
}

/* ===== BUTTONS ===== */

.painel-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--stk-radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--stk-space-sm);
  min-height: 40px;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
}

.painel-btn:hover { opacity: 0.85; }

.painel-btn--primary {
  background: linear-gradient(135deg, var(--stk-blue-mid), var(--stk-cyan));
  color: var(--stk-white);
}

.painel-btn--outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--stk-white);
}

.painel-btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.painel-btn--danger {
  background: rgba(255, 68, 68, 0.12);
  color: #ff7b7b;
  border: 1px solid rgba(255, 68, 68, 0.2);
}

.painel-btn--sm {
  font-size: 0.8125rem;
  padding: 6px 14px;
  min-height: 34px;
}

.painel-btn--whatsapp {
  background: #25D366;
  color: #fff;
}

/* ===== FORMS ===== */

.painel-form-group {
  margin-bottom: var(--stk-space-lg);
}

.painel-form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(246, 246, 246, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.painel-form-value {
  font-size: 0.9375rem;
  color: var(--stk-white);
  display: flex;
  align-items: center;
  gap: var(--stk-space-sm);
}

.painel-form-input {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: var(--stk-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
  color: var(--stk-white);
}

.painel-form-input::placeholder {
  color: rgba(246, 246, 246, 0.3);
}

.painel-form-input:focus-visible {
  outline: 2px solid var(--stk-cyan);
  outline-offset: 1px;
  border-color: transparent;
}

/* ===== TOGGLE SWITCH ===== */

.painel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.painel-toggle__label {
  font-size: 0.875rem;
  color: rgba(246, 246, 246, 0.8);
}

.painel-toggle__switch {
  position: relative;
  width: 42px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.painel-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--stk-white);
  transition: transform 0.2s;
}

.painel-toggle__switch--on {
  background: var(--stk-cyan);
}

.painel-toggle__switch--on::after {
  transform: translateX(18px);
}

/* ===== TEXTAREA ===== */

.painel-textarea {
  width: 100%;
  min-height: 100px;
  max-height: 200px;
  resize: vertical;
  font: inherit;
  font-size: 0.9375rem;
  padding: 12px;
  border-radius: var(--stk-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
  color: var(--stk-white);
  line-height: 1.5;
}

.painel-textarea::placeholder {
  color: rgba(246, 246, 246, 0.3);
}

.painel-textarea:focus-visible {
  outline: 2px solid var(--stk-cyan);
  outline-offset: 1px;
  border-color: transparent;
}

/* ===== EMPTY STATE ===== */

.painel-empty {
  text-align: center;
  padding: var(--stk-space-2xl) var(--stk-space-lg);
  color: rgba(246, 246, 246, 0.4);
}

.painel-empty__icon {
  font-size: 2.5rem;
  margin-bottom: var(--stk-space-md);
  opacity: 0.5;
}

.painel-empty__text {
  font-size: 0.9375rem;
  margin-bottom: var(--stk-space-lg);
  line-height: 1.6;
}

/* ===== ACTION CARDS (pending actions) ===== */

.painel-action-card {
  display: flex;
  align-items: center;
  gap: var(--stk-space-md);
  padding: 14px 16px;
  background: rgba(255, 200, 50, 0.06);
  border: 1px solid rgba(255, 200, 50, 0.15);
  border-radius: 10px;
  margin-bottom: var(--stk-space-sm);
}

.painel-action-card--danger {
  background: rgba(255, 68, 68, 0.06);
  border-color: rgba(255, 68, 68, 0.15);
}

.painel-action-card__text {
  flex: 1;
  font-size: 0.8125rem;
  color: rgba(246, 246, 246, 0.8);
  line-height: 1.4;
}

.painel-action-card__text strong {
  color: var(--stk-white);
}

/* ===== REQUEST LIST ===== */

.painel-request {
  display: flex;
  align-items: flex-start;
  gap: var(--stk-space-sm);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: var(--stk-space-sm);
}

.painel-request__text {
  flex: 1;
  min-width: 0;
}

.painel-request__desc {
  font-size: 0.8125rem;
  color: var(--stk-white);
  margin-bottom: 2px;
}

.painel-request__date {
  font-size: 0.7rem;
  color: rgba(246, 246, 246, 0.4);
}

/* ===== PLAN FEATURES LIST ===== */

.painel-features {
  list-style: none;
  padding: 0;
  margin: var(--stk-space-md) 0;
}

.painel-features li {
  padding: 6px 0;
  font-size: 0.875rem;
  color: rgba(246, 246, 246, 0.7);
  display: flex;
  align-items: center;
  gap: var(--stk-space-sm);
}

.painel-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stk-green);
  flex-shrink: 0;
}

/* ===== LGPD / INFO NOTICES ===== */

.painel-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--stk-space-sm);
  padding: 12px 16px;
  background: rgba(0, 178, 255, 0.05);
  border: 1px solid rgba(0, 178, 255, 0.1);
  border-radius: 10px;
  font-size: 0.8125rem;
  color: rgba(246, 246, 246, 0.6);
  line-height: 1.5;
  margin: var(--stk-space-lg) 0;
}

.painel-notice svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.6;
  margin-top: 1px;
}

/* ===== SECTION BLOCK (for grouping within sections) ===== */

.painel-block {
  margin-bottom: var(--stk-space-xl);
}

.painel-block__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(246, 246, 246, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--stk-space-md);
}

/* ===== QUICK ACTIONS (overview) ===== */

.painel-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stk-space-sm);
  margin-top: var(--stk-space-md);
}

/* ===== CONTRACT TERMS TEXT ===== */

.painel-terms {
  font-size: 0.875rem;
  color: rgba(246, 246, 246, 0.6);
  line-height: 1.7;
  padding: var(--stk-space-md) 0;
}

/* ===== BACK LINK ===== */

.painel-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: var(--stk-space-lg);
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.painel-back:hover { color: var(--stk-white); }

.painel-back svg {
  width: 16px;
  height: 16px;
}

/* ===== SECTION TRANSITION ===== */

.painel-main__inner {
  animation: painel-fade-in 0.2s ease;
}

@keyframes painel-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER ===== */

.painel-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--stk-space-lg) 0;
  text-align: center;
}

.painel-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--stk-space-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--stk-space-md);
  font-size: 0.75rem;
  color: rgba(246, 246, 246, 0.3);
}

.painel-footer a {
  color: rgba(246, 246, 246, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.painel-footer a:hover { color: var(--stk-white); }

/* ===== GRID LAYOUT (for side-by-side cards) ===== */

.painel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stk-space-md);
}

@media (min-width: 640px) {
  .painel-grid--2 { grid-template-columns: 1fr 1fr; }
}

/* ===== HIDDEN ATTRIBUTE OVERRIDE FIX ===== */

[hidden] {
  display: none !important;
}

/* ===== VISUALLY HIDDEN ===== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
