/* SnapSpot Paris - Web Application Styles */
/* Design system extracted from Unity USS stylesheets */

:root {
  /* Primary Colors */
  --primary: rgb(70, 130, 220);
  --primary-dark: rgb(50, 110, 200);
  --primary-light: rgb(239, 246, 255);
  --primary-bg: rgb(240, 248, 255);

  /* Status Colors */
  --success: rgb(80, 180, 80);
  --success-light: rgb(195, 230, 200);
  --warning: rgb(255, 180, 50);
  --warning-light: rgb(240, 225, 180);
  --error: rgb(220, 60, 80);
  --error-light: rgb(235, 195, 195);

  /* Neutrals */
  --white: #ffffff;
  --bg: rgb(250, 250, 250);
  --bg-secondary: rgb(245, 245, 250);
  --border: rgb(230, 230, 240);
  --border-light: rgb(240, 240, 240);
  --text-primary: rgb(30, 30, 50);
  --text-secondary: rgb(120, 120, 140);
  --text-muted: rgb(160, 160, 180);
  --dark: rgb(50, 50, 50);
  --dark-bg: rgb(25, 35, 60);

  /* Accent */
  --gold: rgb(255, 193, 7);
  --star: rgb(255, 180, 0);

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 20px;
  --sp-2xl: 24px;
  --sp-3xl: 32px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 40px;
  --r-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* App dimensions */
  --app-max-width: 100%;
  --tab-bar-height: 70px;
  --header-height: 60px;
  --sidebar-width: 240px;
}

/* Dark Mode */
[data-theme="dark"] {
  --white: rgb(30, 30, 40);
  --bg: rgb(20, 20, 30);
  --bg-secondary: rgb(35, 35, 50);
  --border: rgb(55, 55, 70);
  --border-light: rgb(45, 45, 60);
  --text-primary: rgb(230, 230, 240);
  --text-secondary: rgb(170, 170, 190);
  --text-muted: rgb(120, 120, 140);
  --dark: rgb(220, 220, 230);
  --primary-light: rgba(70, 130, 220, 0.15);
  --primary-bg: rgba(70, 130, 220, 0.1);
  --success-light: rgba(80, 180, 80, 0.2);
  --warning-light: rgba(255, 180, 50, 0.2);
  --error-light: rgba(220, 60, 80, 0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="dark"] .screen-header {
  background: rgb(25, 25, 35);
  border-color: var(--border);
}

[data-theme="dark"] #tab-bar {
  background: rgb(25, 25, 35);
  border-color: var(--border);
}

[data-theme="dark"] #sidebar {
  background: rgb(25, 25, 35);
  border-color: var(--border);
}

[data-theme="dark"] .btn-back {
  background: var(--bg-secondary);
  border-color: var(--border);
  color: var(--text-primary);
}

[data-theme="dark"] .card-form input {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] .support-contact {
  background: var(--bg-secondary);
}

[data-theme="dark"] .notification-panel {
  background: rgb(30, 30, 40);
}

[data-theme="dark"] .payment-card-item {
  background: var(--bg-secondary);
  border-color: var(--border);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* App Shell */
#app {
  width: 100%;
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Desktop layout: sidebar + main content */
#app-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Sidebar (desktop only, hidden on mobile) */
#sidebar {
  display: none;
}

/* Main content area */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Screen Container */
#screen-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: var(--tab-bar-height);
  -webkit-overflow-scrolling: touch;
}

#screen-container::-webkit-scrollbar {
  display: none;
}

.screen {
  display: none;
  animation: fadeIn 0.25s ease;
}

.screen.active {
  display: block;
}

#welcome-screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==================== TAB BAR ==================== */
#tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--tab-bar-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 var(--sp-sm);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: var(--sp-sm) var(--sp-md);
  border: none;
  background: none;
  color: var(--text-muted);
  transition: color 0.2s;
  font-size: 10px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.tab-item .tab-icon {
  font-size: 22px;
  line-height: 1;
}

.tab-item.active {
  color: var(--primary);
}

.tab-item:hover {
  color: var(--primary);
}

/* ==================== COMMON COMPONENTS ==================== */

/* Headers */
.screen-header {
  display: flex;
  align-items: center;
  padding: var(--sp-lg) var(--sp-xl);
  gap: var(--sp-md);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
  border-bottom: 1px solid var(--border-light);
}

.screen-header h1 {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}

.btn-back {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-back:hover {
  background: var(--bg-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 12px 24px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: var(--r-md);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--r-xl);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  padding: var(--sp-lg);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-clickable {
  cursor: pointer;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: rgb(40, 120, 40);
}

.badge-warning {
  background: var(--warning-light);
  color: rgb(160, 120, 0);
}

.badge-error {
  background: var(--error-light);
  color: var(--error);
}

.badge-gold {
  background: rgb(255, 245, 220);
  color: rgb(180, 130, 0);
}

/* Tags / Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.chip:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

/* Search */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  margin: 0 var(--sp-xl);
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--primary);
}

