/* ═══════════════════════════════════════════════════════════
   Recife Girls Club — Design System
   app.css v1.0
   Copiar para: wwwroot/css/app.css no projeto MAUI Blazor
   ═══════════════════════════════════════════════════════════ */

/* ── Loading oficial (componente <Carregando>) — só a logo, sem fundo (fica sobre a tela) ── */
@keyframes rgcLoadStar { 0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); } 50% { opacity: .35; transform: scale(.72) rotate(20deg); } }
@keyframes rgcLoadFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.rgc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58vh;
  padding: 32px;
}
.rgc-loading-logo {
  position: relative;
  animation: rgcLoadFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .12));
}
.rgc-loading-logo img { width: 168px; max-width: 58vw; height: auto; display: block; }
.rgc-loading-star { position: absolute; color: #b4b536; text-shadow: 0 0 3px #fff, 0 0 3px #fff; pointer-events: none; }
.rgc-loading-star.s1 { top: -10px; right: 16px; font-size: 26px; animation: rgcLoadStar 2.5s ease-in-out infinite; }
.rgc-loading-star.s2 { top: 20px; right: -10px; font-size: 15px; animation: rgcLoadStar 3.5s ease-in-out infinite 1.2s; }
.rgc-loading-star.s3 { top: 2px; left: -8px; font-size: 19px; animation: rgcLoadStar 4s ease-in-out infinite .6s; }
.rgc-loading-txt { color: var(--color-text-muted); font-family: var(--font-body); font-size: 14px; letter-spacing: .04em; }

@import url('https://api.fontshare.com/v2/css?f[]=larken@300,400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');


/* ──────────────────────────────────────────
   TOKENS — variáveis globais
   ────────────────────────────────────────── */
:root {

  /* Cores da marca */
  --color-lavender:       #ddb1f7;
  --color-orange:         #ff6e1f;
  --color-olive:          #b4b536;
  --color-slate:          #8499b7;
  --color-cream:          #f6f2e3;

  /* Semânticas */
  --color-text:           #2b2318;
  --color-text-secondary: #6b5f50;
  --color-text-muted:     #8499b7;
  --color-surface:        #ffffff;
  --color-background:     #f6f2e3;
  --color-lavender-light: #f5ecff;
  --color-orange-light:   #fff3ec;
  --color-danger:         #e8473f;
  --color-disabled-bg:    #e8e4da;
  --color-disabled-text:  #b0a898;
  --color-border:         rgba(132, 153, 183, 0.25);

  /* Espaçamento */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   12px;
  --space-base: 16px;
  --space-20:   20px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-40:   40px;
  --space-2xl:  48px;
  --space-3xl:  64px;

  /* Border radius */
  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius-input: 12px;
  --radius-card:  16px;
  --radius-modal: 20px;
  --radius-full:  9999px;

  /* Sombras */
  --shadow-card:          0 2px 12px rgba(0,0,0,0.08);
  --shadow-card-elevated: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-btn-primary:   0 4px 16px rgba(255,110,31,0.35);
  --shadow-btn-lavender:  0 4px 12px rgba(221,177,247,0.4);
  --shadow-bottom-nav:    0 -2px 16px rgba(0,0,0,0.06);
  --shadow-fab:           0 4px 16px rgba(255,110,31,0.4);

  /* Tipografia */
  --font-display: 'Larken', serif;
  --font-body:    'Roboto', sans-serif;
}


/* ──────────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-orange);
  text-decoration: none;
}
a:hover {
  color: #c45500;
  text-decoration: underline;
}

img { display: block; max-width: 100%; }

input, textarea, button, select {
  font-family: var(--font-body);
  font-size: inherit;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--color-lavender); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }


/* ──────────────────────────────────────────
   TIPOGRAFIA
   ────────────────────────────────────────── */
.text-display {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}
.text-h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
.text-h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
}
.text-h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}
.text-h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
}
.text-body-lg  { font-size: 17px; font-weight: 400; line-height: 1.6; }
.text-body     { font-size: 15px; font-weight: 400; line-height: 1.55; }
.text-body-md  { font-size: 15px; font-weight: 500; }
.text-body-sm  { font-size: 13px; font-weight: 400; color: var(--color-text-secondary); }
.text-caption  { font-size: 12px; font-weight: 400; color: var(--color-text-muted); }
.text-label    { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

.text-primary   { color: var(--color-text); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-orange    { color: var(--color-orange); }
.text-lavender  { color: var(--color-lavender); }
.text-danger    { color: var(--color-danger); }
.text-white     { color: #fff; }


/* ──────────────────────────────────────────
   BOTÕES
   ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[disabled] {
  background: var(--color-disabled-bg) !important;
  color: var(--color-disabled-text) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none;
}

/* Tamanhos */
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 17px 36px; font-size: 17px; }
.btn-icon {
  padding: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.btn-icon-sm {
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.btn-full { width: 100%; }

/* Variantes */
.btn-primary {
  background: var(--color-orange);
  color: #fff;
  box-shadow: var(--shadow-btn-primary);
}
.btn-primary:hover { opacity: 0.92; }

.btn-secondary {
  background: var(--color-lavender);
  color: var(--color-text);
  box-shadow: var(--shadow-btn-lavender);
}
.btn-secondary:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: var(--color-orange);
  border: 1.5px solid var(--color-orange);
  padding: 13px 27px;
}
.btn-outline:hover { background: var(--color-orange-light); }

.btn-soft {
  background: var(--color-lavender-light);
  color: #9b59d6;
}
.btn-soft:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 14px 16px;
}
.btn-ghost:hover { color: var(--color-text-secondary); }

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}
.btn-danger:hover { opacity: 0.9; }

.btn-danger-outline {
  background: transparent;
  color: var(--color-danger);
  border: 1.5px solid var(--color-danger);
  padding: 13px 27px;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  z-index: 100;
  transition: transform 0.15s;
}
.fab:active { transform: scale(0.94); }


/* ──────────────────────────────────────────
   CAMPOS / INPUTS
   ────────────────────────────────────────── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.input {
  width: 100%;
  background: var(--color-background);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--color-text-muted); }
.input:focus {
  background: var(--color-surface);
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255,110,31,0.12);
}
.input.input-error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(232,71,63,0.10);
}
.input:disabled {
  background: var(--color-disabled-bg);
  border-color: transparent;
  color: var(--color-disabled-text);
  cursor: not-allowed;
}

.input-error-msg {
  font-size: 12px;
  color: var(--color-danger);
  margin-top: 2px;
}

/* Search */
.input-search-wrapper {
  position: relative;
}
.input-search-wrapper .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.input-search {
  background: var(--color-background);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  padding: 13px 16px 13px 40px;
}
.input-search:focus {
  background: var(--color-surface);
  border-color: var(--color-orange);
}

/* Textarea */
textarea.input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Input com ícone à esquerda */
.input-icon-wrapper {
  position: relative;
}
.input-icon-wrapper .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.input-icon-wrapper .input {
  padding-left: 40px;
}

/* Toggle / Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--color-disabled-bg);
  border-radius: 50px;
  transition: background 0.2s;
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: left 0.2s;
}
.toggle input:checked ~ .toggle-track { background: var(--color-orange); }
.toggle input:checked ~ .toggle-thumb { left: 21px; }


/* ──────────────────────────────────────────
   AVATARES
   ────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: var(--color-lavender);
  color: var(--color-text);
  overflow: hidden;
  user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Avatar carregando a foto: skeleton pulsante (escala pra qualquer tamanho) */
.avatar-skeleton { background: var(--color-disabled-bg) !important; animation: avatar-pulse 1.1s ease-in-out infinite; }
@keyframes avatar-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Spinner genérico */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(132, 153, 183, 0.3);
  border-top-color: var(--color-orange);
  border-radius: 50%;
  animation: rgc-spin 0.7s linear infinite;
}
@keyframes rgc-spin { to { transform: rotate(360deg); } }

