/*
  Y-SON Urban Lighting — Public Frontend
  File    : frontend-pages.css
  Version : v2.0.0 | 2026-05-21
  Load order: 5 of 5

  Phase 2 additions: scroll-aware header, search overlay, auth widget,
  mobile nav extras, products listing page, product detail page.
  Page-specific overrides and new component variants only.
  All values via --fe- variables — no raw hex/px.
*/

/* ═══════════════════════════════════════════════════════════
   SCROLL-AWARE HEADER
═══════════════════════════════════════════════════════════ */

.fe-header {
  transition:
    background-color var(--fe-ease-base),
    border-color     var(--fe-ease-base),
    box-shadow       var(--fe-ease-base);
}

/* at-top state — keeps navy, no shadow at scroll position 0 */
.fe-header.fe-header-at-top {
  background-color: var(--fe-navy);
  border-bottom-color: transparent;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   HERO GRADIENT FALLBACK
   Applied when no background-image is set by JS.
   background-image from JS overrides the gradient naturally.
═══════════════════════════════════════════════════════════ */

/* Inner pages: compact hero height — .fe-home-hero overrides this with full-viewport height */
.fe-page-hero {
  min-height: var(--fe-inner-hero-h);
  background: linear-gradient(135deg, var(--fe-navy) 0%, var(--fe-navy-mid) 100%);
}

@media (max-width: 639px) {
  .fe-page-hero {
    min-height: var(--fe-inner-hero-h-mobile);
  }
}

.fe-home-hero {
  background: linear-gradient(135deg, var(--fe-navy) 0%, var(--fe-navy-mid) 100%);
}

/* fe-section-title and fe-section-subtitle inside hero sections must be white */
.fe-page-hero .fe-section-title,
.fe-home-hero .fe-section-title {
  color: var(--fe-text-inverse);
}

.fe-page-hero .fe-section-subtitle,
.fe-home-hero .fe-section-subtitle {
  color: var(--fe-text-inverse-dim);
}

/* ═══════════════════════════════════════════════════════════
   HEADER — SEARCH BUTTON & AUTH WIDGET
═══════════════════════════════════════════════════════════ */

.fe-header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--fe-radius-sm);
  background: none;
  border: none;
  color: var(--fe-text-inverse-dim);
  cursor: pointer;
  transition: color var(--fe-ease-fast), background-color var(--fe-ease-fast);
  flex-shrink: 0;
}

.fe-header-search-btn:hover {
  color: var(--fe-text-inverse);
  background-color: rgba(255, 255, 255, 0.07);
}

.fe-auth-widget {
  display: flex;
  align-items: center;
}

.fe-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--fe-accent);
  color: var(--fe-text-inverse);
  font-size: var(--fe-text-sm);
  font-weight: var(--fe-weight-bold);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  transition: opacity var(--fe-ease-fast);
}

.fe-user-avatar:hover {
  opacity: 0.85;
}

.fe-user-avatar-sm {
  width: 26px;
  height: 26px;
  font-size: var(--fe-text-xs);
}

/* ═══════════════════════════════════════════════════════════
   SEARCH OVERLAY
═══════════════════════════════════════════════════════════ */

.fe-search-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--fe-z-modal) + 10);
  background-color: rgba(15, 22, 30, 0.96);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18vh var(--fe-sp-4) var(--fe-sp-4);
  animation: feOverlayIn var(--fe-ease-fast) forwards;
}

.fe-search-overlay.fe-hidden {
  display: none;
}

.fe-search-overlay-inner {
  width: 100%;
  max-width: 640px;
  position: relative;
  padding-top: var(--fe-sp-12);
}

.fe-search-overlay-close {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: var(--fe-sp-2);
  display: flex;
  align-items: center;
  border-radius: var(--fe-radius-sm);
  transition: color var(--fe-ease-fast);
}

.fe-search-overlay-close:hover {
  color: var(--fe-text-inverse);
}

.fe-search-overlay-form {
  display: flex;
  align-items: stretch;
  gap: var(--fe-sp-3);
}

.fe-search-overlay-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--fe-radius-md);
  color: var(--fe-text-inverse);
  font-family: var(--fe-font-body);
  font-size: var(--fe-text-xl);
  padding: var(--fe-sp-4) var(--fe-sp-5);
  outline: none;
  transition: border-color var(--fe-ease-fast);
}

