/* DASHBOARD STYLES BASED ON MAIN.CSS */

body {
  background-color: var(--color--bg-cream); /* #f7f6fd */
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAV */
nav {
  background: var(--neutral); /* #162a2b */
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(253,252,247,0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--color--bg-green-30); }
.nav-links a.active { font-weight: 600; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-lang {
  font-size: 14px;
  font-weight: 500;
  color: rgba(253,252,247,0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-lang:hover {
  color: var(--color--bg-green-30);
}
.nav-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
}

/* LAYOUT */
.shell { display: flex; flex: 1; max-width: 1320px; margin: 0 auto; width: 100%; padding: 0 24px; gap: 0; }

/* SIDEBAR */
aside {
  width: 220px;
  flex-shrink: 0;
  padding: 40px 0;
  border-right: 1px solid var(--color--bg-cream); /* Subtle divider */
}
.sidebar-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--greyvr);
  padding: 0 16px 12px;
  margin-top: 24px;
}
.sidebar-section:first-child { margin-top: 0; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  border-radius: var(--_radius---extra-small);
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.sidebar-item:hover { background: var(--color--bg-cream); color: var(--neutral); }
.sidebar-item.active {
  background: var(--neutral);
  color: var(--white);
}
.sidebar-item.danger { color: #d93025; }
.sidebar-item.danger:hover { background: #fce8e6; }
.sidebar-icon {
  width: 18px; height: 18px;
  opacity: 0.8;
  flex-shrink: 0;
}
.sidebar-divider { height: 1px; background: var(--color--bg-cream); margin: 20px 0; }

/* CONTENT */
main { flex: 1; padding: 40px 40px 60px; min-width: 0; }
.page-title { 
  font-size: 40px; 
  font-weight: 700; 
  color: var(--neutral); 
  margin-bottom: 8px; 
  letter-spacing: -1px;
}
.page-sub { font-size: 15px; color: var(--greyvr); margin-bottom: 32px; }

/* PLAN CARD */
.plan-card {
  background: var(--white);
  border-radius: var(--_radius---medium);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid var(--color--bg-cream);
}
.plan-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.plan-name-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.plan-name { font-size: 24px; font-weight: 600; color: var(--neutral); }
.badge {
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-active { background: var(--color--bg-green-30); color: var(--neutral); }
.badge-trial { background: var(--color--bg-cream); color: var(--primary); }
.badge-cancelled { background: #fce8e6; color: #d93025; }
.badge-incomplete { background: #f0f0f0; color: #6b7280; }
.badge-incomplete-expired { background: #fdecef; color: #b42318; }
.badge-past-due { background: #fce8e6; color: #d93025; }
.badge-unpaid { background: #ffe8e5; color: #c0392b; }
.badge-paused { background: #eef2ff; color: #3b4cca; }
.plan-meta { font-size: 14px; color: var(--greyvr); }
.plan-meta.cancelled { color: #d93025; }
.plan-price { text-align: right; }
.plan-price-num { font-size: 36px; font-weight: 500; color: var(--neutral); letter-spacing: -1px; }
.plan-price-period { font-size: 14px; color: var(--greyvr); }

.divider { height: 1px; background: var(--color--bg-cream); margin: 24px 0; }

.benefits-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--neutral); margin-bottom: 16px;
}
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.benefit-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--primary); font-weight: 500;
}
.benefit-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--color--bg-green-30);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px; color: var(--neutral); font-weight: 700;
}

/* BUTTONS */
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: inherit;
  font-size: 15px; font-weight: 600;
  padding: 12px 24px; border-radius: var(--_radius---extra-large);
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.3s; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--neutral); border-color: var(--neutral); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-danger { background: transparent; border-color: #d93025; color: #d93025; }
.btn-danger:hover { background: #d93025; color: var(--white); }
.btn-recover {
  background: var(--color--bg-green-30);
  color: var(--neutral);
  border: 1px solid rgba(22,42,43,0.12);
}
.btn-recover:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* UPGRADE NUDGE */
.upgrade-nudge {
  background: var(--neutral);
  border-radius: var(--_radius---medium); padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 24px;
}
.nudge-text { color: rgba(253,252,247,0.8); font-size: 15px; line-height: 1.5; }
.nudge-text strong { color: var(--color--bg-green-30); font-weight: 600; display: block; margin-bottom: 4px; font-size: 18px; letter-spacing: -0.5px; }
.btn-white { background: var(--white); color: var(--neutral); font-weight: 700; border-radius: var(--_radius---extra-large); padding: 12px 24px; font-size: 14px; white-space: nowrap; cursor: pointer; border: none; font-family: inherit; transition: background 0.2s; }
.btn-white:hover { background: var(--color--bg-green-30); }

/* STATE: TRIAL */
.trial-banner {
  background: var(--color--bg-green-30); border: 1px solid var(--color--bg-green-30);
  border-radius: var(--_radius---medium); padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.trial-days { font-size: 32px; font-weight: 600; color: var(--neutral); letter-spacing: -1px; }
.trial-label { font-size: 14px; color: var(--primary); margin-top: 4px; font-weight: 500; }
.trial-msg { font-size: 15px; color: var(--neutral); max-width: 400px; line-height: 1.5; }

/* FIELDS LIST */
.fields-doc {
  background: var(--white);
  border: 1px solid var(--color--bg-cream);
  border-radius: var(--_radius---medium); padding: 32px; margin-top: 48px;
}
.fields-doc h3 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--neutral);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--color--bg-cream);
}
.field-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.field-table th {
  text-align: left; padding: 10px 12px;
  font-weight: 600; color: var(--greyvr);
  background: var(--color--bg-cream); font-size: 12px;
}
.field-table td { padding: 12px; border-bottom: 1px solid var(--color--bg-cream); vertical-align: top; color: var(--primary); }
.field-table tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-size: 11px; padding: 4px 8px; border-radius: 6px; font-weight: 600; }
.tag-stripe { background: #e8edfa; color: #3547a1; }
.tag-api { background: var(--color--bg-green-30); color: var(--neutral); }
.tag-hs { background: var(--color--bg-cream); color: var(--neutral); }

.text-main { color: var(--primary); }

/* BILLING SPECIFIC */
.card { background: var(--white); border: 1px solid var(--color--bg-cream); border-radius: var(--_radius---medium); padding: 32px; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.section-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--neutral); margin-bottom: 16px; }
.section-label.profile-section { font-size: 13px; }
.btn-row.full-width .btn { width: 100%; }
.phone-split { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.field-label { font-size: 11px; }
.password-field { position: relative; max-width: 50%; }
.password-field .field-input { padding-right: 40px; }
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--greyvr);
  cursor: pointer;
  font-size: 14px;
}
.password-toggle svg { width: 16px; height: 16px; display: block; }
.field-input:disabled { background: #f3f3f3; color: #8b8b8b; }

/* PROFILE SPECIFIC */
.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.avatar-large { 
  width: 64px; height: 64px; border-radius: 50%; 
  background: var(--neutral); 
  display: flex; align-items: center; justify-content: center; 
  font-family: 'Playfair Display', serif; font-size: 22px; color: var(--white); flex-shrink: 0; 
}
.profile-name { font-size: 18px; font-weight: 600; color: var(--neutral); margin-bottom: 2px; }
.profile-email { font-size: 14px; color: var(--greyvr); }
.profile-plan { 
  display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 12px; 
  border-radius: 20px; background: var(--color--bg-green-30); color: var(--neutral); 
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; 
}

/* FORM FIELDS */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--greyvr); }
.field-input {
  background: var(--white);
  border: 1px solid var(--color--bg-cream);
  border-radius: 8px; padding: 12px 16px;
  font-family: inherit;
  font-size: 15px; color: var(--primary);
  width: 100%; outline: none;
  transition: all 0.2s;
}
.field-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--color--bg-cream); }
select.field-input { 
  cursor: pointer; appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23162a2b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); 
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; 
}

