/* ============================================
   SINALVERDE - PAGAMENTOS CSS
   Planos, Checkout, Assinaturas
   ============================================ */

/* ============================================
   PLANOS - HERO
   ============================================ */
.pg-hero {
  padding: 140px 0 40px;
  text-align: center;
  position: relative;
}

.pg-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.pg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease;
}

.pg-hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
  animation: fadeInUp 0.6s ease;
}

.pg-hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  animation: fadeInUp 0.7s ease;
}

/* Toggle Mensal/Anual */
.pg-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.8s ease;
}

.pg-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.pg-toggle-label.active-label {
  color: var(--primary-dark);
  font-weight: 700;
}

.pg-toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.pg-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pg-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 28px;
  transition: var(--transition);
}

.pg-toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  bottom: 3px;
  left: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.pg-toggle-switch input:checked + .pg-toggle-slider {
  background: var(--primary);
}

.pg-toggle-switch input:checked + .pg-toggle-slider::before {
  transform: translateX(24px);
}

.pg-toggle-badge {
  background: var(--accent-light);
  color: #b45309;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================
   PLANOS - CARDS
   ============================================ */
.pg-plans-section {
  padding: 20px 0 80px;
}

.pg-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pg-plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease backwards;
}

.pg-plan-card:nth-child(1) { animation-delay: 0.1s; }
.pg-plan-card:nth-child(2) { animation-delay: 0.2s; }
.pg-plan-card:nth-child(3) { animation-delay: 0.3s; }

.pg-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pg-plan-card--featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.03) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  transform: scale(1.04);
}

.pg-plan-card--featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pg-plan-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pg-plan-header {
  text-align: center;
  margin-bottom: 24px;
}

.pg-plan-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.pg-plan-icon--free {
  background: #f0fdf4;
  color: #16a34a;
}

.pg-plan-icon--pro {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
}

.pg-plan-icon--enterprise {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
}

.pg-plan-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.pg-plan-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.pg-plan-price {
  text-align: center;
  margin-bottom: 8px;
}

.pg-price-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}

.pg-price-period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.pg-plan-yearly-info {
  text-align: center;
  margin-bottom: 20px;
}

.pg-yearly-total {
  font-size: 13px;
  color: var(--text-secondary);
}

.pg-yearly-save {
  display: block;
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 700;
  margin-top: 2px;
}

/* Features */
.pg-plan-features {
  list-style: none;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

.pg-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}

.pg-feature i.fa-check {
  color: var(--primary);
  font-size: 13px;
  width: 16px;
  text-align: center;
}

.pg-feature--disabled {
  color: var(--text-muted);
}

.pg-feature--disabled i.fa-xmark {
  color: var(--text-muted);
  font-size: 13px;
  width: 16px;
  text-align: center;
}

/* Plan Buttons */
.pg-plan-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.pg-plan-btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.pg-plan-btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.pg-plan-btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.pg-plan-btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: rgba(34, 197, 94, 0.05);
}

.pg-plan-btn--dark {
  background: var(--text);
  color: white;
}

.pg-plan-btn--dark:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   COMPARATIVO
   ============================================ */
.pg-compare-section {
  padding: 60px 0 80px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.pg-section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  color: var(--text);
}

.pg-compare-table-wrapper {
  overflow-x: auto;
}

.pg-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pg-compare-table th,
.pg-compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pg-compare-table th:first-child,
.pg-compare-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.pg-compare-table th {
  background: var(--bg);
  font-weight: 700;
  font-size: 15px;
}

.pg-compare-highlight {
  background: rgba(34, 197, 94, 0.05) !important;
}

.pg-ok {
  color: var(--primary);
}

.pg-x {
  color: var(--text-muted);
}

/* ============================================
   FAQ
   ============================================ */
.pg-faq-section {
  padding: 60px 0 80px;
}

.pg-faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.pg-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.pg-faq-item:hover {
  border-color: var(--primary);
}

.pg-faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.1);
}

.pg-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.pg-faq-arrow {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.pg-faq-item.active .pg-faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.pg-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.pg-faq-item.active .pg-faq-answer {
  max-height: 200px;
  padding: 0 20px 16px;
}

.pg-faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   CHECKOUT
   ============================================ */
.ck-section {
  padding: 120px 0 60px;
  min-height: calc(100vh - 200px);
}

/* Loading state */
.ck-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 16px;
  color: var(--text-muted);
  font-size: 15px;
}
.ck-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ckSpin .8s linear infinite;
}
@keyframes ckSpin { to { transform: rotate(360deg); } }

.ck-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

/* Summary Sidebar */
.ck-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.ck-summary-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.ck-plan-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.ck-plan-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ck-plan-details {
  display: flex;
  flex-direction: column;
}

.ck-plan-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.ck-plan-cycle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Price Breakdown */
.ck-price-breakdown {
  margin-bottom: 20px;
}

.ck-price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
}

.ck-price-total {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  padding-top: 12px;
}

