/* Design System & Visual Tokens */
:root {
  --bg-cream: #efeae2;         /* Premium, warm off-white organic cream background */
  --bg-dark: #090d12;          /* Sleek, deep navy-charcoal background */
  --text-dark: #121417;        /* Crisp dark grey for typography */
  --text-muted-dark: #646a73;  /* Subdued body text for high readability */
  --text-light: #f7fafc;       /* Off-white for dark mode text */
  --text-muted-light: #94a3b8; /* Muted slate for dark mode subheadings */
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset and Global Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  overflow: hidden; /* Disable default scrolling completely */
}

/* CUSTOM INVERTING SVG CURSOR */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none; /* Let pointer clicks fall through directly onto elements */
  z-index: 99999;
  mix-blend-mode: difference; /* Beautifully inverts light colors on dark elements and vice versa */
  transform: translate(-50%, -50%) rotate(45deg); /* Base fallback rotation */
  /* Transition rule removed; frame rates are driven dynamically in JS to prevent conflicts */
  display: none; /* Only show on desktop via pointer fine queries */
}

.custom-cursor svg {
  width: 100%;
  height: 100%;
  fill: #ffffff; /* Must be white for difference blending to trigger absolute inversion */
}

/* Dynamic swell on cursor hover */
.custom-cursor.cursor-hover {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.4);
}

/* Hide systemic mouse cursor on desktops with pointer capability */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, input, textarea, [role="button"], .flank-card, .menu-link, .profile-name-textbox {
    cursor: none !important;
  }
  .custom-cursor {
    display: block;
  }
}

/* Main app wrapper - scroll snaps removed, acts as view toggler container */
.scroll-container {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Base Panel style */
.panel {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  display: none !important; /* Hide panels by default for tab swapping */
}

/* Display panel when toggled active */
.panel.active-panel {
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}

/* DRAFT HIDDEN: Hides the Hero panel visual layout but preserves code */
.draft-hidden {
  display: none !important;
}

/* PANEL 1: SPLIT HERO SECTION */
.split-layout {
  display: flex;
  height: 100%;
  width: 100%;
}

.left-panel {
  width: 50%;
  background-color: var(--bg-cream);
  padding: 3rem 4rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.panel-header {
  display: flex;
  align-items: center;
}

/* Logo with Dynamic Inversion */
.logo {
  text-decoration: none;
  transition: transform 0.3s ease;
  display: inline-block;
  mix-blend-mode: difference; /* Inverts color relative to behind backgrounds */
}

.logo img {
  display: block;
}

.logo:hover {
  transform: rotate(5deg) scale(1.05);
}

.hero-text-container {
  max-width: 520px;
  margin-top: -2rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.hero-title .thin {
  font-weight: 300;
  opacity: 0.75;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted-dark);
  font-weight: 300;
}

/* Side Navigation Links */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nav-item {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
  width: fit-content;
  padding: 0.2rem 0;
  position: relative;
}

.nav-item:hover {
  color: var(--text-dark);
  transform: translateX(8px);
}

.nav-item.active {
  color: var(--text-dark);
  font-weight: 600;
}

/* Right Panel (Hero Image) */
.right-panel {
  width: 50%;
  position: relative;
  height: 100%;
}

.hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 12s ease;
}

.right-panel:hover .hero-main-img {
  transform: scale(1.04);
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}

.panel-header-right {
  position: absolute;
  top: 3rem;
  right: 4rem;
  z-index: 5;
}

.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  z-index: 10;
}

.hamburger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-smooth);
}

.right-panel .hamburger-menu span {
  background-color: white;
}

.hamburger-menu:hover span:first-child {
  transform: translateY(-2px);
}
.hamburger-menu:hover span:last-child {
  transform: translateY(2px);
}

/* Hidden Gems Card overlay */
.hidden-gems-card {
  position: absolute;
  bottom: 4rem;
  right: 4rem;
  width: 420px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  z-index: 5;
  transition: var(--transition-bounce);
  overflow: hidden;
}

.hidden-gems-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.card-inner {
  display: flex;
  padding: 1.5rem;
  gap: 1.25rem;
  align-items: center;
}

.card-img-container {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.hidden-gems-card:hover .card-thumbnail {
  transform: scale(1.08);
}

.card-content {
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.card-content p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted-dark);
  margin-bottom: 0.85rem;
}