/* Tamanhos */
.avatar-xs { width: 28px;  height: 28px;  font-size: 11px; }
.avatar-sm { width: 36px;  height: 36px;  font-size: 13px; }
.avatar-md { width: 44px;  height: 44px;  font-size: 15px; }
.avatar-lg { width: 56px;  height: 56px;  font-size: 18px; }
.avatar-xl { width: 72px;  height: 72px;  font-size: 22px; }
.avatar-2xl{ width: 88px;  height: 88px;  font-size: 28px; }

/* Cores de fundo para avatares de iniciais */
.avatar-lavender { background: #ddb1f7; color: var(--color-text); }
.avatar-orange   { background: #ff6e1f; color: #fff; }
.avatar-olive    { background: #b4b536; color: #fff; }
.avatar-slate    { background: #8499b7; color: #fff; }

/* Ring de ativo */
.avatar-ring-orange  { outline: 2px solid var(--color-orange);   outline-offset: 2px; }
.avatar-ring-lavender{ outline: 2px solid var(--color-lavender);  outline-offset: 2px; }

/* Wrapper com status dot */
.avatar-wrapper {
  position: relative;
  display: inline-block;
}
.avatar-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
}
.avatar-status-online  { background: var(--color-olive); }
.avatar-status-offline { background: #c4c0b8; }

/* Avatares empilhados */
.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar-stack .avatar {
  border: 2px solid var(--color-surface);
  margin-left: -8px;
}
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
}


/* ──────────────────────────────────────────
   TAGS & CHIPS
   ────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.tag-sm { padding: 4px 10px; font-size: 11px; }

.tag-lavender  { background: var(--color-lavender-light); color: #9b59d6; }
.tag-orange    { background: var(--color-orange-light);   color: #d45800; }
.tag-olive     { background: rgba(180,181,54,0.12);       color: #5c5e00; }
.tag-slate     { background: rgba(132,153,183,0.12);      color: #4a5e72; }
.tag-selected  { background: var(--color-lavender); color: var(--color-text); font-weight: 700; }
.tag-default   { background: var(--color-background); color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* Dot dentro do chip de status */
.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tag-dot-orange  { background: var(--color-orange); }
.tag-dot-olive   { background: var(--color-olive); }
.tag-dot-slate   { background: var(--color-slate); }

/* Badge de notificação */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--color-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid var(--color-surface);
  line-height: 1;
}


/* ──────────────────────────────────────────
   CARDS
   ────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-elevated {
  box-shadow: var(--shadow-card-elevated);
  border-radius: var(--radius-modal);
}
.card-body { padding: var(--space-base); }
.card-body-lg { padding: var(--space-lg); }

/* Card de Grupo */
.group-card { width: 260px; }
.group-card-cover {
  height: 110px;
  background: linear-gradient(135deg, var(--color-lavender), var(--color-orange));
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}
.group-card-cover-status {
  background: rgba(255,255,255,0.92);
  color: var(--color-orange);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
}

/* Card de Evento */
.event-card-date {
  background: var(--color-orange);
  padding: 20px 16px;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-card-date-day {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.event-card-date-month {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Item de lista — membra */
.member-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  cursor: pointer;
}
.member-item:hover { background: var(--color-orange-light); }


/* ──────────────────────────────────────────
   CHAT / MENSAGENS
   ────────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-base);
  background: var(--color-background);
  flex: 1;
  overflow-y: auto;
}

/* Balão recebido */
.bubble-received {
  max-width: 78%;
  background: var(--color-surface);
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  line-height: 1.5;
}

/* Balão enviado */
.bubble-sent {
  max-width: 78%;
  background: var(--color-orange);
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
  align-self: flex-end;
  line-height: 1.5;
}

/* Wrapper de mensagem (avatar + bubble) */
.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.message-row-sent { justify-content: flex-end; }

.message-sender-name {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}
.message-timestamp {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* Separador de data */
.chat-date-separator {
  text-align: center;
  margin: 4px 0;
}
.chat-date-separator span {
  background: rgba(132,153,183,0.15);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11px;
}

/* Input de chat */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--color-surface);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.chat-input {
  flex: 1;
  background: var(--color-background);
  border: none;
  border-radius: var(--radius-full);
  padding: 11px 16px;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
}
.chat-input::placeholder { color: var(--color-text-muted); }
.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s;
}
.chat-send-btn:active { transform: scale(0.92); }

/* Item de lista de conversas */
.conversation-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(132,153,183,0.08);
  cursor: pointer;
  transition: background 0.1s;
}
.conversation-item:hover { background: var(--color-orange-light); }
.conversation-item:last-child { border-bottom: none; }
.conversation-preview { font-size: 13px; color: var(--color-text-muted); }
.conversation-preview.unread {
  color: var(--color-text-secondary);
  font-weight: 500;
}
.conversation-name.unread { font-weight: 700; }
.conversation-time { font-size: 11px; color: var(--color-text-muted); flex-shrink: 0; }
.conversation-time.unread { color: var(--color-orange); }


/* ──────────────────────────────────────────
   HEADER DE TELA
   ────────────────────────────────────────── */
.screen-header {
  background: var(--color-surface);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.screen-header-greeting {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
.screen-header-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}
.screen-header-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
.screen-header-action:hover { background: var(--color-orange-light); }

/* Header de chat (back + avatar + name) */
.chat-header {
  background: var(--color-surface);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.chat-header-back {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text-secondary);
  display: flex;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}
.chat-header-sub { font-size: 11px; color: var(--color-text-muted); }


/* ──────────────────────────────────────────
   NAVEGAÇÃO INFERIOR (BOTTOM NAV)
   ────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* Janela para a camada animada única (.app-shell::before).
     Véu um pouco mais opaco (labels pequenos + FAB precisam de contraste). */
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: saturate(1.8);
  backdrop-filter: saturate(1.8);
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 10px 16px env(safe-area-inset-bottom, 8px);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  box-shadow: var(--shadow-bottom-nav);
  z-index: 200;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.bottom-nav-icon-wrap {
  width: 40px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background 0.15s;
}
.bottom-nav-item.active .bottom-nav-icon-wrap {
  background: var(--color-orange-light);
}
.bottom-nav-icon {
  color: var(--color-text-muted);
  stroke: var(--color-text-muted);
  transition: color 0.15s, stroke 0.15s;
}
.bottom-nav-item.active .bottom-nav-icon {
  color: var(--color-orange);
  stroke: var(--color-orange);
}
.bottom-nav-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s;
}
.bottom-nav-item.active .bottom-nav-label {
  color: var(--color-orange);
  font-weight: 700;
}

/* FAB dentro do bottom nav */
.bottom-nav-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-fab);
  margin-top: -16px;
  flex-shrink: 0;
  transition: transform 0.1s;
}
.bottom-nav-fab:active { transform: scale(0.92); }

