/* Teacher4.me - Modern & Fun Design */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #ff8f65;
  --accent: #4ecdc4;
  --accent-dark: #3db8b0;
  --bg: #fef9f5;
  --bg-card: #ffffff;
  --text: #2d3436;
  --text-muted: #636e72;
  --border: #dfe6e9;
  --success: #00b894;
  --error: #d63031;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,.12);
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: .25s ease;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.site-header {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
}


.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font);
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(255,107,53,.1);
}

.page-profile .main-nav:empty {
  display: none;
}

/* Translate sidebar card */
.translate-sidebar-card {
  border-top: 3px solid var(--primary);
  padding-top: 1.25rem;
}

.translate-sidebar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.translate-sidebar-label svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* Hide Google branding */
.translate-sidebar .goog-te-gadget > span,
.translate-sidebar .goog-logo-link,
.translate-sidebar .goog-te-gadget img {
  display: none !important;
}

.translate-sidebar .goog-te-gadget {
  width: 100%;
}

/* Strip native styling — make it look like btn-outline */
.translate-sidebar select.goog-te-combo {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem 1rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  width: 100%;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.translate-sidebar select.goog-te-combo:hover {
  background-color: var(--primary);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  box-shadow: 0 4px 15px rgba(255,107,53,0.4);
  transform: translateY(-1px);
}

.translate-sidebar select.goog-te-combo:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.2);
}

.profile-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#headerTeacherName {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.4s ease;
  cursor: default;
  user-select: none;
}

#headerTeacherName:hover {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200% auto;
  animation: nameShimmer 1.4s linear infinite;
}

@keyframes nameShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Main container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255,107,53,.08) 0%, rgba(78,205,196,.08) 100%);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255,107,53,.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
  animation: heroLogoFade 0.6s ease-out;
}

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

.hero-logo-img {
  width: min(180px, 35vw);
  height: auto;
  max-width: 180px;
  filter: drop-shadow(0 8px 24px rgba(255,107,53,.2));
  transition: transform var(--transition), filter var(--transition);
}

.hero-logo:hover .hero-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 32px rgba(255,107,53,.3));
}

.hero-logo-text {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition);
}

.hero-logo:hover .hero-logo-text {
  opacity: 0.9;
}

@media (max-width: 600px) {
  .hero-logo-img {
    width: min(140px, 45vw);
    max-width: 140px;
  }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(255,107,53,.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,.5);
}

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

.btn-secondary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-icon-delete {
  padding: 0.4rem 0.5rem;
  font-size: 1.1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-delete:hover {
  background: rgba(214, 48, 49, 0.1);
  border-color: var(--error);
  color: var(--error);
}

.gallery-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-slot {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  cursor: pointer;
}

.save-success-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--success);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.save-success-label.visible {
  opacity: 1;
}

/* ── Contact Now button ── */
.btn-contact-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.9rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-contact-now svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.btn-contact-now:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #c94a20 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
  transform: translateY(-1px);
}

