/* ============================================================
   Hub Sócias Club — identidade visual (Claude Design handoff)
   ============================================================ */
:root {
  --bg: #DED2C4;
  --cream: #F3EDE4;
  --offwhite: #F6F1E9;
  --white: #FFFFFF;
  --dark: #2E211B;
  --brown: #7A5240;
  --brown-2: #8B6350;
  --tan: #C9B49A;
  --tan-card: #E7DCCE;
  --tan-card-2: #E9E0D3;
  --wine: #6B2233;
  --wine-hover: #8E3346;
  --rose: #C9A2AC;
  --rose-soft: #F1E4E7;
  --accent-brown: #A8785E;
  --green: #4F6350;
  --text: #2E211B;
  --text-soft: #6B5B50;
  --text-muted: #9A8676;
  --sidebar-muted: #CDBCAC;
  --sidebar-label: #7A6355;
  --line: #EFE7DC;

  --r-lg: 26px;
  --r-md: 22px;
  --r-card: 18px;
  --r-sm: 16px;
  --r-nav: 13px;
  --shadow: 0 40px 80px -30px rgba(46, 33, 27, 0.35);
  --shadow-sm: 0 10px 30px -18px rgba(46, 33, 27, 0.5);
  --sans: 'Archivo', Helvetica, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--wine); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; }
.hidden { display: none !important; }

/* ---------------------------------------------- utilitários */
.eyebrow {
  font-size: 11px; letter-spacing: 0.2em; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
}
.h-title {
  font-family: var(--sans); font-weight: 800; line-height: 1;
  letter-spacing: -0.03em; text-transform: uppercase; color: var(--text);
  font-size: clamp(32px, 6vw, 46px); margin: 10px 0 0;
}

