/* 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;
  border-radius: 0px !important;
}

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;
  position: relative;
  z-index: 20;
}

.logo img {
  display: block;
  transition: filter 0.3s ease;
}

/* Force logo to be dark on all light views to bypass scroll stacking compositing bugs */
.panel:not(.dark-theme) .logo img {
  filter: invert(1) brightness(0.1);
}

.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 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 85% !important;
  max-width: 960px !important;
  margin: 1.5rem auto 0 auto !important;
}

.interactive-search-field {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-dark);
  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;
  flex-direction: column;
  align-items: stretch;
}

/* 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;
}



/* 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;
}

@media (max-width: 900px) {
  .plan-items-container {
    columns: 3;
  }
}

@media (max-width: 600px) {
  .plan-items-container {
    columns: 2;
  }
}

@media (max-width: 400px) {
  .plan-items-container {
    columns: 2;
  }
}

/* Interactive Search Field Custom Padding for Paperclip */
.interactive-search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.planning-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.planning-input-row {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid rgba(18, 20, 23, 0.15);
  padding-bottom: 0.5rem;
}

/* Subjects / Categories Bar Styles */
.subjects-bar-container {
  width: 100%;
  max-width: 900px;
  margin: 0.75rem 0 1.5rem 0;
  padding: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.subjects-bar-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.subjects-chips-list {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap !important;
}

.subject-chip-delete {
  display: none;
  margin-left: 6px;
  font-size: 1.1rem;
  line-height: 1;
  color: #9a9a9a;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  transition: all 0.2s ease;
}

.subject-chip.active-subject .subject-chip-delete {
  display: inline-flex;
}

.subject-chip-delete:hover {
  color: #f87171;
  transform: scale(1.2);
}

.subject-chip {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: #9a9a9a;
  background: #1a1b1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 0px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  user-select: none;
}

.subject-chip:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.subject-chip.active-subject {
  color: #ffffff;
  background: #2d2e32;
  border-color: #ffffff;
}

.subject-chip-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--circle-color);
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}

.subject-chip-input {
  font-family: var(--font-sans);
  font-size: 0.8rem !important;
  font-weight: 500;
  color: #ffffff !important;
  background: #1a1b1e !important;
  border: 1px dashed rgba(255, 255, 255, 0.3) !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 0px !important;
  outline: none !important;
  width: 120px;
  transition: all 0.2s ease;
}

.subject-chip-input::placeholder {
  color: #9a9a9a;
  opacity: 0.5;
}

.subject-chip-input:focus {
  border-style: solid !important;
  border-color: #ffffff !important;
  width: 140px;
}

/* Card Subject Tag Styles */
.plan-card-tag-wrapper {
  padding: 0;
  margin-top: 0.6rem;
  display: flex;
  justify-content: flex-start;
}

.plan-card-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: #9a9a9a;
  background: rgba(18, 20, 23, 0.05);
  border: 1px solid rgba(18, 20, 23, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 0px !important;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.interactive-search-field input[type="text"] {
  padding-right: 4rem !important; /* Ensure input text doesn't flow underneath the paperclip button */
}

/* Upload Paperclip Button in Main Search Bar */
.main-upload-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(18, 20, 23, 0.4);
  transition: all 0.25s ease;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
}

.main-upload-btn:hover {
  color: var(--text-dark);
  background-color: rgba(18, 20, 23, 0.05);
}

.paperclip-icon {
  width: 1.2rem;
  height: 1.2rem;
}

/* Elegant File Cards in Masonry Grid */
.plan-card--file {
  background-color: white !important;
  border-color: rgba(18, 20, 23, 0.08) !important;
  padding: 0;
}

.file-card-preview-container {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  background-color: rgba(18, 20, 23, 0.02);
  border-bottom: 1px solid rgba(18, 20, 23, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.file-card-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.file-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.file-card-icon-wrapper {
  width: 2.2rem;
  height: 2.2rem;
  background-color: rgba(18, 20, 23, 0.04);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  flex-shrink: 0;
}

.file-card-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.file-card-name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.15rem 0;
  word-wrap: break-word;
}

.file-card-meta {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-muted-dark);
  opacity: 0.65;
  margin: 0;
}

.file-card-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid rgba(18, 20, 23, 0.05);
  padding-top: 0.85rem;
}

.file-card-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dark);
  background-color: rgba(18, 20, 23, 0.04);
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.file-card-download:hover {
  background-color: rgba(18, 20, 23, 0.08);
}

.file-card-download svg {
  width: 0.95rem;
  height: 0.95rem;
}

