/*
  Y-SON Urban Lighting — Public Frontend
  File    : frontend-components.css
  Version : v1.0.0 | 2026-05-20
  Load order: 3 of 5

  All reusable UI components.
  All values via --fe- variables — no raw hex/px.
*/

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */

.fe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fe-sp-2);
  font-family: var(--fe-font-body);
  font-size: var(--fe-text-base);
  font-weight: var(--fe-weight-semibold);
  line-height: 1;
  padding: 12px 28px;
  border-radius: var(--fe-radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  transition:
    background-color var(--fe-ease-fast),
    border-color var(--fe-ease-fast),
    box-shadow var(--fe-ease-fast),
    color var(--fe-ease-fast);
}

.fe-btn:disabled,
.fe-btn-loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.fe-btn-primary {
  background-color: var(--fe-accent);
  color: var(--fe-text-inverse);
  border-color: var(--fe-accent);
  box-shadow: 0 2px 8px var(--fe-accent-shadow);
}

.fe-btn-primary:hover {
  background-color: var(--fe-accent-dark);
  border-color: var(--fe-accent-dark);
  box-shadow: 0 4px 16px var(--fe-accent-shadow-hover);
}

.fe-btn-secondary {
  background-color: var(--fe-surface);
  color: var(--fe-text-1);
  border-color: var(--fe-border-dark);
}

.fe-btn-secondary:hover {
  background-color: var(--fe-surface-3);
  border-color: var(--fe-text-3);
}

.fe-btn-outline {
  background-color: transparent;
  color: var(--fe-accent);
  border-color: var(--fe-accent);
}

.fe-btn-outline:hover {
  background-color: var(--fe-accent-dim);
}

.fe-btn-outline-inverse {
  background-color: transparent;
  color: var(--fe-text-inverse);
  border-color: rgba(255, 255, 255, 0.6);
}

.fe-btn-outline-inverse:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--fe-text-inverse);
}

.fe-btn-ghost {
  background-color: transparent;
  color: var(--fe-text-2);
  border-color: transparent;
  border-radius: var(--fe-radius-sm);
  padding: 10px 16px;
}

.fe-btn-ghost:hover {
  background-color: var(--fe-surface-3);
}

.fe-btn-danger {
  background-color: var(--fe-danger);
  color: var(--fe-text-inverse);
  border-color: var(--fe-danger);
}

.fe-btn-danger:hover {
  background-color: #991b1b;
  border-color: #991b1b;
}

.fe-btn-sm {
  font-size: var(--fe-text-sm);
  padding: 8px 18px;
}

.fe-btn-lg {
  font-size: var(--fe-text-lg);
  padding: 14px 36px;
}

.fe-btn-icon {
  padding: 10px;
  border-radius: var(--fe-radius-md);
  aspect-ratio: 1;
}

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */

/* fe-form-row is an alias for fe-form-group (used in configurator.js) */
.fe-form-group,
.fe-form-row {
  display: flex;
  flex-direction: column;
  gap: var(--fe-sp-2);
}

/* fe-label is an alias for fe-form-label (used in configurator.js and account-dashboard.js) */
.fe-form-label,
.fe-label {
  font-size: var(--fe-text-sm);
  font-weight: var(--fe-weight-medium);
  color: var(--fe-text-2);
}

.fe-form-label .fe-required,
.fe-label .fe-required {
  color: var(--fe-danger);
  margin-left: 2px;
}

/* fe-input / fe-textarea are aliases for fe-form-input / fe-form-textarea */
.fe-form-input,
.fe-input,
.fe-form-select,
.fe-form-textarea,
.fe-textarea {
  width: 100%;
  background-color: var(--fe-surface);
  border: 1.5px solid var(--fe-border);
  border-radius: var(--fe-radius-sm);
  color: var(--fe-text-1);
  font-size: var(--fe-text-base);
  padding: var(--fe-sp-3) var(--fe-sp-4);
  transition: border-color var(--fe-ease-fast), box-shadow var(--fe-ease-fast);
}

.fe-form-input::placeholder,
.fe-input::placeholder,
.fe-form-textarea::placeholder,
.fe-textarea::placeholder {
  color: var(--fe-text-3);
}

