/* =====================================================================
   BaseNex Fotos & Vídeos — camada visual do módulo
   Complementa css/app.css: usa os mesmos tokens (--accent, --lime, navy da sidebar).
   ===================================================================== */
:root {
  --fx-navy: #071B33;
  --fx-navy-2: #0B3F82;
  --fx-ink: #0F1B2D;
  --fx-ink-2: #4D5B70;
  --fx-ink-3: #8592A6;
  --fx-line: #E3E9F2;
  --fx-line-2: #EEF2F8;
  --fx-soft: #F6F9FD;
  --fx-amber: #F2A516;
  --fx-amber-ink: #7A4E00;
  --fx-green: #0E9F6E;
  --fx-green-bg: #E7F7F0;
  --fx-radius: 16px;
  --fx-radius-sm: 10px;
  --fx-shadow: 0 1px 2px rgba(15,27,45,.04), 0 8px 24px -12px rgba(15,27,45,.12);
  --fx-shadow-lg: 0 24px 60px -20px rgba(7,27,51,.35);
}

* { box-sizing: border-box; }
body.fx { background: var(--bg); color: var(--fx-ink); font-family: 'Manrope', system-ui, sans-serif; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.fx p { text-align: left; margin: 0; }
.fx h1, .fx h2, .fx h3, .fx h4 { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.015em; margin: 0; color: var(--fx-ink); text-wrap: balance; }
.fx :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fx .hidden { display: none !important; }
.fx-ic { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.fx-ic svg { width: 100%; height: 100%; display: block; }
.fx-num { font-variant-numeric: tabular-nums; }
.fx-muted { color: var(--fx-ink-3); font-size: 12.5px; }
.fx-sub { color: var(--fx-ink-2); font-size: 14px; }

/* ---------- Shell da área do vendedor ---------- */
.fx-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.fx-side { background: linear-gradient(180deg, var(--fx-navy) 0%, #0A3570 70%, var(--sidebar-bg-bottom) 130%); color: var(--sidebar-text); padding: 24px 16px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.fx-side .brand { padding: 0 10px; display: flex; flex-direction: column; gap: 6px; }
.fx-side .brand .brand-wordmark .brand-base { color: #fff; }
.fx-side .brand .brand-wordmark .brand-nex { color: var(--lime); }
.fx-side .brand small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sidebar-text-faint); }
.fx-nav { display: flex; flex-direction: column; gap: 2px; }
.fx-nav-label { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--sidebar-text-faint); padding: 0 12px 8px; }
.fx-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--sidebar-text-muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.fx-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.fx-nav a.on { background: #fff; color: var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.fx-nav a .fx-ic { width: 17px; height: 17px; }
.fx-side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 10px 0; display: flex; align-items: center; gap: 10px; }
.fx-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #fff, #CFE6FF); color: var(--fx-navy); display: flex; align-items: center; justify-content: center; font: 700 13px 'Space Grotesk', sans-serif; flex-shrink: 0; }
.fx-side-foot .who { min-width: 0; flex: 1; }
.fx-side-foot .who b { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-side-foot .who span { display: block; font-size: 11.5px; color: var(--sidebar-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-side-foot button { color: var(--sidebar-text-muted); padding: 6px; border-radius: 8px; }
.fx-side-foot button:hover { background: rgba(255,255,255,.08); color: #fff; }

.fx-body { min-width: 0; display: flex; flex-direction: column; }
.fx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 34px 40px 0; }
.fx-head .eyebrow-x { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.fx-head h1 { font-size: 28px; line-height: 1.15; }
.fx-head p { margin-top: 6px; color: var(--fx-ink-2); max-width: 62ch; }
.fx-main { padding: 26px 40px 70px; display: flex; flex-direction: column; gap: 22px; max-width: 1240px; width: 100%; }

@media (max-width: 640px) { .fx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .fx-stat { padding: 14px; } .fx-stat .val { font-size: 21px; } }
@media (max-width: 960px) {
  .fx-shell { grid-template-columns: 1fr; }
  .fx-side { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; align-items: center; padding: 10px max(16px, env(safe-area-inset-left, 0px)); gap: 12px; overflow-x: auto; }
  .fx-side .brand small, .fx-nav-label, .fx-side-foot .who { display: none; }
  .fx-side .brand .brand-wordmark { font-size: 21px !important; }
  .fx-nav { flex-direction: row; gap: 4px; }
  .fx-nav a { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .fx-side-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .fx-head { padding: 24px 16px 0; }
  .fx-main { padding: 20px 16px 60px; }
}

/* ---------- Botões ---------- */
.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font: 600 13.5px 'Manrope', sans-serif; border: 1px solid var(--fx-line); background: #fff; color: var(--fx-ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.fx-btn:hover { border-color: #C9D5E6; background: var(--fx-soft); }
.fx-btn:active { transform: translateY(1px); }
.fx-btn:disabled { opacity: .55; cursor: not-allowed; }
.fx-btn .fx-ic { width: 16px; height: 16px; }
.fx-btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(8,102,217,.55); }
.fx-btn-primary:hover { background: linear-gradient(135deg, #2995FF, #075BC2); border-color: transparent; }
.fx-btn-lime { background: var(--lime); color: #2C3A00; border-color: transparent; box-shadow: 0 8px 22px -10px rgba(140,190,0,.8); }
.fx-btn-lime:hover { background: #C5F52E; border-color: transparent; }
.fx-btn-ghost { background: transparent; border-color: transparent; color: var(--fx-ink-2); }
.fx-btn-ghost:hover { background: var(--fx-line-2); }
.fx-btn-danger { color: #B42318; }
.fx-btn-sm { padding: 7px 11px; font-size: 12.5px; border-radius: 8px; }
.fx-btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.fx-btn-block { width: 100%; }
.fx-icon-btn { width: 34px; height: 34px; padding: 0; border-radius: 9px; }

/* ---------- Cartões ---------- */
.fx-card { background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); box-shadow: var(--fx-shadow); }
.fx-card-pad { padding: 22px 24px; }
.fx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--fx-line-2); }
.fx-card-head h2 { font-size: 17px; }
.fx-card-head p { font-size: 13px; color: var(--fx-ink-3); margin-top: 2px; }
.fx-card-body { padding: 20px 24px; }
@media (max-width: 640px) { .fx-card-pad, .fx-card-body { padding: 18px; } .fx-card-head { padding: 16px 18px; } }

/* ---------- Métricas ---------- */
.fx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.fx-stat { background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--fx-shadow); }
.fx-stat .top { display: flex; align-items: center; justify-content: space-between; color: var(--fx-ink-3); font-size: 12.5px; font-weight: 600; }
.fx-stat .chip-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--accent-bg); color: var(--accent); }
.fx-stat .chip-ic.lime { background: var(--lime-bg); color: var(--lime-text); }
.fx-stat .chip-ic.amber { background: var(--amber-bg); color: var(--amber); }
.fx-stat .val { font: 600 26px/1.1 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fx-stat .foot { font-size: 12px; color: var(--fx-ink-3); }

/* ---------- Pílulas de status ---------- */
.fx-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.fx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fx-pill.ok { background: var(--fx-green-bg); color: var(--fx-green); }
.fx-pill.wait { background: var(--amber-bg); color: var(--amber); }
.fx-pill.bad { background: var(--red-bg); color: var(--red); }
.fx-pill.info { background: var(--accent-bg); color: var(--accent); }
.fx-pill.neutral { background: var(--fx-line-2); color: var(--fx-ink-2); }

/* ---------- Formulários ---------- */
.fx-form { display: flex; flex-direction: column; gap: 16px; }
.fx-grid { display: grid; gap: 14px; }
.fx-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx-grid .span2 { grid-column: span 2; }
@media (max-width: 720px) { .fx-grid.c2, .fx-grid.c3, .fx-grid.c4 { grid-template-columns: 1fr; } .fx-grid .span2 { grid-column: auto; } }
.fx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-field > label, .fx-label { font-size: 12.5px; font-weight: 600; color: var(--fx-ink-2); }
.fx-field .hint { font-size: 12px; color: var(--fx-ink-3); }
.fx input, .fx select, .fx textarea { font: 500 14px 'Manrope', sans-serif; color: var(--fx-ink); background: #fff; border: 1px solid #D5DEEA; border-radius: 10px; padding: 11px 12px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
.fx input:focus, .fx select:focus, .fx textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,102,217,.12); }
.fx input::placeholder { color: #A3AEC0; }
.fx input[type=checkbox], .fx input[type=radio] { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); flex-shrink: 0; }
.fx input[type=range] { padding: 0; border: 0; accent-color: var(--accent); box-shadow: none; }
.fx-input-group { display: flex; align-items: stretch; border: 1px solid #D5DEEA; border-radius: 10px; overflow: hidden; background: #fff; }
.fx-input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,102,217,.12); }
.fx-input-group span { display: flex; align-items: center; padding: 0 12px; background: var(--fx-soft); color: var(--fx-ink-3); font-weight: 600; font-size: 13px; border-right: 1px solid var(--fx-line); }
.fx-input-group input { border: 0; border-radius: 0; box-shadow: none !important; }
.fx-section-title { display: flex; align-items: center; gap: 10px; font: 600 14px 'Space Grotesk', sans-serif; color: var(--fx-ink); }
.fx-section-title .n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.fx-divider { height: 1px; background: var(--fx-line-2); border: 0; margin: 4px 0; }
.fx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--fx-ink-2); line-height: 1.5; cursor: pointer; }
.fx-check input { margin-top: 1px; }
.fx-check a { color: var(--accent); font-weight: 600; }
.fx-locked { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: var(--fx-soft); border: 1px dashed #C9D5E6; color: var(--fx-ink-2); font-size: 13px; }
.fx-locked b { font: 700 16px 'Space Grotesk', sans-serif; color: var(--fx-ink); }
.fx-locked .fx-ic { color: var(--fx-ink-3); }

/* Segmentado */
.fx-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fx-line-2); border-radius: 12px; padding: 4px; gap: 4px; width: 100%; }
.fx-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 9px; font: 600 13.5px 'Manrope', sans-serif; color: var(--fx-ink-2); background: transparent; border: 0; cursor: pointer; }
.fx-seg button.on { background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(15,27,45,.1); }

