/* Rainha dos Insanos — premium gold design system */
:root {
  --bg: #070401 !important;
  --panel: #130b04 !important;
  --panel-strong: #211207 !important;
  --text: #fff7dd !important;
  --muted: #c9aa72 !important;
  --line: rgba(255, 190, 52, .3) !important;
  --pink: #ff7a18 !important;
  --cyan: #ffbf2f !important;
  --lime: #70d875 !important;
  --gold: #ffb300 !important;
  --amber: #ff7a00 !important;
  --danger: #ff4d32 !important;
  --stripe: #2c1303 !important;
  --shadow: 0 24px 70px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 183, 35, .08) !important;
  --premium-gold: #ffc83d;
  --premium-orange: #ff7a00;
  --premium-deep: #080401;
  --premium-card: rgba(24, 13, 5, .88);
}

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  color: #fff6dc !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 132, 0, .18), transparent 25rem),
    radial-gradient(circle at 90% 28%, rgba(255, 196, 45, .12), transparent 30rem),
    linear-gradient(180deg, rgba(5, 2, 0, .72), rgba(9, 4, 1, .94)),
    var(--page-bg-image, url('/uploads/fundo-b.png')) center top / cover fixed !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .25;
  background-image: linear-gradient(rgba(255, 201, 65, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 201, 65, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

::selection { color: #160900; background: #ffc83d; }

.page-shell { width: min(100% - 28px, 1380px) !important; }

.win-ticker,
.notice-strip {
  border: 1px solid rgba(255, 191, 47, .36) !important;
  color: #ffe8a2 !important;
  background: linear-gradient(90deg, rgba(17, 8, 2, .96), rgba(50, 22, 3, .94), rgba(17, 8, 2, .96)) !important;
  box-shadow: inset 0 1px rgba(255, 226, 135, .11), 0 8px 26px rgba(0, 0, 0, .35) !important;
}

.site-header { backdrop-filter: blur(18px) saturate(1.25); }

.navbar {
  border: 1px solid rgba(255, 190, 47, .46) !important;
  background:
    linear-gradient(135deg, rgba(39, 19, 5, .94), rgba(10, 5, 2, .93) 52%, rgba(44, 20, 3, .9)) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 224, 137, .16), 0 0 30px rgba(255, 135, 0, .08) !important;
}

.navbar.has-header-title-image {
  border-color: rgba(255, 188, 38, .62) !important;
  background: #080401 !important;
}

.navbar.has-header-title-image::after {
  background: linear-gradient(180deg, rgba(4, 2, 0, .03), rgba(5, 2, 0, .18) 48%, rgba(5, 2, 0, .86)) !important;
}

.brand-mark {
  border-color: #ffc83d !important;
  background: radial-gradient(circle, #3b1c05, #090401) !important;
  box-shadow: 0 0 0 3px rgba(80, 34, 3, .8), 0 10px 28px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 168, 0, .36) !important;
}

.nav-actions a,
.nav-actions button,
.navbar.has-header-title-image .nav-actions a,
.header-preview-navbar .nav-actions span {
  border: 1px solid rgba(255, 198, 70, .36) !important;
  color: #fff5d3 !important;
  background: linear-gradient(180deg, rgba(41, 22, 8, .86), rgba(13, 7, 3, .88)) !important;
  box-shadow: inset 0 1px rgba(255, 238, 175, .12), 0 7px 20px rgba(0, 0, 0, .3) !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease !important;
}

.nav-actions a:hover,
.nav-actions button:hover {
  color: #180900 !important;
  border-color: #ffd66c !important;
  background: linear-gradient(135deg, #ffe07a, #ffb31a 55%, #ff7a00) !important;
  box-shadow: 0 8px 28px rgba(255, 132, 0, .34) !important;
  transform: translateY(-2px);
}

.hero {
  border: 1px solid rgba(255, 186, 44, .43) !important;
  background: var(--hero-banner, var(--page-bg-image, url('/uploads/fundo-b.png'))) center / cover no-repeat !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .65), inset 0 0 80px rgba(255, 123, 0, .08) !important;
}

.hero::after {
  display: none;
}

.hero-orbit { display: none !important; }

.hero {
  transition: background-image .35s ease, filter .35s ease !important;
}

.hero-slide-copy {
  max-width: min(760px, 78vw);
  transition: opacity .28s ease, transform .28s ease;
}

.hero.is-changing-slide .hero-slide-copy {
  opacity: 0;
  transform: translateY(8px);
}

.hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 15px;
  margin-top: 16px;
}

.hero-status-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 12px 0 22px;
}