.search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

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

.search-icon {
  font-size: 16px;
  color: var(--text-muted);
}

/* Stars */
.stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
}

/* Avatar */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--primary-light), rgb(200, 220, 255));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.avatar-sm { width: 36px; height: 36px; font-size: 15px; }
.avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.avatar-xl { width: 80px; height: 80px; font-size: 32px; }

/* Verified badge */
.verified {
  color: var(--primary);
  font-size: 14px;
}

/* Section */
.section {
  padding: var(--sp-xl);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title .see-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  border: none;
  background: none;
}

/* Horizontal scroll */
.h-scroll {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  padding-bottom: var(--sp-sm);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--sp-lg) 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-lg);
}

.empty-state h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
}

.empty-state p {
  font-size: 13px;
  margin-bottom: var(--sp-xl);
}

/* ==================== WELCOME SCREEN ==================== */
#welcome-screen {
  min-height: 100vh;
  background: linear-gradient(160deg, rgb(25, 35, 60) 0%, rgb(40, 60, 100) 50%, rgb(70, 130, 220) 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 32px;
  text-align: center;
  color: var(--white);
}

#welcome-screen > * {
  flex-shrink: 0;
}

.welcome-logo {
  font-size: 56px;
  margin-bottom: var(--sp-md);
}

.welcome-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: var(--sp-sm);
  letter-spacing: -0.5px;
}

.welcome-subtitle {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.5;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-bottom: 24px;
  width: 100%;
  max-width: 300px;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  text-align: left;
}

.welcome-feature .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.welcome-feature .feature-text {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
}

.welcome-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  width: 100%;
  max-width: 300px;
}

.welcome-buttons .btn-primary {
  background: var(--white);
  color: var(--dark-bg);
}

.welcome-buttons .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.welcome-buttons .btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.welcome-terms {
  font-size: 11px;
  opacity: 0.5;
  margin-top: var(--sp-xl);
  line-height: 1.4;
}

.switch-app-link {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.switch-app-link:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

/* ==================== AUTH SCREENS ==================== */
#welcome-screen,
#login-screen,
#signup-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

#login-screen,
#signup-screen {
  background: linear-gradient(135deg, var(--dark-bg) 0%, rgb(40, 55, 90) 100%);
}

#login-screen.active,
#signup-screen.active {
  display: flex;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: var(--sp-2xl);
  text-align: center;
}

.auth-container .welcome-logo {
  font-size: 48px;
  margin-bottom: var(--sp-lg);
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-xs);
}

.auth-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-2xl);
}

.auth-form {
  text-align: left;
}

.auth-form .form-group {
  margin-bottom: var(--sp-lg);
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--sp-xs);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.auth-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.12);
}

.form-row {
  display: flex;
  gap: var(--sp-md);
}

.form-row .form-group {
  flex: 1;
}

.auth-error {
  color: var(--error);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: var(--sp-sm);
  text-align: center;
}

.auth-footer {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-top: var(--sp-xl);
}

.auth-link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-link-forgot {
  text-align: right;
  margin-top: -4px;
  margin-bottom: var(--sp-md);
}

.auth-link-forgot .auth-link {
  font-size: 13px;
  font-weight: 500;
}

.auth-success {
  color: #4CAF50;
  font-size: 13px;
  min-height: 20px;
  margin-bottom: var(--sp-sm);
  text-align: center;
  background: rgba(76, 175, 80, 0.1);
  border-radius: var(--radius-md);
  padding: var(--sp-sm) var(--sp-md);
  line-height: 1.5;
}

.auth-success .auth-link {
  display: inline-block;
  margin-top: 8px;
}

#login-screen .btn-back,
#signup-screen .btn-back,
#forgot-password-screen .btn-back {
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: var(--sp-sm) 0;
  margin-bottom: var(--sp-lg);
  display: block;
  text-align: left;
}

#login-screen .btn-back:hover,
#signup-screen .btn-back:hover {
  color: var(--white);
  opacity: 0.8;
}

/* Role Selector */
.role-selector {
  display: flex;
  gap: var(--sp-md);
  margin-top: var(--sp-xs);
}

.role-btn {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: var(--sp-lg) var(--sp-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.role-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.role-btn.active {
  background: rgba(70, 130, 220, 0.15);
  border-color: var(--primary);
}

.role-icon {
  display: block;
  font-size: 28px;
  margin-bottom: var(--sp-xs);
}

.role-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.role-desc {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ==================== HOME SCREEN ==================== */

.no-session-card {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-2xl) var(--sp-xl);
  text-align: center;
}

.no-session-icon {
  font-size: 36px;
  margin-bottom: var(--sp-sm);
}

.no-session-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-xs);
}

.no-session-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-lg);
  line-height: 1.4;
}

.home-header {
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-lg);
}

