/* ===== AUTH SCREEN ===== */
.auth-screen {
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  position: relative;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0,0,0,0.1);
}
.auth-header {
  background: linear-gradient(135deg, #1B2838 0%, #243447 100%);
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.auth-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -20px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.auth-logo svg { width: 40px; height: 40px; }
.auth-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.auth-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}
.auth-card {
  margin: -20px 16px 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.auth-tab.active {
  background: var(--white);
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form .form-group { margin-bottom: 14px; }
.auth-form .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 5px;
}
.auth-form .form-input,
.auth-form .form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color var(--transition);
}
.auth-form .form-input:focus,
.auth-form .form-select:focus {
  border-color: var(--orange-accent);
  outline: none;
}
.auth-form .form-input.error { border-color: var(--red); }
.auth-error {
  background: var(--red-light);
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: none;
}
.auth-error.show { display: block; }
.btn-auth {
  width: 100%;
  padding: 13px;
  background: var(--orange-accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 4px;
}
.btn-auth:hover { background: var(--orange-accent-dark); }
.btn-auth:active { transform: scale(0.98); }
.btn-auth:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  transform: none;
}
.auth-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--gray-400);
}
.auth-footer a {
  color: var(--gray-400);
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }


/* ===== TAB 1: HOME ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 20px 16px 18px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -20px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.hero-title span { color: var(--orange-accent); }
.hero-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Stats bar */
.stats-bar {
  display: flex;
  padding: 12px 16px;
  gap: 8px;
  background: var(--white);
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
}
.stat-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.stat-label {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Horizontal scroll events */
.events-hscroll {
  display: flex;
  gap: 12px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.events-hscroll::-webkit-scrollbar { display: none; }
.event-card-mini {
  min-width: 220px;
  max-width: 220px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.event-card-mini .event-sport-tag { margin-bottom: 8px; }
.event-card-mini .event-card-title { font-size: 13px; margin-bottom: 6px; }
.event-card-mini .event-info-item { font-size: 11px; }
.event-card-mini .event-card-info { gap: 6px; margin-bottom: 8px; }
.event-card-mini .event-card-footer { padding-top: 8px; }
.event-card-mini .event-price { font-size: 14px; }
.event-card-mini .btn-details { padding: 5px 12px; font-size: 11px; }


/* ===== TAB 2: SEARCH ===== */
.filter-section {
  padding: 12px 16px 0;
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.filter-chip {
  padding: 7px 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}
.filter-chip svg { width: 14px; height: 14px; }
.filter-chip:hover { border-color: var(--orange-accent); }
.filter-chip.active { background: var(--orange-accent); border-color: var(--orange-accent); color: var(--white); }

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}
.sort-bar span { font-size: 13px; color: var(--gray-500); }
.sort-select {
  padding: 6px 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  color: var(--gray-600);
  background: var(--white);
  cursor: pointer;
}

.results-count {
  padding: 4px 16px 8px;
  font-size: 13px;
  color: var(--gray-500);
}

/* Expanded filters */
.filter-panel {
  background: var(--white);
  margin: 0 16px 12px;
  border-radius: var(--radius-md);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.filter-panel.open {
  max-height: 400px;
  padding: 14px;
}
.filter-group { margin-bottom: 12px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.filter-select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
}
.filter-select:focus { border-color: var(--orange-accent); outline: none; }

.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.btn-filter-apply {
  flex: 1;
  padding: 9px;
  background: var(--orange-accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.btn-filter-reset {
  padding: 9px 16px;
  background: var(--gray-100);
  color: var(--gray-600);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}


/* ===== TAB 3: CREATE ===== */
.create-form {
  padding: 16px;
}
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 5px;
}
.form-label .required { color: var(--red); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--orange-accent);
  outline: none;
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--red);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.btn-publish {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 8px;
}
.btn-publish:hover { background: var(--orange-dark); }
.btn-publish:active { transform: scale(0.98); }

.my-events-section { padding: 16px; }
.my-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.my-event-info { flex: 1; }
.my-event-name { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.my-event-meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.my-event-actions { display: flex; gap: 6px; }
.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon-edit { background: var(--blue); color: var(--white); }
.btn-icon-edit:hover { background: #2980b9; }
.btn-icon-delete { background: var(--red-light); color: var(--red); }
.btn-icon-delete:hover { background: #f8d7da; }


/* ===== TAB 4: FAVORITES ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty-state-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.empty-state-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}
.btn-empty-cta {
  margin-top: 20px;
  padding: 10px 24px;
  background: var(--orange-accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}


/* ===== TAB 5: PROFILE ===== */
.profile-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 28px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.2);
}
.profile-info { color: var(--white); }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-email { font-size: 12px; opacity: 0.6; margin-top: 2px; }
.profile-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

/* Email verification banner */
.verification-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1px solid #ffcc02;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 16px 8px;
}
.verification-banner-icon { font-size: 28px; flex-shrink: 0; }
.verification-banner-content { flex: 1; min-width: 0; }
.verification-banner-title { font-size: 13px; font-weight: 700; color: #e65100; }
.verification-banner-text { font-size: 11px; color: #bf360c; margin-top: 2px; line-height: 1.3; }
.verification-banner-btn {
  flex-shrink: 0;
  background: #e65100;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.verification-banner-btn:active { opacity: 0.8; }
.verification-banner-btn:disabled { opacity: 0.5; cursor: default; }
.verification-banner.verified {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-color: #66bb6a;
}
.verification-banner.verified .verification-banner-title { color: #2e7d32; }
.verification-banner.verified .verification-banner-text { color: #388e3c; }

.profile-sports {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 16px;
}
.sport-tag-mini {
  padding: 4px 10px;
  background: var(--orange-accent-light);
  color: var(--orange-accent-dark);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.profile-stats {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}
.profile-stat-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.profile-stat-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
}
.profile-stat-label {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 2px;
}

.profile-registrations {
  padding: 0 16px;
}
.registration-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.registration-date {
  width: 44px;
  height: 44px;
  background: var(--orange-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.registration-date .day { font-size: 16px; font-weight: 800; color: var(--orange-accent-dark); line-height: 1; }
.registration-date .month { font-size: 9px; font-weight: 600; color: var(--orange-accent); text-transform: uppercase; }
.registration-info { flex: 1; }
.registration-name { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.registration-meta { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

.profile-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-profile-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}
.btn-profile-action:hover { background: var(--gray-50); }
.btn-profile-action svg { width: 20px; height: 20px; color: var(--gray-400); }
.btn-logout {
  color: var(--red);
}
.btn-logout svg { color: var(--red); }


/* ===== EVENT DETAIL PAGE ===== */
.event-detail-hero {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--orange-accent-light) 0%, #FFE0CC 100%);
  overflow: hidden;
  position: relative;
}
.event-detail-hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.event-detail-hero .hero-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.event-detail-body { padding: 16px; }
.event-detail-sport-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; background: var(--orange-accent-light);
  color: var(--orange-accent-dark); border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; margin-bottom: 8px;
}
.event-detail-title {
  font-size: 22px; font-weight: 800; color: var(--gray-800);
  line-height: 1.25; margin-bottom: 14px;
}
.event-detail-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.event-detail-meta-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--gray-600);
}
.event-detail-meta-row svg { width: 18px; height: 18px; color: var(--gray-400); flex-shrink: 0; }
.event-detail-meta-row strong { color: var(--gray-800); font-weight: 600; }

/* Organizer row (clickable) */
.event-detail-organizer {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); margin-bottom: 18px; cursor: pointer;
  transition: background var(--transition);
}
.event-detail-organizer:hover { background: var(--gray-50); }
.event-detail-organizer .org-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.event-detail-organizer .org-avatar img { width: 100%; height: 100%; object-fit: cover; }
.event-detail-organizer .org-info { flex: 1; }
.event-detail-organizer .org-label { font-size: 11px; color: var(--gray-500); }
.event-detail-organizer .org-name { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.event-detail-organizer .org-arrow { color: var(--gray-400); }
.event-detail-organizer .org-arrow svg { width: 18px; height: 18px; }

/* Description */
.event-detail-desc {
  font-size: 14px; color: var(--gray-600); line-height: 1.6;
  margin-bottom: 18px;
}

/* Participants section */
.event-detail-section-title {
  font-size: 14px; font-weight: 700; color: var(--gray-700);
  margin-bottom: 10px;
}
.event-detail-participants-bar {
  margin-bottom: 12px;
}
.event-detail-participants-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.participant-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 5px;
  background: var(--white); border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background var(--transition);
}
.participant-chip:hover { background: var(--gray-50); }
.participant-chip .p-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange-accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.participant-chip .p-avatar img { width: 100%; height: 100%; object-fit: cover; }
.participant-chip .p-name { font-size: 12px; font-weight: 500; color: var(--gray-700); }

/* Tags row */
.event-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* Comments section */
.comments-section { margin-bottom: 18px; }
.comment-item {
  display: flex; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gray-300); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.comment-author { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.comment-date { font-size: 11px; color: var(--gray-400); }
.comment-stars { color: var(--orange-accent); font-size: 12px; letter-spacing: 1px; }
.comment-text { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* Comment form */
.comment-form { background: var(--white); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.comment-form-title { font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 10px; }
.star-rating-input { display: flex; gap: 4px; margin-bottom: 10px; }
.star-rating-input .star-btn {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--gray-300); transition: color var(--transition); padding: 2px;
}
.star-rating-input .star-btn.active { color: var(--orange-accent); }
.star-rating-input .star-btn:hover { color: var(--orange-accent); }
.comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
  color: var(--gray-700); background: var(--white); resize: vertical;
  min-height: 60px; transition: border-color var(--transition);
}
.comment-form textarea:focus { border-color: var(--orange-accent); outline: none; }
.comment-form .btn-submit-comment {
  margin-top: 8px; padding: 9px 18px; background: var(--orange-accent);
  color: var(--white); border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background var(--transition);
}
.comment-form .btn-submit-comment:hover { background: var(--orange-accent-dark); }
.comment-form .btn-submit-comment:disabled { background: var(--gray-300); cursor: not-allowed; }

/* Actions bar (sticky bottom) */
.event-detail-actions {
  display: flex; gap: 8px; padding: 16px;
  border-top: 1px solid var(--gray-100);
  background: var(--white); position: sticky; bottom: 0;
}


/* ===== USER PROFILE PAGE ===== */
.user-profile-header {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px 20px; background: var(--white);
}
.user-profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--orange-accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  border: 3px solid var(--orange-accent-light); margin-bottom: 12px; overflow: hidden;
}
.user-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-profile-name { font-size: 20px; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.user-profile-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--gray-500); margin-bottom: 4px;
}
.user-profile-meta svg { width: 14px; height: 14px; }
.user-profile-meta-item { display: flex; align-items: center; gap: 4px; }

.user-profile-stats {
  display: flex; gap: 8px; padding: 16px;
}
.user-profile-stat {
  flex: 1; background: var(--white); border-radius: var(--radius-md);
  padding: 14px 10px; text-align: center; box-shadow: var(--shadow-sm);
}
.user-profile-stat .stat-num { font-size: 22px; font-weight: 800; color: var(--navy); }
.user-profile-stat .stat-lbl { font-size: 10px; color: var(--gray-500); font-weight: 500; margin-top: 2px; }

.user-profile-events { padding: 0 16px 16px; }
.user-profile-comments { padding: 0 16px 16px; }


/* ===== ORGANIZER PROFILE PAGE ===== */
.org-profile-cover {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative; overflow: hidden;
}
.org-profile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.org-profile-logo {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--white); color: var(--orange-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
  border: 3px solid var(--white); box-shadow: var(--shadow-md);
  position: relative; margin: -36px auto 0; z-index: 2; overflow: hidden;
}
.org-profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.org-profile-info { text-align: center; padding: 10px 16px 16px; }
.org-profile-name { font-size: 20px; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.org-profile-bio { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin-bottom: 12px; }
.org-profile-subs {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 12px;
}
.org-profile-subs .sub-count { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.btn-subscribe {
  padding: 8px 20px; background: var(--orange-accent); color: var(--white);
  border: none; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-subscribe:hover { background: var(--orange-accent-dark); }
.btn-subscribe:active { transform: scale(0.96); }
.btn-subscribe.subscribed {
  background: var(--gray-200); color: var(--gray-700);
}

/* Chat */
.chat-messages-list { max-height: 400px; overflow-y: auto; padding: 8px 0; }
.chat-message { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.chat-message:last-child { border-bottom: none; }
.chat-msg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--orange-accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.chat-msg-name { font-weight: 600; font-size: 13px; color: #333; }
.chat-msg-time { font-size: 11px; color: #999; }
.chat-msg-text { font-size: 14px; color: #444; line-height: 1.4; word-break: break-word; }
.chat-input-wrap { display: flex; gap: 8px; padding: 8px 0; align-items: center; }
.chat-input-wrap .form-input { flex: 1; }
.btn-send-chat { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-accent); color: #fff; border: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-send-chat:active { transform: scale(0.95); }

.org-profile-rating {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; font-size: 14px;
}
.org-profile-rating .rating-stars { color: var(--orange-accent); font-size: 16px; letter-spacing: 1px; }
.org-profile-rating .rating-num { font-weight: 700; color: var(--gray-800); }
.org-profile-rating .rating-count { color: var(--gray-500); font-size: 12px; }

.org-profile-events { padding: 0 16px 16px; }
.org-sport-filter {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px;
  scrollbar-width: none;
}
.org-sport-filter::-webkit-scrollbar { display: none; }

.org-profile-reviews { padding: 0 16px 16px; }


/* ===== EDIT PROFILE PAGE ===== */
.edit-profile-form { padding: 16px; }
.edit-profile-form .form-group { margin-bottom: 16px; }
.edit-profile-avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.edit-profile-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--orange-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  border: 3px solid var(--orange-accent-light);
  transition: opacity var(--transition);
}
.edit-profile-avatar-preview:hover { opacity: 0.85; }
.edit-profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.edit-profile-avatar-hint {
  font-size: 12px;
  color: var(--gray-500);
}
.edit-profile-cover-upload {
  width: 100%;
  height: 100px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition);
  background: var(--gray-50);
  position: relative;
}
.edit-profile-cover-upload:hover { border-color: var(--orange-accent); }
.edit-profile-cover-upload img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0;
}
.edit-profile-cover-upload .cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gray-500);
  font-size: 13px;
}
.edit-profile-cover-upload .cover-placeholder .upload-icon { font-size: 24px; opacity: 0.6; }
.btn-save-profile {
  width: 100%;
  padding: 14px;
  background: var(--orange-accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 8px;
}
.btn-save-profile:hover { background: var(--orange-accent-dark); }
.btn-save-profile:active { transform: scale(0.98); }
.btn-save-profile:disabled { background: var(--gray-300); cursor: not-allowed; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--orange-accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--orange-accent-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: var(--gray-300); cursor: not-allowed; }


/* ===== EVENT CARD STATUS STYLES ===== */
.event-cancelled { opacity: 0.6; position: relative; }
.event-cancelled-badge {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  background: #dc3545; color: #fff; padding: 4px 12px;
  border-radius: 6px; font-size: 12px; font-weight: 700;
}
.event-past { opacity: 0.7; }
.event-past .btn-details { background: #999; }


/* ===== EVENT STATUS BANNER (DETAIL PAGE) ===== */
.event-status-banner {
  padding: 12px 16px; border-radius: 12px; text-align: center;
  font-weight: 600; font-size: 14px; margin: 0 16px 16px;
  flex: 1;
}
.event-status-banner.cancelled { background: #fde8e8; color: #dc3545; }
.event-status-banner.past { background: #f0f0f0; color: #666; }
.event-status-banner.closed { background: #fff3cd; color: #856404; }
.event-status-banner .cancel-reason { font-weight: 400; font-size: 13px; margin-top: 4px; }
.btn-register.waitlist { background: #ffa726; }
.btn-register.waitlist-join { background: #42a5f5; }


/* ===== NOTIFICATION BADGE ===== */
.notif-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #dc3545; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 999px; padding: 0 4px;
  margin-left: 4px; vertical-align: middle;
}
