:root {
  /* Colors - Modern Dark Theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;

  --accent-primary: #6366f1;
  --accent-primary-hover: #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);

  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hidden {
  display: none !important;
}

/* ========== LANDING ========== */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
}

.logo.centered {
  justify-content: center;
  margin-bottom: 24px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  margin-left: 24px;
  /* Indent to reduce gap with right card and creating visual hierarchy */
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--glass-border);
}

.benefit-text h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.benefit-text p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Unified Hero Card */
.hero-card {
  padding: 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: linear-gradient(180deg, var(--glass-bg) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.hero-card-header {
  margin-bottom: 24px;
}

.badge-pro {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.hero-price .currency {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 8px;
}

.hero-price .amount {
  font-size: 64px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -2px;
  line-height: 1;
}

.hero-price .period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.price-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.hero-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--glass-border);
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.hero-features li:last-child {
  border-bottom: none;
}

.icon-box {
  width: 20px;
  height: 20px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.guarantee-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

.hero-country-wrapper {
  margin-bottom: 20px;
  text-align: left;
}

.hero-country-wrapper label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-country-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: var(--transition-fast);
}

.hero-country-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hero-price .period-suffix {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 500;
}




/* ========== WIZARD ========== */
.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.wizard-steps {
  display: flex;
  gap: 24px;
}

.step {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 8px;
}

.step.active {
  color: var(--text-primary);
}

.step.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
}

.step.completed {
  color: var(--success);
}

.price-indicator {
  padding: 6px 12px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.wizard-content {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 24px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.info-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.info-box .info-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.info-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: var(--transition-fast);
}

.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.area-code-results {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.area-code-results label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}

.area-code-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.area-code-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.area-code-option {
  padding: 16px 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.area-code-option:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

.area-code-option.selected {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.15);
}

.area-code-option .code {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.area-code-option .city {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-step h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.step-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--error);
}

.form-group label .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
.select-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: var(--transition-fast);
}

.select-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

input:focus,
.select-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input::placeholder {
  color: var(--text-muted);
}

/* ========== SEARCHABLE SELECT ========== */
.searchable-select {
  position: relative;
}

.select-search {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
}

.select-search:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-top: 4px;
  z-index: 1000;
  display: none;
  box-shadow: var(--shadow-lg);
}

.select-dropdown.show {
  display: block;
}

.select-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
  border-left: 3px solid transparent;
}

.select-option:hover {
  background: rgba(99, 102, 241, 0.15);
  color: white;
  padding-left: 20px;
  border-left-color: var(--accent-primary);
}

.select-option.selected {
  background: var(--accent-gradient);
  color: white;
  border-left-color: white;
}

.select-option.hidden {
  display: none;
}

.loading-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== AUTHENTICATED EMAIL DISPLAY ========== */
.authenticated-email {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
}

.authenticated-email .email-display {
  color: var(--text-primary);
  font-size: 14px;
}

.authenticated-email .email-badge {
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 12px;
  font-weight: 500;
}

/* ========== CHECKOUT ========== */
.checkout-summary {
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.checkout-summary h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.summary-row span:first-child {
  color: var(--text-muted);
}

.summary-row.total {
  border-top: 1px solid var(--glass-border);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 600;
}

.checkout-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ========== AUTH / LOGIN ========== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
}

.auth-card p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.login-step {
  display: none;
}

.login-step.active {
  display: block;
}

.error-msg {
  margin-top: 16px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 13px;
  text-align: center;
  display: none;
}

.error-msg.show {
  display: block;
}

.success-msg {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: 14px;
  text-align: center;
}

.highlight-email {
  color: var(--accent-primary);
  font-weight: 600;
}

.email-subtext {
  font-size: 15px !important;
  /* Override p style */
}

.email-sent-instructions {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.email-sent-instructions p {
  margin: 0 !important;
  color: var(--text-primary) !important;
  font-size: 14px;
}

.resend-container {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.btn-link:hover {
  opacity: 0.8;
}

/* ========== DASHBOARD ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--glass-border);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-small {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}

.logo-small svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.user-email {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ========== SETTINGS DROPDOWN ========== */
.settings-dropdown {
  position: relative;
}

.settings-trigger {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.settings-trigger:hover .settings-icon {
  transform: rotate(45deg);
}

.settings-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 1000;
  animation: dropdownIn 0.2s ease;
}

.settings-menu.hidden {
  display: none;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-menu-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
}

.menu-icon {
  font-size: 16px;
}

.settings-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 8px 0;
}


.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
}

.section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 600;
}

/* ========== FLOWCHART DASHBOARD ========== */
.flowchart-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 32px;
}

.flowchart-card.cancellation-pending {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.03);
}

.flowchart-card.modified {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.flowchart-card.invalid-card {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.05);
}

/* Cancellation warning banner */
.cancellation-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
}

.cancellation-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.cancellation-content {
  flex: 1;
}

.cancellation-title {
  font-weight: 600;
  color: #f59e0b;
  margin-bottom: 4px;
}

