:root {
  --bg: #080d18;
  --panel: #111a2b;
  --input: #0b1322;
  --gold: #e8b84e;
  --gold-light: #ffda80;
  --text: #f4f6fb;
  --muted: #8994a8;
  --border: #27344a;
}

* {
  box-sizing: border-box;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top, #1a2942 0, transparent 48%),
    var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

.auth-container {
  width: 100%;
  max-width: 540px;
  margin: auto;
}

.auth-card {
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px #0008;
}

.auth-brand {
  display: block;
  width: fit-content;
  margin: 0 auto 30px;
  color: var(--gold);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 5px;
  text-decoration: none;
}

.auth-heading {
  margin-bottom: 28px;
  text-align: center;
}

.auth-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 3px;
}

.auth-heading h1 {
  margin: 10px 0;
  font-size: 30px;
}

.auth-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-form h2 {
  margin: 28px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 15px;
}

.auth-form label:not(.auth-consent) {
  display: block;
  margin: 16px 0 8px;
  color: #dce3ef;
  font-size: 13px;
  font-weight: 600;
}

.auth-form input:not([type="checkbox"]),
.auth-form select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: var(--input);
  color: var(--text);
  font-size: 14px;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #e8b84e20;
}

.auth-form input::placeholder {
  color: #69758a;
}

.auth-form select option {
  background: var(--panel);
}

.auth-notice {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid #66532b;
  border-radius: 10px;
  background: #e8b84e12;
  color: #e8c879;
  font-size: 12px;
  line-height: 1.6;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  color: #b9c3d3;
  font-size: 12px;
  line-height: 1.7;
}

.auth-consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.auth-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17120a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
}

.auth-button:active {
  transform: scale(.98);
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-switch a {
  color: var(--gold-light);
  font-weight: bold;
  text-decoration: none;
}

@media (max-width: 480px) {
  body.auth-body {
    padding: 16px 10px;
  }

  .auth-card {
    padding: 23px 17px;
    border-radius: 15px;
  }

  .auth-heading h1 {
    font-size: 26px;
  }
}

/* =================================
   HN2 HOME PAGE
================================= */

.home-body {
  margin: 0;
  min-height: 100vh;
  background: #080d18;
  color: #f4f6fb;
  font-family: Arial, sans-serif;
}

.home-header {
  min-height: 76px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #0c1423;
  border-bottom: 1px solid #27344a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.home-logo {
  color: #e8b84e;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 3px;
  text-decoration: none;
}

.home-logo span {
  color: #ffffff;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.home-nav a {
  color: #aab5c8;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: .2s;
}

.home-nav a:hover,
.home-nav a.active {
  color: #ffda80;
}

.home-login,
.home-primary-btn {
  padding: 12px 23px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffda80, #dba638);
  color: #17120a;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.home-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #ffda80;
  font-size: 26px;
  cursor: pointer;
}

.home-main {
  width: 100%;
  max-width: 1250px;
  margin: auto;
  padding: 30px 24px 70px;
}

.home-hero {
  min-height: 350px;
  padding: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  border: 1px solid #35445e;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 40%, #354a69 0, transparent 35%),
    linear-gradient(120deg, #17263c, #101a2c 70%);
}

.home-hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.home-eyebrow {
  color: #e8b84e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
}

.home-hero h1 {
  margin: 17px 0;
  font-size: clamp(32px, 5vw, 53px);
  line-height: 1.12;
  font-weight: 900;
}

.home-hero h1 span {
  color: #ffda80;
}

.home-hero p,
.home-info p {
  max-width: 480px;
  color: #aab7ca;
  font-size: 14px;
  line-height: 1.8;
}

.home-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
}

.home-primary-btn span {
  font-size: 18px;
}

.home-hero-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
}

.home-hero-circle {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e8b84e80;
  border-radius: 50%;
  color: #ffda80;
  font-size: 48px;
  font-weight: 900;
  box-shadow: 0 0 70px #e8b84e25, inset 0 0 40px #e8b84e15;
  transform: rotate(-12deg);
}

.home-section {
  margin-top: 55px;
}

.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}

.home-section-heading h2 {
  margin: 9px 0 0;
  font-size: 23px;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.home-category-card {
  min-height: 115px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid #27344a;
  border-radius: 13px;
  background: #111a2b;
  color: #ffffff;
  text-decoration: none;
  transition: .2s;
}

.home-category-card:hover,
.home-feature-card:hover {
  border-color: #e8b84e;
  transform: translateY(-4px);
}

.home-category-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: #e8b84e18;
  color: #ffda80;
  font-size: 26px;
}

.home-category-card h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.home-category-card p {
  margin: 0;
  color: #8994a8;
  font-size: 12px;
}

.home-arrow {
  margin-left: auto;
  color: #e8b84e;
  font-size: 21px;
}