.explore-btn {
  background-color: var(--text-dark);
  color: white;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  width: fit-content;
  transition: var(--transition-smooth);
}

.explore-btn:hover {
  background-color: #333;
  transform: scale(1.03);
}

/* Pagination Dots */
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 4rem;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: white;
  transform: scale(1.3);
}


/* PANEL 2: TOUR LISTINGS & PLANNING WORKSPACE */
.tours-layout {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  overflow-y: auto;
  padding: 3rem 4rem 8rem 4rem;
  background-color: var(--bg-cream);
  box-sizing: border-box;
}

.tours-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.tours-trip-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  white-space: nowrap;
  pointer-events: none;
}

/* Explicitly style the tours hamburger menu and its children to guarantee visibility */
#tours-hamburger-menu {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  background: transparent !important;
  border: none !important;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#tours-hamburger-menu span {
  display: block !important;
  width: 24px !important;
  height: 2px !important;
  background-color: var(--text-dark) !important;
  transition: var(--transition-smooth);
}

.search-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  width: 100%;
}

.interactive-search-field {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(18, 20, 23, 0.15);
  padding: 0.2rem 1rem 0.5rem 1rem;
  text-align: center;
  position: relative;
  letter-spacing: -0.01em;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interactive-search-field .planning-form {
  flex: 1;
  display: flex;
}

/* Header dynamic text input box styling */
.interactive-search-field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-dark);
  padding: 0;
  text-align: left;
  letter-spacing: -0.01em;
  box-shadow: none !important;
}

.interactive-search-field input::placeholder {
  color: var(--text-dark);
  opacity: 0.85;
}

.interactive-search-field input:focus {
  box-shadow: none !important;
  border-color: transparent !important;
}

.cursor {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 300;
  margin-right: 0.5rem;
  animation: blink 1s step-end infinite;
  color: var(--text-dark);
  line-height: 1;
}

@keyframes blink {
  from, to { color: transparent }
  50% { color: var(--text-dark); }
}

/* PLANNER WORKSPACE FORM & SAVE STATE LISTS */
.planner-workspace-wrapper {
  display: flex;
  flex-direction: column;
  width: 85%;
  max-width: 960px;
  margin: 4rem auto 6rem auto;
  gap: 1.5rem;
  text-align: left;
}

/* Masonry card grid */
.plan-items-container {
  width: 100%;
  columns: 4;
  column-gap: 0.85rem;
  padding: 0.25rem 0 1rem 0;
}

/* Base card */
.plan-card {
  break-inside: avoid;
  display: block;
  margin-bottom: 0.85rem;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(18,20,23,0.07);
  cursor: default;
  transition: box-shadow 0.25s ease, transform 0.25s ease, outline 0.3s ease;
}

.plan-card:hover {
  box-shadow: 0 8px 28px rgba(18,20,23,0.12);
}

/* Photo card — image fills top */
.plan-card-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.plan-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Link card — no image, gradient header */
.plan-card-link-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(18,20,23,0.06) 0%, rgba(18,20,23,0.02) 100%);
  border-bottom: 1px solid rgba(18,20,23,0.06);
  min-height: 64px;
}

.plan-card-domain {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(18,20,23,0.35);
  
  /* Prevents long domains from overflowing and pushing delete buttons off the card */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.5rem;
}

/* Text card body */
.plan-card-text-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 80px;
}

.plan-card-text-content {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
}