.fe-search-overlay-input::placeholder {
  color: rgba(255, 255, 255, 0.30);
}

.fe-search-overlay-input:focus {
  border-color: var(--fe-accent);
}

.fe-search-overlay-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--fe-sp-2);
  padding: var(--fe-sp-3) var(--fe-sp-5);
  background-color: var(--fe-accent);
  color: var(--fe-text-inverse);
  border: none;
  border-radius: var(--fe-radius-md);
  font-family: var(--fe-font-body);
  font-size: var(--fe-text-base);
  font-weight: var(--fe-weight-semibold);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--fe-ease-fast);
  flex-shrink: 0;
}

.fe-search-overlay-submit:hover {
  background-color: var(--fe-accent-dark);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAV — SEARCH & AUTH ADDITIONS
═══════════════════════════════════════════════════════════ */

.fe-mobile-search-form {
  padding: var(--fe-sp-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fe-mobile-search-row {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-2);
}

.fe-mobile-search-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--fe-radius-sm);
  color: var(--fe-text-inverse);
  font-family: var(--fe-font-body);
  font-size: var(--fe-text-base);
  padding: var(--fe-sp-2) var(--fe-sp-3);
  outline: none;
  transition: border-color var(--fe-ease-fast);
}

.fe-mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.30);
}

.fe-mobile-search-input:focus {
  border-color: var(--fe-accent);
}

.fe-mobile-search-submit {
  background: none;
  border: none;
  color: var(--fe-text-inverse-dim);
  cursor: pointer;
  padding: var(--fe-sp-2);
  display: flex;
  align-items: center;
  border-radius: var(--fe-radius-sm);
  transition: color var(--fe-ease-fast);
}

.fe-mobile-search-submit:hover {
  color: var(--fe-text-inverse);
}

.fe-mobile-auth {
  padding: var(--fe-sp-4) var(--fe-sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fe-mobile-user-item {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-3);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — SOCIAL ICONS
═══════════════════════════════════════════════════════════ */

.fe-footer-social {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-3);
}

.fe-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fe-text-inverse-muted);
  transition: color var(--fe-ease-fast);
}

.fe-social-link:hover {
  color: var(--fe-accent);
}

/* ═══════════════════════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════════════════════ */

/* Homepage hero — taller, centered, background-image ready */
.fe-home-hero {
  min-height: calc(100vh - var(--fe-header-height));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  justify-content: center;
}

/* CTA button row in hero — centered, wraps on mobile */
.fe-home-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--fe-sp-4);
  flex-wrap: wrap;
}

/* Featured products section */
.fe-home-featured {
  background-color: var(--fe-bg);
}

/* "Browse All Products" CTA row below the grid */
.fe-featured-cta {
  text-align: center;
  margin-top: var(--fe-sp-10);
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS LISTING PAGE
═══════════════════════════════════════════════════════════ */

/* Sidebar + grid two-column layout */
.fe-products-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--fe-sp-8);
  align-items: start;
}

@media (min-width: 1024px) {
  .fe-products-layout {
    grid-template-columns: 250px 1fr;
  }
}

/* Category sidebar — hidden on mobile */
.fe-products-sidebar {
  background-color: var(--fe-surface);
  border: 1px solid var(--fe-border-light);
  border-radius: var(--fe-radius-lg);
  padding: var(--fe-sp-5);
  display: none;
}

@media (min-width: 1024px) {
  .fe-products-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--fe-header-height) + var(--fe-sp-4));
  }
}

.fe-sidebar-heading {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-xs);
  font-weight: var(--fe-weight-semibold);
  color: var(--fe-text-3);
  text-transform: uppercase;
  letter-spacing: var(--fe-tracking-wide);
  margin-bottom: var(--fe-sp-3);
  padding: 0 var(--fe-sp-3);
}

.fe-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--fe-sp-2) var(--fe-sp-3);
  border-radius: var(--fe-radius-sm);
  font-size: var(--fe-text-sm);
  color: var(--fe-text-2);
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: color var(--fe-ease-fast), background-color var(--fe-ease-fast);
}

.fe-sidebar-item:hover {
  color: var(--fe-text-1);
  background-color: var(--fe-surface-3);
}

.fe-sidebar-item.is-active {
  color: var(--fe-accent);
  background-color: var(--fe-accent-dim);
  font-weight: var(--fe-weight-medium);
}

