/**
 * Theme Tokens CSS
 * 
 * CSS custom properties for the Looklist design system.
 * Supports light and dark themes via data-theme attribute on :root.
 * 
 * Requirements: 4.6, 12.1, 12.2, 12.3, 12.4, 12.5
 */

/* ===========================================
   Light Theme (Default)
   =========================================== */

:root,
:root[data-theme="light"] {
  /* ---- Color Tokens ---- */

  /* Neutral Colors - Clean white/gray palette */
  --color-neutral-1: #ffffff;
  --color-neutral-2: #fafafa;
  --color-neutral-3: #f5f5f5;
  --color-neutral-4: #eeeeee;
  --color-neutral-5: #e0e0e0;
  --color-neutral-6: #bdbdbd;
  --color-neutral-7: #9e9e9e;
  --color-neutral-8: #757575;
  --color-neutral-9: #616161;
  --color-neutral-10: #424242;
  --color-neutral-11: #212121;
  --color-neutral-12: #121212;

  /* ---- Legacy Variable Aliases (Light Theme) ---- */
  /* Maps old variable names to new theme-aware tokens */
  --background: var(--surface-base);
  --silver: var(--text-secondary);
  --grey: var(--color-neutral-10);
  --dark-grey: var(--surface-sunken);
  --black: var(--color-neutral-12);
  --card: var(--surface-elevated);
  --box-bg: var(--surface-elevated);
  --text: var(--text-primary);
  --accent: var(--color-accent-9);
  --box-border: var(--border-subtle);
  --button-bg: var(--surface-elevated);
  --button-border: var(--border-default);
  --button-hover-bg: var(--color-accent-2);
  --button-hover-border: var(--color-accent-7);
  --button-hover-text: var(--color-accent-9);
  --error: var(--color-error-9);
  --success: var(--color-success-9);
  --focus: var(--color-info-6);
  --footer-bg: var(--surface-sunken);
  --white: var(--color-neutral-1);
  --service-bg: var(--surface-elevated);
  --font-header: 'Inter', sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  /* ---- Semantic Background Tokens ---- */
  --bg-primary: var(--surface-base);
  --bg-secondary: var(--surface-sunken);

  /* Accent Colors (Gold/Bronze - luxury theme) */
  --color-accent-1: #fdf8f0;
  --color-accent-2: #faf0dc;
  --color-accent-3: #f5e4c4;
  --color-accent-4: #ecd5a5;
  --color-accent-5: #e0c285;
  --color-accent-6: #d4a84b;
  --color-accent-7: #c9a050;
  --color-accent-8: #b8923f;
  --color-accent-9: #a67c32;
  --color-accent-10: #8a6628;
  --color-accent-11: #6e5020;
  --color-accent-contrast: #ffffff;

  /* Success Colors */
  --color-success-3: #d3f9d8;
  --color-success-5: #8ce99a;
  --color-success-6: #69db7c;
  --color-success-9: #2f9e44;
  --color-success-11: #1e7b34;
  --color-success-contrast: #ffffff;

  /* Warning Colors */
  --color-warning-3: #fff3bf;
  --color-warning-5: #ffe066;
  --color-warning-6: #ffd43b;
  --color-warning-9: #f59f00;
  --color-warning-11: #e67700;
  --color-warning-contrast: #000000;

  /* Error Colors */
  --color-error-3: #ffe3e3;
  --color-error-5: #ffa8a8;
  --color-error-6: #ff8787;
  --color-error-9: #e03131;
  --color-error-11: #c92a2a;
  --color-error-contrast: #ffffff;

  /* Info Colors */
  --color-info-3: #d0ebff;
  --color-info-5: #74c0fc;
  --color-info-6: #4dabf7;
  --color-info-9: #1c7ed6;
  --color-info-11: #1864ab;
  --color-info-contrast: #ffffff;

  /* ---- Component Variables ---- */
  --card-star-size: 16px;


  /* ---- Surface Colors ---- */
  --surface-base: #ffffff;
  --surface-elevated: #ffffff;
  --surface-overlay: #fafafa;
  --surface-sunken: #f5f5f5;

  /* ---- Border Colors ---- */
  --border-subtle: #eeeeee;
  --border-default: #e0e0e0;
  --border-elegant: #bdbdbd;
  --border-strong: #9e9e9e;

  /* ---- Text Colors ---- */
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-muted: #9e9e9e;
  --text-inverse: #ffffff;

  /* ---- Shadow Tokens ---- */
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-4: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-elegant: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);

  /* ---- Backdrop ---- */
  --backdrop-blur: blur(12px);
  --backdrop-overlay: rgba(0, 0, 0, 0.4);
}

/* ===========================================
   Dark Theme
   =========================================== */

:root[data-theme="dark"] {
  /* ---- Color Tokens ---- */

  /* Neutral Colors */
  --color-neutral-1: #0d0f10;
  --color-neutral-2: #141618;
  --color-neutral-3: #1a1d1f;
  --color-neutral-4: #212426;
  --color-neutral-5: #2a2d30;
  --color-neutral-6: #35393d;
  --color-neutral-7: #4a4f54;
  --color-neutral-8: #6b7178;
  --color-neutral-9: #8b9299;
  --color-neutral-10: #adb4bb;
  --color-neutral-11: #cfd6dd;
  --color-neutral-12: #eef1f4;

  /* Accent Colors (Gold/Bronze) */
  --color-accent-1: #1a1408;
  --color-accent-2: #2d1f0a;
  --color-accent-3: #3d2a0f;
  --color-accent-4: #4d3512;
  --color-accent-5: #5e4015;
  --color-accent-6: #7a5520;
  --color-accent-7: #9a6d2a;
  --color-accent-8: #b8923f;
  --color-accent-9: #d4a84b;
  --color-accent-10: #e0c285;
  --color-accent-11: #ecd5a5;
  --color-accent-contrast: #0d0a04;

  /* Success Colors */
  --color-success-3: #0d2818;
  --color-success-5: #1a5c2e;
  --color-success-6: #228b3b;
  --color-success-9: #40c057;
  --color-success-11: #69db7c;
  --color-success-contrast: #0d0f10;

  /* Warning Colors */
  --color-warning-3: #2d2305;
  --color-warning-5: #6b5a0a;
  --color-warning-6: #9a8210;
  --color-warning-9: #fcc419;
  --color-warning-11: #ffe066;
  --color-warning-contrast: #0d0f10;

  /* Error Colors */
  --color-error-3: #2d0d0d;
  --color-error-5: #6b1a1a;
  --color-error-6: #9a2424;
  --color-error-9: #fa5252;
  --color-error-11: #ff8787;
  --color-error-contrast: #0d0f10;

  /* Info Colors */
  --color-info-3: #0d1f2d;
  --color-info-5: #1a4a6b;
  --color-info-6: #246b9a;
  --color-info-9: #339af0;
  --color-info-11: #74c0fc;
  --color-info-contrast: #0d0f10;


  /* ---- Surface Colors ---- */
  --surface-base: #0d0f10;
  --surface-elevated: #141618;
  --surface-overlay: #1a1d1f;
  --surface-sunken: #0a0b0c;

  /* ---- Border Colors ---- */
  --border-subtle: #2a2d30;
  --border-default: #35393d;
  --border-elegant: #4a4f54;
  --border-strong: #6b7178;

  /* ---- Text Colors ---- */
  --text-primary: #eef1f4;
  --text-secondary: #cfd6dd;
  --text-muted: #8b9299;
  --text-inverse: #0d0f10;

  /* ---- Shadow Tokens ---- */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-3: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-4: 0 8px 16px rgba(0, 0, 0, 0.45);
  --shadow-elegant: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.35);

  /* ---- Backdrop ---- */
  --backdrop-blur: blur(12px);
  --backdrop-overlay: rgba(0, 0, 0, 0.7);

  /* ---- Legacy Variable Aliases (Dark Theme) ---- */
  /* Maps old variable names to new theme-aware tokens */
  --background: var(--surface-base);
  --silver: var(--text-secondary);
  --grey: var(--color-neutral-7);
  --dark-grey: var(--color-neutral-3);
  --black: var(--color-neutral-1);
  --card: var(--color-neutral-3);
  --box-bg: var(--color-neutral-3);
  --text: var(--text-primary);
  --accent: var(--color-accent-9);
  --box-border: var(--border-subtle);
  --button-bg: var(--color-neutral-4);
  --button-border: var(--border-default);
  --button-hover-bg: var(--color-accent-3);
  --button-hover-border: var(--color-accent-7);
  --button-hover-text: var(--color-accent-9);
  --error: var(--color-error-9);
  --success: var(--color-success-9);
  --focus: var(--color-info-6);
  --footer-bg: var(--color-neutral-2);
  --white: var(--color-neutral-12);
  --service-bg: var(--color-neutral-3);

  /* ---- Semantic Background Tokens (Dark) ---- */
  --bg-primary: var(--surface-base);
  --bg-secondary: var(--surface-sunken);
}

/* ===========================================
   Spacing Tokens
   =========================================== */

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

/* ===========================================
   Typography Tokens
   =========================================== */

:root {
  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 'Courier New', monospace;

  /* Font Sizes */
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-1: 1rem;
  /* 16px */
  --font-size-2: 1.125rem;
  /* 18px */
  --font-size-3: 1.25rem;
  /* 20px */
  --font-size-4: 1.5rem;
  /* 24px */
  --font-size-5: 1.875rem;
  /* 30px */
  --font-size-6: 2.25rem;
  /* 36px */
  --font-size-7: 3rem;
  /* 48px */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
}

/* ===========================================
   Border Radius Tokens
   =========================================== */

:root {
  --radius-1: 4px;
  --radius-2: 6px;
  --radius-3: 8px;
  --radius-4: 12px;
  --radius-5: 16px;
  --radius-6: 24px;
  --radius-full: 9999px;
}

/* ===========================================
   Animation Tokens
   =========================================== */

:root {
  /* Easing Functions */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Durations */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* ===========================================
   Theme Transition
   =========================================== */

:root {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

/* Smooth transition when switching themes */
/* Smooth transition - Optimized for performance (Removed universal selector) */
body {
  transition: background-color var(--duration-normal) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

/* Disable transitions on page load to prevent flash */
.no-transitions,
.no-transitions * {
  transition: none !important;
}

/**
 * Theme Components CSS
 * 
 * Modern UI component styles for the Looklist design system.
 * Uses CSS custom properties from theme-tokens.css.
 * 
 * Requirements: 5.1, 5.2, 5.3, 5.4, 7.5, 7.6
 */

/* ===========================================
   Base Reset & Typography
   =========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===========================================
   High-Specificity Overrides for Inline Styles
   These rules override inline !important styles
   Requirements: 4.6, 4.7
   =========================================== */

html[data-theme],
html[data-theme="light"],
html[data-theme="dark"] {
  background: var(--surface-base) !important;
  background-color: var(--surface-base) !important;
}

html[data-theme] body,
html[data-theme="light"] body,
html[data-theme="dark"] body {
  background: var(--surface-base) !important;
  background-color: var(--surface-base) !important;
  color: var(--text-primary) !important;
}

/* Override any inline background styles on common containers */
html[data-theme] .ll-page,
html[data-theme] .ll-profile,
html[data-theme] .ll-search,
html[data-theme] .ll-bookings,
html[data-theme] .ll-messages,
html[data-theme] main,
html[data-theme] [style*="background: #fff"],
html[data-theme] [style*="background:#fff"],
html[data-theme] [style*="background: white"],
html[data-theme] [style*="background:white"],
html[data-theme] [style*="background-color: #fff"],
html[data-theme] [style*="background-color:#fff"],
html[data-theme] [style*="background-color: white"],
html[data-theme] [style*="background-color:white"] {
  background: var(--surface-base) !important;
  background-color: var(--surface-base) !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-1);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--surface-base);
  background-image: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===========================================
   Header Component
   Requirements: 5.1, 5.2, 5.3, 5.4
   =========================================== */

.ll-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-base);
  border-bottom: 1px solid var(--border-subtle);
}