.home-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-greeting h1 {
  font-size: 22px;
  font-weight: 700;
}

.home-greeting .greeting-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.notification-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--error);
  display: none;
}

.notification-dot.visible {
  display: block;
}

.notification-wrapper {
  position: relative;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}

.notification-panel.hidden {
  display: none;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg) var(--sp-lg) var(--sp-md);
  border-bottom: 1px solid var(--border-light);
}

.notification-panel-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.notif-mark-all:hover {
  text-decoration: underline;
}

.notification-panel-body {
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-light);
}

.notif-item:hover {
  background: var(--bg-secondary);
}

.notif-item.unread {
  background: var(--primary-light);
}

.notif-item.unread:hover {
  background: rgb(225, 238, 255);
}

.notif-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--r-sm);
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notif-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.notif-empty {
  padding: var(--sp-3xl) var(--sp-xl);
  text-align: center;
}

.notif-empty-icon {
  font-size: 36px;
  margin-bottom: var(--sp-md);
  opacity: 0.4;
}

.notif-empty p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-xs);
}

.notif-empty span {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 400px) {
  .notification-panel {
    width: calc(100vw - 32px);
    right: -8px;
  }
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgb(59, 130, 246), rgb(99, 102, 241));
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  margin: var(--sp-lg) var(--sp-xl);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s;
}

.cta-banner:hover {
  transform: scale(1.01);
}

.cta-banner h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cta-banner p {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: var(--sp-md);
}

.cta-banner .cta-stats {
  display: flex;
  gap: var(--sp-lg);
}

.cta-stat {
  background: rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
}

/* Next reservation card */
.next-reservation-card {
  margin: var(--sp-lg) var(--sp-xl);
}

.next-reservation-card .card {
  background: linear-gradient(135deg, rgb(245, 250, 255), rgb(240, 248, 255));
  border-color: rgb(200, 220, 245);
}

.next-res-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
}

.next-res-header .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.next-res-info {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.next-res-details h4 {
  font-size: 14px;
  font-weight: 600;
}

.next-res-details p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Spot Cards */
.spot-card {
  min-width: 140px;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

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

.spot-card-image {
  height: 100px;
  background: linear-gradient(135deg, var(--primary-light), rgb(220, 235, 255));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
}

.spot-card-image .trending-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  background: rgba(255,255,255,0.9);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

.spot-card-info {
  padding: var(--sp-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.spot-card-info h4 {
  font-size: 13px;
  font-weight: 600;
}

.spot-card-info p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Photographer Cards */
.photographer-card {
  display: flex;
  gap: var(--sp-lg);
  padding: var(--sp-lg);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  margin-bottom: var(--sp-md);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.photographer-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.photographer-card .ph-info {
  flex: 1;
  min-width: 0;
}

.photographer-card .ph-name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.photographer-card .ph-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.photographer-card .ph-rating .star {
  color: var(--gold);
}

.photographer-card .ph-specialties {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.photographer-card .ph-specialties .tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.photographer-card .ph-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
}

.photographer-card .ph-meta {
  display: flex;
  gap: var(--sp-md);
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Featured photographer */
.featured-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin: 0 var(--sp-xl);
  cursor: pointer;
}

.featured-banner {
  height: 120px;
  background: linear-gradient(135deg, rgb(99, 102, 241), rgb(139, 92, 246));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
}

.featured-banner .featured-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
}

.featured-body {
  padding: var(--sp-lg);
  display: flex;
  gap: var(--sp-lg);
  align-items: center;
}

.featured-body .ph-info h3 {
  font-size: 16px;
  font-weight: 700;
}

/* ==================== EXPLORER SCREEN ==================== */
.explorer-tabs {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xl);
  border-bottom: 1px solid var(--border-light);
}

.explorer-tab {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.explorer-tab.active {
  background: var(--primary);
  color: var(--white);
}

.filter-bar {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xl);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) var(--sp-xl);
  font-size: 12px;
  color: var(--text-secondary);
}

.sort-bar select {
  border: none;
  background: none;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.photographer-list {
  padding: 0 var(--sp-xl) var(--sp-xl);
}

/* ==================== FEED ==================== */

.feed-list {
  padding: 0 var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.feed-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-lg);
}

.feed-author {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.feed-author-info {
  display: flex;
  flex-direction: column;
}

.feed-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.feed-author-name .verified {
  color: var(--primary);
  font-size: 11px;
}

.feed-spot {
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
}

.feed-spot:hover {
  text-decoration: underline;
}

.feed-time {
  font-size: 11px;
  color: var(--text-muted);
}

.feed-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

.feed-card-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-lg);
}

.feed-snappy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

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

.feed-snappy-btn.snapped {
  background: linear-gradient(135deg, #fff7e6, #fff0cc);
  border-color: var(--warning);
}

.snappy-icon {
  font-size: 16px;
}

.snappy-count {
  font-weight: 700;
  color: var(--text-primary);
}

.snappy-label {
  color: var(--text-secondary);
  font-size: 12px;
}

.feed-reserve-btn {
  margin-left: auto;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.feed-reserve-btn:hover {
  background: var(--primary-dark);
}

.feed-caption {
  padding: 0 var(--sp-lg) var(--sp-sm);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.feed-caption strong {
  font-weight: 600;
  margin-right: 4px;
}

.feed-tags {
  padding: 0 var(--sp-lg) var(--sp-md);
}

.feed-tag {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  margin-right: 6px;
}

.feed-tag:hover {
  text-decoration: underline;
}

.feed-empty {
  text-align: center;
  padding: var(--sp-3xl) var(--sp-xl);
}

.feed-empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-md);
  opacity: 0.4;
}

.feed-empty h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-xs);
}

