/* ===== Theme Definitions ===== */
[data-theme="spring"] {
  --theme-primary-50: #f0faf4;
  --theme-primary-100: #d4f0e0;
  --theme-primary-200: #a8e0c0;
  --theme-primary-300: #7dd4a5;
  --theme-primary-400: #5ac78d;
  --theme-primary-500: #3dba78;
  --theme-primary-600: #2f9660;
  --theme-primary-700: #237148;
  --theme-accent: #e8f5ed;
  --theme-soft: #b2cfbb;
  --theme-light: #c8edd5;
  --theme-gradient: linear-gradient(135deg, #5ac78d, #3dba78);
  --theme-gradient-bg: linear-gradient(135deg, #a8e0c0, #5ac78d);
}

[data-theme="summer"] {
  --theme-primary-50: #fef7ed;
  --theme-primary-100: #fde8c8;
  --theme-primary-200: #fbd5a0;
  --theme-primary-300: #f9b96c;
  --theme-primary-400: #f59e42;
  --theme-primary-500: #e8851f;
  --theme-primary-600: #c46a14;
  --theme-primary-700: #9a5210;
  --theme-accent: #fef3e2;
  --theme-soft: #d4b896;
  --theme-light: #fde8c8;
  --theme-gradient: linear-gradient(135deg, #f59e42, #e8851f);
  --theme-gradient-bg: linear-gradient(135deg, #fbd5a0, #f59e42);
}

[data-theme="evening"] {
  --theme-primary-50: #f0eef8;
  --theme-primary-100: #ddd8f0;
  --theme-primary-200: #bdb3e0;
  --theme-primary-300: #9d8dd4;
  --theme-primary-400: #7e6bc7;
  --theme-primary-500: #6650ba;
  --theme-primary-600: #503e96;
  --theme-primary-700: #3c2e71;
  --theme-accent: #eeeaf5;
  --theme-soft: #b8b0cf;
  --theme-light: #d8d0ed;
  --theme-gradient: linear-gradient(135deg, #7e6bc7, #6650ba);
  --theme-gradient-bg: linear-gradient(135deg, #bdb3e0, #7e6bc7);
}

/* ===== CSS Custom Properties ===== */
:root {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--theme-primary-50);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== App Shell ===== */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  position: relative;
  padding-bottom: 70px;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--theme-primary-100);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-primary-600);
}

.header-back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--theme-primary-600);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px 0;
}

.header-back svg {
  width: 20px;
  height: 20px;
}

.lang-toggle {
  background: var(--theme-primary-100);
  border: none;
  color: var(--theme-primary-700);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition);
}

.lang-toggle:hover {
  background: var(--theme-primary-200);
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--theme-primary-100);
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 10px;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 0.7rem;
  cursor: pointer;
  transition: color var(--transition);
  text-decoration: none;
}

.nav-item.active {
  color: var(--theme-primary-500);
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

/* ===== Page Container ===== */
.page {
  padding: 24px 20px;
  animation: fadeIn 0.25s ease;
}

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

/* ===== Landing Page ===== */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  text-align: center;
  padding: 40px 20px;
}

.landing-logo {
  width: 80px;
  height: 80px;
  background: var(--theme-gradient-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 2.2rem;
}

.landing-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--theme-primary-700);
  margin-bottom: 4px;
}

.landing-subtitle {
  font-size: 1rem;
  color: var(--theme-primary-500);
  margin-bottom: 12px;
  font-weight: 500;
}

.landing-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 280px;
}

.btn-primary {
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 16px 24px;
  background: var(--theme-gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  text-align: center;
}

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

.btn-secondary {
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 12px 24px;
  background: transparent;
  color: var(--theme-primary-600);
  border: 2px solid var(--theme-primary-300);
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 12px;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--theme-primary-50);
}

