/* ═══════════════════════════════════════════
   SUB-PAGE SHARED STYLES  (pages.css)
   Used by: about, contact, privacy, terms, data-deletion
═══════════════════════════════════════════ */
:root {
  --primary: #FC46AA;
  --primary-dark: #e03c99;
  --secondary: #9A67EA;
  --dark: #1a1a2e;
  --text: #444;
  --text-light: #777;
  --bg: #fafafa;
  --card-bg: #fff;
  --border: #eee;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Top navigation bar ── */
.page-nav {
  background: var(--dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.page-nav-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-nav-logo img { border-radius: 6px; }
.page-nav-links { display: flex; gap: 24px; }
.page-nav-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
.page-nav-links a:hover, .page-nav-links a.active { color: #fff; }

@media (max-width: 600px) {
  .page-nav { padding: 0 16px; }
  .page-nav-links { gap: 14px; }
  .page-nav-links a { font-size: .8rem; }
}

/* ── Hero banner (page title) ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d1b4e 100%);
  padding: 56px 24px 48px;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero p {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .page-hero { padding: 40px 16px 36px; }
  .page-hero h1 { font-size: 1.6rem; }
}

/* ── Main content container ── */
.page-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Typography ── */
.page-body h2 {
  font-size: 1.35rem;
  color: var(--dark);
  margin: 36px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}
.page-body h3 {
  font-size: 1.1rem;
  color: #333;
  margin: 24px 0 8px;
}
.page-body p {
  margin-bottom: 14px;
  font-size: .97rem;
}
.page-body ul, .page-body ol {
  padding-left: 24px;
  margin: 8px 0 18px;
}
.page-body li {
  margin-bottom: 6px;
  font-size: .95rem;
}
.page-body a { color: var(--primary); text-decoration: none; }
.page-body a:hover { text-decoration: underline; }

/* ── Card container ── */
.page-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  margin-bottom: 24px;
}

/* ── Grid layouts ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.value-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  text-align: center;
}
.value-card .value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.value-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--dark); }
.value-card p { font-size: .92rem; color: var(--text-light); margin: 0; }

/* ── Contact form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full-width { grid-column: 1 / -1; }

@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: #444;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: .95rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252,70,170,.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.btn-primary {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 36px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Footer ── */
.page-footer {
  text-align: center;
  padding: 28px 24px;
  color: var(--text-light);
  font-size: .85rem;
  border-top: 1px solid var(--border);
}
.page-footer a { color: var(--primary); text-decoration: none; margin: 0 10px; }
.page-footer a:hover { text-decoration: underline; }
.page-footer-links { margin-bottom: 10px; }

/* ════════════════════════════════════════════════════
   NEW PAGE STYLES (DIY, Community, Classes, Stylists)
   ════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────
   Page Hero
   ───────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────
   Category Tabs
   ───────────────────────────────────────────────────── */
.category-tabs-section {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 90;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--card-bg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.category-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ─────────────────────────────────────────────────────
   Content Section
   ───────────────────────────────────────────────────── */
.content-section {
  padding: 3rem 0;
}

.content-section.bg-light {
  background: var(--bg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.result-count {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ─────────────────────────────────────────────────────
   Videos Grid
   ───────────────────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(252, 70, 170, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary);
}

.play-button svg {
  margin-left: 4px;
}

.video-category {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.6875rem;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.video-info {
  padding: 1rem;
}

.video-info h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────
   Gallery Grid
   ───────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-category {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────
   Video Modal
   ───────────────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.video-modal-player {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-modal-player iframe {
  width: 100%;
  height: 100%;
}

/* ─────────────────────────────────────────────────────
   Classes Grid
   ───────────────────────────────────────────────────── */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.class-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.class-card-image {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.class-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.class-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.6875rem;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.class-price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #10B981;
  color: white;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.class-card-body {
  padding: 1.25rem;
}

.class-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.class-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.class-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.class-meta-item svg {
  flex-shrink: 0;
}

.class-host {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.class-host-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.class-host-info {
  flex: 1;
}

.class-host-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}

.class-host-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.class-card-footer {
  padding: 0 1.25rem 1.25rem;
}

.class-spots {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.class-spots strong {
  color: var(--primary);
}

/* ─────────────────────────────────────────────────────
   Stylists Grid
   ───────────────────────────────────────────────────── */
.stylists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stylist-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stylist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stylist-card-header {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.stylist-avatar {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--card-bg);
  object-fit: cover;
  background: var(--bg);
}

.stylist-card-body {
  padding: 3rem 1.25rem 1.25rem;
  text-align: center;
}

.stylist-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.stylist-location {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.stylist-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.stylist-rating .stars {
  color: #FBBF24;
  font-size: 0.875rem;
}

.stylist-rating .count {
  font-size: 0.75rem;
  color: var(--text-light);
}

.stylist-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.skill-tag {
  background: var(--bg);
  color: var(--text);
  font-size: 0.6875rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.stylist-card-footer {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  gap: 0.5rem;
}

.stylist-card-footer .btn {
  flex: 1;
}

/* ─────────────────────────────────────────────────────
   Community Grid
   ───────────────────────────────────────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.community-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.community-create-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.post-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.post-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.post-author-info {
  flex: 1;
}

.post-author-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
}

.post-timestamp {
  font-size: 0.75rem;
  color: var(--text-light);
}

.post-type-badge {
  font-size: 0.6875rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.post-type-badge.style { background: #FCE7F3; color: #DB2777; }
.post-type-badge.advice { background: #DBEAFE; color: #2563EB; }
.post-type-badge.tip { background: #D1FAE5; color: #059669; }
.post-type-badge.review { background: #FEF3C7; color: #D97706; }

.post-media {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #000;
}

.post-card-body {
  padding: 1rem;
}

.post-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.post-content {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.post-tag {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.post-card-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.post-action {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  transition: color 0.2s;
}

.post-action:hover {
  color: var(--primary);
}

.post-action.liked {
  color: var(--primary);
}

.post-action.liked svg {
  fill: var(--primary);
}

.community-post-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.community-post-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 28, 0.55);
}

.community-post-box {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.community-post-head,
.community-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.community-post-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.community-post-head h3 {
  margin: 0;
  font-size: 1.125rem;
}

.community-post-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
}

.community-post-body {
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.community-post-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.community-post-type-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.community-post-type-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(252, 70, 170, 0.08);
}

.community-post-input,
.community-post-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
}

.community-post-textarea {
  resize: vertical;
  min-height: 120px;
}

.community-post-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.community-post-media-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-light);
  font-weight: 600;
}

.community-post-media-actions .btn {
  min-width: 126px;
}

.community-post-media-actions .btn-secondary {
  background: #f3f4f6;
  color: var(--text);
  border: 1px solid var(--border);
}

.community-post-media-actions .btn-secondary:hover {
  background: #e5e7eb;
}

.community-post-media-preview {
  margin-top: 0.25rem;
}

.community-media-preview-wrap {
  position: relative;
}

.community-media-preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}

.community-media-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────
   CTA Section
   ───────────────────────────────────────────────────── */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--dark) 0%, #2d2d4a 100%);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────
   Buttons (New styles)
   ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(252, 70, 170, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--dark);
}

.btn-secondary {
  background: var(--bg);
  color: var(--dark);
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* ─────────────────────────────────────────────────────
   Empty States
   ───────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem;
  grid-column: 1 / -1;
}

.empty-state svg {
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────────────
   Loading Spinner
   ───────────────────────────────────────────────────── */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  grid-column: 1 / -1;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner p {
  color: var(--text-light);
}

/* ─────────────────────────────────────────────────────
   Site Footer (New pages)
   ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-brand .logo img {
  width: 36px;
  height: 36px;
}

.footer-brand .logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* ─────────────────────────────────────────────────────
   Mobile Menu (New pages)
   ───────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--card-bg);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-close {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.mobile-menu-body {
  padding: 1rem 0;
}

.mm-link {
  display: block;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
}

.mm-link:hover,
.mm-link.active {
  background: var(--bg);
  color: var(--primary);
}

.mm-link.mm-auth-link {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  margin: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
}

.mm-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* ─────────────────────────────────────────────────────
   Search & Filter Bar
   ───────────────────────────────────────────────────── */
.search-filter-bar {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  background: var(--card-bg);
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────
   Responsive (New pages)
   ───────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 3rem 0 2rem;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .videos-grid,
  .classes-grid,
  .stylists-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
  
  .search-filter-bar {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ─────────────────────────────────────────────────────
   Search Section (Stylists Page)
   ───────────────────────────────────────────────────── */
.search-section {
  padding: 2rem 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
}

.search-input-wrap input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-tag {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ─────────────────────────────────────────────────────
   Stylists Grid
   ───────────────────────────────────────────────────── */
.stylists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stylist-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stylist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stylist-photo {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.stylist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stylist-photo .verified-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #10B981;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.stylist-info {
  padding: 1.25rem;
}

.stylist-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.stylist-location {
  font-size: 0.875rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0.5rem;
}

.stylist-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.star {
  color: #ddd;
  font-size: 0.875rem;
}

.star.filled {
  color: #FFC107;
}

.star.half {
  background: linear-gradient(90deg, #FFC107 50%, #ddd 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rating-text {
  font-size: 0.75rem;
  color: var(--text-light);
}

.stylist-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.specialty-tag {
  font-size: 0.6875rem;
  padding: 4px 8px;
  background: rgba(252, 70, 170, 0.1);
  color: var(--primary);
  border-radius: 12px;
  font-weight: 500;
}

.stylist-actions {
  padding: 0 1.25rem 1.25rem;
}

.load-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* ─────────────────────────────────────────────────────
   New Class Card Design
   ───────────────────────────────────────────────────── */
.class-image {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.class-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.class-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.class-date-badge .month {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
}

.class-date-badge .day {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.free-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #10B981;
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.class-content {
  padding: 1.25rem;
}

.class-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.class-type {
  font-weight: 500;
}

.class-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.class-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.class-host {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.host-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.host-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.host-name {
  font-size: 0.8125rem;
  color: var(--text);
}

.class-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.class-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
}

.class-price.free {
  color: #10B981;
}

/* ─────────────────────────────────────────────────────
   Modal Styles
   ───────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  max-width: 460px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-content.modal-lg {
  max-width: 600px;
}
.modal-content.modal-content--detail {
  max-width: 540px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
}

.modal-body {
  padding: 2rem;
}

/* Register Modal */
.register-content {
  text-align: center;
}

.register-content h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.register-class-info {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.register-class-info h3 {
  font-size: 1.125rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.register-class-info p {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.register-note {
  background: rgba(252, 70, 170, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.register-note p {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.register-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.register-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
}

.btn-text:hover {
  color: var(--text);
}

/* Profile Modal */
.profile-content {
  padding: 0.5rem;
}

.profile-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-photo {
  position: relative;
  flex-shrink: 0;
}

.profile-photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.verified-badge.large {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #10B981;
  color: white;
  font-size: 0.6875rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-info h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.profile-info .location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.profile-info .rating-display {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.25rem;
}

.profile-info .rating-display span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.profile-info .experience {
  font-size: 0.8125rem;
  color: var(--text);
}

.profile-section {
  margin-bottom: 1.5rem;
}

.profile-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.profile-section p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}

.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-cta {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.profile-cta p {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.profile-cta .cta-buttons {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
  }
  
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-info .location {
    justify-content: center;
  }
  
  .profile-info .rating-display {
    justify-content: center;
  }
}

/* ────────────────────────────────────────────────────────────
   Stylist card — avatar fallback + portfolio badge + price
   ──────────────────────────────────────────────────────────── */
.stylist-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #f0f0f0;
}

.stylist-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.stylist-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
}

.portfolio-count {
  position: absolute;
  bottom: 4px; right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  pointer-events: none;
}

.stylist-price {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
  margin: 2px 0 0;
}

/* ────────────────────────────────────────────────────────────
   Full-profile modal — new layout
   ──────────────────────────────────────────────────────────── */
.profile-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

.profile-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
}

.detail-items {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text);
}

/* Social links */
.profile-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.profile-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.profile-link-btn:hover { opacity: 0.8; }

.profile-link-btn.instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.profile-link-btn.website {
  background: var(--dark);
  color: #fff;
}

/* Bio */
.profile-bio {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-more {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.5rem;
}

/* Services */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0px;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #f0f0f0;
}

.service-item:last-child { border-bottom: none; }

.service-name { color: var(--dark); font-weight: 500; }
.service-duration { color: var(--text-light); font-size: 0.8125rem; }

/* Updated profile CTA for app booking */
.profile-cta {
  background: linear-gradient(135deg, #fff0f8, #f5f0ff);
  border: 1px solid #f0d0f0;
  border-radius: 14px;
  padding: 1.5rem;
}

.profile-cta-text {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.profile-cta-text strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.profile-cta-text p {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
}

.profile-app-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-app-btns .btn {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

/* ────────────────────────────────────────────────────────────
   Photo viewer lightbox
   ──────────────────────────────────────────────────────────── */
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}

.photo-viewer img {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.photo-viewer-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

.photo-viewer-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  z-index: 1;
}

/* ────────────────────────────────────────────────────────────
   Class registration form (replaces app-download prompt)
   ──────────────────────────────────────────────────────────── */
.reg-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reg-class-info {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.reg-class-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.reg-class-info .reg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.reg-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8375rem;
  color: var(--text);
}

.reg-meta-item svg { flex-shrink: 0; }

.reg-price-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 20px;
}

.reg-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.reg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.reg-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.reg-form-group input,
.reg-form-group textarea {
  padding: 0.65rem 0.875rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.2s;
  resize: none;
}

.reg-form-group input:focus,
.reg-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.reg-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.reg-form-actions .btn { flex: 1; }

.reg-error {
  color: #e53e3e;
  font-size: 0.875rem;
  text-align: center;
  display: none;
}

.reg-success {
  text-align: center;
  padding: 2rem 1rem;
}

.reg-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.reg-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.reg-success p {
  color: var(--text);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.reg-already {
  text-align: center;
  padding: 2rem 1rem;
}

.reg-already-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.reg-already h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.reg-already p { color: var(--text); font-size: 0.875rem; }

@media (max-width: 540px) {
  .reg-form-row { grid-template-columns: 1fr; }
  .profile-app-btns .btn { min-width: 0; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-info .location,
  .profile-info .rating-display { justify-content: center; }
  .detail-items { align-items: center; }
  .profile-links { justify-content: center; }
}