.hero-status-bar .signal-panel { width: 100%; margin: 0; }

.hero-status-bar .hero-slide-dots {
  min-width: 110px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid rgba(255, 185, 43, .3);
  border-radius: 999px;
  justify-content: center;
  background: linear-gradient(145deg, rgba(35, 18, 6, .9), rgba(12, 6, 2, .92));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 229, 155, .1);
}

.hero-slide-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 216, 111, .55);
  border-radius: 999px;
  background: rgba(255, 231, 166, .22);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: width .22s ease, background .22s ease, box-shadow .22s ease;
}

.hero-slide-dots button.active {
  width: 30px;
  background: linear-gradient(90deg, #ffe174, #ff9809);
  box-shadow: 0 0 16px rgba(255, 145, 0, .45);
}

.eyebrow {
  color: #ffbf2f !important;
  letter-spacing: .16em !important;
  text-shadow: 0 0 18px rgba(255, 164, 0, .3);
}

.hero h1,
.section-heading h2,
.platform-section h2,
.dashboard-heading h1,
.table-header h2,
.login-card h1 {
  color: #fff3c2 !important;
  background: linear-gradient(180deg, #fff9df 0%, #ffd968 37%, #f9a719 67%, #b85800 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 3px 0 #4c1900) drop-shadow(0 10px 18px rgba(0, 0, 0, .42)) !important;
}

.admin-shell .brand .brand-text-editable {
  color: #ffc83d !important;
  -webkit-text-fill-color: #ffc83d !important;
  text-shadow: 0 -1px #fff0ad, 0 2px #8a3a00, 0 5px #2a0d00, 0 0 12px rgba(255, 153, 0, .42) !important;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .5)) !important;
}

.hero-copy,
.section-subtitle,
.empty-state { color: #d7bd8e !important; }

.signal-panel,
.toolbar,
.filter-box,
.social-section,
.admin-card,
.permission-box,
.signal-percent-editor {
  border: 1px solid rgba(255, 185, 43, .31) !important;
  color: #fff5da !important;
  background: linear-gradient(145deg, rgba(35, 18, 6, .9), rgba(12, 6, 2, .92)) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 229, 155, .1) !important;
}

.signal-panel::before { background: linear-gradient(180deg, #ffe071, #ff9b0b) !important; }
.panel-label { color: #c9a86c !important; }
.signal-panel strong { color: #ffd25b !important; text-shadow: 0 0 18px rgba(255, 156, 0, .28); }

.search-box,
.settings-form label,
.platform-form label,
.music-form label,
.login-card label,
.access-card label { color: #d9bd88 !important; }

input,
select,
textarea {
  border: 1px solid rgba(255, 184, 43, .3) !important;
  border-radius: 10px !important;
  color: #fff4d3 !important;
  background: rgba(7, 4, 2, .76) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35) !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #ffbd2f !important;
  background: rgba(25, 12, 3, .9) !important;
  box-shadow: 0 0 0 3px rgba(255, 171, 17, .14), 0 0 24px rgba(255, 128, 0, .12) !important;
}

input[type='range'] { accent-color: #ffab13 !important; }
input[type='color'] { background: #120902 !important; }

.generate-button,
.modal-generate,
.slot-generate,
.signal-game-button,
.initial-launch-action,
.music-toggle,
.notification-toggle,
.filter-toggle {
  border: 1px solid #ffd56b !important;
  color: #1c0b00 !important;
  background: linear-gradient(135deg, #fff0a5 0%, #ffc83d 32%, #ff9b0b 68%, #e85d00 100%) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .54), inset 0 -3px rgba(126, 42, 0, .24), 0 10px 28px rgba(255, 112, 0, .25) !important;
  text-shadow: 0 1px rgba(255, 247, 211, .48) !important;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease !important;
}

.generate-button:hover,
.modal-generate:hover,
.slot-generate:hover,
.signal-game-button:hover,
.music-toggle:hover,
.filter-toggle:hover {
  filter: brightness(1.1) saturate(1.08);
  transform: translateY(-2px);
  box-shadow: inset 0 1px rgba(255,255,255,.58), 0 15px 34px rgba(255, 112, 0, .36) !important;
}

.category-button,
.platform-tab,
.page-button,
.icon-action,
.text-button {
  border: 1px solid rgba(255, 185, 45, .28) !important;
  color: #e7cca0 !important;
  background: linear-gradient(180deg, rgba(39, 20, 7, .88), rgba(13, 7, 3, .9)) !important;
  box-shadow: inset 0 1px rgba(255, 229, 157, .08) !important;
}

.category-button:hover,
.platform-tab:hover,
.page-button:hover,
.icon-action:hover,
.category-button.active,
.platform-tab.active,
.page-button.active {
  border-color: #ffc440 !important;
  color: #180900 !important;
  background: linear-gradient(135deg, #ffdc70, #ffa90d, #ef6800) !important;
  box-shadow: 0 7px 22px rgba(255, 115, 0, .22) !important;
}

.cards-grid { gap: 16px !important; }

.featured-game-week {
  margin: 18px 0 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 202, 79, .64);
  border-radius: 22px;
  background: #090401;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .58), 0 0 34px rgba(255, 126, 0, .12), inset 0 1px rgba(255, 232, 155, .14);
}

.featured-game-link {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(280px, 1.1fr);
  min-height: 310px;
  color: inherit;
  text-decoration: none;
}

.featured-game-media { position: relative; min-height: 310px; overflow: hidden; background: #050200; }
.featured-game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-game-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, #100702 100%); }
.featured-game-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(26px, 5vw, 62px); background: radial-gradient(circle at 100% 0, rgba(255, 156, 12, .16), transparent 22rem); }
.featured-game-copy > span { color: #ffc83d; font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.featured-game-copy > strong { margin-top: 8px; color: #fff0b5; font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: .95; text-transform: uppercase; }
.featured-game-copy h3 { margin: 12px 0 5px; color: #ffb520; font-size: clamp(1.35rem, 2.6vw, 2.25rem); }
.featured-game-copy p { margin: 0 0 20px; color: #cbb083; }
.featured-game-copy b { padding: 12px 22px; border: 1px solid #ffe185; border-radius: 999px; color: #1c0b00; background: linear-gradient(135deg, #ffe888, #ffac12, #eb6500); box-shadow: 0 10px 28px rgba(255, 111, 0, .28); }
.featured-game-link:hover .featured-game-media img { transform: scale(1.05); }
.featured-game-link:hover .featured-game-copy b { filter: brightness(1.1); transform: translateY(-2px); }

.featured-game-form { border-color: rgba(255, 205, 84, .48) !important; }
.featured-groups-editor { display: grid; gap: 14px; margin: 16px 0; }
.featured-group-card { display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 1fr) minmax(150px, .5fr); gap: 14px; padding: 16px; border: 1px solid rgba(255, 190, 49, .28); border-radius: 15px; background: rgba(7, 4, 2, .68); box-shadow: 0 14px 34px rgba(0, 0, 0, .32); }
.featured-group-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.featured-group-heading strong { color: #ffd25d; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .08em; }
.featured-group-card label { display: grid; align-content: start; gap: 7px; }
.featured-group-card select[multiple] { min-height: 190px; }
.featured-game-checklist { min-width: 0; padding: 10px; border: 1px solid rgba(255, 188, 44, .22); border-radius: 12px; }
.featured-game-checklist legend { padding: 0 6px; color: #ffd263; font-weight: 800; }
.featured-game-checklist > div { display: grid; gap: 5px; max-height: 250px; overflow-y: auto; padding: 4px; scrollbar-color: #d87909 #130902; }
.featured-game-checklist label { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 7px 9px; border: 1px solid rgba(255, 188, 43, .12); border-radius: 9px; background: rgba(18, 9, 3, .62); cursor: pointer; }
.featured-game-checklist label:has(input:checked) { border-color: rgba(255, 200, 72, .58); color: #ffe4a0; background: rgba(255, 141, 0, .13); }
.featured-game-checklist input { width: 20px !important; height: 20px; flex: 0 0 20px; accent-color: #ffad12; }
.featured-save-actions { position: sticky; bottom: 10px; z-index: 4; padding: 12px; border: 1px solid rgba(255, 194, 53, .32); border-radius: 14px; background: rgba(10, 5, 2, .9); backdrop-filter: blur(12px); box-shadow: 0 14px 34px rgba(0,0,0,.45); }

.featured-games-heading {
  padding: 24px 26px 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 164, 15, .1), transparent);
}
.featured-games-heading span { color: #ffc83d; font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.featured-games-heading strong { display: block; margin-top: 5px; color: #fff0b5; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; text-transform: uppercase; }
.featured-games-heading p { margin: 8px 0 0; color: #cbb083; }

.featured-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  padding: 0 18px 20px;
}

.featured-games-grid .featured-game-link {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 191, 50, .3);
  border-radius: 16px;
  background: linear-gradient(155deg, #251205, #090401);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.featured-games-grid .featured-game-link:hover { border-color: #ffca4e; transform: translateY(-5px); box-shadow: 0 20px 42px rgba(0, 0, 0, .54), 0 0 22px rgba(255, 126, 0, .12); }
.featured-games-grid .featured-game-media { min-height: 0; aspect-ratio: 1.2; }
.featured-games-grid .featured-game-media::after { background: linear-gradient(180deg, transparent 58%, rgba(9, 4, 1, .9)); }
.featured-games-grid .featured-game-copy { flex: 1; align-items: stretch; justify-content: space-between; gap: 13px; padding: 15px; background: none; }
.featured-games-grid .featured-game-copy h3 { margin: 0; font-size: 1.05rem; line-height: 1.2; }
.featured-games-grid .featured-game-copy b { align-self: flex-start; padding: 9px 14px; font-size: .76rem; }
.featured-game-percentages { display: grid; gap: 7px; width: 100%; padding: 10px; border: 1px solid rgba(255, 189, 47, .2); border-radius: 11px; background: rgba(5, 2, 0, .48); }
.featured-game-percentages .slot-bar { margin: 0; }
.featured-game-percentages .slot-bar strong { font-size: .72rem; }
.featured-game-percentages .slot-bar > span { height: 7px; }
.featured-game-percentages .featured-distribution { display: block; padding: 7px 9px; border: 1px solid rgba(255, 189, 47, .25); border-radius: 8px; color: #ffd25c; background: rgba(255, 154, 14, .08); font-size: .76rem; text-align: center; }

.percent-save-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 187, 43, .2); }
.percent-save-actions small { color: #d7bd86; line-height: 1.4; }

.platform-card,
.slot-card,
.game-card {
  border: 1px solid rgba(255, 183, 38, .28) !important;
  border-radius: 18px !important;
  background: linear-gradient(155deg, rgba(37, 18, 5, .94), rgba(9, 5, 2, .97)) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 228, 145, .08) !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease !important;
}

.platform-card:hover,
.slot-card:hover,
.game-card:hover {
  border-color: rgba(255, 201, 79, .7) !important;
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 26px 62px rgba(0, 0, 0, .62), 0 0 28px rgba(255, 128, 0, .13) !important;
}

.platform-media,
.slot-media,
.game-media { background: #0b0502 !important; }

.platform-card h3,
.slot-card h3,
.game-card h3,
.row-title strong { color: #fff1c0 !important; }

.platform-card p,
.slot-card p,
.game-card p,
.row-muted,
.row-title span { color: #bfa270 !important; }

.status-pill,
.slot-tag,
.platform-badge {
  border: 1px solid rgba(255, 205, 91, .46) !important;
  color: #2a1000 !important;
  background: linear-gradient(135deg, #ffe586, #ffb41e) !important;
  box-shadow: 0 5px 16px rgba(255, 126, 0, .18) !important;
}

.site-footer,
.footer-image-section {
  border-color: rgba(255, 185, 42, .26) !important;
  color: #caae78 !important;
  background: linear-gradient(180deg, rgba(25, 13, 5, .86), rgba(6, 3, 1, .96)) !important;
}

.terms-open-button {
  margin-top: 18px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 207, 94, .62);
  border-radius: 999px;
  color: #1d0b00;
  background: linear-gradient(135deg, #ffe88d, #ffb419 58%, #e96a00);
  box-shadow: inset 0 1px rgba(255,255,255,.5), 0 10px 26px rgba(255, 117, 0, .22);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.terms-open-button:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 117, 0, .32); }

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 1, 0, .84);
  backdrop-filter: blur(14px);
}

.terms-modal-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  overflow: hidden;
  border: 1px solid rgba(255, 202, 75, .55);
  border-radius: 22px;
  color: #f9eac7;
  background: linear-gradient(145deg, #241205, #090401 72%);
  box-shadow: 0 36px 110px rgba(0,0,0,.8), 0 0 50px rgba(255,125,0,.12), inset 0 1px rgba(255,234,168,.12);
}

.terms-modal-card > header { padding: 28px 68px 20px 30px; border-bottom: 1px solid rgba(255, 187, 43, .2); background: linear-gradient(90deg, rgba(255, 151, 0, .1), transparent); }
.terms-modal-card h2 { margin: 4px 0 0; color: #ffd264; font-size: clamp(1.55rem, 3.6vw, 2.7rem); line-height: 1.05; }
.terms-close-button { position: absolute; top: 17px; right: 18px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 204, 86, .42); border-radius: 50%; color: #ffeab0; background: rgba(23, 11, 3, .9); font-size: 1.7rem; cursor: pointer; }
.terms-close-button:hover { color: #1b0900; background: #ffc03a; }
.terms-content { overflow-y: auto; padding: 24px 30px 34px; scrollbar-color: #d87909 #130902; scrollbar-width: thin; }
.terms-content h3 { margin: 24px 0 7px; color: #ffc84c; font-size: 1.08rem; }
.terms-content h3:first-child { margin-top: 0; }
.terms-content p { margin: 0 0 10px; color: #d8c29a; line-height: 1.72; }
.terms-content strong { color: #fff0b9; }

/* Premium administration */
.admin-shell .dashboard { padding-bottom: 60px; }

.admin-brand-badge {
  border: 1px solid #ffd166 !important;
  color: #2a1000 !important;
  background: linear-gradient(135deg, #ffe58a, #ffa80c) !important;
  box-shadow: 0 5px 18px rgba(255, 131, 0, .25) !important;
}

.admin-tabs {
  gap: 8px !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 184, 40, .28) !important;
  border-radius: 16px !important;
  background: rgba(12, 6, 2, .86) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .38) !important;
}

.admin-tab {
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: #cbb080 !important;
  background: transparent !important;
  transition: all .2s ease !important;
}

.admin-tab:hover { color: #ffe4a0 !important; background: rgba(255, 155, 11, .1) !important; }
.admin-tab.active {
  border-color: rgba(255, 209, 103, .56) !important;
  color: #1b0a00 !important;
  background: linear-gradient(135deg, #ffe37b, #ffad13, #ee6600) !important;
  box-shadow: 0 8px 24px rgba(255, 111, 0, .25) !important;
}

.admin-card {
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(31, 16, 6, .95), rgba(10, 5, 2, .96)) !important;
}

.table-header {
  border-bottom-color: rgba(255, 183, 41, .2) !important;
  background: linear-gradient(90deg, rgba(255, 146, 0, .07), transparent) !important;
}

.platform-table { border-color: rgba(255, 185, 44, .18) !important; }
.platform-row {
  border-bottom-color: rgba(255, 185, 44, .13) !important;
  background: rgba(9, 5, 2, .34) !important;
  transition: background .2s ease, transform .2s ease !important;
}
.platform-row:hover { background: rgba(255, 153, 12, .075) !important; }

.analytics-card {
  border: 1px solid rgba(255, 185, 40, .25) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(42, 21, 6, .82), rgba(12, 6, 2, .88)) !important;
  box-shadow: inset 0 1px rgba(255, 229, 154, .08), 0 14px 32px rgba(0, 0, 0, .34) !important;
}
.analytics-card strong { color: #ffd361 !important; }

.brand-preview-toolbar,
.social-editor,
.header-image-quick-action {
  border-color: rgba(255, 187, 43, .24) !important;
  background: rgba(9, 5, 2, .46) !important;
}

.permission-box legend,
.signal-percent-editor legend { color: #ffc83d !important; }

.hero-slides-editor {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(255, 185, 40, .3) !important;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(35, 18, 6, .78), rgba(9, 5, 2, .88)) !important;
  box-shadow: inset 0 1px rgba(255, 230, 154, .08);
}

.hero-slides-editor legend {
  padding: 0 9px;
  color: #ffc83d;
  font-weight: 900;
  letter-spacing: .05em;
}

.hero-slide-time { max-width: 340px; }

.hero-slide-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 13px;
  margin-top: 16px;
}

.hero-slide-admin-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 184, 42, .24);
  border-radius: 14px;
  background: rgba(7, 4, 2, .68);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 226, 141, .06);
}

.hero-slide-admin-card > strong {
  color: #ffd364;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-slide-admin-card label { display: grid; gap: 6px; }
.hero-slide-admin-card textarea { resize: vertical; }
.hero-slide-admin-card label:has([data-slide-title]),
.hero-slide-admin-card label:has([data-slide-text]) { display: none; }
.form-message.success { color: #8ff095 !important; }
.form-message:not(.success) { color: #ffb18f; background: transparent !important; }
.form-message:empty { display: none; }
.icon-action.danger { color: #ff8b72 !important; border-color: rgba(255, 82, 52, .3) !important; }
.icon-action.danger:hover { color: #fff !important; background: linear-gradient(135deg, #ff7048, #c92d18) !important; }

.password-toggle {
  border: 1px solid rgba(255, 196, 62, .45) !important;
  color: #241000 !important;
  background: linear-gradient(135deg, #ffe27a, #ff9e0b) !important;
  box-shadow: 0 5px 18px rgba(255, 121, 0, .2) !important;
}

.signal-details,
.initial-launch,
.access-gate { background: rgba(3, 1, 0, .82) !important; backdrop-filter: blur(14px); }
.signal-modal-card,
.initial-launch-card,
.access-card {
  border: 1px solid rgba(255, 196, 65, .46) !important;
  background: linear-gradient(145deg, #241206, #090401) !important;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .76), 0 0 50px rgba(255, 113, 0, .1) !important;
}

@media (max-width: 880px) {
  .page-shell { width: min(100% - 14px, 700px) !important; }
  .navbar { border-radius: 16px !important; }
  .hero { border-radius: 20px !important; }
  .admin-tabs { border-radius: 14px !important; }
  .admin-tab { flex: 0 0 auto; }
  .hero-slide-copy { max-width: 100%; }
  .hero-slide-admin-grid { grid-template-columns: 1fr; }
  .hero-status-bar { grid-template-columns: 1fr; gap: 9px; }
  .hero-status-bar .hero-slide-dots { justify-self: center; }
  .featured-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 10px; }
  .featured-games-grid .featured-game-media { min-height: 0; }
  .featured-group-card { grid-template-columns: 1fr; }
  .featured-group-heading { grid-column: 1; }
}

@media (max-width: 520px) {
  .featured-games-grid { grid-template-columns: 1fr; }
  .terms-modal { padding: 8px; }
  .terms-modal-card { max-height: 92vh; border-radius: 16px; }
  .terms-modal-card > header { padding: 22px 56px 16px 18px; }
  .terms-content { padding: 18px; }
  .featured-game-checklist > div { max-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
