:root {
  --primary: #ff6b9d;
  --secondary: #ffb4d1;
  --lavender: #a78bfa;
  --bg: #fff9f9;
  --bg-soft: #f8f7ff;
  --surface: #ffffff;
  --surface-soft: #fff5f8;
  --text: #2d3748;
  --muted: #6b7280;
  --line: rgba(255, 107, 157, 0.2);
  --gold: #ffd700;
  --success: #10b981;
  --shadow-soft: 0 8px 30px rgba(255, 107, 157, 0.15);
  --shadow-hover: 0 12px 40px rgba(255, 107, 157, 0.25);
}

body.dark-mode {
  --primary: #a78bfa;
  --secondary: #6b5fff;
  --lavender: #ff6b9d;
  --bg: #111428;
  --bg-soft: #181b33;
  --surface: #1f2341;
  --surface-soft: #252a4f;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(167, 139, 250, 0.35);
  --shadow-soft: 0 8px 30px rgba(99, 102, 241, 0.35);
  --shadow-hover: 0 14px 44px rgba(99, 102, 241, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 107, 157, 0.22), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(167, 139, 250, 0.24), transparent 34%),
    radial-gradient(circle at 60% 88%, rgba(255, 180, 209, 0.22), transparent 28%);
}

.handwritten {
  font-family: 'Caveat', cursive;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
}

.logo {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.1rem;
}

.tab-navigation {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(10px);
  font-weight: 600;
}

.tab-btn .icon {
  font-size: 0.95rem;
}

.tab-btn.active {
  background: #fff;
  color: #667eea;
  border-color: rgba(255, 255, 255, 0.7);
}

.tab-btn:hover {
  transform: translateY(-1px);
}

.header-right {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.dark-toggle {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.upgrade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.62rem 0.9rem;
  font-weight: 700;
  color: #5d3d00;
  border: 1px solid rgba(255, 223, 113, 0.7);
  background: linear-gradient(135deg, #ffe58f 0%, #ffd700 100%);
}

.app-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.1rem 1rem 5.5rem;
}

.feature-card,
.personalization-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.personalization-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.personalization-card {
  margin-bottom: 0.9rem;
  display: grid;
  gap: 0.8rem;
}

.personalization-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.subtle {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.autosave {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.tab-panel.is-active {
  display: block;
  animation: tabIn 0.26s ease forwards;
}

@keyframes tabIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
}

.panel-heading p {
  margin: 0.35rem 0 0.95rem;
  color: var(--muted);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  padding: 0.9rem;
  text-align: center;
  margin-bottom: 0.8rem;
}

.empty-state .emoji {
  font-size: 1.5rem;
}

.empty-state h3 {
  margin: 0.22rem 0;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stack-gap {
  display: grid;
  gap: 0.8rem;
}

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

.text-input,
.currency-select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: #2d3748;
  border-radius: 14px;
  padding: 0.72rem 0.8rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}

body.dark-mode .text-input,
body.dark-mode .currency-select {
  background: #2c3052;
  color: #f8fafc;
}

.text-input:focus,
.currency-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.18);
}

.text-input.input-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.field-hint {
  margin: 0.32rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.route-search-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.7rem;
  align-items: end;
}

.route-arrow {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.airport-search {
  position: relative;
}

.search-input-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
}

.autocomplete-input {
  padding-left: 2.15rem;
  font-size: 1rem;
}

.airport-dropdown {
  position: absolute;
  top: calc(100% + 0.28rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  max-height: 290px;
  overflow-y: auto;
  z-index: 20;
}

body.dark-mode .airport-dropdown {
  background: #2c3052;
}

.airport-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: transparent;
  text-align: left;
  padding: 0.76rem 0.8rem;
  min-height: 48px;
  cursor: pointer;
  color: var(--text);
}

.airport-option:last-child {
  border-bottom: 0;
}

.airport-option:hover,
.airport-option.is-highlighted {
  background: rgba(255, 107, 157, 0.12);
}

.airport-option strong {
  display: block;
  color: var(--text);
}

