:root {
  --bg: #FAFAFA;
  --text: #1A1A1A;
  --text-muted: #9E9E9E;
  --primary: #6B4EFF;
  --primary-light: #F3F0FF;
  --card-bg: #F5F5F5;
  --card-bg-light: #E8F4F8;
  --card-bg-pink: #FFF0F6;
  --border: #E0E0E0;
  --white: #FFFFFF;
  --black: #2C2C2C;
  --radius: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Home Screen */
.greeting {
  margin-bottom: 16px;
}

.greeting-hello {
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}

.greeting-main {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.location-bar {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

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

.location-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.home-weather {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.home-weather:not(:empty)::before {
  content: '  ·  ';
}

.edit-icon {
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

/* Activities Section */
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.activity-btn {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.activity-emoji {
  font-size: 32px;
  line-height: 1;
}

.activity-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.activity-btn:hover {
  border-color: var(--primary);
}

.activity-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.activity-btn.active .activity-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Input Rows */
.input-row {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.input-row:hover {
  background: #F0F0F0;
}

.input-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-icon {
  font-size: 20px;
}

.input-label {
  font-size: 16px;
  color: var(--text);
}

.input-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

/* Toggle Switch — see .toggle-switch below (accessible checkbox-based toggle) */

/* Rain tolerance toggle — accessible checkbox-based toggle */
.input-row-toggle {
  cursor: default;
}

.input-row-toggle .input-right {
  gap: 12px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: 12px;
  transition: background 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px rgba(107, 78, 255, 0.3);
}

/* CTA Button */
.cta-button {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s;
  margin-top: 24px;
}

.cta-button:active {
  transform: translateY(1px);
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 32px 20px 20px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 12px 0;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 24px 0;
}

.modal-options {
  margin-bottom: 24px;
}

.modal-option {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-option:hover {
  background: var(--card-bg);
}

.modal-option.selected {
  background: var(--primary-light);
  border-color: var(--primary);
}

.radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
}

.modal-option.selected .radio-circle {
  border-color: var(--primary);
}

.modal-option.selected .radio-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

/* Thermo slider */
.thermo-slider-wrap {
  padding: 8px 0 4px;
}

.thermo-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.thermo-end-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.thermo-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #5B9BD5, #D4D4D4, #E85D4A);
  outline: none;
  cursor: pointer;
}

.thermo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.15s;
}

.thermo-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.thermo-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

.thermo-slider-value {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 12px;
}

.thermo-slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 4px 2px 0;
}

.thermo-tick {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1;
}

.thermo-tick-center {
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}

/* Location modal: search and region labels */
.location-search {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  box-sizing: border-box;
}

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

.location-region-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 0 4px;
}

.option-label {
  font-size: 16px;
  color: var(--text);
}

/* Results Screen */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.back-btn {
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

.menu-btn {
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* C-10: Dynamic title showing location + temp — slightly smaller to fit longer strings */
.results-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* Weather Cards */
.weather-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.weather-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.weather-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.weather-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.weather-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* Forecast Section */
.forecast-section {
  margin-bottom: 20px;
}

.forecast-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.forecast-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.forecast-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.forecast-time {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.forecast-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.forecast-temp {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.forecast-details {
  font-size: 12px;
  color: var(--text-muted);
}

/* Condition Tags */
.condition-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.condition-tag {
  font-size: 14px;
  color: var(--text);
}

/* Clothing Sections */
.clothing-section {
  margin-bottom: 24px;
}

.clothing-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.clothing-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.clothing-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--card-bg);
}

.clothing-label {
  font-size: 16px;
  color: var(--text);
}

/* Info Cards */
.info-card {
  background: var(--card-bg-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.info-card ul {
  margin: 0;
  padding-left: 20px;
}

.info-card li {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.info-card-pink {
  background: var(--card-bg-pink);
}

/* C-13: "Why this?" chip pills */
.why-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0 0;
  list-style: none;
}

.why-chip {
  display: inline-block;
  background: rgba(107, 78, 255, 0.08);
  border: 1.5px solid rgba(107, 78, 255, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.info-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

/* Stale weather data banner */
.stale-banner {
  background: #FFF3CD;
  color: #856404;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  margin-bottom: 12px;
}

/* Error card */
.error-card {
  background: var(--white);
  border: 2px solid #F5C6CB;
  border-radius: var(--radius-sm);
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 16px;
}

.error-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.error-message {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 16px;
}

.retry-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.retry-btn:hover {
  opacity: 0.9;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 9999;
  animation: fadeInUp 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.toast.toast-error {
  background: #DC3545;
}

.toast.toast-warn {
  background: #856404;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Loading skeleton */
.loading-skeleton {
  text-align: center;
  padding: 48px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

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

/* Offline banner */
.offline-banner {
  background: #E2E3E5;
  color: #383D41;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

/* AI Mode Session Cards - Phase 1 */

#ai-sessions-container {
  margin-bottom: 24px;
}

.ai-session-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.session-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.session-time-window {
  font-size: 14px;
  color: var(--text-muted);
}

/* Weather Grid */
.session-weather {
  margin-bottom: 20px;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.weather-item {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.weather-item-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.weather-item-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.weather-item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* C-12: Confidence badge — data quality signals */
.confidence-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.confidence-badge.confidence-high {
  background: #F0F7F0;
  color: #4A7A4A;
}

.confidence-badge.confidence-medium {
  background: #FFF8E1;
  color: #B8860B;
}

.confidence-badge.confidence-low {
  background: #FFF0F0;
  color: #C62828;
}

.conf-icon-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-right: 2px;
}

.conf-signal {
  font-weight: 500;
}

.conf-dot {
  opacity: 0.4;
  margin: 0 2px;
}

/* Clothing Recommendations */
.session-clothing {
  margin-bottom: 16px;
}

.clothing-category {
  margin-bottom: 14px;
}

.clothing-category-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}

/* C-11: Chip-style clothing pills */
.clothing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clothing-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: default;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.clothing-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Safety items get a subtle accent */
.clothing-chip-safety {
  border-color: #F0A500;
  background: #FFF8E1;
  color: #7A5200;
}

.chip-emoji {
  font-size: 16px;
  line-height: 1;
}

.chip-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.clothing-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clothing-item-simple {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.clothing-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--card-bg);
}

/* C-01: emoji icon variant — no background/image sizing */
.clothing-item-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--card-bg);
  border-radius: 8px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.clothing-item-label {
  font-size: 14px;
  color: var(--text);
  flex: 1;
}

/* Diff Reasons */
.diff-reasons {
  background: var(--card-bg-pink);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.diff-reasons-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
  cursor: pointer;
  list-style: none;
}

.diff-reasons-title::-webkit-details-marker {
  display: none;
}

.diff-reasons[open] .diff-reasons-title::after {
  content: ' ▲';
}

.diff-reasons:not([open]) .diff-reasons-title::after {
  content: ' ▼';
}

.diff-reasons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.diff-reasons-list li {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.6;
}

.diff-reasons-list li:last-child {
  margin-bottom: 0;
}

.diff-action {
  color: var(--primary);
  font-weight: 500;
}

/* ── Product Catalog Cards ──────────────────────────────────── */

.product-catalog-section {
  margin-bottom: 16px;
}

.product-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card-wrapper {
  position: relative;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.product-card-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--card-bg);
  flex-shrink: 0;
}

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

.product-card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 2px;
}

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-price {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.product-shop-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.product-card:hover .product-shop-btn {
  background: #5a3de8;
}

.product-fallback {
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 0;
  margin: 0;
}

/* ── C-14: Waitlist ──────────────────────────────────────────── */

.waitlist-section {
  margin-top: 20px;
  padding: 16px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(107, 78, 255, 0.15);
}

.waitlist-label {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin: 0 0 12px 0;
  text-align: center;
}

.waitlist-row {
  display: flex;
  gap: 8px;
}

.waitlist-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid rgba(107, 78, 255, 0.3);
  border-radius: 10px;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  outline: none;
  min-width: 0;
}

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

.waitlist-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.waitlist-btn:hover {
  opacity: 0.88;
}

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

.waitlist-success {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  margin: 4px 0 0 0;
}

/* ── C-15: Share Button ─────────────────────────────────────── */

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

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

.share-icon {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* Toast info variant */
.toast.toast-info {
  background: #2E7D32;
}

/* ── C-16: Recent History ───────────────────────────────────── */

.history-section {
  margin-top: 28px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.history-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.history-activity {
  font-size: 22px;
  flex-shrink: 0;
}

.history-item-info {
  min-width: 0;
}

.history-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.history-item-time {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── My Wardrobe ─────────────────────────────────────────────── */

.wardrobe-section {
  margin-top: 28px;
}

.wardrobe-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.wardrobe-tab {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

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

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

.wardrobe-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.wardrobe-item-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--card-bg);
  flex-shrink: 0;
}

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

.wardrobe-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wardrobe-item-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 2px;
}

.wardrobe-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.wardrobe-action-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
}

.wardrobe-action-btn:hover {
  border-color: var(--primary);
}

.wardrobe-action-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
}

.wardrobe-action-btn.active-fav {
  background: #FFF0F0;
  border-color: #E53E3E;
}

.wardrobe-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
  margin: 0;
}

/* Wardrobe icon buttons on product cards */
.product-card-wardrobe {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  margin-right: 4px;
}

.product-wardrobe-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
  opacity: 0.4;
}

.product-wardrobe-btn:hover {
  opacity: 0.8;
  background: var(--card-bg);
}

.product-wardrobe-btn.active {
  opacity: 1;
}

/* ── B-06: Language Selector ─────────────────────────────────── */

.lang-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.lang-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .ai-session-card {
    padding: 16px;
  }

  .session-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .session-label {
    font-size: 18px;
  }

  .session-time-window {
    font-size: 13px;
  }

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

  .clothing-item-icon {
    width: 32px;
    height: 32px;
  }
}

/* Responsive Design - Desktop */
@media (min-width: 769px) {
  .weather-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ai-session-card {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}
