/* Clean flat white full-width design - Login only */

/* THEME */
:root {
  --bg-white: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --panel: #f7fafc;
  --accent: #007bff;
  --border: #e6eef8;
  --radius: 10px;
  --max-width: 1000px;
  --gap: 18px;
  --base-font: 14px;
}

/* RESET */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg-white);
  color: var(--text);
  font-size: var(--base-font);
  -webkit-font-smoothing: antialiased;
}

/* SITE ROOT */
.site-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f4f8;
}

.brand-text .brand-title {
  font-size: 18px;
  font-weight: 800;
}

.brand-text .brand-sub {
  font-size: 13px;
  color: var(--muted);
}

/* header actions */
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 8px 10px;
  font-weight: 700;
}

/* MAIN CONTENT */
.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 24px;
}

/* AUTH SECTION */
.auth-section {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 700px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 6px 18px rgba(3, 10, 28, 0.04);
}

/* text */
.auth-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.auth-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.field-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  display: block;
}

.field-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}

.field-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
}

.field-row input::placeholder {
  color: #9aa7b6;
}

/* buttons */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

/* OTP block */
.otp-section {
  margin-top: 12px;
}

.otp-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.btn-link-inline {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font-weight: 700;
  font-size: 13px;
}

/* divider */
.or-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.or-line::before,
.or-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.or-line span {
  color: var(--muted);
  font-size: 13px;
}

/* info section */
.info-section {
  display: flex;
  justify-content: center;
}

.info-card {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.info-left strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.info-text {
  color: var(--muted);
  font-size: 13px;
}

.qr {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  margin-top: auto;
  background: var(--bg-white);
  
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}

/* responsive */
@media (max-width:700px) {
  .field-row {
    flex-direction: column;
  }

  .field-row input {
    width: 100%;
  }

  .auth-card {
    padding: 14px;
  }

  .header-inner {
    padding: 10px 12px;
  }
}

/* === Dashboard / header / sidebar styles (append) === */

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f4f8;
}

.top-brand {
  font-weight: 800;
  font-size: 18px;
}

.top-brand .accent {
  color: var(--accent);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-preview {
  text-align: right;
  margin-right: 6px;
}

.wallet-label {
  font-size: 12px;
  color: var(--muted);
}

.wallet-value {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}

.btn-small {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.profile-wrap {
  position: relative;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 36px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  display: block;
  width: 100%;
  text-align: left;
}

/* Dashboard layout */
.dashboard-layout {
  display: flex;
  gap: 18px;
  max-width: var(--max-width);
  margin: 18px auto;
  padding: 0 18px;
}

.sidebar {
  width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(3, 10, 28, 0.04);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  text-decoration: none;
  color: var(--text);
  padding: 10px;
  border-radius: 8px;
  display: block;
}

.nav-item:hover {
  background: #f1f7ff;
  color: var(--accent);
}

.nav-active {
  background: #f1f7ff;
  color: var(--accent);
  font-weight: 700;
}

.sidebar-footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

/* main panel */
.main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.small-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  align-items: flex-start;
}

.k {
  color: var(--muted);
  font-size: 13px;
}

.v {
  font-weight: 800;
  font-size: 18px;
}

.dashboard-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.transactions-wrap {
  overflow: auto;
  padding: 12px;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.transactions-table th {
  color: var(--muted);
  font-weight: 700;
}

/* responsive */
@media (max-width:900px) {
  .dashboard-layout {
    flex-direction: column;
    padding: 0 12px;
  }

  .sidebar {
    width: 100%;
    order: 2;
  }

  .main-panel {
    order: 1;
  }
}

/* === DASHBOARD / HEADER / SIDEBAR STYLES === */

/* topbar */
.topbar-wrap {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 60;
}

.top-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  gap: 12px;
}

.hamburger {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f5f7fb;
}

.top-brand {
  font-weight: 800;
  font-size: 18px;
}

.top-brand .accent {
  color: #007bff;
}

/* actions */
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  padding: 8px;
  cursor: pointer;
}

