/* McDo Malin — DA Glass v4 */

:root {
  --fm-black: #0a0a0a;
  --fm-ink: #141414;
  --fm-ink2: #2a2a2a;
  --fm-white: #ffffff;
  --fm-offwhite: #f6f6f4;
  --fm-offwhite2: #ececea;
  --fm-yellow: #ffd600;
  --fm-yellow-dark: #e6bf00;
  --fm-line: rgba(10, 10, 10, 0.10);
  --fm-line-strong: rgba(10, 10, 10, 0.16);
  --fm-line-dark: rgba(255, 255, 255, 0.14);
  --fm-muted: rgba(10, 10, 10, 0.58);
  --fm-muted-dark: rgba(255, 255, 255, 0.65);
  --fm-font: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --fm-display: 'Instrument Serif', 'Cormorant Garamond', serif;
  --fm-mono: 'JetBrains Mono', ui-monospace, monospace;
  --fm-bg-light: radial-gradient(1200px 600px at 0% 0%, #fbeaa6 0%, transparent 45%),
                 radial-gradient(900px 500px at 100% 80%, #ffe8a3 0%, transparent 55%),
                 linear-gradient(180deg, #f6f6f4 0%, #ececea 100%);
  --fm-bg-dark: radial-gradient(900px 600px at 20% 0%, #1d1d1d 0%, transparent 55%),
                radial-gradient(700px 500px at 100% 100%, #242219 0%, transparent 50%),
                linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--fm-font);
  color: var(--fm-ink);
  background: var(--fm-bg-light);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.theme-dark {
  background: var(--fm-bg-dark);
  color: var(--fm-white);
}

body.fm-loading {
  overflow: hidden;
}

body.fm-loading > *:not(#fm-skeleton-root):not(script) {
  opacity: 0;
  pointer-events: none;
}

#fm-promo,
#fm-header,
.fm-page,
.fm-footer {
  transition: opacity .18s ease;
}

#fm-skeleton-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  background: var(--fm-bg-light);
}

body.theme-dark #fm-skeleton-root {
  background: var(--fm-bg-dark);
}

#fm-skeleton-root.is-ready {
  opacity: 1;
}

#fm-skeleton-root.is-hidden {
  opacity: 0;
}

.fm-sk-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px 56px;
}

.fm-sk-topbar,
.fm-sk-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fm-sk-topbar {
  justify-content: space-between;
}

.fm-sk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fm-sk-page {
  margin-top: 22px;
}

.fm-sk-section {
  margin-top: 22px;
}

.fm-sk-grid {
  display: grid;
  gap: 18px;
}

.fm-sk-grid-2 {
  grid-template-columns: 1.15fr 0.85fr;
}

.fm-sk-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fm-sk-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fm-sk-grid-support {
  grid-template-columns: 340px minmax(0, 1fr);
}

.fm-sk-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.fm-sk-copy,
.fm-sk-panel,
.fm-sk-card,
.fm-sk-auth {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 8px 40px rgba(20, 20, 20, 0.05);
}

body.theme-dark .fm-sk-copy,
body.theme-dark .fm-sk-panel,
body.theme-dark .fm-sk-card,
body.theme-dark .fm-sk-auth {
  background: rgba(20, 20, 20, 0.48);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.24);
}

.fm-sk-panel.hero {
  padding: 28px;
  background: linear-gradient(140deg, rgba(255, 214, 0, 0.9) 0%, rgba(255, 229, 106, 0.9) 100%);
  border-color: rgba(0, 0, 0, 0.04);
}

body.theme-dark .fm-sk-panel.hero {
  background: linear-gradient(140deg, rgba(255, 214, 0, 0.86) 0%, rgba(255, 229, 106, 0.82) 100%);
}

.fm-sk-panel.small {
  padding: 18px;
}

.fm-sk-card {
  gap: 12px;
  display: flex;
  flex-direction: column;
}

.fm-sk-visual,
.fm-sk-media,
.fm-sk-logo,
.fm-sk-avatar,
.fm-sk-input,
.fm-sk-bar {
  position: relative;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.08);
}

body.theme-dark .fm-sk-visual,
body.theme-dark .fm-sk-media,
body.theme-dark .fm-sk-logo,
body.theme-dark .fm-sk-avatar,
body.theme-dark .fm-sk-input,
body.theme-dark .fm-sk-bar {
  background: rgba(255, 255, 255, 0.1);
}

