/* portal.css — Customer Portal Page Styles — Redesigned */

/* ================================================
   LIVE STATUS PILL
   ================================================ */
.clinic-status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: #047857;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-bottom: var(--space-4);
  width: fit-content;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ================================================
   PATIENT HERO BANNER
   ================================================ */
.portal-hero {
  background: var(--primary-gradient);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  color: #FFFFFF;
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px -8px rgba(76, 29, 149, 0.36);
}

/* Decorative mesh blobs */
.portal-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.13) 0%, transparent 70%);
  pointer-events: none;
}

.portal-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.22) 0%, transparent 65%);
  pointer-events: none;
}

.portal-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.portal-hero-greeting {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.88;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.portal-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
  letter-spacing: -0.8px;
}

.portal-hero-desc {
  font-size: var(--font-size-sm);
  opacity: 0.88;
  margin-bottom: var(--space-6);
  line-height: var(--lh-relaxed);
  max-width: 520px;
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Hero Buttons */
.btn-hero-white {
  background-color: #FFFFFF;
  color: var(--primary-color);
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  border-radius: var(--radius-btn-lg);
}

.btn-hero-white:hover {
  background-color: #F5F3FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.btn-hero-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #FFFFFF;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-btn-lg);
  font-weight: 600;
}

.btn-hero-outline:hover {
  background-color: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* Trust Badges Row */
.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.18);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  opacity: 0.92;
  font-weight: 500;
}

.trust-badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge-icon svg {
  width: 11px;
  height: 11px;
  color: #FFFFFF;
}

/* ================================================
   SEARCH BAR
   ================================================ */
.search-filter-box {
  background-color: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-filter-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.search-icon-box {
  color: var(--text-light);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-filter-box:focus-within .search-icon-box {
  color: var(--primary-color);
}

.search-input {
  border: none;
  background: transparent;
  width: 100%;
  height: 42px;
  font-size: var(--font-size-sm);
  color: var(--text-main);
  font-family: var(--font-family);
  outline: none;
}

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

/* ================================================
   QUICK ACTION STATS GRID
   ================================================ */
.quick-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

@media (min-width: 480px) {
  .quick-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .quick-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background-color: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-gradient-soft);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: inherit;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-icon);
  background-color: var(--primary-subtle);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-info-title {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}

.stat-info-value {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ================================================
   UPCOMING APPOINTMENT — VIP Card
   ================================================ */
.upcoming-vip-card {
  background-color: var(--surface-color);
  border: 1.5px solid #DDD6FE;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 4px 16px -2px rgba(91, 33, 182, 0.1);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.upcoming-vip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-xs) 0 0 var(--radius-xs);
}

.upcoming-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.upcoming-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

/* ================================================
   CATEGORY PILLS
   ================================================ */
.category-pills-wrap {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-5);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-pills-wrap::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-family: var(--font-family);
  background-color: var(--surface-color);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.category-pill:hover {
  border-color: var(--border-hover);
  color: var(--primary-color);
  background-color: var(--surface-hover);
}

.category-pill.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: var(--shadow-btn);
}

/* ================================================
   SERVICE CARDS
   ================================================ */
.service-card {
  position: relative;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  background-color: var(--surface-color);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.service-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-icon);
  background: var(--primary-gradient-soft);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon-box svg {
  width: 20px;
  height: 20px;
}

.service-card-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-1);
  letter-spacing: -0.2px;
  line-height: var(--lh-snug);
}

.service-card-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-3);
  margin-top: auto;
}

.service-price {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.3px;
}

.service-duration {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-duration svg {
  width: 13px;
  height: 13px;
}

/* ================================================
   DENTIST SHOWCASE
   ================================================ */
.dentist-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (min-width: 480px) {
  .dentist-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .dentist-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dentist-showcase-card {
  background-color: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.dentist-showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.dentist-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.dentist-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--primary-gradient-soft);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--primary-subtle-deep);
}

.dentist-avatar-wrap svg {
  width: 24px;
  height: 24px;
}

/* ================================================
   FEATURES GRID (Why Choose Us)
   ================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (min-width: 540px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item-card {
  background-color: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  transition: all var(--transition-normal);
}

.feature-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.feature-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-icon);
  background: var(--primary-gradient-soft);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.feature-icon-circle svg {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-2);
  letter-spacing: -0.2px;
}

.feature-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

/* ================================================
   LOCATION & CONTACT BANNER
   ================================================ */
