/* Guarda-Roupas Virtual — Design System & Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Elegant Travel Theme */
  --color-primary: #1e3a5f;
  --color-primary-hover: #152b47;
  --color-accent: #e65100;
  --color-accent-hover: #cf4600;
  --color-accent-light: #fff3e0;
  --color-secondary: #475569;
  
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;

  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-info: #0284c7;
  --color-info-bg: #f0f9ff;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.06);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
.app-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), #2a528a);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-surface-muted);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-surface-muted);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
}

.auth-badge svg {
  width: 14px;
  height: 14px;
}

/* Firebase Auth Components */
.auth-header-container {
  display: inline-flex;
  align-items: center;
}

.btn-google-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: var(--radius-full);
  color: #3c4043;
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-google-auth:hover {
  background: #f8fafd;
  border-color: #c2e7ff;
  box-shadow: 0 2px 5px rgba(66, 133, 244, 0.15);
  color: #1a73e8;
}

.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem 0.3rem 0.35rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.user-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info-text {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.user-name-text {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-primary);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-pill {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.1rem 0.4rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: var(--radius-full);
}

.btn-signout {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-signout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Main Layout */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 760px;
  margin: 1rem auto 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* Progress Step Indicator */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-light);
}

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

.step-item.completed {
  color: var(--color-success);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--color-surface-muted);
  border: 2px solid var(--color-border);
  transition: var(--transition);
}

.step-item.active .step-circle {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.15);
}

.step-item.completed .step-circle {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

.step-divider {
  width: 40px;
  height: 2px;
  background: var(--color-border);
}

/* Form Card */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 780px;
  margin: 0 auto;
}

.form-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.form-header p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.col-span-2 {
  grid-column: span 2;
}

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

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.label-hint {
  font-size: 0.775rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.875rem;
  color: var(--color-text-light);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.form-input:disabled,
.form-select:disabled {
  background-color: var(--color-surface-muted);
  color: var(--color-text-light);
  cursor: not-allowed;
}

/* Omission Switch Controls */
.omission-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  color: var(--color-secondary);
}

.omission-toggle input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Quick Destination Pills */
.destination-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip-btn {
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-surface-muted);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Planner Dashboard View */
.planner-view {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

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

.trip-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #172554 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trip-banner-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trip-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.6rem;
  font-size: 0.925rem;
  opacity: 0.9;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.session-key-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  text-align: right;
}

.session-key-badge span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  display: block;
}

.session-key-badge strong {
  font-family: monospace;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.category-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checklist-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.checklist-item:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.checklist-item.all-defined {
  border-color: #86efac;
  background: #f0fdf4;
}

.checklist-item.partially-defined {
  border-color: #93c5fd;
  background: #f8fafc;
}

.item-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.item-icon {
  font-size: 1.35rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
}

.item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.units-preview-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #e2e8f0;
}

.unit-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--color-secondary);
  font-weight: 500;
}

.unit-chip.chip-photo {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.unit-chip.chip-desc {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}

.unit-chip.chip-buy {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.unit-chip.chip-purchased {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
  font-weight: 700;
}

.unit-chip.chip-empty {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  font-style: italic;
}

/* Unit Modal Components */
.unit-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.5rem;
  overflow-x: visible;
}

.unit-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--color-border);
  background: #f8fafc;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.unit-tab-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e1;
}

.unit-tab-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.unit-status-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.option-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--color-border);
  background: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.option-toggle-btn strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.option-toggle-btn small {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.option-toggle-btn:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.option-toggle-btn.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.sub-option-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.sub-tab-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.sub-tab-btn:hover {
  background: #f1f5f9;
}

.sub-tab-btn.active {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

/* Photo Dropzone */
.photo-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
}

.photo-dropzone:hover,
.photo-dropzone.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}

/* AI Analysis Cards */
.ai-analysis-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.match-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.match-badge.high {
  background: #dcfce7;
  color: #166534;
}

.match-badge.low {
  background: #ffedd5;
  color: #9a3412;
}

.match-meter-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.4rem 0;
}