.fm-sk-visual::after,
.fm-sk-media::after,
.fm-sk-logo::after,
.fm-sk-avatar::after,
.fm-sk-input::after,
.fm-sk-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 48%, transparent 100%);
  animation: fm-skeleton-shimmer 1.15s ease-in-out infinite;
}

body.theme-dark .fm-sk-visual::after,
body.theme-dark .fm-sk-media::after,
body.theme-dark .fm-sk-logo::after,
body.theme-dark .fm-sk-avatar::after,
body.theme-dark .fm-sk-input::after,
body.theme-dark .fm-sk-bar::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 48%, transparent 100%);
}

.fm-sk-logo {
  width: 116px;
  height: 60px;
  border-radius: 20px;
}

.fm-sk-logo.large {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  margin: 0 auto 6px;
}

.fm-sk-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.fm-sk-bar {
  display: block;
  width: min(100%, var(--sk-w, 100%));
  height: 14px;
  border-radius: 999px;
}

.fm-sk-bar.lg {
  height: 18px;
}

.fm-sk-bar.title {
  height: 28px;
}

.fm-sk-bar.metric {
  height: 74px;
  border-radius: 18px;
}

.fm-sk-bar.metric-sm {
  height: 44px;
  border-radius: 16px;
}

.fm-sk-bar.pill {
  height: 34px;
}

.fm-sk-bar.cta {
  height: 50px;
  border-radius: 999px;
}

.fm-sk-bar.cta.ghost {
  opacity: 0.72;
}

.fm-sk-bar.center {
  margin-left: auto;
  margin-right: auto;
}

.fm-sk-row.wrap {
  flex-wrap: wrap;
}

.fm-sk-visual.hero {
  min-height: 360px;
  border-radius: 34px;
}

.fm-sk-visual.tall {
  min-height: 280px;
  border-radius: 22px;
  margin-bottom: 8px;
}

.fm-sk-media {
  height: 164px;
  border-radius: 18px;
}

.fm-sk-input {
  height: 54px;
  border-radius: 16px;
}

.fm-sk-center {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
}

.fm-sk-auth {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

@keyframes fm-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 980px) {
  .fm-sk-grid-2,
  .fm-sk-grid-support,
  .fm-sk-hero {
    grid-template-columns: 1fr;
  }

  .fm-sk-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .fm-sk-shell {
    padding: 14px 20px 40px;
  }

  .fm-sk-grid-3,
  .fm-sk-grid-4 {
    grid-template-columns: 1fr;
  }

  .fm-sk-visual.hero {
    min-height: 220px;
  }
}

@media (max-width: 719px) {
  body { padding-bottom: 94px; }
  .fm-page {
    transition: transform .18s ease, opacity .18s ease;
  }
  body.fm-swipe-left .fm-page {
    transform: translateX(-18px);
    opacity: 0.86;
  }
  body.fm-swipe-right .fm-page {
    transform: translateX(18px);
    opacity: 0.86;
  }
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--fm-yellow); color: var(--fm-black); }

/* === Glass card === */
.fm-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 40px rgba(20, 20, 20, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.fm-card.strong { background: rgba(255, 255, 255, 0.78); }
.fm-card.dark {
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  color: var(--fm-white);
}
.fm-card.dark.strong { background: rgba(18, 18, 18, 0.78); }
.fm-card.hover { transition: transform .18s ease, box-shadow .18s ease; }
.fm-card.hover:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(20, 20, 20, 0.12); }