.fe-form-input:focus,
.fe-input:focus,
.fe-form-select:focus,
.fe-form-textarea:focus,
.fe-textarea:focus {
  border-color: var(--fe-accent);
  box-shadow: 0 0 0 3px var(--fe-accent-dim);
}

.fe-form-select {
  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 12px center;
  background-size: 16px;
  padding-right: var(--fe-sp-10);
  cursor: pointer;
}

.fe-form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: var(--fe-leading-base);
}

.fe-form-checkbox,
.fe-form-radio {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-2);
  cursor: pointer;
  font-size: var(--fe-text-sm);
  color: var(--fe-text-2);
}

.fe-form-checkbox input[type="checkbox"],
.fe-form-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--fe-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.fe-form-range {
  width: 100%;
  accent-color: var(--fe-accent);
  cursor: pointer;
}

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

.fe-form-error {
  font-size: var(--fe-text-xs);
  color: var(--fe-danger);
}

.fe-form-success {
  font-size: var(--fe-text-xs);
  color: var(--fe-success);
}

.fe-form-input.is-error,
.fe-input.is-error,
.fe-form-select.is-error,
.fe-form-textarea.is-error,
.fe-textarea.is-error {
  border-color: var(--fe-danger);
}

.fe-form-input.is-success,
.fe-input.is-success,
.fe-form-select.is-success,
.fe-form-textarea.is-success,
.fe-textarea.is-success {
  border-color: var(--fe-success);
}

/* ═══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */

.fe-card {
  background-color: var(--fe-surface);
  border: 1px solid var(--fe-border-light);
  border-radius: var(--fe-radius-lg);
  box-shadow: var(--fe-shadow-card);
  transition: box-shadow var(--fe-ease-base), transform var(--fe-ease-base);
  overflow: hidden;
}

.fe-card:hover {
  box-shadow: var(--fe-shadow-card-hover);
  transform: translateY(-2px);
}

.fe-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.fe-card-body {
  padding: var(--fe-sp-4) var(--fe-sp-5);
}

.fe-card-title {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-lg);
  font-weight: var(--fe-weight-semibold);
  color: var(--fe-text-1);
  margin-bottom: var(--fe-sp-2);
  line-height: var(--fe-leading-snug);
}

.fe-card-meta {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-3);
  margin-bottom: var(--fe-sp-3);
}

.fe-card-footer {
  padding: var(--fe-sp-3) var(--fe-sp-5);
  border-top: 1px solid var(--fe-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fe-sp-2);
}

.fe-card-badge {
  position: absolute;
  top: var(--fe-sp-3);
  left: var(--fe-sp-3);
}

.fe-card-product {
  cursor: pointer;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════ */

.fe-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--fe-text-xs);
  font-weight: var(--fe-weight-medium);
  padding: 2px 8px;
  border-radius: var(--fe-radius-sm);
  line-height: 1.5;
  white-space: nowrap;
}

.fe-badge-primary {
  background-color: var(--fe-accent-dim);
  color: var(--fe-accent-dark);
}

.fe-badge-success {
  background-color: var(--fe-success-bg);
  color: var(--fe-success);
}

.fe-badge-warning {
  background-color: var(--fe-warning-bg);
  color: var(--fe-warning);
}

.fe-badge-danger {
  background-color: var(--fe-danger-bg);
  color: var(--fe-danger);
}

.fe-badge-gray {
  background-color: var(--fe-surface-3);
  color: var(--fe-text-2);
}

/* ═══════════════════════════════════════════════════════════
   STARS
═══════════════════════════════════════════════════════════ */

.fe-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: var(--fe-text-sm);
}

.fe-star-filled {
  color: var(--fe-accent);
}

.fe-star-half {
  color: var(--fe-accent);
  opacity: 0.6;
}

.fe-star-empty {
  color: var(--fe-border-dark);
}

/* ═══════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════ */

.fe-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--fe-sp-4);
  z-index: var(--fe-z-modal);
  animation: feOverlayIn var(--fe-ease-base) forwards;
}

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

