/* 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;
  min-width: 0;
}

.profile-header-brand-root {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}

/* Blog view: entire header brand (logo + name) links back to full profile */
a.profile-header-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 12px;
  outline-offset: 3px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
a.profile-header-brand-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
a.profile-header-brand-link:focus-visible {
  outline: 2px solid var(--primary);
}
a.profile-header-brand-link .profile-header-title {
  cursor: pointer;
}

.profile-header-banner-wrap {
  display: flex;
  align-items: center;
  max-width: min(100%, 400px);
  min-width: 0;
}

.profile-header-banner-img {
  display: block;
  max-height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.profile-header-square-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.profile-header-title {
  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;
}

.profile-header-title: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;
}

.profile-header-layout-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-header-edit-preview-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.profile-header-edit-preview {
  max-height: 80px;
  max-width: 80px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.profile-header-edit-preview--banner {
  max-height: 56px;
  max-width: min(320px, 100%);
}

@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-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

.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-loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 3rem;
}

.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 ── */
.messages-page-header {
  margin-bottom: 2rem;
}
.messages-page-header h1 {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.messages-page-header .messages-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.msg-inbox-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  border: 1px solid var(--border);
}
@media (min-width: 640px) {
  .msg-inbox-container { padding: 1.5rem; }
}

.msg-row {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.msg-row:last-child { margin-bottom: 0; }

.msg-row:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.12);
  transform: translateY(-1px);
}

.msg-row--unread {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.06);
}

.msg-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.msg-row-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.msg-new-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #ff9a5c 100%);
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  flex-shrink: 0;
  animation: msg-new-glow 2s ease-in-out infinite;
}
@keyframes msg-new-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4); }
  50% { box-shadow: 0 2px 14px rgba(255, 107, 53, 0.55); }
}

.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: 32px;
  height: 32px;
  padding: 0;
  background: rgba(214, 48, 49, 0.06);
  border: 1px solid transparent;
  border-radius: 8px;
  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: 16px;
  height: 16px;
  pointer-events: none;
}

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

.msg-from {
  font-weight: 800;
  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.55;
}

.msg-contact-wrap {
  margin-top: 0.5rem;
}

.msg-contact-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(78, 205, 196, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.msg-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(255, 107, 53, 0.04) 100%);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}
.msg-empty-state p {
  font-size: 1.05rem;
  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-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.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-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 0.75rem;
}
.teacher-card-badge--verified {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.teacher-card-badge--qual {
  background: rgba(253, 203, 110, 0.3);
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.25);
}
.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;
}

/* Locked profile – whole screen blurred frosted glass, non-clickable, popup overlay */
.profile-page.profile-locked {
  position: relative;
}
/* Disable interaction with content behind overlay */
body.profile-locked .site-header,
body.profile-locked .container,
body.profile-locked .profile-layout {
  pointer-events: none;
  user-select: none;
}
.profile-locked-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
  pointer-events: auto;
}
.profile-locked-popup {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-hover);
}
.profile-locked-popup p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text);
}
.profile-locked-popup .btn {
  display: inline-block;
}

.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-sidebar-reviews .review-text-wrap {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}

.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;
}

/* About section tabs */
.profile-about-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.profile-about-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.profile-about-tab:hover {
  color: var(--text);
}

.profile-about-tab.active {
  color: var(--primary);
}

.profile-about-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

.profile-about-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.profile-about-panel {
  min-height: 1.5rem;
}

.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;
}

.review-expand-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.2rem 0;
  margin-left: 0.25rem;
}

.review-expand-btn:hover {
  text-decoration: underline;
}