.feed-empty p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feed-photographer-reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-lg);
  background: linear-gradient(135deg, var(--primary-light), rgb(237, 233, 254));
  border-top: 1px solid var(--border-light);
  animation: feedReveal 0.3s ease;
}

@keyframes feedReveal {
  from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
  to { opacity: 1; max-height: 80px; }
}

.feed-author-label {
  font-size: 11px;
  color: var(--text-muted);
}

.feed-photographer-hidden {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-secondary);
}

.feed-hidden-icon {
  font-size: 14px;
}

.feed-spot-placeholder {
  display: block;
}

@media (min-width: 768px) {
  .feed-list {
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ==================== PHOTOGRAPHER DETAIL ==================== */
.ph-detail-banner {
  height: 160px;
  background: linear-gradient(135deg, rgb(99, 102, 241), rgb(59, 130, 246));
  position: relative;
}

.ph-detail-avatar {
  position: absolute;
  bottom: -32px;
  left: var(--sp-xl);
  width: 80px;
  height: 80px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--primary-light), rgb(200, 220, 255));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.ph-detail-info {
  padding: 44px var(--sp-xl) var(--sp-lg);
}

.ph-detail-name {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ph-detail-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
}

.ph-detail-rating .stars { font-size: 14px; }
.ph-detail-rating .count { color: var(--text-secondary); font-size: 13px; }

.ph-detail-languages {
  display: flex;
  gap: 6px;
  margin-top: var(--sp-md);
}

.lang-badge {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ph-detail-bio {
  padding: 0 var(--sp-xl);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.ph-detail-stats {
  display: flex;
  gap: var(--sp-lg);
  padding: var(--sp-xl);
  margin: var(--sp-lg) var(--sp-xl);
  border-radius: var(--r-xl);
  background: var(--bg-secondary);
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Packs */
.pack-card {
  border: 2px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-md);
  cursor: pointer;
  transition: all 0.2s;
}

.pack-card:hover, .pack-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

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

.pack-name {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 15px;
  font-weight: 600;
}

.pack-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.pack-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.pack-details {
  display: flex;
  gap: var(--sp-lg);
  margin-top: var(--sp-md);
  font-size: 11px;
  color: var(--text-muted);
}

.pack-detail-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Reviews */
.review-card {
  padding: var(--sp-lg);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  margin-bottom: var(--sp-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-sm);
}

.review-author {
  font-size: 13px;
  font-weight: 600;
}

.review-date {
  font-size: 11px;
  color: var(--text-muted);
}

.review-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Sticky CTA */
.sticky-cta {
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: var(--sp-lg) var(--sp-xl);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: var(--sp-md);
  z-index: 10;
}

.sticky-cta .btn {
  flex: 1;
}

/* ==================== BOOKING FLOW ==================== */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-lg) var(--sp-xl);
}

.progress-step {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--border);
  transition: all 0.3s;
}

.progress-step.active {
  width: 28px;
  background: var(--primary);
  border-radius: 5px;
}

.progress-step.done {
  background: var(--success);
}

.progress-line {
  width: 24px;
  height: 2px;
  background: var(--border);
}

.progress-line.done {
  background: var(--success);
}

/* Mini photographer card */
.mini-photographer {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  margin: 0 var(--sp-xl) var(--sp-lg);
  border-radius: var(--r-xl);
  background: var(--bg-secondary);
}

.mini-photographer .info h4 {
  font-size: 14px;
  font-weight: 600;
}

.mini-photographer .info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Calendar */
.calendar {
  margin: 0 var(--sp-xl);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg);
  background: var(--bg-secondary);
}

.calendar-header h4 {
  font-size: 14px;
  font-weight: 600;
}

.calendar-nav {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: var(--sp-md);
}

.calendar-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--primary-light);
}

.calendar-day.selected {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.calendar-day.today {
  border: 2px solid var(--primary);
}

.calendar-day.disabled {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: default;
}

.calendar-day.empty {
  cursor: default;
}

/* Time slots */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  padding: var(--sp-lg) var(--sp-xl);
}