/* ============================================================ LOGIN */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--bg);
}
.auth-brand {
  background: var(--dark); color: var(--cream);
  padding: 56px 60px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand .logo { font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; }
.auth-brand .logo .serif { font-size: 30px; color: var(--rose); display: block; }
.auth-brand h1 {
  font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1.02;
  letter-spacing: -0.03em; text-transform: uppercase; margin: 0 0 18px;
}
.auth-brand p { color: #C6B4A4; font-size: 16px; max-width: 420px; line-height: 1.5; }
.auth-dots { display: flex; gap: 10px; }
.auth-dots span { width: 24px; height: 24px; border-radius: 50%; }
.auth-panel {
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-weight: 800; font-size: 30px; text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-card .sub { color: var(--text-soft); font-size: 15px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #D8C9B8;
  background: var(--white); font-size: 15px; color: var(--text); font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(107,34,51,0.12); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 22px; height: 48px; border-radius: 24px; font-size: 14px; font-weight: 700;
  background: var(--dark); color: var(--cream); transition: background .15s, transform .05s;
}
.btn:hover { background: #43302645; background: #241812; }
.btn:active { transform: translateY(1px); }
.btn-wine { background: var(--wine); color: #F6EDEA; }
.btn-wine:hover { background: var(--wine-hover); }
.btn-block { width: 100%; }
.btn-ghost { background: var(--tan-card); color: var(--text); }
.btn-ghost:hover { background: #DBCDBB; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; border-radius: 20px; }
.auth-switch { margin-top: 20px; font-size: 14px; color: var(--text-soft); text-align: center; }
.auth-switch a { font-weight: 700; cursor: pointer; }
.form-error { background: var(--rose-soft); color: var(--wine); padding: 11px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.form-note { font-size: 12px; color: var(--text-muted); margin-top: -8px; margin-bottom: 16px; }

/* ============================================================ APP SHELL */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--dark); display: flex; flex-direction: column;
  padding: 26px 18px; gap: 24px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 4px 10px; }
.sidebar .brand b { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--cream); line-height: 1.1; display: block; }
.sidebar .brand .serif { font-size: 22px; color: var(--rose); }
.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav .group { font-size: 10px; letter-spacing: 0.2em; color: var(--sidebar-label); font-weight: 700; padding: 15px 14px 5px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-nav);
  color: var(--sidebar-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.nav a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-brown); flex: none; }
.nav a .dot.sq { border-radius: 2px; }
.nav a .dot.di { border-radius: 2px; transform: rotate(45deg); }
.nav a .dot.j { width: 7px; height: 7px; background: #8A6E5C; }
.nav a:hover { background: rgba(243,237,228,0.07); color: var(--cream); }
.nav a.active { background: var(--wine); color: #F6EDEA; font-weight: 700; }
.nav a.active .dot { background: #F6EDEA; }
.side-profile {
  margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 15px; background: rgba(243,237,228,0.07); cursor: pointer;
}
.side-profile .av { width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover; background: repeating-linear-gradient(135deg,#7A5240 0 5px,#8B6350 5px 10px); }
.side-profile .nm { font-size: 13px; font-weight: 700; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-profile .rl { font-size: 11px; color: #9C8574; }

.main { padding: 34px 40px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* topbar mobile */
.topbar { display: none; }
.mobile-nav { display: none; }

/* ---------------------------------------------- page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .pill-tabs { display: flex; gap: 8px; background: var(--tan-card); padding: 6px; border-radius: var(--r-sm); flex-wrap: wrap; }
.pill-tabs .pt { padding: 9px 16px; border-radius: 12px; color: var(--text-soft); font-size: 13px; font-weight: 600; cursor: pointer; }
.pill-tabs .pt.active { background: var(--dark); color: var(--cream); font-weight: 700; }

/* ---------------------------------------------- cards genéricos */
.card { background: var(--white); border-radius: var(--r-md); padding: 26px 28px; }
.card.dark { background: var(--dark); color: var(--cream); }
.card.tan { background: var(--tan-card); }
.card.brown { background: var(--brown); color: var(--cream); }
.card.wine { background: var(--wine); color: #F6EDEA; }
.card-title { font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: -0.01em; color: var(--text); }
.card.dark .card-title, .card.brown .card-title, .card.wine .card-title { color: var(--cream); }
.link-more { font-size: 12px; font-weight: 700; color: var(--wine); cursor: pointer; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ============================================================ HOME */
.grid-home-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.journey { background: var(--dark); border-radius: var(--r-md); padding: 28px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.journey .big { font-weight: 800; font-size: clamp(40px, 6vw, 62px); line-height: 1; letter-spacing: -0.04em; color: var(--cream); margin-top: 10px; }
.journey .big .serif { font-size: 0.6em; color: var(--rose); letter-spacing: 0; }
.journey .pct { font-weight: 800; font-size: 30px; color: var(--rose); letter-spacing: -0.02em; text-align: right; }
.bar { height: 12px; border-radius: 6px; background: rgba(243,237,228,0.12); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--wine), #B8798A); transition: width .5s ease; }
.bar-legend { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; color: #9C8574; letter-spacing: 0.08em; }

.home-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.ring-card { background: var(--tan-card); border-radius: var(--r-md); padding: 22px 24px; display: flex; align-items: center; gap: 20px; }
.ring { width: 74px; height: 74px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.ring > i { width: 56px; height: 56px; border-radius: 50%; background: var(--tan-card); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: var(--text); font-style: normal; }
.rank-card { background: var(--brown); border-radius: var(--r-md); padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.rank-card .big { font-weight: 800; font-size: 36px; color: var(--cream); line-height: 1; letter-spacing: -0.03em; }
.rank-card .big .serif { font-size: 0.55em; letter-spacing: 0; }

.grid-home-bottom { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.announce { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-sm); background: var(--offwhite); }
.announce .adot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.announce .atitle { font-weight: 700; font-size: 14px; color: var(--text); }
.announce .abody { font-size: 13px; color: var(--text-soft); margin-top: 5px; }
.announce .ameta { font-size: 11px; color: var(--text-muted); margin-top: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.dot-wine { background: var(--wine); } .dot-brown { background: var(--accent-brown); } .dot-tan { background: var(--tan); } .dot-green { background: var(--green); }

/* próximas atividades (Home) */
.next-act { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--offwhite); cursor: pointer; transition: background .15s; }
.next-act:hover { background: #F0E7DA; }
.next-act .na-check { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #C9B49A; flex: none; margin-top: 1px; background: transparent; padding: 0; }
.next-act .na-check.act-done { cursor: pointer; transition: background .15s, border-color .15s; position: relative; }
.next-act .na-check.act-done:hover { background: var(--wine); border-color: var(--wine); }
.next-act .na-check.act-done:hover::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #F6EDEA; }
.next-act .na-body { font-size: 14px; line-height: 1.4; }
.next-act .na-title { font-weight: 700; color: var(--text); }
.next-act .na-pill { font-weight: 600; color: var(--text-muted); text-transform: uppercase; font-size: 12px; letter-spacing: 0.03em; }

/* linha "Próxima reunião" (largura total, abaixo da saudação) */
.next-meeting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.next-meeting-row .btn { flex: none; }

/* Guia do Flowe — grade de vídeos (Mentalizar) */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.video-card { display: flex; flex-direction: column; background: var(--offwhite); border-radius: var(--r-card); overflow: hidden; }
.video-thumb { aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, #DCCFBE 0 8px, #D2C3B0 8px 16px); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--brown); }
.video-info { padding: 14px 16px 4px; flex: 1; }
.video-title { font-weight: 700; font-size: 15px; color: var(--text); line-height: 1.3; }
.video-dur { font-size: 11px; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.video-desc { font-size: 13px; color: var(--text-soft); margin-top: 6px; }
.video-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 16px; }

/* grupos de WhatsApp (Movimentar) */
.wa-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-card); background: var(--white); text-decoration: none; cursor: pointer; transition: transform .1s; }
.wa-item:hover { transform: translateY(-1px); }
.rule-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.rule-list li { font-size: 14px; color: var(--text); line-height: 1.4; }

/* módulo do Método N.E.S.I. (link p/ Notion) */
.nesi-mod { transition: background .15s; }
.nesi-mod:hover { background: rgba(243, 237, 228, 0.13) !important; }

.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
a.shortcut { text-decoration: none; }
.shortcut { background: var(--white); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 26px; justify-content: space-between; min-height: 118px; cursor: pointer; transition: background .15s, transform .1s; }
.shortcut:hover { background: var(--tan-card); transform: translateY(-2px); }
.shortcut.wine { background: var(--wine); } .shortcut.wine:hover { background: var(--wine-hover); }
.shortcut .ic { width: 12px; height: 12px; background: var(--brown); }
.shortcut .ic.round { border-radius: 50%; } .shortcut .ic.di { transform: rotate(45deg); }
.shortcut .nm { font-weight: 800; font-size: 14px; color: var(--text); text-transform: uppercase; }
.shortcut .ds { font-size: 12px; color: var(--text-soft); }
.shortcut.wine .nm { color: #F6EDEA; } .shortcut.wine .ds { color: #E3C6CD; } .shortcut.wine .ic { background: #F6EDEA; }

/* ============================================================ KANBAN */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.kanban-4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kcol { background: var(--tan-card-2); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 200px; }
.kanban-4 .kcol { padding: 16px; }
.kempty { text-align: center; color: #B6A48F; font-size: 20px; padding: 8px; }

/* card: topo com tag + pontos */
.kc-toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kc-pts { flex: none; padding: 3px 9px; border-radius: 20px; background: var(--dark); color: var(--rose); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; }
.kc-actions-row { display: flex; gap: 8px; margin-top: 2px; }
.kbtn { flex: 1; padding: 9px; border-radius: 10px; font-size: 12px; font-weight: 700; transition: background .15s, transform .05s; }
.kbtn:active { transform: translateY(1px); }
.kbtn.wine { background: var(--wine); color: #F6EDEA; } .kbtn.wine:hover { background: var(--wine-hover); }
.kbtn.ghost { background: var(--offwhite); color: var(--text-soft); flex: 0 0 auto; padding: 9px 12px; } .kbtn.ghost:hover { background: var(--tan-card); }
.kc-reject { background: var(--rose-soft); color: var(--wine); font-size: 12px; font-weight: 600; padding: 9px 11px; border-radius: 10px; line-height: 1.35; }
.kcard.pending { border: 1.5px solid #E4CFA8; box-shadow: none; cursor: default; }
.kc-proof { display: block; border-radius: 10px; overflow: hidden; max-height: 130px; }
.kc-proof img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-pending-badge { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #A5741F; background: #F3E7CF; padding: 7px 10px; border-radius: 10px; text-align: center; }
.kcard.done { cursor: default; }
.kc-validated { flex: none; align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }

/* painel admin: validações */
.val-counter { padding: 5px 12px; border-radius: 20px; background: var(--tan-card); color: var(--text-soft); font-size: 12px; font-weight: 800; }
.val-counter.on { background: var(--wine); color: #F6EDEA; }
.val-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.val-card { background: var(--offwhite); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.val-socia { font-weight: 800; font-size: 15px; color: var(--text); }
.val-title { font-size: 13px; color: var(--text-soft); }
.val-proof { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--tan-card); }
.val-proof img { width: 100%; height: 100%; object-fit: cover; display: block; }
.val-noproof { aspect-ratio: 4/3; border-radius: 10px; background: var(--tan-card); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; }
.val-actions { display: flex; gap: 8px; }
.val-actions .btn { flex: 1; }

/* tabela de usuárias */
.utable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.utable th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.utable td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.utable tbody tr:last-child td { border-bottom: none; }
.utable tbody tr:hover { background: var(--offwhite); }
.utable tr.u-suspended { opacity: 0.55; }
.utable .link-more { font-size: 13px; }
.kcol.drop-hover { outline: 2px dashed var(--wine); outline-offset: -4px; }
.kcol-head { display: flex; align-items: center; justify-content: space-between; }
.kcol-head .lbl { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.kcol-head .cnt { font-size: 12px; font-weight: 700; color: #8A7767; }
.kcards { display: flex; flex-direction: column; gap: 12px; }
.kcard { background: var(--white); border-radius: var(--r-sm); padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: grab; position: relative; box-shadow: var(--shadow-sm); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: 0.4; }
.kcard.done { background: var(--offwhite); flex-direction: row; align-items: flex-start; gap: 12px; box-shadow: none; }
.kcard.done .kc-check { width: 18px; height: 18px; border-radius: 50%; background: var(--green); flex: none; margin-top: 2px; }
.kcard.done .kc-title { color: var(--text-soft); text-decoration: line-through; }
.tag { align-self: flex-start; padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.tag.empreender { background: var(--rose-soft); color: var(--wine); }
.tag.mentalizar { background: #EDE3D6; color: var(--brown); }
.tag.movimentar { background: #E4E7DE; color: var(--green); }
.tag.geral { background: #E7DCCE; color: var(--text-soft); }
.kc-title { font-weight: 700; font-size: 14px; color: var(--text); text-wrap: pretty; }
.kc-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.kc-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.kcard:hover .kc-actions { opacity: 1; }
.kc-actions button { width: 24px; height: 24px; border-radius: 8px; background: var(--offwhite); color: var(--text-soft); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.kc-actions button:hover { background: var(--tan-card); }
.kc-move { display: flex; gap: 6px; margin-top: 2px; }
.kc-move button { font-size: 16px; line-height: 1; color: var(--text-muted); padding: 2px 6px; border-radius: 8px; }
.kc-move button:hover { background: var(--offwhite); color: var(--text); }
.kadd { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px dashed #C0AE9B; color: var(--brown); font-size: 13px; font-weight: 700; cursor: pointer; }
.kadd:hover { background: rgba(255,255,255,0.5); }

/* ============================================================ listas / genérico */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.list-item { display: flex; gap: 16px; padding: 16px; border-radius: var(--r-card); background: var(--offwhite); align-items: center; }
.list-item .li-body { flex: 1; min-width: 0; }
.li-title { font-weight: 700; font-size: 15px; color: var(--text); }
.li-sub { font-size: 12px; color: var(--text-soft); margin-top: 5px; }
.chip { padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.chip.wine { background: var(--wine); color: #F6EDEA; }
.chip.tan { background: var(--tan-card); color: var(--text); }

/* selo de fase (Planejamento / Execução) */
.phase-tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.phase-plan { background: #EDE3D6; color: #7A5240; }
.phase-exec { background: var(--rose-soft); color: var(--wine); }

/* metas / progress simples */
.goal { margin-bottom: 14px; }
.goal .gh { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.bar-thin { height: 7px; border-radius: 4px; margin-top: 8px; overflow: hidden; }

/* countdown */
.count-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.count-box { width: 90px; height: 100px; border-radius: var(--r-card); background: rgba(243,237,228,0.08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.count-box.hot { background: var(--wine); }
.count-box b { font-weight: 800; font-size: 34px; color: var(--cream); letter-spacing: -0.03em; }
.count-box span { font-size: 10px; letter-spacing: 0.14em; color: #9C8574; }
.count-box.hot span { color: #E3C6CD; }

/* gym ranking table */
.rank-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r-card); background: var(--offwhite); }
.rank-row.me { background: var(--tan-card); outline: 2px solid var(--wine); }
.rank-row .pos { font-weight: 800; font-size: 20px; color: var(--wine); font-family: var(--sans); }
.rank-row .rav { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: repeating-linear-gradient(135deg,#7A5240 0 5px,#8B6350 5px 10px); }
.rank-row .rp { font-weight: 800; font-size: 18px; color: var(--text); }

/* photos */
.photo-slot { border-radius: var(--r-md); overflow: hidden; background: var(--tan-card); aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; position: relative; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .locked { text-align: center; color: var(--brown); font-size: 13px; font-weight: 700; padding: 20px; }
.photo-badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 20px; background: var(--dark); color: var(--cream); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

/* empty */
.empty { text-align: center; color: var(--text-muted); font-size: 14px; padding: 30px 10px; }

/* ============================================================ MODAL */
.modal-back { position: fixed; inset: 0; background: rgba(46,33,27,0.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: var(--cream); border-radius: var(--r-md); padding: 28px; width: 100%; max-width: 440px; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto; }
.modal h3 { font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 18px; }
.modal .field textarea, .modal .field select, .modal .field input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #D8C9B8; background: var(--white); font-size: 14px; font-family: inherit; color: var(--text);
}
.modal .field textarea { min-height: 80px; resize: vertical; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.seg { display: flex; gap: 8px; background: var(--tan-card); padding: 5px; border-radius: 12px; }
.seg button { flex: 1; padding: 9px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--text-soft); }
.seg button.active { background: var(--dark); color: var(--cream); }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--dark); color: var(--cream); padding: 13px 22px; border-radius: 24px; font-size: 14px; font-weight: 600; z-index: 100; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--wine); }

/* admin badge */
.badge-admin { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: var(--rose-soft); color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.spinner { width: 34px; height: 34px; border: 3px solid var(--tan); border-top-color: var(--wine); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ RESPONSIVO */
/* Kanban de 4 colunas vira 2 em telas médias */
@media (max-width: 1200px) and (min-width: 901px) {
  .kanban-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: var(--dark); color: var(--cream); position: sticky; top: 0; z-index: 30;
  }
  .topbar .brand b { font-weight: 800; font-size: 17px; text-transform: uppercase; color: var(--cream); }
  .topbar .brand .serif { color: var(--rose); }
  .topbar .tav { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: repeating-linear-gradient(135deg,#7A5240 0 5px,#8B6350 5px 10px); }
  .main { padding: 18px 16px 90px; gap: 16px; }
  .grid-home-top, .grid-home-bottom, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kanban, .kanban-4 { grid-template-columns: 1fr; }
  .home-side { grid-template-rows: auto auto; }
  .h-title { font-size: 34px; }
  .journey .big { font-size: 46px; }

  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: var(--dark); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around; border-top: 1px solid rgba(243,237,228,0.1);
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 8px; color: var(--sidebar-muted); font-size: 10px; font-weight: 700; cursor: pointer; border-radius: 10px; min-width: 52px; }
  .mobile-nav a .mi { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
  .mobile-nav a.active { color: var(--rose); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { padding: 40px 30px; min-height: 240px; }
}
@media (max-width: 480px) {
  .count-box { width: 74px; height: 88px; }
  .count-box b { font-size: 28px; }
  .shortcuts { grid-template-columns: 1fr 1fr; }
}
