:root {
  --bg-main: #030712;
  --bg-elevated: #050a18;
  --bg-elevated-soft: #0b1120;
  --border-soft: rgba(148, 163, 184, 0.3);
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.2);
  --primary-strong: #3b82f6;
  --accent: #f97316;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  background:
    radial-gradient(circle at top left, #1f2933 0, transparent 55%),
    radial-gradient(circle at top right, #0f172a 0, transparent 60%),
    radial-gradient(circle at bottom, #111827 0, transparent 55%),
    var(--bg-main);
  color: var(--text-main);
  overflow: hidden;
}

.app-layout {
  min-height: 100vh;
}


.app-layout {
  display: grid;
  grid-template-columns: minmax(260px, 280px) 1fr;
  gap: 0;
  padding: 0;
  align-items: flex-start;
  height: 100vh;
}

.layout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
}

.sidebar-header svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.sidebar-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  color: #e0f2fe;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-toggle:hover {
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-header-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(3, 7, 18, 0.9);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(3, 7, 18, 0.9);
  margin-bottom: 24px;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 576px) {
  .stake-header-right {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .stake-wallet-dropdown {
    margin: 0 auto;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (min-width: 992px) {
  .main-header {
    position: relative;
  }

  .stake-wallet-dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-topbar .btn-nav-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sidebar-tabs {
  display: flex;
  gap: 0.4rem;
}

.sidebar-tabs .sidebar-tab {
  border-radius: 999px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-weight: 600;
  text-transform: none;
}

.sidebar-tabs .sidebar-tab.is-active {
  background: linear-gradient(120deg, #1d4ed8, #2563eb);
  color: #fff;
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.5);
}

body.sidebar-collapsed .app-layout {
  grid-template-columns: 96px 1fr;
}

body.sidebar-collapsed .layout-sidebar {
  width: 96px;
}

body.sidebar-collapsed .sidebar-card {
  padding-left: 8px;
  padding-right: 8px;
}

body.sidebar-collapsed .sidebar-topbar {
  flex-direction: column;
  gap: 0.35rem;
}

body.sidebar-collapsed .sidebar-tabs {
  display: none;
}

body.sidebar-collapsed .sidebar-card {
  align-items: center;
}

body.sidebar-collapsed .sidebar-card .nav-item-custom {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

body.sidebar-collapsed .sidebar-card .nav-item-custom span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

body.sidebar-collapsed .sidebar-card .nav-item-custom span span:nth-child(2),
body.sidebar-collapsed .sidebar-card .nav-chip,
body.sidebar-collapsed .sidebar-section-title,
body.sidebar-collapsed .locale-trigger .nav-item-icon + span {
  display: none;
}

body.sidebar-collapsed .nav-chip {
  display: none !important;
}

body.sidebar-collapsed .locale-switch {
  width: 100%;
  justify-content: center;
}

body.sidebar-collapsed .nav-item-custom {
  flex-direction: column;
  padding: 6px 0;
  border-radius: 0;
}

body.sidebar-collapsed .nav-item-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

.stake-logo {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.04em;
  text-shadow: 0 0 9px rgba(248, 250, 252, 0.25);
}

.btn-stake-pill {
  border-radius: 999px;
  padding: 6px 20px;
  border: 1px solid rgba(59, 130, 246, 0.6);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.6);
}

.btn-stake-pill.active,
.btn-stake-pill:hover {
  border-color: rgba(59, 130, 246, 0.9);
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.8), rgba(14, 165, 233, 0.2));
  color: #fff;
}

.stake-wallet-card {
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #03182d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.stake-wallet-balance {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1rem;
  min-width: 210px;
}

.wallet-value {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.wallet-currency svg {
  width: 20px;
  height: 20px;
}

.wallet-currency .wallet-token-icon {
  width: 20px;
  height: 20px;
}

.wallet-currency .wallet-token-icon svg {
  width: 20px;
  height: 20px;
}

.wallet-currency-icon circle {
  fill: #26a17b;
  stroke: rgba(15, 23, 42, 0.35);
  stroke-width: 1;
}

.wallet-currency-icon text {
  fill: #0f172a;
  font-weight: 700;
  font-size: 11px;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

.wallet-chevron svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

.stake-wallet-dropdown {
  position: relative;
}

.wallet-chevron {
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wallet-dropdown-menu {
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.8);
  color: #e5e7eb;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  max-height: 260px;
  overflow-y: auto;
  z-index: 120;
}

.wallet-dropdown-menu.is-open {
  display: block;
}

.notification-dropdown {
  position: relative;
}

.account-dropdown,
.mobile-dropdown {
  position: relative;
}

.search-dropdown {
  position: relative;
}

.messages-dropdown {
  position: relative;
}

.notification-panel {
  min-width: 280px;
  max-width: 340px;
  padding: 0.6rem;
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.8);
  color: #e5e7eb;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  z-index: 120;
}

.notification-panel.is-open,
.account-panel.is-open,
.mobile-panel.is-open,
.search-panel.is-open,
.messages-panel.is-open {
  display: block;
}

.notification-panel-header {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.account-panel,
.mobile-panel,
.search-panel {
  min-width: 240px;
  max-width: 300px;
  padding: 0.6rem;
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.8);
  color: #e5e7eb;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  z-index: 120;
}

.messages-panel {
  min-width: 280px;
  max-width: 360px;
  padding: 0.6rem;
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.8);
  color: #e5e7eb;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  z-index: 120;
}

.account-panel-header,
.mobile-panel-header,
.search-panel-header {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.messages-panel-header {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.notification-panel-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 0.4rem 0.2rem 0.2rem;
}

.account-panel-list,
.mobile-panel-list,
.search-panel-body {
  padding: 0.4rem 0.2rem 0.2rem;
}

.messages-panel-list {
  padding: 0.4rem 0.2rem 0.2rem;
  max-height: 260px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.notification-item + .notification-item,
.account-item + .account-item,
.mobile-item + .mobile-item,
.search-item + .search-item,
.messages-item + .messages-item {
  margin-top: 0.3rem;
}

.notification-item:hover,
.account-item:hover,
.mobile-item:hover,
.search-item:hover,
.messages-item:hover {
  background: rgba(37, 99, 235, 0.15);
}

.account-item,
.mobile-item,
.search-item,
.messages-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.messages-title {
  font-weight: 600;
  font-size: 0.82rem;
}

.messages-preview {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.78rem;
}

.messages-item.is-unread {
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(37, 99, 235, 0.12);
}

.messages-toggle {
  position: relative;
}

.messages-unread-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 2px rgba(3, 7, 18, 0.9);
}

.messages-unread-badge.is-hidden {
  display: none;
}

.search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}

.search-input::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.search-suggestions {
  margin-top: 0.4rem;
}

.wallet-dropdown-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.wallet-token {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.wallet-token-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wallet-token-icon svg {
  width: 22px;
  height: 22px;
}

.token-logo-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.token-logo-preview .token-logo-wrapper {
  width: 24px;
  height: 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.token-logo-preview .token-logo-label {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.token-logo-wrapper {
  border-radius: 999px;
  overflow: hidden;
}

.token-logo-wrapper .token-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.token-logo-wrapper .token-logo:not([src]) {
  display: none;
}

.token-logo-wrapper .token-logo-fallback {
  display: block;
}

.token-logo-wrapper .token-logo[src] + .token-logo-fallback {
  display: none;
}

.wallet-token-icon circle {
  fill: var(--token-color, #64748b);
  stroke: rgba(15, 23, 42, 0.35);
  stroke-width: 1;
}

.wallet-token-icon text {
  fill: #0f172a;
  font-weight: 700;
  font-size: 11px;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

.wallet-dropdown-item + .wallet-dropdown-item {
  margin-top: 0.25rem;
}

.wallet-dropdown-item:hover {
  background: rgba(37, 99, 235, 0.15);
}

.wallet-dropdown-divider {
  height: 1px;
  margin: 0.45rem 0 0.35rem;
  background: rgba(148, 163, 184, 0.28);
}

.wallet-dropdown-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.55);
  background: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.wallet-dropdown-action:hover {
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.9);
  background: rgba(37, 99, 235, 0.28);
}

.wallet-dropdown-amount {
  margin-left: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #cbd5f5;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 992px) {
  .main-header {
    position: relative;
  }

  .stake-wallet-dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
}

.btn-stake-wallet {
  border-radius: 0 12px 12px 0;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(120deg, #4c6ef5, #2563eb);
  border: none;
  color: #fff;
  font-weight: 600;
  min-width: 140px;
  text-align: center;
}

.stake-header-right .btn-nav-icon {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(5, 9, 20, 0.8);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.stake-header-right .nav-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stake-header-right .btn-nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.stake-header-right .btn-nav-icon svg path,
.stake-header-right .btn-nav-icon svg rect,
.stake-header-right .btn-nav-icon svg circle,
.stake-header-right .btn-nav-icon svg line {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-nav-wrap {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 32px;
  background: rgba(5, 10, 20, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.85);
  z-index: 90;
}

.top-nav-card.top-nav-bar {
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(120deg, rgba(10, 22, 40, 0.95), rgba(5, 10, 25, 0.9));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.top-nav-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  height: 72px;
}

.top-nav-left,
.top-nav-right {
  align-self: stretch;
}

.top-nav-right {
  justify-self: end;
}

.top-nav-left {
  justify-self: start;
}

.top-nav-center {
  justify-self: center;
}

.layout-sidebar > .sidebar-card {
  min-height: 100%;
  height: 100vh;
  max-height: 100vh;
}

@media (max-width: 1199px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .layout-sidebar {
    grid-order: 2;
    display: none;
  }

  .layout-main {
    width: 100%;
  }

  .main-header-wrap {
    position: static;
    border-radius: 18px;
  }
}

body.sidebar-mobile-open .layout-sidebar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 110;
  background: rgba(3, 7, 18, 0.98);
  box-shadow: 0 30px 40px rgba(2, 6, 23, 0.8);
}

.layout-main {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  padding-right: 0;
  overscroll-behavior: contain;
}

.layout-main--full {
  padding: 0;
}

.page-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 24px;
}

/* Sidebar */

.sidebar-card {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(3, 7, 18, 0.98)
  );
  border-radius: 0;
  border: 1px solid rgba(55, 65, 81, 0.7);
  box-shadow: var(--shadow-soft);
  padding: 16px 14px;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(
    from 140deg,
    #3b82f6,
    #22c55e,
    #eab308,
    #ec4899,
    #3b82f6
  );
  padding: 2px;
  position: relative;
  overflow: hidden;
}

.brand-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, #1e293b, #020617);
}

.brand-title {
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.45rem;
  font-family: "Pacifico", "Great Vibes", cursive;
  text-transform: none;
  color: #fdfdfd;
}

.top-brand-name {
  font-family: "Pacifico", "Great Vibes", cursive;
  font-size: 1.6rem;
  letter-spacing: 0;
  font-weight: 400;
  color: #fdfdfd;
  line-height: 1;
}

.mobile-sidebar {
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.95), rgba(3, 7, 18, 0.85));
}

.mobile-sidebar-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0;
}

.mobile-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.mobile-profile-card .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.mobile-search {
  width: 100%;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  text-align: left;
}

.mobile-nav-tabs {
  display: flex;
  gap: 0.75rem;
}

.mobile-nav-tab {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(37, 99, 235, 0.15);
  color: #e5e7eb;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}

.mobile-nav-tab.active {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.8), rgba(14, 165, 233, 0.3));
  border-color: rgba(14, 165, 233, 0.8);
  color: #fff;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.75);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.mobile-nav-item .nav-item-icon {
  background: rgba(59, 130, 246, 0.3);
}