.icon-wallet {
  background: #fff;
  border: 1px solid #f0f0f0;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 700;
}

.coin {
  font-weight: 900;
  margin-right: 4px;
  color: #c58b00;
}

/* info banner */
.info-banner {
  background: #d33a4a;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
}

.info-banner .marquee {
  margin-left: 8px;
  font-weight: 600;
}

/* layout container */
.dashboard-container {
  display: flex;
  gap: 18px;
  max-width: 1200px;
  margin: 12px auto;
  padding: 0 16px;
  align-items: flex-start;
}

#sidebar-root {
  width: 260px;
}

/* sidebar styles */
.app-sidebar {
  width: 260px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eef2f6;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  padding: 12px;
  position: fixed;
  left: 12px;
  top: 78px;
  height: calc(100vh - 120px);
  overflow: auto;
  z-index: 80;
  transition: transform .25s ease;
}

.sidebar-top {
  padding-bottom: 8px;
  border-bottom: 1px solid #f2f6fa;
  margin-bottom: 8px;
}

.profile {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.profile-info .pname {
  font-weight: 700;
}

.profile-info .psub {
  color: #6b7280;
  font-size: 13px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.side-item {
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
}

.side-item:hover {
  background: #f6fbff;
  color: #007bff;
}

.side-item.logout {
  color: #d33a4a;
}

/* overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 70;
  display: none;
}

/* main panel */
.dashboard-main {
  flex: 1;
  margin: auto;
  max-width:1200px;
  width:100%;
  padding-bottom: 40px;
}

/* games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.game-card {
  background: #fff;
  border: 1px solid #f2f6fa;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
}

.game-media {
  background: #0f4ea8;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.game-media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.game-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #ff3b3b;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
}

.coming-badge {
  background: #ff6b6b;
}

/* body */
.game-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-body h4 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.6px;
}

.muted {
  color: #6b7280;
  font-size: 13px;
  margin: 0;
}

/* cta */
.game-cta {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-primary {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.btn-outline {
  background: transparent;
  border: 1px solid #e6eef8;
  color: #111827;
  padding: 8px 12px;
  border-radius: 8px;
}

/* small widgets */
.dashboard-widgets {
  margin-top: 18px;
}

.notice {
  padding: 12px;
}

/* footer offset */
.site-footer {
  margin-top: 30px;
}

/* responsive */
@media (max-width:1000px) {
  .dashboard-container {
    padding: 0 12px;
  }

  #sidebar-root {
    display: none;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .app-sidebar {
    position: fixed;
    left: 8px;
    top: 64px;
    transform: translateX(-110%);
  }

  .sidebar-overlay {
    display: none;
  }
}

/* ===== HEADER ===== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px
}

.menu-btn {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px
}

.logo {
  width: 40px;
  height: 40px
}

.brand-text span {
  color: #1e88e5;
  font-weight: 700
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px
}

.icon-btn {
  position: relative;
  font-size: 18px;
  text-decoration: none;
  color: #000
}

.wallet-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #f0c040;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.icon-img {
  width: 18px
}

.plus {
  color: red;
  font-weight: 700;
  font-size: 14px
}

/* info strip */
.info-strip {
  background: #e63946;
  color: #fff;
  padding: 6px;
  font-size: 13px;
  text-align: center;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  padding: 14px;
  transition: .3s;
}

.sidebar.open {
  left: 0
}

.sidebar-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-menu {
  margin-top: 14px;
  display: flex;
  flex-direction: column
}

.side-item {
  padding: 10px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  color: #000;
}

.side-item:hover {
  background: #f5f5f5
}

.logout {
  color: red
}

/* overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  display: none;
  z-index: 999;
}

.sidebar-overlay.show {
  display: block
}

/* ===== DASHBOARD GAME GRID (BAAZIGAR STYLE) ===== */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr)!important;
  gap: 16px;
  padding: 16px;
}

/* CARD */
.game-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

/* IMAGE AREA */
.card-image {
  position: relative;
  aspect-ratio: 1/1;
  background: #eee;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TAG */
.tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
}

.tag.red {
  background: #e63946
}

.tag.gray {
  background: #6c757d
}

/* BODY */
.card-body {
  padding: 12px;
  text-align: center;
}

.card-body h4 {
  margin: 6px 0 10px;
  font-size: 14px;
  font-weight: 700;
}

/* BUTTONS */
.play-btn {
  width: 100%;
  background: #1e88e5;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-weight: 700;
}

.coming-btn {
  width: 100%;
  background: #cfcfcf;
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-weight: 700;
  color: #555;
}

/* MOBILE */
@media(max-width:520px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== GAME GRID ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}

/* GAME CARD */
.game-card {
  background: linear-gradient(180deg, #0b2d6b, #081c3a);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  border: 3px solid #e21818;
  cursor: pointer;
  transition: transform .2s ease;
}

.game-card:hover {
  transform: scale(1.03);
}

/* IMAGE */
.game-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 10px;
}

/* TITLE */
.game-card h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin: 6px 0 10px;
}