.ll-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  gap: var(--space-4);
}

.ll-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2);
  flex-shrink: 0;
}

.ll-header__logo img {
  height: 32px;
  width: auto;
  border-radius: 12px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.ll-header__logo-text {
  font-family: 'Poppins', var(--font-sans);
  font-weight: 700;
  color: #d4a84b;
}

.ll-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.ll-header__nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-3);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.ll-header__nav-link:hover {
  color: var(--text-primary);
  background-color: var(--surface-overlay);
}

.ll-header__nav-link--active {
  color: var(--color-accent-9);
  border-bottom: 2px solid var(--color-accent-9);
  border-radius: 0;
  background: transparent;
}

.ll-header__nav-link svg {
  width: 18px;
  height: 18px;
}

.ll-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle button in header */
.ll-header__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-3);
  background: var(--surface-base);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.ll-header__theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--surface-overlay);
}

.ll-header__theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Hide nav on mobile - only show logo, theme toggle, and sign in/out */
@media (max-width: 768px) {
  .ll-header__nav {
    display: none;
  }

  /* Hide profile link in header actions on mobile (it's in bottom nav) */
  .ll-header__actions .ll-header__nav-link {
    display: none;
  }

  .ll-header__container {
    padding: var(--space-2) var(--space-3);
  }

  /* Reduce logo size on mobile */
  .ll-header__logo img {
    height: 32px;
    border-radius: 8px;
  }

  .ll-header__logo-text {
    font-size: var(--font-size-sm);
  }
}

/* ===========================================
   Button Component
   Requirements: 5.1, 5.2
   =========================================== */

.ll-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

/* Button Sizes */
.ll-button--size-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-2);
}

.ll-button--size-default {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-1);
  border-radius: var(--radius-3);
}

.ll-button--size-lg {
  padding: var(--space-4) var(--space-5);
  font-size: var(--font-size-2);
  border-radius: var(--radius-3);
}

/* Primary Button (Default) */
.ll-button--default,
.ll-button--primary {
  background: var(--color-accent-9);
  color: var(--color-accent-contrast);
  border: 1px solid var(--color-accent-9);
}

.ll-button--default:hover,
.ll-button--primary:hover {
  background: var(--color-accent-10);
  border-color: var(--color-accent-10);
}

.ll-button--default:active,
.ll-button--primary:active {
  background: var(--color-accent-11);
  border-color: var(--color-accent-11);
}

/* Outline Button */
.ll-button--outline {
  background: transparent;
  color: var(--color-accent-9);
  border: 1px solid var(--color-accent-9);
}

.ll-button--outline:hover {
  background: var(--color-accent-2);
  color: var(--color-accent-10);
  border-color: var(--color-accent-10);
}

.ll-button--outline:active {
  background: var(--color-accent-3);
}

/* Ghost Button */
.ll-button--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.ll-button--ghost:hover {
  background: var(--surface-overlay);
  color: var(--text-primary);
}

/* Secondary Button */
.ll-button--secondary {
  background: var(--surface-overlay);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.ll-button--secondary:hover {
  background: var(--color-neutral-4);
  border-color: var(--border-strong);
}

/* Danger Button */
.ll-button--danger {
  background: var(--color-error-9);
  color: var(--color-error-contrast);
  border: 1px solid var(--color-error-9);
}

.ll-button--danger:hover {
  background: var(--color-error-11);
  border-color: var(--color-error-11);
}

/* Success Button */
.ll-button--success {
  background: var(--color-success-9);
  color: var(--color-success-contrast);
  border: 1px solid var(--color-success-9);
}

.ll-button--success:hover {
  background: var(--color-success-11);
  border-color: var(--color-success-11);
}

/* Disabled State */
.ll-button:disabled,
.ll-button--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Full Width */
.ll-button--full {
  width: 100%;
}

/* Button with Icon */
.ll-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}



/* ===========================================
   Card Component
   Requirements: 5.3, 5.4
   =========================================== */

.ll-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.ll-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-hover);
}

.ll-card--clickable {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.ll-card--clickable:hover {
  transform: translateY(-2px);
}

.ll-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-neutral-4);
}

.ll-card__content {
  padding: var(--space-4);
}

.ll-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.ll-card__title {
  margin: 0;
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
}

.ll-card__subtitle {
  margin: var(--space-1) 0 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.ll-card__description {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}

.ll-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.ll-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  border-radius: var(--radius-full);
}

.ll-card__badge--accent {
  background: var(--color-accent-3);
  color: var(--color-accent-11);
}

.ll-card__badge--success {
  background: var(--color-success-3);
  color: var(--color-success-11);
}

.ll-card__badge--warning {
  background: var(--color-warning-3);
  color: var(--color-warning-11);
}

.ll-card__badge--error {
  background: var(--color-error-3);
  color: var(--color-error-11);
}

.ll-card__badge--info {
  background: var(--color-info-3);
  color: var(--color-info-11);
}

/* ===========================================
   Input & Select Styles
   Requirements: 7.1, 7.2, 7.3
   =========================================== */

.ll-input,
.ll-select {
  display: block;
  width: 100%;
  padding: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--font-size-1);
  color: var(--text-primary);
  background: var(--surface-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-3);
  transition: all var(--duration-fast) var(--ease-out);
}

.ll-input:focus,
.ll-select:focus {
  outline: none;
  border-color: var(--color-accent-8);
  box-shadow: 0 0 0 3px var(--color-accent-3);
}

.ll-input::placeholder {
  color: var(--text-muted);
}

.ll-input:disabled,
.ll-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--surface-sunken);
}

/* Input Sizes */
.ll-input--sm,
.ll-select--sm {
  padding: var(--space-2);
  font-size: var(--font-size-sm);
}

.ll-input--lg,
.ll-select--lg {
  padding: var(--space-4);
  font-size: var(--font-size-2);
}

/* Input with Icon */
.ll-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.ll-input-group__icon {
  position: absolute;
  left: var(--space-3);
  color: var(--text-muted);
  pointer-events: none;
}

.ll-input-group__icon svg {
  width: 20px;
  height: 20px;
}

.ll-input-group .ll-input {
  padding-left: calc(var(--space-3) + 20px + var(--space-2));
}

/* Select Dropdown */
.ll-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868e96' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: calc(var(--space-3) + 16px + var(--space-2));
  cursor: pointer;
}

/* Textarea */
.ll-textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--font-size-1);
  color: var(--text-primary);
  background: var(--surface-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-3);
  resize: vertical;
  transition: all var(--duration-fast) var(--ease-out);
}

.ll-textarea:focus {
  outline: none;
  border-color: var(--color-accent-8);
  box-shadow: 0 0 0 3px var(--color-accent-3);
}

/* Form Group */
.ll-form-group {
  margin-bottom: var(--space-4);
}

.ll-form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.ll-form-hint {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.ll-form-error {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-error-9);
}



/* ===========================================
   Service Card Component
   Requirements: 7.5, 7.6
   =========================================== */

.ll-service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
}

.ll-service-card:hover {
  border-color: var(--color-accent-7);
  box-shadow: var(--shadow-hover);
}

.ll-service-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-neutral-4);
  flex-shrink: 0;
}

/* SVG placeholder images */
.ll-service-card__image[src$=".svg"] {
  object-fit: cover;
  object-position: center;
}

.ll-service-card__content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ll-service-card__category {
  margin: 0 0 var(--space-1);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent-9);
}

.ll-service-card__location {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.ll-service-card__location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ll-service-card__title {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ll-service-card__description {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ll-service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
}

.ll-service-card__price {
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-9);
}

.ll-service-card__price-unit {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--text-muted);
}

.ll-service-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.ll-service-card__rating svg {
  width: var(--card-star-size, 16px);
  height: var(--card-star-size, 16px);
  fill: var(--color-warning-9);
}

/* Category Card Variant - simpler layout without price/rating */
.ll-service-card--category .ll-service-card__content {
  text-align: center;
}

.ll-service-card--category .ll-service-card__title {
  font-size: var(--font-size-3);
  margin-bottom: var(--space-2);
}

.ll-service-card--category .ll-service-card__description {
  margin-bottom: 0;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Service Card Grid */
.ll-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  width: 100%;
}

/* ===========================================
   FAB Search Trigger
   =========================================== */

/* Ensure parent has relative positioning */
.ll-service-card--fab-container {
  position: relative;
  overflow: hidden;
  /* Or visible if breaking border is desired */
}

.ll-fab-search {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  /* Mobile touch target min */
  height: 44px;
  border-radius: 50%;
  background: #D4AF37;
  /* Gold */
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
  /* In case it's an anchor */
}

.ll-fab-search:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.25);
}

.ll-fab-search:active {
  transform: scale(0.95);
}

.ll-fab-search svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* Fixed positioning modifier for global usage (e.g., Homepage) */
.ll-fab-search--fixed {
  position: fixed;
  top: auto;
  bottom: 20px;
  right: 20px;
  width: 56px;
  /* Larger size for primary action */
  height: 56px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.ll-fab-search--fixed svg {
  width: 24px;
  height: 24px;
}

.ll-fab-search--fixed:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Mobile adjustment for FAB to clear bottom navigation */
@media (max-width: 768px) {
  .ll-fab-search--fixed {
    bottom: calc(76px + env(safe-area-inset-bottom) + 20px);
    /* Nav height + safe area + padding */
    width: 48px;
    /* Slightly smaller on mobile */
    height: 48px;
  }
}

/* ===========================================
   Action List Component
   =========================================== */

.ll-action-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ll-action-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  border-radius: var(--radius-3);
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-align: left;
  width: 100%;
}

.ll-action-list__item:hover {
  background: var(--surface-overlay);
}

.ll-action-list__item svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ll-action-list__item:hover svg {
  color: var(--text-secondary);
}

.ll-action-list__item--active {
  background: var(--color-accent-2);
  color: var(--color-accent-11);
}

.ll-action-list__item--active svg {
  color: var(--color-accent-9);
}

.ll-action-list__item--danger {
  color: var(--color-error-9);
}

.ll-action-list__item--danger svg {
  color: var(--color-error-9);
}

.ll-action-list__item--danger:hover {
  background: var(--color-error-3);
}

.ll-action-list__text {
  flex: 1;
}

.ll-action-list__chevron {
  color: var(--text-muted);
}

/* ===========================================
   Filter Pills Component
   Requirements: 7.4
   =========================================== */

.ll-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.ll-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent-9);
  background: var(--surface-base);
  border: 1px solid var(--color-accent-9);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.ll-filter-pill:hover {
  background: var(--color-accent-2);
}

.ll-filter-pill--active {
  background: var(--color-accent-9);
  color: var(--color-accent-contrast);
  border-color: var(--color-accent-9);
}

.ll-filter-pill--active:hover {
  background: var(--color-accent-10);
  border-color: var(--color-accent-10);
}

.ll-filter-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===========================================
   Mobile Bottom Navigation
   Requirements: 9.1, 9.2, 9.3, 9.4, 9.5, 9.6
   =========================================== */

/* Base mobile navigation - hidden on desktop */
.ll-mobile-nav,
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000000 !important;
  background-color: #000000 !important;
  border-top: 1px solid #222222 !important;
  height: 64px;
  padding: var(--space-2) var(--space-2);
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
}

/* High-specificity override for mobile nav background */
html[data-theme] .mobile-bottom-nav,
html[data-theme="light"] .mobile-bottom-nav,
html[data-theme="dark"] .mobile-bottom-nav,
html[data-theme] .ll-mobile-nav,
body .mobile-bottom-nav {
  background: #000000 !important;
  background-color: #000000 !important;
  border-top-color: #222222 !important;
}