/* POINTS CARD */
.points-card {
  background: var(--neutral);
  border-radius: var(--_radius---medium); padding: 32px;
  color: var(--white); margin-bottom: 24px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 32px;
}
.points-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(253,252,247,0.6); margin-bottom: 8px; }
.points-number { font-size: 48px; font-weight: 300; color: var(--white); line-height: 1; letter-spacing: -1px; }
.points-sub { font-size: 14px; color: rgba(253,252,247,0.7); margin-top: 6px; }
.points-history { background: rgba(255,255,255,0.05); border-radius: var(--_radius---small); padding: 16px 20px; min-width: 240px; }
.points-history-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(253,252,247,0.5); margin-bottom: 12px; }
.points-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.points-row:last-child { border-bottom: none; }
.points-row-label { color: rgba(253,252,247,0.8); }
.points-row-value { font-weight: 500; }
.points-row-value.positive { color: var(--color--bg-green-30); }
.points-note { font-size: 13px; color: rgba(253,252,247,0.5); margin-top: 12px; line-height: 1.4; }

/* PASSWORD */
.password-row { display: flex; align-items: center; justify-content: space-between; }
.password-dots { font-size: 24px; letter-spacing: 4px; color: var(--greyvr); line-height: 1; margin-top: 4px; }

/* DANGER ZONE */
.danger-zone { background: #fdf0ee; border: 1px solid #f5c0ba; border-radius: var(--_radius---medium); padding: 24px 32px; margin-top: 8px; margin-bottom: 24px; }
.danger-title { font-size: 15px; font-weight: 600; color: #d93025; margin-bottom: 4px; }
.danger-desc { font-size: 14px; color: var(--greyvr); margin-bottom: 16px; }

/* PAYMENT METHOD */
.payment-method { display: flex; align-items: center; justify-content: space-between; }
.card-info { display: flex; align-items: center; gap: 14px; }
.card-brand {
  width: 48px; height: 32px; border-radius: var(--_radius---extra-small);
  background: var(--white);
  border: 1px solid var(--color--bg-cream);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.44);
}
.card-digits { font-size: 15px; font-weight: 600; color: var(--neutral); }
.card-expiry { font-size: 14px; color: var(--greyvr); margin-top: 2px; }

/* FAILED PAYMENT STATE */
.failed-banner { background: #fce8e6; border: 1px solid #f5c0ba; border-radius: var(--_radius---medium); padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.failed-msg { font-size: 15px; color: #d93025; line-height: 1.5; max-width: 600px; }
.failed-msg strong { display: block; font-weight: 600; margin-bottom: 4px; font-size: 18px; }

/* HISTORY TABLE */
.history-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.history-table th { text-align: center; padding: 12px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color--bg-cream); background: var(--neutral); }
.history-table th:first-child { border-radius: 8px 0 0 8px; }
.history-table th:last-child { border-radius: 0 8px 8px 0; }
.history-table td { padding: 16px 12px; border-bottom: 1px solid var(--color--bg-cream); vertical-align: middle; color: var(--primary); font-weight: 500; text-align: center; }
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: var(--color--bg-cream); }

