/* Page-specific styles for index.html */
body {
  background: #f3f4f6;
}

.main-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 12px;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #efe7ff;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 600;
  color: #6b21a8;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.pill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.pill-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #7c3aed;
}

.header-user {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  color: #111827;
  font-size: 16px;
}

.header-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.header-notify {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
  color: #0f172a;
  position: relative;
}

.notify-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6d00;
  border: 2px solid #ffffff;
}

.search-wrapper {
  padding: 0 20px 8px;
}

.search-field {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 18px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 13px;
  color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  background: #3b3b3b;
  color: #ffffff;
  padding: 16px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.stat-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stat-label-with-icon .material-symbols-rounded {
  font-size: 14px;
  color: #ff6d00;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}

.stat-unit {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-progress {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.stat-progress-value {
  color: #ff6d00;
  font-weight: 700;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ff6d00;
  border-radius: 999px;
}

.booking-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.booking-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.booking-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff6d00;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 6px;
}

.booking-progress {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 6px solid #e5e7eb;
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
}

.booking-progress-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.booking-progress-inner span:first-child {
  font-size: 14px;
  color: #111827;
}

.booking-empty {
  background: #f9fafb;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  color: #6b7280;
}

.booking-empty-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.booking-empty-subtitle {
  font-size: 12px;
  margin-bottom: 14px;
}

.booking-empty-action {
  background: transparent;
  border: none;
  color: #ff6d00;
  font-weight: 700;
  font-size: 12px;
}

.plan-card {
  background: #3b3b3b;
  border-radius: 20px;
  padding: 18px;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.plan-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 999px;
}

.plan-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-progress {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.plan-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.plan-progress-fill {
  height: 100%;
  background: #ff6d00;
  border-radius: 999px;
}

/* Auth modal styled like main page */
.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-modal.active {
  display: flex;
}

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

.auth-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  width: 92%;
  max-width: 360px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  z-index: 1;
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: grid;
  place-items: center;
  color: #111827;
}

.auth-modal .tabs {
  display: flex;
  background: #f8fafc;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}

.auth-modal .tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  background: transparent;
  border: none;
}

.auth-modal .tab.active {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.auth-modal .form-group {
  margin-bottom: 12px;
}

.auth-modal .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.auth-modal .form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 12px;
  color: #111827;
}

.auth-modal .form-group small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}

.auth-modal .btn.btn-primary {
  width: 100%;
  border-radius: 999px;
  background: #ff6d00;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  box-shadow: 0 10px 20px rgba(255, 109, 0, 0.25);
}
/* Dashboard cards spacing normalization */
.stats-grid > * {
  border-radius: 16px;
}

/* Ensure profile hero stays balanced */
.profile-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

@media (max-width: 768px) {
  .profile-hero {
    grid-template-columns: 1fr;
  }
}