.fe-sidebar-count {
  font-size: var(--fe-text-xs);
  color: var(--fe-text-3);
  background-color: var(--fe-surface-3);
  border-radius: var(--fe-radius-full);
  padding: 1px var(--fe-sp-2);
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.fe-sidebar-item.is-active .fe-sidebar-count {
  background-color: rgba(232, 130, 26, 0.12);
  color: var(--fe-accent);
}

/* Mobile category filter select */
.fe-mobile-category-filter {
  display: block;
  width: 100%;
  margin-bottom: var(--fe-sp-6);
}

@media (min-width: 1024px) {
  .fe-mobile-category-filter {
    display: none;
  }
}

/* Toolbar above the grid */
.fe-products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fe-sp-4);
  margin-bottom: var(--fe-sp-6);
  flex-wrap: wrap;
}

.fe-products-count-text {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-3);
}

.fe-products-sort {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-2);
}

.fe-products-sort-label {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-3);
  white-space: nowrap;
}

.fe-products-sort-select {
  font-size: var(--fe-text-sm);
  padding: var(--fe-sp-2) var(--fe-sp-8) var(--fe-sp-2) var(--fe-sp-3);
  border-radius: var(--fe-radius-sm);
  border: 1px solid var(--fe-border);
  background-color: var(--fe-surface);
  color: var(--fe-text-1);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238a92a0'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  outline: none;
  transition: border-color var(--fe-ease-fast);
}

.fe-products-sort-select:focus {
  border-color: var(--fe-accent);
}

/* Empty state */
.fe-products-empty {
  text-align: center;
  padding: var(--fe-sp-16) var(--fe-sp-8);
  color: var(--fe-text-3);
  grid-column: 1 / -1;
}

.fe-products-empty-title {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-xl);
  color: var(--fe-text-2);
  margin-bottom: var(--fe-sp-2);
  margin-top: var(--fe-sp-4);
}

/* Featured badge on product cards */
.fe-badge-featured {
  background-color: var(--fe-accent);
  color: var(--fe-text-inverse);
  font-size: var(--fe-text-xs);
  font-weight: var(--fe-weight-semibold);
  padding: 2px 8px;
  border-radius: var(--fe-radius-sm);
}

.fe-card-category {
  font-size: var(--fe-text-xs);
  color: var(--fe-text-3);
  margin-bottom: var(--fe-sp-1);
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
═══════════════════════════════════════════════════════════ */

/* Page-level dark strip: breadcrumb on navy bg */
.fe-product-page-header {
  background-color: var(--fe-navy);
  padding: var(--fe-sp-5) 0;
}

/* Two-column: gallery (left, wider) + info (right) */
.fe-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--fe-sp-8);
  align-items: start;
}

@media (min-width: 1024px) {
  .fe-product-layout {
    grid-template-columns: 1fr 420px;
  }
}

/* Gallery */
.fe-gallery-main {
  position: relative;
  border-radius: var(--fe-radius-lg);
  overflow: hidden;
  background-color: var(--fe-surface-3);
  aspect-ratio: 4 / 3;
}

.fe-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--fe-ease-base);
}

.fe-gallery-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--fe-sp-3);
  pointer-events: none;
}

.fe-gallery-arrow {
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(30, 45, 64, 0.65);
  border: none;
  color: var(--fe-text-inverse);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--fe-ease-fast);
}

.fe-gallery-arrow:hover {
  background-color: var(--fe-navy);
}

.fe-gallery-thumbs {
  display: flex;
  gap: var(--fe-sp-2);
  margin-top: var(--fe-sp-3);
  overflow-x: auto;
  padding-bottom: var(--fe-sp-1);
  scrollbar-width: thin;
}

.fe-gallery-thumb {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: var(--fe-radius-sm);
  overflow: hidden;
  border: 2px solid var(--fe-border);
  cursor: pointer;
  transition: border-color var(--fe-ease-fast);
}

.fe-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-gallery-thumb.is-active {
  border-color: var(--fe-accent);
}

/* Product info column */
.fe-product-category-crumb {
  font-size: var(--fe-text-sm);
  color: var(--fe-accent);
  font-weight: var(--fe-weight-medium);
  margin-bottom: var(--fe-sp-2);
  text-decoration: none;
  display: inline-block;
}