.mobile-divider {
  height: 1px;
  margin: 0.25rem 0;
  background: rgba(148, 163, 184, 0.25);
}

.mobile-bottom-nav {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 0.25rem 1rem;
  gap: 0.35rem;
}

.mobile-bottom-tab {
  flex: 1;
  text-align: center;
  border-radius: 12px;
  padding: 0.65rem 0;
  background: rgba(37, 99, 235, 0.15);
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.75rem;
}

.bottom-tabs {
  position: fixed;
  bottom: 14px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 0.35rem;
  background: rgba(3, 7, 18, 0.95);
  padding: 0.45rem;
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 15px 35px rgba(2, 6, 23, 0.7);
  z-index: 105;
}

.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.4rem 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.7rem;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.bottom-tab-icon {
  font-size: 1.25rem;
}

.bottom-tab.is-active,
.bottom-tab:hover {
  border-color: rgba(14, 165, 233, 0.9);
  background: rgba(14, 165, 233, 0.15);
  transform: translateY(-1px);
}

.bottom-tab-toggle {
  min-width: 70px;
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  font-weight: 600;
}

.brand-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #4ade80;
  text-transform: uppercase;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.sidebar-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 8px 4px;
}

.nav-item-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #e5e7eb;
  border: 1px solid transparent;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.8)
  );
  transition: all 0.18s ease;
  margin-bottom: 6px;
  width: 100%;
}