/* BADGE */
.badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 20px;
  color: #fff;
}

.badge.green {
  background: #0bbf7a;
}

.badge.red {
  background: #d62828;
}

/* ACTIVE CARD BORDER GLOW */
.game-card.active {
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.6);
}

/* ===== NEW HEADER DESIGN ===== */

.app-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

/* LEFT */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 38px;
  height: 38px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-weight: 800;
  font-size: 15px;
}

.brand-sub {
  font-size: 13px;
  font-weight: 700;
  color: #1e88e5;
}

/* RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CIRCULAR ICON */
.icon-circle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  background: #fff;
}

.icon-png {
  width: 18px;
  height: 18px;
}

/* WALLET */
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #f4c430;
  background: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
}

.rupee-icon {
  width: 16px;
}

.plus {
  color: red;
  font-weight: 800;
  margin-left: 2px;
}

.plus.small {
  font-size: 12px;
}

/* INFO STRIP */
.info-strip {
  background: #e63946;
  color: #fff;
  font-size: 13px;
  padding: 6px 8px;
  text-align: center;
}

/* MOBILE */
@media(max-width:480px) {
  .wallet-pill span {
    font-size: 13px;
  }
}

/* ===== GAME / BATTLES STYLES ===== */

.page-wrap {
  padding: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.battle-panel {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #eef2f6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.create-row {
  display: flex;
  gap: 8px;
  margin: 10px 0 18px;
}

.create-row input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6eef8;
}

.create-row .btn-primary {
  padding: 10px 12px;
  border-radius: 8px;
  background: #0d6efd;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.section-title {
  margin-top: 6px;
  margin-bottom: 8px;
  font-weight: 800;
}

/* battles list */
.battles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* open battle card */
.battle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #eef2f6;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.battle-left .playing-for {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-coin {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.pname {
  font-weight: 700;
}

