/* ============================================================
   Safe to Live — Painel de Conteúdo
   Direção: editorial premium "command deck" · navy + dourado
   Fontes: Fraunces (display) · Plus Jakarta Sans (corpo)
   ============================================================ */

:root {
  --navy: #061b34;
  --navy-2: #0a2747;
  --navy-deep: #03101f;
  --ink: #0b1726;
  --gold: #bf8f2d;
  --gold-bright: #e0b54a;
  --gold-deep: #946f23;
  --cream: #f4efe6;
  --paper: #fbf9f4;
  --teal: #1aa088;
  --wine: #9a2b2b;

  --line: rgba(6, 27, 52, 0.12);
  --line-soft: rgba(6, 27, 52, 0.07);
  --gold-line: rgba(191, 143, 45, 0.35);
  --shadow: 0 24px 60px -32px rgba(6, 27, 52, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(6, 27, 52, 0.4);

  --display: "Fraunces", Georgia, serif;
  --ui: "Plus Jakarta Sans", system-ui, sans-serif;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea { font: inherit; }

/* ============================================================
   LOGIN
   ============================================================ */

.login-body { background: var(--navy-deep); min-height: 100vh; }

.login-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

/* ---- hero (escudo / proteção) ---- */
.login-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 38% 38%, var(--navy-2), var(--navy) 45%, var(--navy-deep) 100%);
  border-right: 1px solid var(--gold-line);
}
.hero-rings {
  position: absolute;
  inset: -20%;
  background: repeating-radial-gradient(circle at 40% 42%, transparent 0 46px, rgba(224, 181, 74, 0.11) 46px 47px);
  -webkit-mask: radial-gradient(circle at 40% 42%, #000 0%, transparent 62%);
  mask: radial-gradient(circle at 40% 42%, #000 0%, transparent 62%);
  animation: ringPulse 9s ease-in-out infinite;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 40% at 40% 40%, rgba(224, 181, 74, 0.22), transparent 70%),
    radial-gradient(60% 50% at 80% 90%, rgba(26, 160, 136, 0.12), transparent 70%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: clamp(36px, 5vw, 72px);
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: auto;
  animation: reveal 0.9s 0.05s both;
}
.hero-logo {
  width: clamp(54px, 5.5vw, 78px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(224, 181, 74, 0.5));
  animation: floaty 6s ease-in-out infinite;
}
.hero-word {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.01em;
  color: var(--cream);
}
.hero-kicker {
  margin: 0;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
  animation: reveal 0.9s 0.15s both;
}
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
  animation: reveal 0.9s 0.25s both;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 0;
  max-width: 38ch;
  color: rgba(244, 239, 230, 0.72);
  font-size: 16px;
  line-height: 1.6;
  animation: reveal 0.9s 0.35s both;
}

/* ---- painel do formulário ---- */
.login-panel {
  position: relative;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 40px clamp(24px, 5vw, 72px);
  background: var(--cream);
}
.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(80% 60% at 50% 40%, #000, transparent 78%);
  mask: radial-gradient(80% 60% at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.login-card {
  position: relative;
  width: min(420px, 86vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
  animation: reveal 0.8s 0.2s both;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 24px auto;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.card-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.card-title {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--navy);
}
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 23, 38, 0.6);
}
.field input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(191, 143, 45, 0.16);
}
.btn-primary {
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 24px -12px rgba(191, 143, 45, 0.7);
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 30px -12px rgba(191, 143, 45, 0.8); }
.btn-primary span { transition: transform 0.2s; display: inline-block; }
.btn-primary:hover span { transform: translateX(4px); }
.login-foot {
  text-align: center;
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(11, 23, 38, 0.45);
}
.msg-err {
  margin: 0 0 16px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(154, 43, 43, 0.08);
  border: 1px solid rgba(154, 43, 43, 0.25);
  color: var(--wine);
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================
   DASHBOARD (home)
   ============================================================ */

.app-body {
  background: radial-gradient(120% 80% at 100% 0%, rgba(191, 143, 45, 0.06), transparent 55%), var(--cream);
  background-attachment: fixed;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(6, 27, 52, 0.96);
  border-bottom: 1px solid var(--gold-line);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(224, 181, 74, 0.4)); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--cream); }
.brand-sub {
  font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-bright); align-self: center; padding-left: 12px; margin-left: 4px;
  border-left: 1px solid rgba(224, 181, 74, 0.35);
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.credits {
  font-size: 12px; letter-spacing: 0.04em; color: rgba(244, 239, 230, 0.7);
  padding: 7px 14px; border: 1px solid rgba(224, 181, 74, 0.3); border-radius: 999px;
}
.credits strong { color: var(--gold-bright); font-weight: 700; margin-left: 4px; }
.btn-logout {
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  padding: 8px 18px; border-radius: 999px; transition: transform 0.12s, filter 0.2s;
}
.btn-logout:hover { transform: translateY(-1px); filter: brightness(1.06); }