.nav-item-custom .nav-chip {
  margin-left: auto;
}

.nav-item-custom > span:first-child {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.locale-trigger {
  width: 100%;
}

.nav-item-custom span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #1d4ed8, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0.9;
}

.nav-item-icon svg {
  width: 24px;
  height: 24px;
}

.nav-item-icon svg path,
.nav-item-icon svg rect,
.nav-item-icon svg circle,
.nav-item-icon svg line {
  stroke: #e0f2fe;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item-hot {
  border-color: rgba(248, 113, 113, 0.4);
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.6), rgba(124, 58, 237, 0.6)),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.nav-item-custom:hover {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.locale-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.8);
  z-index: 115;
  padding: 1rem;
}

.locale-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  cursor: pointer;
}

.locale-modal.is-open {
  display: flex;
}

.locale-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  cursor: pointer;
  z-index: 100;
}

.locale-modal-dialog {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.8);
  max-width: 360px;
  width: 100%;
  padding: 1.25rem;
  position: relative;
  z-index: 200;
}

.locale-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.locale-modal-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.locale-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.locale-modal-close {
  border: none;
  background: rgba(15, 23, 42, 0.5);
  color: #f8fafc;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.locale-modal-close:hover,
.locale-modal-close:focus {
  background: rgba(59, 130, 246, 0.8);
  color: #fff;
}

.locale-modal-option {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e5e7eb;
  text-decoration: none;
}

.locale-modal-option.is-active {
  border-color: rgba(37, 99, 235, 0.6);
  background: rgba(37, 99, 235, 0.15);
}

.logout-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.8);
  z-index: 130;
  padding: 1rem;
}

