:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050607;
  color: #e9ecef;
  --bg: #070b10;
  --panel: #0f151f;
  --panel-alt: #121a24;
  --border: rgba(255, 255, 255, 0.08);
  --text-muted: #a8b0c0;
  --green: #5dd39e;
  --red: #ff6f76;
  --blue: #4aa0ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(46, 170, 113, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(76, 152, 255, 0.08), transparent 20%),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: rgba(14, 20, 29, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(14, 20, 29, 0.85);
}

.filter-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  color: #f3f7fb;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-btn.active {
  background: rgba(93, 211, 158, 0.18);
  border-color: rgba(93, 211, 158, 0.45);
  color: #d4ffea;
}

.logo {
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

nav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 160ms ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.notification-btn {
  position: relative;
  border: 1px solid rgba(93, 211, 158, 0.35);
  border-radius: 999px;
  background: rgba(93, 211, 158, 0.1);
  color: #d4ffea;
  padding: 10px 14px;
  cursor: pointer;
}

.notification-btn[hidden] {
  display: none;
}

.notification-count {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  font-size: 0.72rem;
  font-weight: 800;
}

.notification-count[hidden] {
  display: none;
}

.notification-panel {
  margin: 14px 0 0 auto;
  max-width: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(14, 20, 29, 0.96);
  box-shadow: var(--shadow);
  padding: 16px;
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.notification-panel-header h2 {
  margin: 0;
  font-size: 1rem;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.notification-item {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.notification-item.unread {
  border-color: rgba(93, 211, 158, 0.35);
  background: rgba(93, 211, 158, 0.08);
}

.notification-item p {
  margin: 0;
  color: #eef5f1;
  line-height: 1.45;
}

.notification-item span,
.notification-empty {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.notification-empty {
  margin: 0;
}

.wallet-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(93, 211, 158, 0.1);
  border: 1px solid rgba(93, 211, 158, 0.3);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.wallet-display:hover {
  background: rgba(93, 211, 158, 0.16);
  border-color: rgba(93, 211, 158, 0.5);
}

.wallet-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.wallet-amount {
  color: var(--green);
  font-size: 1rem;
}

.profile-btn {
  border: 1px solid rgba(93, 211, 158, 0.45);
  background: rgba(93, 211, 158, 0.12);
  color: var(--green);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 160ms ease;
}

.profile-btn:hover {
  background: rgba(93, 211, 158, 0.2);
  border-color: rgba(93, 211, 158, 0.65);
}

.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1000;
}

.profile-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  margin: auto;
  width: 90%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: rgba(12, 18, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: slideIn 280ms ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease;
}

.modal-close:hover {
  color: #fff;
}

.profile-form {
  display: grid;
  gap: 16px;
}

.profile-form[hidden] {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(93, 211, 158, 0.45);
  background: rgba(93, 211, 158, 0.06);
}

.form-group select option {
  background: #0f151f;
  color: #fff;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.error-msg {
  font-size: 0.8rem;
  color: var(--red);
  min-height: 18px;
}

.submit-btn {
  background: linear-gradient(135deg, #33db9f 0%, #1d9f74 100%);
  color: #061812;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: filter 160ms ease;
}

.submit-btn:hover {
  filter: brightness(1.05);
}

.create-event-content {
  max-width: 720px;
}

.create-event-form {
  display: grid;
  gap: 16px;
}

.create-event-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: rgba(93, 211, 158, 0.45);
  background: rgba(93, 211, 158, 0.06);
}

.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.profile-summary {
  display: grid;
  gap: 18px;
}

.profile-summary[hidden] {
  display: none;
}

.wallet-content {
  max-width: 560px;
  max-height: calc(100vh - 32px);
}

.wallet-logged-out,
.wallet-summary,
.wallet-form {
  display: grid;
  gap: 16px;
}

.wallet-logged-out[hidden],
.wallet-summary[hidden] {
  display: none;
}

.wallet-logged-out p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.wallet-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wallet-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #f3f7fb;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.wallet-method:has(input:checked) {
  background: rgba(93, 211, 158, 0.16);
  border-color: rgba(93, 211, 158, 0.5);
}

.wallet-method input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}

.other-method-panel {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(74, 160, 255, 0.28);
  border-radius: 12px;
  background: rgba(74, 160, 255, 0.08);
}

.other-method-panel[hidden] {
  display: none;
}

.wallet-history {
  display: grid;
  gap: 12px;
}

.wallet-history h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.wallet-history-list {
  display: grid;
  gap: 10px;
  max-height: min(260px, 32vh);
  overflow: auto;
  padding-right: 4px;
}

.wallet-history-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.wallet-history-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-weight: 700;
}

.wallet-history-detail,
.wallet-history-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.wallet-history-amount {
  color: var(--red);
  white-space: nowrap;
}

.profile-card {
  padding: 18px;
  border: 1px solid rgba(93, 211, 158, 0.25);
  border-radius: 18px;
  background: rgba(93, 211, 158, 0.08);
}

.profile-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-card h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.35rem;
}