.time-slot {
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.time-slot:hover {
  border-color: var(--primary);
}

.time-slot.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Spot selection */
.spot-select-card {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  border-radius: var(--r-xl);
  border: 2px solid var(--border-light);
  margin-bottom: var(--sp-md);
  cursor: pointer;
  transition: all 0.2s;
}

.spot-select-card:hover {
  border-color: var(--primary);
}

.spot-select-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.spot-select-emoji {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.spot-select-info {
  flex: 1;
}

.spot-select-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.spot-select-info p {
  font-size: 11px;
  color: var(--text-secondary);
}

.spot-select-tags {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.spot-select-tags .tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: var(--r-pill);
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.spot-check {
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  font-size: 12px;
  color: transparent;
}

.spot-select-card.selected .spot-check {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Booking summary */
.booking-summary {
  margin: 0 var(--sp-xl);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.summary-section {
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--border-light);
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.summary-value {
  font-size: 14px;
  font-weight: 600;
}

.summary-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Price breakdown */
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.price-row.total {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: var(--sp-md);
  margin-top: var(--sp-sm);
}

/* Booking confirmation */
.booking-confirmation {
  text-align: center;
  padding: 48px var(--sp-xl);
}

.confirmation-check {
  width: 80px;
  height: 80px;
  border-radius: var(--r-full);
  background: var(--success);
  color: var(--white);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-xl);
  animation: scaleIn 0.4s ease;
}

.booking-confirmation h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.booking-confirmation .subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2xl);
}

.confirmation-code {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 10px 20px;
  border-radius: var(--r-md);
  display: inline-block;
  margin-top: var(--sp-lg);
  letter-spacing: 1px;
}

/* ==================== SPOT DETAIL ==================== */
.spot-hero {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}

.spot-hero.tour-eiffel { background: linear-gradient(135deg, #f6d365, #fda085); }
.spot-hero.montmartre { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.spot-hero.louvre { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.spot-hero.tuileries { background: linear-gradient(135deg, #96e6a1, #d4fc79); }
.spot-hero.pont-des-arts { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.spot-hero.notre-dame { background: linear-gradient(135deg, #cfd9df, #e2ebf0); }
.spot-hero.arc-de-triomphe { background: linear-gradient(135deg, #f093fb, #f5576c); }

.spot-detail-info {
  padding: var(--sp-xl);
}

.spot-detail-name {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.spot-detail-address {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.spot-detail-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: var(--sp-md);
}

.spot-stats {
  display: flex;
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
  padding: var(--sp-lg);
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
}

.spot-stats .stat-item { flex: 1; text-align: center; }
.spot-stats .stat-value { font-size: 16px; font-weight: 700; }
.spot-stats .stat-label { font-size: 10px; color: var(--text-secondary); }

.spot-tags {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
  flex-wrap: wrap;
}

.spot-best-times {
  margin-top: var(--sp-xl);
}

.best-time-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--warning-light);
  font-size: 12px;
  margin: 0 6px 6px 0;
}

/* ==================== RESERVATIONS SCREEN ==================== */
.res-tabs {
  display: flex;
  padding: 0 var(--sp-xl);
  gap: var(--sp-lg);
  border-bottom: 1px solid var(--border-light);
}

.res-tab {
  padding: var(--sp-md) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.res-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.reservation-card {
  margin: var(--sp-md) var(--sp-xl);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.res-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--bg-secondary);
}

.res-date {
  font-size: 13px;
  font-weight: 600;
}

.res-card-body {
  padding: var(--sp-lg);
}

.res-photographer {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.res-photographer h4 {
  font-size: 14px;
  font-weight: 600;
}

.res-photographer p {
  font-size: 12px;
  color: var(--text-secondary);
}

.res-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  font-size: 12px;
  color: var(--text-secondary);
}

.res-detail-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.res-card-actions {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid var(--border-light);
}

/* ==================== MESSAGES / CHAT ==================== */
.conversation-card {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-xl);
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border-light);
}

.conversation-card:hover {
  background: var(--bg-secondary);
}

.conv-info {
  flex: 1;
  min-width: 0;
}

.conv-name {
  font-size: 14px;
  font-weight: 600;
}

.conv-last-msg {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.conv-meta {
  text-align: right;
}

.conv-time {
  font-size: 11px;
  color: var(--text-muted);
}

.conv-unread {
  width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-top: 4px;
}

/* Consent group (signup RGPD) */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}
.consent-item input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.consent-item a {
  color: var(--primary);
  text-decoration: underline;
}

/* Image Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.2s ease;
  touch-action: none;
}
.lightbox.hidden { display: none; }
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  box-sizing: border-box;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-close:active { background: rgba(255, 255, 255, 0.25); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.lightbox-nav:hover,
.lightbox-nav:active { background: rgba(255, 255, 255, 0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav.hidden { display: none; }
.lightbox-caption {
  position: absolute;
  bottom: max(60px, calc(env(safe-area-inset-bottom) + 60px));
  left: 20px;
  right: 20px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.lightbox-caption:empty { display: none; }
.lightbox-counter {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
}
@media (max-width: 600px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 28px; }
}
/* Zoomable image trigger style */
.gallery-item img,
.portfolio-item img,
.feed-card-image img {
  cursor: zoom-in;
}

/* Chat view */
#chat-detail-screen.active #chat-detail-content {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--white);
}
body:has(#chat-detail-screen.active) #tab-bar {
  display: none !important;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 12px var(--sp-xl);
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
  flex-shrink: 0;
  z-index: 10;
}

.chat-header-info h3 {
  font-size: 15px;
  font-weight: 600;
}

.chat-header-info .online {
  font-size: 11px;
  color: var(--success);
}

.chat-messages {
  flex: 1;
  padding: var(--sp-lg) var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-date-separator {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: var(--sp-sm) 0;
}

.message-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  font-size: 13px;
  line-height: 1.5;
}

.message-bubble.received {
  background: var(--bg-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message-bubble.sent {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.6;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px var(--sp-xl);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light);
  background: var(--white);
  flex-shrink: 0;
}

.chat-input input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 13px;
  outline: none;
  background: var(--bg-secondary);
}

.chat-input input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.2s;
}
.chat-send-btn:hover { background: var(--primary-dark, #3871c6); transform: scale(1.05); }
.chat-send-btn:active { transform: scale(0.95); }

/* === Improved chat UI === */
.conversations-list {
  display: flex;
  flex-direction: column;
}
.conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  flex-shrink: 0;
  overflow: hidden;
}
.conv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-full);
}
.avatar-initial {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}
.conv-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-sm);
}
.conv-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: 2px;
}
.conversation-card.has-unread .conv-name,
.conversation-card.has-unread .conv-last-msg {
  font-weight: 600;
  color: var(--text-primary);
}

.chat-header-profile {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  cursor: pointer;
  flex: 1;
  padding: 4px 8px;
  border-radius: var(--r-md);
  transition: background 0.15s;
}
.chat-header-profile:hover {
  background: var(--bg-secondary);
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  object-fit: cover;
}
.chat-header-subtitle {
  font-size: 11px;
  color: var(--primary);
  margin-top: 2px;
}

.message-row {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}
.row-sent { align-self: flex-end; align-items: flex-end; }
.row-received { align-self: flex-start; align-items: flex-start; }
.message-text { white-space: pre-wrap; word-break: break-word; }

.chat-day-separator {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: var(--sp-md) 0 var(--sp-sm);
  position: relative;
  text-transform: capitalize;
}
.chat-day-separator::before,
.chat-day-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border-light);
}
.chat-day-separator::before { left: 0; }
.chat-day-separator::after { right: 0; }

.chat-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--sp-xl);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.chat-empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-md);
  opacity: 0.6;
}