/* 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); }

/* Dashboard — Blogs card highlighted as new feature */
.dashboard-card--blogs-feature {
  position: relative;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(165deg, rgba(240, 249, 255, 0.85) 0%, var(--bg-card, #fff) 50%);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.45),
    0 0 22px rgba(56, 189, 248, 0.24),
    0 0 48px rgba(14, 165, 233, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dashboard-card--blogs-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.65),
    0 0 32px rgba(56, 189, 248, 0.38),
    0 0 64px rgba(14, 165, 233, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.dashboard-card--blogs-feature:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 3px;
}
.dashboard-card-feature-head {
  display: flex;
  justify-content: center;
  margin-bottom: 0.25rem;
  min-height: 1.4rem;
}
.dashboard-new-feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0c4a6e;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid rgba(56, 189, 248, 0.85);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45), 0 0 2px rgba(14, 165, 233, 0.45);
}

/* Dashboard — one-time welcome / new features modal */
body.dashboard-welcome-open {
  overflow: hidden;
}
.dashboard-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.dashboard-welcome-overlay.show {
  opacity: 1;
  visibility: visible;
}
.dashboard-welcome-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, 720px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(125, 211, 252, 0.55);
  background: linear-gradient(165deg, #f0f9ff 0%, #fff 38%, #fefce8 100%);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 0 40px rgba(56, 189, 248, 0.2),
    0 24px 64px rgba(15, 23, 42, 0.18);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.dashboard-welcome-overlay.show .dashboard-welcome-modal {
  transform: scale(1) translateY(0);
}
.dashboard-welcome-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: #64748b;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.dashboard-welcome-close:hover {
  color: #0f172a;
  background: #fff;
  transform: scale(1.05);
}
.dashboard-welcome-inner {
  padding: 2rem 1.75rem 1.75rem;
  overflow-y: auto;
  max-height: min(88vh, 680px);
}
.dashboard-welcome-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0369a1;
}
.dashboard-welcome-title {
  margin: 0 0 0.85rem;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(110deg, #0ea5e9 0%, #6366f1 42%, #d946ef 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dashboard-welcome-lead {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
}
.dashboard-welcome-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dashboard-welcome-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.dashboard-welcome-list-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #e0f2fe, #fef3c7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.dashboard-welcome-list-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}
.dashboard-welcome-list-text strong {
  font-size: 0.98rem;
  color: var(--text);
}
.dashboard-welcome-list-text span {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.dashboard-welcome-footnote {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}
.dashboard-welcome-cta {
  width: 100%;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.35);
}

/* Analytics card – centered, clickable */
.analytics-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.analytics-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.analytics-card:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.analytics-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}
.analytics-card-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.analytics-card-stats {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}
.analytics-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.analytics-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.analytics-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.analytics-card-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Analytics modal – override base .modal styles */
.modal.analytics-modal {
  padding: 1.75rem 1.5rem 2rem;
}

/* Analytics modal overlay – blur backdrop, smooth transition */
.analytics-modal-overlay {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.45);
}
.analytics-modal-overlay .modal {
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.analytics-modal-overlay.show .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Analytics modal container */
.analytics-modal {
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem 1.5rem 2rem;
}
.analytics-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.analytics-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.analytics-modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.analytics-modal-close {
  background: var(--bg);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.analytics-modal-close:hover {
  color: var(--text);
  background: var(--border);
}

/* Summary cards – staggered fade-in when modal opens */
.analytics-modal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.analytics-modal-open .analytics-modal-summary .analytics-summary-item {
  animation: analyticsCardFade 0.4s ease forwards;
}
.analytics-modal-open .analytics-summary-item[data-metric="views"] { animation-delay: 0.05s; opacity: 0; }
.analytics-modal-open .analytics-summary-item[data-metric="clicks"] { animation-delay: 0.1s; opacity: 0; }
.analytics-modal-open .analytics-summary-item[data-metric="leads"] { animation-delay: 0.15s; opacity: 0; }
@keyframes analyticsCardFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.analytics-summary-item {
  text-align: center;
  padding: 1rem 0.75rem;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.08) 0%, rgba(108, 92, 231, 0.06) 100%);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(78, 205, 196, 0.15);
}
.analytics-summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.analytics-summary-item span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

/* Chart sections – clear separation, no overlap */
.analytics-modal-section {
  margin-bottom: 2rem;
}
.analytics-modal-open .analytics-modal-section {
  animation: analyticsSectionFade 0.5s ease 0.2s both;
}
@keyframes analyticsSectionFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.analytics-modal-section:last-of-type {
  margin-bottom: 1.5rem;
}
.analytics-modal-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.analytics-modal-chart-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg);
}
.analytics-chart-bar-wrap {
  height: 200px;
  min-height: 200px;
}
.analytics-chart-pie-wrap {
  height: 200px;
  min-height: 200px;
}
.analytics-modal-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Explanatory note – always visible, no overlap */
.analytics-modal-note-wrap {
  padding: 1rem 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}