.ck-discount-line {
  color: var(--primary-dark);
}

.ck-discount-value {
  font-weight: 600;
}

.ck-price-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Coupon */
.ck-coupon {
  margin-bottom: 20px;
}

.ck-coupon-input-wrapper {
  display: flex;
  gap: 8px;
}

.ck-coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-family: inherit;
  text-transform: uppercase;
  transition: var(--transition);
}

.ck-coupon-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.ck-coupon-btn {
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.ck-coupon-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.ck-coupon-msg {
  font-size: 12px;
  margin-top: 6px;
  display: block;
}

.ck-coupon-msg.success {
  color: var(--primary-dark);
}

.ck-coupon-msg.error {
  color: var(--danger);
}

/* Guarantees */
.ck-guarantees {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.ck-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 5px 0;
}

.ck-guarantee i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}

.ck-powered {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.ck-mp-logo {
  height: 20px;
  opacity: 0.7;
}

/* Payment Method Tabs */
.ck-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.ck-method-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.ck-method-tab {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: var(--text-secondary);
}

.ck-method-tab:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.ck-method-tab.active {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: rgba(34, 197, 94, 0.05);
}

.ck-method-tag {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
}

/* Pix Payment */
.ck-pix-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.ck-pix-qr {
  width: 280px;
  height: 280px;
  margin: 0 auto 20px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ck-pix-qr canvas,
.ck-pix-qr img {
  width: 100% !important;
  height: 100% !important;
}

.ck-pix-instruction {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.ck-pix-code-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.ck-pix-code {
  flex: 1;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-family: monospace;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ck-pix-copy-btn {
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.ck-pix-copy-btn:hover {
  background: var(--primary-dark);
}

.ck-pix-timer {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.ck-pix-timer strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ck-pix-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ck-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: statusPulse 1.5s infinite;
}

.ck-status-waiting {
  background: var(--accent);
}

.ck-status-success {
  background: var(--primary);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Card Form */
.ck-card-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.ck-form-group {
  margin-bottom: 18px;
}

.ck-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.ck-input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ck-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.ck-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: var(--transition);
  background: var(--bg);
}

.ck-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: white;
}

.ck-card-brands {
  position: absolute;
  right: 12px;
  display: flex;
  gap: 4px;
}

.ck-brand-icon {
  height: 22px;
  opacity: 0.6;
}

.ck-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ck-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
}

.ck-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.ck-pay-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
  margin-top: 8px;
}

.ck-pay-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.ck-pay-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ck-pay-btn .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Boleto */
.ck-boleto-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.ck-boleto-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-secondary);
}

.ck-boleto-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ck-boleto-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.ck-boleto-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.ck-boleto-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.ck-boleto-info-item i {
  color: var(--primary);
}