/* === Buttons === */
.fm-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--fm-yellow);
  color: var(--fm-black);
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--fm-font);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(255, 214, 0, 0.45), 0 2px 0 rgba(0, 0, 0, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.fm-btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.fm-btn:active { transform: translateY(0); }
.fm-btn:disabled { opacity: 0.55; cursor: not-allowed; filter: none; transform: none; }

.fm-btn.sm { padding: 10px 16px; font-size: 13px; }
.fm-btn.md { padding: 14px 22px; font-size: 15px; }
.fm-btn.xl { padding: 22px 34px; font-size: 19px; }

.fm-btn.block { width: 100%; justify-content: center; }

.fm-btn.dark {
  background: var(--fm-black);
  color: var(--fm-white);
  box-shadow: 0 10px 30px rgba(10, 10, 10, 0.25);
}
.fm-btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--fm-black);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.fm-btn .fm-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--fm-black); color: var(--fm-yellow);
  display: grid; place-items: center; font-size: 16px; font-weight: 600;
}
.fm-btn.sm .fm-arrow { width: 20px; height: 20px; font-size: 10px; }
.fm-btn.md .fm-arrow { width: 26px; height: 26px; font-size: 13px; }
.fm-btn.xl .fm-arrow { width: 38px; height: 38px; font-size: 19px; }
.fm-btn.dark .fm-arrow { background: var(--fm-yellow); color: var(--fm-black); }
.fm-btn.ghost .fm-arrow { background: var(--fm-black); color: var(--fm-white); }

/* Secondary inline actions (Save, small chips) */
.fm-chip-btn {
  appearance: none;
  cursor: pointer;
  background: rgba(10, 10, 10, 0.06);
  color: var(--fm-black);
  border: 1px solid var(--fm-line);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--fm-font);
  font-size: 12px;
  font-weight: 600;
  transition: background .15s ease;
}
.fm-chip-btn:hover { background: rgba(10, 10, 10, 0.1); }
.fm-chip-btn.danger { background: rgba(220, 60, 60, 0.1); color: #b92c2c; border-color: rgba(220, 60, 60, 0.2); }
.fm-chip-btn.danger:hover { background: rgba(220, 60, 60, 0.18); }
.fm-chip-btn.yellow { background: var(--fm-yellow); color: var(--fm-black); border-color: transparent; }
.fm-chip-btn.yellow:hover { background: var(--fm-yellow-dark); }

.dark .fm-chip-btn,
.theme-dark .fm-chip-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fm-white);
  border: 1px solid var(--fm-line-dark);
}

/* === Pills === */
.fm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--fm-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--fm-yellow);
  color: var(--fm-black);
}
.fm-pill.md { padding: 6px 12px; font-size: 13px; }
.fm-pill.xs { padding: 2px 8px; font-size: 10px; }
.fm-pill.black { background: var(--fm-black); color: var(--fm-white); }
.fm-pill.white { background: rgba(255, 255, 255, 0.8); color: var(--fm-black); }
.fm-pill.ghost { background: transparent; color: var(--fm-black); border: 1px solid var(--fm-line); }
.fm-pill.green { background: rgba(16, 160, 90, 0.18); color: #0b6d3d; }
.fm-pill.red { background: rgba(220, 60, 60, 0.15); color: #b92c2c; }
.fm-pill.orange { background: rgba(255, 145, 0, 0.18); color: #8a4a00; }

/* === Headings === */
h1, h2, h3 { font-family: var(--fm-font); letter-spacing: -0.045em; font-weight: 600; margin: 0; }
h1 { font-size: 56px; letter-spacing: -0.055em; }
h2 { font-size: 36px; }
h3 { font-size: 22px; letter-spacing: -0.03em; }
.fm-italic { font-family: var(--fm-display); font-style: italic; font-weight: 400; }
.fm-mono { font-family: var(--fm-mono); }

/* === Inputs === */
.fm-input, .fm-select, .fm-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--fm-line);
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--fm-font);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  color: var(--fm-ink);
}
.fm-input:focus, .fm-select:focus, .fm-textarea:focus {
  border-color: var(--fm-black);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.05);
}
.fm-textarea { resize: vertical; min-height: 90px; font-family: var(--fm-font); }
.fm-label {
  font-family: var(--fm-font);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.55;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* === Layout === */
.fm-page { max-width: 1240px; margin: 0 auto; padding: 0 32px 80px; }
.fm-section { margin-top: 40px; }
.fm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fm-grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }

@media (max-width: 900px) {
  .fm-grid-3, .fm-grid-4 { grid-template-columns: 1fr 1fr; }
  .fm-grid-2 { grid-template-columns: 1fr; gap: 20px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  .fm-grid-3, .fm-grid-4 { grid-template-columns: 1fr; }
  .fm-page { padding: 0 20px 80px; }
}

/* === Header === */
.fm-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 18px;
  display: flex; justify-content: center;
  pointer-events: none;
}
@media (min-width: 720px) {
  .fm-header { padding: 18px 32px; }
}
.fm-header-inner {
  width: 100%; max-width: 1240px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: auto;
  gap: 10px;
}
.fm-mobile-balance,
.fm-mobile-nav { display: none; }