.btn-contact-now:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* ── Contact Now modal ── */
.modal-contact {
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.modal-contact-header h3 {
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.2rem;
  transition: color var(--transition);
}

.modal-close-btn:hover {
  color: var(--primary);
}

.modal-contact-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.modal-contact-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.form-hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

/* ── Messages inbox ── */
.msg-row {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.msg-row:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.msg-row--unread {
  border-left: 4px solid var(--primary);
  background: #fff8f5;
}

.msg-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.msg-row-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.msg-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.msg-delete-btn svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.msg-delete-btn:hover {
  color: var(--error);
  background: rgba(214, 48, 49, 0.08);
  border-color: rgba(214, 48, 49, 0.2);
}

.msg-delete-btn--confirm {
  color: var(--error);
  background: rgba(214, 48, 49, 0.12);
  border-color: rgba(214, 48, 49, 0.35);
  animation: msg-delete-pulse 0.4s ease;
}

@keyframes msg-delete-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.msg-from {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.msg-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.msg-preview {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.msg-contact-badge {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Message form inline note */
.message-form-note {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.message-form-note--success {
  background: #e6f9f0;
  color: #1a7a4a;
  border: 1px solid #a8e6c9;
}

.message-form-note--error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}

/* Tooltip */
.form-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color var(--transition);
}

.tooltip-icon:hover,
.tooltip-icon:focus {
  color: var(--primary);
  outline: none;
}

.tooltip-box {
  display: none;
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  width: 300px;
  box-shadow: var(--shadow-hover);
  z-index: 200;
  pointer-events: none;
}

.tooltip-wrap:hover .tooltip-box,
.tooltip-wrap:focus-within .tooltip-box,
.tooltip-wrap.open .tooltip-box {
  display: block;
}

@media (max-width: 600px) {
  .tooltip-box {
    left: auto;
    right: 0;
    top: calc(100% + 0.5rem);
    transform: none;
    width: 260px;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

/* Teacher cards (find-teacher grid) */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.teacher-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.teacher-card-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 800;
  overflow: hidden;
}

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

.teacher-card-body {
  padding: 1.25rem;
}

.teacher-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: .25rem;
}

.teacher-card-headline {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teacher-card-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.teacher-card-meta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.teacher-card-tag {
  background: rgba(78,205,196,.2);
  color: var(--accent-dark);
  padding: .25rem .5rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
}

.teacher-card-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}

.required-star {
  color: #e74c3c;
  font-weight: 800;
}

.form-required-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-required-note .required-star {
  font-size: 1rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,.2);
}

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

/* ── Slug availability indicator ── */
.slug-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

.slug-status--checking { color: var(--text-muted); }
.slug-status--available { color: var(--success); }
.slug-status--taken     { color: var(--error); }
.slug-status--invalid   { color: var(--error); }

/* ── Slug domain tip ── */
.slug-domain-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: #fffbf0;
  border: 1px solid rgba(253, 203, 110, 0.5);
  border-left: 3px solid #fdcb6e;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.slug-domain-tip__icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  margin-top: 0.05rem;
}

.slug-domain-tip strong {
  color: var(--text);
}

/* ── Profile setup card with time badge ── */
.setup-card-wrap {
  position: relative;
}

.setup-card {
  padding: 2rem;
}

.setup-time-badge {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  box-shadow: 0 3px 10px rgba(78, 205, 196, 0.4);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* ── Onboarding reassurance notice ── */
.onboarding-notice {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1.5px solid rgba(78, 205, 196, 0.4);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 18px rgba(78, 205, 196, 0.1);
}

.onboarding-notice__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.onboarding-notice__heading {
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-dark);
  margin-bottom: 0.45rem;
}

.onboarding-notice__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Custom domain upsell promo box ── */
.custom-domain-promo {
  background: linear-gradient(135deg, #fff8f5 0%, #f0fffe 100%);
  border: 1.5px solid rgba(255, 107, 53, 0.25);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.custom-domain-promo__heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.custom-domain-promo__body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.custom-domain-promo__body strong {
  color: var(--text);
}

.custom-domain-promo__link {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.55rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(255,107,53,0.35);
}

.custom-domain-promo__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(255,107,53,0.45);
}

.custom-domain-promo__inline-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.custom-domain-promo__inline-link:hover {
  opacity: 0.8;
}

.cover-video-section {
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.cover-video-intro {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

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

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Auth pages */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

.auth-card h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.auth-card .btn {
  width: 100%;
  margin-top: 1rem;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
}

.auth-link a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

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

/* Search & Filters */
.search-bar {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-bar input {
  flex: 1;
  min-width: 200px;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.filter-group label {
  font-weight: 600;
  font-size: .9rem;
}

/* Profile page – two-column layout */
.profile-page {
  margin-top: 1rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.profile-main {
  min-width: 0;
}

.profile-media {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.profile-media-cover {
  aspect-ratio: 16/9;
  max-height: 420px;
  width: 100%;
}

.profile-media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-media-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.profile-media-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.profile-body-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.profile-body-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.profile-body-meta {
  flex: 1;
}

.profile-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.profile-origin,
.profile-languages {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.profile-headline {
  font-weight: 700;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.profile-experience-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  margin-bottom: 0.25rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, var(--primary), #6c63ff);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: 0.01em;
}

.profile-experience-badge::before {
  content: "🏅";
  font-size: 0.95rem;
}

.profile-teaches {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.profile-body-about h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
}

.profile-gallery-wrap {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.profile-gallery-wrap h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.profile-gallery-box {
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
}

.profile-gallery-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-gallery-box.profile-gallery-video {
  position: relative;
}

.profile-gallery-box.profile-gallery-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.profile-gallery-box.profile-gallery-video a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.profile-gallery-box.profile-gallery-empty {
  background: rgba(0,0,0,.04);
}

/* Clickable photo boxes */
.profile-gallery-box.profile-gallery-img {
  cursor: zoom-in;
  position: relative;
}

.profile-gallery-box.profile-gallery-img::after {
  content: '⤢';
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.profile-gallery-box.profile-gallery-img:hover::after,
.profile-gallery-box.profile-gallery-img:focus::after {
  opacity: 1;
}

.profile-gallery-box.profile-gallery-img:hover img,
.profile-gallery-box.profile-gallery-img:focus img {
  transform: scale(1.03);
  transition: transform 0.25s ease;
}

/* ── Gallery Lightbox ── */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  animation: lb-fade-in 0.2s ease;
}

.gallery-lightbox.lb-open {
  display: flex;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gallery-lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 48px rgba(0,0,0,0.7);
  object-fit: contain;
  animation: lb-zoom-in 0.2s ease;
}

@keyframes lb-zoom-in {
  from { transform: scale(0.92); opacity: 0.5; }
  to   { transform: scale(1);    opacity: 1; }
}

.gallery-lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
  z-index: 9001;
}

.gallery-lightbox-close:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .profile-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Gallery page slot preview ── */
.gallery-slot-preview {
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 140px;
}

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

.gallery-slot-sublabel {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.gallery-slot-preview--video {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: rgba(78,205,196,0.12);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.gallery-display-selector {
  background: rgba(255,107,53,0.06);
  border: 1.5px solid rgba(255,107,53,0.2);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.75rem;
}

.gallery-display-radios {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.35rem;
}

.gallery-file-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);
}

/* ── Gallery intro box ── */
.gallery-intro-box {
  background: linear-gradient(135deg, #fff8f5 0%, #fff3ee 100%);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  color: var(--text);
  line-height: 1.7;
}

.gallery-intro-box p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.gallery-intro-lead {
  font-size: 1.05rem !important;
  font-weight: 700;
  color: var(--primary);
}

/* ── Gallery upload progress indicator ── */
.gallery-upload-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fff8f5;
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.gallery-upload-spinner {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border: 2.5px solid rgba(255, 107, 53, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  animation: gallery-spin 0.75s linear infinite;
}

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

.profile-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.profile-avatar-sm {
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}

.profile-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-stars {
  font-size: 1.1rem;
}

.profile-avatar-stars .star-outline {
  color: var(--border);
}

.profile-avatar-stars .star-filled {
  color: #fdcb6e;
}

.profile-rating {
  color: #fdcb6e;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.profile-sidebar {
  position: sticky;
  top: 100px;
}

.profile-sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.profile-sidebar-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.profile-price {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.profile-rating-summary {
  color: #fdcb6e;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.profile-sidebar-reviews {
  max-height: 400px;
  overflow-y: auto;
}

.profile-sidebar-reviews .review-card {
  padding: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.profile-sidebar-reviews .review-header {
  margin-bottom: 0.5rem;
}

.profile-sidebar-reviews .review-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.profile-sidebar-reviews .review-stars {
  font-size: 0.85rem;
}

.profile-sidebar-reviews p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-contact-subheading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 1rem 0 0.6rem;
}

.profile-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-contact-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.profile-contact-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.profile-contact-label {
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.profile-contact-value {
  color: var(--text-muted);
  word-break: break-all;
}

.profile-contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.profile-contact-link:hover {
  text-decoration: underline;
}

.profile-about {
  line-height: 1.7;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-section {
  margin-bottom: 2rem;
}

.profile-section h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
}

/* Reviews */
.review-card {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 1rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  overflow: hidden;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-stars {
  color: #fdcb6e;
  font-size: 1rem;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  padding: 1.5rem;
  text-align: center;
}

.dashboard-card h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: .25rem;
}

.dashboard-card p { color: var(--text-muted); }

.otc-apps-section {
  margin-top: 2.5rem;
}

.otc-apps-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.otc-app-card h3 {
  color: var(--accent);
}

.otc-platform-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.25rem;
}

.otc-platform-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Share link section */
/* Price amount + currency row */
.price-input-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.price-currency-select {
  flex: 2;
  min-width: 0;
}

@media (max-width: 500px) {
  .price-input-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Payment section helper note */
.payment-section-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Booking links intro */
.booking-links-intro {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.booking-links-intro p {
  margin: 0 0 0.75rem;
}

.booking-links-intro p:last-child {
  margin-bottom: 0;
}

.booking-links-intro ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding: 0;
}

.booking-links-intro li {
  margin-bottom: 0.25rem;
}

.booking-links-intro a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking-links-intro a:hover {
  opacity: 0.8;
}

.share-link-section {
  margin-top: 2rem;
  padding: 2rem;
}

.share-link-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.share-link-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.share-link-input {
  flex: 1;
  font-size: 1.05rem;
  font-family: inherit;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  cursor: text;
  min-width: 0;
}

.share-link-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .share-link-row {
    flex-direction: column;
    align-items: stretch;
  }
  .share-link-btn {
    width: 100%;
  }
}

/* ── Package admin rows (payment-settings page) ── */
.pkg-admin-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  background: #fff;
}

.pkg-admin-icon-preview {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pkg-admin-icon-preview svg {
  width: 100%;
  height: 100%;
}

.pkg-admin-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.pkg-admin-price {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.pkg-admin-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pkg-admin-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: underline;
}

/* Package add / edit form */
.pkg-add-form textarea.form-input,
.pkg-edit-form textarea.form-input {
  resize: vertical;
  min-height: 4rem;
}

.pkg-admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: flex-start;
}

.pkg-edit-form {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 0.6rem;
}

.required-star {
  color: var(--primary);
}

/* ── Icon picker (payment-settings page) ── */
.pkg-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.pkg-icon-opt {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  padding: 0.5rem;
}

.pkg-icon-opt svg {
  width: 1.4rem;
  height: 1.4rem;
}

.pkg-icon-opt:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0fafa;
}

.pkg-icon-opt.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: #e0f7f6;
}

/* ── Package cards on public profile ── */
.pkg-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition);
  color: var(--text);
}

.pkg-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.pkg-card-icon {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  background: rgba(78, 205, 196, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.pkg-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.pkg-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.pkg-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.pkg-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
}

.pkg-card-cur {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Package description tooltip on profile */
.pkg-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.pkg-tooltip-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  transition: color var(--transition);
}

.pkg-tooltip-icon:hover,
.pkg-tooltip-icon:focus {
  color: var(--primary);
  outline: none;
}

.pkg-tooltip-box {
  display: none;
  position: absolute;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  width: 260px;
  box-shadow: var(--shadow-hover);
  z-index: 200;
  pointer-events: none;
}

.pkg-tooltip-wrap:hover .pkg-tooltip-box,
.pkg-tooltip-wrap:focus-within .pkg-tooltip-box,
.pkg-tooltip-wrap.open .pkg-tooltip-box {
  display: block;
}

@media (max-width: 600px) {
  .pkg-tooltip-box {
    right: auto;
    left: 0;
    top: calc(100% + 0.5rem);
    transform: none;
    width: 230px;
  }
}

/* Package "Learn more" button on card */
.pkg-learn-more {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pkg-learn-more:hover,
.pkg-learn-more:focus {
  color: var(--accent);
  outline: none;
}

/* Package card thumbnail variant */
.pkg-card-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 40.5px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(78, 205, 196, 0.12);
}

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

/* Package Detail Modal */
.pkg-detail-overlay {
  z-index: 1100;
  align-items: center;
  padding: 1rem;
}

.pkg-detail-modal {
  max-width: 540px;
  width: 100%;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  background: var(--bg-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.1);
}

.modal-overlay.show .pkg-detail-modal {
  transform: scale(1) translateY(0);
}

.pkg-detail-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition);
}

.pkg-detail-close:hover {
  background: rgba(0, 0, 0, 0.65);
}

.pkg-detail-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.18) 0%, rgba(255, 107, 53, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pkg-detail-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pkg-detail-thumb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.pkg-detail-thumb-icon svg {
  width: 4rem;
  height: 4rem;
  opacity: 0.7;
}

.pkg-detail-body {
  padding: 1.75rem 2rem 2rem;
}

.pkg-detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.pkg-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 1rem;
}

.pkg-detail-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  white-space: pre-wrap;
}

.pkg-detail-desc:empty {
  display: none;
}

.pkg-detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pkg-detail-buy {
  flex: 1;
  min-width: 120px;
  text-align: center;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
}

.pkg-detail-message {
  flex: 1;
  min-width: 120px;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 480px) {
  .pkg-detail-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .pkg-detail-title {
    font-size: 1.15rem;
  }

  .pkg-detail-actions {
    flex-direction: column;
  }
}

/* Admin */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  min-height: calc(100vh - 80px);
}

.admin-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.admin-sidebar a {
  display: block;
  padding: .75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  margin-bottom: .25rem;
  font-weight: 600;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,107,53,.15);
  color: var(--primary);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg);
  font-weight: 700;
  color: var(--text-muted);
  font-size: .85rem;
}

.data-table tr:hover td {
  background: rgba(255,107,53,.05);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--text);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
}

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

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

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  transform: scale(.9);
  transition: var(--transition);
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal h3 { margin-bottom: 1rem; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 3rem;
}

/* Setup wizard steps */
.setup-steps {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.setup-step {
  padding: .5rem 1rem;
  background: var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
}

.setup-step.active {
  background: var(--primary);
  color: white;
}

.setup-step.done {
  background: var(--success);
  color: white;
}

/* Loading */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

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

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state .btn { margin-top: 1rem; }

/* ── Searchable Multi-select Combobox ── */
.ms-wrap {
  position: relative;
}

.ms-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  min-height: 46px;
  padding: 0.45rem 2.25rem 0.45rem 0.65rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: text;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.ms-control.ms-open,
.ms-control:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,.2);
  outline: none;
}