/* Opção em cartão (tipo de conta, forma de pagamento) */
.fx-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.fx-option { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 12px; border: 1.5px solid var(--fx-line); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; font-family: 'Manrope', sans-serif; }
.fx-option:hover { border-color: #C9D5E6; }
.fx-option.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,102,217,.12); }
.fx-option .oi { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fx-option b { display: block; font-size: 14px; color: var(--fx-ink); }
.fx-option span { display: block; font-size: 12.5px; color: var(--fx-ink-3); margin-top: 2px; line-height: 1.4; }

/* ---------- Divisão do valor ---------- */
.fx-split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--fx-line-2); gap: 2px; }
.fx-split div { transition: flex-basis .25s; min-width: 0; }
.fx-split .p { background: var(--accent); }
.fx-split .c { background: var(--fx-amber); }
.fx-split .f { background: var(--lime); }
.fx-split-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-split-legend div { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.fx-split-legend small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fx-ink-3); font-weight: 600; }
.fx-split-legend small i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.fx-split-legend b { font: 600 19px 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.fx-split-legend em { font-style: normal; font-size: 12px; color: var(--fx-ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Listas, tabelas ---------- */
.fx-rows { display: flex; flex-direction: column; }
.fx-row { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--fx-line-2); flex-wrap: wrap; }
.fx-row:last-child { border-bottom: 0; }
.fx-row .grow { flex: 1 1 220px; min-width: 0; }
.fx-row h3 { font-size: 15px; }
.fx-row .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--fx-ink-3); margin-top: 3px; }
.fx-row .meta span { display: inline-flex; align-items: center; gap: 5px; }
.fx-row .meta .fx-ic { width: 14px; height: 14px; }
.fx-row .acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .fx-row { padding: 14px 18px; } }
.fx-table-wrap { overflow-x: auto; }
.fx-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 13.5px; }
.fx-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-ink-3); padding: 12px 16px; background: var(--fx-soft); border-bottom: 1px solid var(--fx-line); white-space: nowrap; }
.fx-table td { padding: 13px 16px; border-bottom: 1px solid var(--fx-line-2); vertical-align: middle; }
.fx-table tr:last-child td { border-bottom: 0; }
.fx-table tbody tr:hover td { background: #FAFCFF; }
.fx-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.fx-table .strong { font-weight: 700; color: var(--fx-ink); }
.fx-table td small { display: block; color: var(--fx-ink-3); font-size: 12px; }
.fx-mini-input { width: 84px !important; padding: 7px 9px !important; font-size: 13px !important; }

/* ---------- Estado vazio ---------- */
.fx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 38px 20px; color: var(--fx-ink-3); }
.fx-empty .ei { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.fx-empty .ei .fx-ic { width: 24px; height: 24px; }
.fx-empty b { color: var(--fx-ink); font-size: 15px; font-family: 'Space Grotesk', sans-serif; }
.fx-empty p { max-width: 42ch; text-align: center !important; font-size: 13.5px; }

/* ---------- Cartões de evento ---------- */
.fx-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; padding: 20px 24px 24px; }
@media (max-width: 640px) { .fx-events { padding: 16px; } }
.fx-event { border: 1px solid var(--fx-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: box-shadow .2s, transform .2s; }
.fx-event:hover { box-shadow: var(--fx-shadow-lg); transform: translateY(-2px); }
.fx-event .cover { position: relative; height: 112px; background: linear-gradient(135deg, var(--fx-navy), var(--fx-navy-2) 60%, var(--accent)); color: #fff; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.fx-event .cover::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(183,240,0,.18); }
.fx-event .cover .fx-pill { align-self: flex-start; position: relative; z-index: 1; }
.fx-event .cover .fx-pill.ok { background: rgba(183,240,0,.95); color: #2C3A00; }
.fx-event .cover .fx-pill.wait { background: rgba(255,255,255,.16); color: #fff; }
.fx-event .cover h3 { color: #fff; font-size: 17px; position: relative; z-index: 1; }
.fx-event .info { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.fx-event .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-event .facts div { background: var(--fx-soft); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.fx-event .facts small { display: block; font-size: 11px; color: var(--fx-ink-3); font-weight: 600; }
.fx-event .facts b { font: 600 14px 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-event .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.fx-event .acts .fx-btn { flex: 1 1 auto; }

/* ---------- Gaveta lateral (editor) ---------- */
.fx-drawer-bg { position: fixed; inset: 0; background: rgba(7,27,51,.45); backdrop-filter: blur(2px); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fx-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--bg); z-index: 90; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(7,27,51,.25); }
.fx-drawer:not(.open) { visibility: hidden; box-shadow: none; }
.fx-drawer.open { transform: none; }
.fx-drawer.open + .fx-drawer-bg, .fx-drawer-bg.open { opacity: 1; pointer-events: auto; }
.fx-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(18px + env(safe-area-inset-top, 0px)) 24px 18px; background: #fff; border-bottom: 1px solid var(--fx-line); }
.fx-drawer-head h2 { font-size: 19px; }
.fx-drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.fx-drawer-foot { padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--fx-line); display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 640px) { .fx-drawer-body { padding: 16px; } .fx-drawer-head, .fx-drawer-foot { padding-left: 16px; padding-right: 16px; } }

/* Abas */
.fx-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--fx-line); overflow-x: auto; }
.fx-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; font: 600 13.5px 'Manrope', sans-serif; color: var(--fx-ink-3); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.fx-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.fx-tabs .count { background: var(--fx-line-2); color: var(--fx-ink-2); font-size: 11px; padding: 1px 7px; border-radius: 999px; }

/* Faixas de preço */
.fx-tier { display: grid; justify-content: start; grid-template-columns: auto 90px auto 130px auto; align-items: center; gap: 8px; font-size: 13px; color: var(--fx-ink-2); }
@media (max-width: 520px) { .fx-tier { grid-template-columns: auto 1fr auto 1fr auto; } }

/* Faixa de aviso */
.fx-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--accent-bg); border: 1px solid var(--accent-border); color: #0A3D80; }
.fx-banner .fx-ic { color: var(--accent); margin-top: 1px; }
.fx-banner b { display: block; color: var(--fx-ink); font-size: 14px; }
.fx-banner.warn { background: var(--amber-bg); border-color: rgba(154,107,13,.25); color: #6B4A06; }
.fx-banner.warn .fx-ic { color: var(--amber); }
.fx-banner .grow { flex: 1; min-width: 0; }

/* Lista de convites / membros */
.fx-person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fx-line-2); }
.fx-person:last-child { border-bottom: 0; }
.fx-person .fx-avatar { background: var(--accent-bg); color: var(--accent); }
.fx-person .grow { flex: 1; min-width: 0; }
.fx-person b { display: block; font-size: 13.5px; }
.fx-person span { display: block; font-size: 12px; color: var(--fx-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Galeria ---------- */
.fx-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .fx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.fx-shot { position: relative; border-radius: 12px; overflow: hidden; background: #DDE5F0; aspect-ratio: 4 / 3; max-width: 100%; padding: 0; border: 0; cursor: pointer; display: block; width: 100%; isolation: isolate; }
.fx-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.fx-shot:hover img { transform: scale(1.04); }
.fx-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,27,51,0) 55%, rgba(7,27,51,.55)); opacity: .9; pointer-events: none; }
.fx-shot .tag { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(7,27,51,.6); backdrop-filter: blur(4px); padding: 4px 8px; border-radius: 7px; }
.fx-shot .tag .fx-ic { width: 13px; height: 13px; }
.fx-shot .sel { position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(7,27,51,.25); display: flex; align-items: center; justify-content: center; color: transparent; transition: background .15s; }
.fx-shot .sel .fx-ic { width: 15px; height: 15px; }
.fx-shot.on { box-shadow: 0 0 0 3px var(--accent); }
.fx-shot.on .sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.fx-shot .zoom { position: absolute; top: 10px; left: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.92); color: var(--fx-ink); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.fx-shot:hover .zoom, .fx-shot:focus-within .zoom { opacity: 1; }
.fx-shot .zoom .fx-ic { width: 15px; height: 15px; }
.fx-shot-act { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* Lightbox */
.fx-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4,12,24,.92); display: flex; align-items: center; justify-content: center; padding: 60px 16px; }
.fx-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.fx-lightbox .close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.fx-lightbox .bar { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }

/* ---------- Upload ---------- */
.fx-drop { border: 2px dashed #B9D3F5; background: linear-gradient(180deg, #F4F9FF, #EAF3FF); border-radius: 18px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.fx-drop:hover, .fx-drop.over { border-color: var(--accent); background: #E3EFFF; }
.fx-drop .di { width: 60px; height: 60px; border-radius: 18px; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--fx-shadow); }
.fx-drop .di .fx-ic { width: 28px; height: 28px; }
.fx-drop b { font: 600 17px 'Space Grotesk', sans-serif; color: var(--fx-ink); }
.fx-drop p { color: var(--fx-ink-3); font-size: 13px; text-align: center !important; max-width: 52ch; }
.fx-formats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fx-formats span { font-size: 11px; font-weight: 700; color: var(--fx-ink-2); background: #fff; border: 1px solid var(--fx-line); padding: 3px 8px; border-radius: 6px; }
.fx-progress { height: 8px; border-radius: 999px; background: var(--fx-line-2); overflow: hidden; }
.fx-progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; transition: width .25s; }

/* ---------- Toast ---------- */
.fx-toast { position: fixed; z-index: 120; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; background: var(--fx-navy); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500; box-shadow: 0 16px 40px rgba(7,27,51,.35); max-width: calc(100vw - 32px); animation: fxIn .25s ease; }
.fx-toast .fx-ic { color: var(--lime); }
.fx-toast.erro { background: #B42318; }
.fx-toast.erro .fx-ic { color: #fff; }
.fx-toast.sai { opacity: 0; transition: opacity .35s; }
@keyframes fxIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Carregando */
.fx-skel { background: linear-gradient(90deg, #E8EEF6 0%, #F3F7FC 50%, #E8EEF6 100%); background-size: 200% 100%; animation: fxSk 1.2s infinite; border-radius: 12px; }
@keyframes fxSk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Páginas públicas (loja, pedido) ---------- */
.fx-topbar { background: #fff; border-bottom: 1px solid var(--fx-line); }
.fx-topbar-in { max-width: 1200px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fx-topbar .secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fx-ink-3); font-weight: 600; }
.fx-topbar .secure .fx-ic { width: 15px; height: 15px; color: var(--fx-green); }
.fx-wrap { max-width: 1200px; margin: 0 auto; width: 100%; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.fx-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 400px at 85% -20%, rgba(22,139,255,.45), transparent 60%), linear-gradient(160deg, var(--fx-navy) 0%, #0A2D5C 60%, #0B3F82 100%); color: #fff; }
.fx-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%); pointer-events: none; }
.fx-hero .fx-wrap { position: relative; padding-block: 44px 40px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: end; }
@media (max-width: 860px) { .fx-hero .fx-wrap { grid-template-columns: 1fr; padding-block: 30px; gap: 22px; } }
.fx-hero .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.fx-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.05; margin: 12px 0 14px; }
.fx-hero .meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--sidebar-text-muted); font-size: 14px; }
.fx-hero .meta span { display: inline-flex; align-items: center; gap: 7px; }
.fx-hero .meta .fx-ic { width: 16px; height: 16px; color: #8FB8EE; }
.fx-price-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.fx-price-card .ttl { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--sidebar-text-muted); }
.fx-price-line span { display: inline-flex; align-items: center; gap: 8px; }
.fx-price-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--sidebar-text); font-size: 14px; }
.fx-price-line b { font: 600 20px 'Space Grotesk', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.fx-price-line.tier { font-size: 13px; color: var(--lime); }
.fx-price-line.tier b { font-size: 15px; color: var(--lime); }

.fx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: -22px; position: relative; z-index: 2; }
@media (max-width: 760px) {
  .fx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .fx-steps .fx-step { flex-direction: column; text-align: center; gap: 8px; padding: 12px 8px; }
  .fx-steps .fx-step b { font-size: 12px; line-height: 1.3; }
  .fx-steps .fx-step div span { display: none; }
  .fx-filters-in .fx-search { flex: 1 1 100%; }
}
.fx-step { background: #fff; border: 1px solid var(--fx-line); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--fx-shadow); }
.fx-step .si { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fx-step b { display: block; font-size: 14px; }
.fx-step span { display: block; font-size: 12.5px; color: var(--fx-ink-3); }

.fx-filters { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(243,247,252,.92); backdrop-filter: blur(10px); padding-block: 14px; border-bottom: 1px solid transparent; }
.fx-filters.stuck { border-bottom-color: var(--fx-line); }
.fx-filters-in { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fx-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 320px; min-width: 0; }
.fx-chips::-webkit-scrollbar { display: none; }
.fx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--fx-line); background: #fff; color: var(--fx-ink-2); font: 600 13px 'Manrope', sans-serif; white-space: nowrap; cursor: pointer; }
.fx-chip.on { background: var(--fx-navy); border-color: var(--fx-navy); color: #fff; }
.fx-search { position: relative; flex: 0 1 280px; min-width: 200px; }
.fx-search .fx-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--fx-ink-3); }
.fx-search input { padding-left: 36px; border-radius: 999px; }

