@charset "UTF-8";
.page-hero {
  position: relative;
  text-align: center;
  padding: 64px 20px;
  color: white;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--brand-dark);
  z-index: 0;
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.page-hero-content p {
  font-size: var(--font-lg);
  opacity: 0.75;
  max-width: 450px;
  margin: 0 auto;
}
.page-hero-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.page-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
@media (max-width: 768px) {
  .page-hero {
    padding: 40px 16px;
  }
  .page-hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }
  .page-hero-content p {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .page-hero {
    padding: 32px 12px;
  }
  .page-hero-content h1 {
    font-size: 1.3rem;
  }
}

.header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 160;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.header-logo:hover {
  opacity: 0.85;
}

.header-logo:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.header-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.header-site-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: var(--font-lg);
}

/* ===== Nav Links ===== */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Base styles for every nav link (anchors and dropdown-toggle buttons) */
.header-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: var(--font-sm);
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

/* Hover: brand tint pill (CTAs and the active link keep their own styles) */
.header-nav .nav-link:not(.nav-cta):not(.nav-link-active):hover {
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

/* Animated underline for top-level links (not CTAs, not dropdown toggles) */
.header-nav > a.nav-link:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.header-nav > a.nav-link:not(.nav-cta):hover::after,
.header-nav > a.nav-link:not(.nav-cta).nav-link-active::after {
  transform: scaleX(1);
}

/* Active page: brand tint + bold */
.nav-link.nav-link-active {
  color: var(--brand-primary);
  font-weight: 600;
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.nav-link-label {
  display: inline-flex;
  align-items: center;
}

/* ===== Nav Online Link ===== */
.nav-link-online {
  position: relative;
}

.nav-online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 2s infinite;
}

.nav-online-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #22c55e;
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

@keyframes pulse-green {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* ===== Login / Register CTA buttons ===== */
.nav-cta {
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
}

.header-nav .nav-cta-login {
  margin-left: 6px;
  color: var(--brand-primary);
  background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--brand-primary) 35%, transparent);
}

.header-nav .nav-cta-login:hover {
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  border-color: var(--brand-primary);
}

.header-nav .nav-cta-register {
  color: #fff;
  background: var(--brand-primary);
  border: 1.5px solid transparent;
  /* Clear gap between the login and register buttons */
  margin-left: 10px;
}

.header-nav .nav-cta-register:hover {
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* ===== Unread Badge ===== */
.nav-conversations {
  position: relative;
}

.unread-badge {
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  animation: badgePopIn 0.3s ease;
}

.unread-badge.has-unread {
  display: inline-block;
}

@keyframes badgePopIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
/* ===== Fav / Admin Badges ===== */
.fav-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e53935;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(229, 57, 53, 0.3);
}

.fav-badge.has-fav {
  display: block;
  animation: pulse-badge 2s infinite;
}

.admin-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e53935;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(229, 57, 53, 0.3);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
/* ===== Header Search ===== */
.header-search {
  display: flex;
  align-items: center;
  margin: 0 1rem;
  flex: 1;
  max-width: 420px;
}

.header-search-form {
  display: flex;
  width: 100%;
}

.header-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.header-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #aab0bc;
  pointer-events: none;
  transition: color 0.2s ease;
}

.header-search:focus-within .header-search-icon {
  color: var(--brand-primary);
}

.header-search-input {
  flex: 1;
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 36px;
  border: 1.5px solid #e2e5ea;
  border-radius: 10px 0 0 10px;
  font-size: 0.95rem;
  background: #f4f5f7;
  transition: var(--transition-normal);
  min-width: 0;
  font-family: "Inter", sans-serif;
}

.header-search-input::placeholder {
  color: #aab0bc;
  font-weight: 400;
}

.header-search-input:focus {
  border-color: var(--brand-primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 15%, transparent);
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: var(--transition-fast);
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.header-search-btn:hover {
  background: var(--brand-secondary);
}

.header-search-btn-icon {
  width: 16px;
  height: 16px;
}

/* ===== Nav Dropdown ===== */
.nav-dropdown {
  position: relative;
}

/* Chevron indicator on dropdown toggles */
.nav-dropdown > .dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover > .dropdown-toggle::after,
.nav-dropdown.open > .dropdown-toggle::after,
.nav-dropdown:focus-within > .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  /* top: 100% (not calc(100% + 8px)) keeps the menu's top edge touching the
     toggle, so there is no hover dead-zone between the button and the menu:
     moving the mouse from the button down into the menu never drops :hover.
     The former 8px gap is absorbed as padding-top inside the menu itself. */
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  /* 8px visual gap + 6px original padding */
  padding: 14px 6px 6px;
  min-width: 210px;
  z-index: 1000;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  text-decoration: none;
  color: #444;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}

.dropdown-menu .nav-link:hover {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  color: var(--brand-primary);
}

.dropdown-menu .nav-link.nav-link-active {
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  color: var(--brand-primary);
  font-weight: 600;
}

.dropdown-menu .nav-link.nav-logout:hover {
  color: #dc2626;
  background: #fef2f2;
}

/* Logout is a CSRF-protected POST form (a GET link would allow logout CSRF).
   The submit button keeps the exact same look as the other menu links. */
.dropdown-menu .nav-logout-form {
  display: block;
}

.dropdown-menu .nav-logout-form .nav-link {
  width: 100%;
  text-align: left;
}

.dropdown-menu .nav-link .nav-link-icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-menu .nav-link .fav-badge {
  display: none;
  position: static;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  line-height: 18px;
  vertical-align: middle;
}

.dropdown-menu .nav-link .fav-badge.has-fav {
  display: inline-flex;
}

.dropdown-menu .nav-link .admin-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  line-height: 18px;
  vertical-align: middle;
  animation: none;
}