/* Show mobile nav on screens narrower than 768px (Requirement 9.1) */
@media (max-width: 768px) {

  .ll-mobile-nav,
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  /* Add bottom padding to body to prevent content being hidden behind nav */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* Navigation item styling - applies to both .nav-item and .ll-mobile-nav__item */
.ll-mobile-nav__item,
.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  min-width: 56px;
  text-decoration: none;
  color: #ffffff;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-2);
  transition: color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

/* Hover and focus states (Requirement 9.6 - theme colors) */
.ll-mobile-nav__item:hover,
.ll-mobile-nav__item:focus,
.ll-mobile-nav__item:active,
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item:focus,
.mobile-bottom-nav .nav-item:active {
  color: #ffffff;
  background-color: #333333;
}

/* Active state for current page */
.ll-mobile-nav__item--active,
.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item[aria-current="page"] {
  color: var(--color-accent-9);
}

.ll-mobile-nav__item--active:hover,
.mobile-bottom-nav .nav-item.active:hover,
.mobile-bottom-nav .nav-item[aria-current="page"]:hover {
  color: var(--color-accent-10);
  background-color: var(--color-accent-2);
}

/* SVG icon styling */
.ll-mobile-nav__item svg,
.mobile-bottom-nav .nav-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Image icon styling (for legacy .nav-icon images) */
.ll-mobile-nav__icon,
.mobile-bottom-nav .nav-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: var(--radius-2);
  border: 1px solid var(--border-subtle);
  background: var(--surface-overlay);
}

/* Label styling */
.ll-mobile-nav__label,
.mobile-bottom-nav .nav-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  white-space: nowrap;
}

/* Merchant-only items - hidden by default (Requirement 9.5) */
.merchant-only {
  display: none !important;
}

/* Show merchant items when user has merchant role (Requirement 9.3) */
[data-role="merchant"] .merchant-only,
.merchant-only[style*="display: block"],
.merchant-only[style*="display: flex"] {
  display: flex !important;
}

/* When merchant-only is shown via JS (style="display: flex" or similar),
   it inherits normal nav item styling from .ll-mobile-nav__item */

/* ===========================================
   Avatar Component
   =========================================== */

.ll-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-neutral-4);
  color: var(--text-muted);
  font-weight: var(--font-weight-semibold);
  overflow: hidden;
}

.ll-avatar--sm {
  width: 32px;
  height: 32px;
  font-size: var(--font-size-sm);
}

.ll-avatar--md {
  width: 48px;
  height: 48px;
  font-size: var(--font-size-1);
}

.ll-avatar--lg {
  width: 64px;
  height: 64px;
  font-size: var(--font-size-2);
}

.ll-avatar--xl {
  width: 96px;
  height: 96px;
  font-size: var(--font-size-4);
}

.ll-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================================
   Badge Component
   =========================================== */

.ll-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  border-radius: var(--radius-full);
}

.ll-badge--accent {
  background: var(--color-accent-3);
  color: var(--color-accent-11);
}

.ll-badge--success {
  background: var(--color-success-3);
  color: var(--color-success-11);
}

.ll-badge--warning {
  background: var(--color-warning-3);
  color: var(--color-warning-11);
}

.ll-badge--error {
  background: var(--color-error-3);
  color: var(--color-error-11);
}

.ll-badge--info {
  background: var(--color-info-3);
  color: var(--color-info-11);
}

.ll-badge--neutral {
  background: var(--color-neutral-4);
  color: var(--text-secondary);
}

/* ===========================================
   Rating Component
   =========================================== */

.ll-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.ll-rating__stars {
  display: flex;
  gap: 2px;
  color: var(--color-warning-9);
}

.ll-rating__stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ll-rating__stars--empty svg {
  fill: var(--color-neutral-5);
}

.ll-rating__value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.ll-rating__count {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ===========================================
   Divider Component
   =========================================== */

.ll-divider {
  height: 1px;
  background: var(--border-subtle);
  border: none;
  margin: var(--space-4) 0;
}

.ll-divider--strong {
  background: var(--border-default);
}

/* ===========================================
   Section Component
   =========================================== */

.ll-section {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.ll-section__title {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.ll-section__subtitle {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ===========================================
   Empty State Component
   =========================================== */

.ll-empty {
  text-align: center;
  padding: var(--space-8);
  color: var(--text-muted);
}

.ll-empty__icon {
  margin-bottom: var(--space-4);
  color: var(--color-neutral-6);
}

.ll-empty__icon svg {
  width: 48px;
  height: 48px;
}

.ll-empty__title {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
}

.ll-empty__description {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ===========================================
   Loading State Component
   =========================================== */

.ll-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.ll-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-default);
  border-top-color: var(--color-accent-9);
  border-radius: 50%;
  animation: ll-spin 0.8s linear infinite;
}

@keyframes ll-spin {
  to {
    transform: rotate(360deg);
  }
}

.ll-loading__text {
  margin-left: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ===========================================
   Modal Component
   =========================================== */

.ll-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--backdrop-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.ll-modal {
  background: var(--surface-base);
  border-radius: var(--radius-4);
  box-shadow: var(--shadow-4);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}

.ll-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.ll-modal__title {
  margin: 0;
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.ll-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius-2);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.ll-modal__close:hover {
  background: var(--surface-overlay);
  color: var(--text-primary);
}

.ll-modal__body {
  padding: var(--space-4);
}

.ll-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}



/* ===========================================
   Header/Navbar Component Overrides
   Requirements: 5.1, 5.2, 5.3, 5.4
   
   These high-specificity rules override inline styles
   in HTML files to ensure navbar matches body theme.
   =========================================== */

/* Override header-bar inline styles with theme tokens */
html[data-theme] .header-bar,
html[data-theme="light"] .header-bar,
html[data-theme="dark"] .header-bar,
body .header-bar,
.header-bar {
  background: var(--surface-base) !important;
  background-color: var(--surface-base) !important;
  border-bottom-color: var(--border-subtle) !important;
}

/* Override header title and text colors */
html[data-theme] .header-bar .header-title,
html[data-theme] .header-bar .ll-header__title,
body .header-bar .header-title {
  color: var(--text-primary) !important;
}

/* Override header links */
html[data-theme] .header-bar .home-link,
html[data-theme] .header-bar a,
body .header-bar .home-link {
  color: var(--text-secondary) !important;
}

html[data-theme] .header-bar .home-link:hover,
html[data-theme] .header-bar .home-link:focus,
body .header-bar .home-link:hover {
  color: var(--text-primary) !important;
  background: var(--surface-overlay) !important;
  border-color: var(--border-default) !important;
}

/* ===========================================
   Footer Component
   Requirements: 5.4
   =========================================== */

/* Footer base styles - override inline styles from HTML */
footer {
  width: 100%;
  background: var(--surface-sunken) !important;
  background-color: var(--surface-sunken) !important;
  color: var(--text-secondary) !important;
  text-align: center;
  padding: var(--space-6) var(--space-4) var(--space-4);
  margin-top: var(--space-6);
  letter-spacing: 0.5px;
  font-size: var(--font-size-1);
  font-family: var(--font-sans);
  border-top: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-1);
}

/* High-specificity override for theme attribute */
html[data-theme] footer,
html[data-theme="light"] footer,
html[data-theme="dark"] footer,
body footer {
  background: var(--surface-sunken) !important;
  background-color: var(--surface-sunken) !important;
  color: var(--text-secondary) !important;
  border-top-color: var(--border-subtle) !important;
}

/* ===========================================
   Global Footer Component
   =========================================== */
.ll-global-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-base);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-4) var(--space-5);
  margin-top: auto;
}

.ll-global-footer__left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.ll-global-footer__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.ll-global-footer__copyright {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.ll-global-footer__dot {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.ll-global-footer__link {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.ll-global-footer__link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.ll-global-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.ll-global-footer__social:hover {
  color: var(--text-primary);
}

/* Mobile adjustments for global footer */
@media (max-width: 768px) {
  .ll-global-footer {
    flex-direction: column;
    gap: var(--space-3);
    padding-bottom: calc(var(--space-4) + 70px + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }

  .ll-global-footer__left {
    justify-content: center;
  }

  .ll-global-footer__right {
    justify-content: center;
  }
}

/* Legacy Footer Styles (for backward compatibility) */
/* Footer navigation */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

/* Footer buttons/links */
.footer-btn {
  background: none;
  border: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-medium);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  border-radius: var(--radius-2);
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-btn:hover,
.footer-btn:focus {
  background: var(--color-accent-2);
  color: var(--color-accent-9);
  border-color: var(--color-accent-7);
  outline: none;
  text-decoration: none;
}

/* Footer links */
footer a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease-out);
}

footer a:hover,
footer a:focus {
  color: var(--color-accent-9);
}

/* Footer copyright text */
footer>div:last-child {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Mobile adjustments for footer */
@media (max-width: 768px) {
  footer {
    padding-bottom: calc(var(--space-6) + 64px + env(safe-area-inset-bottom, 0px));
  }

  .footer-nav {
    gap: var(--space-3);
  }

  .footer-btn {
    font-size: var(--font-size-sm);
    padding: var(--space-1) var(--space-2);
  }
}


/* ===========================================
   Info Toggle & Info Pane Overrides
   Normalizes hardcoded colors in index.html
   =========================================== */

.info-toggle {
  border-color: var(--border-subtle) !important;
  background: transparent !important;
  color: var(--text-primary) !important;
}

.info-toggle:hover {
  border-color: var(--color-warning-9) !important;
  box-shadow: 0 0 0 3px var(--color-warning-3) !important;
}

.info-pane {
  background: var(--surface-overlay) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}

/**
 * Theme Pages CSS
 * 
 * Page-specific layout styles for the Looklist design system.
 * Uses CSS custom properties from theme-tokens.css.
 * 
 * Requirements: 6.1, 6.2, 6.3, 6.4, 6.5, 7.1, 7.2, 7.3, 7.4, 8.1, 8.2, 8.3, 8.4, 8.5
 */

/* ===========================================
   Page Container
   =========================================== */

.ll-page {
  min-height: 100vh;
  padding-bottom: 80px;
  /* Space for mobile nav */
  overflow-x: hidden;
  background: var(--surface-base);
}

.ll-page__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4);
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .ll-page {
    padding-bottom: var(--space-6);
  }

  .ll-page__container {
    padding: var(--space-6);
  }
}

/* ===========================================
   Profile Page
   Requirements: 6.1, 6.2, 6.3, 6.4, 6.5
   =========================================== */

.ll-profile {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  padding-bottom: 100px;
  background: var(--surface-base);
  overflow-x: hidden;
}

/* Profile Hero Section */
.ll-profile__hero {
  text-align: center;
  margin-bottom: var(--space-6);
}

.ll-profile__avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: var(--color-neutral-4);
  margin: 0 auto var(--space-4);
  object-fit: cover;
  border: 3px solid var(--border-default);
}

.ll-profile__name {
  font-size: var(--font-size-4);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-1);
}

.ll-profile__email {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}

.ll-profile__rating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-3);
  color: var(--color-accent-11);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.ll-profile__rating-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Profile Stats Cards */
.ll-profile__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 480px) {
  .ll-profile__stats {
    grid-template-columns: 1fr;
  }
}

.ll-profile__stat-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4);
  padding: var(--space-4);
  text-align: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.ll-profile__stat-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-elegant);
}

.ll-profile__stat-card--clickable {
  cursor: pointer;
}

.ll-profile__stat-card--clickable:hover {
  border-color: var(--color-accent-7);
  transform: translateY(-2px);
}

.ll-profile__stat-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin: 0 0 var(--space-2);
}

.ll-profile__stat-value {
  font-size: var(--font-size-5);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-1);
}

.ll-profile__stat-value--accent {
  color: var(--color-accent-9);
}

.ll-profile__stat-subtext {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin: 0;
}

.ll-profile__stat-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  color: var(--color-warning-9);
  margin-bottom: var(--space-1);
}