@media (max-width: 719px) {
  .fm-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 0;
    padding: 0;
    z-index: 100;
  }
  .fm-header-inner { display: none; }
  .fm-mobile-balance {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 101;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 9px 13px 9px 11px;
    border-radius: 14px;
    background: rgba(18, 18, 18, 0.94);
    color: var(--fm-white);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 34px rgba(0,0,0,0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .fm-mobile-balance .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--fm-yellow);
    box-shadow: 0 0 0 3px rgba(255,214,0,0.18);
    flex-shrink: 0;
  }
  .fm-mobile-balance-value {
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -0.02em;
    color: var(--fm-white);
  }
  .fm-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    pointer-events: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 68px 1fr 1fr;
    align-items: center;
    min-height: 76px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: rgba(34, 34, 34, 0.96);
    border: 1px solid rgba(255,255,255,0.10);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 18px 48px rgba(0,0,0,0.34);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition: transform .22s ease;
  }
  .fm-mobile-nav.is-hidden {
    transform: translateY(110%);
  }
  .fm-mobile-nav-item,
  .fm-mobile-nav-logo {
    position: relative;
    min-width: 0;
    color: var(--fm-white);
    display: grid;
    place-items: center;
    gap: 4px;
    text-align: center;
    border-radius: 0;
    isolation: isolate;
  }
  .fm-mobile-nav-item {
    min-height: 58px;
    padding: 8px 4px 6px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: -0.02em;
    opacity: 0.72;
    transition: opacity .18s ease, color .18s ease;
  }
  .fm-mobile-nav-item::after,
  .fm-mobile-nav-logo::after {
    content: none;
  }
  .fm-mobile-nav-item.is-active,
  .fm-mobile-nav-logo.is-active {
    opacity: 1;
    color: var(--fm-yellow);
  }
  .fm-mobile-nav-item.is-active img {
    filter: drop-shadow(0 0 8px rgba(255,214,0,0.32));
  }
  .fm-mobile-nav-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.20));
    transition: transform .18s ease;
  }
  .fm-mobile-nav-logo {
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    border: 0;
    justify-self: center;
    background: transparent;
    box-shadow: none;
    transition: transform .18s ease;
  }
  .fm-mobile-nav-logo.is-active {
    box-shadow: none;
  }
  .fm-mobile-nav-logo img {
    width: 58px;
    height: 58px;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    filter: none;
  }
}
.fm-logo {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: var(--fm-font); line-height: 1;
}
.fm-logo-text {
  font-weight: 600; color: var(--fm-black);
  letter-spacing: -0.045em; font-size: 20px;
}
.fm-logo.invert .fm-logo-text { color: var(--fm-white); }
.fm-logo-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fm-yellow); margin-left: 3px; transform: translateY(-1px);
}

/* Logo image button (SVG) */
.fm-logo-link {
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.fm-logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 200px;
}
@media (min-width: 720px) {
  .fm-logo-link { padding: 8px 18px; }
  .fm-logo-img { height: 54px; max-width: 260px; }
}

/* User chip in header */
.fm-userchip {
  padding: 5px 5px 5px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fm-userchip.guest { padding: 5px; }

.fm-userchip .fm-balance {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  min-width: 0;
}
.fm-userchip .fm-balance .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fm-yellow);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.2);
  flex-shrink: 0;
}
.fm-userchip .fm-balance .lbl { opacity: 0.6; }
.fm-userchip .fm-balance .val {
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  white-space: nowrap;
}

.fm-userchip .fm-avatar-link {
  appearance: none; border: 0; cursor: pointer;
  background: var(--fm-black); color: var(--fm-white);
  padding: 7px 12px 7px 7px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  min-width: 0;
}
.fm-userchip .fm-avatar-link .avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--fm-yellow); color: var(--fm-black);
  display: grid; place-items: center;
  font-weight: 700; font-size: 11px;
  flex-shrink: 0;
}
.fm-userchip .fm-avatar-link .email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.fm-userchip .fm-admin-link { margin-right: 4px; }
.fm-userchip .fm-support-link { margin-right: 2px; }