.analytics-modal-open .analytics-modal-note-wrap {
  animation: analyticsSectionFade 0.5s ease 0.35s both;
}
.analytics-modal-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 420px) {
  .analytics-modal {
    padding: 1.25rem 1rem 1.5rem;
  }
  .analytics-modal-summary {
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
  }
  .analytics-chart-bar-wrap,
  .analytics-chart-pie-wrap {
    height: 180px;
    min-height: 180px;
  }
}

.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 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 th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.data-table th.sortable:hover {
  color: var(--primary);
}

.data-table th .sort-icon {
  opacity: 0.5;
  font-size: 0.75em;
  margin-left: 0.25em;
}

.data-table th.sort-asc .sort-icon::after { content: ' ↑'; opacity: 1; }
.data-table th.sort-desc .sort-icon::after { content: ' ↓'; opacity: 1; }

.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; }

/* Forgot password — login modal */
body.modal-open {
  overflow: hidden;
}

.forgot-password-overlay {
  z-index: 3000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(45, 52, 54, 0.55);
}

.forgot-password-modal {
  max-width: 460px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 107, 53, 0.15);
}

.forgot-password-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 1.75rem 1rem;
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.08) 0%, transparent 100%);
}

.forgot-password-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.forgot-password-modal__lede {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.forgot-password-spam-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 1.75rem 1.25rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #fff8f5 0%, #fff0eb 100%);
  border: 1px solid #ffd4c4;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.forgot-password-spam-banner__icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.forgot-password-form {
  padding: 0 1.75rem 1.75rem;
}

.forgot-password-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Login — no account registered (modal body + OTC Pro note) */
.login-not-registered-body {
  padding: 0 1.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.login-not-registered-body > p {
  margin: 0 0 1rem;
  color: var(--text);
}

.login-not-registered-body a {
  color: #e17055;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-otc-pro-note {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #f7f8fa;
  border: 1px solid #e0e3e7;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.login-otc-pro-note strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.login-otc-pro-note p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.login-otc-pro-note ol {
  margin: 0.35rem 0 0 1.15rem;
  padding: 0;
  color: var(--text);
}

.login-otc-pro-note li {
  margin-bottom: 0.45rem;
}

.login-otc-pro-note li:last-child {
  margin-bottom: 0;
}

.onboarding-notice--spam-emphasis {
  border: 2px solid rgba(255, 107, 53, 0.35);
  background: linear-gradient(135deg, #fffdfb 0%, #fff5f0 100%);
}

.onboarding-notice--spam-emphasis .onboarding-notice__heading {
  font-size: 1.05rem;
}

/* 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); }
}

/* Blog URL: hide profile shell until blog layout is ready (no flash of main profile) */
body.profile-blog-route-loading #profileContent {
  visibility: hidden;
  pointer-events: none;
}
body.profile-blog-route-loading .loading {
  min-height: 45vh;
  padding: 4rem 2rem;
}

/* 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 verification & qualification badges */
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 1rem;
  vertical-align: middle;
}
.profile-badge--verified {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.profile-badge--verified svg { flex-shrink: 0; }
.profile-badge--qualification {
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.35), rgba(245, 158, 11, 0.25));
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.3);
}
.profile-badge--qualification svg { flex-shrink: 0; opacity: 0.9; }