.home-view-all {
  color: #ffda80;
  font-size: 12px;
  text-decoration: none;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-feature-card {
  overflow: hidden;
  border: 1px solid #27344a;
  border-radius: 13px;
  background: #111a2b;
  color: #ffffff;
  text-decoration: none;
  transition: .2s;
}

.home-feature-image {
  height: 180px;
  padding: 12px;
  position: relative;
  background: #0d1524;
}

.home-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-feature-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 5px;
  background: #e8b84e;
  color: #17120a;
  font-size: 9px;
  font-weight: 900;
}

.home-feature-info {
  padding: 15px;
}

.home-feature-info h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.home-feature-info p {
  margin: 0;
  color: #8994a8;
  font-size: 11px;
}

.home-info {
  margin-top: 55px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid #35445e;
  border-radius: 15px;
  background: linear-gradient(110deg, #17263c, #101a2c);
}

.home-info h2 {
  margin: 10px 0;
  font-size: 24px;
}

.home-outline-btn {
  padding: 13px 20px;
  flex-shrink: 0;
  border: 1px solid #e8b84e;
  border-radius: 8px;
  color: #ffda80;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.home-footer {
  min-height: 100px;
  padding: 22px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #27344a;
  background: #0c1423;
}

.home-footer p {
  color: #8994a8;
  font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .home-header {
    padding: 0 20px;
  }

  .home-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .home-nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    background: #0c1423;
    border-bottom: 1px solid #27344a;
  }

  .home-nav.show {
    display: flex;
  }

  .home-hero {
    padding: 35px 27px;
  }

  .home-hero-decoration {
    width: 130px;
    height: 130px;
  }

  .home-hero-circle {
    width: 120px;
    height: 120px;
    font-size: 30px;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .home-main {
    padding: 18px 14px 45px;
  }

  .home-header {
    min-height: 65px;
  }

  .home-nav {
    top: 64px;
  }

  .home-login {
    padding: 10px 13px;
    font-size: 10px;
  }

  .home-hero {
    min-height: 310px;
    padding: 28px 22px;
  }

  .home-hero-decoration {
    position: absolute;
    right: -40px;
    bottom: -30px;
    opacity: .22;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .home-hero p {
    font-size: 12px;
  }

  .home-section {
    margin-top: 40px;
  }

  .home-section-heading h2 {
    font-size: 19px;
  }

  .home-category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-category-card {
    min-height: 90px;
    padding: 15px;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .home-feature-image {
    height: 135px;
  }

  .home-feature-info {
    padding: 11px;
  }

  .home-feature-info h3 {
    font-size: 11px;
  }

  .home-info {
    padding: 23px;
    align-items: flex-start;
    flex-direction: column;
  }

  .home-info h2 {
    font-size: 21px;
  }

  .home-footer {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================
   HN2 GAME PAGES - DISTINCT THEMES
===================================== */

/* POPULAR - ELECTRIC BLUE */
body:has(.popular-page) {
  background: #080d18;
  color: #f4f6fb;
}

.popular-page {
  --game-accent: #168bce;
  --game-glow: #55c7ff;
  --game-panel: #14263d;
  --game-border: #244765;
}

.popular-page .popular-header h1 {
  color: var(--game-glow);
}

.popular-page #popularSearch {
  background: #101e30;
  color: #fff;
  border-color: var(--game-border);
  outline: none;
}

.popular-page #popularSearch:focus {
  border-color: var(--game-accent);
  box-shadow: 0 0 0 3px #168bce30;
}

.popular-page .popular-game-card {
  background: var(--game-panel);
  border-color: var(--game-border);
  transition: .2s ease;
}

.popular-page .popular-game-card:hover {
  border-color: var(--game-glow);
  transform: translateY(-4px);
}

.popular-page .popular-game-button {
  background: linear-gradient(135deg, #55c7ff, #168bce);
  color: #071522;
}

/* SLOT - PURPLE NEON */
body:has(.slot-page) {
  background: #0b0918;
  color: #f4f0ff;
}

.slot-page {
  --game-accent: #7545c8;
  --game-glow: #b58aff;
  --game-panel: #1c1533;
  --game-border: #49336d;
}

.slot-page .slot-header h1 {
  color: var(--game-glow);
}

.slot-page .slot-search {
  background: #151027;
  color: #fff;
  border-color: var(--game-border);
  outline: none;
}

.slot-page .slot-search:focus {
  border-color: var(--game-accent);
  box-shadow: 0 0 0 3px #7545c830;
}

.slot-page .slot-content {
  background: #120e22;
  border-color: var(--game-border);
}

.slot-page .popular-game-card {
  background: var(--game-panel);
  border-color: var(--game-border);
  transition: .2s ease;
}

.slot-page .popular-game-card:hover {
  border-color: var(--game-glow);
  transform: translateY(-4px);
}

.slot-page .popular-game-button {
  background: linear-gradient(135deg, #b58aff, #7545c8);
  color: #fff;
}

/* CASINO - BURGUNDY GOLD */
body:has(.casino-page) {
  background: #10090d;
  color: #fff4e8;
}

.casino-page {
  --game-accent: #8f263c;
  --game-glow: #e8b84e;
  --game-panel: #32131d;
  --game-border: #653044;
}

.casino-page .casino-header h1 {
  color: var(--game-glow);
}

.casino-page .casino-search {
  background: #211018;
  color: #fff;
  border-color: var(--game-border);
  outline: none;
}

.casino-page .casino-search:focus {
  border-color: var(--game-glow);
  box-shadow: 0 0 0 3px #e8b84e25;
}

.casino-page .casino-content {
  background: #1c0e15;
  border-color: var(--game-border);
}

.casino-page .casino-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.casino-page .casino-game-card {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--game-border);
  border-radius: 14px;
  background: var(--game-panel);
  color: #fff;
  overflow: hidden;
  transition: .2s ease;
}

.casino-page .casino-game-card:hover {
  border-color: var(--game-glow);
  transform: translateY(-3px);
}

.casino-page .casino-game-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  background: #10090d;
}

.casino-page .casino-game-card h3 {
  min-height: 2.8em;
  margin: 10px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.35;
  font-size: clamp(13px, 3.5vw, 17px);
  color: var(--game-glow);
}

/* GAME PAGE MOBILE */
@media (max-width: 550px) {
  .popular-page,
  .slot-page,
  .casino-page {
    padding: 20px 12px;
  }

  .popular-page .popular-game-card,
  .slot-page .popular-game-card {
    padding: 12px;
  }

  .casino-page .casino-content {
    padding: 12px;
  }

  .casino-page .casino-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .casino-page .casino-game-card {
    padding: 9px;
  }
}


/* =================================
   HN2 PREMIUM NAVBAR COMPONENT
================================= */

.hn2-navbar {
  position: relative;
  z-index: 1000;
  width: 100%;
  min-height: 76px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(110deg, #080d18, #111c30);
  border-bottom: 1px solid #27344a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
}

.hn2-navbar-logo {
  color: #f4f6fb;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 3px;
  text-decoration: none;
}

.hn2-navbar-logo span {
  color: #e8b84e;
}

.hn2-navbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.hn2-navbar-menu a {
  position: relative;
  padding: 28px 0;
  color: #aab5c8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .25s ease;
}

.hn2-navbar-menu a:hover,
.hn2-navbar-menu a.active {
  color: #ffda80;
}

.hn2-navbar-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 2px;
  border-radius: 5px;
  background: #e8b84e;
  box-shadow: 0 0 10px #e8b84e80;
}

.hn2-navbar-login {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffda80, #dba638);
  color: #101827;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 0 5px 15px #e8b84e25;
  transition: .25s ease;
}

.hn2-navbar-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #e8b84e45;
}

.hn2-navbar-login span {
  font-size: 18px;
}

.hn2-navbar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid #34435c;
  border-radius: 8px;
  background: #111a2b;
  cursor: pointer;
}

.hn2-navbar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 5px;
  background: #ffda80;
}