.fe-product-name {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-3xl);
  font-weight: var(--fe-weight-bold);
  color: var(--fe-text-1);
  line-height: var(--fe-leading-snug);
  margin-bottom: var(--fe-sp-3);
}

@media (min-width: 1024px) {
  .fe-product-name {
    font-size: var(--fe-text-4xl);
  }
}

.fe-product-rating-row {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-3);
  margin-bottom: var(--fe-sp-4);
  flex-wrap: wrap;
}

.fe-product-rating-count {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-3);
}

.fe-product-short-desc {
  font-size: var(--fe-text-base);
  color: var(--fe-text-2);
  line-height: var(--fe-leading-loose);
  margin-bottom: var(--fe-sp-6);
}

/* Specs */
.fe-specs-section {
  margin-top: var(--fe-sp-10);
  padding-top: var(--fe-sp-10);
  border-top: 1px solid var(--fe-border-light);
}

.fe-specs-title {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-xl);
  font-weight: var(--fe-weight-semibold);
  color: var(--fe-text-1);
  margin-bottom: var(--fe-sp-5);
}

.fe-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.fe-specs-row {
  border-bottom: 1px solid var(--fe-border-light);
}

.fe-spec-key {
  padding: var(--fe-sp-3) var(--fe-sp-4) var(--fe-sp-3) 0;
  font-size: var(--fe-text-sm);
  font-weight: var(--fe-weight-medium);
  color: var(--fe-text-2);
  white-space: nowrap;
  width: 40%;
  vertical-align: top;
}

.fe-spec-val {
  padding: var(--fe-sp-3) 0;
  font-size: var(--fe-text-sm);
  color: var(--fe-text-1);
  vertical-align: top;
}

/* Description */
.fe-product-description {
  margin-top: var(--fe-sp-10);
  padding-top: var(--fe-sp-10);
  border-top: 1px solid var(--fe-border-light);
}

.fe-product-description-title {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-xl);
  font-weight: var(--fe-weight-semibold);
  color: var(--fe-text-1);
  margin-bottom: var(--fe-sp-5);
}

.fe-product-description-body {
  font-size: var(--fe-text-base);
  color: var(--fe-text-2);
  line-height: var(--fe-leading-loose);
}

.fe-product-description-body h1,
.fe-product-description-body h2,
.fe-product-description-body h3 {
  font-family: var(--fe-font-heading);
  color: var(--fe-text-1);
  margin-top: var(--fe-sp-5);
  margin-bottom: var(--fe-sp-3);
  font-weight: var(--fe-weight-semibold);
}

.fe-product-description-body p       { margin-bottom: var(--fe-sp-3); }
.fe-product-description-body ul,
.fe-product-description-body ol      { padding-left: var(--fe-sp-6); margin-bottom: var(--fe-sp-3); }
.fe-product-description-body li      { margin-bottom: var(--fe-sp-1); }

/* Reviews */
.fe-reviews-section {
  margin-top: var(--fe-sp-12);
  padding-top: var(--fe-sp-10);
  border-top: 1px solid var(--fe-border-light);
}

.fe-reviews-header {
  display: flex;
  align-items: baseline;
  gap: var(--fe-sp-4);
  margin-bottom: var(--fe-sp-8);
  flex-wrap: wrap;
}

.fe-reviews-title {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-2xl);
  font-weight: var(--fe-weight-bold);
  color: var(--fe-text-1);
}

.fe-reviews-count {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-3);
}

.fe-review-card {
  padding: var(--fe-sp-5) 0;
  border-bottom: 1px solid var(--fe-border-light);
}

.fe-review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--fe-sp-3);
  margin-bottom: var(--fe-sp-3);
  flex-wrap: wrap;
}

.fe-review-author {
  font-weight: var(--fe-weight-semibold);
  font-size: var(--fe-text-sm);
  color: var(--fe-text-1);
}

.fe-review-company {
  font-size: var(--fe-text-xs);
  color: var(--fe-text-3);
}