.file-card-delete-btn {
  background: none;
  border: none;
  padding: 0.45rem;
  cursor: pointer;
  color: rgba(18, 20, 23, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: auto;
}

.file-card-delete-btn:hover {
  color: rgb(239, 68, 68);
  background-color: rgba(239, 68, 68, 0.08);
}

.file-card-delete-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* 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: pointer;
  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;
  z-index: 25;
}

/* 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"],
.drawer-form input[type="email"] {
  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,
.drawer-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.drawer-form input[type="text"]:focus,
.drawer-form input[type="email"]: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: flex-start;
  align-items: center;
  margin-bottom: 3rem;
  z-index: 25;
}

.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;
}

@media (max-width: 768px) {
  #account-auth-view footer.account-footer {
    position: static !important;
    width: 100% !important;
    margin-top: 2rem !important;
    padding-top: 0 !important;
  }
}

/* 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 */
#account-auth-view {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 1rem;
  flex-grow: 1;
  justify-content: center;
}
.auth-card-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
.auth-hero-section {
  text-align: left;
  margin-bottom: 0;
}

.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;
}

@media (min-width: 768px) {
  #account-auth-view {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    margin-top: 0;
  }
  
  .auth-card-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: flex-end;
    width: 100%;
  }
}

.auth-card-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  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-select {
  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 1.5rem 0.45rem 0;
  outline: none;
  transition: border-bottom-color 0.2s ease;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba%2818%2C%2020%2C%2023%2C%200.45%29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 1rem;
}

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

.auth-card-subheading {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(18, 20, 23, 0.55);
  margin-bottom: 1rem;
}

/* Dark drawer overrides for auth components */
.drawer-panel .auth-input-group label {
  color: rgba(255, 255, 255, 0.4);
}

.drawer-panel .auth-input-group input {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.drawer-panel .auth-input-group input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.drawer-panel .auth-select {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.15);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba%28255%2C%20255%2C%20255%2C%200.4%29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.drawer-panel .auth-select:focus {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.drawer-panel .auth-select option {
  background-color: var(--bg-dark);
  color: white;
}

.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 {
  position: absolute;
  bottom: 3rem;
  left: 4rem;
  z-index: 100;
}

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

/* TRIP SHARING DRAWER & WORKSPACE BUTTON STYLING */
.workspace-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 15;
}

.workspace-share-btn {
  background: none;
  border: 1px solid rgba(18, 20, 23, 0.15);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.workspace-share-btn:hover {
  background-color: rgba(18, 20, 23, 0.05);
  border-color: var(--text-dark);
}

.share-icon {
  width: 13px;
  height: 13px;
}

.drawer-collaborators-section {
  margin-top: 2rem;
  text-align: left;
}

.share-travelers-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.share-traveler-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(18, 20, 23, 0.05);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.share-traveler-item:last-child {
  border-bottom: none;
}

.share-traveler-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.share-traveler-name {
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.share-traveler-email {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  opacity: 0.6;
}

.share-traveler-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background-color: rgba(18, 20, 23, 0.05);
  color: var(--text-dark);
  margin-left: 0.5rem;
  display: inline-block;
  line-height: 1.2;
}

.share-traveler-badge.owner {
  background-color: var(--text-dark);
  color: var(--bg-cream);
}

.share-traveler-action-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(18, 20, 23, 0.4);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s ease;
}

.share-traveler-action-btn:hover {
  color: #ef4444;
}

/* Guest Sign In Reminders */
.dashboard-guest-reminder,
.workspace-guest-reminder {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2rem;
  text-align: center;
}

/* Light theme override for tours workspace guest reminder */
.panel:not(.dark-theme) .workspace-guest-reminder {
  color: rgba(18, 20, 23, 0.5);
}

.reminder-link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s ease;
}

.reminder-link:hover {
  color: white;
}

.panel:not(.dark-theme) .reminder-link:hover {
  color: var(--text-dark);
}

/* Locked Collections & Tooltips */
.menu-link--locked {
  position: relative;
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

.menu-link--locked span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-link--locked .lock-icon {
  font-size: 0.85rem;
  filter: grayscale(1) brightness(1.2);
}

.menu-link--locked .tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: var(--text-dark);
  color: var(--bg-cream);
  text-align: center;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 400;
  position: absolute;
  z-index: 100;
  bottom: 120%; /* Position above the link */
  left: 10%;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-shadow: 0 4px 12px rgba(18, 20, 23, 0.2);
  pointer-events: none;
}

.menu-link--locked:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* IMMERSIVE CARD PREVIEW MODAL STYLING */
.card-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 11, 13, 0.55) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
}

