html,
body {
    overflow-x: hidden;
}

body {
    background: #f4f7f9;
    transition: 0.3s;
}

[data-bs-theme="dark"] body {
    background: #101722;
}

.navbar .container-fluid {
  gap: 12px;
}

.nav-link:hover {
    transform: scale(1.1);
}

.navbar-toggler {
    border: none;
}

.theme-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 40px;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 40px;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.auth-area {
  position: relative;
}

.auth-buttons {
  display: flex;
  gap: 8px;
  padding-right: 12px;
}

#navbarNav {
  flex-grow: 0;
  margin-left: auto;
}

.navbar-search {
  flex: 0 1 320px;
}

.navbar-search form {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

.navbar-search .form-control {
  min-width: 0;
}

.auth-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.55);
  padding: 60px 16px 24px;
}

.auth-modal.is-open {
  display: block;
}

.auth-modal-content {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  margin: 0 auto;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  width: min(100%, 520px);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.auth-modal-header h2 {
  margin: 0;
  font-size: 28px;
}

.auth-close {
  border: 0;
  background: transparent;
  color: var(--bs-body-color);
  cursor: pointer;
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  padding: 0 4px;
}

.auth-close:hover {
  color: #dc3545;
}

.auth-modal input[type=text],
.auth-modal input[type=password] {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0 16px;
  display: inline-block;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.auth-modal input[type=text]:focus,
.auth-modal input[type=password]:focus {
  border-color: #0d6efd;
  outline: none;
}

.auth-submit,
.auth-cancel {
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  padding: 12px 18px;
}

.auth-submit {
  background-color: #198754;
}

.auth-cancel {
  background-color: #dc3545;
}

.auth-submit:hover,
.auth-cancel:hover {
  opacity: 0.85;
}

.auth-checkbox {
  display: block;
  margin: 12px 0;
}

.auth-modal-footer,
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.auth-actions .auth-cancel,
.auth-actions .auth-submit {
  width: 50%;
}

.auth-animate {
  animation: auth-zoom 0.25s;
}

@keyframes auth-zoom {
  from {transform: scale(0.95); opacity: 0}
  to {transform: scale(1); opacity: 1}
}

@media screen and (max-width: 360px) {
  .auth-modal-footer,
  .auth-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-actions .auth-cancel,
  .auth-actions .auth-submit {
    width: 100%;
  }
}

/* Slideshow */
* {box-sizing:border-box}

.page-content {
  margin: 24px auto;
  max-width: 1180px;
  padding: 0 16px;
  position: relative;
  width: 100%;
}

.coin-system {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 31, 49, 0.08);
  left: -156px;
  padding: 14px;
  position: absolute;
  top: 0;
  width: 140px;
}

.coin-label {
  color: #22b99a;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.coin-system strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.coin-system small {
  color: var(--bs-secondary-color);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}

.vote-toast {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  bottom: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  left: 50%;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.vote-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.stat-card {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(16, 31, 49, 0.08);
  display: flex;
  gap: 12px;
  min-height: 86px;
  padding: 14px 16px;
}

.stat-icon {
  align-items: center;
  border-radius: 50%;
  color: white;
  display: flex;
  flex: 0 0 42px;
  font-size: 10px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  letter-spacing: 0;
  width: 42px;
}

.stat-blue { background: #1d8cf8; }
.stat-cyan { background: #21c8db; }
.stat-yellow { background: #ffc107; }
.stat-green { background: #20a464; }

.stat-card p {
  color: var(--bs-secondary-color);
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.stat-card small {
  color: #22a06b;
  display: block;
  font-size: 11px;
  margin-top: 6px;
}

.market-discovery {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 31, 49, 0.08);
  margin-bottom: 16px;
  padding: 18px;
}

.market-discovery-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.market-header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.market-kicker {
  color: #22b99a;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.market-discovery h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  margin: 2px 0 0;
}

.market-action,
.market-tabs button,
.market-topic-row span {
  border-radius: 999px;
  white-space: nowrap;
}

.market-action {
  background: #111827;
  border: 1px solid #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 16px;
}

.stake-control {
  align-items: center;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  color: var(--bs-secondary-color);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-height: 38px;
  padding: 5px 6px 5px 14px;
  text-transform: uppercase;
}

.stake-control select {
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  color: var(--bs-body-color);
  font-size: 13px;
  font-weight: 800;
  min-height: 28px;
  padding: 2px 8px;
}

[data-bs-theme="dark"] .market-action {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #111827;
}

.market-tabs,
.market-topic-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.market-tabs button {
  background: transparent;
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  padding: 6px 14px;
}

.market-tabs button.is-selected {
  background: #e8fbf6;
  border-color: #93e5d1;
  color: #08785f;
}

[data-bs-theme="dark"] .market-tabs button.is-selected {
  background: rgba(34, 185, 154, 0.18);
  border-color: rgba(34, 185, 154, 0.46);
  color: #6ee7c8;
}

.market-topic-row {
  margin: 2px 0 14px;
}

.market-topic-row span {
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid transparent;
  color: var(--bs-secondary-color);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
}

.market-topic-row span.is-selected {
  background: #111827;
  color: #ffffff;
}

[data-bs-theme="dark"] .market-topic-row span.is-selected {
  background: #f8fafc;
  color: #111827;
}

.market-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-empty-state {
  background: rgba(128, 128, 128, 0.09);
  border: 1px dashed var(--bs-border-color);
  border-radius: 6px;
  color: var(--bs-secondary-color);
  display: none;
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
  padding: 18px;
  text-align: center;
}

.market-empty-state.is-visible {
  display: block;
}

.prediction-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 244px;
  padding: 14px;
}

.prediction-card.is-hidden {
  display: none;
}

.prediction-card-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.prediction-icon {
  align-items: center;
  background: #e8f1ff;
  border: 1px solid #c7dcff;
  border-radius: 8px;
  color: #1d4ed8;
  display: flex;
  flex: 0 0 48px;
  font-size: 13px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
}

.prediction-icon-green {
  background: #e8fbf6;
  border-color: #b9efdf;
  color: #08785f;
}

.prediction-icon-orange {
  background: #fff4e6;
  border-color: #ffd7a1;
  color: #b45309;
}

.prediction-icon-purple {
  background: #f2e8ff;
  border-color: #dbc2ff;
  color: #7e22ce;
}

.prediction-icon-blue {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}

.prediction-icon-red {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b42318;
}

.prediction-card p {
  color: var(--bs-secondary-color);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 4px;
}

.prediction-card h2 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.prediction-outcomes {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prediction-outcomes div {
  background: rgba(128, 128, 128, 0.09);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  padding: 10px;
}

.prediction-outcomes span {
  color: var(--bs-secondary-color);
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.prediction-outcomes strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.prediction-buttons {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prediction-buttons button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 10px;
}

.buy-yes {
  background: #d9f8ee;
  color: #067052;
}

.buy-no {
  background: #fee2e2;
  color: #b42318;
}

.prediction-buttons button.is-selected {
  box-shadow: 0 0 0 3px rgba(34, 185, 154, 0.24);
  transform: translateY(-1px);
}

.prediction-card footer {
  align-items: center;
  border-top: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.my-votes-panel {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 31, 49, 0.08);
  margin-bottom: 16px;
  padding: 18px;
}

.my-votes-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.my-votes-list li {
  align-items: center;
  background: rgba(128, 128, 128, 0.09);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  color: var(--bs-body-color);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.my-votes-list span {
  color: var(--bs-secondary-color);
  font-weight: 700;
}

.admin-page {
  margin: 24px auto;
  max-width: 1100px;
  padding: 0 16px;
}

.admin-login-panel,
.admin-dashboard,
.admin-tool-card,
.admin-users-panel {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 31, 49, 0.08);
}

.admin-login-panel {
  margin: 56px auto 0;
  max-width: 420px;
  padding: 22px;
}

.admin-login-panel h1,
.admin-dashboard h1,
.admin-tool-card h2,
.admin-users-panel h2 {
  margin: 0 0 14px;
}

.admin-login-panel label,
.admin-user-search label {
  color: var(--bs-secondary-color);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.admin-login-panel input,
.admin-user-search input {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  color: var(--bs-body-color);
  margin-bottom: 14px;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.admin-login-panel button,
.admin-dashboard button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 12px;
}

.admin-login-panel button,
#adminLogoutButton {
  background: #111827;
  color: #ffffff;
}

.admin-dashboard {
  padding: 18px;
}

.admin-dashboard.is-hidden,
.admin-login-panel.is-hidden {
  display: none;
}

.admin-dashboard-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-dashboard-header span {
  color: #22b99a;
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-actions-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.admin-tool-card,
.admin-users-panel {
  padding: 16px;
}

.admin-tool-card p {
  color: var(--bs-secondary-color);
  font-size: 14px;
}

.danger-button {
  background: #fee2e2;
  color: #b42318;
}

.admin-user-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-user-list li {
  align-items: center;
  background: rgba(128, 128, 128, 0.09);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.admin-user-list strong,
.admin-user-list span,
.admin-user-list small {
  display: block;
}

.admin-user-list span,
.admin-user-list small,
.admin-message {
  color: var(--bs-secondary-color);
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-user-actions button {
  background: rgba(128, 128, 128, 0.14);
  color: var(--bs-body-color);
}

.admin-message {
  font-weight: 700;
  margin: 12px 0 0;
}

.dashboard-main {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 2.2fr) minmax(240px, 0.8fr);
  margin-bottom: 16px;
}

.graph-overview {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(16, 31, 49, 0.08);
  margin: 0;
  padding: 18px;
  position: relative;
  width: 100%;
}

.panel-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dashboard-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.panel-header h2 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.panel-header span {
  color: var(--bs-secondary-color);
  font-size: 14px;
}

.date-filter {
  display: flex;
  gap: 8px;
}

.date-filter button {
  background: transparent;
  border: 1px solid var(--bs-border-color);
  border-radius: 3px;
  color: var(--bs-body-color);
  font-size: 12px;
  min-height: 32px;
  padding: 5px 10px;
}

.backend-badge {
  align-items: center;
  border: 1px solid rgba(34, 185, 154, 0.35);
  border-radius: 999px;
  color: #22b99a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 32px;
  padding: 5px 12px;
  white-space: nowrap;
}

.backend-badge.is-warn {
  border-color: rgba(220, 53, 69, 0.35);
  color: #dc3545;
}

/* Slideshow container */
.slideshow-container {
  margin: 0;
  min-height: 340px;
  position: relative;
}

.mySlides {
  display: none;
}

.slide-image {
  background:
    linear-gradient(rgba(31, 193, 166, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 193, 166, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(34, 187, 153, 0.16), rgba(29, 140, 248, 0.08));
  background-size: 100% 40px, 60px 100%, 100% 100%;
  border: 1px solid #b7e8e1;
  border-radius: 4px;
  margin: 0 auto;
  max-width: 100%;
  min-height: 240px;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.slide-image img {
  display: block;
  height: 210px;
  object-fit: cover;
  opacity: 0.9;
  width: 100%;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 44%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: var(--bs-body-color);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.prev {
  left: 22px;
}

/* Position the "next button" to the right */
.next {
  right: 22px;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.slide-dots {
  margin: 10px 0;
  text-align: center;
}

.graph-vote-row {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  margin: 14px 0 10px;
}

.vote-button {
  border: 0;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 600;
  line-height: 1;
  min-height: 42px;
  padding: 8px 18px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vote-button:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.vote-button:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}

.vote-up {
  background: #20a464;
  justify-self: start;
}

.vote-down {
  background: #dc3545;
  justify-self: end;
  text-align: right;
}

.graph-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 500;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.graph-title a {
  color: inherit;
  text-decoration: none;
}

.more-votes-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--bs-primary);
}

.market-canvas-wrapper {
  margin: 12px 0 18px;
  max-width: 100%;
}

.market-history-canvas {
  border: 1px solid #b7e8e1;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(34,187,153,0.06), rgba(29,140,248,0.02));
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
}

.graph-details {
  border-top: 1px solid var(--bs-border-color);
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 12px;
  min-height: 120px;
}

.graph-details h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}

.graph-details p {
  margin: 0;
}

.graph-description,
.latest-votes {
  padding: 6px 10px 10px;
}

.latest-votes {
  border-left: 1px solid var(--bs-border-color);
}

.recent-bets-list {
  list-style: disc;
  padding-left: 18px;
  margin: 8px 0 0 0;
}

.recent-bets-list li {
  margin-bottom: 8px;
  line-height: 1.35;
  font-size: 13px;
}

.latest-votes {
  max-height: 220px;
  overflow-y: auto;
}

@media screen and (max-width: 700px) {
  .graph-details {
    grid-template-columns: 1fr;
  }

  .latest-votes {
    border-left: 0;
    border-top: 1px solid var(--bs-border-color);
  }
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.slide-fade {
  animation-name: slide-fade;
  animation-duration: 1.5s;
}

@keyframes slide-fade {
  from {opacity: .4}
  to {opacity: 1}
}

.expired-trades-wrapper {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.trades-area {
  width: 100%;
}

.expired-trades-slider {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(16, 31, 49, 0.08);
  display: grid;
  gap: 10px;
  grid-template-columns: 34px 1fr 34px;
  min-height: 86px;
  padding: 10px;
}

.trade-slide {
  display: none;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trade-slide.is-active {
  display: grid;
}

.expired-trade-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  min-height: 62px;
  overflow: hidden;
  padding: 6px 8px 5px;
  position: relative;
}

.trade-graph-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, transparent 0 42%, var(--bs-border-color) 43% 45%, transparent 46%),
    linear-gradient(20deg, transparent 0 52%, var(--bs-border-color) 53% 55%, transparent 56%);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  display: flex;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.trade-graph-placeholder span {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
  padding: 3px 8px;
}

.trade-graph-placeholder img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.trade-arrow {
  background: transparent;
  border: 0;
  color: var(--bs-body-color);
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.trade-result {
  display: flex;
  font-size: 12px;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.ongoing-trades-panel {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(16, 31, 49, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  width: 100%;
}

.ongoing-trades-panel h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}

.ongoing-trades-panel ul {
  font-size: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ranking-section,
.ongoing-section {
  padding: 16px;
}

.ranking-section {
  flex: 1;
}

.ongoing-section {
  border-top: 1px solid var(--bs-border-color);
  flex: 1;
}

.ranking-list li,
.ongoing-list li {
  margin-bottom: 12px;
}

.ranking-list li {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.ranking-list strong {
  color: #20a464;
  font-size: 13px;
}

.trade-progress {
  background: rgba(128, 128, 128, 0.18);
  border-radius: 999px;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
}

.trade-progress span {
  background: #22b99a;
  display: block;
  height: 100%;
}

@media screen and (max-width: 800px) {
  .stats-grid,
  .dashboard-main,
  .expired-trades-wrapper {
    grid-template-columns: 1fr;
  }

  .trade-slide,
  .trade-slide.is-active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ongoing-trades-panel {
    min-height: 160px;
  }
}

@media screen and (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .date-filter {
    width: 100%;
  }

  .date-filter button {
    flex: 1;
  }

  .backend-badge {
    justify-content: center;
  }
}

@media screen and (max-width: 460px) {
  .expired-trades-slider {
    grid-template-columns: 24px 1fr 24px;
  }

  .trade-slide,
  .trade-slide.is-active {
    grid-template-columns: 1fr;
  }
}

<<<<<<< HEAD
@media screen and (max-width: 1500px) {
  .coin-system {
    margin-bottom: 16px;
    position: static;
    width: 100%;
  }
}

@media screen and (max-width: 900px) {
  .market-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-list li,
  .admin-dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-actions {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 560px) {
  .market-discovery-header {
    align-items: stretch;
    flex-direction: column;
  }

  .market-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .market-action {
    width: 100%;
  }

  .stake-control {
    justify-content: space-between;
  }
=======
.page-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: 28px;
  margin: 0;
}

.page-header p {
  color: var(--bs-secondary-color);
  margin: 0;
}

.profile-grid,
.market-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.profile-card,
.market-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(16, 31, 49, 0.08);
  padding: 16px;
}

.profile-card h2,
.market-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}

.profile-bets-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-bets-list li {
  padding: 8px 6px;
  border-bottom: 1px dashed var(--bs-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#showMoreBets {
  margin-top: 8px;
  padding-left: 0;
}

.profile-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-list div {
  border-bottom: 1px solid var(--bs-border-color);
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
}

.profile-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-list dt {
  color: var(--bs-secondary-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.profile-list dd {
  font-weight: 600;
  margin: 0;
}

.profile-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.profile-bets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-bets-list li {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.profile-bets-list li small {
  color: var(--bs-secondary-color);
  display: block;
  font-size: 12px;
}

.bet-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bet-form label {
  color: var(--bs-secondary-color);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.bet-form input,
.bet-form select,
.bet-form textarea {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  color: var(--bs-body-color);
  padding: 8px 10px;
}

.form-status {
  color: var(--bs-secondary-color);
  margin: 10px 0 0;
}

.form-status a {
  color: #0d6efd;
  text-decoration: none;
}

.form-status a:hover {
  text-decoration: underline;
}

.auth-callback {
  text-align: center;
}

@media screen and (max-width: 640px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }
>>>>>>> 61398883d02585e9497b41d9aeb68313f9d30f73
}