.profile-card p {
  margin: 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.admin-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  border: 1px solid rgba(93, 211, 158, 0.45);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(93, 211, 158, 0.12);
  color: #8ff0c3;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-badge[hidden] {
  display: none;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-stat {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-stat span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.profile-stat strong {
  color: #fff;
  font-size: 1.2rem;
}

.logout-btn {
  border: 1px solid rgba(255, 111, 118, 0.45);
  background: rgba(255, 111, 118, 0.12);
  color: var(--red);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.logout-btn:hover {
  background: rgba(255, 111, 118, 0.2);
  border-color: rgba(255, 111, 118, 0.65);
}

.hero {
  margin: 40px 0 32px;
}

.main-events-window {
  padding: 24px;
  border-radius: 22px;
  background: rgba(17, 25, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.main-events-window h2 {
  margin: 0 0 18px;
  font-size: 1.55rem;
  color: var(--green);
}

.events-list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}

.events-list::-webkit-scrollbar {
  height: 8px;
}

.events-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.events-list::-webkit-scrollbar-thumb {
  background: rgba(93, 211, 158, 0.35);
  border-radius: 999px;
}

.events-list::-webkit-scrollbar-thumb:hover {
  background: rgba(93, 211, 158, 0.55);
}

.event-card {
  flex: 0 0 min(320px, 82vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 145px;
  padding: 16px;
  scroll-snap-align: start;
  background: rgba(93, 211, 158, 0.08);
  border: 1px solid rgba(93, 211, 158, 0.25);
  border-radius: 14px;
}

.main-event-market {
  flex: 1 1 100%;
  width: 100%;
  min-height: 0;
  padding: 18px;
  scroll-snap-align: start;
}

.main-event-market .market-head {
  align-items: center;
}

.main-event-market h3 {
  font-size: 1.15rem;
}

.main-event-outcomes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.main-event-outcomes .outcome-btn {
  min-height: 42px;
  padding: 9px 10px;
  font-size: 0.82rem;
}

.main-event-market .market-meta,
.main-event-market .bet-panel {
  margin-top: 0;
}

.event-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.event-odds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.odd {
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.odd.yes-odd {
  color: var(--green);
  background: rgba(93, 211, 158, 0.12);
}

.odd.no-odd {
  color: var(--red);
  background: rgba(255, 111, 118, 0.12);
}

.odd.main {
  background: rgba(74, 160, 255, 0.12);
  color: var(--blue);
  font-weight: 600;
}

.event-category {
  font-size: 0.8rem;
  color: var(--blue);
  text-transform: capitalize;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(74, 160, 255, 0.12);
  border-radius: 6px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1.05;
}

.hero p {
  max-width: 66ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: rgba(17, 25, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.hero-card .pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(93, 211, 158, 0.13);
  color: var(--green);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero-card h2 {
  margin: 0;
  font-size: 3rem;
}

.hero-card p {
  margin: 14px 0 0;
  color: var(--text-muted);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}

.section-header h2 {
  margin: 0 0 4px;
  font-size: 1.8rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.create-event-btn {
  border: 1px solid rgba(74, 160, 255, 0.45);
  background: rgba(74, 160, 255, 0.12);
  color: #cfe6ff;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease;
}

.create-event-btn:hover {
  background: rgba(74, 160, 255, 0.2);
  border-color: rgba(74, 160, 255, 0.65);
}

.markets {
  margin-top: 24px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.market-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 18px;
  background: rgba(12, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.market-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.market-type {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
}

.category-badge {
  display: inline-flex;
  text-transform: capitalize;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  padding: 4px 10px;
  background: rgba(74, 160, 255, 0.12);
  border-radius: 6px;
  margin-left: 6px;
}

.market-head h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.market-title-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  min-height: 42px;
}

.market-title-image {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.market-stats {
  text-align: right;
}

.stat {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.stat.positive {
  color: var(--green);
}

.stat.negative {
  color: var(--red);
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.outcomes {
  display: grid;
  gap: 8px;
}

.outcome-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f3f7fb;
  border-radius: 14px;
  padding: 11px 13px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.outcome-btn:hover,
.outcome-btn.active {
  transform: translateY(-1px);
  border-color: rgba(93, 211, 158, 0.35);
  background: rgba(93, 211, 158, 0.08);
}

.price {
  font-weight: 700;
}

.market-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.market-meta span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  overflow-wrap: anywhere;
}

.market-close {
  color: var(--blue);
  font-weight: 600;
}

.market-close.closed {
  color: var(--red);
}

.bet-panel {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.bet-panel label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.bet-percent {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.percent-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  color: #f3f7fb;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.percent-btn.active {
  background: rgba(93, 211, 158, 0.18);
  border-color: rgba(93, 211, 158, 0.45);
  color: #d4ffea;
}

.bet-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.admin-remove-event {
  justify-self: end;
  border: 1px solid rgba(255, 94, 94, 0.45);
  border-radius: 8px;
  background: rgba(255, 94, 94, 0.12);
  color: #ffb3b3;
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-remove-event:hover {
  background: rgba(255, 94, 94, 0.22);
  border-color: rgba(255, 94, 94, 0.7);
}

.admin-remove-event[hidden] {
  display: none;
}

.admin-resolve-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-resolve-event[hidden] {
  display: none;
}

.admin-winner-select {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 6px 8px;
  font-size: 0.78rem;
}

.admin-declare-winner {
  border: 1px solid rgba(93, 211, 158, 0.45);
  border-radius: 8px;
  background: rgba(93, 211, 158, 0.12);
  color: #d4ffea;
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-declare-winner:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.bet-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.bet-action {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #33db9f 0%, #1d9f74 100%);
  color: #061812;
  font-weight: 700;
  cursor: pointer;
}

.bet-action:hover {
  filter: brightness(1.05);
}

.bet-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.65;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.feature-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(14, 20, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card h3 {
  margin: 0 0 14px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-event-outcomes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 18px;
  }

  .market-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .market-meta {
    grid-template-columns: 1fr;
  }

  .market-card {
    min-height: auto;
  }

  .main-events-window {
    padding: 16px;
  }

  .main-event-outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-event-outcomes .outcome-btn {
    font-size: 0.78rem;
  }

  .create-event-row,
  .wallet-methods {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 22px;
  }

  .wallet-history-list {
    max-height: 28vh;
  }
}

/* Win Modal Styles */
.win-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.win-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.win-modal .modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.win-content {
  position: relative;
  max-width: 400px;
  width: 90%;
  background: rgba(12, 18, 26, 0.95);
  border: 1px solid rgba(93, 211, 158, 0.3);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.4s ease-out;
}

.win-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.win-header h2 {
  margin: 0;
  color: var(--green);
  font-size: 1.8rem;
}

.win-body {
  padding: 24px;
  text-align: center;
}

.win-message {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
}

.win-amount {
  margin: 16px 0;
  color: var(--green);
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(93, 211, 158, 0.3);
}

.win-details {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
