:root {
  --bg: #080709;
  --bg2: #0e0c10;
  --sidebar: #0c0a0e;
  --card: #141116;
  --card2: #1b161d;
  --card3: #211b22;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8f5f7;
  --muted: #a8a0aa;
  --gold: #d9a441;
  --gold-light: #f3c866;
  --orange: #ff8a3d;
  --sunset: #e85d3f;
  --danger: #e05252;
  --success: #54c77a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% -10%, rgba(232, 93, 63, 0.20), transparent 30%),
    radial-gradient(circle at 15% 0%, rgba(217, 164, 65, 0.10), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 285px;
  background: linear-gradient(180deg, rgba(20, 17, 22, 0.98), rgba(9, 8, 10, 0.98));
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}

.brand {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
}

.logo {
  letter-spacing: 6px;
  color: var(--gold-light);
  font-size: 30px;
  font-weight: 900;
  text-shadow: 0 0 25px rgba(243, 200, 102, 0.20);
}

.search,
input,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.search::placeholder,
input::placeholder,
textarea::placeholder {
  color: #756d77;
}

.search:focus,
input:focus,
textarea:focus {
  border-color: rgba(243, 200, 102, 0.65);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.08);
}

.nav {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav button:hover {
  background: var(--card2);
  border-color: var(--line);
  color: var(--gold-light);
}

.adminBtn {
  margin-top: auto;
  text-align: center;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  color: #120c08;
  border-radius: 11px;
  padding: 12px 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(232, 93, 63, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.adminBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(232, 93, 63, 0.20);
}

.content {
  max-width: 1050px;
  width: 100%;
  padding: 65px 7%;
  margin: auto;
}

header {
  margin-bottom: 42px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-light);
  font-weight: 800;
}

h1 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.05;
  margin: 10px 0 12px;
  letter-spacing: -1.5px;
}

header p,
.adminHead p {
  color: var(--muted);
  margin: 0;
}

.category {
  margin: 42px 0;
}

.category h2 {
  font-size: 23px;
  margin: 0 0 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: #fff;
}

.rule {
  background: linear-gradient(145deg, rgba(25, 21, 27, 0.98), rgba(12, 11, 14, 0.98));
  border: 1px solid var(--line);
  border-radius: 15px;
  margin: 13px 0;
  padding: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s, transform 0.2s;
}

.rule:hover {
  border-color: rgba(217, 164, 65, 0.25);
  transform: translateY(-1px);
}

.rule h3 {
  margin: 0 0 9px;
  color: var(--gold-light);
  font-size: 16px;
}

.rule p {
  margin: 0;
  color: #c9c2cb;
  line-height: 1.7;
  white-space: pre-wrap;
}

.adminWrap {
  max-width: 1200px;
  margin: auto;
  padding: 42px 24px 70px;
}

.adminHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.adminHead h1 {
  margin-top: 7px;
  font-size: 38px;
}

.back {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.back:hover {
  background: var(--card3);
  border-color: rgba(217, 164, 65, 0.3);
  color: var(--gold-light);
}

.panel {
  margin-top: 28px;
}

/* LOGIN */
.login {
  max-width: 470px;
  background: linear-gradient(145deg, rgba(25, 21, 27, 0.98), rgba(12, 10, 14, 0.98));
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.login h2 {
  margin-top: 0;
  font-size: 24px;
}

.login p {
  color: #ff8888;
  min-height: 22px;
}

.login button {
  width: 100%;
  margin-top: 12px;
}

/* BOTÕES */
button,
.back,
.adminBtn {
  font-family: inherit;
}

button {
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  color: #130c08;
  border: 0;
  border-radius: 10px;
  padding: 11px 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.secondary {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 11px 15px;
  border-radius: 10px;
}

.secondary:hover {
  background: var(--card3);
  border-color: rgba(217, 164, 65, 0.25);
}

.danger {
  background: rgba(224, 82, 82, 0.10);
  color: #ff9c9c;
  border: 1px solid rgba(224, 82, 82, 0.25);
}

.danger:hover {
  background: rgba(224, 82, 82, 0.18);
  border-color: rgba(224, 82, 82, 0.45);
}

.toolbar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 15px;
  background: rgba(20, 17, 22, 0.75);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.import {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.import input {
  display: none;
}

/* IMPORTANTE: ESCONDER O PAINEL ANTES DO LOGIN */
.hidden {
  display: none !important;
}

/* EDITOR */
.editCard {
  background: linear-gradient(145deg, rgba(25, 21, 27, 0.98), rgba(15, 13, 17, 0.98));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
}

.nested {
  background: rgba(8, 7, 9, 0.60);
  border-color: rgba(255, 255, 255, 0.055);
}

.editGrid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.catTitle {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.catTitle input {
  font-size: 19px;
  font-weight: 800;
  color: var(--gold-light);
}

.row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.save {
  margin-left: 8px;
}

.empty {
  color: var(--muted);
  padding: 35px;
  text-align: center;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #09080a;
}

::-webkit-scrollbar-thumb {
  background: #29242b;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #403742;
}

/* RESPONSIVO */
@media (max-width: 800px) {
  .sidebar {
    width: 220px;
  }

  .content {
    padding: 40px 25px;
  }
}

@media (max-width: 620px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 30px 20px;
  }

  .adminWrap {
    padding: 25px 16px 50px;
  }

  .adminHead {
    display: block;
  }

  .adminHead .back {
    display: inline-block;
    margin-top: 18px;
  }

  .editGrid {
    grid-template-columns: 1fr;
  }

  .catTitle {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar button,
  .toolbar label {
    width: 100%;
    text-align: center;
  }
}
.logo-img {
  width: 170px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}