/* Shared card body (below image / link header) */
.plan-card-body {
  padding: 0.75rem 1rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.plan-card-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.plan-card-url {
  font-size: 0.68rem;
  color: rgba(18,20,23,0.35);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.plan-card-url:hover { color: var(--text-dark); }

/* Delete button — top-right corner on all cards */
.plan-card-delete {
  position: relative;
  z-index: 5; /* Ensures element stays on top of rendering layers */
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(18,20,23,0.5);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

/* Positioned inside img-wrap */
.plan-card-img-wrap .plan-card-delete {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 10; /* Extra depth to prevent overlaps on dynamic image loads */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.plan-card-delete:hover {
  background: rgba(239,68,68,0.9);
  color: white;
}

/* Text card delete sits at bottom right */
.plan-card--text .plan-card-delete {
  align-self: flex-end;
}

/* Loading skeleton */
.plan-card--loading {
  pointer-events: none;
  opacity: 0.7;
}

.plan-card-img-skeleton {
  width: 100%;
  height: 150px;
  background: rgba(18,20,23,0.07);
  animation: card-shimmer 1.4s ease-in-out infinite;
}

.plan-card-skeleton-line {
  height: 10px;
  border-radius: 5px;
  background: rgba(18,20,23,0.07);
  animation: card-shimmer 1.4s ease-in-out infinite;
  margin-bottom: 0.5rem;
}

.plan-card-skeleton-line.short { width: 55%; }

@keyframes card-shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.plan-empty-state {
  text-align: left;
  color: var(--text-muted-dark);
  font-size: 0.85rem;
  padding: 1rem 0;
  opacity: 0.5;
  letter-spacing: 0.02em;
  
  /* Forces the empty state to span the entire workspace width instead of squishing */
  column-span: all;
  -webkit-column-span: all;
}

.tours-footer {
  position: absolute;
  bottom: 3rem;
  left: 4rem;
  z-index: 100;
}

.tours-footer .side-nav {
  flex-direction: row;
  gap: 2.5rem;
}


/* PANEL 3: DARK DASHBOARD MENU */
.panel.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.dashboard-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 4rem;
  position: relative;
}

.dashboard-header {
  position: absolute;
  top: 3rem;
  left: 4rem;
}

/* Vertical Center Menu */
.center-menu-container {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 5;
}

.vertical-dashboard-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.menu-link {
  font-family: var(--font-title);
  font-size: 2.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: block;
}

/* Menu Row with "+" button */
.menu-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
  position: relative;
}

.add-trip-badge-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  line-height: 1;
  transition: var(--transition-smooth);
}

.add-trip-badge-btn:hover {
  background-color: white;
  color: var(--bg-dark);
  border-color: white;
  transform: rotate(90deg) scale(1.08);
}

/* Saved Header Row styling */
.saved-header-row {
  margin-bottom: 0.5rem;
}

.saved-header-row .static-menu-label {
  cursor: default !important;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Main trips links container - replaced old dropdown list styling */
.dashboard-trips-main-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  margin-top: 1rem;
}

.dashboard-trips-main-links .menu-link {
  font-family: var(--font-title);
  font-size: 2.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: block;
  cursor: pointer;
  text-align: center;
  max-width: 95%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* Symmetrical padding and default transparent border to prevent layout jumps on hover */
  padding: 0.45rem 2.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

/* Hovering over any trip link turns it into a solid white filled pill */
.dashboard-trips-main-links .menu-link:hover {
  background-color: white;
  border-color: white;
  color: var(--bg-dark);
  transform: scale(1.03);
}

/* Selected active trip styled as a premium white pill link */
.dashboard-trips-main-links .menu-link.active-trip {
  background-color: white;
  border-color: white;
  color: var(--bg-dark);
  font-weight: 600;
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

.dashboard-trips-main-links .menu-link.active-trip:hover {
  background-color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  color: var(--bg-dark);
  transform: scale(1.03) translateY(-1px);
}

/* Count/Badge menu item */
.menu-link.count {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.badge {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  line-height: 1.2;
}

/* Flanking Side Panels */
.flank-container {
  width: 30%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-flank {
  justify-content: flex-start;
}

.right-flank {
  justify-content: flex-end;
}

.flank-card-wrapper {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  position: relative;
  min-height: 240px;
}

.flank-card {
  width: 150px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.flank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.flank-card:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 25px 50px rgba(255, 255, 255, 0.15);
}

.flank-card:hover img {
  transform: scale(1.05);
}

/* Offset positioning to look organic */
.flank-card.second {
  margin-top: 3.5rem;
}

.flank-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(5px);
  transition: var(--transition-smooth);
}

.flank-card:hover .flank-label {
  opacity: 1;
  transform: translateY(0);
}

/* Slow continuous floating animation */
.anim-float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

.anim-float-reverse {
  animation: floatReverse 7.5s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(14px) rotate(1deg); }
}


/* Symmetrical Dashboard Footer */
.dashboard-footer {
  position: absolute;
  bottom: 3rem;
  left: 4rem;
  z-index: 100;
}

.dashboard-footer .side-nav {
  flex-direction: row;
  gap: 2.5rem;
}

.dashboard-footer .nav-item {
  color: rgba(255, 255, 255, 0.45);
}

.dashboard-footer .nav-item:hover {
  color: white;
}

.dashboard-footer .nav-item.active {
  color: white;
  font-weight: 600;
}


/* SIDE DRAWER (Add Collection / Manage Collection) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 6, 8, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  visibility: hidden; /* Added to physically remove the closed layer from hit-testing */
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
  visibility: visible; /* Restore visibility on activation */
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  max-width: 90vw;
  background-color: var(--bg-dark);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-overlay.show .drawer-panel {
  transform: translateX(0);
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 4rem 3.5rem;
  height: 100%;
  position: relative;
}

.drawer-close-btn {
  position: absolute;
  top: 3rem;
  right: 3rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  padding: 0;
}

.drawer-close-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.drawer-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1.25rem;
}

.drawer-title {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 300;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 3rem;
}

.drawer-subtitle {
  display: none; /* Kept minimal — no subtitle needed to match spare aesthetic */
}

/* Flat bottom-border input matching the planning workspace header input */
.drawer-form input[type="text"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  padding: 0.5rem 0 0.75rem 0;
  color: white;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.drawer-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.drawer-form input[type="text"]:focus {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.drawer-btn-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Plain text cancel link */
.drawer-cancel-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.drawer-cancel-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Simple white text submit — no pill, no box */
.drawer-submit-btn {
  background: none;
  border: none;
  color: white;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
  letter-spacing: -0.01em;
}

.drawer-submit-btn:hover {
  opacity: 0.65;
}

/* Danger zone — pinned to bottom, just plain text */
.drawer-danger-zone {
  margin-top: auto;
  padding-top: 2rem;
}

.drawer-danger-label {
  display: none;
}

.drawer-delete-btn {
  background: none;
  border: none;
  color: rgba(239, 68, 68, 0.5);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  width: auto;
}

.drawer-delete-btn:hover {
  color: #ef4444;
}

/* PREMIUM ACCOUNT PANE SPECIFIC STYLING */
.account-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 3rem 4rem 8rem 4rem;
  background-color: var(--bg-cream);
  box-sizing: border-box;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
}

.profile-hero-section {
  text-align: left;
  margin-bottom: 4rem;
}

.profile-greeting-heading {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.profile-name-textbox {
  display: inline-block;
  font-weight: 700;
  border-bottom: 2px dashed rgba(18, 20, 23, 0.25);
  outline: none;
  padding-bottom: 0.1rem;
  transition: border-color 0.2s ease;
}

.profile-name-textbox:focus {
  border-bottom-style: solid;
  border-bottom-color: var(--text-dark);
}

.profile-greeting-subtext {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted-dark);
  opacity: 0.65;
  letter-spacing: 0.01em;
}

/* Columns Details Layout */
.account-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 5rem;
}

.account-column-card {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(18, 20, 23, 0.05);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.card-pill-badge {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background-color: var(--text-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.account-card-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}

.account-card-title.font-margin {
  margin-top: 0.5rem; /* Balance vertical offset of standard badge heights */
}

.account-card-description {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted-dark);
  margin-bottom: 2rem;
}

/* Usage Progress tracker elements */
.plan-usage-progress-container {
  width: 100%;
  margin-bottom: 2rem;
}

.plan-usage-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.plan-usage-label-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(18, 20, 23, 0.45);
}

.plan-usage-bar-rail {
  width: 100%;
  height: 6px;
  background-color: rgba(18, 20, 23, 0.07);
  border-radius: 100px;
  overflow: hidden;
}

.plan-usage-bar-fill {
  height: 100%;
  background-color: var(--text-dark);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-upgrade-teaser-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted-dark);
  opacity: 0.6;
}

/* Feedback send email button link pill */
.profile-action-feedback-btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  background-color: var(--text-dark);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: 1px solid var(--text-dark);
  transition: var(--transition-smooth);
}