/* Quick replies */
.quick-replies {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-xl);
  overflow-x: auto;
  flex-shrink: 0;
  border-top: 1px solid var(--border-light);
  background: var(--white);
  scrollbar-width: none;
}
.quick-replies::-webkit-scrollbar { display: none; }

.quick-reply {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 11px;
  cursor: pointer;
  background: var(--white);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.quick-reply:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==================== PROFILE SCREEN ==================== */
.profile-header {
  text-align: center;
  padding: var(--sp-3xl) var(--sp-xl);
  background: linear-gradient(180deg, var(--primary-light), var(--white));
}

.profile-header .avatar {
  margin: 0 auto var(--sp-md);
}

.profile-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.profile-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-3xl);
  margin-top: var(--sp-xl);
}

.profile-menu {
  padding: var(--sp-xl);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg) 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: opacity 0.2s;
}

.menu-item:hover {
  opacity: 0.7;
}
.menu-item-danger .menu-info h4 { color: var(--error); }
.menu-item-danger .menu-icon { filter: hue-rotate(-20deg); }

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.menu-info {
  flex: 1;
}

.menu-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.menu-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.menu-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

/* Logout */
.btn-logout {
  color: var(--error);
  background: none;
  border: 1px solid var(--error-light);
  margin: var(--sp-xl);
}

.btn-logout:hover {
  background: var(--error-light);
}

/* ==================== SETTINGS & SUBPAGES ==================== */

.settings-page {
  padding: 0 20px 40px;
}

.settings-section {
  margin-bottom: var(--sp-xl);
}

.settings-section h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
  padding-top: var(--sp-lg);
}

.settings-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

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

.settings-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.settings-item-info {
  flex: 1;
}

.settings-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-item-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.settings-item.danger .settings-item-info h4 {
  color: var(--error);
}

.settings-version {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--sp-xl);
  padding: var(--sp-lg) 0;
}

/* Payment card items */
.payment-card-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-md);
}