.card-preview-modal {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 85vh;
  max-height: 640px;
  background: rgba(24, 26, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  color: #f1f2f4;
}

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

@media (min-width: 768px) {
  .card-preview-modal {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    height: 80vh;
    max-height: 600px;
  }
}

/* Close Button */
.preview-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.preview-modal-close:hover {
  color: white;
  transform: scale(1.1);
}

.preview-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

/* Left Column: Visual Media Preview */
.preview-media-column {
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100%;
  position: relative;
  min-height: 250px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .preview-media-column {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

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

/* Rich Preview for PDF / File Icons */
.preview-file-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem;
  text-align: center;
}

.preview-file-icon-wrap {
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.preview-file-icon-wrap svg {
  width: 2.5rem;
  height: 2.5rem;
}

.preview-file-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  max-width: 300px;
  word-wrap: break-word;
}

/* Right Column: Information Sidebar */
.preview-meta-column {
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2rem;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

.preview-header {
  margin-bottom: 1.5rem;
  padding-right: 2rem; /* Avoid close button overlap */
}

.preview-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
  line-height: 1.15;
  word-wrap: break-word;
  letter-spacing: -0.02em;
  outline: none;
  cursor: text;
  transition: background 0.15s ease;
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  margin-left: -0.35rem;
}

.preview-title:hover {
  background: rgba(255, 255, 255, 0.05);
}

.preview-title:focus {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.preview-date {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Action button row */
.preview-action-row {
  margin-bottom: 1.75rem;
}

.preview-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: #f1f2f4;
  color: #121417;
  border: none;
  border-radius: 4px;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.preview-action-btn:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.preview-action-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Form sections label */
.preview-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.preview-section.flex-grow-section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.preview-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

/* Tags styles */
.preview-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 0.6rem 0.85rem;
}

.preview-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  line-height: 1.2;
}

.tag-pill-remove {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.tag-pill-remove:hover {
  color: #ef4444;
}

.tag-input-container {
  flex-grow: 1;
  min-width: 80px;
}

#preview-tag-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 0.15rem 0;
}

#preview-tag-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* Notes Textarea styling */
#preview-notes-input {
  width: 100%;
  flex-grow: 1;
  min-height: 100px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.45;
  color: white;
  outline: none;
  resize: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

#preview-notes-input:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Sync indicator */
.notes-status-indicator {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  transition: color 0.2s ease;
}

/* Bottom Options Bar */
.preview-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
  margin-top: 0.75rem;
}

.bottom-bar-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  padding: 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.bottom-bar-action:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.bottom-bar-action.delete-card-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  padding: 0.4rem;
}

.bottom-bar-action.delete-card-btn:hover {
  color: #ef4444;
  background: transparent;
  transform: scale(1.1);
}

