:root {
  --bg: #4d0f1c;
  --green: #14532d;
  --green2: #1d6b3c;
  --red: #b91c1c;
  --gold: #d69a12;
  --gold-dark: #8a6a12;
  --text: #26221c;
  --muted: #665d4e;
  --card: #ffffff;
  --line: #e4dccb;
  --shadow: 0 2px 10px rgba(38, 34, 28, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(700px 380px at 50% -60px, rgba(214, 154, 18, 0.12), transparent 70%),
    linear-gradient(0deg, rgba(30, 5, 11, 0.6) 0%, transparent 380px),
    url("/assets/body-deco.svg") 0 0 / 640px 640px repeat,
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
/* enfeites natalinos discretos nos cantos inferiores */
body::before,
body::after {
  content: "";
  position: fixed;
  bottom: -8px;
  width: 130px;
  height: 130px;
  background: url("/assets/corner-deco.svg") center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
body::before { left: -14px; }
body::after { right: -14px; transform: scaleX(-1); }

/* neve bem sutil */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.flake {
  position: absolute;
  top: -14px;
  font-size: var(--s);
  color: rgba(214, 154, 18, 0.55);
  animation: fall var(--d) linear infinite;
  animation-delay: var(--dl);
}
@keyframes fall {
  to { transform: translateY(110vh); opacity: 0.1; }
}

/* ===== HERO ===== */
.hero {
  background:
    url("/assets/hero-deco.svg") center / cover no-repeat,
    var(--green);
  text-align: center;
  padding: 22px 20px 70px;
  position: relative;
}
/* transicao suave verde -> vinho */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.ribbon {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #e8d9ac;
  border: 1px solid rgba(232, 217, 172, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.logo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: block;
  margin: 0 auto;
}
.title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 12px;
  color: #fff;
}
.title span { color: var(--gold); }
.tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  margin-top: 4px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 13px 30px;
  border-radius: 10px;
  background: var(--gold);
  color: #231a05;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.cta:hover { background: #e5ab1e; }
.cta:active { transform: scale(0.97); }
.handle { color: #e8d9ac; font-size: 0.78rem; margin-top: 10px; letter-spacing: 0.5px; }
.chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.chips span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e8d9ac;
  border: 1px solid rgba(232, 217, 172, 0.3);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ===== CONTEUDO ===== */
.container {
  max-width: 520px;
  margin: -38px auto 0;
  padding: 0 14px 30px;
  position: relative;
  z-index: 1;
}

/* abas */
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4px 2px 14px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.tab:hover { border-color: var(--gold); color: var(--text); }
.tab-logo {
  height: 24px;
  width: auto;
  max-width: 96px;
  border-radius: 5px;
  object-fit: contain;
  background: #fff;
}
.tab.logo-only span { display: none; }
.tab.logo-only { padding-left: 10px; padding-right: 10px; }
.tab.logo-only .tab-logo { max-width: 120px; }
.tab.active {
  background: var(--gold);
  color: #231a05;
  border-color: var(--gold);
}

/* divisor decorativo */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 12px;
}
.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.divider i {
  font-style: normal;
  color: var(--gold);
  font-size: 0.9rem;
}

/* cabecalho da lista do grupo */
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 10px;
  border-bottom: 1.5px solid rgba(214, 154, 18, 0.35);
  margin-bottom: 2px;
}
.lh-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.lh-left img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}
.lh-name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
}
.lh-count { font-size: 0.72rem; font-weight: 700; color: #e8d9ac; }

/* aviso do grupo */
.group-notice {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffe9b0;
  background: rgba(214, 154, 18, 0.14);
  border: 1px solid rgba(214, 154, 18, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 4px;
}

/* tag nos itens (NOVO, HOT...) */
.tag {
  display: inline-block;
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 7px;
  vertical-align: 2px;
}

/* banner do grupo */
.group-banner {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

/* cards */
.cards { display: flex; flex-direction: column; gap: 10px; }
.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px 13px 17px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
  animation: cardIn 0.28s both;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.15s;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(38, 34, 28, 0.12);
}
.card:hover::before { opacity: 1; }
.card:active { transform: scale(0.98); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
}
.card .icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #faf3df;
  border: 1px solid var(--line);
  overflow: hidden;
}
.card img.icon { object-fit: cover; padding: 0; }
.card .ic svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-dark);
}
.card .info { flex: 1; min-width: 0; }
.card .name { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; flex-wrap: wrap; }
.card .desc {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card .go {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff;
  background: var(--green2);
  padding: 9px 14px;
  border-radius: 8px;
}

.empty {
  text-align: center;
  color: #cbbf9d;
  padding: 34px 0;
  font-size: 0.88rem;
}

.foot-orn {
  width: 120px;
  margin: 0 auto 10px;
  display: block;
  opacity: 0.9;
  filter: brightness(1.6);
}
.footer {
  text-align: center;
  padding: 26px 20px 32px;
  font-size: 0.78rem;
  color: #cbbf9d;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer .muted { color: #8f8568; }

@media (min-width: 640px) {
  .title { font-size: 2rem; }
  .logo { width: 132px; height: 132px; }
}

/* ===== ADMIN ===== */
.admin-wrap { max-width: 640px; margin: 0 auto; padding: 40px 18px; }
.admin-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.admin-card h2 { color: var(--green); font-size: 1rem; margin-bottom: 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 5px; letter-spacing: 0.5px; font-weight: 700; }
.field input, .field select {
  width: 100%;
  padding: 12px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fdfbf5;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 9px;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--gold);
  color: #231a05;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: #fdfbf5; color: var(--green); border: 1px solid var(--line); }
.btn.danger { background: #fdf0f0; color: var(--red); border: 1px solid rgba(185, 28, 28, 0.25); }
.btn.sm { padding: 7px 12px; font-size: 0.75rem; }
.msg { font-size: 0.82rem; margin-top: 10px; min-height: 1em; }
.msg.ok { color: var(--green2); }
.msg.err { color: var(--red); }
.plat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 8px;
  background: #fdfbf5;
}
.plat-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85rem; }
.plat-row small { color: var(--muted); display: block; }
.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 10px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.group-head .gh-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.group-head img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.topbar h1 { font-size: 1.1rem; color: var(--green); }