/* NAVBAR MOBILE */
@media (max-width: 760px) {
  .hn2-navbar {
    min-height: 68px;
    padding: 0 18px;
    gap: 12px;
  }

  .hn2-navbar-logo {
    font-size: 25px;
  }

  .hn2-navbar-toggle {
    display: block;
    margin-left: auto;
  }

  .hn2-navbar-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: #0d1626;
    border-bottom: 1px solid #27344a;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .3);
  }

  .hn2-navbar-menu.show {
    display: flex;
  }

  .hn2-navbar-menu a {
    padding: 15px 8px;
    border-bottom: 1px solid #202d42;
  }

  .hn2-navbar-menu a.active::after {
    display: none;
  }

  .hn2-navbar-login {
    padding: 11px 14px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .hn2-navbar {
    padding: 0 10px;
  }

  .hn2-navbar-logo {
    font-size: 22px;
  }

  .hn2-navbar-login {
    padding: 10px;
  }
}


/* NAVBAR MOBILE POSITION */
@media (max-width: 760px) {
  .hn2-navbar {
    justify-content: space-between;
  }

  .hn2-navbar-toggle {
    margin-left: auto;
    margin-right: 4px;
    flex-shrink: 0;
  }
}

/* HN2 LIVE CHAT PAGE */
.hn2-page-header {
  padding: 25px 20px;
  text-align: center;
  background: linear-gradient(135deg, #101c30, #080d18);
  border-bottom: 1px solid #27344a;
}

.hn2-page-logo {
  display: inline-block;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 3px;
  text-decoration: none;
}

.hn2-page-logo span {
  color: #e8b84e;
}

.hn2-page-header h1 {
  margin: 18px 0 5px;
  color: #ffda80;
  font-size: 24px;
}

.hn2-page-header p {
  margin: 0;
  color: #8994a8;
  font-size: 13px;
}

.hn2-page-content,
.chat-container {
  width: min(100% - 30px, 850px);
  margin: 30px auto;
}


.chat-panel {
  overflow: hidden;
  border: 1px solid #27344a;
  border-radius: 15px;
  background: #111a2b;
}

.chat-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border-bottom: 1px solid #27344a;
}