.payment-card-icon {
  font-size: 24px;
}

.payment-card-info {
  flex: 1;
}

.payment-card-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.payment-card-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-icon-delete {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--error-light);
  color: var(--error);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-delete:hover {
  background: var(--error);
  color: var(--white);
}

/* Add card form */
.add-card-section {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border-light);
}

.add-card-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--sp-lg);
}

.card-form .form-group {
  margin-bottom: var(--sp-md);
}

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

.card-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.card-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row {
  display: flex;
  gap: var(--sp-md);
}

.form-row .form-group {
  flex: 1;
}

/* Toggle switch */
.setting-toggle-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.setting-toggle-item:last-child {
  border-bottom: none;
}

.setting-info {
  flex: 1;
}

.setting-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.setting-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle-switch {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--border);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(18px);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-chevron {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(90deg);
}

.faq-answer {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0 0 14px;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.support-contact {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  padding: 4px 16px;
}

/* Language options */
.lang-options {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-md);
  overflow: hidden;
}

.lang-options.hidden {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-primary);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: var(--primary-light);
}

.lang-option.active {
  font-weight: 700;
  color: var(--primary);
}

.lang-check {
  color: var(--primary);
  font-weight: 700;
}

/* Signup language selector */
.lang-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

.lang-btn {
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.lang-btn.active {
  background: rgba(255,255,255,0.15);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 700;
}

/* ==================== RESPONSIVE ==================== */

/* ---- DESKTOP (768px+) ---- */
@media (min-width: 768px) {
  body {
    background: var(--bg-secondary);
  }

  /* Sidebar visible on desktop */
  #sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--border-light);
    padding: var(--sp-xl) 0;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    z-index: 50;
  }

  .sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-lg) var(--sp-xl);
    margin-bottom: var(--sp-xl);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
  }

  .sidebar-logo .logo-icon {
    font-size: 24px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 var(--sp-md);
    flex: 1;
  }

  .sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: 12px var(--sp-lg);
    border-radius: var(--r-md);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    text-align: left;
    width: 100%;
  }

  .sidebar-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
  }

  .sidebar-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
  }

  .sidebar-item .sidebar-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
  }

  .sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-lg) var(--sp-xl);
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    cursor: pointer;
  }

  .sidebar-user .sidebar-user-info {
    flex: 1;
    min-width: 0;
  }

  .sidebar-user .sidebar-user-info h4 {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-user .sidebar-user-info p {
    font-size: 11px;
    color: var(--text-muted);
  }

  /* Hide mobile tab bar on desktop */
  #tab-bar {
    display: none !important;
  }

  /* Remove mobile padding for tab bar */
  #screen-container {
    padding-bottom: 0;
  }

  /* Main content area */
  #main-content {
    background: var(--bg);
    max-height: 100vh;
    overflow-y: auto;
  }

  /* Content wrapper for centering */
  .screen.active {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--sp-xl);
  }

  #welcome-screen.active,
  #login-screen.active,
  #signup-screen.active {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Home grid layout */
  .home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .home-grid-full {
    grid-column: 1 / -1;
  }

  /* Photographer list as grid */
  .photographer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-md);
  }

  .photographer-list .photographer-card {
    margin-bottom: 0;
  }

  /* Spots horizontal scroll → grid on desktop */
  .h-scroll.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--sp-md);
    overflow-x: visible;
  }

  .h-scroll.desktop-grid .spot-card {
    min-width: unset;
  }

  /* Spot select grid */
  .spots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
  }

  /* Booking flow centered */
  #booking-step1-screen.active,
  #booking-step2-screen.active,
  #booking-step3-screen.active,
  #booking-confirmation-screen.active {
    max-width: 600px;
  }

  /* Chat layout */
  #chat-detail-screen.active {
    max-width: 700px;
  }
  #chat-detail-content {
    max-width: 700px;
    margin: 0 auto;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
  }

  /* Photographer detail */
  #photographer-detail-screen.active {
    max-width: 700px;
  }

  .ph-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  /* Profile */
  #profile-screen.active {
    max-width: 600px;
  }

  /* Reservation cards grid */
  .reservations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--sp-md);
  }

  .reservations-grid .reservation-card {
    margin: 0;
  }

  /* Featured card wider on desktop */
  .featured-card {
    margin: 0;
  }

  /* Explorer */
  .explorer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-md);
    padding: 0;
  }

  .explorer-content-grid .spot-select-card {
    margin-bottom: 0;
  }

  /* Sticky CTA full-width within container */
  .sticky-cta {
    position: sticky;
    border-radius: var(--r-xl);
    margin: var(--sp-lg) 0 0;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }

  /* Search bar wider */
  .search-bar {
    max-width: 500px;
  }

  /* Cards hover effect */
  .photographer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

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

  /* Section better spacing */
  .section {
    padding: var(--sp-2xl) 0;
  }

  /* CTA banner */
  .cta-banner {
    margin: var(--sp-lg) 0;
  }

  .next-reservation-card {
    margin: var(--sp-lg) 0;
  }

  /* Messages layout */
  .conversations-list {
    max-width: 600px;
  }

  /* Welcome screen stays centered fullscreen */
  #welcome-screen {
    min-height: 100vh;
  }
}