.bottom-bar-action svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ==========================================================================
   Mobile-First & Responsive Overrides
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .scroll-container {
    height: auto !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .panel {
    display: none !important;
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  .panel.active-panel {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Dashboard layout stacking */
  .dashboard-layout {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 5.5rem 1.5rem 6rem 1.5rem !important;
    gap: 2rem !important;
    overflow: visible !important;
    position: relative !important;
  }

  .center-menu-container {
    order: 1 !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .left-flank {
    order: 0 !important;
  }

  .right-flank {
    order: 2 !important;
  }

  .dashboard-footer {
    order: 3 !important;
  }

  .dashboard-header {
    position: absolute !important;
    top: 2rem !important;
    left: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    z-index: 100 !important;
  }

  .dashboard-layout .left-flank,
  .dashboard-layout .right-flank {
    display: flex !important;
  }

  .menu-link {
    font-size: 1.8rem !important;
  }

  /* Mobile front-screen layout adjustments */
  .split-layout {
    flex-direction: column !important;
  }

  .left-panel {
    width: 100% !important;
    padding: 2rem 1.5rem 1.5rem 1.5rem !important;
  }

  .panel-header {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  /* Right panel stacks below center links */
  .right-panel {
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
  }

  /* Stops Workspace Responsiveness */
  .tours-layout {
    display: flex !important;
    flex-direction: column !important;
    padding: 5.5rem 1.5rem 6rem 1.5rem !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    position: relative !important;
  }

  .tours-header {
    position: absolute !important;
    top: 2rem !important;
    left: 1.5rem !important;
    right: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 100 !important;
  }

  .tours-trip-name {
    position: static !important;
    transform: none !important;
    font-size: 0.9rem !important;
    max-width: 140px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-align: left !important;
    margin-left: 0.75rem !important;
    margin-right: auto !important; /* Pushes hamburger/share buttons to the far right */
    order: 1 !important;
  }

  .tours-header .logo {
    order: 0 !important;
  }

  .workspace-header-actions {
    order: 2 !important;
  }

  .workspace-container {
    width: 100% !important;
    margin: 0.5rem auto 3rem auto !important;
    padding: 0 !important;
  }

  /* Immersive Card Preview Modal Overrides */
  .card-preview-modal {
    height: 90vh !important;
    max-height: none !important;
  }

  .preview-modal-close {
    top: 0.5rem !important;
    right: 0.75rem !important;
    font-size: 2.2rem !important;
    padding: 0.25rem !important;
  }

  .preview-media-column {
    min-height: 200px !important;
  }

  .preview-meta-column {
    padding: 1.5rem 1.25rem !important;
  }

  .preview-title {
    font-size: 1.6rem !important;
  }

  /* Mobile Dashboard Flank Overrides */
  .flank-container {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    justify-content: center !important;
    margin: 1rem 0 !important;
  }

  .left-flank,
  .right-flank {
    display: flex !important;
  }

  .flank-card-wrapper {
    min-height: auto !important;
    justify-content: center !important;
    gap: 1rem !important;
  }

  .flank-card {
    width: 120px !important;
    height: 160px !important;
  }

  .tours-footer,
  .dashboard-footer,
  .faq-footer,
  .account-footer {
    position: static !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: auto !important;
    padding-top: 3.5rem !important;
    margin-bottom: 2rem !important;
    padding-bottom: 0 !important;
  }

  .tours-footer .side-nav,
  .dashboard-footer .side-nav,
  .faq-footer .side-nav,
  .account-footer .side-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  /* Mobile FAQ Layout Overrides */
  .faq-split-layout {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  .faq-left-col {
    width: 100% !important;
    height: auto !important;
    padding: 5.5rem 1.5rem 2rem 1.5rem !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(18, 20, 23, 0.05) !important;
    position: relative !important;
  }

  .faq-hero-title {
    font-size: 2.2rem !important;
  }

  .faq-right-col {
    width: 100% !important;
    height: auto !important;
    padding: 2rem 1.5rem 6rem 1.5rem !important;
  }

  .faq-header {
    position: absolute !important;
    top: 2rem !important;
    left: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 100 !important;
  }



  /* Mobile Account Layout Overrides */
  .account-layout {
    display: flex !important;
    flex-direction: column !important;
    padding: 5.5rem 1.5rem 6rem 1.5rem !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    position: relative !important;
  }

  .account-header {
    position: absolute !important;
    top: 2rem !important;
    left: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 100 !important;
  }

  .profile-greeting-heading {
    font-size: 2.2rem !important;
  }

  .profile-hero-section {
    margin-bottom: 2rem !important;
  }

  .account-details-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
  }

  .account-column-card {
    padding: 1.75rem !important;
  }

  .danger-zone-flex-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .profile-logout-btn, 
  .profile-delete-account-btn {
    width: 100% !important;
    text-align: center !important;
  }
}

.preview-pdf-viewer {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  display: block;
}

.file-card-pdf-preview-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.file-card-pdf-preview {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none; /* Let pointer events bubble up to the plan card element */
  background: #ffffff;
  display: block;
}

/* Premium iOS Add-to-Home Onboarding Banner styling */
.add-to-home {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 120%);
  z-index: 10000;
  width: 92%;
  max-width: 420px;
  box-sizing: border-box;
  animation: slideUpBanner 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpBanner {
  0% {
    transform: translate(-50%, 120%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.add-to-home .banner {
  background: #121417;
  color: #f4f3ef;
  border: 1px solid rgba(244, 243, 239, 0.15);
  padding: 1.15rem 2rem 1.15rem 1.25rem;
  position: relative;
  border-radius: 0px !important; /* Standard hard corners */
}

.add-to-home .banner.shadow {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.add-to-home .close-button {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  color: rgba(244, 243, 239, 0.5);
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
  transition: color 0.15s ease;
  border-radius: 0px !important;
}

.add-to-home .close-button:hover {
  color: #ef4444;
}

.add-to-home .text {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  color: rgba(244, 243, 239, 0.95);
}

.add-to-home .ios-share-svg-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: -3px 0.25rem 0 0.25rem;
  color: #3b82f6; /* Premium iOS icon blue highlight */
}

/* Premium Mobile PDF viewer styling rules */
.mobile-pdf-preview-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #121417;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.mobile-pdf-preview-img {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  object-fit: contain;
  opacity: 0.65;
  display: block;
}

.mobile-pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(18, 20, 23, 0.45);
}

.mobile-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ef4444;
  color: #ffffff;
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
  border-radius: 0px !important; /* Premium hard corners */
}

.mobile-pdf-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

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

/* Inverting close (x) buttons relative to background */
.preview-modal-close,
.drawer-close-btn,
.add-to-home .close-button {
  color: #ffffff !important;
  mix-blend-mode: difference !important;
  opacity: 0.85 !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.preview-modal-close:hover,
.drawer-close-btn:hover,
.add-to-home .close-button:hover {
  opacity: 1 !important;
  color: #ffffff !important;
}