/* =========================================================
   Cassino Mobile Brasil — Operator App UI v8
   Bottom tabs · Phone frame · Pix green
   (Independent: not top-nav, not left-rail)
   ========================================================= */
:root {
  --bg: #0c0e12;
  --surface: #151922;
  --surface-2: #1c2230;
  --line: #2a3344;
  --text: #f0f2f7;
  --muted: #8b95a8;
  --green: #00c853;
  --green-2: #69f0ae;
  --yellow: #ffd600;
  --blue: #2979ff;
  --danger: #ff5252;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tab-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: #06080c;
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--green-2); text-decoration: none; }
a:hover { color: var(--green); }
ul { list-style: none; }

/* Desktop: center a phone-like stage */
.phone {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px var(--line), 0 20px 60px #000a;
}
@media (min-width: 900px) {
  body {
    background:
      radial-gradient(600px 400px at 20% 0%, #00c85315, transparent),
      radial-gradient(500px 400px at 80% 100%, #2979ff12, transparent),
      #06080c;
    padding: 24px 0;
  }
  .phone {
    min-height: calc(100vh - 48px);
    border-radius: 28px;
    overflow: hidden;
  }
}

/* Status / app header */
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 12px;
  gap: 10px;
}
.logo {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.logo span { color: var(--green); }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  cursor: pointer;
}
.pix-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #00c85318;
  border: 1px solid #00c85344;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Scroll body */
.scroll {
  padding: 0 14px calc(var(--tab-h) + 20px);
  overflow-x: hidden;
}

/* Hero banner mobile */
.hero {
  background: linear-gradient(145deg, #1a2e1f, #151922 50%, #1a2438);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 16px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "🇧🇷";
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 3rem;
  opacity: 0.12;
}
.hero .eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-2);
  margin-bottom: 6px;
}
.hero h1 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.hero h1 b { color: var(--green); }
.hero p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
  max-width: 92%;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: .15s;
}
.btn-green {
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: #06210f;
}
.btn-green:hover { filter: brightness(1.06); color: #06210f; }
.btn-dark {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-dark:hover { border-color: var(--green); color: var(--green-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 0.8rem; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Quick actions */
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.quick a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}
.quick a:hover { border-color: var(--green); color: var(--green-2); }
.quick .ico { font-size: 1.25rem; display: block; margin-bottom: 4px; }

/* Section */
.sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 10px;
}
.sec-h h2 { font-size: 0.98rem; }
.sec-h a { font-size: 0.78rem; font-weight: 700; color: var(--muted); }

/* Horizontal game scroller */
.h-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.game {
  flex: 0 0 118px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.game .art {
  height: 100px;
  background: linear-gradient(145deg, #1e2a1f, #1a2438);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
}
.game .info { padding: 8px; }
.game h3 {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  color: var(--text);
}
.game .m { font-size: 0.68rem; color: var(--muted); }
.badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--green);
  color: #06210f;
}
.badge.hot { background: var(--danger); color: #fff; }
.badge.live { background: var(--blue); color: #fff; }

/* Promo cards stack */
.stack { display: grid; gap: 10px; margin-bottom: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.card h3 { font-size: 0.92rem; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 0.82rem; margin-bottom: 10px; }
.card.pix {
  background: linear-gradient(135deg, #0d2818, #151922);
  border-color: #00c85344;
}

/* Bottom tab bar — native app */
.tabs {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(430px, 100%);
  height: var(--tab-h);
  background: #12151cee;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  backdrop-filter: blur(12px);
  z-index: 50;
}
@media (min-width: 900px) {
  .tabs {
    bottom: 24px;
    border-radius: 0 0 28px 28px;
  }
}
.tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}
.tabs a .ico { font-size: 1.15rem; }
.tabs a.on, .tabs a:hover { color: var(--green-2); }

/* Inner pages */
.page-top {
  padding: 8px 16px 12px;
}
.page-top h1 { font-size: 1.2rem; margin-bottom: 4px; }
.page-top p { color: var(--muted); font-size: 0.86rem; }
.bc {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.bc a { color: var(--muted); }

.list { display: grid; gap: 8px; }
.list a, .list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}
.list a:hover { border-color: var(--green); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.tile .art {
  height: 88px;
  background: linear-gradient(145deg, #1e2a1f, #1a2438);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
}
.tile .info { padding: 8px 10px 10px; }
.tile h3 { font-size: 0.8rem; margin-bottom: 2px; }
.tile .m { font-size: 0.68rem; color: var(--muted); }

.prose { font-size: 0.9rem; color: var(--muted); }
.prose h2 {
  color: var(--text);
  font-size: 1rem;
  margin: 14px 0 6px;
}
.prose p { margin-bottom: 10px; }
.prose ul, .prose ol { margin: 0 0 10px 1.1rem; }
.prose li { margin-bottom: 4px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--green-2); background: var(--surface-2); }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.foot-note {
  text-align: center;
  font-size: 0.7rem;
  color: #5a6478;
  padding: 16px 8px 8px;
}

form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
form input, form textarea {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}