/* ===============================
   RESET & BASE
   =============================== */
* {
  box-sizing: border-box;
  font-family: "Inter", "Poppins", system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(1200px 600px at top, #1a1f2e 0%, #0b0f14 55%);
  color: #e5e7eb;
}

/* ===============================
   TYPOGRAPHY
   =============================== */
h1 {
  text-align: center;
  font-weight: 800;
  color: #f5c86a;
  letter-spacing: 1.5px;
}

a { color: inherit; }
a:hover { text-decoration: none; }

img {
  vertical-align: middle;
  border-style: none;
}

/* ===============================
   CONTAINER
   =============================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* ===============================
   TITLE
   =============================== */
.title {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.title-text {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
}

/* ===============================
   SLOT LAYOUT
   =============================== */
.slot {
  display: block;
}

/* ===============================
   SIDEBAR PROVIDER
   =============================== */
.slot-sidebar {
  background: transparent;
}

.slot-sidebar-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 15px;
  list-style: none;
}

.slot-sidebar-nav > li {
  flex: 1;
}

.slot-sidebar-nav > li > a {
  display: block;
  padding: 12px 10px;
  background: linear-gradient(180deg, #171c26, #0e121a);
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  color: #e5e7eb;
}

.slot-sidebar-nav > li > a:hover {
  background: linear-gradient(180deg, #22293a, #121722);
}

/* ===============================
   CONTENT
   =============================== */
.slot .content {
  width: 80%;
  float: right;
}

/* ===============================
   GAME CARD
   =============================== */
.card {
  float: left;
  width: 25%;
  padding: 8px;
}

.card-content {
  background: linear-gradient(180deg, #161b25, #0d1119);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
  position: relative;
  overflow: hidden;
}

.card-content:hover {
  transform: translateY(-6px);
}

.img-zoom {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .4s ease;
}

.card-content:hover .img-zoom {
  transform: scale(1.08);
}

/* ===============================
   PLAY BUTTON
   =============================== */
.hover-btn {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.card-content:hover .hover-btn {
  opacity: 1;
}

.play-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, #f5c86a, #ffdd9a);
  color: #111;
  font-weight: 800;
  border-radius: 999px;
  font-size: 14px;
}

/* ===============================
   RTP BAR
   =============================== */
.percent {
  height: 22px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
  position: relative;
}

.percent p {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  line-height: 22px;
}

.percent-bar {
  height: 100%;
  transition: width .4s ease;
}

.green { background: #22c55e; }
.yellow { background: #facc15; }
.black { background: #ef4444; }

/* ===============================
   LOGIN CENTER
   =============================== */
.login-center {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px 0;
}

.btn-login,
.btn-daftar {
  padding: 14px 34px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: .5px;
}

.btn-login {
  background: #0f141f;
  color: #f5c86a;
  border: 1px solid rgba(245,200,106,.4);
}

.btn-daftar {
  background: linear-gradient(135deg, #f5c86a, #ffdd9a);
  color: #111;
}

/* ===============================
   CHATROOM
   =============================== */
.chat-wrapper {
  margin-top: 30px;
  background: linear-gradient(180deg, #151a24, #0c1017);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}

.chat-header {
  padding: 14px;
  font-weight: 800;
  color: #f5c86a;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.chat-box {
  height: 260px;
  padding: 12px;
  overflow-y: auto;
  background: transparent;
  font-size: 13px;
}

.chat-line {
  margin-bottom: 6px;
}

.chat-time {
  color: #94a3b8;
  font-size: 11px;
}

.chat-user {
  color: #22c55e;
  font-weight: 700;
}

.chat-msg {
  color: #e5e7eb;
}

.self-chat {
  background: rgba(34,197,94,.12);
  padding-left: 6px;
  border-left: 3px solid #22c55e;
}

.vip-badge {
  margin-left: 4px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg,#f5c86a,#ffdd9a);
  color: #111;
}

/* ===============================
   CHAT INPUT
   =============================== */
.chat-username,
.chat-input {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.chat-username input,
.chat-input input {
  flex: 1;
  padding: 12px;
  background: #0f141f;
  color: #fff;
  border: 1px solid #1f2937;
  border-radius: 10px;
}

.chat-username button,
.chat-input button {
  padding: 12px 20px;
  background: linear-gradient(135deg,#f5c86a,#ffdd9a);
  color: #111;
  font-weight: 800;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 992px) {
  .card { width: 33.3%; }
  .slot .content { width: 100%; float: none; }
}

@media (max-width: 576px) {
  .card { width: 50%; }
}