.fe-modal {
  background-color: var(--fe-surface);
  border-radius: var(--fe-radius-xl);
  box-shadow: var(--fe-shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: feModalIn var(--fe-ease-spring) forwards;
}

.fe-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--fe-sp-5) var(--fe-sp-6);
  border-bottom: 1px solid var(--fe-border-light);
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-xl);
  font-weight: var(--fe-weight-semibold);
  color: var(--fe-text-1);
}

.fe-modal-body {
  padding: var(--fe-sp-6);
}

.fe-modal-footer {
  padding: var(--fe-sp-4) var(--fe-sp-6);
  border-top: 1px solid var(--fe-border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--fe-sp-3);
}

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */

.fe-toast-container {
  position: fixed;
  bottom: var(--fe-sp-6);
  right: var(--fe-sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--fe-sp-3);
  z-index: var(--fe-z-toast);
  pointer-events: none;
  max-width: 360px;
  width: calc(100% - var(--fe-sp-12));
}

.fe-toast {
  padding: var(--fe-sp-3) var(--fe-sp-4);
  border-radius: var(--fe-radius-md);
  box-shadow: var(--fe-shadow-lg);
  font-size: var(--fe-text-sm);
  font-weight: var(--fe-weight-medium);
  line-height: var(--fe-leading-base);
  pointer-events: all;
  animation: feToastIn var(--fe-ease-spring) forwards;
  border-left: 3px solid transparent;
}

.fe-toast-success {
  background-color: var(--fe-success-bg);
  color: var(--fe-success);
  border-left-color: var(--fe-success);
}

.fe-toast-error {
  background-color: var(--fe-danger-bg);
  color: var(--fe-danger);
  border-left-color: var(--fe-danger);
}

.fe-toast-warning {
  background-color: var(--fe-warning-bg);
  color: var(--fe-warning);
  border-left-color: var(--fe-warning);
}

/* ═══════════════════════════════════════════════════════════
   SPINNER
═══════════════════════════════════════════════════════════ */

.fe-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--fe-border);
  border-top-color: var(--fe-accent);
  border-radius: 50%;
  animation: feSpin 0.7s linear infinite;
  flex-shrink: 0;
}

.fe-spinner-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(248, 247, 244, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--fe-z-overlay);
  backdrop-filter: blur(2px);
}

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

.fe-spinner-overlay .fe-spinner {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */

.fe-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--fe-sp-2);
  flex-wrap: wrap;
}

.fe-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--fe-sp-3);
  border-radius: var(--fe-radius-sm);
  font-size: var(--fe-text-sm);
  font-weight: var(--fe-weight-medium);
  color: var(--fe-text-2);
  background-color: var(--fe-surface);
  border: 1px solid var(--fe-border);
  cursor: pointer;
  transition: all var(--fe-ease-fast);
}

.fe-pagination-btn:hover {
  background-color: var(--fe-surface-3);
  border-color: var(--fe-border-dark);
  color: var(--fe-text-1);
}

.fe-pagination-active,
.fe-pagination-active:hover {
  background-color: var(--fe-accent);
  border-color: var(--fe-accent);
  color: var(--fe-text-inverse);
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════ */

.fe-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

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

.fe-breadcrumb-item a {
  color: var(--fe-text-3);
  transition: color var(--fe-ease-fast);
}

.fe-breadcrumb-item a:hover {
  color: var(--fe-accent);
}

.fe-breadcrumb-item.is-active {
  color: var(--fe-text-2);
  font-weight: var(--fe-weight-medium);
}

.fe-breadcrumb-separator {
  color: var(--fe-border-dark);
  font-size: var(--fe-text-xs);
  margin: 0 var(--fe-sp-2);
}

/* ═══════════════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════════════ */

.fe-hidden {
  display: none !important;
}

.fe-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.fe-text-center  { text-align: center; }
.fe-text-right   { text-align: right; }

.fe-flex         { display: flex; align-items: center; }
.fe-flex-between { display: flex; align-items: center; justify-content: space-between; }
.fe-flex-center  { display: flex; align-items: center; justify-content: center; }

.fe-gap-2 { gap: var(--fe-sp-2); }
.fe-gap-4 { gap: var(--fe-sp-4); }
.fe-gap-6 { gap: var(--fe-sp-6); }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   Phase 3 — Configurator components
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Auth gate card ──────────────────────────────────────────────────────── */
.fe-auth-gate-card {
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-xl);
  padding: var(--fe-sp-12) var(--fe-sp-8);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.fe-auth-gate-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-3);
}

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