/* ===== Search Entry ===== */
.search-entry {
  padding-top: 20px;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.search-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--theme-accent);
  border: 2px solid var(--theme-primary-100);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.search-option:hover {
  border-color: var(--theme-primary-300);
  box-shadow: var(--shadow-md);
}

.search-option-icon {
  width: 48px;
  height: 48px;
  background: var(--theme-primary-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.search-option-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.search-option-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== Feeling Flow ===== */
.feeling-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.feeling-btn {
  padding: 16px 12px;
  background: var(--theme-accent);
  border: 2px solid var(--theme-primary-100);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.feeling-btn:hover, .feeling-btn.selected {
  border-color: var(--theme-primary-400);
  background: var(--theme-primary-100);
}

/* Category cards */
.category-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--theme-accent);
  border: 2px solid var(--theme-primary-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.category-card:hover {
  border-color: var(--theme-primary-300);
  box-shadow: var(--shadow-sm);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--theme-primary-200);
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

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

/* Delivery options */
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.delivery-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--theme-accent);
  border: 2px solid var(--theme-primary-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
  font-size: 1rem;
}

.delivery-btn:hover {
  border-color: var(--theme-primary-300);
}

.delivery-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--theme-primary-200);
}

.delivery-btn h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.delivery-btn p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== Results ===== */
.therapist-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--theme-primary-100);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.therapist-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.therapist-card-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.therapist-card-info .username {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.therapist-card-info .location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.therapist-card-info .price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--theme-primary-600);
}

.results-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

/* ===== Tier Badges ===== */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  vertical-align: middle;
}

.tier-badge.tier-free {
  background: #e8f5ed;
  color: #2f9660;
}

.tier-badge.tier-standard {
  background: #e0f0ff;
  color: #1a6fba;
}

.tier-badge.tier-premium {
  background: #fff3e0;
  color: #c46a14;
}

.tier-badge.founding-member {
  background: linear-gradient(135deg, #fff3e0, #fde8c8);
  color: #9a5210;
  border: 1px solid #fbd5a0;
}

/* ===== Criteria Search ===== */
.criteria-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group select,
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 2px solid var(--theme-primary-100);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition);
  font-family: inherit;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--theme-primary-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== Therapist Profile ===== */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--theme-primary-100);
  margin-bottom: 24px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 800;
}

.profile-username {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.profile-location-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.profile-section {
  margin-bottom: 28px;
}

.profile-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-primary-700);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--theme-primary-100);
}

.profile-intro-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Session cards on profile */
.session-card {
  padding: 16px;
  background: var(--theme-accent);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.session-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.session-card .session-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.session-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--theme-primary-600);
}

.session-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--theme-primary-100);
  padding: 2px 8px;
  border-radius: 12px;
}

.session-delivery-tags {
  display: flex;
  gap: 4px;
}

.delivery-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--theme-primary-200);
  color: var(--theme-primary-700);
  font-weight: 600;
}

.session-book-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: var(--theme-primary-400);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.session-book-btn:hover {
  background: var(--theme-primary-500);
}

/* Calendar mockup */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 0;
}

.cal-day {
  padding: 8px 4px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.cal-day.available {
  background: var(--theme-primary-100);
  color: var(--theme-primary-700);
  font-weight: 700;
}

.cal-day.empty {
  visibility: hidden;
}

/* Reviews */
.review-card {
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 700;
}

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

.review-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

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

/* Review toggle tabs */
.review-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.review-tab {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--theme-primary-100);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}

.review-tab.active {
  border-color: var(--theme-primary-400);
  background: var(--theme-primary-100);
  color: var(--theme-primary-700);
}

/* Review form */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.star-input {
  display: flex;
  gap: 8px;
  font-size: 1.5rem;
  cursor: pointer;
}

.star-input span {
  transition: color var(--transition);
}

.star-input span.active {
  color: #f59e0b;
}

.star-input span:not(.active) {
  color: var(--gray-300);
}

