* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #090607;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(135, 20, 20, 0.22), transparent 55%),
    linear-gradient(180deg, #0b0708 0%, #070506 100%);
  color: #f3eadc;
  min-height: 100vh;
  line-height: 1.55;
}
a { color: #f0c05a; text-decoration: none; }

/* Topbar */
.topbar {
  background: rgba(12, 7, 8, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 162, 76, 0.35);
  padding: 10px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand-wrap { display: flex; align-items: center; gap: 10px; }
.brand-wrap img { height: 36px; width: auto; }
.brand { font-size: 1.25rem; font-weight: 800; color: #f0c05a; letter-spacing: 1.5px; }
.brand span { color: #e24436; }
.nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav a { color: #e6dac8; font-weight: 600; font-size: 0.92rem; transition: color .2s; }
.nav a:hover { color: #f0c05a; }
.btn-wpp {
  background: linear-gradient(180deg, #22a855, #167a3c);
  color: #fff !important;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-wpp:hover { filter: brightness(1.1); }

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 6, 7, 0.45) 0%, rgba(10, 6, 7, 0.78) 68%, #090607 100%),
    url('assets/hero-bg.jpg') center/cover no-repeat;
  border-bottom: 1px solid rgba(212, 162, 76, 0.35);
  padding: 46px 20px 54px;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-logo {
  max-width: 310px;
  width: 78%;
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(235, 160, 50, 0.25));
  margin-bottom: 14px;
}
.hero-sub {
  color: #e6d8c5;
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 22px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.85);
}
.status-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.pill {
  background: rgba(14, 8, 9, 0.88);
  border: 1px solid rgba(212, 162, 76, 0.45);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}
.dot-on { color: #4ade80; }
.dot-off { color: #f87171; }

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 7px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 0.96rem;
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-primary {
  background: linear-gradient(180deg, #c12e2a, #7d1313);
  color: #fff;
  border: 1px solid #d4a24c;
  box-shadow: 0 4px 14px rgba(185, 43, 39, 0.4);
}
.btn-gold {
  background: linear-gradient(180deg, #ecc05f, #b88424);
  color: #170d08;
  border: 1px solid #ffe094;
  box-shadow: 0 4px 14px rgba(212, 162, 76, 0.3);
}

/* Container & Section Headers */
.container { max-width: 1140px; margin: 0 auto; padding: 34px 18px 60px; }
.sec-head { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.sec-title { font-size: 1.35rem; color: #f0c05a; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.sec-desc { color: #a89886; font-size: 0.9rem; }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 38px; }
@media (max-width: 780px) { .rooms { grid-template-columns: 1fr; } }
.room-card {
  background: linear-gradient(180deg, rgba(28, 15, 16, 0.94), rgba(15, 9, 10, 0.96));
  border: 1px solid rgba(212, 162, 76, 0.35);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.room-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.room-card h3 { color: #f0c05a; font-size: 1.08rem; }
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(212, 162, 76, 0.14);
  border: 1px solid rgba(212, 162, 76, 0.35);
  color: #f3cf7a;
}
.room-card p { color: #cbbca8; font-size: 0.9rem; }

/* Main Grid (Register + Ranking) */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.card {
  background:
    linear-gradient(180deg, rgba(18, 11, 12, 0.93), rgba(12, 8, 9, 0.97)),
    url('assets/panel-bg.jpg') center/cover no-repeat;
  border: 1px solid rgba(212, 162, 76, 0.38);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.card h2 {
  color: #f0c05a;
  font-size: 1.22rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 162, 76, 0.22);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.86rem; color: #d8c8b4; margin-bottom: 4px; font-weight: 600; }
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #4d2a2a;
  background: rgba(10, 6, 7, 0.9);
  color: #fff;
  font-size: 0.95rem;
}
.form-group input:focus { outline: none; border-color: #f0c05a; }

.alert { padding: 11px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 0.92rem; font-weight: 600; }
.alert-ok { background: rgba(22, 101, 52, 0.38); border: 1px solid #22c55e; color: #bbf7d0; }
.alert-err { background: rgba(127, 29, 29, 0.45); border: 1px solid #ef4444; color: #fecaca; }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab-btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(212, 162, 76, 0.35);
  background: rgba(20, 11, 12, 0.9);
  color: #e6d8c3;
  cursor: pointer;
  font-weight: 600;
}
.tab-btn.active { background: #8f1d1d; color: #ffe08a; border-color: #f0c05a; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.07); }
th { color: #f0c05a; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
tr:hover td { background: rgba(255,255,255,0.03); }
.rank-1 { color: #ffd700; font-weight: 800; }
.rank-2 { color: #dbe2ea; font-weight: 800; }
.rank-3 { color: #e29d5e; font-weight: 800; }
.rank-pane { display: none; }
.rank-pane.active { display: block; }

/* Features / Sistemas */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feat-card {
  background: rgba(18, 11, 12, 0.92);
  border: 1px solid rgba(212, 162, 76, 0.28);
  border-radius: 10px;
  padding: 18px;
}
.feat-card h3 { color: #f0c05a; font-size: 1rem; margin-bottom: 6px; }
.feat-card p { color: #cbbca8; font-size: 0.88rem; }

/* Download */
.download-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.download-info h2 { border: none; margin-bottom: 6px; padding: 0; }
.download-info p { color: #d8c8b4; max-width: 580px; }
.download-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.footer {
  text-align: center;
  color: #8c7c6b;
  font-size: 0.85rem;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 162, 76, 0.16);
}

.cmd-group { margin-bottom: 14px; }
.cmd-group h3 { color: #f0c05a; font-size: 0.95rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.cmd-list { list-style: none; display: grid; gap: 6px; }
.cmd-list li {
  background: rgba(12, 7, 8, 0.72);
  border: 1px solid rgba(212, 162, 76, 0.16);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.87rem;
  color: #ddd0be;
}
.cmd-list code { color: #ffd470; font-weight: 700; font-family: Consolas, monospace; }
.mini-notes { margin-top: 12px; font-size: 0.86rem; color: #cbbca8; line-height: 1.6; }