.ck-boleto-generated {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.ck-boleto-barcode {
  font-size: 48px;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.ck-boleto-code-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.ck-boleto-code {
  flex: 1;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: monospace;
  font-size: 13px;
  text-align: center;
  color: var(--text);
}

.ck-boleto-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.ck-boleto-download:hover {
  text-decoration: underline;
}

/* Success State */
.ck-success {
  text-align: center;
  padding: 60px 20px;
  animation: fadeInUp 0.5s ease;
}

.ck-success-icon {
  font-size: 72px;
  color: var(--primary);
  margin-bottom: 20px;
  animation: successBounce 0.6s ease;
}

@keyframes successBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.ck-success-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.ck-success-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.ck-success-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.ck-success-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.ck-success-detail i {
  color: var(--primary);
}

.ck-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.ck-success-btn {
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.ck-success-btn--primary {
  background: var(--primary);
  color: white;
}

.ck-success-btn--primary:hover {
  background: var(--primary-dark);
}

.ck-success-btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.ck-success-btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ============================================
   ASSINATURAS
   ============================================ */
.as-section {
  padding: 120px 0 60px;
  min-height: calc(100vh - 200px);
}

.as-header {
  margin-bottom: 32px;
}

.as-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.as-title i {
  color: var(--primary);
}

.as-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.as-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.as-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.as-card:hover {
  box-shadow: var(--shadow-md);
}

.as-card--plan {
  grid-column: 1 / -1;
}

.as-card--full {
  grid-column: 1 / -1;
}

.as-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.as-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.as-card-header h3 i {
  color: var(--primary);
}

.as-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.as-status--active {
  background: #f0fdf4;
  color: #16a34a;
}

.as-status--active i {
  font-size: 8px;
  animation: statusPulse 1.5s infinite;
}

.as-status--cancelled {
  background: #fef2f2;
  color: #dc2626;
}

/* Plan Current */
.as-plan-current {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.as-plan-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.as-plan-badge--pro {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.as-plan-badge--enterprise {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.as-plan-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.as-plan-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.as-plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.as-plan-since {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Usage */
.as-plan-usage {
  margin-bottom: 24px;
}

.as-plan-usage h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.as-usage-item {
  margin-bottom: 12px;
}

.as-usage-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.as-usage-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.as-usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Plan Actions */
.as-plan-actions {
  display: flex;
  gap: 12px;
}

.as-btn {
  padding: 12px 24px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.as-btn--primary {
  background: var(--primary);
  color: white;
}

.as-btn--primary:hover {
  background: var(--primary-dark);
}

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

.as-btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.as-btn--outline-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger-light);
}

.as-btn--outline-danger:hover {
  background: #fef2f2;
}

.as-btn--danger {
  background: var(--danger);
  color: white;
}

.as-btn--danger:hover {
  background: #dc2626;
}

.as-edit-btn {
  background: none;
  border: none;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.as-edit-btn:hover {
  color: var(--primary);
}

/* Payment Method */
.as-payment-method {
  margin-bottom: 20px;
}

.as-payment-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.as-payment-card-icon {
  font-size: 32px;
  color: #1a1f71;
}

.as-payment-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.as-payment-card-number {
  font-weight: 600;
  font-size: 14px;
  font-family: monospace;
}

.as-payment-card-exp {
  font-size: 12px;
  color: var(--text-secondary);
}

.as-payment-card-default {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Next Billing */
.as-next-billing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border: 1px solid #fcd34d;
}

.as-next-billing-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.as-next-billing-info i {
  color: #b45309;
  font-size: 20px;
}

.as-next-billing-label {
  display: block;
  font-size: 12px;
  color: #92400e;
}

.as-next-billing-date {
  font-weight: 700;
  font-size: 15px;
  color: #78350f;
}

.as-next-billing-amount {
  font-weight: 800;
  font-size: 18px;
  color: #78350f;
}

/* Invoices Table */
.as-invoices-table-wrapper {
  overflow-x: auto;
}

.as-invoices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.as-invoices-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.as-invoices-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.as-invoices-table tbody tr:hover {
  background: var(--bg);
}

.as-invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.as-invoice-status--paid {
  background: #f0fdf4;
  color: #16a34a;
}

.as-invoice-status--pending {
  background: var(--accent-light);
  color: #b45309;
}

.as-invoice-status--failed {
  background: #fef2f2;
  color: #dc2626;
}

.as-invoice-action {
  background: none;
  border: none;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

.as-invoice-action:hover {
  text-decoration: underline;
}

/* Notifications Toggles */
.as-notifications {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.as-notification-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.as-notification-toggle:last-child {
  border-bottom: none;
}

.as-notification-toggle span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.as-notification-toggle span:first-child i {
  color: var(--text-muted);
  width: 18px;
  text-align: center;
}

.as-notification-toggle input {
  display: none;
}

.as-toggle-slider {
  position: relative;
  width: 42px;
  height: 24px;
  background: var(--border);
  border-radius: 24px;
  transition: var(--transition);
  flex-shrink: 0;
}

.as-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  bottom: 3px;
  left: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.as-notification-toggle input:checked + .as-toggle-slider {
  background: var(--primary);
}

.as-notification-toggle input:checked + .as-toggle-slider::before {
  transform: translateX(18px);
}

/* Billing Info */
.as-billing-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.as-billing-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.as-billing-row:last-child {
  border-bottom: none;
}

.as-billing-label {
  font-size: 13px;
  color: var(--text-muted);
}

.as-billing-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Cancel Modal */
.as-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.as-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.as-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.as-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.as-modal-icon--danger {
  background: #fef2f2;
  color: var(--danger);
}

.as-modal-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.as-modal-desc {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.as-modal-features-lost {
  background: #fef2f2;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.as-modal-features-lost p {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 8px;
}

.as-modal-features-lost ul {
  list-style: none;
  padding: 0;
}

.as-modal-features-lost li {
  font-size: 13px;
  color: #991b1b;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-modal-features-lost li i {
  color: var(--danger);
}

.as-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.as-filter-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.as-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .pg-plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pg-plan-card--featured {
    transform: none;
    order: -1;
  }

  .pg-plan-card--featured:hover {
    transform: translateY(-4px);
  }

  .pg-hero-title {
    font-size: 32px;
  }

  .ck-layout {
    grid-template-columns: 1fr;
  }

  .ck-summary {
    order: -1;
  }

  .ck-summary-card {
    position: static;
  }

  .as-layout {
    grid-template-columns: 1fr;
  }

  .as-card--plan,
  .as-card--full {
    grid-column: auto;
  }

  .as-plan-actions {
    flex-direction: column;
  }

  .ck-method-tabs {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .pg-hero-title {
    font-size: 26px;
  }

  .pg-price-value {
    font-size: 36px;
  }

  .ck-pix-code-wrapper {
    flex-direction: column;
  }

  .ck-boleto-info {
    flex-direction: column;
    gap: 12px;
  }

  .ck-success-actions {
    flex-direction: column;
  }

  .as-modal-actions {
    flex-direction: column;
  }

  .as-plan-current {
    flex-direction: column;
    text-align: center;
  }

  .as-next-billing {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