/* ===== Booking ===== */
.booking-summary {
  background: var(--theme-accent);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.booking-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--theme-primary-100);
  font-size: 0.9rem;
}

.booking-row:last-child {
  border-bottom: none;
}

.booking-label {
  color: var(--text-secondary);
}

.booking-value {
  font-weight: 700;
  color: var(--text-primary);
}

/* Booking Calendar */
.booking-calendar {
  margin-bottom: 20px;
}

.booking-cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.booking-cal-nav button {
  background: none;
  border: 1px solid var(--theme-primary-200);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--theme-primary-700);
  cursor: pointer;
}

.booking-cal-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}

.booking-cal-nav .cal-month-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.booking-calendar .cal-day.available {
  cursor: pointer;
  transition: background 0.15s;
}

.booking-calendar .cal-day.available:hover {
  background: var(--theme-primary-200);
}

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

.booking-calendar .cal-day.past {
  opacity: 0.3;
}

.booking-time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.booking-time-slot {
  padding: 8px 16px;
  border: 1px solid var(--theme-primary-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--theme-accent);
  color: var(--theme-primary-700);
  transition: background 0.15s;
}

.booking-time-slot:hover {
  background: var(--theme-primary-200);
}

.booking-time-slot.selected {
  background: var(--theme-primary-700);
  color: #fff;
  border-color: var(--theme-primary-700);
}

.booking-time-slot.conflict {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.booking-time-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.booking-no-slots {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 10px 0;
}

.cancel-policy {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.cancel-policy h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.cancel-policy li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  margin-left: 16px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--theme-primary-500);
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Success screen */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--theme-primary-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.success-screen h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--theme-primary-700);
  margin-bottom: 8px;
}

.success-screen p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== Apply Form ===== */
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--theme-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--theme-primary-400);
}

.photo-upload-btn {
  padding: 8px 16px;
  background: var(--theme-primary-100);
  border: 1px solid var(--theme-primary-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--theme-primary-700);
  cursor: pointer;
}

