:root {
  --primary: #D4956A;
  --primary-dark: #B87A52;
  --primary-light: #FFF5EE;
  --accent: #C17B50;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text2: #6B7280;
  --text3: #9CA3AF;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
  --nav-height: 64px;
  --header-height: 84px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

#app {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px);
}

/* Header */
#app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* Header Logo */
.header-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  animation: logoFadeIn 0.6s ease both;
}

@keyframes logoFadeIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* version shown in settings footer only */

/* Pages */
.page {
  display: none;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.page.active {
  display: block;
}

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

/* Bottom Nav */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: none;
  pointer-events: none;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border: none;
  background: none;
  color: var(--text3);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-btn.active {
  color: var(--primary);
}

.nav-btn svg {
  transition: transform 0.2s;
}

.nav-btn.active svg {
  transform: scale(1.1);
}

.nav-add {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(212,149,106,0.45);
  justify-content: center;
  padding: 0;
  pointer-events: auto;
}

.nav-add.active {
  color: #fff;
}

.header-help-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--text3);
  background: none;
  color: var(--text3);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s;
}

.header-help-btn:active {
  border-color: var(--primary);
  color: var(--primary);
}

/* Stats Row */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.stat-left {
  display: flex;
  align-items: center;
}

.stat-cal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.stat-cal-btn:active {
  background: var(--primary);
  color: #fff;
}

.stat-item {
  font-size: 13px;
  color: var(--text2);
  white-space: nowrap;
}

.stat-item strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  margin-right: 3px;
}

.stat-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 14px;
}

/* Buttons */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:active {
  opacity: 0.85;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.btn-danger {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--danger);
  font-size: 14px;
  cursor: pointer;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
}

.btn-log {
  margin-bottom: 20px;
}

.btn-save {
  margin-top: 20px;
}

/* Section Title & Subtitle */
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 16px;
}

/* Outfit Grid */
.outfit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .outfit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .outfit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Outfit Frame Card */
.outfit-frame {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.2s;
  overflow: hidden;
  position: relative;
}

.outfit-frame:active {
  box-shadow: var(--shadow-lg);
}

.frame-photo-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
}

.frame-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-placeholder {
  aspect-ratio: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
}

.frame-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-info {
  padding: 8px 10px 10px;
}

.frame-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-event {
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-date {
  font-size: 11px;
  color: var(--text3);
}

.occasion-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 500;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chip.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Occasion Pills */
.occasion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.occasion-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.occasion-pill.selected {
  color: #fff;
}

.occasion-pill-add {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px dashed var(--border);
  background: none;
  color: var(--text3);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.occasion-pill-add:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.occasion-pill-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.occasion-pill-remove .pill-x {
  font-size: 14px;
  opacity: 0.5;
  cursor: pointer;
}

.occasion-pill-remove .pill-x:hover {
  opacity: 1;
  color: var(--danger);
}

/* Photo Slots (Add form — 4 labeled slots) */
.photo-slots-container {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  background: var(--surface);
}

.photo-slots-header {
  margin-bottom: 12px;
}

.photo-slots-header strong {
  font-size: 14px;
}

.photo-slots-header span {
  display: block;
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}

.photo-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-slot {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.photo-slot-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  padding: 6px 10px 0;
}

.photo-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px 14px;
  gap: 10px;
}

.photo-slot-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text3);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.photo-slot-btn:active {
  color: var(--primary);
}

.photo-slot-btn svg {
  flex-shrink: 0;
}

.photo-slot-preview {
  position: relative;
  aspect-ratio: 1;
}

.photo-slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Never Repeat Section */
.never-repeat {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
}

.never-repeat h3 {
  font-size: 13px;
  font-weight: 600;
  color: #C2410C;
  margin-bottom: 8px;
}

.never-repeat-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.nr-item {
  flex-shrink: 0;
  text-align: center;
  width: 72px;
}

.nr-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.nr-item .nr-placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
}