.match-meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.match-meter-fill.high {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.match-meter-fill.low {
  background: linear-gradient(90deg, #f97316, #ea580c);
}

.ai-warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.75rem;
}

.ai-suggestions-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  color: #166534;
}

.gcs-status-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
}

/* Shopping Section */
.shopping-search-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.filter-input {
  max-width: 140px;
  font-size: 0.8rem !important;
  padding: 0.35rem 0.6rem !important;
}

.filter-chip-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.shopping-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.25rem;
}

.shopping-product-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.shopping-product-card:hover {
  border-color: #2563eb;
  box-shadow: var(--shadow-sm);
}

.shopping-product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.product-card-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.product-card-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #16a34a;
}

.product-card-store {
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--color-secondary);
}

.selected-product-card {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.purchase-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  cursor: pointer;
  user-select: none;
}

.unit-chip.chip-generic {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
  font-weight: 700;
}

/* Wardrobe Product Card (Matching Google Shopping Layout) */
.wardrobe-product-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.wardrobe-product-card:hover {
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
  transform: translateY(-2px);
}

.wardrobe-product-card.selected-in-unit {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
}

.wardrobe-product-card.used-elsewhere {
  border-color: #f59e0b;
  background: #fffbeb;
}

.wardrobe-product-card img {
  width: 100%;
  height: 125px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

/* Admin Table Luggage Progress Summary */
.admin-luggage-progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 160px;
}

.admin-progress-bar-wrap {
  width: 100%;
  height: 7px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.admin-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #2563eb);
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

.admin-luggage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.725rem;
}