/* ── Drawing frame & embed ────────────────────────────────────────────────── */
.fe-drawing-frame {
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-lg);
  overflow: hidden;
  background: var(--fe-surface-3);
}

.fe-drawing-embed {
  display: block;
  width: 100%;
  height: 520px;
  border: none;
}

@media (min-width: 1024px) {
  .fe-drawing-embed { height: 620px; }
}

/* ── Config action buttons row ────────────────────────────────────────────── */
.fe-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fe-sp-3);
  margin-top: var(--fe-sp-4);
}

/* ── Preview placeholder ──────────────────────────────────────────────────── */
.fe-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  background: var(--fe-surface-3);
  border: 2px dashed var(--fe-border-dark);
  border-radius: var(--fe-radius-lg);
  padding: var(--fe-sp-8);
  text-align: center;
}

.fe-preview-placeholder-text {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-3);
  max-width: 260px;
  line-height: var(--fe-leading-loose);
}

/* ── Preview loading ──────────────────────────────────────────────────────── */
.fe-preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--fe-sp-4);
  min-height: 340px;
  background: var(--fe-surface-3);
  border-radius: var(--fe-radius-lg);
  padding: var(--fe-sp-8);
  font-size: var(--fe-text-sm);
  color: var(--fe-text-2);
}

/* ── Accordion ────────────────────────────────────────────────────────────── */
.fe-accordion-item {
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-md);
  overflow: hidden;
  background: var(--fe-surface);
}

.fe-accordion-header {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-3);
  width: 100%;
  padding: var(--fe-sp-4) var(--fe-sp-5);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--fe-font-body);
  font-size: var(--fe-text-base);
  color: var(--fe-text-1);
  transition: background var(--fe-transition-fast);
}

.fe-accordion-header:hover {
  background: var(--fe-surface-2);
}

.fe-accordion-num {
  font-family: var(--fe-font-heading);
  font-size: var(--fe-text-xs);
  font-weight: var(--fe-weight-bold);
  color: var(--fe-accent);
  letter-spacing: 0.08em;
  min-width: 1.8em;
}

.fe-accordion-title {
  flex: 1;
  font-weight: var(--fe-weight-medium);
}

.fe-accordion-chevron {
  flex-shrink: 0;
  color: var(--fe-text-3);
  transition: transform var(--fe-transition-fast);
}

.fe-accordion-item--open .fe-accordion-chevron {
  transform: rotate(180deg);
}

.fe-accordion-body {
  display: none;
  padding: var(--fe-sp-5) var(--fe-sp-5) var(--fe-sp-6);
  border-top: 1px solid var(--fe-border-light);
}

.fe-accordion-item--open .fe-accordion-body {
  display: block;
}

/* ── Accessor panel helpers ───────────────────────────────────────────────── */
.fe-toggle-row {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-3);
  padding: var(--fe-sp-2) 0;
}

.fe-toggle-cb {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--fe-accent);
}

.fe-form-row-group {
  padding-left: var(--fe-sp-8);
  margin-bottom: var(--fe-sp-2);
}

.fe-section-row {
  background: var(--fe-surface-2);
  border: 1px solid var(--fe-border-light);
  border-radius: var(--fe-radius-md);
  padding: var(--fe-sp-4);
  margin-bottom: var(--fe-sp-3);
}

.fe-section-row-label {
  font-size: var(--fe-text-sm);
  font-weight: var(--fe-weight-semibold);
  color: var(--fe-text-2);
  margin-bottom: var(--fe-sp-3);
}

.fe-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fe-sp-4);
  padding: var(--fe-sp-1) 0;
}

.fe-radio-label {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-2);
  font-size: var(--fe-text-base);
  color: var(--fe-text-1);
  cursor: pointer;
}