.ll-profile__stat-stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Profile Section */
.ll-profile__section {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.ll-profile__section-title {
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}

/* Profile Menu */
.ll-profile__menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ll-profile__menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-3);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-medium);
  transition: background var(--duration-fast) var(--ease-out);
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.ll-profile__menu-item:hover {
  background: var(--surface-overlay);
}

.ll-profile__menu-item svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ll-profile__menu-item:hover svg {
  color: var(--text-secondary);
}

.ll-profile__menu-item--danger {
  color: var(--color-error-9);
}

.ll-profile__menu-item--danger svg {
  color: var(--color-error-9);
}

.ll-profile__menu-item--danger:hover {
  background: var(--color-error-3);
}

/* Profile Action Buttons */
.ll-profile__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.ll-profile__actions .ll-button {
  flex: 1;
}

/* ===========================================
   Services/Search Page
   Requirements: 7.1, 7.2, 7.3, 7.4
   =========================================== */

.ll-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  padding-bottom: 100px;
  overflow-x: hidden;
}

/* Search Header */
.ll-search__header {
  margin-bottom: var(--space-6);
}

.ll-search__title {
  font-size: var(--font-size-4);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}

/* Search Form */
.ll-search__form {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-4);
}

.ll-search__input {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-3);
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-1);
  transition: all var(--duration-fast) var(--ease-out);
}

.ll-search__input:focus {
  outline: none;
  border-color: var(--color-accent-7);
  box-shadow: 0 0 0 3px var(--color-accent-2);
}

.ll-search__input::placeholder {
  color: var(--text-muted);
}

.ll-search__select {
  padding: var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-3);
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-1);
  min-width: 150px;
  max-width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: calc(var(--space-3) + 20px);
  transition: all var(--duration-fast) var(--ease-out);
}

.ll-search__select:focus {
  outline: none;
  border-color: var(--color-accent-7);
  box-shadow: 0 0 0 3px var(--color-accent-2);
}

/* Services Page - See All Button */
.ll-services__see-all {
  display: flex;
  justify-content: center;
  padding: var(--space-6) 0;
  margin-top: var(--space-4);
}

.ll-services__see-all .ll-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.ll-services__see-all .ll-button svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.ll-services__see-all .ll-button:hover svg {
  transform: translateX(4px);
}

/* Search Filters */
.ll-search__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.ll-search__filters-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-right: var(--space-2);
}

/* Search Results Grid */
.ll-search__results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  width: 100%;
}

.ll-search__empty {
  text-align: center;
  padding: var(--space-8);
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.ll-search__count {
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: var(--space-6) 0 var(--space-4);
}

/* ===========================================
   Home Page
   Requirements: 8.1, 8.2, 8.3, 8.4, 8.5
   =========================================== */

.ll-home {
  padding-bottom: 100px;
  background: var(--surface-base);
  overflow-x: hidden;
}

/* Hero Section */
.ll-home__hero {
  background: linear-gradient(135deg, #1a1408 0%, #2d1f0a 25%, #3d2a0f 50%, #1a1408 75%, #0d0a04 100%);
  background-size: 400% 400%;
  position: relative;
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: #d4a84b;
  overflow: hidden;
}

/* Add golden shimmer effect */
.ll-home__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 168, 75, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(180, 140, 60, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 80%, rgba(212, 168, 75, 0.15) 0%, transparent 35%);
  pointer-events: none;
}

.ll-home__hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.ll-home__hero-title {
  font-size: var(--font-size-6);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-3);
  line-height: var(--line-height-tight);
  color: #d4a84b !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .ll-home__hero-title {
    font-size: var(--font-size-5);
  }
}

.ll-home__hero-tagline {
  font-size: var(--font-size-2);
  margin: 0 0 var(--space-5);
  opacity: 0.9;
  color: #c9a050 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

/* Trustpilot Badge */
.ll-home__trustpilot-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  /* background: var(--color-accent-5); */
  background: #57431c;
  border: 1px solid #cbaa63;
  border-radius: var(--radius-full);
  color: #cbaa63;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  z-index: 1;
  /* Remove default link styling */
  text-decoration: none;
}

.ll-home__trustpilot-toggle:hover,
.ll-home__trustpilot-toggle:focus,
.ll-home__trustpilot-toggle:active,
.ll-home__trustpilot-toggle:visited {
  background: #57431c;
  border-color: #cbaa63;
  /* Keep same color - no link color change */
  color: #cbaa63;
  text-decoration: none;
}

.ll-home__trustpilot-icon {
  width: 20px;
  height: 20px;
}

.ll-home__trustpilot-text {
  font-weight: var(--font-weight-semibold);
}

/* Home Sections */
.ll-home__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.ll-home__section-title {
  font-size: var(--font-size-4);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary) !important;
  margin: 0 0 var(--space-2);
  /* Reduced margin */
}

.ll-home__section-subtitle {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
  line-height: var(--line-height-normal);
}

/* Home Grid (Service Cards) - 5 cards in a row */
.ll-home__grid {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-2) var(--space-1);
  margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-1));
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-6) var(--surface-sunken);
}

.ll-home__grid::-webkit-scrollbar {
  height: 6px;
}

.ll-home__grid::-webkit-scrollbar-track {
  background: var(--surface-sunken);
  border-radius: 3px;
}

.ll-home__grid::-webkit-scrollbar-thumb {
  background: var(--color-accent-6);
  border-radius: 3px;
}

/* Home Service Card */
.ll-home__card {
  display: block;
  flex: 0 0 220px;
  min-width: 220px;
  max-width: 220px;
  scroll-snap-align: start;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
}

@media (min-width: 1200px) {
  .ll-home__grid {
    justify-content: center;
  }
}

.ll-home__card:hover {
  border-color: var(--color-accent-8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.ll-home__card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  /* Reserve space before image loads (prevents CLS) */
  object-fit: cover;
  background: var(--color-neutral-4);
}

/* SVG placeholder images */
.ll-home__card-image[src$=".svg"] {
  object-fit: cover;
  object-position: center;
}

.ll-home__card-content {
  padding: var(--space-3);
}

.ll-home__card-category {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-accent-11);
  margin: 0 0 var(--space-1);
}

.ll-home__card-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary) !important;
  margin: 0 0 var(--space-1);
  line-height: var(--line-height-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ll-home__card-description {
  font-size: var(--font-size-xs);
  color: var(--text-secondary) !important;
  margin: 0 0 var(--space-2);
  line-height: var(--line-height-normal);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ll-home__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.ll-home__card-price {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary) !important;
}

.ll-home__card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
  /* Prevent wrapping to new line */
}

.ll-home__card-rating svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Premium Card Styles */
.ll-home__card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.ll-home__card--premium {
  border-color: var(--color-accent-6);
}

.ll-home__card--premium:hover {
  border-color: var(--color-accent-9);
  box-shadow: 0 4px 20px rgba(212, 168, 75, 0.2);
}

.ll-home__card-premium {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  background: linear-gradient(135deg, var(--color-accent-9), var(--color-accent-7));
  color: var(--color-accent-contrast);
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.ll-home__card-premium svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

/* Home CTA Panels */
.ll-home__panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.ll-home__panel {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4);
  padding: var(--space-6);
  text-align: center;
}

.ll-home__panel:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-elegant);
}

.ll-home__panel-title {
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary) !important;
  margin: 0 0 var(--space-2);
}

.ll-home__panel-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary) !important;
  margin: 0 0 var(--space-4);
  line-height: var(--line-height-normal);
}

/* ===========================================
   Bookings Page Styles
   Requirements: 2.1, 2.3, 2.4, 11.1, 11.2
   =========================================== */

.ll-bookings {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  padding-bottom: 100px;
  background: var(--surface-base);
  overflow-x: hidden;
}

.ll-bookings__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.ll-bookings__title {
  font-size: var(--font-size-4);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

/* Booking List Container - preserves existing selector */
.booking-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Booking Card Styles (for dynamically generated cards) */
.booking-list .booking-card,
.ll-booking-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4);
  padding: var(--space-4);
  transition: all var(--duration-normal) var(--ease-out);
}

.booking-list .booking-card:hover,
.ll-booking-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-elegant);
}

/* ===========================================
   Messages Page Styles
   Requirements: 2.2, 11.3, 11.4
   =========================================== */

.ll-messages {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  padding-bottom: 100px;
  background: var(--surface-base);
  overflow-x: hidden;
}

.ll-messages__header {
  margin-bottom: var(--space-5);
}

.ll-messages__title {
  font-size: var(--font-size-4);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

/* Thread List Container - preserves existing selector */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Thread Item Styles (for dynamically generated threads) */
.thread-list .thread-item,
.ll-thread-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-fast) var(--ease-out);
}

.thread-list .thread-item:hover,
.ll-thread-item:hover {
  background: var(--surface-overlay);
  border-color: var(--border-default);
}

/* ===========================================
   Auth Pages (Sign In / Sign Up)
   =========================================== */

.ll-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.ll-auth__container {
  width: 100%;
  max-width: 400px;
}

.ll-auth__card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4);
  padding: var(--space-6);
}

.ll-auth__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  text-decoration: none;
  color: var(--text-primary);
}

.ll-auth__logo img {
  height: 40px;
  width: auto;
}

.ll-auth__logo-text {
  font-family: 'Poppins', var(--font-sans);
  font-size: var(--font-size-4);
  font-weight: var(--font-weight-bold);
}

.ll-auth__title {
  font-size: var(--font-size-4);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 var(--space-2);
}

.ll-auth__subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 var(--space-5);
}

.ll-auth__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ll-auth__footer {
  text-align: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.ll-auth__footer a {
  color: var(--color-accent-9);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.ll-auth__footer a:hover {
  text-decoration: underline;
}

/* ===========================================
   Listing Detail Page
   =========================================== */

.ll-listing {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  padding-bottom: 100px;
}

.ll-listing__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
  align-items: start;
}

@media (max-width: 900px) {
  .ll-listing__header {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}


.ll-listing__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-5);
  background: var(--color-neutral-4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
}

.ll-listing__info {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) 0;
}

.ll-listing__category {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-accent-11);
  margin: 0 0 var(--space-2);
}

.ll-listing__title {
  font-size: var(--font-size-5);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
  line-height: var(--line-height-tight);
}

.ll-listing__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.ll-listing__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.ll-listing__meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.ll-listing__price {
  font-size: var(--font-size-5);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.ll-listing__price-unit {
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-normal);
  color: var(--text-muted);
}

.ll-listing__description {
  font-size: var(--font-size-1);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
}

.ll-listing__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
}

/* ===========================================
   Intro/Status Message
   Preserves existing .intro selector
   =========================================== */

.intro {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-3);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
}

.intro--info,
.intro.info {
  background: var(--color-info-3);
  color: var(--color-info-11);
  border: 1px solid var(--color-info-5);
}

.intro--success,
.intro.success {
  background: var(--color-success-3);
  color: var(--color-success-11);
  border: 1px solid var(--color-success-5);
}

.intro--warning,
.intro.warning {
  background: var(--color-warning-3);
  color: var(--color-warning-11);
  border: 1px solid var(--color-warning-5);
}

.intro--error,
.intro.error {
  background: var(--color-error-3);
  color: var(--color-error-11);
  border: 1px solid var(--color-error-5);
}

/* ===========================================
   Loading Screen
   Preserves existing #loading-screen selector
   =========================================== */

#loading-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

:root[data-theme="dark"] #loading-screen {
  background: #000000;
}

#loading-screen .loading-logo {
  width: 120px;
  height: 120px;
  animation: ll-blink 2s ease-in-out infinite;
}

#loading-screen .loading-text {
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-family: var(--font-sans);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes ll-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

#loading-screen .loading-content {
  text-align: center;
  color: var(--text-muted);
}