.chat-avatar {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  background: #e8b84e;
  color: #101827;
  font-weight: 900;
}

.chat-heading h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 16px;
}

.chat-status {
  color: #e8b84e;
  font-size: 11px;
}

.chat-messages {
  display: flex;
  min-height: 350px;
  max-height: 55vh;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  padding: 18px;
}

.chat-message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 12px;
}

.chat-message p {
  margin: 0 0 7px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.chat-message span {
  color: #aab5c8;
  font-size: 10px;
}

.support-message {
  align-self: flex-start;
  background: #202d42;
}

.user-message {
  align-self: flex-end;
  background: #55421f;
}

.chat-notice {
  padding: 12px;
  border: 1px solid #654e28;
  border-radius: 9px;
  color: #ffda80;
  font-size: 11px;
  line-height: 1.6;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #27344a;
}

.chat-input-area button {
  flex: 0 0 48px;
  border: 0;
  border-radius: 9px;
  background: #e8b84e;
  color: #101827;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 480px) {
  .hn2-page-content,
  .chat-container {
    width: calc(100% - 22px);
    margin: 18px auto;
  }

  .chat-messages {
    min-height: 320px;
  }
}

/* HN2 LIVE CHAT - NAVY GOLD THEME */
.live-chat-page {
  min-height: 100vh;
  background: #080d18;
  color: #f4f6fb;
}

.live-chat-page .hn2-page-header {
  background: #111a2b;
  border-bottom: 1px solid #27344a;
}

.live-chat-page .hn2-page-header h1 {
  color: #ffda80;
}

.live-chat-page .hn2-page-header p {
  color: #aab4c5;
}

.live-chat-page .chat-container {
  max-width: 850px;
}

.live-chat-page .chat-panel {
  background: #111a2b;
  border: 1px solid #3a465b;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.live-chat-page .chat-heading {
  background: #151f32;
  border-bottom: 1px solid #354158;
}

.live-chat-page .chat-avatar {
  background: linear-gradient(135deg, #ffda80, #c99532);
  color: #101827;
}

.live-chat-page .chat-heading h2 {
  color: #ffda80;
}

.live-chat-page .chat-status {
  color: #aab4c5;
}

.live-chat-page .chat-messages {
  background: #0b1322;
}

.live-chat-page .chat-message {
  max-width: 82%;
  padding: 12px 15px;
  border-radius: 13px;
}

.live-chat-page .user-message {
  align-self: flex-end;
  background: #73551f;
  border: 1px solid #b88b39;
  color: #fff8e8;
}

.live-chat-page .user-message span {
  color: #e8d3a7;
}

.live-chat-page .support-message {
  align-self: flex-start;
  background: #202d42;
  border: 1px solid #35445d;
  color: #f4f6fb;
}

.live-chat-page .chat-notice {
  background: #151f32;
  border: 1px solid #354158;
  color: #aab4c5;
}

.live-chat-page .chat-input-area {
  padding: 13px;
  background: #111a2b;
  border-top: 1px solid #354158;
}

.live-chat-page .chat-input-area input {
  background: #080d18;
  border: 1px solid #354158;
  color: #fff;
}

.live-chat-page .chat-input-area input::placeholder {
  color: #8994a8;
}

.live-chat-page .chat-input-area button {
  background: linear-gradient(135deg, #ffda80, #c99532);
  color: #101827;
  border: none;
  font-weight: 900;
}

@media (max-width: 480px) {
  .live-chat-page .chat-message {
    max-width: 90%;
  }
}

/* HN2 BOTTOM NAVIGATION */
.hn2-bottom-nav {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  min-height: 68px;
  padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
  background: #111a2b;
  border-top: 1px solid #3a465b;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.hn2-bottom-nav a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #8994a8;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.hn2-bottom-nav .bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 25px;
  font-size: 23px;
  line-height: 1;
}

.hn2-bottom-nav a.active {
  color: #ffda80;
}

.hn2-bottom-nav a.active .bottom-nav-icon {
  color: #e8b84e;
}

body:has(.hn2-bottom-nav) {
  padding-bottom: 90px;
}

@media (max-width: 380px) {
  .hn2-bottom-nav {
    padding-left: 2px;
    padding-right: 2px;
  }

  .hn2-bottom-nav a {
    font-size: 9px;
    gap: 4px;
  }

  .hn2-bottom-nav .bottom-nav-icon {
    font-size: 21px;
  }
}

/* HN2 DEPOSIT AND WITHDRAW */
.transaction-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.transaction-container {
  width: min(100% - 30px, 650px);
  margin: 30px auto;
}

.transaction-heading {
  margin-bottom: 22px;
}

.transaction-heading > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.transaction-heading h1 {
  margin: 8px 0;
  color: var(--gold-light);
  font-size: 27px;
  font-weight: 900;
}

.transaction-heading p,
.transaction-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.transaction-card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.transaction-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.transaction-card label {
  display: block;
  margin: 20px 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.transaction-card input {
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  font-size: 14px;
}

.transaction-card input:focus {
  border-color: var(--gold);
}

.transaction-notice {
  margin-top: 22px;
  padding: 15px;
  background: rgba(232, 184, 78, 0.08);
  border: 1px solid rgba(232, 184, 78, 0.3);
  border-radius: 10px;
}

.transaction-notice strong {
  color: var(--gold-light);
  font-size: 13px;
}

.transaction-notice p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.transaction-button {
  width: 100%;
  min-height: 47px;
  margin-top: 20px;
  border: 0;
  border-radius: 9px;
  background: #384154;
  color: #aab2c0;
  font-size: 13px;
  font-weight: 800;
  cursor: not-allowed;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .transaction-container {
    width: calc(100% - 24px);
    margin: 22px auto;
  }

  .transaction-card {
    padding: 18px;
  }
}

/* HN2 DEPOSIT PAGE */
.deposit-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #172942, #111a2b);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.deposit-balance span {
  color: var(--muted);
  font-size: 13px;
}

.deposit-balance strong {
  color: var(--gold-light);
  font-size: 21px;
}

.deposit-username {
  padding: 14px;
  margin-top: 8px;
  color: var(--muted);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
}

.deposit-section-title {
  margin: 25px 0 14px;
}

.deposit-methods {
  display: grid;
  gap: 11px;
}

.deposit-method {
  display: flex;
  cursor: pointer;
  user-select: none;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--input);
}

.deposit-method.selected {
  border-color: var(--gold);
  background: rgba(232, 184, 78, 0.07);
}

.deposit-method input {
  width: 17px;
  height: 17px;
  min-height: auto;
  accent-color: var(--gold);
}

.deposit-method-icon {
  font-size: 24px;
  color: var(--gold);
}

.deposit-method-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.deposit-method-info strong {
  font-size: 13px;
}

.deposit-method-info small {
  color: var(--muted);
  font-size: 11px;
}

.deposit-check {
  color: var(--gold);
  font-weight: 900;
}

.deposit-method:not(.selected) .deposit-check {
  display: none;
}

.deposit-method.unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}

.deposit-status {
  color: #e6a0a0;
  font-size: 10px;
  font-weight: 700;
}

.deposit-amount-section {
  margin-top: 26px;
}

.deposit-amount-section > label {
  margin: 0 0 10px;
}

.deposit-amount-section > label span {
  color: #ff7777;
}

.deposit-amount-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.deposit-amount-box:focus-within {
  border-color: var(--gold);
}

.deposit-amount-box span {
  color: var(--gold-light);
  font-weight: 700;
  white-space: nowrap;
}

.deposit-amount-box input {
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 19px;
  font-weight: 700;
}

.deposit-amount-box input:focus {
  outline: none;
  border: 0;
}

.deposit-amount-section > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.deposit-history {
  margin-top: 25px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.deposit-history h2 {
  margin: 0 0 18px;
  font-size: 16px;
}

.deposit-history-empty {
  padding: 28px 10px;
  text-align: center;
  color: var(--muted);
}

.deposit-history-empty span {
  font-size: 30px;
}

.deposit-history-empty p {
  font-size: 12px;
}


/* Deposit QRIS clickable */
.deposit-method:not(.unavailable) {
  cursor: pointer;
  pointer-events: auto;
}

.deposit-method:not(.unavailable) * {
  pointer-events: none;
}

.deposit-method:not(.unavailable) input {
  pointer-events: auto;
}

/* HN2 DEPOSIT BUTTON BLUE */
.transaction-button {
  background: #1769e8;
  color: #ffffff;
  cursor: pointer;
  opacity: 1;
  transition: background 0.2s ease;
}

.transaction-button:hover:not(:disabled) {
  background: #0d55c5;
}

.transaction-button:disabled {
  background: #263b5c;
  color: #9bb4d8;
  cursor: not-allowed;
  opacity: 0.8;
}

/* HN2 FEATURED AUTO SLIDER */
.featured-slider {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid #35445e;
  border-radius: 16px;
  background: #101a2c;
}

.featured-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 140px;
}

.featured-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.featured-slide.active {
  opacity: 1;
}

.featured-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.featured-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff80;
  cursor: pointer;
}