.session-entry {
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-entry input,
.session-entry textarea {
  padding: 10px 12px;
  border: 1px solid var(--theme-primary-100);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
}

.add-session-btn {
  padding: 10px;
  background: none;
  border: 2px dashed var(--theme-primary-200);
  border-radius: var(--radius-sm);
  color: var(--theme-primary-500);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* Plan/Tier cards */
.plan-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card {
  padding: 18px;
  border: 2px solid var(--theme-primary-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.plan-card.selected {
  border-color: var(--theme-primary-400);
  background: var(--theme-accent);
}

.plan-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.plan-card .plan-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--theme-primary-600);
  margin-top: 6px;
}

.plan-card .plan-features {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.plan-card .plan-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 2px 0;
}

.plan-card .plan-features li::before {
  content: '✓ ';
  color: var(--theme-primary-500);
  font-weight: 700;
}

.info-box {
  padding: 14px;
  background: var(--theme-primary-50);
  border: 1px solid var(--theme-primary-200);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== User Profile ===== */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--theme-primary-100);
  margin-bottom: 24px;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--theme-primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.user-info h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.user-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.profile-menu-item:hover {
  color: var(--theme-primary-600);
}

.profile-menu-item .arrow {
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Settings / Theme Selector ===== */
.theme-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.theme-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-card.active {
  border-color: var(--theme-primary-400);
  background: var(--theme-primary-50);
}

.theme-swatch {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.theme-card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

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

/* ===== Signup Form ===== */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
  margin: 0 auto;
}

.signup-form .form-group input {
  width: 100%;
}

.signup-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Social login buttons */
.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn-social:hover { opacity: 0.85; }
.btn-social:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-social svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.btn-apple {
  background: #000;
  color: #fff;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.social-divider span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Auth prompt inline */
.auth-prompt {
  padding: 20px;
  background: var(--theme-accent);
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 12px;
}

.auth-prompt p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.auth-prompt .btn-primary {
  margin: 0 auto;
  max-width: 200px;
}

/* ===== Chat Screen ===== */
.chat-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 140px);
  padding: 0;
}

.chat-info-bar {
  padding: 10px 20px;
  background: var(--theme-primary-50);
  border-bottom: 1px solid var(--theme-primary-100);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

.chat-messages {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

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

.chat-received {
  align-self: flex-start;
  background: var(--gray-100);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-bubble .chat-time {
  display: block;
  font-size: 0.65rem;
  margin-top: 4px;
  opacity: 0.7;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.chat-input-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: inherit;
}

.chat-input-bar input:focus {
  outline: none;
  border-color: var(--theme-primary-400);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-primary-400);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chat-video-btn {
  display: block;
  margin: 0 20px 12px;
  padding: 10px;
  background: var(--theme-primary-100);
  border: 1px solid var(--theme-primary-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--theme-primary-700);
  cursor: pointer;
  text-align: center;
}

.chat-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.chat-send-btn:active {
  opacity: 0.7;
}

/* ===== Video Call Screen ===== */
.videocall-screen {
  position: relative;
  min-height: calc(100vh - 70px);
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
}

.videocall-remote {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.videocall-remote-placeholder {
  text-align: center;
}

.videocall-remote-placeholder .avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 16px;
}

.videocall-remote-placeholder p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.videocall-remote-placeholder .call-status {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

.videocall-self {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 100px;
  height: 130px;
  background: #2d2d44;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  border: 2px solid rgba(255,255,255,0.2);
}

.videocall-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.vc-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}

.vc-btn.vc-mute {
  background: rgba(255,255,255,0.2);
  color: white;
}

.vc-btn.vc-camera {
  background: rgba(255,255,255,0.2);
  color: white;
}

.vc-btn.vc-end {
  background: #e53e3e;
  color: white;
}

.vc-btn.vc-blur {
  background: rgba(255,255,255,0.2);
  color: white;
}

.vc-btn.active {
  background: rgba(255,255,255,0.4);
}

.vc-btn span {
  font-size: 0.6rem;
  display: block;
  margin-top: 2px;
}

/* ===== Therapist Dashboard ===== */
.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--theme-accent);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--theme-primary-600);
}

.stat-card .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dashboard-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: color var(--transition);
}

.dashboard-menu-item:hover {
  color: var(--theme-primary-600);
}

.dashboard-menu-item .menu-icon {
  margin-right: 10px;
  font-size: 1.1rem;
}

.dashboard-menu-item .arrow {
  color: var(--text-muted);
}

/* Schedule editor */
.schedule-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 4px;
  margin-top: 12px;
}

.schedule-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 0;
  color: var(--text-muted);
}

.schedule-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.schedule-slot {
  padding: 8px 4px;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-size: 0.65rem;
}

.schedule-slot.available {
  background: var(--theme-primary-100);
  border-color: var(--theme-primary-300);
  color: var(--theme-primary-700);
}

.schedule-slot.unavailable {
  background: var(--gray-50);
  color: var(--gray-400);
}

.schedule-slot.locked {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.upgrade-prompt {
  padding: 16px;
  background: var(--theme-primary-50);
  border: 1px dashed var(--theme-primary-300);
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.upgrade-prompt button {
  margin-top: 8px;
  padding: 8px 20px;
  background: var(--theme-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Session list (dashboard) */
.session-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--gray-100);
}

.session-list-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
}

.session-list-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.session-list-actions {
  display: flex;
  gap: 8px;
}

.btn-small {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-small.btn-edit {
  background: var(--theme-primary-100);
  color: var(--theme-primary-700);
}

/* Client list */
.client-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--gray-100);
}

.client-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.client-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
}

.client-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.client-review-status {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.client-review-status.reviewed {
  background: var(--theme-primary-100);
  color: var(--theme-primary-700);
}

.client-review-status.pending {
  background: #fff3e0;
  color: #c46a14;
}

/* Earnings */
.earnings-total {
  text-align: center;
  padding: 24px;
  background: var(--theme-accent);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.earnings-total .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--theme-primary-600);
}