#loading-screen .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-default);
  border-top-color: var(--color-accent-9);
  border-radius: 50%;
  animation: ll-spin 0.8s linear infinite;
  margin: 0 auto var(--space-4);
}

/* ===========================================
   Secret Box (Auth Content Wrapper)
   Preserves existing #secret-box selector
   =========================================== */

#secret-box {
  display: none;
}

#secret-box.visible {
  display: block;
}

/* ===========================================
   Review Modal
   Preserves existing #review-modal selector
   =========================================== */

#review-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--backdrop-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

#review-modal.active {
  display: flex;
}

#review-modal .modal-content {
  background: var(--surface-base);
  border-radius: var(--radius-4);
  box-shadow: var(--shadow-4);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}

#review-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

#review-modal .modal-title {
  margin: 0;
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

#review-modal .modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius-2);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

#review-modal .modal-close:hover {
  background: var(--surface-overlay);
  color: var(--text-primary);
}

#review-modal .modal-body {
  padding: var(--space-4);
}

#review-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

/* ===========================================
   Responsive Utilities
   =========================================== */

@media (max-width: 768px) {
  .ll-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .ll-hide-desktop {
    display: none !important;
  }
}

/* Add bottom padding on mobile for nav */
@media (max-width: 768px) {

  .ll-profile,
  .ll-search,
  .ll-home,
  .ll-bookings,
  .ll-messages,
  .ll-listing {
    padding-bottom: 100px;
  }
}


/* ===========================================
   Mobile Navigation Theme Overrides
   Requirements: 9.1, 9.2, 9.3, 9.4, 9.5, 9.6
   
   These styles override inline styles in HTML files
   to ensure consistent theming across light/dark modes.
   =========================================== */

@media (max-width: 768px) {

  /* Override inline background and border colors - black navbar */
  .mobile-bottom-nav,
  .ll-mobile-nav,
  nav[data-component="mobile-nav"] {
    background: #000000 !important;
    border-top-color: #222222 !important;
  }

  /* Override nav item colors - white text on black */
  .mobile-bottom-nav .nav-item,
  .ll-mobile-nav .ll-mobile-nav__item,
  nav[data-component="mobile-nav"] .nav-item {
    color: #ffffff !important;
  }

  /* Hover/focus states */
  .mobile-bottom-nav .nav-item:hover,
  .mobile-bottom-nav .nav-item:focus,
  .ll-mobile-nav .ll-mobile-nav__item:hover,
  .ll-mobile-nav .ll-mobile-nav__item:focus,
  nav[data-component="mobile-nav"] .nav-item:hover,
  nav[data-component="mobile-nav"] .nav-item:focus {
    color: #ffffff !important;
    background-color: #333333;
  }

  /* Active page indicator */
  .mobile-bottom-nav .nav-item[aria-current="page"],
  .mobile-bottom-nav .nav-item.active,
  .ll-mobile-nav .ll-mobile-nav__item--active,
  nav[data-component="mobile-nav"] .nav-item[aria-current="page"] {
    color: var(--color-accent-9) !important;
  }

  /* Image icons in mobile nav */
  .mobile-bottom-nav .nav-icon,
  .ll-mobile-nav .ll-mobile-nav__icon,
  nav[data-component="mobile-nav"] .nav-icon {
    background: #222222 !important;
    border-color: #333333 !important;
  }

  /* Footer spacing to account for mobile nav */
  footer {
    padding-bottom: calc(2rem + 64px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===========================================
   Dark Theme Mobile Navigation Specifics
   =========================================== */

:root[data-theme="dark"] .mobile-bottom-nav,
:root[data-theme="dark"] .ll-mobile-nav,
:root[data-theme="dark"] nav[data-component="mobile-nav"] {
  background: #000000 !important;
  border-top-color: #222222 !important;
}

:root[data-theme="dark"] .mobile-bottom-nav .nav-item,
:root[data-theme="dark"] .ll-mobile-nav .ll-mobile-nav__item,
:root[data-theme="dark"] nav[data-component="mobile-nav"] .nav-item {
  color: #ffffff !important;
}

:root[data-theme="dark"] .mobile-bottom-nav .nav-item:hover,
:root[data-theme="dark"] .mobile-bottom-nav .nav-item:focus,
:root[data-theme="dark"] .ll-mobile-nav .ll-mobile-nav__item:hover,
:root[data-theme="dark"] .ll-mobile-nav .ll-mobile-nav__item:focus {
  color: #ffffff !important;
  background-color: #333333;
}

:root[data-theme="dark"] .mobile-bottom-nav .nav-icon,
:root[data-theme="dark"] .ll-mobile-nav .ll-mobile-nav__icon {
  background: #222222 !important;
  border-color: #333333 !important;
}

/* ===========================================
   Discovery Blocks (Homepage)
   Phase 6 - Top 5 blocks with loading states
   =========================================== */

/* Section Header with See All link */
.ll-home__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ll-home__section-header .ll-home__section-title {
  margin-bottom: 0;
}

.ll-home__see-all {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent-9);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.ll-home__see-all:hover,
.ll-home__see-all:focus {
  color: var(--color-accent-11);
  text-decoration: underline;
}

/* Discovery Grid - same as main grid but with flex wrap on desktop */
.ll-home__grid--discovery {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-2) var(--space-1);
  margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-1));
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-6) var(--surface-sunken);
}

/* Discovery Card - consistent sizing */
.ll-home__card--discovery {
  flex: 0 0 220px;
  min-width: 220px;
  max-width: 220px;
}

/* Super Badge */
.ll-home__card-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-2);
  z-index: 2;
}

.ll-home__card-badge--super {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Available Today badge */
.ll-home__card-badge--avail {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
  position: relative;
  top: auto;
  left: auto;
  display: inline-block;
  margin-top: 4px;
}

/* Likes display */
.ll-home__card-likes {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-left: var(--space-2);
}

/* Block Status Container */
.ll-home__block-status {
  min-height: 0;
}

/* Skeleton Cards */
.ll-home__card--skeleton {
  pointer-events: none;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  flex: 0 0 220px;
  min-width: 220px;
  max-width: 220px;
  border-radius: var(--radius-4);
  overflow: hidden;
}

.ll-home__skeleton-pulse {
  animation: ll-pulse 1.5s ease-in-out infinite;
  background: var(--color-neutral-4);
  height: 140px;
}

.ll-home__skeleton-line {
  background: var(--color-neutral-4);
  border-radius: var(--radius-2);
  animation: ll-pulse 1.5s ease-in-out infinite;
  margin-bottom: var(--space-2);
}

.ll-home__skeleton-line--sm {
  height: 12px;
  width: 60px;
}

.ll-home__skeleton-line--md {
  height: 14px;
  width: 50%;
}

.ll-home__skeleton-line--lg {
  height: 18px;
  width: 80%;
}

@keyframes ll-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Empty State */
.ll-home__block-empty {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  background: var(--surface-sunken);
  border-radius: var(--radius-4);
  margin-top: var(--space-2);
}

.ll-home__block-empty p {
  margin: 0;
}

/* Error State */
.ll-home__block-error {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--color-error-2);
  border: 1px solid var(--color-error-5);
  border-radius: var(--radius-4);
  margin-top: var(--space-2);
}

.ll-home__block-error p {
  margin: 0 0 var(--space-3);
  color: var(--color-error-11);
  font-size: var(--font-size-sm);
}

.ll-home__retry-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--color-error-9);
  color: white;
  border: none;
  border-radius: var(--radius-3);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.ll-home__retry-btn:hover,
.ll-home__retry-btn:focus {
  background: var(--color-error-10);
}

.ll-home__retry-btn:focus {
  outline: 2px solid var(--color-error-6);
  outline-offset: 2px;
}

/* Location Prompt */
.ll-home__block-location-prompt {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--surface-sunken);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-4);
  margin-top: var(--space-2);
}

.ll-home__block-location-prompt p {
  margin: 0 0 var(--space-3);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.ll-home__location-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent-9);
  color: var(--color-accent-contrast);
  border: none;
  border-radius: var(--radius-3);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.ll-home__location-btn:hover,
.ll-home__location-btn:focus {
  background: var(--color-accent-10);
}

.ll-home__location-btn:focus {
  outline: 2px solid var(--color-accent-6);
  outline-offset: 2px;
}

/* Discovery Block Section spacing */
.ll-home__discovery-block {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  min-height: 380px;
  /* Reserve height to prevent CLS (Phase 7 Task 1) */
}

/* Override min-height when content is loaded to allow natural sizing */
.ll-home__discovery-block[data-loaded="true"] {
  min-height: 0;
}

/* Focus states for accessibility */
.ll-home__card--discovery:focus {
  outline: 2px solid var(--color-accent-7);
  outline-offset: 2px;
}

.ll-home__card--discovery:focus:not(:focus-visible) {
  outline: none;
}

.ll-home__card--discovery:focus-visible {
  outline: 2px solid var(--color-accent-7);
  outline-offset: 2px;
}

/**
 * CSS Bridge - Styles legacy-generated elements with new UI tokens
 * 
 * This file bridges the gap between legacy JavaScript-generated DOM elements
 * and the new UI design system. It applies new UI CSS variables to elements
 * created by bookings-page.js, messages-page.js, and other business logic files.
 * 
 * Dependencies:
 * - Must be loaded AFTER new UI token files (colors, spacings, typography, etc.)
 * - Must be loaded AFTER theme.css
 * 
 * Requirements: 4.1, 4.3, 4.5, 8.5, 9.5
 */

/* ===========================================
   Global Overflow Fix
   =========================================== */

html,
body {
  overflow-x: hidden;
  background: var(--surface-base);
}

/* ===========================================
   CSS Custom Property Fallbacks
   Ensures graceful degradation if tokens aren't loaded
   =========================================== */

