@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-base: #f8fafc;
  --bg-card: #ffffff;
  --bg-aside: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-lighter: #64748b;
  --border: rgba(15, 23, 42, 0.06);
  --border-focus: #6366f1;
  
  /* Primary & Brand Gradients */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.08);
  --teal: #0ea5e9;
  --teal-hover: #0284c7;
  --teal-light: rgba(14, 165, 233, 0.08);
  --accent: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --accent-reverse: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  
  /* System States */
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.08);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.08);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.08);
  
  /* Layout Metrics */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 40px -5px rgba(15, 23, 42, 0.08), 0 12px 16px -8px rgba(15, 23, 42, 0.05);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-base);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

/* Focus Indicator accessibility */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 4px;
}

/* Page Wrap */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
  transition: var(--transition);
}
.brand:hover .logo {
  transform: rotate(-5deg) scale(1.05);
}

h1.app-title {
  font-size: 26px;
  font-weight: 800;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.offline-badge {
  font-size: 13px;
  color: var(--text-lighter);
  background: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Menu Bar */
.menu-bar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 100;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.menu-item {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-toggle:hover,
.menu-item.open .dropdown-toggle {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-toggle .chev {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.menu-item.open .chev {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 250px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Special CTA Roadmap button in menu */
.roadmap-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.roadmap-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.roadmap-cta .badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 800;
  margin-left: 6px;
  color: #fff;
}

/* Grid layout for Dashboard */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 1fr 340px;
  }
}

/* Modern Card/Panel */
.panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  margin-bottom: 24px;
  overflow: hidden;
}

.panel:hover {
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-sub {
  font-size: 13.5px;
  color: var(--text-lighter);
  margin-bottom: 20px;
}

/* Inputs and Forms */
input[type=text],
input[type=number],
input[type=email],
input[type=password],
input[type=date],
input[type=datetime-local],
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  font-size: 14.5px;
  color: var(--text-main);
  transition: var(--transition);
}

input:hover, select:hover {
  border-color: var(--text-lighter);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
  text-decoration: none;
}

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

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

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: none;
}

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

/* Dynamic items (reminders, tasks) */
.rem-item, .task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: var(--transition);
}

.rem-item:hover, .task-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-light);
}

.rem-list, #taskList {
  margin-top: 16px;
}

/* Calculator summaries */
.summary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(14, 165, 233, 0.03) 100%);
  border: 1px dashed rgba(99, 102, 241, 0.2);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.large-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Installment Cards */
.install-cell {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.install-paid {
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.3);
}

.tick {
  font-size: 16px;
  color: var(--success);
  font-weight: bold;
}

/* Pre-departure Checklist */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-container label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text-muted);
  user-select: none;
}

.checklist-container input[type=checkbox] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  accent-color: var(--primary);
}

/* Content Pages styles */
.section-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 20px;
  transition: var(--transition-bounce);
}

.section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.section-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
}

.section-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.section-tag {
  font-size: 13.5px;
  color: var(--text-lighter);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-card ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-card li {
  font-size: 14.5px;
  color: var(--text-muted);
}

.highlight {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  margin-top: 16px;
  transition: var(--transition);
}

.back:hover {
  color: var(--primary-hover);
  transform: translateX(-4px);
}

/* Roadmap Styles */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 40px;
  padding: 40px 0;
}

.spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(99, 102, 241, 0.15);
  transform: translateX(-50%);
}

.start-label, .finish-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: #fff;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.start-label { top: -20px; }
.finish-label { bottom: -20px; }

.entry {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
}

.entry.left { justify-content: flex-start; }
.entry.right { justify-content: flex-end; }

.timeline-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 44%;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  z-index: 5;
}

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

.timeline-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.timeline-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  border: 4px solid var(--bg-card);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
  z-index: 10;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.node:hover {
  transform: translateX(-50%) scale(1.15);
}

.node.done {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.connector {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--bg-card);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.02);
  transform: rotate(45deg);
  z-index: 2;
  top: calc(50% - 8px);
}

.entry.left .connector { right: calc(56% - 8px); border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
.entry.right .connector { left: calc(56% - 8px); border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); }

/* Progress wrapper */
.progressWrap {
  margin-bottom: 32px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.progressBar {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progressFill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}

.progressText {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-lighter);
  text-align: right;
}

.roadmap-info {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.print-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: var(--transition);
}

.print-btn:hover {
  background: #f8fafc;
  color: var(--text-main);
  border-color: var(--text-lighter);
}

/* Footer Section */
footer {
  margin-top: 80px;
  padding: 48px 24px;
  background: var(--text-main);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-xl);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14.5px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  font-size: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

/* Auth Cards Styling */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.password-strength-container {
  margin-top: 4px;
}

.strength-bar {
  height: 6px;
  border-radius: 3px;
  background: #f1f5f9;
  overflow: hidden;
  margin-top: 8px;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
  font-size: 12px;
  color: var(--text-lighter);
  margin-top: 4px;
  font-weight: 500;
}

.auth-msg {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
}

.auth-msg.error {
  background: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.auth-msg.success {
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--success);
}

/* Landing Page Hero and Why */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  margin-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h2 span {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature grid style */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.why-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  position: relative;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.15);
}

.why-icon {
  font-size: 32px;
  margin-bottom: 18px;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Statistics */
.stats-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
  padding: 60px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 60px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-item h4 {
  font-size: 40px;
  font-weight: 800;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-lighter);
  margin-top: 4px;
}

/* Accordion FAQs */
.faq-section {
  max-width: 800px;
  margin: 80px auto;
}

.faq-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  font-weight: 800;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: #fafafa;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  max-height: 200px; /* arbitrary height to slide down */
}

.faq-item .faq-icon {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Mobile responsive fixes */
@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
  }
  
  .menu-item {
    width: 100%;
  }
  
  .dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
  }
  
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    background: #fafafa;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  .menu-item.open .dropdown-menu {
    display: block;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .spine {
    left: 20px;
  }
  
  .start-label, .finish-label {
    left: 20px;
    transform: none;
  }
  
  .entry {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }
  
  .timeline-card {
    width: 100% !important;
  }
  
  .node {
    left: 20px;
    transform: none;
  }
  
  .node:hover {
    transform: scale(1.1);
  }
  
  .connector {
    display: none;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 16px 16px 60px;
  }
  
  .auth-card {
    padding: 24px;
  }
}

/* Accessibility: prefers-reduced-motion media query */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