.receipt-link { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; cursor: pointer; }
.receipt-link:hover { text-decoration: underline; color: var(--neutral); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding-top: 0; }
.pag-info { font-size: 14px; color: var(--greyvr); text-align: center; }
.pag-btns { display: flex; gap: 8px; justify-content: center; }
.pag-btn { font-size: 14px; font-weight: 500; padding: 6px 16px; border-radius: 8px; border: 1px solid var(--color--bg-cream); background: var(--white); color: var(--primary); cursor: pointer; transition: all 0.2s; }
.pag-btn:hover { background: var(--color--bg-cream); }
.pag-btn.active { background: var(--neutral); color: var(--white); border-color: var(--neutral); }
.pag-btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* PAYMENT METHOD MODAL */
.payment-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(22,42,43,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.22s ease;
}
.payment-modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 28px 24px;
  width: min(520px, 94vw);
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  position: relative;
}
.payment-modal-box .plans-drawer-close {
  top: 12px;
  right: 12px;
}
.payment-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--neutral);
  margin-bottom: 16px;
}
.payment-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.payment-powered {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}
.payment-powered img {
  height: 26px;
  width: auto;
  opacity: 0.9;
}
.payment-card-element {
  border: 1px solid var(--color--bg-cream);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--white);
}
.payment-error {
  font-size: 13px;
  color: #b3261e;
}
.payment-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* TABS */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--white); border: 1px solid var(--color--bg-cream); border-radius: var(--_radius---extra-large); padding: 4px; width: fit-content; }
.tab { font-size: 14px; font-weight: 600; padding: 8px 24px; border-radius: var(--_radius---extra-large); cursor: pointer; color: var(--greyvr); transition: all 0.2s; }
.tab.active { background: var(--neutral); color: var(--white); }