/* Mobile: collapse balance label + email text + support label */
@media (max-width: 560px) {
  .fm-userchip { padding: 4px 4px 4px 10px; gap: 6px; }
  .fm-userchip .fm-balance .lbl { display: none; }
  .fm-userchip .fm-balance .val { font-size: 15px; }
  .fm-userchip .fm-avatar-link { padding: 6px; }
  .fm-userchip .fm-avatar-link .email { display: none; }
  .fm-userchip .fm-avatar-link .avatar { width: 26px; height: 26px; }
  .fm-userchip .fm-admin-link {
    padding: 6px 10px;
    font-size: 12px;
    margin-right: 2px;
  }
  .fm-userchip .fm-support-link .fm-support-link-text { display: none; }
  .fm-userchip .fm-support-link { padding: 6px 10px; font-size: 13px; }
}

/* === Table === */
.fm-table { width: 100%; border-collapse: collapse; font-family: var(--fm-font); font-size: 13px; }
.fm-table th {
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  border-bottom: 1px solid var(--fm-line);
}
.fm-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--fm-line);
  vertical-align: middle;
}
.fm-card.dark .fm-table th,
.fm-card.dark .fm-table td { border-bottom-color: var(--fm-line-dark); }

/* === Illustrations des produits (tier par euro) === */
.fm-illus {
  height: 160px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 84px;
  position: relative;
  overflow: hidden;
}
.fm-illus.lg { height: 220px; font-size: 120px; }
.fm-illus.xl { height: 420px; font-size: 220px; }
.fm-illus.sm { height: 120px; font-size: 60px; }
.fm-illus.xxs { height: 60px; font-size: 28px; border-radius: 12px; }
.fm-illus.t-s { background: linear-gradient(135deg, #ffe39a, #f7b84a); }
.fm-illus.t-m { background: linear-gradient(135deg, #f7b84a, #e47b2b); }
.fm-illus.t-l { background: linear-gradient(135deg, #ffd35a, #c1732a); }
.fm-illus.t-xl { background: linear-gradient(135deg, #f7b84a, #b23b2e); }
.fm-illus.t-xxl { background: linear-gradient(135deg, #e9c46a, #6b3f10); }

.fm-illus .fm-illus-glow {
  position: absolute; inset: -10% -10% auto auto;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
  pointer-events: none;
}

/* === Header CTA buttons === */
.fm-cta-hover:hover { transform: translateY(-1px); filter: brightness(1.02); }
.fm-cta-hover:active { transform: translateY(0); }

/* === Status pills === */
.fm-status-pending { background: rgba(255, 145, 0, 0.18); color: #8a4a00; }
.fm-status-approved { background: rgba(16, 160, 90, 0.18); color: #0b6d3d; }
.fm-status-rejected { background: rgba(220, 60, 60, 0.15); color: #b92c2c; }
.fm-status-delivered { background: rgba(16, 160, 90, 0.18); color: #0b6d3d; }
.fm-status-processing { background: rgba(255, 214, 0, 0.3); color: #5c4a00; }
.fm-status-pending-order { background: rgba(255, 145, 0, 0.18); color: #8a4a00; }
.fm-status-failed { background: rgba(220, 60, 60, 0.15); color: #b92c2c; }
.fm-status-refunded { background: rgba(120, 120, 120, 0.18); color: #333; }

/* === Admin sidebar === */
.fm-admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  color: var(--fm-white);
}
.fm-admin-aside {
  padding: 24px;
  border-right: 1px solid var(--fm-line-dark);
  display: flex; flex-direction: column; gap: 22px;
}
.fm-admin-nav-btn {
  appearance: none; border: 0; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 12px;
  background: transparent; color: var(--fm-white);
  font-family: var(--fm-font); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  transition: background .12s ease;
}
.fm-admin-nav-btn:hover { background: rgba(255, 255, 255, 0.06); }
.fm-admin-nav-btn.active {
  background: rgba(255, 214, 0, 0.15);
  color: var(--fm-yellow);
  font-weight: 600;
}
.fm-admin-main { padding: 32px; overflow: auto; }

@media (max-width: 900px) {
  .fm-admin-layout { grid-template-columns: 1fr; }
  .fm-admin-aside {
    flex-direction: row; overflow-x: auto;
    border-right: none; border-bottom: 1px solid var(--fm-line-dark);
    padding: 12px 16px; gap: 6px;
  }
  .fm-admin-main { padding: 16px; overflow-x: hidden; }
  .fm-admin-main .fm-card { overflow-x: auto; }
}
@media (max-width: 560px) {
  .fm-admin-aside { padding: 10px 12px; }
  .fm-admin-nav-btn { padding: 8px 10px; font-size: 12px; }
  .fm-admin-main { padding: 10px; }
}

/* === Nav notification dot === */
.fm-nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.fm-nav-dot {
  position: absolute;
  top: -4px;
  right: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fm-yellow);
  border: 2px solid rgba(34, 34, 34, 0.96);
}

/* === Install banner === */
.fm-install-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 6px 0 16px;
  min-height: 46px;
  font-family: var(--fm-font);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.fm-install-banner-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.fm-install-banner-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fm-install-banner-cta {
  background: var(--fm-yellow);
  color: #111;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}
.fm-install-banner-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 16px;
  padding: 8px 12px;
  line-height: 1;
  flex-shrink: 0;
}
.fm-install-banner-close:hover { color: #fff; }
body.has-install-banner { padding-top: 46px; }
body.has-install-banner .fm-header { top: 46px; }
@media (max-width: 719px) {
  body.has-install-banner .fm-mobile-balance { top: 58px; }
}

/* === Toast === */
.fm-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--fm-black); color: var(--fm-white);
  padding: 14px 20px; border-radius: 14px;
  font-family: var(--fm-font); font-weight: 500; font-size: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 100;
}
.fm-toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* === Misc === */
.fm-muted { opacity: 0.55; }
.fm-row { display: flex; align-items: center; gap: 10px; }
.fm-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fm-stack { display: flex; flex-direction: column; gap: 10px; }

details > summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: 8px; }

/* === Code block === */
pre.fm-pre {
  background: rgba(10, 10, 10, 0.06);
  border: 1px solid var(--fm-line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--fm-mono);
  font-size: 12px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fm-ink);
}
.fm-card.dark pre.fm-pre {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fm-line-dark);
  color: var(--fm-white);
}

/* === Footer === */
.fm-footer {
  max-width: 1240px;
  margin: 60px auto 0;
  padding: 24px 32px;
  font-family: var(--fm-font);
  font-size: 12px;
  color: var(--fm-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Progress bar */
.fm-progress {
  height: 6px;
  border-radius: 99px;
  background: rgba(10, 10, 10, 0.08);
  overflow: hidden;
}
.fm-progress-bar {
  height: 100%;
  background: var(--fm-black);
  border-radius: 99px;
  transition: width .25s ease;
}

/* === Promo banner (above header) === */
.fm-promo-banner {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, #ff2e63 0%, #ff9400 30%, #ffd600 60%, #ff2e63 100%);
  background-size: 300% 100%;
  animation: fm-promo-shine 6s linear infinite;
  color: #0a0a0a;
  font-family: var(--fm-font);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  text-align: center;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 20px rgba(255, 46, 99, 0.35);
}
.fm-promo-banner .fm-promo-tag {
  background: #0a0a0a;
  color: #ffd600;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fm-promo-banner .fm-promo-msg {
  font-size: 14px;
}
.fm-promo-banner .fm-promo-msg b {
  font-size: 16px;
  font-weight: 800;
}
.fm-promo-banner .fm-promo-countdown {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: rgba(0, 0, 0, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--fm-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
}
@keyframes fm-promo-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Announcement banner override (blue/info, no animation) */
.fm-announce-banner {
  background: linear-gradient(90deg, #1a6fcf 0%, #2196f3 50%, #1a6fcf 100%) !important;
  background-size: 100% 100% !important;
  animation: none !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.35) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
}
.fm-announce-banner .fm-promo-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.fm-announce-banner .fm-promo-msg {
  font-size: 14px;
  font-weight: 600;
}

/* Price strikethrough + discounted styling */
.fm-price-strike {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: rgba(10, 10, 10, 0.5);
  font-weight: 500;
  margin-right: 6px;
}
.fm-price-strike.dark { color: rgba(255, 255, 255, 0.5); }
.fm-price-discount {
  color: #d62828;
  font-weight: 700;
}
.fm-price-discount.free { color: #0b6d3d; }
.fm-price-wrap {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}
.fm-progress-bar.yellow { background: var(--fm-yellow); }