/* Carrinho */
.fx-cart { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; width: min(760px, calc(100% - 32px)); background: var(--fx-navy); color: #fff; border-radius: 18px; padding: 12px 12px 12px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 24px 60px -12px rgba(7,27,51,.6); animation: fxUp .3s ease; }
@keyframes fxUp { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.fx-cart .thumbs { display: flex; }
.fx-cart .thumbs img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; border: 2px solid var(--fx-navy); margin-left: -12px; }
.fx-cart .thumbs img:first-child { margin-left: 0; }
.fx-cart .txt { flex: 1; min-width: 0; }
.fx-cart .txt small { display: block; font-size: 12px; color: var(--sidebar-text-muted); }
.fx-cart .txt strong { font: 600 20px 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.fx-cart .txt .save { display: block; color: var(--lime); font-size: 12px; font-weight: 700; }
@media (max-width: 520px) { .fx-cart .thumbs { display: none; } .fx-cart { padding-left: 14px; } }

/* Checkout */
.fx-checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; padding-block: 28px 60px; }
@media (max-width: 900px) { .fx-checkout { grid-template-columns: 1fr; } }
.fx-summary { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); }
.fx-summary .items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fx-summary .items img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.fx-summary .more { aspect-ratio: 1; border-radius: 8px; background: var(--fx-line-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--fx-ink-2); font-size: 13px; }
.fx-lines { display: flex; flex-direction: column; gap: 10px; }
.fx-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--fx-ink-2); }
.fx-line b { color: var(--fx-ink); font-variant-numeric: tabular-nums; }
.fx-line.save b { color: var(--fx-green); }
.fx-line.total { padding-top: 12px; border-top: 1px solid var(--fx-line); align-items: baseline; }
.fx-line.total span { font-weight: 700; color: var(--fx-ink); font-size: 14px; }
.fx-line.total b { font: 600 26px 'Space Grotesk', sans-serif; }
.fx-trust { display: flex; flex-direction: column; gap: 10px; }
.fx-trust div { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--fx-ink-2); }
.fx-trust .fx-ic { width: 16px; height: 16px; color: var(--fx-green); margin-top: 1px; }