.featured-dot.active {
  width: 23px;
  border-radius: 10px;
  background: #e8b84e;
}

@media (max-width: 550px) {
  .featured-slider {
    margin-bottom: 20px;
  }

  .featured-slides {
    aspect-ratio: 16 / 7;
    min-height: 125px;
  }
}

/* HN2 HAMBURGER MENU - SLIDE FROM RIGHT */
@media (max-width: 760px) {
  .hn2-navbar {
    position: relative;
    z-index: 1000;
  }

  .hn2-navbar-menu {
    position: fixed;
    top: 68px;
    left: auto;
    right: 0;
    width: min(82vw, 320px);
    height: calc(100dvh - 68px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 14px 18px 24px;
    overflow-y: auto;
    background: #0d1626;
    border-left: 1px solid #27344a;
    border-bottom: 0;
    box-shadow: -12px 12px 25px rgba(0, 0, 0, .35);

    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform .32s ease,
      visibility .32s ease;
  }

  .hn2-navbar-menu.show {
    display: flex;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .hn2-navbar-menu a {
    display: block;
    padding: 15px 8px;
    border-bottom: 1px solid #202d42;
  }

  .hn2-navbar-menu a.active::after {
    display: none;
  }

  .hn2-logout-button {
    margin-top: auto !important;
    flex-shrink: 0;
  }

  .hn2-navbar-toggle {
    position: relative;
    z-index: 1001;
    margin-left: auto;
    margin-right: 4px;
  }
}

/* HN2 SIDEBAR MENU */
.hn2-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1998;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.hn2-sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.hn2-sidebar {
  position: fixed;
  z-index: 1999;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  background: #0d1626;
  border-left: 1px solid #27344a;
  box-shadow: -12px 0 30px rgba(0, 0, 0, .35);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .32s ease, visibility .32s ease;
}

.hn2-sidebar.show {
  transform: translateX(0);
  visibility: visible;
}

.hn2-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #27344a;
}

.hn2-sidebar-header strong {
  color: #fff;
  font-size: 20px;
}

.hn2-sidebar-header strong span {
  color: #e8b84e;
}

.hn2-sidebar-header button {
  border: 0;
  background: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.hn2-sidebar-links {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  padding-top: 12px;
}

.hn2-sidebar-links a {
  padding: 13px 10px;
  color: #aab5c8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #202d42;
}

.hn2-sidebar-links a:hover,
.hn2-sidebar-links a.active {
  color: #ffda80;
  background: #17243a;
}

.hn2-sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid #27344a;
}

.hn2-sidebar-footer button {
  width: 100%;
  padding: 13px;
  color: #fff;
  background: #a83232;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

body.hn2-sidebar-open {
  overflow: hidden;
}

@media (min-width: 761px) {
  .hn2-navbar-toggle {
    display: block;
  }
}

/* =================================
   HN2 PROFILE PAGE
================================= */

.profile-body {
  min-height: 100vh;
  margin: 0;
  padding: 90px 16px 110px;
  background: var(--bg, #080d18);
  color: var(--text, #f4f6fb);
  font-family: Arial, sans-serif;
}

.profile-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.profile-heading {
  margin-bottom: 24px;
}

.profile-label {
  color: #e8b84e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.profile-heading h1 {
  margin: 8px 0;
  font-size: 28px;
}

.profile-heading p {
  margin: 0;
  color: #9ba9bd;
  font-size: 14px;
}

.profile-card {
  margin-bottom: 16px;
  padding: 20px;
  background: var(--panel, #111c2e);
  border: 1px solid var(--border, #27344a);
  border-radius: 15px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  display: flex;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5d477, #b8862c);
  color: #172033;
  font-size: 25px;
  font-weight: 800;
}

.profile-identity-info {
  min-width: 0;
}

.profile-identity-info h2 {
  margin: 0 0 6px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.profile-identity-info p {
  margin: 0 0 9px;
  color: #9ba9bd;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.profile-status {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid #80652d;
  border-radius: 20px;
  color: #f3cc70;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.profile-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-section-heading h2,
.profile-menu-title {
  margin: 0;
  font-size: 16px;
}

.profile-section-heading button {
  padding: 7px 14px;
  border: 1px solid #a98235;
  border-radius: 7px;
  background: transparent;
  color: #f3cc70;
  font-weight: 700;
  cursor: pointer;
}

.profile-info-list {
  display: flex;
  flex-direction: column;
}

.profile-info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #27344a;
}

.profile-info-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-info-item span {
  color: #9ba9bd;
  font-size: 13px;
}

.profile-info-item strong {
  max-width: 58%;
  color: #f4f6fb;
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.profile-menu-title {
  margin-bottom: 12px;
}

.profile-menu {
  display: flex;
  flex-direction: column;
}

.profile-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #27344a;
  color: #dce3ef;
  font-size: 14px;
  text-decoration: none;
}

.profile-menu a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-menu a span:last-child {
  color: #e8b84e;
  font-size: 22px;
}

.profile-menu a:hover {
  color: #f3cc70;
}

@media (max-width: 600px) {
  .profile-body {
    padding: 82px 13px 100px;
  }

  .profile-heading h1 {
    font-size: 24px;
  }

  .profile-card {
    padding: 17px;
    border-radius: 12px;
  }

  .profile-identity {
    gap: 13px;
  }

  .profile-avatar {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .profile-info-item {
    flex-direction: column;
    gap: 6px;
  }

  .profile-info-item strong {
    max-width: 100%;
    text-align: left;
  }
}



/* CASINO: PREMIUM METAL + NEON FINISH (2-COLUMN SCROLL) */
.casino-page .casino-header h1 {
  color: #ffd36a;
  text-shadow: 0 0 8px #ffbd45, 0 0 22px #b83250, 2px 3px 0 #35101d;
  letter-spacing: 1.5px;
}
.casino-page .casino-header p {
  color: #d9b9c4;
  text-shadow: 0 1px 8px #000;
}
.casino-page .casino-search {
  background: linear-gradient(145deg, #24101a, #101522 70%);
  border: 1px solid #9b5265;
  box-shadow: inset 0 1px 8px #000b, 0 0 12px #b8325033;
}
.casino-page .casino-search:focus {
  border-color: #ffd36a;
  box-shadow: 0 0 0 2px #ffd36a33, 0 0 18px #e8b84e66;
}
.casino-page .casino-content {
  background:
    radial-gradient(ellipse at 12% 0%, #6b203533, transparent 42%),
    radial-gradient(ellipse at 100% 100%, #bd8b2930, transparent 45%),
    repeating-linear-gradient(125deg, #ffffff08 0 1px, transparent 1px 9px),
    linear-gradient(145deg, #1b0b13, #0c101b 60%, #210e18);
  border: 1px solid #815064;
  box-shadow: inset 0 0 28px #000b, 0 10px 30px #0009;
}
.casino-page .casino-games-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.casino-page .casino-game-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #875064;
  border-radius: 16px;
  background:
    linear-gradient(145deg, #ffffff10, transparent 38%),
    linear-gradient(145deg, #351321, #111522 65%, #28101b);
  box-shadow: inset 0 1px 0 #ffffff20, inset 0 -10px 24px #0008,
              0 5px 14px #0009, 0 0 10px #b8325022;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.casino-page .casino-game-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -45% -80%;
  background: linear-gradient(110deg, transparent 42%, #ffd36a18 49%, #ffffff20 51%, transparent 58%);
  transform: translateX(-55%) rotate(12deg);
  animation: casino-card-shine 6s ease-in-out infinite;
  pointer-events: none;
}
.casino-page .casino-game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid #ffd36a22;
  pointer-events: none;
}
.casino-page .casino-game-card:hover,
.casino-page .casino-game-card:active {
  transform: translateY(-4px) scale(1.015);
  border-color: #ffd36a;
  box-shadow: inset 0 1px 0 #ffffff30, 0 0 0 1px #ffd36a55,
              0 0 20px #e8b84e55, 0 10px 22px #000b;
}
.casino-page .casino-game-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 11px;
  background: radial-gradient(circle, #532331 0%, #1a1019 58%, #0c1019 100%);
  filter: drop-shadow(0 4px 8px #000b) saturate(1.18) contrast(1.04);
  transition: transform .25s ease, filter .25s ease;
}
.casino-page .casino-game-card:hover .casino-game-image {
  transform: scale(1.035);
  filter: drop-shadow(0 0 9px #e8b84e88) saturate(1.28) contrast(1.06);
}
.casino-page .casino-game-card h3 {
  min-height: 2.5em;
  margin: 9px 0 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe0a0;
  text-align: center;
  overflow-wrap: anywhere;
  line-height: 1.3;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 800;
  letter-spacing: .6px;
  text-shadow: 0 0 8px #e8b84e55, 0 2px 3px #000;
}
@keyframes casino-card-shine {
  0%, 62%, 100% { transform: translateX(-55%) rotate(12deg); opacity: 0; }
  70% { opacity: 1; }
  86% { transform: translateX(55%) rotate(12deg); opacity: .65; }
}
@media (prefers-reduced-motion: reduce) {
  .casino-page .casino-game-card::before { animation: none; }
  .casino-page .casino-game-card,
  .casino-page .casino-game-image { transition: none; }
}
@media (max-width: 550px) {
  .casino-page .casino-content { padding: 12px; }
  .casino-page .casino-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .casino-page .casino-game-card { padding: 9px; }
}

/* =========================================
   HN2 GLOBAL VISUAL POLISH — DARK METAL
   Visual layer only: preserves page layouts,
   game/provider contents and image sizing.
========================================= */
:root {
  --bg: #070910;
  --panel: #111521;
  --input: #0b101b;
  --gold: #e7b64b;
  --gold-light: #ffe09a;
  --text: #f5f1e9;
  --muted: #a3a8b5;
  --border: #34313a;
  --hn2-red: #8f263b;
  --hn2-glow: rgba(231,182,75,.22);
}

html { color-scheme: dark; scroll-behavior: smooth; }
body:not(.auth-body) {
  background-color: #070910;
  background-image:
    radial-gradient(ellipse at 8% -8%, rgba(130,35,55,.20), transparent 38%),
    radial-gradient(ellipse at 95% 18%, rgba(180,126,38,.11), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 30%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 1px, transparent 1px 8px);
  background-attachment: fixed;
}

.home-header, .hn2-navbar {
  background: linear-gradient(105deg, rgba(7,9,16,.97), rgba(25,17,25,.96) 52%, rgba(12,16,25,.97));
  border-bottom: 1px solid rgba(231,182,75,.38);
  box-shadow: 0 9px 28px rgba(0,0,0,.48), 0 1px 18px rgba(143,38,59,.10);
  backdrop-filter: blur(14px);
}
.home-logo, .hn2-navbar-logo, .auth-brand {
  text-shadow: 0 0 14px rgba(231,182,75,.28), 0 2px 2px #000;
}
.home-nav a, .hn2-navbar-menu a {
  transition: color .22s ease, text-shadow .22s ease;
}
.home-nav a:hover, .hn2-navbar-menu a:hover,
.home-nav a.active, .hn2-navbar-menu a.active {
  color: #ffe3a2;
  text-shadow: 0 0 12px rgba(231,182,75,.48);
}

/* Consistent premium surfaces without changing their geometry */
.auth-card, .transaction-card, .profile-card, .chat-panel,
.deposit-balance, .withdraw-balance, .security-card,
.settings-card, .users-card, .live-chat-page .chat-panel {
  background-image: linear-gradient(145deg, rgba(255,255,255,.045), transparent 42%),
                    linear-gradient(145deg, rgba(33,22,30,.96), rgba(12,16,25,.98));
  border-color: rgba(190,151,91,.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),
              0 14px 34px rgba(0,0,0,.34),
              0 0 22px rgba(143,38,59,.07);
}

h1, h2, h3, .transaction-heading h1, .profile-heading h1,
.category-page h1, .popular-header h1, .slot-header h1,
.casino-header h1, .hn2-page-header h1 {
  text-shadow: 0 0 18px rgba(231,182,75,.16), 0 2px 3px #000;
}

button, .auth-button, .transaction-button, .popular-game-button,
.hn2-navbar-login, .chat-input-area button {
  transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
}
button:hover, .auth-button:hover, .transaction-button:hover,
.hn2-navbar-login:hover, .chat-input-area button:hover {
  filter: brightness(1.09);
  box-shadow: 0 0 18px rgba(231,182,75,.22);
}
button:active, .auth-button:active, .transaction-button:active {
  transform: translateY(1px) scale(.985);
}

input:not([type="checkbox"]), select, textarea,
.auth-form input:not([type="checkbox"]), .auth-form select {
  background-color: rgba(7,11,19,.88);
  border-color: rgba(164,139,104,.34);
  color: #f5f1e9;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #d8aa4b !important;
  box-shadow: 0 0 0 3px rgba(231,182,75,.12), 0 0 16px rgba(231,182,75,.10) !important;
  outline: none;
}

.hn2-sidebar {
  background: linear-gradient(160deg, #1b111a, #0a0e17 62%, #111522);
  border-left-color: rgba(231,182,75,.38);
  box-shadow: -18px 0 42px rgba(0,0,0,.58), -2px 0 18px rgba(143,38,59,.13);
}
.hn2-sidebar-header, .hn2-sidebar-footer { border-color: rgba(231,182,75,.24); }
.hn2-sidebar-links a {
  transition: color .2s ease, background .2s ease, padding-left .2s ease;
}
.hn2-sidebar-links a:hover, .hn2-sidebar-links a.active {
  background: linear-gradient(90deg, rgba(143,38,59,.25), rgba(231,182,75,.07));
  box-shadow: inset 3px 0 #d6a647;
  padding-left: 15px;
}
.hn2-sidebar-footer button {
  background: linear-gradient(110deg, #81283b, #a33b3b);
  border: 1px solid rgba(255,190,150,.22);
  box-shadow: 0 5px 18px rgba(143,38,59,.24);
}

/* Gentle entrance for page content; no layout or asset changes */
.home-main, .transaction-container, .profile-container,
.category-page, .popular-page, .slot-page, .casino-page,
.live-chat-page, .security-container, .settings-container {
  animation: hn2-page-arrive .55s ease both;
}
@keyframes hn2-page-arrive {
  from { opacity: .72; }
  to { opacity: 1; }
}

::selection { background: rgba(190,52,73,.42); color: #fff7e7; }
:focus-visible { outline: 2px solid #e7b64b; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-main, .transaction-container, .profile-container,
  .category-page, .popular-page, .slot-page, .casino-page,
  .live-chat-page, .security-container, .settings-container { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* FIX: Pastikan tombol Logout selalu terlihat */
.hn2-sidebar {
  box-sizing: border-box;
  overflow: hidden;
}

.hn2-sidebar-header {
  flex: 0 0 auto;
}

.hn2-sidebar-links {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hn2-sidebar-footer {
  flex: 0 0 auto;
  display: block;
  padding-top: 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: #0d1626;
  position: relative;
  z-index: 2;
}

.hn2-sidebar-footer button {
  display: block;
  width: 100%;
}

/* Tombol Logout di samping judul sidebar */
.hn2-sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hn2-sidebar-header-actions .hn2-sidebar-logout {
  padding: 7px 10px;
  color: #fff;
  background: linear-gradient(110deg, #81283b, #a33b3b);
  border: 1px solid rgba(255,190,150,.3);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hn2-sidebar-header-actions #hn2SidebarClose {
  padding: 0;
}