.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;
  }

  .profile-about-tabs {
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .profile-about-tab {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    min-height: 44px;
    touch-action: manipulation;
  }

  /* 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; }
}

/* ── Pricing tier grid (join + paywall) ── */
.pricing-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
  justify-items: stretch;
  width: 100%;
}
@media (max-width: 768px) {
  .pricing-tier-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
  }
}
.pricing-tier {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pricing-tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.pricing-tier--highlight {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
}
.pricing-tier--highlight:hover {
  box-shadow: 0 16px 50px rgba(255, 107, 53, 0.28);
}
.pricing-tier-header {
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(255, 107, 53, 0.06) 100%);
}
.pricing-tier--highlight .pricing-tier-header {
  background: linear-gradient(135deg, var(--primary) 0%, #ff9a5c 100%);
  color: #fff;
  padding: 2.25rem 1.5rem;
}
.pricing-tier-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  background: var(--accent);
  color: #fff;
}
.pricing-tier--highlight .pricing-tier-badge {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.pricing-tier-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.pricing-tier--highlight .pricing-tier-name {
  color: rgba(255, 255, 255, 0.9);
}
.pricing-tier-price {
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
}
.pricing-tier--highlight .pricing-tier-price {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 2.75rem);
}
.pricing-tier-period {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pricing-tier--highlight .pricing-tier-period {
  color: rgba(255, 255, 255, 0.85);
}
.pricing-tier-savings {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}
.pricing-tier--highlight .pricing-tier-savings {
  color: #86efac;
  background: rgba(255, 255, 255, 0.2);
}
.pricing-tier-body {
  padding: 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pricing-tier--highlight .pricing-tier-body {
  padding: 2rem 1.5rem;
}
.pricing-tier-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}
.pricing-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.pricing-tier-features .pl-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #00d2a8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
}
.pricing-tier-cta {
  display: block;
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #ff9a5c 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}
.pricing-tier-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.45);
}
.pricing-tier--highlight .pricing-tier-cta {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.pricing-tier--highlight .pricing-tier-cta:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

/* ── Teacher blogs (dashboard modal) ── */
.blogs-mgmt-overlay {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.5);
}
.blogs-mgmt-modal {
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}
.blogs-mgmt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.blogs-mgmt-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}
.blogs-mgmt-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.blogs-mgmt-close:hover {
  color: var(--text);
  background: var(--border);
}
.blogs-mgmt-body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.blogs-limit-notice {
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff8f5 0%, #fff0eb 100%);
  border: 1px solid #ffd4c4;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}
.blogs-mgmt-toolbar {
  margin-bottom: 1rem;
}
.blogs-list-root {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.blogs-mgmt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blogs-mgmt-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(255, 107, 53, 0.25);
}
.blogs-mgmt-row-title {
  font-size: 1rem;
}
.blogs-mgmt-row-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.blogs-mgmt-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.blogs-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
.blogs-badge--pub {
  background: rgba(78, 205, 196, 0.2);
  color: #0d6e66;
}
.blogs-badge--draft {
  background: rgba(108, 92, 231, 0.15);
  color: #4b3bbd;
}
.blogs-mgmt-muted,
.blogs-mgmt-error {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.blogs-mgmt-error {
  color: var(--error);
}
.blogs-editor-heading {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}
.blogs-featured-preview {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.blogs-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.blogs-btn-delete {
  margin-left: auto;
  color: var(--error);
  border-color: rgba(214, 48, 49, 0.35);
}
.blogs-mgmt-editor-wrap {
  position: relative;
  min-height: 12rem;
}
.blogs-mgmt-saving-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  transition: opacity 0.2s ease;
}
.blogs-mgmt-saving-overlay.is-active {
  display: flex;
}
.blogs-mgmt-saving-panel {
  text-align: center;
  max-width: 18rem;
}
.blogs-mgmt-saving-spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 107, 53, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: blogs-mgmt-spin 0.75s linear infinite;
  margin-bottom: 1rem;
  vertical-align: middle;
}
@keyframes blogs-mgmt-spin {
  to {
    transform: rotate(360deg);
  }
}
.blogs-mgmt-saving-text {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.blogs-mgmt-saving-hint {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
}
#blogsMgmtEditor[aria-busy="true"] .blogs-mgmt-editor-fields {
  pointer-events: none;
  opacity: 0.55;
}

/* ── Teacher blogs (public profile article + sidebar modal) ── */
.profile-blog-root {
  width: 100%;
  margin-top: 0.5rem;
}
/* Match main profile content: same white card, radius, shadow, padding as .profile-body-card */
.profile-blog-inner.profile-body-card {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  background: #fff;
  box-sizing: border-box;
}
.profile-blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}
.profile-blog-back:hover {
  background: rgba(255, 107, 53, 0.15);
  transform: translateX(-2px);
}
.profile-blog-feature {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}
.profile-blog-feature img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
}
.profile-blog-title {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.profile-blog-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}
.profile-blog-inner--missing .profile-blog-missing-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.profile-blogs-sidebar-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.profile-blogs-open-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-blogs-open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.profile-blogs-modal .profile-blogs-list-modal {
  max-width: min(92vw, 680px);
  width: 100%;
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 28px 70px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.profile-blogs-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
}
.profile-blogs-modal-head-text {
  min-width: 0;
}
.profile-blogs-modal-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.profile-blogs-modal-subtitle {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}
.profile-blogs-modal-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s, background 0.2s;
}
.profile-blogs-modal-close:hover {
  color: var(--text);
  background: var(--border);
}
.profile-blogs-list-body {
  padding: 1.1rem 1.25rem 1.35rem;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.profile-blogs-card-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.profile-blogs-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.profile-blogs-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.1),
    0 2px 6px rgba(15, 23, 42, 0.04);
  border-color: rgba(255, 107, 53, 0.35);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 107, 53, 0.04) 100%);
}
.profile-blogs-card:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.45);
  outline-offset: 2px;
}
.profile-blogs-card-media {
  flex: 0 0 clamp(112px, 28vw, 152px);
  width: clamp(112px, 28vw, 152px);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #eef2f7 0%, #dfe6ee 100%);
  align-self: stretch;
  min-height: 88px;
  position: relative;
}
.profile-blogs-card-img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
  display: block;
}
.profile-blogs-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #e85d2a 100%);
}
.profile-blogs-card-placeholder-letter {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.95;
}
.profile-blogs-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.1rem 0;
}
.profile-blogs-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-blogs-card-excerpt {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-blogs-card-excerpt--empty {
  font-style: italic;
  opacity: 0.85;
}
.profile-blogs-card-cta {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.profile-blogs-card:hover .profile-blogs-card-cta {
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 520px) {
  .profile-blogs-card {
    flex-direction: column;
    gap: 0.75rem;
  }
  .profile-blogs-card-media {
    flex: none;
    width: 100%;
    min-height: 140px;
    max-height: 180px;
  }
  .profile-blogs-card-img {
    min-height: 140px;
    max-height: 180px;
  }
}
@media (max-width: 900px) {
  .blogs-mgmt-modal {
    max-height: 92vh;
  }
}

/* Clarify sidebar contact (Edit Profile) vs main-column social icons (website theme) */
.teacher4me-callout-different {
  padding: 0.85rem 1rem;
  background: var(--surface, #f8fafc);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  line-height: 1.55;
}

/* Edit Profile — two clear panels: sidebar contact vs social icons */
.edit-profile-panel {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-card, #fff);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.edit-profile-panel--contact {
  border-left: 4px solid #6366f1;
}
/* Edit Profile only — highlights the social-links editor (not used on public profile) */
.edit-profile-panel--social {
  margin-top: 1.75rem;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(160deg, rgba(240, 249, 255, 0.95) 0%, rgba(224, 242, 254, 0.5) 45%, var(--bg-card, #fff) 100%);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.45),
    0 0 20px rgba(56, 189, 248, 0.28),
    0 0 40px rgba(14, 165, 233, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.edit-profile-panel__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.35rem;
}
.edit-profile-panel--social .edit-profile-panel__title {
  margin: 0;
}
.edit-profile-new-feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0c4a6e;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid rgba(56, 189, 248, 0.85);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45), 0 0 2px rgba(14, 165, 233, 0.5);
}
.edit-profile-panel__head {
  margin-bottom: 1rem;
}
.edit-profile-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.edit-profile-panel__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.contact-links-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-link-row {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, 2fr) auto;
  gap: 0.75rem;
  align-items: start;
}
.contact-links-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.contact-add-btn {
  font-weight: 700;
}

/* Website theme — social links editor */
.social-links-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.social-link-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr) auto;
  gap: 0.75rem;
  align-items: start;
}
@media (max-width: 720px) {
  .social-link-row,
  .contact-link-row {
    grid-template-columns: 1fr;
  }
  .social-link-row .social-remove-btn,
  .contact-link-row .contact-remove-btn {
    justify-self: start;
  }
}
.social-links-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.social-links-count {
  margin: 0;
}

/* Public profile — follow social */
.profile-social-wrap {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #e2e8f0);
}
.profile-social-heading {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.profile-social-icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  justify-items: center;
  align-items: center;
  width: 100%;
}
@media (max-width: 640px) {
  .profile-social-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.profile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.profile-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  border-color: var(--primary, #ff6b35);
}
.profile-social-link:focus-visible {
  outline: 2px solid var(--primary, #ff6b35);
  outline-offset: 3px;
}
.profile-social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