/* right column */
.battle-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.prize {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.join-btn {
  background: #198754;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

/* running card */
.running-card {
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.running-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b7280;
  align-items: center;
}

.running-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vs {
  padding: 6px 10px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 800;
}

/* responsive */
@media(max-width:700px) {
  .page-wrap {
    padding: 12px;
  }

  .battle-right {
    align-items: flex-end;
  }

  .running-body {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

/* ===== BATTLES / GAME LIST STYLES (paste at end of style.css) ===== */

/* layout */
.page-wrap {
  max-width: 980px;
  margin: 12px auto;
  padding: 12px;
}

.battle-panel {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.04);
}

/* create row */
.create-row {
  display: flex;
  gap: 8px;
  margin: 10px 0 18px;
}

.create-row input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6eef8;
}

.btn-set {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* open heading */
.open-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.open-heading .left {
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rules-btn {
  background: #06b6d4;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* battles list */
.battles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

/* open card */
.open-card {
  border: 1px solid #e6eef8;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 12px rgba(2, 6, 23, 0.03);
}

.open-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
}

.mini-coin {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.open-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 12px rgba(2, 6, 23, 0.05);
}

.pname {
  font-weight: 800;
  color: #111827;
}

.vs {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-weight: 800;
}

/* join button */
.join-btn {
  background: #198754;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

/* running card */
.running-card {
  border: 1px solid #e6eef8;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 6px 12px rgba(2, 6, 23, 0.03);
}

.running-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 800;
  margin-bottom: 10px;
}

.running-body {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.left-player,
.right-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player .pname {
  font-size: 14px;
}

/* small utilities */
.muted {
  color: #6b7280;
}

.card {
  background: #fff;
  border-radius: 8px;
}

.info-strip {
  background: #d33a4a;
  color: #fff;
  padding: 8px 12px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 8px;
}

/* responsive */
@media (max-width:700px) {
  .page-wrap {
    padding: 10px;
    margin: 10px;
  }

  .open-top,
  .running-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .open-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .join-btn {
    width: 100%;
  }
}

.app-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fff
}

.logo {
  width: 40px
}

.right {
  margin-left: auto;
  display: flex;
  gap: 10px
}

.wallet {
  border: 1px solid orange;
  padding: 4px 8px;
  border-radius: 10px
}

.info-strip {
  background: #d33;
  color: #fff;
  padding: 8px;
  text-align: center
}

#sidebar {
  position: fixed;
  left: -250px;
  top: 0;
  width: 250px;
  height: 100vh;
  background: #fff
}

#sidebar.open {
  left: 0
}

#sidebarOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4)
}

#sidebarOverlay.show {
  display: block
}

.battle-card {
  border: 1px solid #ddd;
  padding: 10px;
  margin: 10px 0
}

.row {
  display: flex;
  justify-content: space-between
}

.center {
  justify-content: center;
  gap: 10px
}

.vs {
  padding: 4px 8px;
  border-radius: 50%;
  background: #eee
}

.join-btn {
  background: green;
  color: #fff;
  border: none;
  padding: 6px 12px
}

.coin {
  width: 14px
}

/* ===== COMMON PAGE UI ===== */

.page-wrap {
  max-width: 900px;
  margin: 16px auto;
  padding: 16px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.muted {
  color: #6b7280;
  font-size: 14px;
}

/* ===== PROFILE PAGE ===== */

.profile-card {
  max-width: 500px;
  margin: auto;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
}

.active {
  color: #16a34a;
}

.btn-outline {
  border: 1px solid #2563eb;
  color: #2563eb;
  background: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-outline.full {
  width: 100%;
}

/* ===== WIN CASH PAGE ===== */

.win-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.win-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #f9fafb;
}

.win-box h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.win-box p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #6b7280;
}

.tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.tag.green {
  background: #dcfce7;
  color: #166534;
}

.tag.gray {
  background: #e5e7eb;
  color: #374151;
}

.note-box {
  margin-top: 20px;
  padding: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  font-size: 14px;
}

/* mobile */
@media(max-width:600px) {
  .win-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== GAME HISTORY PAGE ===== */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.history-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.history-top {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.history-middle {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 14px;
  color: #374151;
}

.history-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
}

/* STATUS */
.status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.status.win {
  background: #dcfce7;
  color: #166534;
}

.status.lose {
  background: #fee2e2;
  color: #991b1b;
}

.status.pending {
  background: #fef3c7;
  color: #92400e;
}

/* AMOUNT */
.amount.plus {
  color: #16a34a;
  font-weight: 600;
}

.amount.minus {
  color: #dc2626;
  font-weight: 600;
}

.amount.neutral {
  color: #374151;
  font-weight: 600;
}

/* ===== TRANSACTION HISTORY PAGE ===== */

.txn-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.txn-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.txn-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.txn-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.txn-item.credit {
  border-left: 5px solid #22c55e;
}

.txn-item.debit {
  border-left: 5px solid #ef4444;
}

.date {
  font-size: 12px;
  color: #6b7280;
}

/* ===== REFER & EARN PAGE ===== */

.refer-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  background: #f0f9ff;
}