.dropdown-menu .nav-link .unread-badge.has-unread {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  line-height: 18px;
  vertical-align: middle;
}

.nav-admin {
  position: relative;
}

/* ===== Profile Switcher ===== */
.dropdown-menu-wide {
  min-width: 260px;
  white-space: normal;
}

.nav-profile-item {
  width: 100%;
}

.nav-profile-item .ps-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-profile-item .ps-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.nav-profile-item .ps-name {
  font-size: var(--font-sm);
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-profile-item .ps-role {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-profile-item .ps-role.provider {
  color: var(--brand-primary);
}

.nav-profile-item .ps-role.seeker {
  color: var(--text-muted);
}

.nav-profile-item .ps-active {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-profile-manage {
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
  padding-top: 10px !important;
  border-radius: 0 !important;
}

/* ===== Hamburger Menu Button ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background 0.2s;
  z-index: 210;
  position: relative;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #666;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span + span {
  margin-top: 5px;
}

/* Hamburger -> X animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile Nav Drawer & Backdrop ===== */
.nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   Responsive: Tablet & Mobile
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .header-container {
    row-gap: var(--gap-md);
  }
  .header-search {
    max-width: 100%;
    margin: 0.5rem 0;
    width: 100%;
    order: 3;
  }
  .header-search-input {
    font-size: 1rem;
    padding: 0.65rem 0.85rem 0.65rem 38px;
  }
  .header-search-btn {
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
  }
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    gap: 4px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header-nav.mobile-open {
    right: 0;
  }
  .header-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: #444;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
  }
  .header-nav .nav-link:not(.nav-cta):not(.nav-link-active):hover {
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    color: var(--brand-primary);
  }
  .header-nav .nav-link:active {
    background: color-mix(in srgb, var(--brand-primary) 14%, transparent);
  }
  .header-nav .nav-link.nav-link-active {
    background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
    color: var(--brand-primary);
    font-weight: 600;
  }
  /* Hide the underline bar and chevron in the drawer */
  .header-nav > a.nav-link::after,
  .nav-dropdown > .dropdown-toggle::after {
    display: none;
  }
  /* CTAs stretch full width in the drawer */
  .header-nav .nav-cta {
    justify-content: center;
    margin: 6px 0 0;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
  }
  .header-nav .nav-cta-login {
    margin-left: 0;
  }
  /* Badges inside mobile nav links */
  .header-nav .nav-link .fav-badge {
    display: none;
    position: static;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    line-height: 22px;
    vertical-align: middle;
  }
  .header-nav .nav-link .fav-badge.has-fav {
    display: inline-flex;
  }
  .header-nav .nav-link .admin-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    line-height: 22px;
    vertical-align: middle;
  }
  .header-nav .nav-link .unread-badge.has-unread {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    line-height: 22px;
    vertical-align: middle;
  }
  /* Flatten dropdowns on mobile */
  .nav-dropdown {
    border-top: 1px solid #f0f0f0;
    margin-top: 6px;
    padding-top: 4px;
  }
  .nav-dropdown > .dropdown-toggle {
    padding: 10px 16px 6px;
    font-size: var(--font-xs);
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    pointer-events: none;
    border-radius: 0;
  }
  .nav-dropdown > .dropdown-menu {
    display: block !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 0 16px !important;
    min-width: auto !important;
    background: transparent !important;
    white-space: normal !important;
    pointer-events: auto !important;
  }
  .dropdown-menu .nav-link {
    padding: 10px 16px;
    font-size: var(--font-base);
  }
}
@media (max-width: 480px) {
  .header-container {
    padding: 10px 12px;
    gap: 4px;
  }
  .header-logo {
    font-size: 1rem;
    gap: 4px;
    max-width: 60%;
  }
  .header-logo img {
    height: 22px;
  }
  .header-site-name {
    max-width: 80px;
    font-size: 1rem;
  }
  .hamburger {
    width: 32px;
    height: 32px;
    padding: 5px;
  }
  .hamburger span {
    width: 18px;
  }
  .hamburger span + span {
    margin-top: 4px;
  }
  /* Hamburger -> X animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .header-search {
    margin: 0.3rem 0;
  }
  .header-search-input {
    padding: 0.5rem 0.75rem 0.5rem 34px;
    font-size: var(--font-base);
  }
  .header-search-btn {
    padding: 0.5rem 0.75rem;
    font-size: var(--font-base);
  }
  .header-nav {
    width: 100vw;
    max-width: 100%;
    right: -100%;
    padding: 60px 12px 20px;
    gap: 2px;
  }
  .header-nav.mobile-open {
    right: 0;
  }
  .header-nav .nav-link {
    padding: 10px 12px;
    font-size: var(--font-base);
  }
}
.verify-banner {
  background: #fff8e1;
  border-bottom: 1px solid #ffe082;
  box-shadow: 0 2px 10px rgba(133, 100, 4, 0.08);
}

.verify-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.verify-banner-msg {
  font-size: var(--font-sm);
  color: #7a5d03;
  line-height: 1.45;
}

.verify-banner-msg a {
  color: #7a5d03;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.verify-banner-msg a:hover {
  text-decoration-thickness: 2px;
}

.verify-banner-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 10px;
  color: #7a5d03;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.verify-banner-close:hover {
  opacity: 1;
  background: rgba(133, 100, 4, 0.1);
}

.verify-banner-close:focus-visible {
  outline: 2px solid #7a5d03;
  outline-offset: 2px;
}

.footer {
  background: var(--gray-900);
  color: #e5e7eb;
  padding: 0;
  flex-shrink: 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: var(--font-base);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  font-size: var(--font-base);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom p {
  margin: 0;
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.footer-trust {
  display: flex;
  gap: var(--gap-lg);
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-xs);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 0 32px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--gap-lg);
    text-align: center;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
/* Shared confirmation / alert dialog — replaces native confirm()/alert().
   Rendered once per page via base.html ({{component "confirm_dialog" .}}). */
.confirm-dialog {
  /* Explicitly center the dialog: the global '* { margin: 0 }' reset in
     app.css overrides the UA stylesheet's margin: auto that normally
     centers a <dialog>, leaving it stuck in the top-left corner. */
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  padding: 0;
  border-radius: 18px;
  max-width: 420px;
  width: calc(100vw - 32px);
  background: var(--card-bg, #fff);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.confirm-dialog::backdrop {
  background: rgba(15, 20, 35, 0.55);
  backdrop-filter: blur(2px);
}

.confirm-dialog[open] {
  animation: confirm-pop 0.24s cubic-bezier(0.18, 0.89, 0.32, 1.18);
}

@keyframes confirm-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .confirm-dialog[open] {
    animation: none;
  }
}
.confirm-dialog-card {
  position: relative;
  padding: 28px 26px 24px;
  text-align: center;
}

.confirm-dialog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f4f6fa;
  border: 1px solid #e2e8f0;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 14px;
}