.app-main { max-width: 1240px; margin: 0 auto; padding: clamp(22px, 4vw, 40px); }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.stat {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: rise 0.6s both;
  animation-delay: calc(var(--i) * 0.08s);
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.stat.is-gold::before { background: var(--gold); }
.stat.is-teal::before { background: var(--teal); }
.stat.is-navy::before { background: var(--navy); }
.stat.is-wine::before { background: var(--wine); }
.stat-num { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4vw, 46px); line-height: 1; color: var(--navy); }
.stat-label { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(11, 23, 38, 0.55); }

/* ---- sections ---- */
.sec { margin-bottom: 38px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); color: var(--navy); white-space: nowrap; }
.sec-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); }
.sec-count { font-size: 12px; font-weight: 700; color: var(--gold-deep); background: rgba(191, 143, 45, 0.12); border-radius: 999px; padding: 3px 11px; }

.vazio { margin: 0; padding: 22px; border: 1px dashed var(--line); border-radius: 14px; color: rgba(11, 23, 38, 0.5); font-size: 14px; background: var(--paper); }

/* ---- post cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.25s;
  animation: rise 0.6s both;
  animation-delay: calc(var(--i) * 0.06s);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-media { background: var(--navy-deep); border-bottom: 1px solid var(--gold-line); aspect-ratio: 4 / 5; display: grid; place-items: center; }
.post-media .preview { width: 100%; height: 100%; object-fit: cover; display: block; }
.noart { color: rgba(244, 239, 230, 0.4); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

.post-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); background: rgba(191, 143, 45, 0.12);
  border: 1px solid rgba(191, 143, 45, 0.22); padding: 4px 10px; border-radius: 999px;
}
.post-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--navy); }

.caption-form { display: flex; flex-direction: column; gap: 8px; }
.caption {
  width: 100%; resize: vertical; min-height: 96px; padding: 12px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink);
  font-size: 13px; line-height: 1.5; transition: border-color 0.15s, box-shadow 0.15s;
}
.caption:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191, 143, 45, 0.14); }

.post-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.post-actions form { display: contents; }
.post-actions button { width: 100%; }

button.btn-approve, button.btn-reject, button.btn-ghost, button.btn-sm {
  cursor: pointer; border-radius: 10px; padding: 11px 12px;
  font-family: var(--ui); font-weight: 600; font-size: 13px;
  transition: transform 0.12s, filter 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-approve {
  border: 0; color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 10px 20px -12px rgba(191, 143, 45, 0.7);
}
.btn-approve:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-reject { border: 1px solid rgba(154, 43, 43, 0.4); background: transparent; color: var(--wine); }
.btn-reject:hover { background: rgba(154, 43, 43, 0.08); }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--navy); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-sm { align-self: flex-start; padding: 8px 14px; font-size: 12px; }

/* ---- rows ---- */
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row-thumb-link { display: block; flex: none; line-height: 0; }
.row-thumb {
  width: 48px; height: 60px; object-fit: cover; display: block;
  border-radius: 8px; border: 1px solid var(--gold-line); background: var(--navy-deep);
  transition: transform 0.12s;
}
.row-thumb-link:hover .row-thumb { transform: scale(1.05); }
.row-thumb-empty { border-style: dashed; }
.row-id { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold-deep); font-size: 13px; }
.row-fmt { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); background: rgba(6, 27, 52, 0.06); padding: 3px 9px; border-radius: 999px; }
.row-tema { flex: 1; min-width: 200px; color: var(--ink); font-size: 14px; }
.row-when {
  font-size: 12px; font-weight: 700; color: var(--navy);
  background: rgba(26, 160, 136, 0.12); border: 1px solid rgba(26, 160, 136, 0.3);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.row-when-wait { color: rgba(11, 23, 38, 0.5); background: rgba(6, 27, 52, 0.05); border-color: var(--line); font-weight: 600; }
.cadence { margin: -6px 0 14px; font-size: 13px; color: rgba(11, 23, 38, 0.7); }
.cadence strong { color: var(--gold-deep); }
.cadence-tz { color: rgba(11, 23, 38, 0.45); }
.row-link { color: var(--teal); font-weight: 600; font-size: 13px; text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.row-erro { color: var(--wine); font-size: 12px; }

/* ---- calendário do mês ---- */
.btn-cal {
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--cream);
  border: 1px solid rgba(224, 181, 74, 0.3); padding: 7px 14px; border-radius: 999px;
  transition: border-color 0.2s;
}
.btn-cal:hover { border-color: var(--gold-bright); }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 10px; }
.cal-title { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); color: var(--navy); text-transform: capitalize; margin: 0; }
.cal-nav { text-decoration: none; font-size: 20px; color: var(--gold-deep); width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.cal-nav:hover { border-color: var(--gold); }
.cal-legend { display: flex; gap: 16px; align-items: center; justify-content: center; font-size: 12px; color: rgba(11, 23, 38, 0.6); margin-bottom: 16px; }
.cal-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.cal-dot.cal-agendado { background: var(--teal); }
.cal-dot.cal-publicado { background: var(--gold); }
.cal-slotmark { width: 14px; height: 14px; border-radius: 4px; background: rgba(191, 143, 45, 0.1); border: 1px solid var(--gold-line); display: inline-block; margin-right: 4px; vertical-align: middle; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.cal-weekdays span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(11, 23, 38, 0.5); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-cell { min-height: 98px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.cal-out { opacity: 0.4; }
.cal-slot { border-color: var(--gold-line); background: rgba(191, 143, 45, 0.05); }
.cal-day { font-size: 12px; font-weight: 700; color: rgba(11, 23, 38, 0.55); }
.cal-item-link { text-decoration: none; }
.cal-item { display: block; font-size: 11px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--teal); background: rgba(26, 160, 136, 0.1); color: var(--navy); }
.cal-item.cal-publicado { border-left-color: var(--gold); background: rgba(191, 143, 45, 0.12); }
@media (max-width: 720px) { .cal-cell { min-height: 66px; } .cal-item { font-size: 9px; } }

/* ---- tendências / pauta de ideias ---- */
.trends-bar { margin: 0 0 20px; }
.btn-trends {
  cursor: pointer; width: 100%;
  border: 1px dashed var(--gold-line); background: rgba(191, 143, 45, 0.06); color: var(--gold-deep);
  border-radius: 12px; padding: 14px 18px;
  font-family: var(--ui); font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
}
.btn-trends:hover { background: rgba(191, 143, 45, 0.12); border-color: var(--gold); transform: translateY(-1px); }
.grid-ideas { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.idea {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm);
  animation: rise 0.5s both;
}
.idea-tema { margin: 0; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--navy); line-height: 1.25; }
.idea-gancho { margin: 0; font-size: 13px; color: var(--ink); font-style: italic; }
.idea-fonte { margin: 0; font-size: 12px; color: rgba(11, 23, 38, 0.55); }
.idea-actions { display: flex; gap: 8px; margin-top: auto; }
.idea-actions form { flex: 1; }
.idea-actions button { width: 100%; }

/* ---- página de erro ---- */
.error-box {
  max-width: 560px; margin: 8vh auto 0;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--wine);
  border-radius: 18px; padding: 34px; box-shadow: var(--shadow-sm);
}
.error-box h2 { font-family: var(--display); color: var(--navy); margin: 4px 0 12px; font-size: 26px; }
.error-msg { color: var(--wine); background: rgba(154, 43, 43, 0.07); border: 1px solid rgba(154, 43, 43, 0.2); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.error-box .btn-trends { display: inline-block; width: auto; margin-top: 18px; text-decoration: none; }

/* ---- overlay de progresso (refazer arte/legenda) ---- */
.ov {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(3, 16, 31, 0.72);
  backdrop-filter: blur(6px);
  animation: reveal 0.2s both;
}
.ov-card {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  padding: 38px 44px;
  box-shadow: var(--shadow);
  min-width: 280px;
}
.ov-spin {
  width: 46px; height: 46px; margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(191, 143, 45, 0.25);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
.ov-title { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--navy); }
.ov-time {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 6vw, 56px); line-height: 1; color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.ov-note { margin: 12px auto 0; max-width: 34ch; font-size: 13px; line-height: 1.5; color: rgba(11, 23, 38, 0.6); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   animações
   ============================================================ */
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ringPulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ============================================================
   concorrentes
   ============================================================ */
.comp-bar { display: flex; gap: 10px; margin: 8px 0 14px; }
.comp-input {
  flex: 1; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit;
}
.comp-input:focus { outline: none; border-color: var(--gold); }
.comp-errors { color: var(--gold-deep); font-size: 14px; margin: 0 0 14px; }
.grid-comp {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.comp-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
}
.comp-head { display: flex; align-items: center; gap: 10px; }
.comp-rank {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  color: var(--navy-deep); background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 8px; padding: 2px 9px;
}
.comp-user { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--navy); text-decoration: none; }
.comp-user:hover { color: var(--gold-deep); }
.comp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.comp-stat { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.comp-stat strong { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.comp-stat span { font-size: 11px; color: rgba(11, 23, 38, 0.55); }
.comp-stat-hi strong { color: var(--teal); }
.comp-tops { display: flex; flex-direction: column; gap: 8px; }
.comp-tops-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-deep); }
.comp-post {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 12px;
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: 10px;
  text-decoration: none; color: var(--ink);
}
a.comp-post:hover { border-color: var(--gold); }
.comp-post-eng { font-size: 13px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.comp-post-cap { font-size: 12px; color: rgba(11, 23, 38, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   responsivo
   ============================================================ */
@media (max-width: 880px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { min-height: 38vh; }
  .hero-content { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid { grid-template-columns: 1fr; }
  .grid-comp { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .brand-sub { display: none; }
}