.earnings-total .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.earnings-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.earnings-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.earnings-row .label {
  color: var(--text-secondary);
}

.earnings-row .amount {
  font-weight: 700;
}

.earnings-row .amount.positive {
  color: var(--theme-primary-600);
}

.earnings-row .amount.negative {
  color: #e53e3e;
}

/* Referral section */
.referral-code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: var(--theme-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.referral-code-box code {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-primary-700);
  letter-spacing: 1px;
}

.referral-code-box button {
  padding: 8px 14px;
  background: var(--theme-primary-400);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.referral-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.referral-stat {
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  text-align: center;
}

.referral-stat .value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--theme-primary-600);
}

.referral-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Referral landing */
.referral-landing {
  text-align: center;
  padding: 40px 20px;
}

.referral-landing .referrer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--theme-accent);
  border-radius: var(--radius-md);
  margin: 20px 0;
  text-align: left;
}

/* Profile edit form */
.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Suggested therapists (referral cards) */
.referral-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.referral-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.referral-card:hover {
  background: var(--theme-primary-50);
}

.referral-card .ref-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.referral-card .ref-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.referral-card .ref-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Utility ===== */
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }

/* Disabled button */
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== Step indicator ===== */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-primary-100);
}

.step-dot.active {
  background: var(--theme-primary-400);
  width: 24px;
  border-radius: 4px;
}

/* ===== Responsive ===== */
@media (min-width: 481px) {
  body {
    background: var(--gray-100);
  }

  #app {
    box-shadow: var(--shadow-lg);
  }
}

/* ===== New Feature Styles ===== */