.airport-option small {
  color: var(--muted);
}

.airport-loading,
.airport-error,
.no-results {
  margin: 0;
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.airport-error {
  color: #b91c1c;
}

.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 600;
  padding: 0.72rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 8px 22px rgba(245, 87, 108, 0.36);
}

.secondary-btn {
  background: linear-gradient(135deg, #ffe6ef 0%, #ffd6e5 100%);
  border-color: rgba(255, 107, 157, 0.28);
  color: #7a2e4c;
}

body.dark-mode .secondary-btn {
  background: linear-gradient(135deg, #403270 0%, #4f3b8d 100%);
  color: #f6f1ff;
  border-color: rgba(167, 139, 250, 0.35);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--line);
  color: var(--text);
}

body.dark-mode .ghost-btn {
  background: #353a62;
}

.ripple {
  position: absolute;
  border-radius: 999px;
  transform: scale(0);
  animation: ripple 550ms linear;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.route-display {
  margin-top: 0.55rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.62rem 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
}

.flight-skeleton {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
}

.flight-skeleton span {
  display: block;
  border-radius: 12px;
  height: 78px;
  background: linear-gradient(90deg, rgba(240, 240, 255, 0.5) 20%, rgba(255, 255, 255, 0.85) 50%, rgba(240, 240, 255, 0.5) 80%);
  background-size: 260% 100%;
  animation: shimmer 1.1s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.savings-callout {
  background: linear-gradient(135deg, #ffd700 0%, #90ee90 100%);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.25);
  animation: softPulse 2s ease-in-out infinite;
}

.savings-callout.price-drop {
  animation: priceDrop 0.6s ease;
}

@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes priceDrop {
  0% { transform: translateX(0) scale(1); }
  20% { transform: translateX(-3px) scale(1.02); }
  40% { transform: translateX(3px) scale(1.04); }
  60% { transform: translateX(-2px) scale(1.03); }
  80% { transform: translateX(2px) scale(1.02); }
  100% { transform: translateX(0) scale(1); }
}

.savings-label {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #5e5200;
}

.savings-amount {
  margin: 0.2rem 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: #215d0f;
}

.savings-note {
  margin: 0;
  color: #2f4f2a;
}

.flight-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--text);
}

.flight-stats p {
  margin: 0;
}

.chart-shell {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  min-height: 300px;
  height: 340px;
}

body.dark-mode .chart-shell {
  background: rgba(31, 35, 65, 0.65);
}

.celebration-line {
  margin: 0;
  color: var(--text);
}

.section-divider {
  height: 1px;
  background: var(--line);
  margin: 0.9rem 0;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
}

.inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.journey-tip {
  margin: 0.55rem 0 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0.62rem 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.text-link:hover {
  text-decoration: underline;
}

.couple-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(245, 87, 108, 0.35);
}

.distance-line-wrap {
  display: grid;
  gap: 0.3rem;
  text-align: center;
}

.distance-line {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 999px;
}

.countdown-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.flip-unit {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  padding: 0.52rem;
}

body.dark-mode .flip-unit {
  background: #2b3058;
}

.flip-unit span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.countdown-number {
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.flip-unit small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.countdown-progress-wrap {
  margin-top: 0.75rem;
}

.progress-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.8s cubic-bezier(0.2, 0.65, 0.35, 1);
}

.romantic-progress {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.countdown-percent,
.exchange-rate-info {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.currency-input {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 0.45rem;
}

.currency-select {
  appearance: none;
}

.split-result {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.74);
}

.split-result h3 {
  margin: 0 0 0.6rem;
}

.split-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  text-align: center;
}

.split-person {
  margin: 0;
  color: var(--muted);
}

.split-amount {
  margin: 0.15rem 0;
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  font-weight: 700;
}

.split-percent {
  margin: 0;
  color: var(--primary);
  font-weight: 600;
}

.split-divider-heart {
  font-size: 1.15rem;
}

.split-ratio {
  margin: 0.55rem 0 0;
}

.split-help {
  margin: 0.32rem 0 0;
  color: var(--muted);
}

.help-chip {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  cursor: help;
}

.history-list {
  list-style: none;
  margin: 0.52rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.history-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-size: 0.88rem;
}

.photo-upload-row {
  display: grid;
  gap: 0.42rem;
}

.photo-preview {
  width: 100%;
  max-width: 220px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.fund-result {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.74);
}

.fund-result h3 {
  margin: 0;
}

.fund-track {
  margin-top: 0.72rem;
  height: 14px;
}

.fund-fill {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 2px 10px rgba(79, 172, 254, 0.35);
}

.milestone-markers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  pointer-events: none;
}

.milestone-markers span {
  justify-self: center;
  width: 24px;
  height: 24px;
  margin-top: -6px;
  border-radius: 50%;
  border: 3px solid #f5576c;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.milestone-markers span.reached {
  background: var(--success);
  border-color: var(--success);
  transform: scale(1.08);
}

.milestone-list {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.25rem;
}

.milestone-list li.reached {
  animation: heartBurst 0.6s ease-out;
  color: var(--success);
  font-weight: 600;
}

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

.checkout-anchor {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.toast-container {
  position: fixed;
  right: 1rem;
  top: 5.5rem;
  z-index: 60;
  display: grid;
  gap: 0.45rem;
}

.toast {
  min-width: 240px;
  max-width: 340px;
  border-radius: 14px;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 0.85rem;
}

body.dark-mode .toast {
  background: rgba(31, 35, 65, 0.95);
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.paywall-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.paywall-sheet {
  position: relative;
  width: min(920px, 100%);
  border-radius: 20px;
  padding: 1.1rem;
  background: linear-gradient(135deg, #fff 0%, #fef5f8 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
  animation: modalIn 0.25s ease-out;
}

body.dark-mode .paywall-sheet {
  background: linear-gradient(135deg, #1f2341 0%, #252a4f 100%);
}

@keyframes modalIn {
  from { transform: translateY(18px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.paywall-close {
  position: absolute;
  right: 0.8rem;
  top: 0.4rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}

.paywall-sheet h2 {
  margin: 0;
}

.paywall-subtitle {
  margin: 0.35rem 0 0.8rem;
  color: var(--muted);
}

.paywall-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.paywall-tier {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.74rem;
  background: rgba(255, 255, 255, 0.68);
}

.paywall-tier.premium {
  border-color: rgba(255, 215, 0, 0.7);
  background: rgba(255, 244, 203, 0.7);
}

body.dark-mode .paywall-tier {
  background: rgba(31, 35, 65, 0.65);
}

.paywall-tier h3 {
  margin: 0;
}

.paywall-tier ul {
  margin: 0.52rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.24rem;
  color: var(--text);
}

.paywall-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

body.dark-mode .mobile-tabbar {
  background: rgba(31, 35, 65, 0.95);
}

.mobile-tabbar .tab-btn {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.65);
  justify-content: center;
  font-size: 0.74rem;
  padding: 0.55rem 0.2rem;
}

.mobile-tabbar .tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.heart-particle {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  font-size: 1rem;
  animation: floatHeart 900ms ease-out forwards;
}

@keyframes floatHeart {
  0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1.1); opacity: 0; }
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .app-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .desktop-tabs {
    display: none;
  }

  .mobile-tabbar {
    display: grid;
  }

  .app-shell {
    padding-bottom: 6rem;
  }
}

@media (max-width: 760px) {
  .name-grid {
    grid-template-columns: 1fr;
  }

  .route-search-grid {
    grid-template-columns: 1fr;
  }

  .route-arrow {
    margin-bottom: 0;
    text-align: center;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .currency-input {
    grid-template-columns: 1fr;
  }

  .split-columns {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .paywall-compare {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: 0.7rem;
    right: 0.7rem;
    top: 5rem;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }
}

/* ============================================
   FEATURE 1: PLANNING CALL BUTTON
   ============================================ */

.feature-card {
  position: relative;
}

.planning-call-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 12;
}

.planning-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.planning-call-btn:active {
  transform: translateY(0);
}

.planning-call-btn .icon {
  font-size: 16px;
}

.planning-call-btn .text {
  white-space: nowrap;
}

.panel-heading {
  padding-right: 220px;
}

.meeting-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.meeting-modal.hidden {
  display: none;
}

.meeting-modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUp 0.3s ease-out;
}

body.dark-mode .meeting-modal-content {
  background: #1f2341;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.meeting-modal-content h3 {
  color: #667eea;
  margin-bottom: 16px;
  font-size: 24px;
}

.meeting-modal-content .meeting-link {
  background: #f7f9fc;
  padding: 16px;
  border-radius: 12px;
  margin: 20px 0;
  word-break: break-all;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #333;
  border: 2px dashed #667eea;
}

body.dark-mode .meeting-modal-content .meeting-link {
  background: #2a2f52;
  color: #e2e8f0;
}

.meeting-modal-content .action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.meeting-modal-content button {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 14px;
}

.meeting-modal-content .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.meeting-modal-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.meeting-modal-content .btn-secondary {
  background: #e5e7eb;
  color: #333;
}

.meeting-modal-content .btn-secondary:hover {
  background: #d1d5db;
}

.meeting-modal-content .success-message {
  color: #10b981;
  font-weight: 600;
  margin-top: 12px;
  display: none;
}

.meeting-modal-content .success-message.show {
  display: block;
}

/* ============================================
   FEATURE 2: SHARE WITH PARTNER BUTTONS
   ============================================ */

.flight-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-share {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn-share:active {
  transform: translateY(0);
}

.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  z-index: 10001;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   FEATURE 3: PARTNER TIMEZONE WIDGET
   ============================================ */

.partner-timezone-widget {
  margin-top: 14px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  border: 2px solid #dee2e6;
}

body.dark-mode .partner-timezone-widget {
  background: linear-gradient(135deg, #293056 0%, #30365d 100%);
  border-color: #495179;
}

.partner-timezone-widget .widget-title {
  color: #333;
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 600;
}

body.dark-mode .partner-timezone-widget .widget-title {
  color: #e2e8f0;
}

.partner-timezone-widget #partner-name-display {
  color: #667eea;
}

.timezone-display {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.partner-time {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.time-emoji {
  font-size: 48px;
  line-height: 1;
}

.time-info {
  flex: 1;
}

.current-time {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  font-family: 'Courier New', monospace;
}

body.dark-mode .current-time {
  color: #e2e8f0;
}

.location-name {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.activity-status {
  flex: 1;
  text-align: right;
}

.status-text {
  font-size: 16px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 4px;
}

.suggestion-text {
  font-size: 13px;
  color: #666;
}

.best-time-to-call {
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  border-left: 4px solid #10b981;
}

body.dark-mode .best-time-to-call {
  background: #252b4f;
  color: #e2e8f0;
}

.best-time-to-call strong {
  color: #10b981;
}

.config-btn {
  margin-top: 12px;
  font-size: 13px;
  color: #667eea;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.timezone-config-form {
  margin-top: 20px;
  padding: 20px;
  background: #f7f9fc;
  border-radius: 12px;
  animation: slideDown 0.3s ease-out;
}

body.dark-mode .timezone-config-form {
  background: #252b4f;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timezone-config-form .form-group {
  margin-bottom: 16px;
}

.timezone-config-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

body.dark-mode .timezone-config-form label {
  color: #e2e8f0;
}

.timezone-config-form input,
.timezone-config-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
}

.timezone-config-form .schedule-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timezone-config-form .schedule-inputs input {
  flex: 1;
}

.timezone-config-form button {
  margin-top: 12px;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .planning-call-btn {
    padding: 12px 16px;
    top: 12px;
    right: 12px;
  }

  .planning-call-btn .text {
    display: none;
  }

  .planning-call-btn .icon {
    font-size: 20px;
  }

  .panel-heading {
    padding-right: 64px;
  }

  .btn-share {
    width: 100%;
    justify-content: center;
  }

  .timezone-display {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-status {
    text-align: left;
  }
}