.profile-action-feedback-btn:hover {
  background-color: transparent;
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* Danger Zone row block styling */
.profile-danger-zone-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: auto;
  padding-bottom: 6rem;
}

.danger-zone-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(18, 20, 23, 0.08);
  margin-bottom: 2rem;
}

.danger-zone-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.danger-zone-text-block {
  text-align: left;
}

.danger-zone-heading {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.danger-zone-subtext {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

.profile-delete-account-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(239, 68, 68, 0.6);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.profile-delete-account-btn:hover {
  color: #ef4444;
  transform: translateY(-1px);
}

.account-footer {
  position: absolute;
  bottom: 3rem;
  left: 4rem;
  z-index: 100;
}

.account-footer .side-nav {
  flex-direction: row;
  gap: 2.5rem;
}

/* Text Reveal Transitions on Panel Scroll */
.animate-text {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-text-delayed {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* AUTHENTICATION VIEWS STYLING */
.auth-hero-section {
  text-align: left;
  margin-bottom: 3.5rem;
}

.auth-title {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
  line-height: 1.1;
}

.auth-subtitle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  opacity: 0.65;
  letter-spacing: 0.01em;
  max-width: 480px;
}

.auth-card-container {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.auth-form-card {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(18, 20, 23, 0.05);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 460px;
  text-align: left;
}

.auth-card-heading {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-input-group label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(18, 20, 23, 0.45);
}

.auth-input-group input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(18, 20, 23, 0.12);
  padding: 0.45rem 0;
  outline: none;
  transition: border-bottom-color 0.2s ease;
}

.auth-input-group input:focus {
  border-bottom-color: var(--text-dark);
}

.auth-input-group input::placeholder {
  color: rgba(18, 20, 23, 0.25);
}

.auth-submit-btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  background-color: var(--text-dark);
  border: 1px solid var(--text-dark);
  padding: 0.9rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  background-color: transparent;
  color: var(--text-dark);
}

.auth-switch-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted-dark);
  margin-top: 1.5rem;
  text-align: center;
}