.fe-radio {
  width: 16px;
  height: 16px;
  accent-color: var(--fe-accent);
  cursor: pointer;
}

/* ────────────────────────────────────────────────────────────────────────── */

@keyframes feSpin {
  to { transform: rotate(360deg); }
}

@keyframes feToastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes feOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes feModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Phase 4 — Contact info sidebar & success card
   ═══════════════════════════════════════════════════════════════════════════ */

.fe-contact-info-inner {
  background-color: var(--fe-surface);
  border: 1px solid var(--fe-border-light);
  border-radius: var(--fe-radius-lg);
  padding: var(--fe-sp-6);
}

.fe-contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--fe-sp-3);
  padding: var(--fe-sp-3) 0;
  border-bottom: 1px solid var(--fe-border-light);
}

.fe-contact-info-row:last-child {
  border-bottom: none;
}

.fe-contact-info-icon {
  flex-shrink: 0;
  color: var(--fe-accent);
  margin-top: 2px;
}

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

.fe-contact-link {
  color: var(--fe-accent);
  text-decoration: none;
  transition: opacity var(--fe-ease-fast);
}

.fe-contact-link:hover {
  opacity: 0.8;
}

.fe-contact-success-card {
  background-color: var(--fe-success-bg);
  border: 1px solid var(--fe-success);
  border-radius: var(--fe-radius-lg);
  padding: var(--fe-sp-8);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Phase 5 — Auth card (login / sign-up page)
   ═══════════════════════════════════════════════════════════════════════════ */

.fe-auth-card {
  background-color: var(--fe-surface);
  border: 1px solid var(--fe-border-light);
  border-radius: var(--fe-radius-xl);
  box-shadow: var(--fe-shadow-lg);
  padding: var(--fe-sp-8);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.fe-auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--fe-border);
  margin-bottom: var(--fe-sp-6);
  gap: var(--fe-sp-2);
}

.fe-auth-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: var(--fe-sp-3) var(--fe-sp-4);
  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;
  transition: color var(--fe-ease-fast), border-color var(--fe-ease-fast);
}

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

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

.fe-auth-divider {
  display: flex;
  align-items: center;
  gap: var(--fe-sp-3);
  margin: var(--fe-sp-5) 0;
  color: var(--fe-text-3);
  font-size: var(--fe-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--fe-tracking-wide);
}

.fe-auth-divider::before,
.fe-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--fe-border);
}

.fe-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--fe-sp-3);
  width: 100%;
  padding: var(--fe-sp-3) var(--fe-sp-4);
  background-color: var(--fe-surface);
  border: 1.5px solid var(--fe-border-dark);
  border-radius: var(--fe-radius-full);
  font-family: var(--fe-font-body);
  font-size: var(--fe-text-sm);
  font-weight: var(--fe-weight-medium);
  color: var(--fe-text-1);
  cursor: pointer;
  transition: background-color var(--fe-ease-fast), box-shadow var(--fe-ease-fast);
}

.fe-btn-google:hover {
  background-color: var(--fe-surface-3);
  box-shadow: var(--fe-shadow-sm);
}

.fe-auth-forgot {
  margin-top: var(--fe-sp-3);
  text-align: right;
  font-size: var(--fe-text-sm);
}

.fe-auth-forgot a {
  color: var(--fe-accent);
  text-decoration: none;
}

.fe-auth-forgot a:hover {
  text-decoration: underline;
}

.fe-auth-back-link {
  display: inline-block;
  margin-top: var(--fe-sp-4);
  font-size: var(--fe-text-sm);
  color: var(--fe-text-3);
  text-decoration: none;
}

.fe-auth-back-link:hover {
  color: var(--fe-text-2);
}

.fe-auth-reset-hint {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-2);
  margin-bottom: var(--fe-sp-5);
  line-height: var(--fe-leading-base);
}

.fe-auth-reset-sent {
  background-color: var(--fe-success-bg);
  border: 1px solid var(--fe-success);
  border-radius: var(--fe-radius-md);
  padding: var(--fe-sp-5);
  font-size: var(--fe-text-sm);
  color: var(--fe-success);
  line-height: var(--fe-leading-base);
}