.refer-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-weight: 700;
  letter-spacing: 1px;
}

.how-it-works {
  margin-top: 20px;
}

.steps {
  margin-top: 10px;
  padding-left: 18px;
}

.steps li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #374151;
}

.share-box {
  margin-top: 20px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #2563eb;
  background: #ffffff;
  color: #2563eb;
  cursor: pointer;
  font-size: 14px;
}

.share-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

/* ===== REFER HISTORY PAGE ===== */

.refer-history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.refer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.refer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.refer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status.active {
  background: #dcfce7;
  color: #166534;
}

.status.pending {
  background: #fef3c7;
  color: #92400e;
}

.status.inactive {
  background: #e5e7eb;
  color: #374151;
}

/* ===== NOTIFICATION PAGE ===== */

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.notify-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.notify-item.unread {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.notify-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notify-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.notify-text p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #374151;
}

.notify-time {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

/* ===== SUPPORT PAGE ===== */

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.support-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  text-align: center;
}

.support-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.support-box h3 {
  margin: 6px 0;
  font-size: 16px;
}

.support-box p {
  font-size: 14px;
  margin-bottom: 12px;
}

@media(max-width:600px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== POLICY PAGE ===== */

.policy-section {
  margin-top: 28px;
}

.policy-section h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: #111827;
}