.admin-luggage-tag {
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.admin-luggage-tag.tag-wardrobe {
  background: #ccfbf1;
  color: #0f766e;
}

.admin-luggage-tag.tag-generic {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.admin-luggage-tag.tag-buy {
  background: #fff7ed;
  color: #c2410c;
}

.admin-luggage-tag.tag-purchased {
  background: #f0fdf4;
  color: #166534;
}

.admin-luggage-tag.tag-pending {
  background: #fef2f2;
  color: #b91c1c;
}

.item-badge {
  background: white;
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Progress Bar */
.progress-container {
  margin: 1rem 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.progress-track {
  height: 10px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-success), #10b981);
  width: 0%;
  transition: width 0.3s ease;
}

/* Weather Info Box */
.climate-box {
  background: var(--color-info-bg);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 1rem;
  color: #0369a1;
}

.climate-temp {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.3rem 0;
}

/* Day-by-Day Schedule Card */
.daily-card {
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.daily-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.daily-card p {
  font-size: 0.8rem;
  color: var(--color-secondary);
}

/* Admin Dashboard Table */
.admin-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.admin-toolbar {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.data-table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--color-surface-muted);
  padding: 0.875rem 1.25rem;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.key-code {
  font-family: monospace;
  font-size: 0.825rem;
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  display: inline-block;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.modal-box-lg {
  max-width: 920px;
}

.form-input-clean {
  padding: 0.65rem 0.85rem !important;
}

.input-wrapper .form-input-clean {
  padding-left: 2.6rem !important;
}

.btn-xs {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Edit Modal Layout */
.edit-section {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.edit-section-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.6rem;
  margin-bottom: 0.85rem;
}

.edit-section-header h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.edit-category-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: var(--transition);
}

.edit-category-card:hover {
  border-color: #cbd5e1;
}

.edit-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edit-category-title-input {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  max-width: 250px;
}

.edit-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.edit-item-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.edit-item-row:hover {
  border-color: #cbd5e1;
  background: #fafafa;
}

.edit-item-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #16a34a;
  cursor: pointer;
  flex-shrink: 0;
}

.edit-item-name {
  flex: 1;
  min-width: 140px;
  padding: 0.4rem 0.6rem !important;
  font-size: 0.875rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-sm) !important;
}

.edit-item-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.edit-item-qty {
  width: 60px !important;
  padding: 0.4rem 0.4rem !important;
  font-size: 0.875rem !important;
  text-align: center;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-sm) !important;
}

.btn-delete-item {
  background: none;
  border: 1px solid transparent;
  color: #dc2626;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-delete-item:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.btn-add-item {
  margin-top: 0.6rem;
  width: 100%;
  border: 1px dashed #cbd5e1;
  background: white;
  color: var(--color-secondary);
  font-size: 0.825rem;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-add-item:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
}

/* Footer */
.app-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  font-size: 0.825rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.col-span-2 {
    grid-column: span 1;
  }
  .hero-title {
    font-size: 2rem;
  }
  .edit-mode-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Edit Mode Banner */
.edit-mode-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.edit-mode-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.edit-mode-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.edit-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.edit-session-name {
  font-size: 0.9rem;
  color: #e0e7ff;
}

.edit-session-name strong {
  color: #ffffff;
  font-family: monospace;
}

.edit-mode-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-primary-light {
  background: #ffffff;
  color: #1e40af;
  font-weight: 700;
  border: 1px solid #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.btn-primary-light:hover {
  background: #f1f5f9;
  color: #1e3a8a;
}

/* Stepper Tracker Clickable in Edit Mode */
.stepper-container.editable .step-item {
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.stepper-container.editable .step-item:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Item Actions Row & Quantity Stepper */
.item-actions-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.item-quantity-stepper {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.btn-qty-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-qty-step:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-qty-step:active {
  transform: scale(0.92);
}

.qty-count-label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0 0.35rem;
  min-width: 38px;
  text-align: center;
  user-select: none;
}

.btn-item-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-item-delete:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Unit Detail Modal Enhancements */
.btn-add-unit-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  color: #16a34a;
  font-size: 0.775rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-unit-tab:hover {
  background: #dcfce7;
  border-color: #4ade80;
  color: #15803d;
}

.btn-remove-unit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: #ffffff;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-remove-unit:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

.btn-add-item-to-cat {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

/* ================= DAILY LOOKS & COMPOSER ================= */
.daily-card {
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  background: var(--color-surface);
  transition: all 0.2s ease;
  margin-bottom: 0.85rem;
  position: relative;
}

.daily-card:hover {
  border-color: #3b82f6;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.daily-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.daily-card h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.look-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.look-status-badge.complete {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.look-status-badge.pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.look-status-badge.empty {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.daily-look-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.look-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.775rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: var(--color-text);
  border: 1px solid #e2e8f0;
}

.look-composer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-height: 48vh;
  overflow-y: auto;
  padding: 0.5rem 0.25rem;
}

.look-category-section {
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.look-category-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 0.35rem;
}

.look-item-picker {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.look-pick-checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.85rem;
  user-select: none;
}

.look-pick-checkbox:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
}

.look-pick-checkbox.was-used-earlier {
  background: #fffdf5;
  border-color: #fde68a;
}

.look-pick-checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.look-unit-thumb {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.look-unit-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.look-unit-title {
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.look-unit-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.used-day-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 0.15rem 0.5rem;
  font-size: 0.725rem;
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.unit-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.unit-source-badge.photo {
  background: #e0f2fe;
  color: #0369a1;
}

.unit-source-badge.desc {
  background: #f3e8ff;
  color: #7e22ce;
}

.unit-source-badge.bought {
  background: #dcfce7;
  color: #15803d;
}

.unit-source-badge.pending {
  background: #f1f5f9;
  color: #64748b;
}

.look-alerts-container {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.look-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.825rem;
  line-height: 1.4;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.look-alert-row.warning {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.look-alert-row.info {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.look-alert-row.success {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
  font-weight: 600;
}

.look-alert-row.cold-warning {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.look-alert-row.dismissed {
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
  opacity: 0.85;
}

.btn-dismiss-alert {
  background: #ffffff;
  border: 1px solid #fdba74;
  color: #c2410c;
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.725rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-dismiss-alert:hover {
  background: #ffedd5;
  border-color: #ea580c;
  color: #9a3412;
}

.btn-restore-alert {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.725rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-restore-alert:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ================= MODAL BUSY OVERLAY ================= */
.modal-busy-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  cursor: wait;
}

.busy-overlay-content {
  text-align: center;
  padding: 2rem;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.busy-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem auto;
}

.busy-overlay-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
}

.busy-overlay-content p {
  font-size: 0.875rem;
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ================= LUGGAGE REPORT MODAL ================= */
.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.report-stat-card {
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.report-stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-top: 0.2rem;
}

.report-stat-lbl {
  font-size: 0.775rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.report-section-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.report-section-card h4 {
  margin: 0 0 0.75rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

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

/* ================= PENDENCIES & TOTALIZERS ================= */
.unit-pendency-container {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.pendency-totalizers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pendency-badge-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.pendency-badge-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.pendency-name {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-primary);
}

.pendency-count {
  font-size: 0.825rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #64748b;
}

.pendency-count.has-items {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.pendency-count.has-items.buy-count {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.sidebar-pendencies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e2e8f0;
}

.sidebar-pendency-tag {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.sidebar-pendency-tag.clean {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.unit-chip.chip-pendency-tag {
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 700;
}

/* No-repeat feature styling */
.item-no-repeat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  transition: var(--transition);
  user-select: none;
}

.item-no-repeat-toggle:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.item-no-repeat-toggle.active {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

/* Auto-fill generic pieces button */
.btn-fill-generic {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #15803d;
  transition: var(--transition);
  user-select: none;
}

.btn-fill-generic:hover:not(:disabled) {
  background: #dcfce7;
  border-color: #4ade80;
  color: #166534;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.12);
  transform: translateY(-1px);
}

.btn-fill-generic:active {
  transform: translateY(0);
}

.btn-fill-generic:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.used-day-badge.no-repeat-blocked {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
  font-weight: 700;
}

.used-day-badge.no-repeat-conflict {
  background: #fef2f2;
  color: #dc2626;
  border-color: #f87171;
  font-weight: 700;
}

.look-pick-checkbox.disabled-no-repeat {
  opacity: 0.55;
  background: #f8fafc;
  cursor: not-allowed !important;
  border-color: #e2e8f0;
}

.look-pick-checkbox.disabled-no-repeat input[type="checkbox"] {
  cursor: not-allowed;
  pointer-events: none;
}

/* Admin Freeze / Unfreeze styling */
.admin-frozen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.admin-unfrozen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.frozen-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid #93c5fd;
  border-left: 4px solid #0284c7;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  color: #0369a1;
}

/* Admin Action Column - Sticky & Responsive */
.col-actions {
  position: sticky;
  right: 0;
  background: #ffffff;
  z-index: 5;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.05);
}

.data-table th.col-actions {
  background: var(--color-surface-muted);
  z-index: 6;
}

.data-table tbody tr:hover td.col-actions {
  background: #f8fafc;
}

.admin-action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-freeze-active {
  color: #0284c7 !important;
  border-color: #7dd3fc !important;
  background: #f0f9ff !important;
}

.btn-freeze-inactive {
  color: #475569 !important;
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

.btn-duplicate {
  color: #4338ca !important;
  border-color: #c7d2fe !important;
  background: #eef2ff !important;
}

.btn-delete {
  color: #dc2626 !important;
  border-color: #fecaca !important;
  background: #ffffff !important;
}

.btn-delete:hover:not(:disabled) {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
}

.btn-delete:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
}




/* ==========================================================================
   MEU GUARDA-ROUPA (WARDROBE) DIGITAL SYSTEM STYLES
   ========================================================================== */

.wardrobe-hero {
  margin-bottom: 2rem;
}

.wardrobe-selector-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.wardrobe-selector-left {
  flex: 1;
  min-width: 280px;
}

.selector-field-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.selector-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.selector-dropdown {
  min-width: 240px;
  max-width: 320px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
}

.wardrobe-selector-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.wardrobe-stats-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
}

.stat-pill-icon {
  font-size: 1.2rem;
}

.stat-pill strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-primary);
}

.stat-pill small {
  display: block;
  font-size: 0.725rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.categories-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.wardrobe-categories-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.wardrobe-category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.wardrobe-category-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.wardrobe-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.wardrobe-cat-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wardrobe-cat-icon {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.wardrobe-cat-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.wardrobe-cat-count-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.wardrobe-cat-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.wardrobe-pieces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.wardrobe-piece-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wardrobe-piece-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #94a3b8;
}

.piece-thumb-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  background: #f1f5f9;
  cursor: pointer;
  overflow: hidden;
}

.piece-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.piece-thumb-wrap:hover img {
  transform: scale(1.04);
}

.piece-thumb-zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.wardrobe-piece-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wardrobe-piece-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.piece-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.piece-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.piece-tag.match {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  font-weight: 700;
}

.piece-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.piece-date {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

.empty-category-notice {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
}

.empty-category-notice p {
  color: var(--color-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.empty-wardrobes-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

/* Upload Blocking Overlay during Gemini Analysis */
.upload-blocking-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  z-index: 100;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.upload-blocking-overlay .loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top-color: #0d9488;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.icon-opt {
  font-size: 1.5rem;
  padding: 0.6rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.icon-opt:hover {
  background: #e2e8f0;
  transform: scale(1.05);
}

.icon-opt.selected {
  background: #ccfbf1;
  border-color: #14b8a6;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.3);
}


/* Modal Footer & Close Button */
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.modal-close-btn:hover {
  background: #f1f5f9;
  color: var(--color-text);
}

/* Batch Upload Modal & Queue Styles */
.batch-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.batch-queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  transition: var(--transition);
}

.batch-queue-item.active-item {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 1px #0d9488;
}

.batch-queue-item.success-item {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.batch-queue-item.error-item {
  border-color: #fca5a5;
  background: #fef2f2;
}

.batch-thumb-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  background: #f1f5f9;
}

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

.batch-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-item-size {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.batch-item-status {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.batch-status-pending {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.batch-status-uploading {
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.batch-status-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.batch-status-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-remove-batch-item {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 4px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-batch-item:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* Wardrobe Piece Picker within Luggage Planning Modal */
.wardrobe-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.wardrobe-picker-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.wardrobe-picker-card:hover {
  border-color: #0d9488;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.wardrobe-picker-card.selected-in-unit {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
}

.wardrobe-picker-card.used-elsewhere {
  border-color: #fed7aa;
  background: #fffbeb;
}

.wardrobe-picker-thumb {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #f8fafc;
  margin-bottom: 0.5rem;
  border: 1px solid #f1f5f9;
}

.wardrobe-picker-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wardrobe-picker-meta {
  font-size: 0.725rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.wardrobe-picker-btn {
  margin-top: auto;
  width: 100%;
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
}

/* Active Traveler Banner in Planner */
.active-traveler-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.traveler-banner-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.traveler-banner-avatar {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.traveler-banner-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.traveler-banner-details {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.traveler-banner-details span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.traveler-banner-badge {
  background: rgba(13, 148, 136, 0.25);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
}

.traveler-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* User Profile Management Card on Home */
.user-profile-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.user-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.user-profile-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-profile-title-group p {
  color: var(--color-secondary);
  font-size: 0.85rem;
  margin: 0.2rem 0 0 0;
}

.user-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.user-profile-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.user-quick-trip-banner {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid #99f6e4;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* ============================================================
   🔒 MANDATORY AUTHENTICATION GATE
   ============================================================ */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, rgba(30, 58, 95, 0.88) 0%, rgba(15, 23, 42, 0.96) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-gate-overlay.auth-gate-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-gate-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 2.75rem 2.25rem 2.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: authGateScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authGateScale {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.auth-gate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1e3a5f, #0d9488, #e65100);
}

.auth-gate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #0d9488 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.4);
}

.auth-gate-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
}

.auth-gate-subtitle {
  font-size: 0.875rem;
  color: var(--color-secondary);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.auth-gate-divider {
  height: 1px;
  background: #f1f5f9;
  margin-bottom: 1.5rem;
}

.auth-gate-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-secondary);
  font-size: 0.875rem;
  padding: 1.5rem 0;
}

.auth-gate-msg {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.btn-google-auth-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  color: #1e293b;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-google-auth-large:hover {
  background: #f8fafc;
  border-color: #4285f4;
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.2);
  transform: translateY(-1.5px);
}

.auth-gate-security-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}