/* BOOKING CARDS */
.booking-card {
  background: var(--white);
  border: 1px solid var(--color--bg-cream);
  border-radius: var(--_radius---medium); padding: 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.booking-card:hover { border-color: var(--color--bg-green-30); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.booking-empty {
  background: var(--white);
  border: 1px dashed var(--color--bg-cream);
  border-radius: var(--_radius---medium);
  padding: 24px;
  text-align: center;
  color: var(--greyvr);
  font-size: 14px;
}
.booking-thumb {
  width: 80px; height: 80px; border-radius: var(--_radius---small);
  background: var(--color--bg-green-30);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.booking-thumb-inner { width: 100%; height: 100%; background: linear-gradient(135deg, #3d4f3a, var(--neutral)); }
.booking-dest { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--greyvr); margin-bottom: 4px; }
.booking-hotel { font-size: 20px; font-weight: 600; color: var(--neutral); margin-bottom: 8px; letter-spacing: -0.5px; }
.booking-meta { font-size: 14px; color: var(--primary); display: flex; gap: 16px; flex-wrap: wrap; }
.booking-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.badge-pending { background: var(--color--bg-cream); color: #b78a00; }
.booking-savings {
  font-size: 13px; font-weight: 600; color: var(--neutral);
  background: var(--color--bg-green-30); padding: 4px 12px; border-radius: var(--_radius---extra-large);
}
.booking-arrow { font-size: 24px; color: var(--greyvr); align-self: center; line-height: 1; }

/* DETAIL PANEL */
.detail-panel {
  background: var(--white);
  border: 1px solid var(--color--bg-cream);
  border-radius: var(--_radius---medium); padding: 40px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; }
.detail-title { font-size: 28px; font-weight: 700; color: var(--neutral); margin-bottom: 8px; letter-spacing: -0.5px; }
.detail-sub { font-size: 15px; color: var(--primary); }
.price-comparison { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 24px; }
.price-box { background: var(--color--bg-cream); border-radius: var(--_radius---medium); padding: 20px; text-align: center; }
.price-box-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--greyvr); margin-bottom: 8px; }
.price-box-value { font-size: 28px; font-weight: 600; color: var(--neutral); letter-spacing: -1px; }
.price-box-value.struck { text-decoration: line-through; color: var(--greyvr); font-size: 20px; }
.price-box-value.savings { color: var(--primary); }

.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--color--bg-cream); font-size: 15px; }
.detail-row:last-child { border-bottom: none; }
.detail-row-label { color: var(--greyvr); font-weight: 500; }
.detail-row-value { font-weight: 600; color: var(--neutral); }
.booking-details-box { max-width: 880px; width: min(880px, 92vw); }
.booking-details-box .detail-panel { box-shadow: none; border: none; padding: 0; margin: 0; }
.booking-details-box .btn-row { margin-top: 16px; }

/* SUPPORT AND CANCEL SPECIFIC */

/* SUPPORT CHANNELS */
.support-channel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color--bg-cream); }
.support-channel:last-child { border-bottom: none; }
.channel-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--color--bg-green-30); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.channel-icon svg { width: 18px; height: 18px; color: var(--neutral); }
.channel-info { flex: 1; }
.channel-title { font-size: 15px; font-weight: 600; color: var(--neutral); margin-bottom: 2px; }
.channel-sub { font-size: 14px; color: var(--greyvr); }
.channel-availability { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--color--bg-green-30); color: var(--neutral); margin-top: 4px; }

/* WIN-BACK MODAL MOCKUP */
.modal-backdrop { background: rgba(22, 42, 43, 0.55); border-radius: var(--_radius---medium); padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 440px; margin-bottom: 20px; }
.modal {
  background: var(--white); border-radius: var(--_radius---medium);
  padding: 32px; max-width: 480px; width: 100%;
  border: 1px solid var(--color--bg-cream);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.modal-step { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--greyvr); margin-bottom: 8px; }
.modal-title { font-size: 24px; font-weight: 600; color: var(--neutral); margin-bottom: 8px; line-height: 1.3; }
.modal-sub { font-size: 14px; color: var(--greyvr); line-height: 1.6; margin-bottom: 20px; }
.winback-offer {
  background: var(--neutral); border-radius: var(--_radius---medium); padding: 20px 24px;
  color: var(--white); margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px;
}
.offer-badge { background: var(--color--bg-green-30); color: var(--neutral); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.offer-text { font-size: 14px; line-height: 1.5; color: rgba(253,252,247,0.9); }
.offer-text strong { color: var(--white); font-weight: 600; }
.reason-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.reason-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--color--bg-cream); border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--primary); transition: all 0.2s; background: var(--white); }
.reason-option:hover { border-color: var(--primary); background: var(--color--bg-cream); }
.reason-option input { accent-color: var(--primary); }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.is-loading { opacity: 0.7; cursor: progress; }
.btn.is-loading::after { content: ""; }