.cancellation-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cancellation-message strong {
  color: var(--text-primary);
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.btn-outline-primary:hover {
  background: var(--accent-primary);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}


/* Horizontal flowchart layout */
.flowchart-layout {
  display: flex;
  align-items: center;
  gap: 32px;
}

.flowchart-left {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.primary-number-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  /* Removed heavy shadow and gradient */
}

.primary-number-icon {
  font-size: 20px;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.primary-number-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.primary-number-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

/* Arrow connector - horizontal */
.flowchart-arrow {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.flowchart-arrow svg {
  width: 48px;
  height: 48px;
  animation: pulse-arrow-horizontal 2s ease-in-out infinite;
}

@keyframes pulse-arrow-horizontal {

  0%,
  100% {
    opacity: 0.5;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(6px);
  }
}

/* Forwarding grid - vertical stack */
.flowchart-right {
  flex: 2;
}

.forwarding-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forward-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.forward-box:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

.forward-box.active {
  border-color: var(--success);
}

.forward-box.empty {
  border-style: dashed;
  opacity: 0.5;
}

.forward-box-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  min-width: 50px;
}

.forward-box-number {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.forward-box.empty .forward-box-number {
  color: var(--text-muted);
  font-style: italic;
}

/* ===== INLINE EDITING STYLES ===== */
.forward-box.editable {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: default;
}

.forward-box.editable:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
}

.forward-box.editable .forward-box-label {
  min-width: 65px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.required-asterisk {
  color: var(--error);
  font-weight: 700;
  font-size: 14px;
}

.forward-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.forward-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.forward-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

/* Active state - has a saved value, neutral styling */
.forward-box.editable.active {
  border-color: var(--glass-border);
}

.forward-box.editable.empty {
  border-style: dashed;
  opacity: 0.6;
}

/* Modified state - unsaved changes, orange box border */
.forward-box.modified {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.08);
  /* Subtle base */
  opacity: 1;
}

.forward-box.modified:hover {
  background: rgba(245, 158, 11, 0.12);
  /* Slightly stronger on hover */
}

.forward-box.modified .forward-input {
  border-color: #f59e0b;
}

/* Valid state - modified and valid, green box border */
.forward-box.valid {
  border-color: #10B981 !important;
  /* Emerald green */
  background: rgba(16, 185, 129, 0.08);
  opacity: 1;
}

.forward-box.valid:hover {
  background: rgba(16, 185, 129, 0.12);
}

.forward-box.valid .forward-input {
  border-color: #10B981;
}

/* Validation error state - red box border */
.forward-box.has-error {
  border-color: var(--error) !important;
  background: rgba(239, 68, 68, 0.08);
  opacity: 1;
}

.forward-box.has-error:hover {
  background: rgba(239, 68, 68, 0.12);
}

.forward-box.has-error .forward-input {
  border-color: var(--error);
}

/* Toll-free warning state - orange box border */
.forward-box.has-warning {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.08);
  opacity: 1;
}

.validation-error {
  width: 100%;
  font-size: 11px;
  color: var(--error);
  padding-left: 77px;
  margin-top: -4px;
}

.validation-error:empty {
  display: none;
}

.forward-box.has-warning .validation-error {
  color: #f59e0b;
}

/* Save button visibility and status */
.save-changes-btn {
  transition: all var(--transition-fast);
}

.save-changes-btn.hidden {
  display: none;
}

.save-changes-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.save-status {
  display: inline-block;
  margin-left: 12px;
  font-size: 13px;
  font-weight: 500;
}

.save-status.success {
  color: var(--success);
}

.save-status.error {
  color: var(--error);
}

/* Adjust flowchart-actions for inline save */
.flowchart-actions {
  margin-top: 32px;
  text-align: center;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Responsive: Stack vertically on smaller screens */
@media (max-width: 900px) {
  .flowchart-layout {
    flex-direction: column;
    gap: 24px;
  }

  .flowchart-arrow svg {
    transform: rotate(90deg);
  }

  @keyframes pulse-arrow-horizontal {

    0%,
    100% {
      opacity: 0.5;
      transform: rotate(90deg) translateX(0);
    }

    50% {
      opacity: 1;
      transform: rotate(90deg) translateX(6px);
    }
  }

  .flowchart-card {
    padding: 24px;
  }
}

/* Legacy number card styles for backwards compatibility */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.number-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-normal);
}

.number-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.number-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.number-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.number-display {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.forward-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.forward-list-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.forward-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.forward-item::before {
  content: '✓';
  color: var(--success);
}

@media (max-width: 768px) {
  .forwarding-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .primary-number-text {
    font-size: 20px;
  }

  .flowchart-card {
    padding: 24px;
  }
}

.no-forwards {
  color: var(--text-muted);
  font-style: italic;
  font-size: 13px;
}

.number-card-actions {
  margin-top: 16px;
}

.empty-state {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-secondary);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--error);
  color: white;
}

.modal-body {
  padding: 28px;
}

.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.info-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-edit {
  padding: 10px 16px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 13px;
}

.btn-edit:hover {
  background: var(--accent-primary);
  color: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    margin: 0 auto 24px;
  }

  .hero-visual {
    order: -1;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .landing-header,
  .wizard-header,
  .header {
    padding: 12px 16px;
  }

  .main-content,
  .wizard-content {
    padding: 24px 16px;
  }

  .wizard-steps {
    display: none;
  }

  .numbers-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== LOCATION SEARCH ========== */
.location-search-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.location-search-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.or-divider {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 14px;
}

.location-results {
  margin-top: 24px;
}

.location-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.location-option {
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.location-option:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

.location-option.selected {
  border-color: var(--accent-primary);
  background: var(--accent-gradient);
}

.location-option .location-city {
  font-weight: 500;
}

.location-option .location-area-code {
  color: var(--text-secondary);
  font-size: 14px;
}

.location-option.selected .location-area-code {
  color: rgba(255, 255, 255, 0.8);
}

#step-1-next {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .location-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .or-divider {
    text-align: center;
    padding: 8px 0;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}