.logout-modal.is-open {
  display: flex;
}

.logout-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  cursor: pointer;
  z-index: 100;
}

.logout-modal-dialog {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.8);
  max-width: 360px;
  width: 100%;
  padding: 1.25rem;
  position: relative;
  z-index: 200;
  color: #e5e7eb;
}

.logout-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.logout-modal-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.logout-modal-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.7);
}

.logout-modal-close {
  border: none;
  background: rgba(15, 23, 42, 0.5);
  color: #f8fafc;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.logout-modal-close:hover,
.logout-modal-close:focus {
  background: rgba(59, 130, 246, 0.8);
  color: #fff;
}

.logout-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.logout-modal-actions .btn {
  border-radius: 12px;
  padding: 0.45rem 1rem;
}

.nav-chip {
  font-size: 0.65rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.layout-sidebar .nav-chip {
  display: none;
}

.sidebar-footer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.zap-footer {
  margin-top: 2.5rem;
  padding: 2.5rem 2rem 2rem;
  background: rgba(10, 20, 30, 0.96);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5f5;
}

.zap-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.zap-footer-title {
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #e2e8f0;
}

.zap-footer-link {
  display: block;
  color: rgba(203, 213, 245, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.zap-footer-link:hover {
  color: #fff;
}

.zap-footer-social {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 2rem 0 1.5rem;
  color: #e2e8f0;
}

.zap-footer-social a {
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
}

.zap-footer-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
  margin: 1.5rem 0;
}

.zap-footer-legal {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(203, 213, 245, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.zap-footer-disclaimer {
  max-width: 700px;
}

.zap-footer-rate {
  font-size: 0.85rem;
  color: #e2e8f0;
}

.zap-footer-language {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.zap-footer-language:hover {
  border-color: rgba(148, 163, 184, 0.6);
}

@media (max-width: 768px) {
  .zap-footer {
    padding: 2rem 1.25rem;
  }
  .zap-footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .zap-footer-social {
    flex-wrap: wrap;
  }
}

/* Top bar shape a bit squarer, not giant pill */
.top-nav-card.top-nav-bar {
  border-radius: 18px;
  padding: 6px 12px;
  background: rgba(3, 7, 18, 0.96);   /* more solid */
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

/* Toggle-style tabs to match modern UI */
.top-nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.top-nav-tab {
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.9);
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 999px;
  min-width: 110px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.top-nav-tab.is-active {
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.25), rgba(14, 165, 233, 0.25));
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.top-nav-tab:not(.is-active):hover,
.top-nav-tab:not(.is-active):focus-visible {
  background: rgba(226, 232, 240, 0.12);
  color: #f8fafc;
}

/* Small icon-style menu btn */
.btn-nav-icon {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-nav-icon .nav-icon,
.btn-nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.btn-nav-icon svg path,
.btn-nav-icon svg rect,
.btn-nav-icon svg circle,
.btn-nav-icon svg line {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-nav-icon:hover {
  border-color: rgba(59, 130, 246, 0.9);
  color: #bfdbfe;
}

/* Compact status pill */
.status-pill {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

/* Smaller nav button variants so everything fits in ONE row */
.btn-xs {
  padding: 4px 10px;
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Ghost + primary style just for top nav */
.btn-ghost-nav {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}
.btn-ghost-nav:hover {
  border-color: rgba(59, 130, 246, 0.9);
  color: #bfdbfe;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.btn-primary-nav {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  border: none;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.7);
}
.btn-primary-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.9);
  color: #fff;
}

.guest-auth-btn {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
}

.guest-auth-btn i {
  font-size: 0.95rem;
  line-height: 1;
}

/* Make sure it stays single row on small screens */
.top-nav-bar {
  white-space: nowrap;
}

.pill {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

.btn-primary-custom {
  border-radius: 999px;
  padding-inline: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: var(--shadow-glow);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-primary-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.75);
  color: #fff;
}

.btn-ghost-custom {
  border-radius: 999px;
  padding-inline: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-ghost-custom:hover {
  border-color: rgba(59, 130, 246, 0.9);
  color: #bfdbfe;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

/* Hero */

.hero-card {
  border-radius: 26px;
  padding: 24px 20px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.5), transparent 55%),
    radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.45), transparent 55%),
    linear-gradient(135deg, #020617, #020617);
  border: 1px solid rgba(55, 65, 81, 0.8);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.28),
    transparent 55%
  );
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin-bottom: 12px;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.35);
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.hero-title span.gradient {
  background: linear-gradient(to right, #38bdf8, #22c55e, #eab308);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 16px;
}

.hero-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38bdf8;
}

/* Hero visual card */

.hero-visual-wrapper {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
}

.hero-visual-bg,
.hero-visual-main {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(15, 23, 42, 0.95);
}

.hero-visual-bg {
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(circle at bottom, rgba(249, 115, 22, 0.35), transparent 55%),
    radial-gradient(circle at center, #020617, #020617 60%);
  filter: blur(1px);
  opacity: 0.75;
}

.hero-visual-main {
  transform: translateY(-6px);
}

.hero-visual-inner {
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.45), transparent 60%),
    radial-gradient(circle at bottom right, rgba(234, 179, 8, 0.35), transparent 60%),
    rgba(3, 7, 18, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-visual-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  opacity: 0.65;
  pointer-events: none;
}

.hero-card-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.7);
  color: #bfdbfe;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.hero-card-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}

.hero-card-progress {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  position: relative;
}

.hero-card-progress-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(to right, #22c55e, #eab308, #f97316);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.85);
}

/* Content section & game cards */

.section-card {
  margin-top: 16px;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.96)
  );
  border-radius: 20px;
  border: 1px solid rgba(55, 65, 81, 0.85);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f97316;
}

.game-card {
  position: relative;
  border-radius: 18px;
  padding: 10px;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.4), transparent 55%),
    radial-gradient(circle at bottom, rgba(248, 113, 113, 0.25), transparent 60%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.55);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
  transition: all 0.18s ease;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.9);
  border-color: rgba(59, 130, 246, 0.9);
}