.fx-suggest { border: 1px solid var(--fx-line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--fx-shadow); }
.fx-suggest button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--fx-line-2); background: #fff; text-align: left; cursor: pointer; font-family: 'Manrope', sans-serif; }
.fx-suggest button:last-child { border-bottom: 0; }
.fx-suggest button:hover { background: var(--accent-bg); }
.fx-suggest img, .fx-suggest .ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--accent-bg); flex-shrink: 0; }
.fx-suggest b { display: block; font-size: 13.5px; color: var(--fx-ink); }
.fx-suggest small { display: block; font-size: 12px; color: var(--fx-ink-3); }
.fx-athlete-ok { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--fx-green-bg); color: #05603A; font-size: 13px; font-weight: 600; }

/* Pedido */
.fx-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.fx-tl { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; padding: 0 6px; }
.fx-tl::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--fx-line); z-index: 0; }
.fx-tl:first-child::before { display: none; }
.fx-tl.done::before, .fx-tl.now::before { background: var(--accent); }
.fx-tl .dot { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--fx-line); display: flex; align-items: center; justify-content: center; z-index: 1; color: var(--fx-ink-3); }
.fx-tl.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.fx-tl.now .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(8,102,217,.12); }
.fx-tl b { font-size: 13px; }
.fx-tl span { font-size: 12px; color: var(--fx-ink-3); }
.fx-pix { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: center; }
@media (max-width: 680px) { .fx-pix { grid-template-columns: 1fr; justify-items: center; } }
.fx-qr { width: 240px; max-width: 100%; aspect-ratio: 1; border-radius: 16px; border: 1px solid var(--fx-line); background: #fff; padding: 10px; }
.fx-qr img { width: 100%; height: 100%; display: block; }
.fx-code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--fx-ink-2); background: var(--fx-soft); border: 1px solid var(--fx-line); border-radius: 10px; padding: 12px; word-break: break-all; max-height: 92px; overflow: auto; }
.fx-howto { display: flex; flex-direction: column; gap: 8px; counter-reset: h; padding: 0; margin: 0; list-style: none; }
.fx-howto li { counter-increment: h; display: flex; gap: 10px; font-size: 13.5px; color: var(--fx-ink-2); }
.fx-howto li::before { content: counter(h); width: 22px; height: 22px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fx-wait { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--amber); font-weight: 600; }
.fx-wait i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: fxPulse 1.4s infinite; }
@keyframes fxPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.fx-success { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg, #0E9F6E, #0B7F58); color: #fff; }
.fx-success .si { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fx-success b { font: 600 18px 'Space Grotesk', sans-serif; display: block; }
.fx-success span { font-size: 13.5px; opacity: .9; }

/* Login dividido */
.fx-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .fx-auth { grid-template-columns: 1fr; } .fx-auth-art { display: none !important; } }
.fx-auth-art { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 100% 0%, rgba(22,139,255,.5), transparent 60%), linear-gradient(160deg, var(--fx-navy), #0A2D5C 55%, #0B3F82); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.fx-auth-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(200deg, rgba(0,0,0,.7), transparent 75%); }
.fx-auth-art > * { position: relative; }
.fx-auth-art h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; max-width: 16ch; }
.fx-auth-art h2 em { font-style: normal; color: var(--lime); }
.fx-auth-art p { color: var(--sidebar-text-muted); font-size: 15px; max-width: 44ch; margin-top: 14px !important; }
.fx-benefits { display: flex; flex-direction: column; gap: 14px; }
.fx-benefits > div { display: flex; gap: 12px; align-items: flex-start; }
.fx-benefits .bi { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--lime); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fx-benefits b { display: block; font-size: 14px; color: #fff; }
.fx-benefits span { display: block; font-size: 13px; color: var(--sidebar-text-muted); }
.fx-mock-split { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 16px; max-width: 420px; }
.fx-mock-split .fx-split { background: rgba(255,255,255,.12); }
.fx-mock-split .fx-split-legend b { color: #fff; font-size: 16px; }
.fx-mock-split .fx-split-legend small { color: var(--sidebar-text-muted); }
.fx-auth-form { display: flex; align-items: center; justify-content: center; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); background: #fff; }
.fx-auth-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.fx-auth-box h1 { font-size: 28px; }
.fx-msg { font-size: 13px; padding: 11px 13px; border-radius: 10px; display: flex; gap: 8px; align-items: flex-start; }
.fx-msg.err { background: var(--red-bg); color: var(--red); }
.fx-msg.ok { background: var(--fx-green-bg); color: #05603A; }

/* Documento */
.fx-doc { max-width: 760px; margin: 0 auto; padding-block: 36px 70px; display: flex; flex-direction: column; gap: 18px; }
.fx-doc h2 { font-size: 17px; margin-top: 14px; display: flex; gap: 10px; align-items: baseline; }
.fx-doc h2 span { color: var(--accent); font-size: 14px; }
.fx-doc p { color: var(--fx-ink-2); font-size: 15px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .fx *, .fx *::before, .fx *::after { animation: none !important; transition: none !important; }
}