/* ---- LARGE DESKTOP (1200px+) ---- */
@media (min-width: 1200px) {
  :root {
    --sidebar-width: 280px;
  }

  .screen.active {
    max-width: 1000px;
  }

  .home-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .photographer-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* ---- MOBILE (<768px) ---- */
@media (max-width: 767px) {
  #sidebar {
    display: none !important;
  }

  #tab-bar {
    max-width: 100%;
  }

  .screen.active {
    max-width: 100%;
  }

  .home-grid {
    display: block;
  }

  .home-grid-full {
    display: block;
  }

  .spots-grid {
    display: block;
  }

  .reservations-grid {
    display: block;
  }

  .explorer-content-grid {
    display: block;
  }
}

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-md { margin-bottom: var(--sp-md); }
.px-xl { padding-left: var(--sp-xl); padding-right: var(--sp-xl); }

/* ========== PROPOSAL CARDS (CLIENT CHAT) ========== */
.message-bubble.proposal-bubble { padding: 0 !important; background: transparent !important; max-width: 100% !important; }
.proposal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 240px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.row-sent .proposal-card { border-color: #c7dafc; background: #f1f7ff; }
.proposal-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--text-secondary);
  margin-bottom: 6px; text-transform: uppercase;
  font-weight: 600; letter-spacing: 0.3px;
}
.proposal-icon { font-size: 14px; }
.proposal-title { font-weight: 700; font-size: 14px; color: var(--text-primary); margin-bottom: 4px; }
.proposal-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.4; }
.proposal-details {
  display: flex; flex-direction: column; gap: 4px;
  margin: 8px 0; padding: 8px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.proposal-row { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.proposal-row span { font-size: 14px; }
.proposal-price { font-size: 18px; font-weight: 700; color: var(--primary); text-align: right; margin-top: 6px; }
.proposal-status { margin-top: 8px; padding: 6px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; text-align: center; }
.proposal-status.pending { background: #FFF4E5; color: #B76E00; }
.proposal-status.accepted { background: #E7F7EC; color: #1A7F37; }
.proposal-status.declined { background: #FDEAEA; color: #C0362C; }
.proposal-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-proposal-accept, .btn-proposal-decline {
  flex: 1; padding: 8px 12px;
  border-radius: 10px; border: none;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.btn-proposal-accept { background: var(--primary); color: var(--white); }
.btn-proposal-accept:hover { background: #3871c6; }
.btn-proposal-decline { background: var(--bg-secondary); color: var(--text-primary); }
.btn-proposal-decline:hover { background: var(--border); }
.btn-proposal-accept:active, .btn-proposal-decline:active { transform: scale(0.97); }
.message-system {
  text-align: center; font-size: 11px;
  color: var(--text-muted); padding: 6px 12px;
  margin: 8px auto; background: var(--bg-secondary);
  border-radius: 12px; display: inline-block; align-self: center;
}
.message-system.accepted { color: #1A7F37; background: #E7F7EC; }
.message-system.declined { color: #C0362C; background: #FDEAEA; }

/* ========== PORTFOLIO GRID (PHOTOGRAPHER DETAIL) ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: var(--sp-sm);
}
.portfolio-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-secondary);
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.portfolio-item:hover img { transform: scale(1.05); }

/* Gallery section link on photographer detail */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-sm);
}
.section-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}
.section-clickable { cursor: pointer; }
.section-clickable:hover .section-link { text-decoration: underline; }

/* Full gallery screen */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 0.15s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Clickable avatar with edit badge (profile) */
.avatar-clickable { position: relative; cursor: pointer; overflow: visible; }
.avatar-clickable img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.avatar-edit-badge {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.avatar-clickable:hover .avatar-edit-badge { transform: scale(1.1); }

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s ease;
}
.modal-content {
  background: var(--card-bg, #fff); border-radius: 16px;
  padding: 28px 24px; max-width: 360px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==================== LEGAL PAGES ==================== */
.legal-page {
  padding: 16px 20px;
  line-height: 1.7;
  color: var(--text-primary);
}
.legal-page h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text-primary);
}
.legal-page h2:first-child {
  margin-top: 8px;
}
.legal-page p {
  font-size: 14px;
  margin: 6px 0;
  color: var(--text-secondary);
}
.legal-page ul {
  padding-left: 20px;
  margin: 8px 0;
}
.legal-page li {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0;
}
.legal-page strong {
  color: var(--text-primary);
}
.legal-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.legal-footer p {
  font-size: 12px;
  color: var(--text-muted);
}
.legal-link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}