.game-thumb {
  border-radius: 14px;
  height: 130px;
  margin-bottom: 10px;
  background-image:
    radial-gradient(circle at 0 0, #22c55e, transparent 52%),
    radial-gradient(circle at 100% 0, #3b82f6, transparent 52%),
    radial-gradient(circle at 50% 100%, #eab308, transparent 52%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(15, 23, 42, 0.65);
}

.game-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.game-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.game-tag {
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.95);
}

.game-play {
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #bfdbfe;
}

.game-play-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

/* Small tweaks for mobile */

@media (max-width: 575.98px) {
  .hero-card {
    padding: 20px 16px;
  }
  .top-nav-card {
    flex-wrap: wrap;
    gap: 8px;
  }

  .main-header {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .stake-logo img {
    width: 96px;
    max-width: 28vw;
  }

  .stake-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
  }

  .stake-wallet-card {
    flex: 1;
    min-width: 0;
  }

  .stake-wallet-balance {
    min-width: 0;
    flex: 1;
    padding: 0 0.5rem;
  }

  .btn-stake-wallet {
    min-width: 0;
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }

  .wallet-value {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }

  .header-actions {
    display: none;
  }

  body.header-actions-open .header-actions {
    display: flex;
    position: absolute;
    right: 16px;
    top: calc(100% + 10px);
    background: rgba(3, 7, 18, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    padding: 6px;
    gap: 6px;
    box-shadow: 0 18px 35px rgba(2, 6, 23, 0.75);
    z-index: 120;
  }

  .main-header {
    position: relative;
  }

  .header-actions-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .header-actions .btn-nav-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .header-actions .btn-nav-icon .nav-icon,
  .header-actions-toggle .nav-icon {
    width: 18px;
    height: 18px;
  }
}

/* Ultra-small screens: hide brand to keep row clean */
@media (max-width: 420px) {
  .top-brand-name {
    display: none !important;
  }
}

/* === Page theme variants === */

/* Games page: more neon / fun */
.page-games .hero-card {
  background: radial-gradient(circle at 0 0, #22c55e22, transparent 55%),
              radial-gradient(circle at 100% 0, #6366f122, transparent 55%),
              linear-gradient(135deg, #020617, #020617);
  border-radius: 20px;
  border: 1px solid #1f2937;
}

/* compact hero, less "card" feeling, more banner */
.hero-card-banner {
  background: radial-gradient(circle at 0 0, #22d3ee33, transparent 55%),
              radial-gradient(circle at 100% 0, #a855f733, transparent 55%),
              linear-gradient(135deg, #020617, #020617);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
}

/* small strip sub-nav under hero */
.page-subnav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.page-subnav-pill {
  border-radius: 999px;
  border: 1px solid #1f2937;
  padding: 0.2rem 0.75rem;
  background: #020617;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-subnav-pill span.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.page-subnav-pill.active {
  background: radial-gradient(circle at 0 0, #22c55e33, transparent 60%),
              #020617;
  color: #e5e7eb;
  border-color: #22c55e;
}

/* Games: bigger + alternate cards to break pattern */
.game-card-lg .game-thumb {
  height: 130px;
  font-size: 0.8rem;
}

.game-card-lg .game-title {
  font-size: 0.9rem;
}

/* alternate style with soft border + subtle gradient */
.game-card-alt {
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: radial-gradient(circle at 0 0, #0ea5e911, transparent 55%),
              #020617;
}

/* "ribbon" tag on top-left of game thumb */
.game-ribbon {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

/* make game card container relative so ribbon/fav can float */
.game-card {
  position: relative;
}

/* move favorite icon slightly inwards */
.game-fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  border: 0;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.game-card-wrapper.is-favorite .game-fav-btn {
  background: radial-gradient(circle at 0 0,#f97316aa,transparent 60%),
              rgba(15, 23, 42, 0.95);
}

/* Slight hover difference for games page cards */
.page-games .game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}