/* CANCEL CONFIRMATION STATE */
.cancel-confirm { text-align: center; padding: 16px 0; }
.cancel-icon { width: 48px; height: 48px; border-radius: 50%; background: #fce8e6; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* OTHER CLASSES (flow-note) */
.flow-note { background: var(--color--bg-cream); border-left: 3px solid var(--primary); border-radius: 0 6px 6px 0; padding: 12px 16px; margin-bottom: 24px; font-size: 14px; color: var(--primary); line-height: 1.6; }

/* SKELETON LOADER */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
.skeleton select,
select.skeleton {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
}
select.skeleton::-ms-expand {
  display: none;
}
.skeleton * {
  visibility: hidden;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── PLANS MODAL ──────────────────────────────────────────────────────────── */
.plans-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(22,42,43,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.22s ease;
}
.cancel-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(22,42,43,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cancel-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--_radius---medium);
  border: 1px solid var(--color--bg-cream);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 28px 28px 24px;
  width: min(540px, 92vw);
  max-height: 90vh;
  overflow: auto;
}
.cancel-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(22,42,43,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cancel-success-box {
  position: relative;
  background: var(--white);
  border-radius: var(--_radius---medium);
  border: 1px solid var(--color--bg-cream);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 28px 28px 24px;
  width: min(520px, 92vw);
  text-align: center;
}
.cancel-success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--neutral);
  margin-bottom: 8px;
}
.cancel-success-text {
  font-size: 14px;
  color: var(--greyvr);
  line-height: 1.6;
}
.cancel-modal-box .modal-title,
.cancel-modal-box .modal-sub {
  text-align: center;
}
.cancel-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color--bg-cream);
  color: var(--neutral);
  cursor: pointer;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
  transition: background 0.2s;
}
.cancel-modal-close:hover { background: rgba(22,42,43,0.12); }
.cancel-step { width: 100%; }
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.plans-modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  animation: modalSlideUp 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.plans-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 24px;
  position: relative;
  padding-right: 48px;
}
.plans-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--neutral);
  letter-spacing: -0.5px;
}
.plans-modal-subtitle {
  flex: 1 0 100%;
  font-size: 12px;
  color: var(--greyvr);
  font-weight: 600;
}

/* Close button (shared with drawer) */
.plans-drawer-close {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(22,42,43,0.07);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 16px;
  color: var(--neutral);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.plans-drawer-close:hover { background: rgba(22,42,43,0.16); }

/* Billing toggle */
.plans-billing-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color--bg-cream);
  border: 1px solid rgba(22,42,43,0.1);
  border-radius: var(--_radius---extra-large);
  padding: 4px;
  width: fit-content;
  margin-bottom: 28px;
}
.billing-tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--_radius---extra-large);
  border: none;
  cursor: pointer;
  color: var(--greyvr);
  background: transparent;
  transition: all 0.22s;
}
.billing-tab.active {
  background: var(--neutral);
  color: var(--white);
}
.billing-save-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--neutral);
  background: var(--color--bg-green-30);
  padding: 4px 10px;
  border-radius: var(--_radius---extra-large);
  margin-left: 8px;
  white-space: nowrap;
}

/* Plan cards grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 14px; /* space for the absolute badge */
}

.plan-option-card {
  background: var(--color--bg-cream);
  border: 2px solid transparent;
  border-radius: var(--_radius---medium);
  padding: 24px 20px;
  cursor: pointer;
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
}
.plan-option-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.plan-option-card > * {
  position: relative;
  z-index: 1;
}
.plan-option-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.plan-option-card.selected {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(22,42,43,0.12);
  transform: scale(1.1);
}


/* Radio dot */
.plan-option-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(22,42,43,0.25);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.plan-option-card.selected .plan-option-radio { border-color: var(--neutral); }
.plan-option-radio-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--neutral);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.18s;
}
.plan-option-card.selected .plan-option-radio-dot { opacity: 1; }

/* "El más popular" badge */
.plan-option-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color--bg-green-30);
  color: var(--neutral);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}

/* "Plan actual" tag */
.plan-option-current-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral);
  background: var(--color--bg-green-30);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.plan-option-name {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--greyvr);
  margin-bottom: 8px;
}
.plan-option-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}
.plan-option-price-num {
  font-size: 28px;
  font-weight: 600;
  color: var(--neutral);
  letter-spacing: -1px;
}
.plan-option-price-period {
  font-size: 13px;
  color: var(--greyvr);
}
.plan-option-annual-equiv {
  font-size: 12px;
  color: var(--greyvr);
  margin-bottom: 16px;
}
.plan-option-divider {
  height: 1px;
  background: rgba(22,42,43,0.08);
  margin: 14px 0;
}
.plan-option-benefits {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-option-benefit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--primary);
  line-height: 1.4;
}
.plan-option-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color--bg-green-30);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--neutral);
  font-weight: 700;
  margin-top: 1px;
}

/* Full-width CTA */
.plans-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}
.plans-modal-back {
  padding: 12px 18px;
  border-radius: var(--_radius---extra-large);
  min-width: 120px;
}
.plans-modal-cta {
  width: auto;
  min-width: 220px;
  font-size: 16px;
  padding: 16px;
  border-radius: var(--_radius---extra-large);
}
.plans-modal-cta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