.fe-label-hint {
  color: var(--fe-text-3);
  font-weight: var(--fe-weight-normal);
  font-size: var(--fe-text-xs);
}

.fe-pw-wrapper {
  position: relative;
}

.fe-pw-wrapper .fe-input-pw {
  padding-right: var(--fe-sp-12);
}

.fe-pw-toggle {
  position: absolute;
  right: var(--fe-sp-3);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-family: var(--fe-font-body);
  font-size: var(--fe-text-xs);
  font-weight: var(--fe-weight-medium);
  color: var(--fe-text-3);
  cursor: pointer;
  padding: var(--fe-sp-1) var(--fe-sp-2);
}

.fe-pw-toggle:hover {
  color: var(--fe-accent);
}

.fe-btn-full {
  width: 100%;
}

/* ─── Phase 5 — Config card ────────────────────────────────────────────── */

.fe-config-card {
  background-color: var(--fe-surface);
  border: 1px solid var(--fe-border-light);
  border-radius: var(--fe-radius-lg);
  box-shadow: var(--fe-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fe-config-card-thumb {
  aspect-ratio: 4 / 3;
  background-color: var(--fe-surface-3);
  overflow: hidden;
}

.fe-config-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fe-config-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fe-text-sm);
  color: var(--fe-text-3);
}

.fe-config-card-body {
  padding: var(--fe-sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--fe-sp-2);
  align-items: center;
}

.fe-config-card-id {
  font-family: var(--fe-font-mono);
  font-size: var(--fe-text-xs);
  color: var(--fe-text-3);
  margin: 0;
}

.fe-config-card-date {
  font-size: var(--fe-text-xs);
  color: var(--fe-text-3);
  margin: 0;
}

.fe-config-card-actions {
  padding: var(--fe-sp-3) var(--fe-sp-4);
  border-top: 1px solid var(--fe-border-light);
  display: flex;
  gap: var(--fe-sp-2);
  flex-wrap: wrap;
}

/* ─── Phase 5 — Enquiry row ─────────────────────────────────────────────── */

.fe-enquiry-row {
  background-color: var(--fe-surface);
  border: 1px solid var(--fe-border-light);
  border-radius: var(--fe-radius-md);
  padding: var(--fe-sp-4) var(--fe-sp-5);
  margin-bottom: var(--fe-sp-3);
}

.fe-enquiry-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fe-sp-2);
  align-items: center;
  margin-bottom: var(--fe-sp-2);
}

.fe-enquiry-date,
.fe-enquiry-product {
  font-size: var(--fe-text-xs);
  color: var(--fe-text-3);
}

.fe-enquiry-message {
  font-size: var(--fe-text-sm);
  color: var(--fe-text-2);
  margin: 0 0 var(--fe-sp-3);
  line-height: var(--fe-leading-base);
}

.fe-enquiry-row-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fe-sp-2);
  align-items: center;
}

/* ─── Phase 5 — Review card ─────────────────────────────────────────────── */

.fe-review-card {
  background-color: var(--fe-surface);
  border: 1px solid var(--fe-border-light);
  border-radius: var(--fe-radius-md);
  padding: var(--fe-sp-4) var(--fe-sp-5);
  margin-bottom: var(--fe-sp-3);
}

.fe-review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fe-sp-3);
  margin-bottom: var(--fe-sp-2);
}

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

.fe-review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--fe-sp-2);
}

.fe-star {
  color: var(--fe-border-dark);
  font-size: var(--fe-text-base);
}

.fe-star-filled {
  color: var(--fe-accent);
}

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

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

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

/* ─── Phase 5 — Utility classes ─────────────────────────────────────────── */

.fe-text-sm {
  font-size: var(--fe-text-sm);
}

.fe-text-3 {
  color: var(--fe-text-3);
}

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

.fe-empty-state p {
  margin-bottom: var(--fe-sp-5);
}

/* ─── Phase 5 — Badge variants (new) ────────────────────────────────────── */

.fe-badge-info {
  background-color: var(--fe-info-bg);
  color: var(--fe-info);
}

.fe-badge-muted {
  background-color: var(--fe-surface-3);
  color: var(--fe-text-3);
}
