/* NativeFlow — páginas de assinatura e autenticação web */
.sub-page {
  min-height: 100vh;
  padding: calc(var(--nav-h, 76px) + 2rem) 0 4rem;
  position: relative;
  z-index: 1;
}

.sub-wrap {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
}

.sub-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sub-header .lead {
  margin: 0.75rem auto 0;
}

.sub-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.09));
  border-radius: var(--radius, 20px);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
}

.sub-card.highlight {
  background: linear-gradient(145deg, rgba(108, 99, 255, 0.12), rgba(0, 212, 255, 0.06));
  border-color: rgba(108, 99, 255, 0.35);
}

.sub-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.sub-user-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sub-user-email {
  font-weight: 700;
  word-break: break-all;
}

.sub-user-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.sub-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.sub-status-pill.active {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.sub-status-pill.inactive {
  color: var(--muted);
  background: rgba(75, 85, 99, 0.2);
  border-color: rgba(75, 85, 99, 0.35);
}

.sub-status-pill.pending {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.sub-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.sub-tab {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.sub-tab.is-active {
  background: var(--purple, #6c63ff);
  color: #fff;
}

.sub-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sub-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.sub-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(4, 6, 15, 0.6);
  color: var(--text);
  font-size: 1rem;
}

.sub-field input:focus {
  outline: none;
  border-color: rgba(108, 99, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.sub-alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sub-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.sub-alert.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.sub-alert.info {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #a5f3fc;
}

.sub-plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sub-plan-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--cyan);
  margin: 0.35rem 0 0.5rem;
}

.sub-plan-price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.sub-plan-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 0.5rem;
}

.sub-plan-detail {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.sub-plan-list {
  flex: 1;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.sub-plan-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: #d0d8ef;
}

.sub-plan-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, opacity 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.sub-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.sub-btn-primary {
  background: var(--gradient, linear-gradient(135deg, #00d4ff, #6c63ff));
  color: #fff;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.35);
}

.sub-btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.sub-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.sub-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.sub-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 1rem;
}

.sub-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sub-spin 0.7s linear infinite;
}

@keyframes sub-spin {
  to { transform: rotate(360deg); }
}

.sub-hidden { display: none !important; }

.sub-link-btn {
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.sub-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.sub-top-nav a {
  color: var(--cyan);
  font-size: 0.9rem;
}

.sub-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 6, 15, 0.72);
}

.sub-modal-card {
  width: min(480px, 100%);
  background: rgba(12, 16, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.sub-consent {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .sub-tabs { flex-wrap: wrap; }
  .sub-tab { flex: 1 1 45%; }
}