.nr-item span {
  display: block;
  font-size: 10px;
  color: var(--text2);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Form */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

.name-dice {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  vertical-align: middle;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.name-dice:active {
  opacity: 1;
  transform: scale(1.2);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s;
  font-family: inherit;
}

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

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-col {
  min-width: 0;
}

/* Outfit Details (collapsible) */
.outfit-details {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--surface);
}

.outfit-details summary {
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  list-style: none;
}

.outfit-details summary::-webkit-details-marker {
  display: none;
}

.outfit-details summary::before {
  content: '+ ';
  font-weight: 600;
}

.outfit-details[open] summary::before {
  content: '- ';
}

.outfit-details[open] summary {
  border-bottom: 1px solid var(--border);
}

.outfit-details .form-row {
  padding: 12px 12px 0;
}

.outfit-details .form-row:last-child {
  padding-bottom: 12px;
}

/* Detail Photos (scrollable row) */
.detail-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

.detail-photos .detail-photo {
  flex-shrink: 0;
  width: 85%;
  max-width: 400px;
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.detail-photo {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.detail-occasion {
  margin-bottom: 8px;
}

.detail-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-event {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 4px;
}

.detail-date {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 12px;
}

.detail-pieces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-piece {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.detail-piece-label {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-piece-value {
  font-size: 14px;
  color: var(--text);
}

.detail-notes {
  font-size: 14px;
  color: var(--text2);
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.detail-actions {
  display: flex;
  gap: 10px;
}

.detail-actions button {
  flex: 1;
}

/* Calendar */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  font-weight: 600;
  margin-bottom: 4px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  max-width: 400px;
  margin: 0 auto;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  position: relative;
  background: var(--surface);
  max-height: 48px;
}

.cal-day.empty {
  background: transparent;
  cursor: default;
}

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

.cal-day.today {
  font-weight: 700;
  color: var(--primary);
}

.cal-day.selected {
  background: var(--primary);
  color: #fff;
}

.cal-day.has-outfit::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cal-day.selected.has-outfit::after {
  background: #fff;
}

#cal-day-outfits {
  margin-top: 16px;
}

#cal-day-outfits:empty {
  margin-top: 0;
}

/* Settings */
.settings-account-row {
  margin-bottom: 12px;
}

.btn-signout {
  flex-shrink: 0;
  width: auto;
  padding: 8px 16px;
  font-size: 13px;
}

.error-log-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: var(--surface);
}

.error-log-details summary {
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.error-log-details[open] summary {
  border-bottom: 1px solid var(--border);
}

.error-log-details > div {
  padding: 8px 12px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.error-entry {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  border-left: 3px solid var(--danger);
}

.error-entry .error-time {
  color: var(--text3);
  font-size: 11px;
}

.error-entry .error-source {
  font-weight: 600;
}

.error-entry .error-msg {
  color: var(--text2);
  word-break: break-word;
}

.version-footer {
  text-align: center;
  color: var(--text3);
  font-size: 12px;
  margin-top: 24px;
  padding-bottom: 8px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3);
}

/* Toast */
#toast-container {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--text);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease;
  pointer-events: auto;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }

.toast-hide {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

/* Login Screen */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF5EE 0%, #FAEBD7 100%);
}

.login-card {
  text-align: center;
  padding: 40px 32px;
  max-width: 360px;
  width: 100%;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 32px;
}

.google-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.login-footer {
  font-size: 12px;
  color: var(--text3);
}

.login-screen.hidden {
  display: none;
}

/* User Avatar in Header */
.header-left {
  display: flex;
  align-items: center;
}

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

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
}

/* Settings User Card */
.settings-user {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.settings-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

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

.settings-user-name {
  font-weight: 600;
  font-size: 15px;
}

.settings-user-email {
  font-size: 12px;
  color: var(--text2);
}

/* Sync indicator */
.sync-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

.sync-dot.synced { background: var(--success); }
.sync-dot.pending { background: var(--warning); }
.sync-dot.error { background: var(--danger); }

/* Update Banner */
.update-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  animation: slideDown 0.3s ease;
}

.update-banner button {
  margin-left: 10px;
  padding: 4px 14px;
  border: 1.5px solid #fff;
  border-radius: 16px;
  background: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

/* Help & About Page */
.help-page {
  max-width: 560px;
  margin: 0 auto;
}

.help-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 2px;
}

.help-tagline {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 24px;
}

.help-section {
  margin-bottom: 24px;
}

.help-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.help-section p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 8px;
}

.help-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.help-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-step div:last-child {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}

.help-features {
  list-style: none;
  padding: 0;
}

.help-features li {
  font-size: 14px;
  color: var(--text2);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.help-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.help-terms {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.help-terms h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 14px;
  margin-bottom: 4px;
}

.help-terms p {
  font-size: 13px;
  line-height: 1.6;
}

.help-terms-updated {
  font-size: 12px !important;
  color: var(--text3) !important;
  margin-bottom: 8px;
}

/* RTL */
[dir="rtl"] .outfit-card { flex-direction: row-reverse; }
[dir="rtl"] .btn-back { direction: rtl; }