.confirm-dialog.danger .confirm-dialog-icon {
  background: #fef2f2;
  border-color: #fecaca;
}

.confirm-dialog-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-color, #1a1f2e);
}

.confirm-dialog-message {
  margin: 0 0 20px;
  color: #5a6272;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.confirm-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.confirm-dialog-actions .btn {
  margin: 0;
  min-width: 110px;
  justify-content: center;
}

/* Destructive confirmations get a red confirm button (added via the
   `danger: true` option in confirmDialog/confirmFormSubmit). */
.confirm-dialog.danger .confirm-dialog-confirm {
  background: var(--red-600, #dc2626);
  color: #fff;
}

.confirm-dialog.danger .confirm-dialog-confirm:hover {
  background: #b91c1c;
}

@media (max-width: 480px) {
  .confirm-dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .confirm-dialog-actions .btn {
    width: 100%;
  }
}
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  padding: 0.75rem 1rem;
  background: var(--brand-dark, #2d1f1a);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  font-size: var(--font-sm);
}

.cookie-consent-visible {
  display: block;
}

.cookie-consent-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  margin: 0;
  line-height: 1.5;
  flex: 1 1 320px;
}

.cookie-consent-text a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  text-decoration: none;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.cookie-consent .btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border: none;
}

.cookie-consent .btn-primary:hover {
  background: #c05432;
}

.cookie-consent .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.cookie-consent .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 600px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
  }
  .cookie-consent-actions {
    justify-content: center;
  }
}
.conditions-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.conditions-card {
  background: white;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 40px;
  margin-top: -28px;
  position: relative;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.conditions-last-updated {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: 32px;
  font-style: italic;
}

.conditions-section {
  margin-bottom: 28px;
}

.conditions-section h2 {
  font-size: var(--font-lg);
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

.conditions-section p {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 10px;
}

.conditions-list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.conditions-list li {
  font-size: var(--font-base);
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 4px;
}

.conditions-list li strong {
  color: #111827;
}

@media (max-width: 768px) {
  .conditions-container {
    padding: 0 16px 40px;
  }
  .conditions-card {
    padding: 24px 20px;
  }
}