/* Verified Badge */
.verified-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}
.verified-check-lg {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}
.therapist-avatar {
  position: relative;
}
.profile-avatar {
  position: relative;
}
.verified-badge-full {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.unverified-badge {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.verified-badge-sm {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Credentials */
.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.credential-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}

/* Tags */
.card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.card-tag {
  display: inline-block;
  background: var(--theme-primary-100);
  color: var(--theme-primary-700);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
}
.profile-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.profile-tag {
  display: inline-block;
  background: var(--theme-primary-100);
  color: var(--theme-primary-700);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
}

/* Card Meta Row */
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.card-rating {
  font-size: 0.8rem;
  color: #f59e0b;
  font-weight: 600;
}
.card-response-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.card-sliding-scale {
  font-size: 0.75rem;
  color: #15803d;
  margin-top: 2px;
}

/* Profile Response Time & Sliding Scale */
.profile-response-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.profile-sliding-scale {
  font-size: 0.85rem;
  color: #15803d;
  margin-top: 4px;
}

/* Profile Actions Row */
.profile-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-icon-action {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon-action:hover, .btn-icon-action.active {
  background: var(--theme-primary-100);
  border-color: var(--theme-primary-400);
}

/* Favorite Button on Card */
.therapist-card {
  position: relative;
}
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
  transition: transform 0.2s;
}
.fav-btn:hover {
  transform: scale(1.2);
}

/* Sort Bar */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: 8px;
  font-size: 0.85rem;
}
.sort-bar label {
  color: var(--text-secondary);
  white-space: nowrap;
}
.sort-bar select {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.85rem;
  background: white;
}

/* Structured Ratings */
.rating-summary {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.rating-overall {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.rating-big {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.rating-stars {
  color: #f59e0b;
  font-size: 1.1rem;
}
.rating-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.rating-bar-row > span:first-child {
  width: 100px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.rating-bar-row > span:last-child {
  width: 28px;
  text-align: right;
  font-weight: 600;
  flex-shrink: 0;
}
.rating-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 4px;
  transition: width 0.3s;
}

/* Review Sub-ratings */
.review-sub-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.review-sub-ratings span {
  background: var(--gray-50);
  padding: 2px 8px;
  border-radius: 8px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-item {
  text-align: center;
}
.gallery-placeholder {
  background: var(--gray-100);
  border-radius: 8px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.gallery-item p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Waitlist */
.btn-outline-secondary {
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.btn-outline-secondary:hover {
  border-color: var(--theme-primary-400);
  color: var(--theme-primary-600);
}
.help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mb-20 { margin-bottom: 20px; }

/* Landing Quick Links */
.landing-quick-links {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.quick-link-btn {
  background: var(--theme-primary-100);
  border: 1px solid var(--theme-primary-200);
  color: var(--theme-primary-700);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-link-btn:hover {
  background: var(--theme-primary-200);
}

/* Trending Section */
.trending-section {
  margin-top: 32px;
  text-align: left;
  width: 100%;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.trending-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.trending-card {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
  padding: 12px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: box-shadow 0.2s;
  position: relative;
}
.trending-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.trending-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 8px;
}
.trending-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.trending-price {
  font-size: 0.75rem;
  color: var(--theme-primary-600);
}

/* Blog Cards */
.blog-card-mini {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.blog-card-mini:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.blog-card-mini h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.blog-card-mini p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.btn-text {
  background: none;
  border: none;
  color: var(--theme-primary-600);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 0;
  font-weight: 600;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.blog-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.blog-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.blog-detail-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.blog-detail-body {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Digital Products */
.digital-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 10px;
}
.dp-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.dp-info {
  flex: 1;
}
.dp-info h3 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.dp-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.dp-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--theme-primary-600);
}
.dp-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

/* Gift Card */
.gift-card-hero {
  text-align: center;
  padding: 20px 0;
}
.gift-card-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}
.gift-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.gift-card-form {
  margin-top: 16px;
}
.gift-amount-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gift-amount-btn {
  padding: 14px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  background: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.gift-amount-btn.selected {
  border-color: var(--theme-primary-500);
  background: var(--theme-primary-50);
  color: var(--theme-primary-700);
}

/* Points */
.points-balance-card {
  text-align: center;
  background: var(--theme-gradient);
  color: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.points-big {
  font-size: 3rem;
  font-weight: 700;
}
.points-label {
  font-size: 0.9rem;
  opacity: 0.9;
}
.points-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.points-history-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.points-type {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}
.points-type.earned {
  background: #dcfce7;
  color: #15803d;
}
.points-type.used {
  background: #fee2e2;
  color: #b91c1c;
}
.points-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.points-amount {
  font-weight: 700;
  font-size: 1rem;
}
.points-amount.earned {
  color: #15803d;
}
.points-amount.used {
  color: #b91c1c;
}
.points-earned-msg {
  color: var(--theme-primary-600);
  font-weight: 600;
  margin-top: 8px;
}

/* Journal */
.journal-entry {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.journal-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.journal-mood {
  font-size: 1.5rem;
}
.journal-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.journal-notes {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mood Selector */
.mood-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.mood-btn {
  padding: 10px 12px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  background: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  min-width: 56px;
}
.mood-btn small {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.mood-btn.selected {
  border-color: var(--theme-primary-500);
  background: var(--theme-primary-50);
}

/* Notifications */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.notification-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.notification-text {
  flex: 1;
  font-size: 0.9rem;
}
.notification-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Empty State Box */
.empty-state-box {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state-box .empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.empty-state-box p {
  font-size: 0.9rem;
}

/* Toast */
.app-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gray-800);
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.85rem;
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
  pointer-events: none;
}
.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Form Validation */
.input-error {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}
.field-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Btn Small */
.btn-small {
  padding: 6px 14px;
  background: var(--theme-primary-500);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-small:hover {
  background: var(--theme-primary-600);
}

/* ===== Subcategory Styling ===== */
.category-card.subcategory {
  margin-left: 24px;
  border-left: 3px solid var(--theme-primary-300);
  background: var(--theme-primary-50, #f0faf4);
}

/* ===== Retreat Cards ===== */
.retreat-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.retreat-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: transform 0.15s;
}

.retreat-card:active {
  transform: scale(0.98);
}

.retreat-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.retreat-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.retreat-card-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.retreat-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.retreat-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.retreat-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.retreat-duration {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.retreat-price {
  font-weight: 700;
  color: var(--theme-primary-700);
  font-size: 1.1rem;
}

.retreat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Retreat Detail */
.retreat-detail-hero {
  text-align: center;
  padding: 20px 0;
}

.retreat-hero-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.retreat-location-lg {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.retreat-detail-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.retreat-includes-list {
  list-style: none;
  padding: 0;
}

.retreat-includes-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.retreat-detail-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.retreat-meta-item {
  flex: 1;
  background: var(--theme-primary-100);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.retreat-meta-item .meta-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.retreat-meta-item .meta-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.retreat-price-lg {
  color: var(--theme-primary-700);
}

/* ===== Forum / Message Board ===== */
.forum-rules {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--theme-primary-50, #f0faf4);
  border-radius: 8px;
}

.forum-thread-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: transform 0.15s;
}

.forum-thread-card:active {
  transform: scale(0.98);
}

.forum-thread-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.forum-thread-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.forum-thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.forum-reply-count {
  color: var(--theme-primary-600);
  font-weight: 500;
}

.forum-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Forum Thread Detail */
.forum-thread-detail {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
}

.forum-detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.forum-detail-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.forum-detail-body {
  font-size: 0.95rem;
  line-height: 1.6;
}

.forum-replies-section {
  margin-bottom: 16px;
}

.forum-replies-section h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.forum-reply {
  background: var(--theme-primary-50, #f0faf4);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.forum-reply-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.forum-reply-author {
  font-weight: 600;
  color: var(--theme-primary-700);
}

.forum-reply-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.forum-reply-form {
  margin-top: 16px;
}

.forum-reply-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.9rem;
  resize: vertical;
  box-sizing: border-box;
}

/* ================================================================
   ADMIN PANEL STYLES
   ================================================================ */

.admin-body {
  background: var(--gray-100);
}

#admin-app {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.admin-sidebar {
  width: 240px;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transition: transform 0.25s ease;
}

.admin-sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.admin-logo-icon {
  font-size: 1.4rem;
}

.admin-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-secondary);
}

.admin-sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  background: var(--theme-primary-50);
  color: var(--theme-primary-600);
}

.admin-nav-item.active {
  background: var(--theme-primary-50);
  color: var(--theme-primary-600);
  border-left-color: var(--theme-primary-500);
  font-weight: 600;
}

.admin-nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-lang-btn {
  background: var(--theme-primary-50);
  border: 1px solid var(--theme-primary-200);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--theme-primary-600);
  font-weight: 600;
  transition: background var(--transition);
}

.admin-lang-btn:hover {
  background: var(--theme-primary-100);
}

.admin-back-link {
  text-align: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
}

.admin-back-link:hover {
  color: var(--theme-primary-500);
}

/* --- Main area --- */
.admin-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-secondary);
}

.admin-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.admin-header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.admin-theme-select {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}

.admin-content {
  flex: 1;
  padding: 24px;
  max-width: 960px;
  width: 100%;
}

/* --- Stats Grid --- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stats-grid-sm {
  max-width: 400px;
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-primary-600);
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.admin-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--theme-primary-100);
}

/* --- Quick Links --- */
.admin-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.admin-quick-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition);
}

.admin-quick-link:hover {
  background: var(--theme-primary-50);
  transform: translateY(-1px);
}

/* --- Activity Feed --- */
.admin-activity-list {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.85rem;
}

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

.admin-activity-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  min-width: 60px;
  text-align: center;
}

.admin-activity-signup { background: #dbeafe; color: #1d4ed8; }
.admin-activity-booking { background: #d1fae5; color: #065f46; }
.admin-activity-review { background: #fef3c7; color: #92400e; }
.admin-activity-moderation { background: #fce7f3; color: #9d174d; }

.admin-activity-text {
  flex: 1;
  color: var(--text-secondary);
}

.admin-activity-date {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* --- Tables --- */
.admin-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--gray-50);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-secondary);
}

.admin-table tbody tr:hover {
  background: var(--theme-primary-50);
}

.admin-table a {
  color: var(--theme-primary-600);
  text-decoration: none;
  font-weight: 500;
}

.admin-table a:hover {
  text-decoration: underline;
}

.admin-mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.admin-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* --- Badges --- */
.admin-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-muted { background: var(--gray-100); color: var(--gray-500); }
.badge-founding { background: #fef3c7; color: #92400e; }

.badge-tier-free { background: #ecfdf5; color: #047857; }
.badge-tier-standard { background: #ecfdf5; color: #065f46; }
.badge-tier-premium { background: #fef3c7; color: #92400e; }

/* --- Toolbar --- */
.admin-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-toolbar-stat {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-select {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-primary);
}

.admin-select-sm {
  padding: 4px 8px;
  font-size: 0.8rem;
}

.admin-input {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  flex: 1;
  min-width: 200px;
  color: var(--text-primary);
}

/* --- Buttons --- */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  background: var(--theme-primary-500);
  color: white;
}

.admin-btn:hover {
  background: var(--theme-primary-600);
  transform: translateY(-1px);
}

.admin-btn-sm {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.admin-btn-success { background: #059669; }
.admin-btn-success:hover { background: #047857; }
.admin-btn-danger { background: #dc2626; }
.admin-btn-danger:hover { background: #b91c1c; }
.admin-btn-outline {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--text-secondary);
}
.admin-btn-outline:hover {
  background: var(--gray-100);
}

.admin-back-btn {
  background: none;
  border: none;
  color: var(--theme-primary-600);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 16px;
  font-weight: 500;
}

.admin-back-btn:hover {
  text-decoration: underline;
}

/* --- Cards & Detail Grid --- */
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.admin-card-wide {
  grid-column: 1 / -1;
}

.admin-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}

.admin-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-profile-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-profile-username {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-profile-intro {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.admin-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-form-group {
  margin-bottom: 12px;
}

.admin-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-help-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-kv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-kv:last-child {
  border-bottom: none;
}

/* --- Chart --- */
.admin-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 240px;
}

.admin-chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.admin-chart-bar {
  width: 100%;
  max-width: 60px;
  background: var(--theme-gradient);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  min-height: 20px;
  transition: height 0.3s ease;
}

.admin-chart-val {
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.admin-chart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Moderation --- */
.admin-mod-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  border-left: 4px solid var(--theme-primary-400);
}

.admin-mod-resolved {
  opacity: 0.7;
  border-left-color: var(--gray-300);
}

.admin-mod-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.admin-mod-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.admin-mod-content {
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-style: italic;
}

.admin-mod-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-mod-reason {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.admin-mod-actions {
  display: flex;
  gap: 8px;
}

/* --- Referral Chain --- */
.admin-ref-chain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-ref-chain-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: 0.85rem;
}

.admin-ref-chain-arrow {
  color: var(--theme-primary-400);
  font-size: 1.2rem;
  margin: 8px 0;
}

.admin-ref-chain-children {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

/* --- Blackout dates --- */
.admin-blackout-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-blackout-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* --- Empty state --- */
.admin-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px;
  text-align: center;
}

/* --- Loading state --- */
.admin-loading {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 40px 20px;
  text-align: center;
}

/* --- Toast --- */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gray-800);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Admin Responsive --- */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-mobile-toggle {
    display: block;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-chart {
    gap: 8px;
    padding: 12px;
  }

  .admin-mod-meta {
    flex-direction: column;
    gap: 4px;
  }
}