.ms-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 107, 53, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.ms-tag-remove:hover {
  opacity: 1;
}

.ms-input {
  flex: 1;
  min-width: 80px;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
  padding: 0.2rem 0.3rem;
}

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

.ms-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.ms-control.ms-open .ms-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.ms-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 500;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.ms-dropdown.ms-show {
  display: block;
}

.ms-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text);
  transition: background 0.12s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

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

.ms-option:hover,
.ms-option.ms-focused {
  background: rgba(255, 107, 53, 0.07);
}

.ms-option.ms-selected {
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary-dark);
  font-weight: 600;
}

.ms-option.ms-selected::after {
  content: '✓';
  margin-left: auto;
  color: var(--primary);
  font-weight: 800;
}

.ms-option.ms-hidden {
  display: none;
}

.ms-no-results {
  padding: 0.75rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Single-select variant */
.ms-wrap.ms-single .ms-tag {
  background: rgba(78, 205, 196, 0.12);
  color: var(--accent-dark);
  border-color: rgba(78, 205, 196, 0.3);
}

/* ── Nationality flag badge (bottom-right of avatar circle) ── */
.profile-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.profile-flag-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.profile-flag-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Flag in review cards ── */
.review-flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.review-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Profile page – Tags display (public view) */
.profile-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-tag--subject {
  background: rgba(255, 107, 53, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(255, 107, 53, 0.25);
}

.profile-tag--language {
  background: rgba(78, 205, 196, 0.15);
  color: var(--accent-dark);
  border: 1px solid rgba(78, 205, 196, 0.3);
}

.profile-tag--nationality {
  background: rgba(108, 92, 231, 0.1);
  color: #5a4fcf;
  border: 1px solid rgba(108, 92, 231, 0.2);
}

.profile-tag--qualification {
  background: rgba(253, 203, 110, 0.25);
  color: #b8860b;
  border: 1px solid rgba(184, 134, 11, 0.35);
}

.profile-tag--platform {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.profile-tag-icon {
  display: inline-flex;
  align-items: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.profile-tag-icon svg {
  width: 100%;
  height: 100%;
}

.profile-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  display: block;
}

/* Privacy note (dashboard, join) */
.privacy-note {
  max-width: 700px;
  margin: 3rem auto 0;
  background: rgba(78, 205, 196, 0.08);
  border: 1.5px solid rgba(78, 205, 196, 0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.privacy-note-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.privacy-note-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}
.privacy-note-text strong {
  color: var(--accent-dark);
}
.privacy-note-text a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE – General
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .header-inner { flex-direction: row; gap: 0.5rem; flex-wrap: nowrap; align-items: center; }
  .main-nav { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 1.8rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
}

/* ════════════════════════════════════════════════════════
   MOBILE TRANSLATE PILL  (top-right, mobile-only)
════════════════════════════════════════════════════════ */
.mobile-translate-pill,
.mobile-translate-dropdown {
  display: none;
}

@media (max-width: 900px) {
  /* Show the mobile pill in the header */
  .mobile-translate-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    background: rgba(255,107,53,0.08);
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mobile-translate-pill svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
  }

  /* Mobile translate dropdown wrapper */
  .mobile-translate-dropdown {
    position: fixed;
    top: 70px;
    right: 1rem;
    z-index: 500;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    padding: 1rem;
    min-width: 220px;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-translate-dropdown.open {
    display: flex;
  }

  .mobile-translate-dropdown-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
  }

  /* When the Google translate widget is moved into the mobile slot,
     style it the same as the sidebar but with mobile spacing */
  #mobileTranslateWidgetSlot .goog-te-gadget > span,
  #mobileTranslateWidgetSlot .goog-logo-link,
  #mobileTranslateWidgetSlot .goog-te-gadget img {
    display: none !important;
  }

  #mobileTranslateWidgetSlot .goog-te-gadget {
    width: 100%;
  }

  #mobileTranslateWidgetSlot select.goog-te-combo {
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.65rem 2.5rem 0.65rem 0.9rem;
    width: 100%;
    cursor: pointer;
    outline: none;
  }

  /* Hide sidebar translate card on mobile */
  .translate-sidebar-card {
    display: none;
  }

  /* Hide default header nav collapse on mobile profile */
  .page-profile .header-inner {
    padding: 0.75rem 1rem;
    align-items: center;
  }

  /* Hide nav menu items on mobile — profile header only shows logo + translate pill */
  .page-profile .main-nav {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════
   TEACHER PROFILE – MOBILE REDESIGN
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ── Layout: single column, sidebar moves below main ── */
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Remove default card padding on mobile for cleaner look */
  .profile-page {
    margin-top: 0;
  }

  /* ── Hero Banner ── */
  .profile-media {
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
    min-height: 160px;
  }

  /* Video / cover aspect ratio on mobile */
  .profile-media-cover {
    max-height: 240px;
    min-height: 160px;
  }

  /* ── Profile body card: mobile hero style ── */
  .profile-body-card {
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    border-bottom: 1px solid var(--border);
  }

  /* ── Avatar section: centered below media ── */
  .profile-body-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding-bottom: 1.25rem;
    border-bottom: none;
    margin-bottom: 0;
    position: relative;
    background: var(--bg-card);
  }

  /* Avatar block: centered, no overlap with media */
  .profile-avatar-block {
    margin-top: 1.5rem;
    z-index: 10;
    position: relative;
  }

  /* Avatar wrap must match avatar size so flag badge anchors correctly */
  .profile-avatar-wrap {
    width: 104px;
    height: 104px;
  }

  .profile-avatar-sm {
    width: 104px;
    height: 104px;
    min-width: 104px;
    border: 4px solid #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  }

  /* Flag badge — bottom-right of avatar circle */
  .profile-flag-badge {
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border: 2.5px solid #fff;
  }

  .profile-avatar-stars {
    margin-top: 0.4rem;
    font-size: 1rem;
  }

  /* Name & meta centered below avatar */
  .profile-body-meta {
    padding: 0.75rem 1.25rem 1.25rem;
    text-align: center;
    width: 100%;
  }

  .profile-name {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
  }

  .profile-headline {
    font-size: 0.92rem;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
  }

  .profile-experience-badge {
    justify-content: center;
  }

  /* Tags rows centered */
  .profile-tags-row {
    justify-content: center;
  }

  /* ── Mobile info sections ── */
  .profile-body-about {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
  }

  .profile-body-about h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  /* Gallery */
  .profile-gallery-wrap {
    margin-top: 0;
    padding: 1.25rem;
    border-top: 1px solid var(--border);
  }

  .profile-gallery-wrap h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .profile-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  /* ── Sidebar on mobile: flat card list ── */
  .profile-sidebar {
    position: static;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .profile-sidebar-card {
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--border);
    margin-bottom: 0;
    padding: 1.25rem;
  }

  /* Hide booking buttons in sidebar on mobile — sticky bar handles this */
  .profile-sidebar-booking-card {
    display: none;
  }

  /* ── Reviews section mobile ── */
  .profile-sidebar-reviews {
    max-height: none;
    overflow-y: visible;
  }

  /* ── Sticky bottom booking bar ── */
  /* Visibility is controlled by JS (checkWidth) — CSS provides layout only */
  .mobile-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    gap: 0.6rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  }

  .mobile-booking-bar .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.75rem 0.5rem;
  }

  /* Push footer above sticky bar */
  .site-footer {
    padding-bottom: calc(2rem + 70px);
  }

  /* Container padding — scoped to profile page only */
  .page-profile .container {
    padding: 0;
  }

  /* Add bottom padding to profile for sticky bar */
  .profile-page {
    padding-bottom: 80px;
  }
}

/* ── Below 480px tweaks ── */
@media (max-width: 480px) {
  .profile-name { font-size: 1.25rem; }
  .profile-media-cover { max-height: 200px; }
  .mobile-translate-dropdown { right: 0.5rem; min-width: 200px; }
}