.fe-review-date {
  font-size: var(--fe-text-xs);
  color: var(--fe-text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.fe-review-title {
  font-weight: var(--fe-weight-semibold);
  font-size: var(--fe-text-base);
  color: var(--fe-text-1);
  margin-bottom: var(--fe-sp-2);
}

.fe-review-body {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-2);
  line-height: var(--fe-leading-loose);
}

.fe-reviews-empty {
  text-align: center;
  padding: var(--fe-sp-10);
  color: var(--fe-text-3);
  font-size: var(--fe-text-sm);
}

/* Related products */
.fe-related-section {
  margin-top: var(--fe-sp-12);
  padding-top: var(--fe-sp-10);
  border-top: 1px solid var(--fe-border-light);
}

.fe-related-title {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-2xl);
  font-weight: var(--fe-weight-bold);
  color: var(--fe-text-1);
  margin-bottom: var(--fe-sp-8);
}

/* Enquiry modal close button */
.fe-modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fe-text-3);
  padding: var(--fe-sp-1);
  display: flex;
  align-items: center;
  border-radius: var(--fe-radius-sm);
  transition: color var(--fe-ease-fast);
}

.fe-modal-close-btn:hover {
  color: var(--fe-text-1);
}

/* Enquiry success state */
.fe-enquiry-success {
  text-align: center;
  padding: var(--fe-sp-8);
}

.fe-enquiry-success-title {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-xl);
  font-weight: var(--fe-weight-semibold);
  color: var(--fe-text-1);
  margin-top: var(--fe-sp-4);
  margin-bottom: var(--fe-sp-2);
}

.fe-enquiry-success-text {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Phase 3 — Config view page
   ═══════════════════════════════════════════════════════════════════════════ */

.fe-summary-heading {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-xl);
  font-weight: var(--fe-weight-bold);
  color: var(--fe-text-1);
  margin-bottom: var(--fe-sp-2);
}

.fe-summary-date {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-3);
  margin-bottom: var(--fe-sp-5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Phase 5 — Login / Sign-up page
   ═══════════════════════════════════════════════════════════════════════════ */

.fe-section-auth {
  min-height: calc(100vh - var(--fe-header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--fe-sp-12);
  padding-bottom: var(--fe-sp-12);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Phase 5 — User dashboard page
   ═══════════════════════════════════════════════════════════════════════════ */

.fe-section-compact {
  padding-top: var(--fe-sp-8);
  padding-bottom: var(--fe-sp-8);
  background-color: var(--fe-navy);
  color: var(--fe-text-inverse);
}

.fe-dashboard-header {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-4);
  flex-wrap: wrap;
}

.fe-dashboard-header .fe-user-avatar {
  width: 52px;
  height: 52px;
  font-size: var(--fe-text-xl);
  flex-shrink: 0;
  background-color: var(--fe-accent);
  color: var(--fe-text-inverse);
  border-radius: var(--fe-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fe-weight-bold);
  font-family: var(--fe-font-heading);
}

.fe-user-info {
  flex: 1;
  min-width: 0;
}

.fe-dashboard-name {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-xl);
  font-weight: var(--fe-weight-semibold);
  color: var(--fe-text-inverse);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe-dashboard-header .fe-btn-signout {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--fe-text-inverse-dim);
  border-color: rgba(255,255,255,0.3);
}

.fe-dashboard-header .fe-btn-signout:hover {
  color: var(--fe-text-inverse);
  border-color: rgba(255,255,255,0.6);
  background-color: rgba(255,255,255,0.08);
}

/* ─── Dashboard tabs ────────────────────────────────────────────────────── */

.fe-dashboard-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--fe-border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--fe-sp-2);
}

.fe-dashboard-tabs::-webkit-scrollbar {
  display: none;
}

.fe-dashboard-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: var(--fe-sp-4) var(--fe-sp-5);
  font-family: var(--fe-font-body);
  font-size: var(--fe-text-sm);
  font-weight: var(--fe-weight-medium);
  color: var(--fe-text-3);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--fe-ease-fast), border-color var(--fe-ease-fast);
}

.fe-dashboard-tab:hover:not(.fe-dashboard-tab-active) {
  color: var(--fe-text-2);
}

.fe-dashboard-tab-active {
  color: var(--fe-accent);
  border-bottom-color: var(--fe-accent);
}

/* ─── Dashboard panel ───────────────────────────────────────────────────── */

.fe-dashboard-panel {
  padding-top: var(--fe-sp-6);
}

/* ─── Profile form ──────────────────────────────────────────────────────── */

.fe-profile-form {
  max-width: 480px;
}

@media (min-width: 768px) {
  .fe-dashboard-header {
    flex-wrap: nowrap;
  }
}