.location-contact-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 80%, #1a1032 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  color: #FFFFFF;
  margin-bottom: var(--space-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.location-contact-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .location-contact-banner {
    grid-template-columns: 1fr auto;
  }
}

.location-info-title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.4px;
}

.location-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: #CBD5E1;
}

.location-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.location-item svg {
  width: 17px;
  height: 17px;
  color: #A78BFA;
  flex-shrink: 0;
}

/* ================================================
   FAQ ACCORDION
   ================================================ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.faq-card {
  background-color: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-card:hover {
  border-color: var(--border-hover);
}

.faq-card.open {
  border-color: var(--primary-subtle-deep);
  box-shadow: var(--shadow-xs);
}

.faq-question-btn {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-family);
  background: transparent;
  cursor: pointer;
  gap: var(--space-3);
  line-height: var(--lh-snug);
}

.faq-question-btn svg {
  width: 17px;
  height: 17px;
  color: var(--text-light);
  transition: transform 0.25s ease, color 0.15s ease;
  flex-shrink: 0;
}

.faq-card.open .faq-question-btn {
  color: var(--primary-color);
}

.faq-card.open .faq-question-btn svg {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-answer-content {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  border-top: 1px solid var(--surface-hover);
  padding-top: var(--space-4);
}

.faq-card.open .faq-answer-content {
  display: block;
}

/* ================================================
   FOOTER
   ================================================ */
.portal-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-color);
  padding: var(--space-8) 0;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
}

.portal-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.portal-footer-links a {
  transition: color var(--transition-fast);
}

.portal-footer-links a:hover {
  color: var(--primary-color);
}

.portal-footer-links span {
  color: var(--border-color);
}

/* ================================================
   FILTER TABS (MY APPOINTMENTS)
   ================================================ */
.filter-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}
.filter-tab {
  padding: 8px 16px;
  background-color: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}
.filter-tab:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--primary-color);
}
.filter-tab.active {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--shadow-btn);
  font-weight: 600;
}

/* ================================================
   MY APPOINTMENTS CARDS
   ================================================ */
.appointments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.appointment-card {
  background-color: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.appointment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.appointment-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px dashed var(--border-color);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.appointment-order-no {
  display: inline-block;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-family: var(--font-family-mono);
  background-color: var(--surface-hover);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: var(--space-2);
}
.appointment-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
@media (min-width: 640px) {
  .appointment-details {
    grid-template-columns: repeat(3, 1fr);
  }
}
.detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.detail-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-icon);
  background-color: var(--primary-subtle);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.detail-item-icon svg {
  width: 18px;
  height: 18px;
}
.detail-item-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: 2px;
}
.detail-item-value {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-main);
}
.appointment-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface-hover);
  margin: 0 calc(-1 * var(--space-5)) calc(-1 * var(--space-5));
  padding: var(--space-4) var(--space-5);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.appointment-price {
  font-size: var(--font-size-sm);
  color: var(--text-main);
}
.appointment-price strong {
  color: var(--primary-color);
  font-size: var(--font-size-base);
}

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background-color: var(--surface-color);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  background-color: var(--surface-hover);
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.empty-state-icon svg {
  width: 32px;
  height: 32px;
}

.empty-state-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.empty-state-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--lh-relaxed);
}

/* ================================================
   BADGES
   ================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-warning {
  background-color: #FEF3C7;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.badge-primary {
  background-color: var(--primary-subtle);
  color: var(--primary-color);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-success {
  background-color: #D1FAE5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.badge-danger {
  background-color: var(--danger-subtle);
  color: var(--danger-color);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-neutral {
  background-color: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* ================================================
   PROFILE GRID
   ================================================ */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

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

.profile-avatar-card {
  text-align: center;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-xl);
}

.profile-avatar-box {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 40px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.3);
  border: 4px solid var(--surface-color);
  outline: 2px solid var(--primary-subtle);
}

/* ================================================
   FORM ICONS (FOR PROFILE)
   ================================================ */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.input-wrapper .form-control {
  padding-left: 44px; /* Space for the icon */
}

.input-wrapper:focus-within .input-icon {
  color: var(--primary-color);
}