.auth-switch-text a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
}

.auth-switch-text a:hover {
  opacity: 0.75;
}

.auth-error-msg {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  line-height: 1.4;
}

.profile-logout-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(18, 20, 23, 0.55);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.profile-logout-btn:hover {
  color: #ef4444;
}

/* PREMIUM SPLIT ACCORDION FAQ VIEW STYLING */
.faq-split-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-cream);
  overflow: hidden;
}

/* Left Column: Fixed content and footer nav */
.faq-left-col {
  width: 45%;
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border-right: 1px solid rgba(18, 20, 23, 0.05);
  box-sizing: border-box;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
}

.faq-hero-content {
  margin-top: 0;
}

.faq-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.faq-badge-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark);
}

.faq-hero-title {
  font-family: var(--font-title);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.faq-hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted-dark);
  opacity: 0.7;
  max-width: 380px;
}

/* Right Column: Scrollable cards accordion list */
.faq-right-col {
  width: 55%;
  padding: 6rem 5rem 6rem 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.faq-card {
  background-color: white;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015), 0 2px 6px rgba(0, 0, 0, 0.005);
  border: 1px solid rgba(18, 20, 23, 0.04);
  transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-card:hover {
  box-shadow: 0 6px 24px rgba(18, 20, 23, 0.04);
}

.faq-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.faq-card-question {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
  text-align: left;
}

/* Circular toggle button */
.faq-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--text-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.faq-toggle-icon {
  position: relative;
  width: 12px;
  height: 12px;
}

/* Plus pseudo elements icon */
.faq-toggle-icon::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 12px;
  height: 2px;
  background-color: white;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-toggle-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 5px;
  width: 2px;
  height: 12px;
  background-color: white;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Transform plus to minus */
.faq-card.expanded .faq-toggle-icon::after {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}

.faq-card.expanded .faq-toggle-icon::before {
  transform: rotate(180deg);
}

/* Collapsible description body */
.faq-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  text-align: left;
}

.faq-card.expanded .faq-card-body {
  max-height: 250px;
  opacity: 0.95;
  padding-top: 1rem;
}

.faq-card-answer {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted-dark);
  margin: 0;
}

/* Cohesive navigation footer */
.faq-footer {
  display: flex;
  justify-content: flex-start;
}

.faq-footer .side-nav {
  flex-direction: row;
  gap: 2.5rem;
}