.policy-section p {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

.back-btn {
  background: #86d10c;
  color: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;

  position: sticky;
  top: 20px;
  margin-bottom: 10px;
  margin-left: 20;
}

.running-battles {
  margin-top: 15px;
}

.battle-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  animation: slideIn .3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

.battle-left {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.battle-center {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.simple-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.deposit-card {
  margin: 15px;
  padding: 16px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0;
}

.amount-grid button {
  padding: 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-box {
  background: #fff;
  width: 90%;
  max-width: 320px;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
}

.qr-img {
  width: 200px;
  margin: 10px auto;
}

.popup-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.success {
  animation: pop .3s ease;
}

@keyframes pop {
  from {
    transform: scale(.8);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.success-icon {
  font-size: 40px;
}

.pending {
  color: orange;
  font-weight: bold;
}

/* ADD MONEY PAGE */

body {
  background: #f5f7fb;
  font-family: system-ui;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.back-btn,
.guide-btn {
  background: #0f766e;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
}

.addmoney-card {
  background: #fff;
  margin: 14px;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.amount-input {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 8px;
  margin: 6px 0;
}

.amount-input span {
  font-size: 18px;
  margin-right: 6px;
}

.amount-input input {
  border: none;
  outline: none;
  font-size: 16px;
  width: 100%;
}

.minmax {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.amount-grid div {
  background: #f1f5f9;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
}

.next-btn {
  position: fixed;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: #0f766e;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
}

/* POPUP */
.popup-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-card {
  background: #fff;
  width: 90%;
  max-width: 320px;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  animation: pop .3s ease;
}

.qr-box img {
  width: 220px;
}

.popup-card input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.popup-btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.popup-btns button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
}

.cancel {
  background: #e5e7eb;
}

.submit {
  background: #0f766e;
  color: #fff;
}

.success {
  text-align: center;
}

.success-icon {
  font-size: 42px;
}

.pending {
  color: orange;
  font-weight: 700;
}

.ok-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 8px;
}

@keyframes pop {
  from {
    transform: scale(.8);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

/* ===== RUNNING BATTLE ALIGNMENT ===== */

.running-battles {
  margin-top: 12px;
}

.battle-row {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.battle-amount,
.battle-prize {
  font-size: 12px;
  text-align: center;
  min-width: 70px;
}

.battle-amount span,
.battle-prize span {
  color: #666;
  font-size: 11px;
}

.battle-amount div,
.battle-prize div {
  font-weight: 700;
  color: #111;
}

.battle-vs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.player img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.vs {
  background: #f1f5f9;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ===== RUNNING BATTLES SLIDER ===== */

.battle-slider {
  height: 420px;
  /* 10 items visible */
  overflow: hidden;
  position: relative;
}

#battleTrack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* battle card */
.battle-row {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

/* left & right amount */
.battle-amount,
.battle-prize {
  font-size: 10px !importanti;
  text-align: center;
  min-width: 70px;
}

.battle-amount span,
.battle-prize span {
  color: #666;
  font-size: 11px;
}

.battle-amount div,
.battle-prize div {
  font-weight: 700;
}

/* center vs */
.battle-vs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.player img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.vs {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* simple clean styles */
:root {
  --accent: #0f766e;
  --muted: #667085;
  --card: #fff;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f4f6fb;
  color: #0b1220
}

.topbar {
  background: #fff;
  padding: 10px;
  border-bottom: 1px solid #eee
}

.container {
  max-width: 420px;
  margin: 18px auto;
  padding: 12px
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(12, 15, 25, 0.04)
}

.row {
  display: flex;
  gap: 8px
}

.row input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6eef4
}

.btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer
}

.btn-primary {
  background: var(--accent);
  color: #fff
}

.limits {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px
}

.open-list {
  margin-top: 12px
}

.empty {
  color: #888;
  padding: 12px;
  text-align: center
}

.battle-card {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #eef3f8
}

.card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px
}

.card-body {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.who {
  display: flex;
  gap: 10px;
  align-items: center
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover
}

.actions {
  display: flex;
  gap: 8px
}

.players {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin: 12px 0
}

.player {
  display: flex;
  align-items: center;
  gap: 8px
}

.avatar-small {
  width: 46px;
  height: 46px;
  border-radius: 50%
}

.room-box {
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  border: 1px dashed #cfeffa;
  margin-top: 10px
}

.footer {
  text-align: center;
  color: #666;
  padding: 12px;
  font-size: 13px
}

/* ===== OPEN BATTLE CARD ===== */

.open-battle-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef2f6;
}

.open-battle-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

.open-battle-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.open-battle-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.open-battle-user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.open-battle-name {
  font-weight: 700;
  font-size: 15px;
}

.open-battle-money {
  margin-top: 4px;
  font-size: 13px;
  color: #374151;
}

.open-battle-money span {
  display: block;
}

.open-battle-profit {
  color: #16a34a;
  font-weight: 700;
}

.open-battle-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.open-battle-actions button {
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.open-battle-actions .play-btn {
  background: #16a34a;
  color: #fff;
}

.open-battle-actions .cancel-btn {
  background: #f3f4f6;
  color: #374151;
}

/* ===== OPEN BATTLES DESIGN ===== */

.no-battle {
  color: #777;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}

.open-battle-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #eef2f6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.open-battle-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.win-text {
  color: #16a34a;
  font-weight: 700;
}

.open-battle-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.open-battle-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.open-battle-user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.open-battle-name {
  font-weight: 700;
  font-size: 15px;
}

.open-battle-money {
  font-size: 13px;
  color: #374151;
  margin-top: 4px;
  line-height: 1.4;
}

.open-battle-profit {
  color: #16a34a;
  font-weight: 700;
}

.open-battle-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.open-battle-actions button {
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

.play-btn {
  background: #16a34a;
  color: #fff;
}

.cancel-btn {
  background: #f3f4f6;
  color: #374151;
}

/* ===== WITHDRAW SECTION ===== */

.withdraw-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  margin-top: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.withdraw-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.withdraw-sub {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

.withdraw-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.method-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-weight: 700;
  cursor: pointer;
}

.method-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.withdraw-form {
  display: block;
}

.withdraw-form.hidden {
  display: none;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.withdraw-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