/* Espaço para não ficar atrás do bottom nav */
.page-content { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }


/* ──────────────────────────────────────────
   COVER / GRADIENTES (grupos e perfil)
   ────────────────────────────────────────── */
.cover-gradient-default { background: linear-gradient(135deg, #ddb1f7 0%, #ff6e1f 100%); }
.cover-gradient-profile { background: linear-gradient(160deg, #ddb1f7 0%, #ff6e1f 100%); }
.cover-gradient-green   { background: linear-gradient(135deg, #b4b536, #8499b7); }
.cover-gradient-inverse { background: linear-gradient(135deg, #ff6e1f, #ddb1f7); }


/* ──────────────────────────────────────────
   LAYOUT UTILITÁRIOS
   ────────────────────────────────────────── */
.screen {
  min-height: 100vh;
  background: var(--color-background);
  display: flex;
  flex-direction: column;
}
.container { padding: 0 var(--space-base); }
.container-lg { padding: 0 var(--space-20); }

/* Flex helpers */
.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.items-center{ align-items: center; }
.items-end   { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-1      { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-xs   { gap: var(--space-xs); }
.gap-sm   { gap: var(--space-sm); }
.gap-md   { gap: var(--space-md); }
.gap-base { gap: var(--space-base); }
.gap-lg   { gap: var(--space-lg); }

/* Scroll horizontal */
.scroll-x {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex-shrink: 0; }

/* Divider */
.divider {
  height: 1px;
  background: rgba(132,153,183,0.12);
  margin: var(--space-sm) 0;
}

/* Seção */
.section { margin-bottom: var(--space-xl); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

/* Overlay de fundo */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,35,24,0.5);
  backdrop-filter: blur(2px);
  z-index: 300;
}

/* Bottom sheet / Modal */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-radius: var(--radius-modal) var(--radius-modal) 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 400;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
}
.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin: 0 auto 20px;
}


/* ──────────────────────────────────────────
   ÍCONES (SVG inline helpers)
   Usar stroke-width: 2, color via currentColor
   Ativo: color: var(--color-orange)
   Inativo: color: var(--color-slate)
   ────────────────────────────────────────── */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-muted  { color: var(--color-text-muted); }
.icon-orange { color: var(--color-orange); }


/* ──────────────────────────────────────────
   ANIMAÇÕES
   ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up { animation: fadeInUp 0.25s ease forwards; }
.animate-fade-in    { animation: fadeIn 0.2s ease forwards; }
.animate-scale-in   { animation: scaleIn 0.2s ease forwards; }