:root {
  /* Fallback values for new UI tokens - matches clean white theme */
  --surface-elevated-fallback: var(--surface-elevated, #ffffff);
  --surface-overlay-fallback: var(--surface-overlay, #fafafa);
  --border-elegant-fallback: var(--border-elegant, #e0e0e0);
  --border-subtle-fallback: var(--border-subtle, #eeeeee);
  --color-neutral-12-fallback: var(--color-neutral-12, #212121);
  --color-neutral-11-fallback: var(--color-neutral-11, #424242);
  --color-neutral-9-fallback: var(--color-neutral-9, #757575);
  --color-accent-9-fallback: var(--color-accent-9, #6d28d9);
  --color-accent-11-fallback: var(--color-accent-11, #4c1d95);
  --radius-5-fallback: var(--radius-5, 12px);
  --radius-3-fallback: var(--radius-3, 8px);
  --space-4-fallback: var(--space-4, 16px);
  --space-3-fallback: var(--space-3, 12px);
  --space-2-fallback: var(--space-2, 8px);
  --font-size-2-fallback: var(--font-size-2, 1.1rem);
  --font-size-1-fallback: var(--font-size-1, 1rem);
  --ease-out-fallback: var(--ease-out, cubic-bezier(0, 0, 0.3, 1));
}

/* ===========================================
   Booking Card Styles (Beautified)
   =========================================== */

.booking-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface-elevated);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@media (min-width: 600px) {
  .booking-card {
    grid-template-columns: 120px 1fr 200px;
    align-items: stretch;
  }
}

.booking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* Profile Section */
.booking-img-container {
  background: linear-gradient(135deg, var(--surface-sunken) 0%, var(--surface-overlay) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
  .booking-img-container {
    padding: 1.5rem 1rem;
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }
}

.booking-card .booking-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface-base);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-card:hover .booking-img {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Details Section */
.booking-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
  .booking-details {
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }
}

.booking-card .booking-title {
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.2;
}

.booking-card .booking-meta {
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.booking-service-name {
  color: var(--color-accent-9);
  font-weight: 600;
  font-size: 1rem;
  display: block;
}

.booking-card .booking-status {
  margin-top: 0.5rem;
}

/* --- Segment 3: Actions & Price --- */
.card-actions {
  padding: 1.25rem;
  background: var(--surface-base);
  /* Slightly different bg for contrast */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 600px) {
  .card-actions {
    padding: 1.5rem;
  }
}

.booking-price {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}


/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background: var(--color-warning-2, #fffbeb);
  color: var(--color-warning-9, #d97706);
  border: 1px solid var(--color-warning-3, #fcd34d);
}

.status-badge.confirmed {
  background: var(--color-success-2, #d1fae5);
  color: var(--color-success-9, #065f46);
  border: 1px solid var(--color-success-5, #6ee7b7);
}

.status-badge.completed {
  background: var(--color-info-2, #dbeafe);
  color: var(--color-info-9, #1e40af);
  border: 1px solid var(--color-info-5, #93c5fd);
}

.status-badge.cancelled,
.status-badge.declined {
  background: var(--color-error-2, #fef2f2);
  color: var(--color-error-9, #dc2626);
  border: 1px solid var(--color-error-3, #fecaca);
}

.status-badge.refunded {
  background: #f0fdf4;
  /* mint green */
  color: #15803d;
  border: 1px dashed #4ade80;
}

/* ===========================================
   Button Styles (generated dynamically)
   =========================================== */

.btn {
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  font-weight: 600;
  border-radius: var(--radius-3, var(--radius-3-fallback));
  transition: all 0.3s var(--ease-out, var(--ease-out-fallback));
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  /* Ensure text is always white */
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s var(--ease-out, var(--ease-out-fallback));
}

.btn:hover::before {
  opacity: 1;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-5, rgba(110, 86, 207, 0.3));
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Message Button */
.btn-message {
  border-color: var(--color-info-9, #3498db);
  color: var(--color-info-11, #3498db);
  background: var(--color-info-3, rgba(52, 152, 219, 0.1));
}

.btn-message:hover {
  background: var(--color-info-9, #3498db);
  color: var(--color-info-contrast, white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant, 0 2px 8px rgba(52, 152, 219, 0.3));
}

/* Cancel Button */
.btn-cancel {
  border-color: var(--color-error-9, #e74c3c);
  color: var(--color-error-11, #e74c3c);
  background: var(--color-error-3, rgba(231, 76, 60, 0.1));
}

.btn-cancel:hover {
  background: var(--color-error-9, #e74c3c);
  color: var(--color-error-contrast, white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant, 0 2px 8px rgba(231, 76, 60, 0.3));
}

/* Review Button */
.btn-review {
  border-color: var(--color-warning-9, #f1c40f);
  color: var(--color-warning-11, #f1c40f);
  background: var(--color-warning-3, rgba(241, 196, 15, 0.1));
}

.btn-review:hover {
  background: var(--color-warning-9, #f1c40f);
  color: var(--color-warning-contrast, #000);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant, 0 2px 8px rgba(241, 196, 15, 0.3));
}

/* Refresh Button */
.refresh-btn {
  background: var(--surface-base);
  color: var(--color-accent-9, #6d28d9);
  border: 1px solid var(--color-accent-9, #6d28d9);
  border-radius: var(--radius-3, var(--radius-3-fallback));
}

.refresh-btn:hover {
  background: var(--color-accent-2, #f0ebff);
  border-color: var(--color-accent-9, #6d28d9);
  color: var(--color-accent-10, #5b21b6);
}

/* Secondary Button (Outline) */
.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--surface-overlay);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Success Outline Button */
.btn-outline-success {
  background: transparent;
  color: var(--color-success-9, #10b981);
  border: 2px solid var(--color-success-9, #10b981);
}

.btn-outline-success:hover {
  background: var(--color-success-2, #d1fae5);
}

/* Primary Action Button (Accept) */
.btn-primary {
  background: var(--color-success-9, #10b981);
  color: white;
  border: 1px solid var(--color-success-9, #10b981);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: var(--color-success-10, #059669);
  border-color: var(--color-success-10, #059669);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Like Button */
.btn-like {
  background: var(--surface-base);
  color: var(--color-error-9, #e11d48);
  border: 1px solid var(--border-default, #e5e7eb);
}

.btn-like:hover {
  background: var(--color-error-1, #fff1f2);
  border-color: var(--color-error-9, #e11d48);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.15);
}

.btn-liked {
  background: var(--color-error-2, #ffe4e6);
  color: var(--color-error-10, #be123c);
  border: 1px solid var(--color-error-5, #fda4af);
  pointer-events: none;
}

/* Rated Button */
.btn-rated {
  background: var(--color-warning-2, #fef3c7);
  color: var(--color-warning-10, #d97706);
  border: 1px solid var(--color-warning-5, #fcd34d);
  pointer-events: none;
}

/* Card Actions Container */
.card-actions {
  display: flex;
  gap: var(--space-3, 12px);
  margin-top: var(--space-4, 16px);
  flex-wrap: wrap;
}

.card-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 100px;
  padding: 0.75rem 1rem;
}


/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: bg-spin 0.75s linear infinite;
  margin-right: 0.5rem;
}

@keyframes bg-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===========================================
   Message Thread Styles (generated by render())
   =========================================== */

.thread {
  background: var(--surface-elevated);
  border-radius: var(--radius-4, 12px);
  border: 1px solid var(--border-subtle, var(--border-subtle-fallback));
  box-shadow: var(--shadow-elegant, 0 1px 4px rgba(0, 0, 0, 0.05));
  transition: all 0.3s var(--ease-out, var(--ease-out-fallback));
}

.thread:hover,
.thread:focus {
  box-shadow: var(--shadow-hover, 0 4px 12px rgba(0, 0, 0, 0.1));
  border-color: var(--color-accent-7, #8b5cf6);
}

.thread .avatar {
  border-radius: var(--radius-full, 50%);
  border: 2px solid var(--border-subtle, var(--border-subtle-fallback));
}

.thread .thread-title {
  color: var(--text-primary, #212121);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
}

.thread .thread-snippet {
  color: var(--text-secondary, #616161);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
}

.thread .thread-meta {
  color: var(--text-muted, #9e9e9e);
}

/* Thread action buttons (Accept/Decline/Cancel) */
.thread .home-link {
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  border-radius: var(--radius-3, var(--radius-3-fallback));
  transition: all 0.3s var(--ease-out, var(--ease-out-fallback));
}

.thread .home-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant, 0 2px 8px rgba(0, 0, 0, 0.15));
}

/* ===========================================
   Empty and Error States
   =========================================== */

.empty-state,
.error-state {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle, var(--border-subtle-fallback));
  border-radius: var(--radius-4, 12px);
  padding: var(--space-6, 32px);
  text-align: center;
  color: var(--text-secondary, #616161);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
}

.error-state {
  border-color: var(--color-error-5, #ffa8a8);
  color: var(--color-error-9, #e03131);
}

/* ===========================================
   Note/Status Messages
   =========================================== */

.note {
  color: var(--text-secondary, #616161);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
}

.intro {
  color: var(--text-secondary, #616161);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
}

/* ===========================================
   Review Modal Enhancements
   =========================================== */

.modal-overlay {
  backdrop-filter: var(--backdrop-blur, blur(12px));
}

.modal-content {
  background: var(--surface-base);
  border: 1px solid var(--border-subtle, var(--border-subtle-fallback));
  border-radius: var(--radius-4, 12px);
  box-shadow: var(--shadow-4, 0 8px 24px rgba(0, 0, 0, 0.15));
}

.modal-content h3 {
  color: var(--text-primary, #212121);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
}

.star-rating .star {
  color: var(--color-neutral-5, #e0e0e0);
  transition: color 0.2s var(--ease-out, var(--ease-out-fallback));
}

.star-rating .star.active {
  color: var(--color-warning-9, #f59f00);
}

.star-rating .star:hover {
  color: var(--color-warning-9, #f59f00);
}

.review-textarea {
  background: var(--surface-base);
  border: 1px solid var(--border-default, #e0e0e0);
  border-radius: var(--radius-3, var(--radius-3-fallback));
  color: var(--text-primary, #212121);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  transition: border-color 0.2s var(--ease-out, var(--ease-out-fallback));
}

.review-textarea:focus {
  border-color: var(--color-accent-7, #8b5cf6);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-2, #f0ebff);
}

/* ===========================================
   Card Actions Container
   =========================================== */

.card-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, var(--space-2-fallback));
}

/* ===========================================
   Booking List Container
   =========================================== */

.booking-list {
  display: grid;
  gap: var(--space-4, var(--space-4-fallback));
}

/* ===========================================
   Thread List Container
   =========================================== */

.thread-list {
  display: grid;
  gap: var(--space-4, var(--space-4-fallback));
}

/* ===========================================
   Mobile Responsive Adjustments
   =========================================== */

@media (max-width: 600px) {
  .booking-card {
    border-radius: var(--radius-4, 12px);
  }

  .thread {
    border-radius: var(--radius-4, 12px);
  }

  .card-actions {
    flex-direction: row;
    gap: var(--space-2, var(--space-2-fallback));
  }

  .card-actions .btn {
    flex: 1;
  }
}

/* ===========================================
   Navbar/Header Theme Overrides
   Ensures header matches body theme
   =========================================== */

.header-bar {
  background: var(--surface-base) !important;
  background-color: var(--surface-base) !important;
  border-bottom-color: var(--border-subtle) !important;
}

.header-bar .header-title {
  color: var(--text-primary) !important;
}

.header-bar .home-link {
  color: var(--text-secondary) !important;
  background: var(--surface-elevated) !important;
  border-color: transparent !important;
}

.header-bar .home-link:hover,
.header-bar .home-link:focus {
  color: var(--text-primary) !important;
  background: var(--surface-overlay) !important;
  border-color: var(--border-default) !important;
}

/* ===========================================
   Footer Theme Overrides
   Ensures footer matches body theme
   =========================================== */

footer {
  background: var(--surface-sunken) !important;
  background-color: var(--surface-sunken) !important;
  color: var(--text-secondary) !important;
  border-top-color: var(--border-subtle) !important;
}

footer .footer-btn {
  color: var(--text-secondary) !important;
}

footer .footer-btn:hover,
footer .footer-btn:focus {
  color: var(--color-accent-9) !important;
  background: var(--color-accent-2) !important;
  border-color: var(--color-accent-7) !important;
}

footer a {
  color: var(--text-secondary) !important;
}

footer a:hover,
footer a:focus {
  color: var(--color-accent-9) !important;
}

/* ===========================================
   Mobile Bottom Navigation Theme Overrides
   Ensures mobile nav matches body theme
   =========================================== */

.mobile-bottom-nav {
  background: #000000 !important;
  background-color: #000000 !important;
  border-top-color: #222222 !important;
}

.mobile-bottom-nav .nav-item {
  color: #ffffff !important;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item:focus {
  color: #ffffff !important;
  background-color: #333333 !important;
}

.mobile-bottom-nav .nav-item[aria-current="page"],
.mobile-bottom-nav .nav-item.active {
  color: var(--color-accent-9) !important;
}

.mobile-bottom-nav .nav-icon {
  background: #222222 !important;
  border-color: #333333 !important;
}

/* ===========================================
   Static Pages Theme Overrides
   Ensures terms, privacy, cookies, reset pages
   use theme tokens instead of hardcoded colors
   =========================================== */

/* Override hardcoded :root variables on static pages */
html[data-theme] main,
html[data-theme="light"] main,
html[data-theme="dark"] main,
body main {
  background: var(--surface-elevated) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

/* Override heading colors - exclude hero section */
html[data-theme] h1:not(.ll-home__hero-title),
html[data-theme] h2:not(.ll-home__section-title),
html[data-theme] h3,
html[data-theme] h4,
body h1:not(.ll-home__hero-title),
body h2:not(.ll-home__section-title),
body h3,
body h4 {
  color: var(--text-primary) !important;
}

/* Hero section text must stay gold color */
.ll-home__hero h1,
.ll-home__hero p,
.ll-home__hero-title,
.ll-home__hero-tagline {
  color: #d4a84b !important;
}

/* Override paragraph and list colors - exclude hero section */
html[data-theme] p:not(.ll-home__hero-tagline),
html[data-theme] ul,
html[data-theme] ol,
html[data-theme] li,
body p:not(.ll-home__hero-tagline),
body ul,
body ol,
body li {
  color: var(--text-secondary) !important;
}

/* Override link colors */
html[data-theme] a:not(.ll-button):not(.ll-header__nav-link):not(.btn-primary),
body a:not(.ll-button):not(.ll-header__nav-link):not(.btn-primary) {
  color: var(--color-accent-9) !important;
}

html[data-theme] a:not(.ll-button):not(.ll-header__nav-link):not(.btn-primary):hover,
html[data-theme] a:not(.ll-button):not(.ll-header__nav-link):not(.brn-primary):focus,
body a:not(.ll-button):not(.ll-header__nav-link):not(.btn-primary):hover,
body a:not(.ll-button):not(.ll-header__nav-link):not(.btn-primary):focus {
  color: var(--color-accent-10) !important;
}

/* Auth card overrides for reset, signin, signup pages */
html[data-theme] .auth-card,
html[data-theme="light"] .auth-card,
html[data-theme="dark"] .auth-card,
body .auth-card {
  background: var(--surface-elevated) !important;
  border-color: var(--border-subtle) !important;
}

/* Input overrides for static pages */
html[data-theme] .input,
html[data-theme] input[type="email"],
html[data-theme] input[type="password"],
html[data-theme] input[type="text"],
body .input,
body input[type="email"],
body input[type="password"],
body input[type="text"] {
  background: var(--surface-base) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-default) !important;
}

html[data-theme] .input:focus,
html[data-theme] input[type="email"]:focus,
html[data-theme] input[type="password"]:focus,
html[data-theme] input[type="text"]:focus,
body .input:focus,
body input[type="email"]:focus,
body input[type="password"]:focus,
body input[type="text"]:focus {
  border-color: var(--color-accent-8) !important;
  box-shadow: 0 0 0 3px var(--color-accent-3) !important;
}

/* Button overrides for static pages */
html[data-theme] .btn,
html[data-theme] button[type="submit"],
body .btn,
body button[type="submit"] {
  background: var(--color-accent-9) !important;
  color: var(--color-accent-contrast) !important;
  border-color: var(--color-accent-9) !important;
}

html[data-theme] .btn:hover,
html[data-theme] .btn:focus,
html[data-theme] button[type="submit"]:hover,
html[data-theme] button[type="submit"]:focus,
body .btn:hover,
body .btn:focus,
body button[type="submit"]:hover,
body button[type="submit"]:focus {
  background: var(--color-accent-10) !important;
  border-color: var(--color-accent-10) !important;
}

/* Status message overrides */
html[data-theme] .status.error,
body .status.error {
  color: var(--color-error-9) !important;
}

html[data-theme] .status.success,
body .status.success {
  color: var(--color-success-9) !important;
}

/* Helper text overrides */
html[data-theme] .helper-text,
html[data-theme] .lead,
html[data-theme] #page-help,
body .helper-text,
body .lead,
body #page-help {
  color: var(--text-secondary) !important;
}

/* Label overrides */
html[data-theme] label,
body label {
  color: var(--text-primary) !important;
}


/* ===========================================
   Search Page Card Styles (generated by search-page.js)
   Bridges legacy .card classes to match ll-service-card design
   =========================================== */

/* Cards container - grid layout matching services page */
#results.cards,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5, 20px);
  padding: var(--space-4, 16px);
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual card styling - matches ll-service-card */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4, 12px);
  overflow: hidden;
  transition: all var(--duration-normal, 0.2s) var(--ease-out);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--color-accent-7, #8b5cf6);
  box-shadow: var(--shadow-hover, 0 8px 24px rgba(0, 0, 0, 0.12));
  transform: translateY(-4px);
}

/* Card thumbnail - image container */
.card-thumbnail {
  width: 100%;
  height: 180px;
  background: var(--color-neutral-3, #f5f5f5);
  overflow: hidden;
  position: relative;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal, 0.2s) var(--ease-out);
}

/* SVG placeholder images */
.card-thumbnail img[src$=".svg"] {
  object-fit: cover;
  object-position: center;
}

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

/* Placeholder state for thumbnails */
.card-thumbnail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-neutral-3, #f5f5f5), var(--color-neutral-4, #e0e0e0));
}

.card-thumbnail-placeholder::before {
  content: '';
  width: 48px;
  height: 48px;
  background: var(--color-neutral-5, #bdbdbd);
  border-radius: var(--radius-3, 8px);
  opacity: 0.5;
}

/* Save button (heart icon) */
.card-save-btn {
  position: absolute;
  top: var(--space-3, 12px);
  right: var(--space-3, 12px);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full, 50%);
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast, 0.15s) var(--ease-out);
  z-index: 10;
  color: var(--text-muted, #9e9e9e);
  box-shadow: var(--shadow-1, 0 1px 3px rgba(0, 0, 0, 0.1));
}

.card-save-btn:hover {
  background: var(--color-error-2, #fff5f5);
  border-color: var(--color-error-6, #ffa8a8);
  color: var(--color-error-9, #e03131);
  transform: scale(1.1);
}

.card-save-btn.saved {
  background: var(--color-error-2, #fff5f5);
  border-color: var(--color-error-6, #ffa8a8);
  color: var(--color-error-9, #e03131);
}

.card-save-btn svg {
  width: 18px;
  height: 18px;
}

/* Card content area */
.card__top {
  padding: var(--space-4, 16px) var(--space-4, 16px) var(--space-2, 8px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2, 8px);
}

.card__top h3 {
  margin: 0;
  font-size: var(--font-size-2, 1.1rem);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
}

.card__top>div {
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-1, 4px);
  white-space: nowrap;
}

/* Rating star styling */
.card__top>div::before {
  content: '★';
  color: var(--color-warning-9, #f59f00);
}

/* Card meta info (category, location, price) */
.card__meta {
  padding: 0 var(--space-4, 16px) var(--space-3, 12px);
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Book button */
.card .btn-view-listing {
  margin: 0 var(--space-4, 16px) var(--space-4, 16px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  background: var(--color-accent-9, #6d28d9);
  color: var(--color-accent-contrast, white);
  border: none;
  border-radius: var(--radius-3, 8px);
  font-size: var(--font-size-1, 1rem);
  font-weight: var(--font-weight-semibold, 600);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  cursor: pointer;
  transition: all var(--duration-fast, 0.15s) var(--ease-out);
  text-align: center;
}

.card .btn-view-listing:hover {
  background: var(--color-accent-10, #5b21b6);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2, 0 4px 12px rgba(109, 40, 217, 0.3));
}

/* ===========================================
   Search Page Filter Pills
   =========================================== */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
  margin-bottom: var(--space-4, 16px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: var(--space-2, 8px) var(--space-3, 12px);
  background: var(--color-accent-2, #f0ebff);
  color: var(--color-accent-11, #4c1d95);
  border: 1px solid var(--color-accent-6, #c4b5fd);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  cursor: pointer;
  transition: all var(--duration-fast, 0.15s) var(--ease-out);
}

.pill:hover {
  background: var(--color-accent-3, #e9e3ff);
  border-color: var(--color-accent-7, #a78bfa);
}

/* ===========================================
   Search Page Form Inputs
   =========================================== */

.ll-search__form .input,
.ll-search__form .select,
#search-form .input,
#search-form .select {
  background: var(--surface-base);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-3, 8px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  font-size: var(--font-size-1, 1rem);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  transition: all var(--duration-fast, 0.15s) var(--ease-out);
}

.ll-search__form .input:focus,
.ll-search__form .select:focus,
#search-form .input:focus,
#search-form .select:focus {
  outline: none;
  border-color: var(--color-accent-8, #7c3aed);
  box-shadow: 0 0 0 3px var(--color-accent-3, #e9e3ff);
}

.ll-search__form .input::placeholder,
#search-form .input::placeholder {
  color: var(--text-muted, #9e9e9e);
}

/* ===========================================
   Toast Notifications (search-page.js)
   =========================================== */

.toast-notification {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
  padding: var(--space-3, 12px) var(--space-5, 20px);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-4, 12px);
  box-shadow: var(--shadow-4, 0 8px 24px rgba(0, 0, 0, 0.15));
  font-size: var(--font-size-1, 1rem);
  color: var(--text-primary);
  z-index: 10000;
  animation: slideInUp 0.3s var(--ease-out);
}

.toast-notification.success {
  border-color: var(--color-success-6, #69db7c);
  background: var(--color-success-2, #ebfbee);
  color: var(--color-success-11, #2b8a3e);
}

.toast-notification.error {
  border-color: var(--color-error-6, #ffa8a8);
  background: var(--color-error-2, #fff5f5);
  color: var(--color-error-11, #c92a2a);
}

.toast-notification.info {
  border-color: var(--color-info-6, #74c0fc);
  background: var(--color-info-2, #e7f5ff);
  color: var(--color-info-11, #1864ab);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===========================================
   Search Page Mobile Responsive
   =========================================== */

@media (max-width: 768px) {

  #results.cards,
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4, 16px);
    padding: var(--space-3, 12px);
  }

  .card-thumbnail {
    height: 150px;
  }

  .card__top h3 {
    font-size: var(--font-size-1, 1rem);
  }
}

@media (max-width: 480px) {

  #results.cards,
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Extracted from global-header.js / header-ui.js */

/* Instant merchant visibility - show when localStorage cached */
html.cached-merchant .merchant-only {
  display: flex !important;
}

html.cached-merchant .hide-for-merchant {
  display: none !important;
}

html.cached-admin .admin-only {
  display: flex !important;
}

html.cached-admin .hide-for-admin {
  display: none !important;
}

/* Hide notification bell by default, show when user is authenticated */
.ll-header__notifications-btn {
  display: none;
}

html.has-user .ll-header__notifications-btn {
  display: flex;
}

/* Region Selector Styles */
.ll-header__region-selector {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
  z-index: 1001;
}

.ll-header__region-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ll-header__region-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Dark Mode Support via data-theme attribute */
[data-theme="dark"] .ll-header__region-btn {
  background: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
}

[data-theme="dark"] .ll-header__region-btn:hover {
  background: #374151;
  border-color: #4b5563;
}

.ll-header__region-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 180px;
  display: none;
  z-index: 1002;
  overflow: hidden;
  padding: 6px;
}

[data-theme="dark"] .ll-header__region-dropdown {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.ll-header__region-dropdown.is-open {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

.ll-header__region-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #374151;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: background 0.15s;
}

[data-theme="dark"] .ll-header__region-option {
  color: #d1d5db;
}

.ll-header__region-option:hover {
  background: #f3f4f6;
}

[data-theme="dark"] .ll-header__region-option:hover {
  background: #374151;
}

.ll-header__region-option.is-selected {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

[data-theme="dark"] .ll-header__region-option.is-selected {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

@media (max-width: 768px) {
  .ll-header__region-dropdown {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: auto;
    width: 90%;
    max-width: 280px;
    margin: 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 6px;
    animation: fadeIn 0.15s ease-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 2000;
  }

  [data-theme="dark"] .ll-header__region-dropdown {
    border-color: #374151;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  }

  .ll-header__region-option {
    padding: 14px 16px;
    font-size: 1rem;
    /* Larger touch target */
  }
}

/* Region Switch Confirmation Modal */
.ll-region-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

.ll-region-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

.ll-region-modal-overlay.is-open {
  display: flex;
}

.ll-region-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 440px;
  width: calc(100% - 32px);
  margin: 16px;
  animation: scaleIn 0.2s ease-out;
  overflow: hidden;
}

[data-theme="dark"] .ll-region-modal {
  background: #1f2937;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ll-region-modal__header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .ll-region-modal__header {
  border-bottom-color: #374151;
}

.ll-region-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-theme="dark"] .ll-region-modal__title {
  color: #f3f4f6;
}

.ll-region-modal__icon {
  width: 32px;
  height: 32px;
  background: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

[data-theme="dark"] .ll-region-modal__icon {
  background: rgba(37, 99, 235, 0.2);
}

.ll-region-modal__body {
  padding: 24px;
}

.ll-region-modal__message {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #374151;
}

[data-theme="dark"] .ll-region-modal__message {
  color: #d1d5db;
}

.ll-region-modal__info {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin: 0;
}

[data-theme="dark"] .ll-region-modal__info {
  background: #111827;
  border-color: #374151;
}

.ll-region-modal__info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: #4b5563;
}

[data-theme="dark"] .ll-region-modal__info-item {
  color: #9ca3af;
}

.ll-region-modal__info-item:last-child {
  margin-bottom: 0;
}

.ll-region-modal__info-icon {
  color: #10b981;
  font-weight: 600;
  flex-shrink: 0;
}

.ll-region-modal__footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.ll-region-modal__btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.ll-region-modal__btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ll-region-modal__btn--cancel {
  background: #f3f4f6;
  color: #374151;
}

.ll-region-modal__btn--cancel:hover {
  background: #e5e7eb;
}

[data-theme="dark"] .ll-region-modal__btn--cancel {
  background: #374151;
  color: #d1d5db;
}

[data-theme="dark"] .ll-region-modal__btn--cancel:hover {
  background: #4b5563;
}

.ll-region-modal__btn--confirm {
  background: #2563eb;
  color: #ffffff;
}

.ll-region-modal__btn--confirm:hover {
  background: #1d4ed8;
}

[data-theme="dark"] .ll-region-modal__btn--confirm {
  background: #3b82f6;
}

[data-theme="dark"] .ll-region-modal__btn--confirm:hover {
  background: #2563eb;
}

@media (max-width: 480px) {
  .ll-region-modal__footer {
    flex-direction: column-reverse;
  }

  .ll-region-modal__btn {
    width: 100%;
  }
}

/* === Notification Bell Styles === */
.ll-header__notifications-btn {
  position: relative;
}

.ll-header__notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4), 0 0 0 2px var(--background);
  line-height: 1;
}

/* Dark mode badge enhancement */
[data-theme="dark"] .ll-header__notification-badge {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.6), 0 0 0 2px var(--background);
}

/* === Message Badge Styles === */
.ll-header__messages-link {
  position: relative;
}

.ll-header__message-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4), 0 0 0 2px var(--background);
  line-height: 1;
}

[data-theme="dark"] .ll-header__message-badge {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.6), 0 0 0 2px var(--background);
}

/* Notifications Dropdown - Glassmorphism */
.ll-header__notifications-dropdown {
  position: absolute;
  top: 100%;
  right: 80px;
  margin-top: 8px;
  width: 380px;
  max-height: 500px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  overflow: hidden;
}

/* Dark mode glassmorphism */
[data-theme="dark"] .ll-header__notifications-dropdown {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ll-header__notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .ll-header__notifications-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.ll-header__notifications-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ll-header__mark-all-read {
  background: none;
  border: none;
  color: var(--color-accent-11);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.ll-header__mark-all-read:hover {
  background: var(--surface-hover);
}

.ll-header__notifications-list {
  max-height: 420px;
  overflow-y: auto;
}

.ll-header__notifications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-tertiary);
}

.ll-header__notifications-empty p {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.ll-header__notification-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.ll-header__notification-item:hover {
  background: var(--surface-hover);
}

.ll-header__notification-item.unread {
  background: rgba(59, 130, 246, 0.05);
}

.ll-header__notification-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-9);
}

.ll-header__notification-content {
  padding-left: 12px;
  padding-right: 40px;
}

.ll-header__notification-content h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ll-header__notification-content p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ll-header__notification-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Delete Button Styles */
.ll-header__notification-delete {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-header__notification-item:hover .ll-header__notification-delete {
  opacity: 1;
  color: var(--color-red-9);
}

.ll-header__notification-delete:hover {
  background: var(--surface-hover);
  color: var(--color-red-11);
}

/* Header Actions */
.ll-header__notification-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ll-header__clear-read {
  background: none;
  border: none;
  color: var(--color-red-9);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.ll-header__clear-read:hover {
  background: var(--surface-hover);
  color: var(--color-red-11);
}

@media (max-width: 768px) {
  .ll-header__notifications-dropdown {
    right: 20px;
    width: calc(100vw - 40px);
    max-width: 380px;
  }
}

/* Extracted from global-header.js / header-ui.js */

/* Instant merchant visibility - show when localStorage cached */
html.cached-merchant .merchant-only {
  display: flex !important;
}

html.cached-merchant .hide-for-merchant {
  display: none !important;
}

html.cached-admin .admin-only {
  display: flex !important;
}

html.cached-admin .hide-for-admin {
  display: none !important;
}

/* Hide notification bell by default, show when user is authenticated */
.ll-header__notifications-btn {
  display: none;
}

html.has-user .ll-header__notifications-btn {
  display: flex;
}

/* Region Selector Styles */
.ll-header__region-selector {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
  z-index: 1001;
}

.ll-header__region-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ll-header__region-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
  .ll-header__region-code {
    display: none;
  }

  .ll-header__region-btn {
    padding: 8px;
    /* Square button */
    gap: 0;
  }

  .ll-header__region-selector {
    margin-right: 0;
  }
}

/* Dark Mode Support via data-theme attribute */
[data-theme="dark"] .ll-header__region-btn {
  background: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
}

[data-theme="dark"] .ll-header__region-btn:hover {
  background: #374151;
  border-color: #4b5563;
}

.ll-header__region-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 180px;
  display: none;
  z-index: 1002;
  overflow: hidden;
  padding: 6px;
}

[data-theme="dark"] .ll-header__region-dropdown {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.ll-header__region-dropdown.is-open {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

.ll-header__region-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #374151;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: background 0.15s;
}

[data-theme="dark"] .ll-header__region-option {
  color: #d1d5db;
}

.ll-header__region-option:hover {
  background: #f3f4f6;
}

[data-theme="dark"] .ll-header__region-option:hover {
  background: #374151;
}

.ll-header__region-option.is-selected {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

[data-theme="dark"] .ll-header__region-option.is-selected {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

@media (max-width: 768px) {
  .ll-header__region-dropdown {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: auto;
    width: 90%;
    max-width: 280px;
    margin: 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 6px;
    animation: fadeIn 0.15s ease-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 2000;
  }

  [data-theme="dark"] .ll-header__region-dropdown {
    border-color: #374151;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  }

  .ll-header__region-option {
    padding: 14px 16px;
    font-size: 1rem;
    /* Larger touch target */
  }
}

/* Region Switch Confirmation Modal */
.ll-region-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

.ll-region-modal-overlay.is-open {
  display: flex;
}

.ll-region-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 440px;
  width: calc(100% - 32px);
  margin: 16px;
  animation: scaleIn 0.2s ease-out;
  overflow: hidden;
}

[data-theme="dark"] .ll-region-modal {
  background: #1f2937;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ll-region-modal__header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .ll-region-modal__header {
  border-bottom-color: #374151;
}

.ll-region-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-theme="dark"] .ll-region-modal__title {
  color: #f3f4f6;
}

.ll-region-modal__icon {
  width: 32px;
  height: 32px;
  background: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

[data-theme="dark"] .ll-region-modal__icon {
  background: rgba(37, 99, 235, 0.2);
}

.ll-region-modal__body {
  padding: 24px;
}

.ll-region-modal__message {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #374151;
}

[data-theme="dark"] .ll-region-modal__message {
  color: #d1d5db;
}

.ll-region-modal__info {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin: 0;
}

[data-theme="dark"] .ll-region-modal__info {
  background: #111827;
  border-color: #374151;
}

.ll-region-modal__info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: #4b5563;
}

[data-theme="dark"] .ll-region-modal__info-item {
  color: #9ca3af;
}

.ll-region-modal__info-item:last-child {
  margin-bottom: 0;
}

.ll-region-modal__info-icon {
  color: #10b981;
  font-weight: 600;
  flex-shrink: 0;
}

.ll-region-modal__footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.ll-region-modal__btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.ll-region-modal__btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ll-region-modal__btn--cancel {
  background: #f3f4f6;
  color: #374151;
}

.ll-region-modal__btn--cancel:hover {
  background: #e5e7eb;
}

[data-theme="dark"] .ll-region-modal__btn--cancel {
  background: #374151;
  color: #d1d5db;
}

[data-theme="dark"] .ll-region-modal__btn--cancel:hover {
  background: #4b5563;
}

.ll-region-modal__btn--confirm {
  background: #2563eb;
  color: #ffffff;
}

.ll-region-modal__btn--confirm:hover {
  background: #1d4ed8;
}

[data-theme="dark"] .ll-region-modal__btn--confirm {
  background: #3b82f6;
}

[data-theme="dark"] .ll-region-modal__btn--confirm:hover {
  background: #2563eb;
}

@media (max-width: 480px) {
  .ll-region-modal__footer {
    flex-direction: column-reverse;
  }

  .ll-region-modal__btn {
    width: 100%;
  }
}

/* === Notification Bell Styles === */
.ll-header__notifications-btn {
  position: relative;
}

.ll-header__notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4), 0 0 0 2px var(--background);
  line-height: 1;
}

/* Dark mode badge enhancement */
[data-theme="dark"] .ll-header__notification-badge {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.6), 0 0 0 2px var(--background);
}

/* === Message Badge Styles === */
.ll-header__messages-link {
  position: relative;
}

.ll-header__message-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4), 0 0 0 2px var(--background);
  line-height: 1;
}

[data-theme="dark"] .ll-header__message-badge {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.6), 0 0 0 2px var(--background);
}

/* Notifications Dropdown - Glassmorphism */
.ll-header__notifications-dropdown {
  position: absolute;
  top: 100%;
  right: 80px;
  margin-top: 8px;
  width: 380px;
  max-height: 500px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  overflow: hidden;
}

/* Dark mode glassmorphism */
[data-theme="dark"] .ll-header__notifications-dropdown {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ll-header__notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .ll-header__notifications-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.ll-header__notifications-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ll-header__mark-all-read {
  background: none;
  border: none;
  color: var(--color-accent-11);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.ll-header__mark-all-read:hover {
  background: var(--surface-hover);
}

.ll-header__notifications-list {
  max-height: 420px;
  overflow-y: auto;
}

.ll-header__notifications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-tertiary);
}

.ll-header__notifications-empty p {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.ll-header__notification-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.ll-header__notification-item:hover {
  background: var(--surface-hover);
}

.ll-header__notification-item.unread {
  background: rgba(59, 130, 246, 0.05);
}

.ll-header__notification-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-9);
}

.ll-header__notification-content {
  padding-left: 12px;
  padding-right: 40px;
}

.ll-header__notification-content h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ll-header__notification-content p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ll-header__notification-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Delete Button Styles */
.ll-header__notification-delete {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-header__notification-item:hover .ll-header__notification-delete {
  opacity: 1;
  color: var(--color-red-9);
}

.ll-header__notification-delete:hover {
  background: var(--surface-hover);
  color: var(--color-red-11);
}

/* Header Actions */
.ll-header__notification-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ll-header__clear-read {
  background: none;
  border: none;
  color: var(--color-red-9);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.ll-header__clear-read:hover {
  background: var(--surface-hover);
  color: var(--color-red-11);
}

@media (max-width: 768px) {
  .ll-header__notifications-dropdown {
    right: 20px;
    width: calc(100vw - 40px);
    max-width: 380px;
  }
}