@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #0d1117;
  --panel: #161b22;
  --accent: #3dd598;
  --accent-2: #6c8cff;
  --text: #e6edf3;
  --muted: #8b949e;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(22, 27, 34, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #1f2630;
}

.nav {
  display: flex;
  gap: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav a {
  cursor: pointer;
}

.nav a:hover {
  color: var(--accent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  background: var(--accent);
  transition: transform 0.1s ease, opacity 0.2s ease;
}

.btn.secondary {
  background: var(--accent-2);
}

.btn.ghost {
  background: transparent;
  border: 1px solid #2d333b;
}

.btn.danger {
  background: var(--danger);
}

.btn:active {
  transform: translateY(1px);
}

.hero {
  padding: 32px 24px 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 20px;
}

.sidebar {
  background: #0f141b;
  border: 1px solid #1f2630;
  border-radius: 12px;
  padding: 16px;
  min-height: calc(100vh - 100px);
}

.sidebar-logo {
  margin-bottom: 12px;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}

.side-nav a.active,
.side-nav a:hover {
  background: #111820;
  color: var(--text);
}

.main {
  display: grid;
  gap: 18px;
}

.account-section {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid #1f2630;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.grid {
  display: grid;
  gap: 16px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.muted {
  color: var(--muted);
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #2d333b;
  font-size: 13px;
}

.balance {
  font-size: 32px;
  font-weight: 700;
}

.bet-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #2d333b;
  cursor: pointer;
  background: #11161d;
  transition: border 0.2s ease, transform 0.1s ease;
}

.option:hover {
  border-color: var(--accent);
}

.option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61, 213, 152, 0.4);
}

.dice {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.die {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1b2531, #141b24);
  display: grid;
  place-items: center;
  font-weight: 700;
}

input[type='number'],
input[type='text'],
input[type='password'] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2d333b;
  background: #0f141b;
  color: var(--text);
  font-size: 15px;
}

.input-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  align-items: center;
}

.history-list,
.mission-list,
.bet-list {
  display: grid;
  gap: 10px;
}

.history-item,
.mission-item,
.bet-item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #1f2630;
  background: #11161d;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bank-list {
  display: grid;
  gap: 12px;
}

.bank-item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #1f2630;
  background: #0f141b;
}

.bank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bank-name {
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid #1f2630;
  padding: 10px;
  text-align: left;
}

.table th {
  background: #111820;
}
.table tr:nth-child(odd) {
  background: #0f141b;
}
.table tr:nth-child(even) {
  background: #0d1219;
}

.badge {
  padding: 6px 10px;
  border-radius: 8px;
  background: #1f2630;
}

.success {
  color: var(--accent);
}

.error {
  color: var(--danger);
}

.flex {
  display: flex;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  width: min(420px, 90vw);
  background: var(--panel);
  border: 1px solid #1f2630;
  border-radius: 14px;
  padding: 20px;
}

.auth-fullscreen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.auth-fullscreen.show {
  display: flex;
}

.auth-card {
  width: min(420px, 90vw);
  background: #0f141b;
  border: 1px solid #2d333b;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 14px;
}

.auth-logo {
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid #2d333b;
  background: #0b1016;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.auth-tab.active {
  background: linear-gradient(135deg, #ffaa3a, #ff7a3c);
  border-color: #ff9a3c;
  color: #0b1016;
}

.auth-panel {
  display: grid;
  gap: 10px;
}

.auth-panel.hidden {
  display: none;
}

.auth-panel input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2d333b;
  background: #0b1016;
  color: var(--text);
}

.modal-backdrop.show {
  display: flex;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

