@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #0ECB81;
  --red: #F6465D;
  --blue: #1E80FF;
  --bg: #ffffff;
  --bg2: #F5F6FA;
  --bg3: #EAECEF;
  --text1: #1E2026;
  --text2: #474D57;
  --text3: #848E9C;
  --border: #EAECEF;
  --card-radius: 12px;
  --nav-h: 60px;
  --status-h: 0px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow: hidden;
}

/* APP WRAPPER */
.app-wrapper {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 32px 80px rgba(0, 0, 0, 0.4);
}

/* DARK MODE APP WRAPPER GLASS EFFECT */
.app-wrapper.dark-mode {
  background: rgba(14, 18, 28, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* STATUS BAR */
.status-bar {
  display: none !important;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.battery-icon {
  background: #1E2026;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* PAGES CONTAINER */
.pages-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* PAGES */
.page {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
  padding-bottom: 96px; /* increased padding for floating glassmorphic nav dock */
}

.page.active {
  display: block;
}

.page::-webkit-scrollbar {
  display: none;
}

/* HEADERS */
.page-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}

.home-header {
  gap: 8px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text1);
  font-size: 18px;
  border-radius: 8px;
  transition: background 0.15s;
}

.icon-btn:active {
  background: var(--bg2);
}

.icon-btn.small {
  font-size: 14px;
  padding: 2px;
}

.notification-btn {
  position: relative;
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--red);
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SEARCH BAR */
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg2);
  border-radius: 20px;
  padding: 8px 12px;
  gap: 6px;
}

.search-bar.full-width {
  flex: 1;
}

.search-input {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text1);
  flex: 1;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text3);
}

.search-icon-coin {
  font-size: 14px;
}

/* ============ HOME PAGE ============ */

/* ASSET SECTION */
.asset-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 10px;
}

.asset-label {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 4px;
}

.arrow-up {
  font-size: 11px;
}

.asset-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.asset-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--text1);
  letter-spacing: -1px;
}

.asset-currency {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}

.dropdown-arrow {
  font-size: 12px;
  color: var(--text3);
}

.asset-chart {
  opacity: 0.7;
}

/* ACTION BUTTONS */
.action-buttons {
  display: flex;
  gap: 12px;
  padding: 6px 16px 14px;
}

.btn-deposit {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--bg3);
  border-radius: 24px;
  background: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text1);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-deposit:active {
  background: var(--bg2);
}

.btn-trade {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 24px;
  background: var(--text1);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-trade:active {
  opacity: 0.85;
}

/* QUICK MENU */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 8px 12px;
  gap: 4px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  gap: 6px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
}

.menu-item:active {
  background: var(--bg2);
}

.menu-icon {
  width: 44px;
  height: 44px;
  background: var(--bg2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text1);
  transition: all 0.2s ease;
}

.menu-item:hover .menu-icon,
.menu-item:active .menu-icon {
  background: var(--bg3);
  transform: translateY(-2px);
}

.menu-icon svg {
  color: var(--text1);
  stroke-width: 1.8;
}

.percent-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue) !important;
}

.menu-icon-wrapper {
  position: relative;
}

.menu-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--blue);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 6px;
}

.menu-label {
  font-size: 11px;
  color: var(--text2);
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

/* MARKET CARDS */
.market-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 16px 12px;
}

.market-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market-card:active {
  background: var(--bg2);
  transform: scale(0.98);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-icon-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-coin-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.card-coin-logo-svg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-pair {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
}

.card-category {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-bottom: 2px;
}

.card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text1);
  letter-spacing: -0.5px;
}

.card-change {
  font-size: 11px;
  font-weight: 600;
}

.card-change.positive {
  color: var(--green);
}

.card-change.negative {
  color: var(--red);
}

.sparkline {
  display: block;
  width: 100%;
}

/* VIP BANNER */
.vip-banner {
  margin: 0 16px 10px;
  background: var(--bg2);
  border-radius: var(--card-radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.vip-icon {
  font-size: 20px;
}

.vip-text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
}

.vip-btn {
  background: var(--text1);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* PROMO REWARD BANNER */
.promo-reward-banner {
  margin: 12px 16px;
  background: linear-gradient(135deg, #1b1307 0%, #0d0802 100%);
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(235, 208, 106, 0.15);
}

.promo-reward-banner:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promo-reward-banner::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(235, 208, 106, 0.08) 0%, rgba(235, 208, 106, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.promo-reward-graphic-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.promo-doge-coin-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-doge-coin-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  animation: floatDoge 3s ease-in-out infinite;
}

.promo-doge-d-letter {
  position: absolute;
  font-size: 34px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', sans-serif;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.promo-sparkle {
  position: absolute;
  color: #ebd06a;
  font-size: 14px;
  text-shadow: 0 0 5px rgba(235, 208, 106, 0.8);
  animation: pulseSparkle 2s ease-in-out infinite;
}

.sparkle-1 {
  top: 4px;
  right: -2px;
  font-size: 16px;
}

.sparkle-2 {
  top: -8px;
  right: 12px;
  font-size: 10px;
  animation-delay: 0.5s;
}

.promo-bonus-badge {
  background: #ebd06a;
  color: #120902;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: nowrap;
  margin-top: -8px;
  z-index: 10;
  letter-spacing: -0.2px;
}

.promo-reward-text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
  align-items: flex-start;
}

.promo-new-user-badge {
  background: #ebd06a;
  color: #120902;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}

.promo-main-heading {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 2px 0 0 0;
  letter-spacing: -0.3px;
}

.gold-text {
  color: #ebd06a;
  text-shadow: 0 0 10px rgba(235, 208, 106, 0.3);
}

.promo-sub-text {
  font-size: 11px;
  font-weight: 500;
  color: #9b9181;
  line-height: 1.3;
  margin: 0;
}

.promo-claim-btn {
  background: #ebd06a;
  color: #120902;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(235, 208, 106, 0.2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.promo-claim-btn:active {
  transform: scale(0.96);
  background: #d8be5c;
}

@keyframes floatDoge {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}

@keyframes pulseSparkle {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* NEWS TICKER */
.news-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg2);
  margin: 0 0 0 0;
  font-size: 12px;
  color: var(--text2);
}

.ticker-text {
  font-weight: 400;
}

.ticker-icon {
  font-weight: 600;
  color: var(--text1);
}

/* DISCOVER */
.discover-section {
  padding: 10px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.discover-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discover-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
}

.discover-tabs {
  display: flex;
  gap: 16px;
}

.discover-tab {
  font-size: 13px;
  color: var(--text3);
  cursor: pointer;
  padding: 2px 0;
}

.discover-tab.active {
  color: var(--text1);
  font-weight: 600;
}

.discover-collapse {
  margin-left: auto;
  color: var(--text3);
  cursor: pointer;
}

/* ============ MARKETS PAGE ============ */
.category-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 16px;
  gap: 4px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  white-space: nowrap;
  padding: 10px 14px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.cat-tab.active {
  color: var(--text1);
  font-weight: 700;
  border-bottom-color: var(--text1);
}

.spot-futures-tabs {
  display: flex;
  padding: 8px 16px;
  gap: 16px;
}

.sf-tab {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.sf-tab.active {
  color: var(--text1);
  font-weight: 700;
  border-bottom-color: var(--text1);
}

/* FILTERS */
.market-filters {
  display: flex;
  overflow-x: auto;
  padding: 0 16px 10px;
  gap: 8px;
  scrollbar-width: none;
}

.market-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background: var(--bg3);
  color: var(--text1);
  font-weight: 600;
  border-color: var(--bg3);
}

.filter-btn.dropdown {
  font-weight: 600;
  color: var(--text1);
}

/* MARKETS TABLE */
.markets-table-header {
  display: grid;
  grid-template-columns: 36px 1.6fr 1fr 0.8fr;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  gap: 10px;
}

.markets-list {
  padding: 0;
}

.market-row {
  display: grid;
  grid-template-columns: 36px 1.6fr 1fr 0.8fr;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  cursor: pointer;
  gap: 10px;
  transition: background 0.15s;
}

.market-row:active {
  background: var(--bg2);
}

.row-pair {}

.pair-name-big {
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
}

.pair-type {
  font-size: 10px;
  color: var(--text3);
}

.pair-vol {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.pair-vol-tags {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.vol-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(30, 128, 255, 0.12);
  color: var(--blue);
}

.vol-tag.free {
  background: rgba(14, 203, 129, 0.12);
  color: var(--green);
}

.row-price {}

.price-big {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}

.price-big.negative {
  color: var(--red);
}

.price-usd {
  font-size: 11px;
  color: var(--text3);
}

.row-change {
  display: flex;
  justify-content: flex-end;
}

.change-badge {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  min-width: 64px;
  text-align: center;
}

.change-badge.pos {
  background: var(--green);
  color: white;
}

.change-badge.neg {
  background: var(--red);
  color: white;
}

.bottom-ticker {
  margin-top: 8px;
}

/* ============ TRADE PAGE ============ */
.trade-sub-tabs {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}

.trade-sub-tabs::-webkit-scrollbar {
  display: none;
}

.trade-tab {
  white-space: nowrap;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.trade-tab.active {
  color: var(--text1);
  font-weight: 700;
  border-bottom-color: var(--text1);
}

.pick-badge {
  margin-left: auto;
  white-space: nowrap;
  background: var(--bg2);
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
}

/* TRADE MAIN LAYOUT */
.trade-main {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 0;
  min-height: 300px;
  border-bottom: 1px solid var(--border);
}

/* ORDER FORM */
.order-form-col {
  padding: 10px 12px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.order-form-col::-webkit-scrollbar {
  display: none;
}

.pair-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pair-name {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--text1);
}

.pair-dropdown {
  color: var(--text3);
  font-size: 12px;
}

.pair-change {
  font-size: 12px;
  font-weight: 600;
}

.pair-change.positive {
  color: var(--green);
}

.pair-change.negative {
  color: var(--red);
}

.pair-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.leverage-badge {
  background: var(--bg2);
  color: var(--text1);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* BUY/SELL TOGGLE */
.buy-sell-toggle {
  display: flex;
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bs-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text3);
  transition: all 0.2s;
}

.bs-btn.buy.active {
  background: var(--green);
  color: white;
}

.bs-btn.sell.active {
  background: var(--red);
  color: white;
}

/* ORDER TYPE */
.order-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.info-icon {
  color: var(--text3);
  font-size: 14px;
  cursor: pointer;
}

.order-type-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
  background: var(--bg);
  outline: none;
  cursor: pointer;
}

/* TRADE INPUTS */
.trade-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
  background: var(--bg);
}

.trade-input-group.total-input {
  background: var(--bg2);
  border-color: var(--bg2);
}

.qty-btn {
  width: 34px;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 400;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.qty-btn:active {
  background: var(--bg2);
}

.trade-input-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  text-align: center;
}

.trade-input-center.full {
  padding: 8px 10px;
  align-items: flex-start;
  flex-direction: row;
  justify-content: space-between;
}

.trade-input-center label {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
}

.trade-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
  text-align: center;
  width: 100%;
}

.total-label {
  font-size: 13px;
  color: var(--text3);
}

.total-value {
  font-size: 13px;
  color: var(--text3);
}

.best-price-hint {
  font-size: 11px;
  color: var(--text3);
  padding: 0 2px 6px;
}

.usdt-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text1);
  padding-right: 8px;
  white-space: nowrap;
}

/* SLIDER */
.slider-row {
  margin: 6px 0;
  padding: 0 2px;
}

.trade-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 3px;
  border-radius: 2px;
  background: var(--bg3);
  outline: none;
}

.trade-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--green);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.trade-slider.futures::-webkit-slider-thumb {
  border-color: var(--blue);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text3);
  padding: 0 2px;
  margin-bottom: 8px;
}

/* TP/SL, AVAIL */
.tpsl-row,
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
}

.avail-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 11px;
  color: var(--text3);
}

/* ACTION BUTTONS */
.action-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin: 8px 0;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

.buy-action {
  background: var(--green);
  color: white;
}

.buy-action.sell-mode {
  background: var(--red);
}

.buy-action:active {
  opacity: 0.85;
  transform: scale(0.98);
}

.open-long-btn {
  background: var(--green);
  color: white;
}

.open-short-btn {
  background: var(--red);
  color: white;
  margin-bottom: 4px;
}

.open-long-btn:active,
.open-short-btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

/* ORDER BOOK */
.order-book-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 6px 0;
  background: var(--bg);
}

.order-book-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px 8px;
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
}

.futures-ob-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.funding-rate {
  text-align: center;
  font-size: 9px;
  color: var(--text3);
  padding: 4px 8px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.funding-rate .positive {
  color: var(--green);
  font-weight: 600;
}

.order-book-asks,
.order-book-bids {
  overflow: hidden;
}

.ob-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  position: relative;
}

.ob-row .ob-price {
  font-weight: 600;
}

.ob-row .ob-amount {
  text-align: right;
  color: var(--text2);
}

.ask-row .ob-price {
  color: var(--red);
}

.bid-row .ob-price {
  color: var(--green);
}

.ob-row .ob-bg {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  opacity: 0.1;
  border-radius: 2px;
}

.ask-row .ob-bg {
  background: var(--red);
}

.bid-row .ob-bg {
  background: var(--green);
}

.current-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2px 0;
}

.cp-price {
  font-size: 15px;
  font-weight: 800;
}

.cp-price.positive {
  color: var(--green);
}

.cp-price.negative {
  color: var(--red);
}

.cp-usd,
.cp-sub {
  font-size: 10px;
  color: var(--text3);
}

.orderbook-footer {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 10px;
  color: var(--text3);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.ob-dropdown,
.ob-view {
  border: none;
  background: var(--bg2);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 11px;
  cursor: pointer;
}

/* CHART SECTION */
.chart-section {
  border-top: 1px solid var(--border);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text1);
}

.show-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  font-family: inherit;
}

.chart-body {
  padding: 8px 16px 16px;
}

/* ORDERS SECTION */
.orders-section {
  padding: 0 16px 10px;
}

.orders-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.orders-tabs::-webkit-scrollbar {
  display: none;
}

.orders-tab {
  white-space: nowrap;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.orders-tab.active {
  color: var(--text1);
  font-weight: 700;
  border-bottom-color: var(--text1);
}

.orders-tab-icon {
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text2);
  font-size: 16px;
}

.hide-pairs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text2);
  padding: 4px 0;
}

.empty-orders {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--text3);
}

/* FUTURES SPECIFIC */
.leverage-row {
  margin-bottom: 8px;
}

.leverage-tag {
  background: var(--bg2);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
}

.futures-selectors {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.futures-select {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text1);
  background: var(--bg);
  outline: none;
  cursor: pointer;
}

.open-close-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.oc-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: var(--bg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text3);
}

.oc-btn.open.active {
  background: var(--green);
  color: white;
}

.oc-btn.close.active {
  background: var(--red);
  color: white;
}

.futures-avail {
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-bottom: 6px;
}

.market-price-placeholder {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 6px;
  background: var(--bg2);
}

.ls-ratio {
  padding: 4px 8px;
}

.ls-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.ls-long {
  background: var(--green);
}

.ls-short {
  background: var(--red);
}

.ls-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
}

.ls-labels .positive {
  color: var(--green);
}

.ls-labels .negative {
  color: var(--red);
}

.promo-banner {
  background: var(--bg2);
  border-radius: var(--card-radius);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  position: relative;
}

.promo-timer {
  font-size: 10px;
  color: var(--text3);
  margin-bottom: 2px;
}

.promo-text {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.4;
}

.promo-left {
  flex: 1;
}

.register-btn {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============ WALLETS PAGE ============ */
.wallet-tabs {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}

.wallet-tabs::-webkit-scrollbar {
  display: none;
}

.wallet-tab {
  white-space: nowrap;
  padding: 12px 10px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.wallet-tab.active {
  color: var(--text1);
  font-weight: 700;
  border-bottom-color: var(--text1);
}

.wallet-tab.icon-tab {
  margin-left: auto;
}

.wallet-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.wallet-total-left {
  flex: 1;
}

.wallet-label {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 4px;
}

.wallet-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.wallet-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text1);
  letter-spacing: -1px;
}

.wallet-currency {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}

.wallet-usd {
  font-size: 13px;
  color: var(--text3);
  margin-top: 4px;
}

.wallet-total-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.earn-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
}

.wallet-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
}

.wallet-action-btn {
  flex: 1;
  padding: 9px 6px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text1);
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-action-btn.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.wallet-action-btn:active {
  background: var(--bg2);
}

.wallet-action-btn.primary:active {
  opacity: 0.85;
}

.wallet-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 16px;
  background: var(--bg2);
  border-radius: var(--card-radius);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
  cursor: pointer;
}

.promo-counter {
  margin-left: auto;
  font-size: 11px;
  color: var(--text3);
}

.wallet-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 15px;
  color: var(--text2);
}

.wallet-section-title strong {
  color: var(--text1);
  font-weight: 700;
}

.pie-chart-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.account-list {
  padding-bottom: 16px;
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.account-item:active {
  background: var(--bg2);
}

.account-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-icon {
  font-size: 20px;
}

.account-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text1);
}

.account-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text1);
}

.account-arrow {
  color: var(--text3);
  font-size: 16px;
}

/* BOTTOM NAVIGATION (iOS-style Glassmorphic Dock) */
.bottom-nav {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  height: 66px;
  background: rgba(255, 255, 255, 0.72); /* Modern semi-transparent light background */
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1.2px solid rgba(255, 255, 255, 0.5); /* Modern glass reflection border */
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 6px;
  margin: 0;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px 0;
  color: #8E8E93;
  /* iOS standard inactive gray */
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  border-radius: 18px;
  transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.nav-item.active {
  color: #007AFF;
  /* iOS native blue */
  font-weight: 600;
}

.nav-item .nav-icon-svg {
  transition: transform 0.25s ease, stroke-width 0.25s ease;
  stroke: currentColor;
  stroke-width: 1.8;
}

.nav-item.active .nav-icon-svg {
  stroke-width: 2.2;
  transform: scale(1.1);
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* COIN LOGO / ICON STYLES */
.coin-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.coin-icon-wrapper.f-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coin-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--bg3);
  color: var(--text1);
}

.market-row:hover .coin-icon-wrapper {
  transform: scale(1.08);
}

/* MODAL PREMIUM ICONS */
.modal-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.3s ease;
}

.modal-icon-wrapper.success {
  background: rgba(14, 203, 129, 0.12);
  color: var(--green);
}

.modal-icon-wrapper.danger {
  background: rgba(246, 70, 93, 0.12);
  color: var(--red);
}

.modal-icon-wrapper svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-card {
  background: white;
  border-radius: 20px;
  padding: 28px 24px;
  width: 280px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 10px;
}

.modal-text {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-btn {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 12px 40px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn:active {
  opacity: 0.85;
}

/* PRICE FLASH ANIMATIONS */
@keyframes flashGreen {
  0% {
    background: rgba(14, 203, 129, 0.2);
  }

  100% {
    background: transparent;
  }
}

@keyframes flashRed {
  0% {
    background: rgba(246, 70, 93, 0.2);
  }

  100% {
    background: transparent;
  }
}

.flash-green {
  animation: flashGreen 0.5s ease-out;
}

.flash-red {
  animation: flashRed 0.5s ease-out;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text1);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg3);
  border-radius: 2px;
}

/* PULSE ANIMATION FOR PRICES */
@keyframes pricePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.price-updating {
  animation: pricePulse 0.3s ease;
}

/* ============================================================
   PROFILE PAGE STYLES
   ============================================================ */

#page-profile {
  background-color: #F8F9FB;
  color: #1E2026;
  padding-bottom: 120px; /* space for bottom nav dock */
}

/* Profile Header */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #F0F2F5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.profile-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-header .icon-btn {
  color: #1E2026;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
}

.profile-header .icon-btn:active {
  background: #F5F6FA;
}

/* User Info Card */
.profile-user-card {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  background: #ffffff;
  margin-bottom: 12px;
  gap: 16px;
  cursor: pointer;
  border-bottom: 1px solid #F0F2F5;
}

.user-avatar-wrapper {
  position: relative;
}

.user-avatar-red {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F6465D; /* rich red */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(246, 70, 93, 0.2);
}

.user-details-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.profile-username {
  font-size: 18px;
  font-weight: 700;
  color: #1E2026;
}

.uid-row {
  font-size: 11px;
  color: #848E9C;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.uid-row:hover {
  color: var(--blue);
}

.badge-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.profile-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.profile-badge.unverified {
  background: rgba(246, 70, 93, 0.08);
  border: 1px solid rgba(246, 70, 93, 0.3);
  color: #F6465D; /* RED badge to signify KYC is required */
  font-weight: 700;
}

.profile-badge.vip {
  background: #F0F2F5;
  color: #848E9C;
  border: 1px solid #EAECEF;
}

.profile-arrow {
  font-size: 20px;
  color: #C0C4CC;
  font-weight: 300;
  margin-left: auto;
}

/* Level Up Card */
.level-up-card {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  margin: 0 16px 12px;
  border: 1px solid #F0F2F5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.level-up-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.level-up-title {
  font-size: 13px;
  font-weight: 500;
  color: #474D57;
  line-height: 1.4;
  flex: 1;
}

.level-up-deposit-btn {
  background: #1E2026;
  color: #ffffff;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.level-up-deposit-btn:active {
  opacity: 0.8;
}

.progress-bar-container {
  height: 4px;
  background: #F5F6FA;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: #FF9500; /* vibrant level orange */
  border-radius: 2px;
}

.progress-bar-labels {
  font-size: 11px;
  color: #848E9C;
  font-weight: 600;
}

/* Security Advisory Card */
.security-advisory-card {
  background: #FFFDF9;
  border: 1px solid #FFE7C2;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 16px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.security-advisory-card:active {
  background: #FFF9ED;
}

.security-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.security-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.security-desc {
  font-size: 12px;
  color: #474D57;
  line-height: 1.4;
}

.security-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1E80FF;
}

.security-link:hover {
  text-decoration: underline;
}

.security-divider {
  color: #FFE7C2;
  font-weight: 400;
}

/* Quick Access / Section Containers */
.profile-section-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin: 0 16px 16px;
  border: 1px solid #F0F2F5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.profile-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E2026;
}

.add-homepage-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #848E9C;
  font-weight: 600;
  cursor: pointer;
}

.add-homepage-checkbox input[type="checkbox"] {
  accent-color: #1e2026;
  cursor: pointer;
}

.profile-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 10px;
}

.quick-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
}

.quick-grid-item span {
  font-size: 11px;
  color: #474D57;
  font-weight: 500;
  line-height: 1.2;
}

.quick-icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F8F9FB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E2026;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-grid-item:hover .quick-icon-bg,
.quick-grid-item:active .quick-icon-bg {
  background: #F0F2F5;
  transform: translateY(-2px);
  color: #1E80FF;
}

.quick-icon-bg svg {
  stroke-width: 2.2;
  width: 20px;
  height: 20px;
}

/* About Footer */
.profile-about-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  margin: 12px 16px 32px;
  font-size: 13px;
  font-weight: 500;
  color: #474D57;
  border-top: 1px solid #F0F2F5;
}

.about-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-tag {
  color: #848E9C;
  font-size: 12px;
  font-weight: 500;
}

.rate-now-link {
  color: #1E80FF;
  cursor: pointer;
  font-weight: 600;
}

.rate-now-link:hover {
  text-decoration: underline;
}


/* ============================================================
   DESKTOP STYLES (Binance Dark Mode Theme)
   ============================================================ */

.desktop-view {
  display: none;
}


/* DESKTOP HEADER */
.desktop-header {
  height: 64px;
  background: #181D23;
  border-bottom: 1.5px solid #2B3139;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 1000;
}

.d-header-left, .d-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.d-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
}

.d-logo-icon {
  color: #1E80FF;
}

.d-nav-menu {
  display: flex;
  gap: 8px;
}

.d-nav-link {
  background: none;
  border: none;
  color: #929AA5;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.d-nav-link:hover, .d-nav-link.active {
  color: #FFFFFF;
  background: #2B3139;
}

.d-header-asset {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2B3139;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.d-asset-label {
  color: #929AA5;
}

.d-asset-value {
  color: #0ECB81;
}

.d-icon-btn {
  background: none;
  border: none;
  color: #929AA5;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.d-icon-btn:hover {
  color: #FFFFFF;
  background: #2B3139;
}

.d-notification-btn {
  position: relative;
}

.d-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #F6465D;
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-profile-btn {
  background: #2B3139;
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.d-profile-btn:hover {
  opacity: 0.85;
}

.d-time {
  font-size: 14px;
  font-weight: 600;
  color: #929AA5;
}

/* MAIN PANELS */
.desktop-main {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  background: #0B0E11;
  overflow: hidden;
}

.desktop-column {
  background: #12161A;
  border-right: 1.5px solid #2B3139;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.markets-panel {
  border-right: none;
  border-left: 1.5px solid #2B3139;
}

.panel-header {
  padding: 14px 20px;
  border-bottom: 1px solid #2B3139;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

/* ORDER BOOK */
.d-ob-grid-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 20px;
  font-size: 11px;
  color: #929AA5;
  font-weight: 600;
  border-bottom: 1px solid #1E2329;
}

.d-ob-asks, .d-ob-bids {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.d-ob-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px 20px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  cursor: pointer;
}

.d-ob-row:hover {
  background: #1E2329;
}

.d-ob-row .d-ob-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.d-ob-row .price {
  z-index: 2;
}

.d-ob-row .size {
  text-align: right;
  color: #C0C4CC;
  z-index: 2;
}

.d-ob-row.ask-row .price {
  color: #F6465D;
}
.d-ob-row.ask-row .d-ob-bg {
  background: #F6465D;
}

.d-ob-row.bid-row .price {
  color: #0ECB81;
}
.d-ob-row.bid-row .d-ob-bg {
  background: #0ECB81;
}

.d-ob-mid-price {
  padding: 10px 20px;
  background: #181D23;
  border-top: 1px solid #2B3139;
  border-bottom: 1px solid #2B3139;
  display: flex;
  align-items: center;
  gap: 10px;
}

.d-mid-price-val {
  font-size: 18px;
  font-weight: 800;
}

.d-mid-price-val.positive {
  color: #0ECB81;
}

.d-mid-price-val.negative {
  color: #F6465D;
}

.d-mid-price-usd {
  font-size: 12px;
  color: #929AA5;
}

/* CENTER PANEL */
.desktop-center-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid transparent;
}

/* Pair details bar */
.d-pair-details-bar {
  height: 56px;
  background: #12161A;
  border-bottom: 1.5px solid #2B3139;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 24px;
}

.d-pair-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.d-pair-title span {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.pair-type-tag {
  background: rgba(30, 128, 255, 0.15);
  color: #1E80FF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.d-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.d-detail-label {
  font-size: 11px;
  color: #929AA5;
}

.d-detail-val {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.d-detail-val.positive {
  color: #0ECB81;
}
.d-detail-val.negative {
  color: #F6465D;
}

/* Chart container */
.d-chart-container {
  flex: 1.2;
  background: #161A1E;
  border-bottom: 1.5px solid #2B3139;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.d-chart-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #12161A;
  border-bottom: 1px solid #2B3139;
}

.d-chart-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.d-timeframes {
  display: flex;
  gap: 6px;
}

.d-timeframes span {
  font-size: 12px;
  color: #929AA5;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
}

.d-timeframes span.active {
  color: #FFFFFF;
  background: #2B3139;
  font-weight: 700;
}

.d-chart-wrapper {
  flex: 1;
  padding: 12px 20px;
  position: relative;
  height: calc(100% - 44px);
}

/* Trade Form container */
.d-trade-form-container {
  height: 250px;
  background: #12161A;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.d-form-header {
  height: 44px;
  border-bottom: 1px solid #2B3139;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.d-buy-sell-tabs {
  display: flex;
  height: 100%;
}

.d-bs-tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0 24px;
  cursor: pointer;
  color: #929AA5;
  border-bottom: 2.5px solid transparent;
}

.d-bs-tab.buy.active {
  color: #0ECB81;
  border-bottom-color: #0ECB81;
}

.d-bs-tab.sell.active {
  color: #F6465D;
  border-bottom-color: #F6465D;
}

.d-order-types {
  display: flex;
  gap: 12px;
}

.d-order-types span {
  font-size: 12px;
  color: #929AA5;
  font-weight: 600;
  cursor: pointer;
}

.d-order-types span.active {
  color: #FFFFFF;
}

.d-form-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 20px;
  gap: 24px;
}

.d-form-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.d-input-group {
  display: flex;
  align-items: center;
  background: #1E2329;
  border: 1px solid #2B3139;
  border-radius: 8px;
  height: 40px;
  padding: 0 12px;
}

.d-input-group:focus-within {
  border-color: #1E80FF;
}

.d-input-label {
  font-size: 12px;
  color: #929AA5;
  width: 50px;
}

.d-form-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  padding-right: 8px;
}

.d-input-suffix {
  font-size: 12px;
  color: #FFFFFF;
  font-weight: 600;
}

.d-slider-group {
  margin-top: 4px;
}

.d-range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 3px;
  background: #2B3139;
  outline: none;
  border-radius: 2px;
}

.d-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #0ECB81;
  cursor: pointer;
}

.d-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #929AA5;
  margin-top: 4px;
}

.d-form-actions-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.d-avail-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #929AA5;
}

.d-avail-info .positive {
  color: #EAECEF;
  font-weight: 700;
}

.d-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: #929AA5;
  margin-top: 8px;
}

.d-total-row strong {
  font-size: 16px;
  color: #FFFFFF;
}

.d-action-btn {
  height: 42px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #FFFFFF;
  transition: opacity 0.2s;
  margin-top: auto;
}

.d-action-btn.buy-btn {
  background: #0ECB81;
}

.d-action-btn.sell-btn {
  background: #F6465D;
}

.d-action-btn:active {
  opacity: 0.85;
}

/* MARKETS PANEL */
.d-markets-search-bar {
  display: flex;
  align-items: center;
  background: #1E2329;
  border: 1px solid #2B3139;
  border-radius: 8px;
  margin: 12px 16px;
  padding: 8px 12px;
  gap: 8px;
}

.d-markets-search-bar svg {
  color: #929AA5;
}

.d-market-search-input {
  background: none;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  flex: 1;
}

.d-markets-category-tabs {
  display: flex;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid #2B3139;
}

.d-m-cat-tab {
  background: none;
  border: none;
  color: #929AA5;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
}

.d-m-cat-tab.active {
  color: #FFFFFF;
  border-bottom-color: #1E80FF;
}

.d-markets-table-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 8px 16px;
  font-size: 11px;
  color: #929AA5;
  font-weight: 600;
  border-bottom: 1px solid #1E2329;
}

.d-markets-list {
  flex: 1;
  overflow-y: auto;
}

.d-market-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #1E2329;
  cursor: pointer;
  align-items: center;
  transition: background 0.15s;
}

.d-market-row:hover {
  background: #1E2329;
}

.d-market-row .pair {
  color: #EAECEF;
}

.d-market-row .price {
  color: #EAECEF;
}

.d-market-row .change {
  text-align: right;
}

.d-market-row .change.pos {
  color: #0ECB81;
}

.d-market-row .change.neg {
  color: #F6465D;
}

/* DESKTOP FOOTER / SUB PANELS */
.desktop-footer {
  height: 180px;
  background: #12161A;
  border-top: 1.5px solid #2B3139;
  display: grid;
  grid-template-columns: 1fr 320px;
  flex-shrink: 0;
}

.d-footer-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.open-orders-panel {
  border-right: 1.5px solid #2B3139;
}

.d-panel-tabs {
  display: flex;
  border-bottom: 1px solid #2B3139;
  padding: 0 20px;
  gap: 20px;
  background: #181D23;
}

.d-panel-tabs span {
  font-size: 12px;
  color: #929AA5;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}

.d-panel-tabs span.active {
  color: #FFFFFF;
  border-bottom-color: #1E80FF;
}

.d-orders-table-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-empty-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #5E6673;
  font-size: 13px;
  font-weight: 500;
}

.d-empty-table svg {
  color: #3C424C;
}

.balances-panel .panel-header {
  background: #181D23;
  padding: 10px 20px;
}

.d-balances-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  gap: 10px;
  background: #12161A;
}

.d-balance-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.d-bal-label {
  color: #929AA5;
}

.d-bal-amount {
  color: #FFFFFF;
}

/* HIDE OLD DESKTOP VIEW GLOBALLY */
.desktop-view {
  display: none !important;
}

/* RESPONSIVE LAYOUT FOR MOBILE SHOWCASE ON DESKTOP */
@media (min-width: 1025px) {
  body {
    background: #3e4351; /* clean slate gray background like the screenshot */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
  }
  
  .app-wrapper {
    max-width: 430px;
    height: 100vh;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 1024px) {
  body {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
  }

  .app-wrapper {
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    box-shadow: none;
  }

  /* Scale down elements for mobile screen optimization */
  .asset-amount {
    font-size: 28px;
  }
  
  .asset-label {
    font-size: 12px;
  }
  
  .asset-currency {
    font-size: 13px;
  }

  .action-buttons {
    padding: 6px 12px 10px;
    gap: 10px;
  }

  .btn-deposit, .btn-trade {
    padding: 10px;
    font-size: 13.5px;
    border-radius: 20px;
  }

  .menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .menu-icon svg {
    width: 18px;
    height: 18px;
  }

  .menu-item {
    padding: 6px 4px;
  }

  .menu-label {
    font-size: 10px;
  }

  /* Banner adjustments */
  .promo-reward-banner {
    margin: 10px 12px;
    padding: 12px 14px;
  }

  .promo-doge-coin-wrapper {
    width: 58px;
    height: 58px;
  }

  .promo-doge-coin-img {
    width: 50px;
    height: 50px;
  }

  .promo-bonus-badge {
    font-size: 8.5px;
    padding: 2px 6px;
    margin-top: -6px;
  }

  .promo-main-heading {
    font-size: 15px;
  }

  .promo-sub-text {
    font-size: 10px;
  }

  .promo-claim-btn {
    font-size: 11px;
    padding: 5px 12px;
    margin-top: 2px;
  }

  /* Market cards adjustments */
  .market-cards {
    padding: 4px 12px 10px;
    gap: 8px;
  }

  .market-card {
    padding: 10px;
    gap: 6px;
  }

  .card-price {
    font-size: 14.5px;
  }

  /* Header & Search Bar adjustments */
  .page-header {
    padding: 8px 12px;
  }

  .search-bar {
    padding: 6px 10px;
  }

  .search-input {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .app-wrapper {
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    box-shadow: none;
  }
}

/* ============================================================
   MOBILE DARK MODE OVERRIDES (Dynamic Device Theme Switching)
   ============================================================ */
.app-wrapper.dark-mode {
  --bg: #12161A;
  --bg2: #1E2329;
  --bg3: #2B3139;
  --text1: #EAECEF;
  --text2: #929AA5;
  --text3: #5E6673;
  --border: #21262C;
}

/* Dark mode custom adaptations */
.app-wrapper.dark-mode .btn-deposit {
  background: var(--bg2);
  border-color: var(--border);
  color: var(--text1);
}
.app-wrapper.dark-mode .btn-deposit:active {
  background: var(--bg3);
}
.app-wrapper.dark-mode .market-card {
  background: var(--bg);
  border-color: var(--border);
}
.app-wrapper.dark-mode .market-card:active {
  background: var(--bg2);
}
.app-wrapper.dark-mode .vip-banner {
  background: var(--bg2);
}
.app-wrapper.dark-mode .news-ticker {
  background: var(--bg2);
}
.app-wrapper.dark-mode .discover-section {
  border-top-color: var(--border);
  background: var(--bg);
}
.app-wrapper.dark-mode .category-tabs {
  border-bottom-color: var(--border);
}
.app-wrapper.dark-mode .spot-futures-tabs {
  border-bottom-color: var(--border);
}
.app-wrapper.dark-mode .filter-btn {
  border-color: var(--border);
  background: var(--bg);
}
.app-wrapper.dark-mode .filter-btn.active {
  background: var(--bg3);
}
.app-wrapper.dark-mode .markets-table-header {
  border-bottom-color: var(--border);
}
.app-wrapper.dark-mode .market-row {
  border-bottom-color: var(--border);
}
.app-wrapper.dark-mode .market-row:active {
  background: var(--bg2);
}
.app-wrapper.dark-mode .trade-sub-tabs {
  border-bottom-color: var(--border);
  background: var(--bg);
}
.app-wrapper.dark-mode .trade-main {
  border-bottom-color: var(--border);
}
.app-wrapper.dark-mode .order-form-col {
  border-right-color: var(--border);
}
.app-wrapper.dark-mode .buy-sell-toggle {
  border-color: var(--border);
}
.app-wrapper.dark-mode .bs-btn {
  background: var(--bg);
}
.app-wrapper.dark-mode .bs-btn.buy.active {
  background: #0ecb81 !important;
  color: white !important;
}
.app-wrapper.dark-mode .bs-btn.sell.active {
  background: #f6465d !important;
  color: white !important;
}
.app-wrapper.dark-mode .order-type-select {
  border-color: var(--border);
  background: var(--bg);
  color: var(--text1);
}
.app-wrapper.dark-mode .trade-input-group {
  border-color: var(--border);
  background: var(--bg);
}
.app-wrapper.dark-mode .trade-input-group.total-input {
  background: var(--bg2);
  border-color: var(--bg2);
}
.app-wrapper.dark-mode .qty-btn:active {
  background: var(--bg2);
}
.app-wrapper.dark-mode .trade-input {
  color: var(--text1);
}
.app-wrapper.dark-mode .tpsl-row,
.app-wrapper.dark-mode .checkbox-row {
  color: var(--text2);
}
.app-wrapper.dark-mode .current-price {
  border-top-color: var(--border);
  border-bottom-color: var(--border);
}
.app-wrapper.dark-mode .orderbook-footer {
  border-top-color: var(--border);
}
.app-wrapper.dark-mode .ob-dropdown,
.app-wrapper.dark-mode .ob-view {
  background: var(--bg2);
  color: var(--text2);
}
.app-wrapper.dark-mode .chart-section {
  border-top-color: var(--border);
}
.app-wrapper.dark-mode .orders-tabs {
  border-bottom-color: var(--border);
}
.app-wrapper.dark-mode .futures-selectors select {
  border-color: var(--border);
  background: var(--bg);
  color: var(--text1);
}
.app-wrapper.dark-mode .open-close-toggle {
  border-color: var(--border);
}
.app-wrapper.dark-mode .oc-btn {
  background: var(--bg);
}
.app-wrapper.dark-mode .futures-avail {
  border-top-color: var(--border);
}
.app-wrapper.dark-mode .market-price-placeholder {
  border-color: var(--border);
  background: var(--bg2);
}
.app-wrapper.dark-mode .promo-banner {
  background: var(--bg2);
}
.app-wrapper.dark-mode .wallet-tabs {
  border-bottom-color: var(--border);
  background: var(--bg);
}
.app-wrapper.dark-mode .wallet-action-btn {
  border-color: var(--border);
  background: var(--bg);
  color: var(--text1);
}
.app-wrapper.dark-mode .wallet-action-btn:active {
  background: var(--bg2);
}
.app-wrapper.dark-mode .wallet-promo {
  background: var(--bg2);
}
.app-wrapper.dark-mode .account-item {
  border-bottom-color: var(--border);
}
.app-wrapper.dark-mode .account-item:active {
  background: var(--bg2);
}
.app-wrapper.dark-mode .bottom-nav {
  background: rgba(18, 22, 26, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
.app-wrapper.dark-mode .profile-header {
  background: var(--bg);
  border-bottom-color: var(--border);
}
.app-wrapper.dark-mode .profile-header .icon-btn {
  color: var(--text1);
}
.app-wrapper.dark-mode .profile-header .icon-btn:active {
  background: var(--bg2);
}
.app-wrapper.dark-mode .profile-user-card {
  background: var(--bg);
  border-bottom-color: var(--border);
}
.app-wrapper.dark-mode .profile-username {
  color: var(--text1);
}
.app-wrapper.dark-mode .level-up-card {
  background: var(--bg);
  border-color: var(--border);
}
.app-wrapper.dark-mode .level-up-title {
  color: var(--text2);
}
.app-wrapper.dark-mode .level-up-deposit-btn {
  background: var(--text1);
  color: var(--bg);
}
.app-wrapper.dark-mode .progress-bar-container {
  background: var(--bg2);
}
.app-wrapper.dark-mode .security-advisory-card {
  background: rgba(255, 149, 0, 0.05);
  border-color: rgba(255, 149, 0, 0.2);
}
.app-wrapper.dark-mode .security-advisory-card:active {
  background: rgba(255, 149, 0, 0.08);
}
.app-wrapper.dark-mode .security-desc {
  color: var(--text2);
}
.app-wrapper.dark-mode .profile-section-container {
  background: var(--bg);
  border-color: var(--border);
}
.app-wrapper.dark-mode .profile-section-title {
  color: var(--text1);
}
.app-wrapper.dark-mode .quick-grid-item span {
  color: var(--text2);
}
.app-wrapper.dark-mode .quick-icon-bg {
  background: var(--bg2);
  color: var(--text1);
}
.app-wrapper.dark-mode .quick-grid-item:hover .quick-icon-bg,
.app-wrapper.dark-mode .quick-grid-item:active .quick-icon-bg {
  background: var(--bg3);
}
.app-wrapper.dark-mode .profile-about-footer {
  color: var(--text2);
  border-top-color: var(--border);
}
.app-wrapper.dark-mode .modal-card {
  background: var(--bg2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.app-wrapper.dark-mode .modal-title {
  color: var(--text1);
}
.app-wrapper.dark-mode .modal-text {
  color: var(--text2);
}

/* ============================================================
   REWARDS HUB PAGE
   ============================================================ */
#page-rewards {
  background: var(--bg);
}

.rewards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.rewards-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text1);
}

.rewards-points-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}

.rewards-points-label {
  font-size: 13px;
  color: var(--text3);
  font-weight: 500;
  margin-bottom: 6px;
}

.rewards-points-value {
  font-size: 38px;
  font-weight: 800;
  color: var(--text1);
  line-height: 1;
}

.rewards-history-btn {
  color: var(--text2);
}

@keyframes pulseGoldGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 185, 11, 0.7);
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(240, 185, 11, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 185, 11, 0);
    transform: scale(1);
  }
}

.glowing-checkin-btn {
  background: linear-gradient(90deg, #F0B90B 0%, #D4AF37 100%);
  color: #000;
  font-weight: 800;
  border: none;
  cursor: pointer;
  animation: pulseGoldGlow 1.8s infinite ease-in-out;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.shop-box-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.shop-box-card:hover {
  border-color: #F1C53F;
  transform: translateY(-2px);
}
.shop-box-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}
.shop-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
  margin: 0;
}
.shop-box-desc {
  font-size: 10.5px;
  color: var(--text3);
  margin: 0;
  line-height: 1.35;
}
.shop-box-btn {
  width: 100%;
  background: linear-gradient(90deg, #F0B90B 0%, #D4AF37 100%);
  color: #000;
  font-weight: 800;
  border: none;
  border-radius: 20px;
  padding: 8px 0;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s;
  margin-top: 4px;
}
.shop-box-btn:active {
  transform: scale(0.96);
}

.rewards-tabs {
  display: flex;
  padding: 0 16px;
  border-bottom: 1.5px solid var(--border);
  background: var(--bg);
}

.rewards-tab-btn {
  flex: 1;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  text-align: center;
}

.rewards-tab-btn.active {
  color: var(--text1);
  border-bottom-color: #F1C53F;
  font-weight: 700;
}

.rewards-subtabs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg);
}

.rewards-subtabs {
  display: flex;
  gap: 16px;
}

.rewards-subtab-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  cursor: pointer;
  padding: 4px 0;
}

.rewards-subtab-btn.active {
  color: var(--text1);
}

.voucher-code-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text1);
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.vouchers-list {
  padding: 8px 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg2);
  min-height: calc(100vh - 180px);
}

.voucher-card {
  display: flex;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 125px;
}

.voucher-left {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.voucher-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
  margin: 0;
}

.voucher-expiry {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}

.highlight-date {
  color: #D29813;
  font-weight: 600;
}

.voucher-badge {
  background: var(--bg2);
  color: var(--text2);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.voucher-details-link {
  font-size: 11px;
  color: var(--text3);
  cursor: pointer;
  margin-top: 2px;
  font-weight: 500;
}

.voucher-details-link:hover {
  text-decoration: underline;
}

.voucher-footer-desc {
  font-size: 11px;
  color: var(--text3);
  margin-top: auto;
  border-top: 1px dashed var(--border);
  width: 100%;
  padding-top: 6px;
  font-weight: 500;
}

/* Notched Ticket Divider */
.voucher-divider-notches {
  width: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.voucher-divider-notches .notch {
  width: 16px;
  height: 8px;
  background: var(--bg2);
  position: absolute;
  z-index: 5;
}

.voucher-divider-notches .notch.top {
  top: -1px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border: 1px solid var(--border);
  border-top: none;
}

.voucher-divider-notches .notch.bottom {
  bottom: -1px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border: 1px solid var(--border);
  border-bottom: none;
}

.voucher-divider-notches .divider-line {
  flex: 1;
  width: 1px;
  border-left: 1px dashed var(--border);
  margin: 8px 0;
  z-index: 2;
}

.voucher-right {
  width: 110px;
  background: #FEF8E7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  gap: 12px;
  border-left: none;
  flex-shrink: 0;
}

.app-wrapper.dark-mode .voucher-right {
  background: #252016;
}

.voucher-amount-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.voucher-amount-val {
  font-size: 16px;
  font-weight: 800;
  color: #D29813;
  letter-spacing: -0.5px;
}

.voucher-amount-unit {
  font-size: 10px;
  font-weight: 800;
  color: #D29813;
}

.voucher-use-btn {
  background: #F1C53F;
  color: #120902;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 6px rgba(241, 197, 63, 0.2);
  transition: all 0.2s;
}

.voucher-use-btn:active {
  transform: scale(0.96);
  background: #deb22c;
}

/* TASKS SYSTEM IN REWARDS HUB */
.tasks-list {
  padding: 8px 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg2);
  min-height: calc(100vh - 180px);
}

.task-card {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 16px;
  border: 1px solid var(--border);
  gap: 16px;
}

/* DOGE Welcome Bonus Special Eye-catching Styling */
.task-card.doge-special-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(241, 197, 63, 0.03) 100%);
  border: 1.5px solid rgba(241, 197, 63, 0.4);
  box-shadow: 0 0 15px rgba(241, 197, 63, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  animation: dogeGoldGlow 3s infinite ease-in-out;
}

@keyframes dogeGoldGlow {
  0%, 100% {
    border-color: rgba(241, 197, 63, 0.35);
    box-shadow: 0 0 15px rgba(241, 197, 63, 0.06), 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  50% {
    border-color: rgba(241, 197, 63, 0.85);
    box-shadow: 0 0 25px rgba(241, 197, 63, 0.22), 0 4px 15px rgba(241, 197, 63, 0.1);
  }
}

.special-hot-tag {
  position: absolute;
  top: 0;
  right: 16px;
  background: linear-gradient(90deg, #ff5555 0%, #f1c53f 100%);
  color: #120902;
  font-size: 8px;
  font-weight: 900;
  padding: 3px 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 85, 85, 0.25);
  letter-spacing: 0.8px;
  z-index: 2;
  font-family: sans-serif;
  animation: tagBounce 2.5s infinite ease-in-out;
}

@keyframes tagBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

.doge-avatar-container {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doge-avatar-bg-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 197, 63, 0.45) 0%, rgba(241, 197, 63, 0) 70%);
  animation: dogeLogoPulse 2s infinite ease-in-out;
  z-index: 0;
}

@keyframes dogeLogoPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.55; }
  50% { transform: scale(1.3); opacity: 0.95; }
}

.doge-special-logo {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
}

.special-reward-badge {
  background: linear-gradient(90deg, #f1c53f 0%, #ffaa00 100%) !important;
  color: #120902 !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(241, 197, 63, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: badgeShiver 4s infinite ease-in-out;
}

@keyframes badgeShiver {
  0%, 88%, 100% { transform: scale(1); }
  90% { transform: scale(1.06) rotate(3deg); }
  92% { transform: scale(1.06) rotate(-3deg); }
  94% { transform: scale(1.06) rotate(3deg); }
  96% { transform: scale(1.06) rotate(-3deg); }
}

.task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.task-reward-badge {
  background: #FEF8E7;
  color: #D29813;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(210, 152, 19, 0.2);
}

.app-wrapper.dark-mode .task-reward-badge {
  background: #252016;
  border-color: rgba(210, 152, 19, 0.3);
}

.task-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
  margin: 0;
}

.task-desc {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.35;
  margin: 0;
  text-align: left;
}

.task-progress-container {
  width: 100%;
  height: 4px;
  background: var(--bg2);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.task-progress-bar {
  height: 100%;
  background: #F1C53F;
  border-radius: 2px;
}

.task-progress-text {
  font-size: 10px;
  color: var(--text3);
  font-weight: 600;
}

.task-claim-btn {
  background: #F1C53F;
  color: #120902;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(241, 197, 63, 0.2);
  transition: all 0.2s;
  flex-shrink: 0;
}

.task-claim-btn:active {
  transform: scale(0.96);
  background: #deb22c;
}

.task-claim-btn.locked {
  background: var(--bg3);
  color: var(--text3);
  box-shadow: none;
  cursor: pointer;
}

/* DOGE TASK STYLING IMPROVEMENTS */
.task-coin-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(241, 197, 63, 0.3);
  flex-shrink: 0;
  object-fit: cover;
}

.task-slots-container {
  width: 100%;
  margin-top: 8px;
}

.slots-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  margin-bottom: 4px;
}

.slots-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--bg2);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.app-wrapper.dark-mode .slots-bar-bg {
  background: var(--bg3);
}

.slots-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F1C53F, #ffb800);
  border-radius: 3px;
  width: 50%;
}

.task-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(246, 70, 93, 0.1);
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
  animation: pulseTimer 1.5s ease-in-out infinite;
}

@keyframes pulseTimer {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* REWARDS HUB TASK DETAILS VIEW STYLES */
#rewards-detail-view {
  background: var(--bg2);
  min-height: calc(100vh - 60px);
  padding-bottom: 120px;
}

.rewards-detail-logo-container {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 16px;
  background: rgba(241, 197, 63, 0.1);
  border: 2px solid #F1C53F;
  box-shadow: 0 4px 20px rgba(241, 197, 63, 0.15);
}

.rewards-detail-logo-container.doge-glowing-detail-container {
  background: rgba(241, 197, 63, 0.15) !important;
  border: 2px solid #ffaa00 !important;
  box-shadow: 0 0 25px rgba(255, 170, 0, 0.45), inset 0 0 15px rgba(255, 170, 0, 0.15) !important;
  animation: dogeDetailPulse 2s infinite ease-in-out;
}

@keyframes dogeDetailPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(255, 170, 0, 0.45); }
  50% { transform: scale(1.08); box-shadow: 0 0 35px rgba(255, 170, 0, 0.7); }
}

.rewards-detail-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.rewards-detail-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rewards-detail-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rewards-detail-badge.reward {
  background: #FEF8E7;
  color: #D29813;
  border: 1px solid rgba(210, 152, 19, 0.2);
}

.app-wrapper.dark-mode .rewards-detail-badge.reward {
  background: #252016;
  color: #F1C53F;
  border-color: rgba(241, 197, 63, 0.2);
}

.rewards-detail-badge.timer {
  background: rgba(246, 70, 93, 0.1);
  color: var(--red);
  border: 1px solid rgba(246, 70, 93, 0.15);
}

.rewards-detail-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text1);
  margin-bottom: 8px;
  padding: 0 16px;
}

.rewards-detail-desc {
  text-align: center;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 24px;
  padding: 0 24px;
  line-height: 1.5;
}

.rewards-detail-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text1);
  margin: 20px 16px 8px;
  text-align: left;
}

.rewards-detail-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  margin: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.rewards-detail-step-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rewards-detail-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #F1C53F;
}

.rewards-detail-step-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.rewards-detail-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
  margin: 0;
}

.rewards-detail-step-desc {
  font-size: 11px;
  color: var(--text2);
  margin: 0;
  line-height: 1.4;
}

.rewards-detail-progress-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rewards-detail-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text1);
}

.rewards-detail-progress-values {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}

.rewards-detail-progress-bg {
  width: 100%;
  height: 6px;
  background: var(--bg2);
  border-radius: 3px;
  overflow: hidden;
  border: 1.2px solid var(--border);
}

.rewards-detail-progress-fill {
  height: 100%;
  background: #F1C53F;
  border-radius: 3px;
}

.rewards-detail-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.rewards-detail-table-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rewards-detail-table-row:first-child {
  padding-top: 0;
}

.rewards-detail-table-label {
  color: var(--text3);
}

.rewards-detail-table-val {
  color: var(--text1);
  font-weight: 600;
}

.rewards-detail-action-container {
  padding: 16px;
  margin-top: 8px;
}

.rewards-detail-action-btn {
  width: 100%;
  padding: 14px;
  background: #F1C53F;
  color: #120902;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 4px 12px rgba(241, 197, 63, 0.2);
}

.rewards-detail-action-btn:active {
  transform: scale(0.98);
  background: #deb22c;
}

.rewards-detail-action-btn:disabled {
  background: var(--bg3);
  color: var(--text3);
  cursor: not-allowed;
  box-shadow: none;
}

/* ============================================================
   DEPOSIT FLOW STYLES
   ============================================================ */

/* General step view wrapper */
.deposit-step-view {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Header & Search Bar */
.deposit-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.deposit-search-bar {
  margin: 12px 16px 8px;
}

/* FAQ Banner */
.deposit-faq-banner {
  background: var(--bg2);
  margin: 8px 16px;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.faq-icon-wrapper {
  color: var(--text3);
  display: flex;
  align-items: center;
}

.faq-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
}

.faq-banner-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
}

/* Recommend Coins */
.deposit-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  margin: 16px 16px 10px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}

.recommend-coin-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text1);
  transition: all 0.2s;
}

.recommend-coin-pill:active {
  background: var(--bg3);
}

.recommend-coin-pill img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.deposit-coin-list-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  background: var(--bg2);
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.deposit-coin-list {
  display: flex;
  flex-direction: column;
}

.deposit-coin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.deposit-coin-row:active {
  background: var(--bg2);
}

.deposit-coin-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.deposit-coin-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deposit-coin-sym {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
}

.deposit-coin-name {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}

/* ============================================================
   STEP 4: ADDRESS & QR CODE
   ============================================================ */
.deposit-network-select-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

.network-select-trigger {
  color: var(--text1);
  font-weight: 700;
  cursor: pointer;
}

.deposit-qr-card-container {
  display: flex;
  justify-content: center;
  padding: 24px 16px 16px;
}

.deposit-qr-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 20px;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.deposit-qr-code-img-wrapper {
  width: 160px;
  height: 160px;
  background: white;
  border: 1px solid #EAECEF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.deposit-qr-code-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deposit-wallet-address-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

.address-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
}

.address-value-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

#deposit-address-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
  word-break: break-all;
  line-height: 1.4;
  flex: 1;
}

.address-copy-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-copy-icon-btn:active {
  background: var(--bg2);
}

.deposit-details-table {
  display: flex;
  flex-direction: column;
  margin: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.details-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  background: var(--bg);
}

.details-table-row:last-child {
  border-bottom: none;
}

.table-label {
  color: var(--text2);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-bubble {
  background: var(--bg2);
  color: var(--text3);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.table-value {
  color: var(--text1);
  font-weight: 700;
}

.table-value.accent {
  color: var(--blue);
}

.table-value.text-muted {
  color: var(--text3);
  font-weight: 500;
}

.deposit-safety-guidelines {
  display: flex;
  flex-direction: column;
  margin: 8px 16px 120px;
  gap: 8px;
}

.safety-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  gap: 12px;
}

.safety-item-header span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.deposit-bottom-buttons-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.deposit-primary-btn {
  flex: 1.5;
  background: #ff9500; /* Bybit Orange */
  color: white;
  border: none;
  height: 48px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.deposit-primary-btn:active {
  opacity: 0.9;
}

.deposit-secondary-btn {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text1);
  height: 48px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.deposit-secondary-btn:active {
  background: var(--bg3);
}

/* ============================================================
   BOTTOM SHEET DRAWER
   ============================================================ */
.bottom-sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  display: none;
  align-items: flex-end;
}

.bottom-sheet-content {
  width: 100%;
  background: var(--bg);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUpSheet 0.25s ease-out;
  max-height: 80%;
  overflow-y: auto;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text1);
}

.sheet-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text3);
  cursor: pointer;
  line-height: 1;
}

.sheet-warning-banner {
  background: rgba(241, 197, 63, 0.08);
  border: 1px solid rgba(241, 197, 63, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: #cda214;
  font-weight: 600;
}

.sheet-warning-banner .warning-icon {
  flex-shrink: 0;
}

.sheet-network-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.network-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.network-item:hover, .network-item.active {
  border-color: #F1C53F;
  background: rgba(241, 197, 63, 0.03);
}

.network-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--border);
  background: var(--bg2);
}

.network-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.network-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.network-info-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.network-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.network-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
}

.network-badge-recently {
  background: var(--bg3);
  color: var(--text2);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.network-constraints {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
}

/* ============================================================
   NOTICE & CONFIRM SLIDER
   ============================================================ */
.sheet-notice-warnings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-warning-item {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text2);
  font-weight: 500;
}

.notice-warning-item .notice-icon {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-details-summary-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-box-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.summary-box-row .label {
  color: var(--text3);
  font-weight: 500;
}

.summary-box-row .value {
  color: var(--text1);
  font-weight: 700;
}

.summary-coin-cell, .summary-chain-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-coin-cell img, .summary-chain-cell img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* Slide to Confirm Widget */
.slide-to-confirm-wrapper {
  margin-top: 10px;
}

.slide-to-confirm-track {
  width: 100%;
  height: 48px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.slide-to-confirm-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text3);
  z-index: 1;
  pointer-events: none;
}

.slide-to-confirm-thumb {
  width: 44px;
  height: 44px;
  background: #ff9500; /* Bybit Orange */
  border-radius: 50%;
  position: absolute;
  left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.4);
  z-index: 2;
  transition: transform 0.05s ease-out;
}

.slide-to-confirm-thumb:active {
  cursor: grabbing;
}

/* ============================================================
   SWAP & CONVERT PAGE STYLES
   ============================================================ */
#page-swap {
  background: var(--bg);
  display: none;
}

#page-swap.active {
  display: block;
}

.swap-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.swap-wrapper-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.swap-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.swap-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.swap-panel:focus-within {
  border-color: var(--blue);
}

.swap-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
}

.swap-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.swap-amount-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  color: var(--text1);
  width: 60%;
  padding: 0;
}

.swap-amount-input::placeholder {
  color: var(--text3);
}

.swap-coin-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
}

.swap-coin-trigger:active {
  background: var(--bg3);
}

.swap-coin-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.swap-coin-symbol {
  font-size: 15px;
  font-weight: 700;
  color: var(--text1);
}

.swap-coin-arrow {
  font-size: 11px;
  color: var(--text3);
}

.swap-panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
}

.swap-max-link {
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
}

.swap-max-link:active {
  opacity: 0.7;
}

/* Invert Circle Button */
.swap-invert-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -14px 0;
  z-index: 2;
}

.swap-invert-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swap-invert-btn:hover {
  transform: rotate(180deg);
}

.swap-invert-btn:active {
  background: var(--bg2);
  transform: scale(0.92) rotate(180deg);
}

/* Transaction Details */
.swap-details-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swap-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
}

.swap-details-label {
  color: var(--text3);
}

.swap-details-val {
  color: var(--text1);
  font-weight: 700;
}

.swap-details-val.accent {
  color: var(--blue);
}

/* Swap Action Button */
.swap-action-btn-container {
  margin-top: 8px;
}

.swap-btn-primary {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  height: 50px;
  border-radius: 25px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(30, 128, 255, 0.2);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap-btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(30, 128, 255, 0.1);
}

.swap-btn-primary.disabled {
  background: var(--bg3);
  color: var(--text3);
  cursor: not-allowed;
  box-shadow: none;
}

/* Coin selection bottom sheet styles */
.swap-coin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.swap-coin-item:hover, .swap-coin-item.active {
  border-color: var(--blue);
  background: rgba(30, 128, 255, 0.02);
}

.swap-coin-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swap-coin-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.swap-coin-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.swap-coin-sym-big {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
}

.swap-coin-name-small {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}

.swap-coin-balance-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.swap-coin-bal-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
}

.swap-coin-bal-fiat {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
}

/* Dark Mode Overrides for Swap UI */
.app-wrapper.dark-mode #page-swap {
  background: var(--bg);
}

.app-wrapper.dark-mode .swap-panel {
  background: var(--bg2);
}

.app-wrapper.dark-mode .swap-coin-trigger {
  background: var(--bg);
}

.app-wrapper.dark-mode .swap-invert-btn {
  background: var(--bg);
}

.app-wrapper.dark-mode .swap-coin-item {
  background: var(--bg);
}

/* ============================================================
   SPOT BYBIT-STYLE SUB-VIEWS STYLES
   ============================================================ */
.spot-sub-view {
  display: none;
  width: 100%;
}

.spot-sub-view.active {
  display: block;
}

/* Chart and Order Book Header Info */
.spot-chart-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.spot-chart-price-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spot-chart-main-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.spot-chart-main-price.negative {
  color: var(--red);
}

.spot-chart-fiat-price {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}

.spot-chart-stats-grid {
  display: flex;
  gap: 16px;
}

.stat-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-col .label {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
}

.stat-col .val {
  font-size: 11px;
  color: var(--text1);
  font-weight: 700;
}

/* Timeframes Bar */
.spot-chart-timeframes {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.spot-chart-timeframes::-webkit-scrollbar {
  display: none;
}

.spot-chart-timeframes span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}

.spot-chart-timeframes span.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 700;
}

.spot-chart-timeframes span.depth-btn {
  margin-left: auto;
  color: var(--text2);
}

/* TradingView Container Custom styling */
.tradingview-widget-container-custom {
  width: 100%;
  background: var(--bg);
  padding: 4px 0;
}

/* Floating Actions Bar */
.spot-floating-actions-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  z-index: 10;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.action-pill {
  flex: 1;
  border: none;
  height: 44px;
  border-radius: 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  transition: opacity 0.15s;
}

.action-pill:active {
  opacity: 0.85;
}

.action-pill.buy {
  background: var(--green);
}

.action-pill.sell {
  background: var(--red);
}

.action-pill span {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.9;
}

/* Full screen Order Book */
.spot-book-depth-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  background: var(--bg);
}

.spot-book-depth-bar .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
}

.depth-ratio-bar {
  display: flex;
  width: 70%;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  color: white;
}

.ratio-buy {
  background: rgba(14, 203, 129, 0.8);
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.ratio-sell {
  background: rgba(246, 70, 93, 0.8);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.spot-full-book-grid {
  display: flex;
  padding: 0 16px;
  gap: 12px;
  background: var(--bg);
  margin-bottom: 80px; /* Space for floating buttons */
}

.book-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-half-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

.book-half-header .price-lbl {
  text-align: right;
  width: 50%;
}

.book-half-header .qty-lbl {
  text-align: right;
  width: 50%;
}

.book-rows-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.full-book-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
  position: relative;
  overflow: hidden;
}

.full-book-row .qty-val {
  color: var(--text1);
  z-index: 1;
}

.full-book-row .price-val {
  font-weight: 700;
  z-index: 1;
  text-align: right;
  width: 50%;
}

.bids-half .price-val {
  color: var(--green);
}

.asks-half .price-val {
  color: var(--red);
}

.asks-half .qty-val {
  text-align: right;
  width: 50%;
}

.book-row-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 0;
  transition: width 0.3s ease;
}

.bids-half .book-row-bg {
  background: rgba(14, 203, 129, 0.08);
  right: 0;
}

.asks-half .book-row-bg {
  background: rgba(246, 70, 93, 0.08);
  left: 0;
}

/* Dark Mode Overrides */
.app-wrapper.dark-mode .spot-chart-header-info,
.app-wrapper.dark-mode .spot-chart-timeframes,
.app-wrapper.dark-mode .spot-floating-actions-bar,
.app-wrapper.dark-mode .spot-book-depth-bar,
.app-wrapper.dark-mode .spot-full-book-grid {
  background: var(--bg);
}

.app-wrapper.dark-mode .full-book-row .qty-val {
  color: var(--text2);
}

/* ============================================================
   BYBIT-STYLE CHART UPGRADES STYLES
   ============================================================ */

/* Spot Chart Sub-Tabs */
.spot-chart-sub-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
  height: 38px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.spot-chart-sub-tabs span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.spot-chart-sub-tabs span.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 700;
}

/* Spot Chart Gold Announcement Promo Ticker */
.spot-chart-promo-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(240, 185, 11, 0.08);
  border-bottom: 1px solid rgba(240, 185, 11, 0.15);
  color: #E0A000;
  font-size: 11px;
  font-weight: 500;
}

.app-wrapper.dark-mode .spot-chart-promo-ticker {
  background: rgba(240, 185, 11, 0.05);
  border-bottom-color: rgba(240, 185, 11, 0.1);
  color: #F0B90B;
}

.ticker-speaker-icon {
  color: currentColor;
  opacity: 0.9;
}

.ticker-text-scroll {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-close-btn {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.ticker-close-btn:hover {
  opacity: 1;
}

/* Spot Chart Timeframes Extension */
.spot-chart-timeframes .lbl-time {
  color: var(--text3);
  opacity: 0.7;
  font-weight: 500 !important;
  margin-right: 4px;
  cursor: default !important;
  border-bottom: none !important;
}

/* Spot Chart Moving Average Indicators Row */
.spot-chart-indicators-row {
  display: flex;
  gap: 12px;
  padding: 4px 16px;
  background: var(--bg);
  font-family: monospace, sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.spot-chart-indicators-row .ma7 {
  color: #E1B12C; /* Gold yellow */
}

.spot-chart-indicators-row .ma14 {
  color: #22A6F0; /* Cyan blue */
}

.spot-chart-indicators-row .ma28 {
  color: #B33771; /* Magenta purple */
}

/* Spot Floating Actions Capsule Bar (Replaces old simple actions bar) */
.spot-floating-actions-capsules-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.app-wrapper.dark-mode .spot-floating-actions-capsules-bar {
  background: var(--bg);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.capsule-pill {
  flex: 1;
  height: 46px;
  border-radius: 23px;
  border: none;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.capsule-pill:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.capsule-pill.buy {
  background: var(--green);
  color: white;
}

.capsule-pill.sell {
  background: var(--red);
  color: white;
}

.capsule-pill.center-qty {
  background: #F0F2F5;
  color: #1E2026;
  cursor: default;
  pointer-events: none;
  flex: 0.8;
}

.app-wrapper.dark-mode .capsule-pill.center-qty {
  background: #20252D;
  color: #FFFFFF;
}

.capsule-pill .pill-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.capsule-pill .pill-price {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.9;
}

.capsule-pill .qty-lbl {
  font-size: 9px;
  font-weight: 500;
  color: #848E9C;
}

.capsule-pill .qty-sym {
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   CRYPTO BOX PAGE STYLES
   ============================================================ */

#page-cryptobox {
  background-color: var(--bg);
  color: var(--text1);
  padding-bottom: 80px;
}

.cryptobox-header {
  border-bottom: 1px solid var(--border);
}

.cryptobox-wrapper-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sub-tabs */
.cryptobox-sub-tabs {
  display: flex;
  background: var(--bg2);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid var(--border);
}

.cb-tab {
  flex: 1;
  background: transparent;
  border: none;
  height: 36px;
  border-radius: 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.2s;
}

.cb-tab.active {
  background: var(--bg);
  color: var(--text1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Illustration */
.cryptobox-ill-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.cryptobox-ill-svg {
  filter: drop-shadow(0 8px 20px rgba(246, 70, 93, 0.15));
  animation: floatBox 4s ease-in-out infinite;
}

@keyframes floatBox {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.cryptobox-ill-lbl {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}

/* Input Card */
.cryptobox-claim-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cb-input-wrapper {
  position: relative;
  width: 100%;
}

.cb-code-input {
  width: 100%;
  height: 52px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 70px 0 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text1);
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.cb-code-input:focus {
  border-color: #F0B90B;
  outline: none;
}

.cb-paste-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #F0B90B;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}

.cb-btn-primary {
  width: 100%;
  background: #F0B90B;
  color: #12161C;
  border: none;
  height: 48px;
  border-radius: 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(240, 185, 11, 0.2);
}

.cb-btn-primary:active {
  transform: scale(0.98);
}

.cb-btn-primary.disabled {
  background: var(--bg3);
  color: var(--text3);
  cursor: not-allowed;
  box-shadow: none;
}

/* Rules Section */
.cryptobox-rules-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.rules-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text1);
  margin: 0;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rule-bullet {
  color: #F0B90B;
  font-size: 12px;
  padding-top: 2px;
}

.rule-text-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rule-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
  margin: 0;
}

.rule-desc {
  font-size: 12px;
  color: var(--text3);
  margin: 0;
  line-height: 1.5;
}

/* History overlay */
.cb-history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(4px);
}

.cb-history-sheet {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 70%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}

.cb-history-overlay.show {
  display: flex;
}

.cb-history-overlay.show .cb-history-sheet {
  animation: slideUp 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cb-history-list {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.history-card-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-card-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
}

.history-card-time {
  font-size: 10px;
  color: var(--text3);
}

.history-card-amt {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

/* ============================================================
   SUPPORT & NOTIFICATIONS PAGE STYLES
   ============================================================ */

/* Home Header Search Bar Resize */
.home-header .search-bar {
  flex: 0.65;
  max-width: 125px;
  min-width: 90px;
}

.home-header .search-input {
  width: 100%;
}

/* Notifications Page Styling */
#page-notifications {
  background-color: var(--bg);
  color: var(--text1);
  padding-bottom: 85px;
}

.noti-wrapper-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.noti-card-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.noti-card-item:active {
  transform: scale(0.98);
  background-color: var(--bg3);
}

.noti-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.noti-icon-wrapper.cb-rewards {
  background: rgba(240, 185, 11, 0.12);
  color: #F0B90B;
}

.noti-icon-wrapper.doge-gift {
  background: rgba(30, 128, 255, 0.12);
  color: var(--blue);
}

.noti-icon-wrapper.zero-fees {
  background: rgba(14, 203, 129, 0.12);
  color: var(--green);
}

.noti-icon-wrapper.spot-tv {
  background: rgba(246, 70, 93, 0.12);
  color: var(--red);
}

.noti-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.noti-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.noti-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
}

.noti-time {
  font-size: 10px;
  color: var(--text3);
  white-space: nowrap;
}

.noti-body-text {
  font-size: 11.5px;
  color: var(--text3);
  margin: 0;
  line-height: 1.45;
}

/* AI Support Chat Page Styling */
#page-support {
  background-color: var(--bg);
  color: var(--text1);
  display: none;
  flex-direction: column;
  height: 100%;
}

#page-support.active {
  display: flex;
}

.support-wrapper-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: calc(100vh - 100px);
  padding-bottom: 70px;
  box-sizing: border-box;
}

.support-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 280px);
}

/* Chat Bubbles */
.chat-msg-row {
  display: flex;
  width: 100%;
}

.chat-msg-row.ai {
  justify-content: flex-start;
}

.chat-msg-row.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.chat-msg-row.ai .chat-bubble {
  background-color: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text1);
  border-bottom-left-radius: 4px;
}

.chat-msg-row.user .chat-bubble {
  background-color: var(--blue);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Typing Indicator */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  height: 12px;
  padding: 0 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background-color: var(--text3);
  border-radius: 50%;
  animation: bounceDots 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDots {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Quick suggestion box */
.support-quick-reply-box {
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  flex-wrap: nowrap;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.support-quick-reply-box::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.quick-chip:active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* Input bar */
.support-chat-input-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 10px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  z-index: 10;
}

.support-chat-input {
  flex: 1;
  height: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text1);
  outline: none;
}

.support-chat-input:focus {
  border-color: var(--blue);
}

.support-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.support-send-btn:active {
  opacity: 0.85;
}

/* ============================================================
   AFFILIATE PAGE STYLES & ANIMATIONS
   ============================================================ */

/* Dashboard View */
.affiliate-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.affiliate-wrapper-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg2);
  min-height: calc(100vh - 120px);
}

.aff-earnings-card {
  background: linear-gradient(135deg, rgba(122, 40, 255, 0.12) 0%, rgba(0, 194, 255, 0.08) 100%);
  border: 1px solid rgba(122, 40, 255, 0.22);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 32px rgba(122, 40, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aff-earnings-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(122, 40, 255, 0.18);
  border-color: rgba(122, 40, 255, 0.35);
}

.app-wrapper.dark-mode .aff-earnings-card {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, rgba(122, 40, 255, 0.18) 0%, rgba(0, 194, 255, 0.12) 100%);
  border-color: rgba(122, 40, 255, 0.3);
}

.earnings-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 8px;
}

.earnings-amount {
  font-size: 34px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 0 15px rgba(122, 40, 255, 0.35);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.app-wrapper.dark-mode .stats-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-val.text-green {
  color: #0ecb81;
  text-shadow: 0 0 10px rgba(14, 203, 129, 0.2);
}

.stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.1);
}

.app-wrapper.dark-mode .stat-divider {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Glowing Promo Banner for Spin Commission */
.aff-promo-banner {
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.12) 0%, rgba(246, 70, 93, 0.08) 100%);
  border: 1.5px solid rgba(240, 185, 11, 0.35);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(240, 185, 11, 0.06);
  animation: pulseGlow 2.5s infinite ease-in-out;
  transition: all 0.3s ease;
}

.aff-promo-banner:hover {
  border-color: rgba(240, 185, 11, 0.6);
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.18) 0%, rgba(246, 70, 93, 0.12) 100%);
  transform: scale(1.01);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(240, 185, 11, 0.15); }
  50% { box-shadow: 0 0 20px rgba(240, 185, 11, 0.35); }
  100% { box-shadow: 0 0 8px rgba(240, 185, 11, 0.15); }
}

.promo-badge {
  background: linear-gradient(90deg, #ff9f1c, #ff4000);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(255, 64, 0, 0.3);
  flex-shrink: 0;
}

.promo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.promo-title-highlight {
  font-size: 13.5px;
  font-weight: 800;
  color: #f0b90b;
  letter-spacing: 0.3px;
  text-shadow: 0 0 10px rgba(240, 185, 11, 0.2);
}

.promo-desc {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.4;
  margin: 0;
}

.promo-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 8px rgba(240, 185, 11, 0.3));
  flex-shrink: 0;
  animation: bounceGift 2s infinite ease-in-out;
}

@keyframes bounceGift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4px) rotate(5deg); }
}

/* Card Elements */
.aff-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1.5px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.aff-card:hover {
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.aff-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.aff-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.aff-card-desc {
  font-size: 11px;
  color: var(--text3);
  margin: 0 0 16px 0;
  line-height: 1.35;
}

.aff-invite-demo-btn {
  background: rgba(30, 128, 255, 0.08);
  border: 1px solid rgba(30, 128, 255, 0.15);
  color: var(--blue);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.aff-invite-demo-btn:active {
  background: rgba(30, 128, 255, 0.15);
}

/* Copy Inputs */
.ref-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ref-input-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
}

.ref-input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  gap: 8px;
}

.ref-text {
  font-size: 12px;
  color: var(--text1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
  flex: 1;
}

.ref-text.font-bold {
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.5px;
}

.ref-copy-btn {
  background: none;
  border: none;
  color: var(--text3);
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.ref-copy-btn:hover {
  color: var(--blue);
}

.ref-copy-btn:active {
  transform: scale(0.9);
}

/* Referred Network Users */
.referred-users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.ref-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ref-user-item:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(240, 185, 11, 0.25);
  box-shadow: 0 6px 15px rgba(240, 185, 11, 0.08);
}

.ref-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ref-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.ref-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ref-username {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.ref-date {
  font-size: 10px;
  color: #848e9c;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ref-user-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ref-bonus-earn {
  font-size: 13px;
  font-weight: 800;
  color: #848e9c;
}

.ref-bonus-earn.earned {
  color: #0ecb81;
  text-shadow: 0 0 10px rgba(14, 203, 129, 0.2);
}

/* KYC Badges & Sim Button */
.kyc-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kyc-badge.verified {
  background: rgba(14, 203, 129, 0.08);
  color: #0ecb81;
  border: 1px solid rgba(14, 203, 129, 0.25);
}

.kyc-badge.pending {
  background: rgba(240, 185, 11, 0.08);
  color: #f0b90b;
  border: 1px solid rgba(240, 185, 11, 0.25);
}

.pulse-dot {
  width: 5px;
  height: 5px;
  background-color: #f0b90b;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #f0b90b;
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

.kyc-verify-sim-btn {
  background: linear-gradient(135deg, #0ecb81 0%, #0ab271 100%);
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(14, 203, 129, 0.2);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.kyc-verify-sim-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 203, 129, 0.35);
}

.kyc-verify-sim-btn:active {
  transform: translateY(0);
}

/* Social & Bounties styling */
.bounty-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bounty-item:active {
  transform: translateY(1px);
}

.bounty-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.bounty-logo.x-logo {
  background: #14171A;
}

.bounty-logo.tg-logo {
  background: #0088cc;
}

.bounty-logo.wa-logo {
  background: #25D366;
}

.bounty-logo.yt-logo {
  background: #FF0000;
}

.bounty-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.bounty-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text1);
}

.bounty-reward {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
}

.bounty-btn {
  background: var(--blue);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.bounty-btn:active {
  opacity: 0.85;
}

.bounty-btn.claimed {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text3);
  cursor: default;
  font-weight: 500;
}

/* Channel promotion submission card */
.bounty-channel-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
}

.channel-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.channel-bounty-desc {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.channel-submit-area {
  display: flex;
  gap: 8px;
  height: 38px;
}

.channel-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 11px;
  color: var(--text1);
  outline: none;
}

.channel-input::placeholder {
  color: var(--text3);
}

.channel-input:focus {
  border-color: var(--blue);
}

.channel-submit-btn {
  background: var(--blue);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
  position: relative;
  min-width: 90px;
}

.channel-submit-btn:active {
  opacity: 0.85;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: white;
  border-radius: 50%;
  animation: introSpin 0.8s linear infinite;
}

.channel-completed-badge {
  background: rgba(14, 203, 129, 0.1);
  color: var(--green);
  border: 1.5px solid rgba(14, 203, 129, 0.2);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

/* ============================================================
   KYC IDENTITY VERIFICATION STYLES
   ============================================================ */

.kyc-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.kyc-container {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.kyc-view {
  display: none;
  animation: fadeInKyc 0.3s ease-out;
}

.kyc-view.active {
  display: block;
}

@keyframes fadeInKyc {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Primary and Secondary KYC Buttons */
.kyc-primary-btn {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 22px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(30, 128, 255, 0.15);
}

.kyc-primary-btn:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.kyc-secondary-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text1);
  border-radius: 22px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
}

.kyc-secondary-btn:active {
  background: var(--bg2);
  transform: scale(0.98);
}

/* Forms */
.kyc-input-field {
  width: 100%;
  height: 44px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text1);
  outline: none;
  transition: border-color 0.15s;
}

.kyc-input-field:focus {
  border-color: var(--blue);
}

.select-field {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23848e9c%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.doc-card {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.doc-card.active {
  border-color: var(--blue);
  background: rgba(30, 128, 255, 0.05);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(30, 128, 255, 0.05);
}

.app-wrapper.dark-mode .doc-card.active {
  background: rgba(30, 128, 255, 0.12);
}

/* Upload styling */
.upload-box {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background-color 0.15s;
}

.upload-box:active {
  background-color: var(--bg3);
}

.upload-preview {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: contain;
  background: var(--bg2);
  padding: 4px;
  z-index: 5;
}

/* Camera Liveness Styles */
.camera-stream-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: #11151a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.scanner-circle-neon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3.5px solid var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  animation: pulseScanner 2s infinite ease-in-out;
}

@keyframes pulseScanner {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(30, 128, 255, 0.6), inset 0 0 8px rgba(30, 128, 255, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(30, 128, 255, 0.9), inset 0 0 15px rgba(30, 128, 255, 0.6);
  }
}

#kyc-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scaleX(-1); /* mirrors camera */
  z-index: 1;
}

.camera-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  z-index: 2;
}

.camera-placeholder .placeholder-icon {
  font-size: 44px;
  margin-bottom: 6px;
  opacity: 0.6;
}

.camera-placeholder .placeholder-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.liveness-instruction-overlay {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  background: rgba(18, 22, 28, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 6px 10px;
  text-align: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  z-index: 12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: slideUpPrompt 0.2s ease-out;
}

@keyframes slideUpPrompt {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pulsing Status Icon for Review Screen */
.kyc-status-icon-pulsing {
  width: 72px;
  height: 72px;
  background: rgba(255, 149, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: pulsePendingBorder 2s infinite ease-in-out;
}

@keyframes pulsePendingBorder {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 149, 0, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(255, 149, 0, 0);
  }
}

/* Dev Simulator buttons styling */
.sim-btn {
  border: none;
  font-family: inherit;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.sim-btn:active {
  opacity: 0.8;
}

.sim-btn.approve {
  background: var(--green);
  color: white;
}

.sim-btn.reject {
  background: var(--red);
  color: white;
}

/* Profile Badge status classes overlay */
.profile-badge.pending {
  background: rgba(240, 185, 11, 0.12) !important;
  color: #F0B90B !important;
  border: 1px solid rgba(240, 185, 11, 0.25) !important;
}

.profile-badge.verified {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #3b82f6 !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

@keyframes slideDownForm {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   WALLET DYNAMIC COIN ASSETS & TRANSFER MODAL STYLES
   ============================================================ */

/* Modify top navigation tab spacing for Spot & Futures accounts */
#page-wallets .wallet-tabs {
  justify-content: flex-start;
  gap: 20px;
}

#page-wallets .wallet-tab {
  flex: none;
  font-size: 15px;
  padding: 14px 4px;
}

/* Dynamic Assets Row Layout */
.coin-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: background 0.15s ease;
}

.coin-asset-row:active {
  background: var(--bg2);
}

.coin-asset-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-asset-logo-container {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coin-asset-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coin-asset-logo-fallback {
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
}

.coin-asset-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coin-asset-symbol {
  font-size: 15px;
  font-weight: 700;
  color: var(--text1);
}

.coin-asset-name {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}

.coin-asset-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.coin-asset-balance {
  font-size: 15px;
  font-weight: 700;
  color: var(--text1);
}

.coin-asset-value-fiat {
  font-size: 11.5px;
  color: var(--text3);
  font-weight: 500;
}

.overview-account-card {
  margin: 0 16px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}

.overview-account-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.overview-account-card:active {
  transform: scale(0.98);
}

/* Futures Account Overview Elements style */
.futures-account-overview-card {
  margin: 12px 16px 4px;
  background: var(--bg2);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.futures-overview-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.futures-overview-label {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}

.futures-overview-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
}

.futures-overview-value.green-text {
  color: var(--green);
}

/* Transfer Swap button microanimation */
.transfer-swap-btn:hover {
  transform: rotate(180deg);
  background: var(--bg3);
}

/* Modal form adjustments */
.transfer-direction-card select,
#transfer-coin-select {
  cursor: pointer;
}

.disabled {
  opacity: 0.65;
  cursor: not-allowed !important;
}

/* Wallet Chart Wrapper clickable scale hover effect */
.wallet-chart-wrapper {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wallet-chart-wrapper:hover {
  transform: scale(1.06);
  opacity: 0.9;
}

.wallet-chart-wrapper:active {
  transform: scale(0.96);
}

/* PNL badges styling pulse */
.percent-badge {
  animation: pulsePnlBadge 2s infinite ease-in-out;
}

@keyframes pulsePnlBadge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* ============================================================ */
/* WITHDRAWAL SYSTEM STYLES */
/* ============================================================ */

/* Select Coin List */
.withdraw-coin-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.withdraw-coin-row:active {
  transform: scale(0.98);
  background: var(--bg3);
}

.withdraw-coin-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  background: var(--bg);
}

.withdraw-coin-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.withdraw-coin-sym {
  font-size: 15px;
  font-weight: 700;
  color: var(--text1);
}

.withdraw-coin-name {
  font-size: 11.5px;
  color: var(--text3);
  font-weight: 500;
}

.withdraw-coin-bal-col {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.withdraw-coin-bal-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text1);
}

.withdraw-coin-bal-fiat {
  font-size: 11.5px;
  color: var(--text3);
  font-weight: 500;
}

/* Withdraw Form Pages & Inputs */
#withdraw-form-submit-btn.disabled {
  background: rgba(235, 208, 106, 0.45) !important;
  color: rgba(18, 9, 2, 0.5) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

#withdraw-form-submit-btn:not(.disabled) {
  background: #ebd06a !important;
  color: #120902 !important;
  box-shadow: 0 4px 12px rgba(235, 208, 106, 0.2);
}

#withdraw-form-submit-btn:not(.disabled):active {
  transform: scale(0.97);
}

/* Network selection list item in bottom sheet */
.withdraw-network-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg2);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.withdraw-network-item:hover,
.withdraw-network-item.active {
  border-color: var(--blue);
  background: rgba(30, 128, 255, 0.04);
}

.withdraw-network-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.withdraw-network-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}

.withdraw-network-info-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.withdraw-network-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.withdraw-network-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text1);
}

.withdraw-network-badge-recently {
  font-size: 9px;
  background: rgba(30, 128, 255, 0.12);
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}

.withdraw-network-fee {
  font-size: 11.5px;
  color: var(--text3);
  font-weight: 500;
}

/* Captcha Slide Jigsaw Styles */
.captcha-puzzle-frame {
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

.captcha-slider-track {
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

/* Processing Overlay count spin animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Withdrawal History Cards */
.withdraw-history-card {
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.withdraw-history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.withdraw-history-card-coin {
  font-size: 15px;
  font-weight: 700;
  color: var(--text1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.withdraw-history-card-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.withdraw-history-card-status.pending {
  background: rgba(255, 149, 0, 0.12);
  color: #FF9500;
}

.withdraw-history-card-status.completed {
  background: rgba(14, 203, 129, 0.12);
  color: #0ecb81;
}

.withdraw-history-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text2);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.withdraw-history-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

.withdraw-history-label {
  color: var(--text3);
}

.withdraw-history-value {
  color: var(--text1);
  font-weight: 600;
  word-break: break-all;
  max-width: 60%;
  text-align: right;
}

/* ============ PREMIUM EVENT CARDS & DETAIL MODAL ============ */
.event-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.event-card:hover {
  transform: translateY(-2px);
  background: rgba(30, 128, 255, 0.12) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.event-card:hover .premium-emoji-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.event-modal-card {
  background: #12141a; /* Sleek dark card matches premium crypto theme */
  border: 1.5px solid rgba(30, 128, 255, 0.3);
  border-radius: 24px;
  padding: 24px;
  width: 320px;
  max-width: 90%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 128, 255, 0.15);
  animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #ffffff;
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.event-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.event-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.event-modal-header {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 10px;
}

.event-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 128, 255, 0.2) 0%, rgba(30, 128, 255, 0.05) 100%);
  border: 1px solid rgba(30, 128, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.event-modal-icon:hover {
  transform: scale(1.1) rotate(-5deg);
}

.event-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.event-modal-reward-badge {
  display: inline-block;
  background: rgba(14, 203, 129, 0.15);
  border: 1px solid rgba(14, 203, 129, 0.4);
  color: #0ecb81;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.event-modal-body {
  margin-bottom: 24px;
}

.event-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.event-step-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.event-step-number {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e80ff;
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.event-step-content {
  flex: 1;
  text-align: left;
}

.event-step-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.event-step-desc {
  font-size: 11px;
  color: #848e9c;
  line-height: 1.3;
}

.event-modal-btn {
  width: 100%;
  background: linear-gradient(90deg, #1e80ff 0%, #0052cc 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(30, 128, 255, 0.4);
}

.event-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 128, 255, 0.5);
}

.event-modal-btn:active {
  transform: translateY(1px);
}

@keyframes spinWheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   LUCKY SPIN DARK MODE & HD STYLING
   ========================================================================== */

#page-spin-register,
#page-lucky-spin {
  background: #0b0e11 !important;
  color: #ffffff !important;
}

#page-spin-register .page-header,
#page-lucky-spin .page-header {
  background: #0b0e11 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#page-spin-register .page-header .header-title,
#page-lucky-spin .page-header .header-title {
  color: #ffffff !important;
}

#page-spin-register .page-header .icon-btn,
#page-lucky-spin .page-header .icon-btn {
  color: #ffffff !important;
}

/* Premium step cards in Spin Register */
.spin-register-step-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  border-radius: 14px;
  transition: all 0.25s ease;
}

.spin-register-step-card:hover {
  background: rgba(240, 185, 11, 0.04);
  border-color: rgba(240, 185, 11, 0.2);
  transform: translateX(4px);
}

/* Premium Anniversary Card */
.anniversary-gold-card {
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.12) 0%, rgba(11, 14, 17, 0.9) 100%) !important;
  border: 1.5px solid rgba(240, 185, 11, 0.25) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  position: relative;
  overflow: hidden;
}

.anniversary-gold-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(240, 185, 11, 0.1) 50%,
    transparent 55%
  );
  animation: shineGoldCard 6s infinite linear;
  pointer-events: none;
}

@keyframes shineGoldCard {
  0% { transform: translate(-30%, -30%) rotate(0deg); }
  100% { transform: translate(30%, 30%) rotate(0deg); }
}

/* HD Wheel Styling */
.wheel-outer-housing {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1e29 0%, #0c0e14 100%);
  border: 8px solid #121620;
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 195, 255, 0.35);
  z-index: 1;
}

.wheel-outer-gold-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 195, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 195, 255, 0.25);
  pointer-events: none;
  z-index: 0;
  animation: wheelPulseGlow 3s infinite ease-in-out;
}

@keyframes wheelPulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.02); opacity: 1; box-shadow: 0 0 35px rgba(0, 195, 255, 0.4); }
}

/* Wheel Slices Inner Styles */
.main-spin-wheel {
  border: 4px solid #00c3ff !important;
  box-shadow: 
    0 0 20px rgba(0, 195, 255, 0.4),
    inset 0 0 30px rgba(0, 0, 0, 0.8) !important;
}

/* Slice Divider Lines */
.wheel-divider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 50%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.2) 0%, rgba(240, 185, 11, 0.6) 100%);
  transform-origin: 50% 100%;
  z-index: 4;
}

/* Slice Label Styling */
.wheel-slice-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 5;
  transform-origin: 50% 50%;
}

.wheel-slice-label {
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.wheel-slice-icon-wrap {
  width: 22px;
  height: 22px;
  margin: 3px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.wheel-slice-icon-wrap img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 50%;
}

/* 3D Glassmorphic Go Button */
.spin-go-button {
  background: radial-gradient(circle, #10141f 0%, #0c0e14 100%) !important;
  border: 3px solid #00c3ff !important;
  box-shadow: 
    0 6px 15px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(0, 195, 255, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.2) !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  cursor: pointer;
  color: #fff !important;
}

.spin-go-button:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.08) !important;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(0, 195, 255, 0.8),
    inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
}

.spin-go-button:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.92) !important;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(0, 195, 255, 0.4),
    inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.spin-go-button:disabled {
  background: radial-gradient(circle, #4e5564 0%, #2b303c 100%) !important;
  border: 3.5px solid #4e5564 !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* Premium Tickets (Coupons) Styles */
.premium-ticket {
  background: #141822 !important;
  border: 1.5px dashed rgba(240, 185, 11, 0.2) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.premium-ticket::before,
.premium-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #0b0e11;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-ticket::before {
  left: -7px;
  box-shadow: inset -3px 0 5px rgba(0,0,0,0.4);
}

.premium-ticket::after {
  right: -7px;
  box-shadow: inset 3px 0 5px rgba(0,0,0,0.4);
}

.premium-ticket.ticket-green {
  border: 1.5px dashed rgba(14, 203, 129, 0.3) !important;
  box-shadow: 0 4px 15px rgba(14, 203, 129, 0.05);
}

.premium-ticket.ticket-blue {
  border: 1.5px dashed rgba(30, 128, 255, 0.3) !important;
  box-shadow: 0 4px 15px rgba(30, 128, 255, 0.05);
}

.premium-ticket:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(240, 185, 11, 0.4) !important;
}

.ticket-divider-dashed {
  height: 100%;
  border-left: 1px dashed rgba(255, 255, 255, 0.12);
  position: absolute;
  left: 70%;
  top: 0;
}

/* Ticker Scroll Slide up animation classes */
@keyframes tickerSlideUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-15px);
  }
}

/* Flashing Light Bulbs around outer wheel rim */
.wheel-light-bulb {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px #00c3ff, 0 0 12px #0088ff, inset 0 1px 1px #fff;
  z-index: 10;
  transform: translate(-50%, -50%);
}

.wheel-light-bulb:nth-child(even) {
  animation: flashBulbEven 0.8s infinite alternate;
}

.wheel-light-bulb:nth-child(odd) {
  animation: flashBulbOdd 0.8s infinite alternate;
}

@keyframes flashBulbEven {
  0% { opacity: 0.3; filter: brightness(0.6); box-shadow: 0 0 3px #00c3ff; }
  100% { opacity: 1; filter: brightness(1.6) drop-shadow(0 0 6px #00c3ff); }
}

@keyframes flashBulbOdd {
  0% { opacity: 1; filter: brightness(1.6) drop-shadow(0 0 6px #00c3ff); }
  100% { opacity: 0.3; filter: brightness(0.6); box-shadow: 0 0 3px #00c3ff; }
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 4px rgba(14, 203, 129, 0.4); }
  100% { box-shadow: 0 0 12px rgba(14, 203, 129, 0.8); }
}

/* ============================================================
   USER REGISTRATION & LOGIN PORTAL STYLES
   ============================================================ */

/* Welcome Bonus Overlay */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 10, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: authFadeIn 0.3s ease;
}

.welcome-card {
  background: rgba(20, 26, 40, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  color: white;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.welcome-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text3);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.welcome-close:hover {
  color: white;
}

.welcome-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 18px;
  color: var(--text3);
  font-size: 13px;
  max-width: 120px;
  margin: 0 auto 24px;
}

.welcome-graphic {
  position: relative;
  width: 130px;
  height: 90px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-coin {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e2530 0%, #0f131a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.coin-left {
  left: 20px;
  border: 2px solid #0ecb81;
  box-shadow: 0 4px 20px rgba(14, 203, 129, 0.2);
  z-index: 2;
  transform: rotate(-10deg);
}

.coin-right {
  right: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  z-index: 1;
  transform: rotate(15deg);
}

.coin-inner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-title {
  font-size: 24px;
  font-weight: 800;
  color: #0ecb81;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.2;
}

.welcome-desc {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 24px;
}

.welcome-countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.countdown-unit {
  display: flex;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 10px;
}

.countdown-unit span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-right: 2px;
}

.countdown-unit label {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
}

.countdown-unit.text-sec span {
  color: #0ecb81;
}

.welcome-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #0ecb81;
  cursor: pointer;
  transition: opacity 0.2s;
}

.welcome-link:hover {
  opacity: 0.8;
}

.welcome-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 24px;
  background: white;
  color: #0c0e16;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.welcome-btn:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* Fullscreen Auth Overlay */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 10005;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: authSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-step-view {
  display: none;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.auth-step-view.active {
  display: flex;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin-bottom: 24px;
}

.auth-back-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text1);
  cursor: pointer;
  padding: 8px 0;
  line-height: 1;
}

.auth-toggle-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
}

.auth-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text1);
  text-align: left;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--text3);
  text-align: left;
  margin-top: 6px;
}

.auth-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text1);
  text-transform: capitalize;
  text-align: left;
}

.auth-input-control {
  width: 100%;
  height: 48px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--text1);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.auth-input-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 128, 255, 0.15);
}

.auth-ref-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
}

.auth-ref-toggle span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text2);
}

#auth-ref-arrow {
  font-size: 11px;
  color: var(--text3);
  transition: transform 0.2s;
}

#auth-ref-arrow.collapsed {
  transform: rotate(180deg);
}

.auth-checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-top: 4px;
}

.auth-checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--bg2);
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}

.auth-checkbox-label input:checked + .checkbox-custom {
  background: var(--blue);
  border-color: var(--blue);
}

.auth-checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.4;
  text-align: left;
}

.checkbox-text a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-primary-btn {
  width: 100%;
  height: 48px;
  background: white;
  color: #0c0e16;
  border: none;
  border-radius: 24px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.auth-primary-btn:hover {
  background: #e2e8f0;
}

.auth-primary-btn.disabled {
  background: #2b3139 !important;
  color: var(--text3) !important;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text3);
  font-size: 11.5px;
  font-weight: 600;
  margin: 12px 0;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider::before {
  margin-right: 12px;
}

.auth-divider::after {
  margin-left: 12px;
}

.auth-google-btn {
  width: 100%;
  height: 48px;
  background: #ffffff !important;
  border: 1.5px solid #e1e4e8 !important;
  color: #1f1f1f !important;
  border-radius: 24px;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-google-btn:hover {
  background: #f8f9fa !important;
  border-color: #ccd1d9 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

.auth-timer-span {
  position: absolute;
  right: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  user-select: none;
}

.auth-hint-text {
  font-size: 11.5px;
  color: var(--text3);
  margin-top: -12px;
  text-align: left;
}

/* Sign-up Complete Badge */
.success-checkmark-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(14, 203, 129, 0.05);
  border: 1.5px solid rgba(14, 203, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: successPulse 2s infinite ease-in-out;
  box-shadow: 0 0 20px rgba(14, 203, 129, 0.1);
}

.checkmark-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(14, 203, 129, 0.12);
  border: 2px solid rgba(14, 203, 129, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-secondary-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #848e9c;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-secondary-link:hover {
  color: #ffffff !important;
}

/* Auth Complete Card Styling */
.auth-complete-card {
  width: 100%;
  max-width: 420px;
  background: rgba(13, 16, 21, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 44px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(14, 203, 129, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  animation: authSlideUp 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.auth-card-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #848e9c;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  z-index: 10;
}

.auth-card-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.05);
}

.auth-complete-reward-banner {
  margin-top: 28px;
  width: 100%;
  background: rgba(14, 203, 129, 0.04);
  border: 1.5px solid rgba(14, 203, 129, 0.15);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  position: relative;
  transition: all 0.2s ease;
}

.auth-complete-reward-banner:hover {
  background: rgba(14, 203, 129, 0.06);
  border-color: rgba(14, 203, 129, 0.25);
  box-shadow: 0 0 20px rgba(14, 203, 129, 0.05);
}

.auth-complete-verify-btn {
  margin-top: 28px;
  width: 100%;
  height: 52px;
  border-radius: 26px;
  background: linear-gradient(135deg, #0ecb81, #0cba74);
  color: #000000;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(14, 203, 129, 0.2);
}

.auth-complete-verify-btn:hover {
  background: linear-gradient(135deg, #10db8c, #0ecb81);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 203, 129, 0.3);
}

.auth-complete-verify-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(14, 203, 129, 0.15);
}

/* Animations */
@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes authSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* 3D Coin Rotation Animation */
@keyframes rotateLogo {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.rotate-logo-3d {
  animation: rotateLogo 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ============================================================
   SLEEK AFFILIATE HEADER & CLAIM BUTTON STYLES
   ============================================================ */

.aff-sleek-header {
  background: rgba(255, 255, 255, 0.015);
  border: 1.5px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.aff-sleek-header:hover {
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.balance-sec {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bal-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.bal-amount-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bal-symbol {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.bal-amount {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1;
}

/* Claim Button styled in a Black Box */
.aff-claim-btn {
  background: #000000 !important;
  color: #f0b90b !important;
  border: 1.5px solid rgba(240, 185, 11, 0.35) !important;
  padding: 6px 16px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  margin-left: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.aff-claim-btn:hover {
  background: #121316 !important;
  border-color: #f0b90b !important;
  transform: translateY(-1px) scale(1.04) !important;
  box-shadow: 0 4px 15px rgba(240, 185, 11, 0.15) !important;
}

.aff-claim-btn:active {
  transform: translateY(0) scale(0.97) !important;
}

.aff-claim-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Flat Stats bar without box border */
.aff-flat-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: 4px;
}

.flat-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 2px;
}

.flat-stat-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flat-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.flat-stat-val.text-green {
  color: #0ecb81;
}

.flat-stat-divider {
  width: 1px;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   PURE BLACK DESIGN THEME FOR AFFILIATE DASHBOARD
   ============================================================ */

#page-affiliate,
#page-social-events {
  background-color: #000000 !important;
  color: #ffffff !important;
}

#page-affiliate .affiliate-header,
#page-social-events .page-header {
  background-color: #000000 !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}

#page-affiliate .rewards-header-title,
#page-social-events .header-title {
  color: #ffffff !important;
  font-weight: 800 !important;
}

#page-affiliate .icon-btn svg,
#page-social-events .icon-btn svg {
  color: #ffffff !important;
}

#page-affiliate .affiliate-wrapper-content,
#page-social-events > div {
  background-color: #000000 !important;
}

/* Card Styling on Pure Black Background */
#page-affiliate .aff-sleek-header {
  background: #0d0d0d !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

#page-affiliate .aff-card,
#page-social-events .bounty-channel-card {
  background: #0d0d0d !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

/* Text and Labels visibility */
#page-affiliate .bal-label,
#page-affiliate .flat-stat-lbl,
#page-affiliate .ref-input-label,
#page-affiliate .aff-card-desc,
#page-affiliate .promo-desc,
#page-social-events .channel-bounty-desc {
  color: rgba(255, 255, 255, 0.6) !important;
}

#page-affiliate .aff-card-title,
#page-social-events .bounty-name {
  color: #ffffff !important;
}

/* Copy Boxes styling */
#page-affiliate .ref-input-box {
  background: #141414 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}

#page-affiliate .ref-text {
  color: #ffffff !important;
}

#page-affiliate .ref-copy-btn {
  color: rgba(255, 255, 255, 0.5) !important;
}

#page-affiliate .ref-copy-btn:hover {
  color: #f0b90b !important;
}

/* Network lists */
#page-affiliate .ref-user-item {
  background: #141414 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

#page-affiliate .ref-user-item:hover {
  border-color: rgba(240, 185, 11, 0.3) !important;
  background: #161616 !important;
}

#page-affiliate .ref-username {
  color: #ffffff !important;
}

#page-affiliate .ref-date {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Status dots */
#page-affiliate .flat-stat-divider {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Promo Banner Glow */
#page-affiliate .aff-promo-banner {
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.18) 0%, rgba(246, 70, 93, 0.12) 100%) !important;
  border: 1.5px solid rgba(240, 185, 11, 0.45) !important;
  box-shadow: 0 4px 25px rgba(240, 185, 11, 0.15) !important;
}

#page-affiliate .promo-title-highlight {
  color: #f0b90b !important;
  text-shadow: 0 0 10px rgba(240, 185, 11, 0.3) !important;
}

/* Channel Promotion Inputs on Pure Black */
#page-social-events .channel-input {
  background: #141414 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* ============================================================
   AFFILIATE PAGE — PREMIUM DARK REDESIGN
   ============================================================ */

/* ---- Hero Banner ---- */
.aff-hero-banner {
  position: relative;
  background: #0a0a0a;
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 20px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.aff-hero-bg-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(33,150,243,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.aff-hero-content {
  position: relative;
  z-index: 1;
}

.aff-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.aff-hero-usdt-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.aff-hero-usdt-logo svg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
}

.aff-hero-label-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aff-hero-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.aff-hero-amount-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.aff-hero-currency {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.aff-hero-amount {
  font-size: 30px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1;
}

.aff-hero-currency-tag {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-left: 2px;
}

.aff-hero-claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #2196f3;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.aff-hero-claim-btn:hover {
  background: #1976d2;
  transform: translateY(-1px) scale(1.04);
  box-shadow: none;
}

.aff-hero-claim-btn:active {
  transform: scale(0.97);
}

.aff-hero-claim-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Stats row inside hero */
.aff-hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}

.aff-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.aff-hero-stat-val {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}

.aff-hero-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.aff-hero-stat-div {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.1);
}

/* ---- Mini Cards Row ---- */
.aff-mini-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.aff-mini-card {
  background: #0a0a0a;
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}

.aff-mini-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.aff-mini-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aff-mini-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aff-mini-card-val {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.aff-mini-card-lbl {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---- Dark Card ---- */
.aff-dark-card {
  background: #0a0a0a;
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  transition: border-color 0.2s ease;
}

.aff-dark-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.aff-dark-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
}

/* ---- Override for new dark cards ref-input-box ---- */
.aff-dark-card .ref-input-box {
  background: #141414 !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
}

/* ============================================================
   LANDING PAGE STYLES
   ============================================================ */
.landing-page-wrapper {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  height: 100vh;
  background: #181a20;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  scrollbar-width: none; /* Firefox */
}
.landing-page-wrapper::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.landing-header {
  height: 60px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  background: #181a20;
  z-index: 100;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: #F0B90B;
}

.landing-menu-btn {
  background: none;
  border: none;
  color: #848E9C;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s;
}
.landing-menu-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.landing-dropdown {
  display: none;
  position: absolute;
  top: 60px;
  right: 16px;
  background: #1e2329;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 150px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 101;
  animation: dropdownFade 0.2s ease;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-dropdown .dropdown-item {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #EAECEF;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.landing-dropdown .dropdown-item:last-child {
  border-bottom: none;
}
.landing-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #F0B90B;
}

.landing-main {
  flex: 1;
  padding-bottom: 90px; /* space for sticky download bar */
}

.landing-hero {
  padding: 36px 20px 24px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(240, 185, 11, 0.08) 0%, rgba(24, 26, 32, 0) 70%);
}

.landing-user-count {
  font-size: 34px;
  font-weight: 800;
  color: #F0B90B;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  text-shadow: 0 4px 20px rgba(240, 185, 11, 0.15);
}

.landing-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.landing-hero-subtitle {
  font-size: 13px;
  color: #848E9C;
  font-weight: 500;
  margin-bottom: 24px;
}

.landing-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.landing-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 12px;
}

.wreath-svg {
  width: 22px;
  height: 26px;
  flex-shrink: 0;
}

.badge-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.badge-num {
  font-size: 12px;
  font-weight: 800;
  color: #F0B90B;
}

.badge-lbl {
  font-size: 9px;
  color: #848E9C;
  font-weight: 600;
  text-transform: uppercase;
}

.landing-bonus-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(240, 185, 11, 0.08);
  border: 1px solid rgba(240, 185, 11, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: #ebd06a;
  font-weight: 600;
  margin-bottom: 24px;
}

.landing-signup-btn {
  width: 100%;
  max-width: 280px;
  height: 48px;
  border: none;
  border-radius: 24px;
  background: #F0B90B;
  color: #000000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease-in-out;
  margin: 0 auto;
  display: block;
}
.landing-signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: none;
}
.landing-signup-btn:active {
  transform: translateY(1px);
}

.landing-markets {
  padding: 16px 20px;
}

.market-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
  padding-bottom: 8px;
}

.m-tab {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #848E9C;
  cursor: pointer;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.m-tab.active {
  color: #ffffff;
}
.m-tab.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 3px;
  background: #F0B90B;
  border-radius: 2px;
}

.coin-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.coin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.coin-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(240, 185, 11, 0.15);
}

.coin-info-left {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 45%;
}

.coin-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.coin-icon-fallback-landing {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.15);
  color: #F0B90B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.coin-meta {
  display: flex;
  flex-direction: column;
}

.coin-sym {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.coin-name-lbl {
  font-size: 11px;
  color: #848E9C;
  font-weight: 500;
  margin-left: 4px;
}

.coin-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  text-align: right;
  width: 30%;
}

.coin-change {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  width: 25%;
}
.coin-change.neg {
  color: #F6465D;
}
.coin-change.pos {
  color: #0ECB81;
}

.view-all-coins {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #848E9C;
  cursor: pointer;
  transition: color 0.2s;
}
.view-all-coins:hover {
  color: #F0B90B;
}

.landing-partners {
  padding: 16px 20px;
}

.partner-card {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 16px;
  align-items: center;
}

.partner-logo-placeholder {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1.5px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.partner-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.partner-text strong {
  font-size: 12px;
  color: #EAECEF;
}

.partner-text span {
  font-size: 10px;
  color: #848E9C;
}

.landing-news {
  padding: 16px 20px;
}

.news-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  text-align: left;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item-row {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.news-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #F0B90B;
  flex-shrink: 0;
}

.news-headline {
  font-size: 12.5px;
  color: #848E9C;
  text-align: left;
  line-height: 1.4;
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item-row:hover .news-headline {
  color: #ffffff;
}

.sticky-download-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e2329;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 102;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}

.close-download-btn {
  background: none;
  border: none;
  color: #848E9C;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  margin-right: 4px;
  line-height: 1;
}
.close-download-btn:hover {
  color: #ffffff;
}

.download-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.download-app-icon {
  width: 34px;
  height: 34px;
  background: #F0B90B;
  color: #000000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(240, 185, 11, 0.2);
}

.download-text {
  text-align: left;
}

.app-title-download {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.app-subtitle-download {
  font-size: 10.5px;
  color: #848E9C;
}

.download-action-btn {
  border: none;
  border-radius: 16px;
  background: #F0B90B;
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(240, 185, 11, 0.2);
  transition: all 0.2s;
}
.download-action-btn:hover {
  background: #f3c22b;
}

/* User Counter Animation */
@keyframes countPop {
  0% { transform: scale(1); color: #F0B90B; }
  30% { transform: scale(1.06); color: #ffffff; }
  100% { transform: scale(1); color: #F0B90B; }
}
.count-animate {
  display: inline-block;
  animation: countPop 0.4s ease-out;
}

/* ================================================================
   PREMIUM UPGRADE — GLASSMORPHISM + TYPOGRAPHY + DARK DASHBOARD
   ================================================================ */

/* === PREMIUM BACKGROUND AMBIENT PARTICLES === */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(14, 203, 129, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 15%, rgba(30, 128, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(139, 92, 246, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 85%, rgba(14, 203, 129, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 60%, rgba(30, 128, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* === PREMIUM FONT ACROSS ENTIRE APP === */
.app-wrapper.dark-mode,
.app-wrapper.dark-mode * {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* === PREMIUM DARK MODE VARIABLE OVERRIDE === */
.app-wrapper.dark-mode {
  --bg: #000000; /* Pure Black background matching user's 2nd screenshot */
  --bg2: #0b0e11; /* Dark grey for search & quick card backgrounds */
  --bg3: #181a20; /* Lighter grey for hover/card states */
  --text1: #ffffff; /* Bright white text */
  --text2: #929aa5; /* Muted grey text */
  --text3: #5e6673; /* Dark grey text */
  --border: rgba(255, 255, 255, 0.05);
  --green: #0ecb81; /* Brand green */
  --red: #f6465d; /* Brand red */
  --blue: #1e80ff;
}

/* === GLASSMORPHISM CARDS (dark mode) === */
.app-wrapper.dark-mode .market-card,
.app-wrapper.dark-mode .vip-banner,
.app-wrapper.dark-mode .promo-reward-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-wrapper.dark-mode .market-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* === PREMIUM HEADER (dark mode) === */
.app-wrapper.dark-mode .page-header,
.app-wrapper.dark-mode .home-header {
  background: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1.2px solid rgba(255, 255, 255, 0.04);
}

/* === PREMIUM ASSET AMOUNT (dark mode) === */
.app-wrapper.dark-mode .asset-amount {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #8892a4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1.5px;
}

/* === PREMIUM ACTION BUTTONS (dark mode) === */
.app-wrapper.dark-mode .btn-deposit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f2f5;
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-wrapper.dark-mode .btn-deposit:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.app-wrapper.dark-mode .btn-trade {
  background: linear-gradient(135deg, #0ecb81 0%, #05a85c 100%);
  box-shadow: 0 4px 20px rgba(14, 203, 129, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-wrapper.dark-mode .btn-trade:hover {
  box-shadow: 0 6px 28px rgba(14, 203, 129, 0.45);
  transform: translateY(-1px);
}

/* === PREMIUM MENU ICONS (dark mode) === */
.app-wrapper.dark-mode .menu-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.app-wrapper.dark-mode .menu-item:hover .menu-icon {
  background: rgba(14, 203, 129, 0.12);
  border-color: rgba(14, 203, 129, 0.2);
  transform: translateY(-3px);
}

.app-wrapper.dark-mode .menu-label {
  font-size: 11px;
  font-weight: 600;
  color: #8892a4;
}

/* === PREMIUM BOTTOM NAV (dark mode) === */
.app-wrapper.dark-mode .bottom-nav,
.app-wrapper.dark-mode .floating-nav-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding-bottom: 20px;
  background: rgba(10, 10, 12, 0.72) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: none !important;
  border-top: 1.2px solid rgba(255, 255, 255, 0.08) !important;
  border-top-left-radius: 18px !important;
  border-top-right-radius: 18px !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.75) !important;
  margin: 0;
  overflow: hidden;
}
.app-wrapper.dark-mode .nav-item.active {
  color: #F0B90B !important; /* Brand yellow active text/icon */
}
.app-wrapper.dark-mode .nav-item {
  color: #848e9c;
}
}

/* === PREMIUM MODAL (dark mode) === */
.app-wrapper.dark-mode .modal-card,
.modal-card {
  background: rgba(18, 24, 38, 0.98);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-overlay {
  background: rgba(5, 8, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-wrapper.dark-mode .modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #f0f2f5;
  letter-spacing: -0.5px;
}

.app-wrapper.dark-mode .modal-text {
  color: #8892a4;
  font-size: 13.5px;
  line-height: 1.6;
}

/* === PREMIUM AUTH OVERLAY (ALWAYS WHITE/LIGHT AS REQUESTED) === */
.auth-overlay,
.app-wrapper.dark-mode .auth-overlay {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #1e2026 !important;
}

.auth-container,
.app-wrapper.dark-mode .auth-container {
  background: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
}

.auth-title,
.app-wrapper.dark-mode .auth-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  font-size: 28px !important;
  color: #1e2026 !important;
}

.auth-subtitle {
  color: #474d57 !important;
}

.auth-field-label {
  color: #1e2026 !important;
}

.auth-input-control,
.app-wrapper.dark-mode .auth-input-control {
  background: #F5F6FA !important;
  border: 1.5px solid #EAECEF !important;
  color: #1E2026 !important;
  border-radius: 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 500 !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.auth-input-control:focus,
.app-wrapper.dark-mode .auth-input-control:focus {
  background: #f0f5ff !important;
  border-color: #1E80FF !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(30, 128, 255, 0.15) !important;
}

.auth-back-btn {
  color: #1e2026 !important;
}

.auth-toggle-link {
  color: #1E80FF !important;
}

.checkbox-text {
  color: #474d57 !important;
}

.checkbox-text a {
  color: #1E80FF !important;
}

.auth-divider span {
  background: #ffffff !important;
  color: #848e9c !important;
  padding: 0 8px !important;
}

.auth-divider::before, .auth-divider::after {
  border-bottom: 1.5px solid #EAECEF !important;
}

.auth-primary-btn {
  background: #ffffff !important;
  color: #0c0e16 !important;
  border: 1.5px solid #e1e4e8 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}

.auth-primary-btn:hover {
  background: #f8f9fa !important;
  border-color: #ccd1d9 !important;
}

.auth-primary-btn.disabled {
  background: #eaecef !important;
  color: #848e9c !important;
  border-color: #eaecef !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.auth-timer-span {
  color: #1E80FF !important;
}

/* === PREMIUM SIGNUP COMPLETE CARD (LIGHT MODE) === */
.auth-complete-card,
.signup-success-card,
.app-wrapper.dark-mode .auth-step-view.success-view {
  background: #ffffff !important;
  border: 1.5px solid #eaecef !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08) !important;
}

.auth-complete-card .auth-title {
  color: #1e2026 !important;
}

.auth-complete-card .auth-subtitle {
  color: #474d57 !important;
}

.auth-complete-card .auth-secondary-link {
  color: #848e9c !important;
}

.auth-complete-card .auth-secondary-link:hover {
  color: #1e2026 !important;
}

.auth-complete-card .auth-card-close-btn {
  background: #f5f6fa !important;
  border: 1px solid #eaecef !important;
  color: #848e9c !important;
}

.auth-complete-card .auth-card-close-btn:hover {
  background: #eaecef !important;
  color: #1e2026 !important;
}

.auth-complete-reward-banner {
  background: rgba(14, 203, 129, 0.04) !important;
  border: 1.5px solid rgba(14, 203, 129, 0.15) !important;
}

/* === PREMIUM WELCOME OVERLAY === */
.welcome-overlay {
  background: rgba(5, 8, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.app-wrapper.dark-mode .welcome-card {
  background: rgba(14, 18, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-wrapper.dark-mode .welcome-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, #8892a4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === PREMIUM BOTTOM SHEET (dark mode) === */
.app-wrapper.dark-mode .bottom-sheet-content {
  background: rgba(14, 18, 28, 0.99);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
}

/* === PREMIUM PAGE BACKGROUNDS (dark mode) === */
.app-wrapper.dark-mode .page {
  background: var(--bg);
}

.app-wrapper.dark-mode .discover-section {
  background: rgba(22, 27, 40, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === PREMIUM SEARCH BAR (dark mode) === */
.app-wrapper.dark-mode .search-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.app-wrapper.dark-mode .search-input {
  color: #f0f2f5;
}

/* === PREMIUM MARKET TABLE ROWS (dark mode) === */
.app-wrapper.dark-mode .market-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.app-wrapper.dark-mode .market-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* === PREMIUM PRICE TEXT GRADIENT (dark mode) === */
.app-wrapper.dark-mode .card-price {
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* === PREMIUM VIP BANNER (dark mode) === */
.app-wrapper.dark-mode .vip-banner {
  background: linear-gradient(135deg, rgba(0, 214, 143, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(0, 214, 143, 0.12);
}

/* === PREMIUM SCROLLBAR (dark mode) === */
.app-wrapper.dark-mode ::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

.app-wrapper.dark-mode ::-webkit-scrollbar-track {
  background: transparent;
}

.app-wrapper.dark-mode ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* === SECTION HEADINGS PREMIUM (dark mode) === */
.app-wrapper.dark-mode .section-title,
.app-wrapper.dark-mode h2,
.app-wrapper.dark-mode h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* === PREMIUM CATEGORY TABS (dark mode) === */
.app-wrapper.dark-mode .cat-tab {
  color: #4d5a72;
  font-weight: 600;
}

.app-wrapper.dark-mode .cat-tab.active {
  color: #f0f2f5;
  font-weight: 700;
}

/* === PREMIUM GREEN GLOW ON BUTTONS === */
.app-wrapper.dark-mode .modal-btn,
.app-wrapper.dark-mode .auth-submit-btn {
  background: linear-gradient(135deg, #00d68f 0%, #00b377 100%);
  box-shadow: 0 4px 20px rgba(0, 214, 143, 0.35);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
}

.app-wrapper.dark-mode .modal-btn:hover,
.app-wrapper.dark-mode .auth-submit-btn:hover {
  box-shadow: 0 8px 28px rgba(0, 214, 143, 0.5);
  transform: translateY(-1px);
}

/* === BODY ANIMATED GRADIENT (subtle, always on) === */
@keyframes bgShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* END PREMIUM STYLES */

/* ============================================================
   BITORAEX FAQ & FOOTER STYLES
   ============================================================ */

.landing-faq-section {
  padding: 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  padding-right: 8px;
}

.faq-icon {
  font-size: 18px;
  color: #848E9C;
  font-weight: 300;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
  flex-shrink: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0, 1, 0, 1), padding 0.25s;
  padding: 0 16px;
  font-size: 12px;
  color: #848E9C;
  line-height: 1.6;
}

.faq-item.open {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(240, 185, 11, 0.15);
}

.faq-item.open .faq-content {
  max-height: 1000px;
  padding: 0 16px 16px;
  transition: max-height 0.25s cubic-bezier(1, 0, 1, 0);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: #F0B90B;
}

/* Footer Section Accordions */
.landing-footer-accordions {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-acc-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-acc-header {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.footer-acc-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.footer-acc-icon {
  font-size: 16px;
  color: #848E9C;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
  flex-shrink: 0;
}

.footer-acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0, 1, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 14px 0;
}

.footer-acc-item.open .footer-acc-content {
  max-height: 300px;
  transition: max-height 0.25s cubic-bezier(1, 0, 1, 0);
}

.footer-acc-item.open .footer-acc-icon {
  transform: rotate(45deg);
  color: #F0B90B;
}

.footer-link {
  font-size: 12px;
  color: #848E9C;
  text-decoration: none;
  text-align: left;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffffff;
}

/* Community Section */
.landing-community-section {
  padding: 24px 20px 16px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.community-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.community-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.community-icon-link {
  color: #848E9C;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-icon-link:hover {
  color: #F0B90B;
}

/* Footer Preferences & Reg Details */
.landing-footer-bottom {
  padding: 16px 20px 32px;
  background: #181a20;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: left;
}

.pref-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.pref-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #EAECEF;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.pref-item:hover {
  color: #F0B90B;
}

.theme-toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #EAECEF;
  font-weight: 600;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2b3139;
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #F0B90B;
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #000000;
}

.reg-disclaimer {
  font-size: 10.5px;
  color: #5E6673;
  line-height: 1.5;
}

/* ============================================================
   NEW PREMIUM HOMEPAGE STYLES (MATCHES USER SCREENSHOT 100%)
   ============================================================ */

/* Avatar */
.profile-avatar-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.spy-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  object-fit: cover;
  display: block;
}

/* Redesigned Balance Card */
.asset-section-new {
  padding: 14px 16px 8px;
  background: transparent;
  color: #ffffff;
}

.asset-main-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.asset-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-label-new {
  font-size: 12.5px;
  color: #848E9C;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

#balance-eye-icon-new {
  display: inline-flex;
  align-items: center;
  color: #848E9C;
  cursor: pointer;
}

.analysis-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #F0B90B;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.analysis-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.asset-middle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  height: 52px;
}

.asset-value-container {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.asset-amount-new {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
}

.asset-currency-new {
  font-size: 14px;
  font-weight: 700;
  color: #848E9C;
}

.home-chart-wrapper {
  width: 140px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.asset-bottom-row {
  font-size: 13.5px;
  font-weight: 600;
  color: #848E9C;
  margin-top: 1px;
}

.home-pnl-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  width: fit-content;
}

.home-pnl-row .pnl-label {
  color: #848E9C;
}

.home-pnl-row .pnl-value.positive {
  color: #0ECB81;
}

.home-pnl-row .pnl-value.negative {
  color: #F6465D;
}

.home-pnl-row .pnl-arrow {
  color: #848E9C;
  font-size: 15px;
}

/* Redesigned Actions */
.action-buttons-new {
  display: flex;
  gap: 8px;
  padding: 6px 16px 12px;
  align-items: center;
}

.btn-deposit-new {
  flex: 5.2;
  background: #F0B90B;
  border: none;
  color: #000000;
  height: 42px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-deposit-new:active {
  opacity: 0.85;
}

.btn-p2p-new {
  flex: 3.8;
  background: #1E2026;
  border: none;
  color: #EAECEF;
  height: 42px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-p2p-new:active {
  background: #2B3139;
}

.btn-more-arrow {
  flex: 1;
  background: #1E2026;
  border: none;
  color: #EAECEF;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-more-arrow:active {
  background: #2B3139;
}

.btn-more-arrow svg {
  width: 14px;
  height: 14px;
  color: #848E9C;
}

.btn-icon {
  width: 15px;
  height: 15px;
}

/* Quick Menu Grid */
.quick-menu-new {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px 12px;
  gap: 2px;
}

.menu-item-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-item-new:active {
  background: rgba(255, 255, 255, 0.04);
}

.menu-icon-new {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.menu-icon-new svg {
  width: 20px;
  height: 20px;
}

.menu-label-new {
  font-size: 10.5px;
  color: #848E9C;
  font-weight: 600;
  text-align: center;
}

/* Vertical Pairs List / Markets Section */
.home-markets-section {
  border-top: 6px solid #000;
  padding: 14px 16px 16px;
  background: #000000;
}

.home-markets-tabs-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.home-markets-tabs-row::-webkit-scrollbar {
  display: none;
}

.home-markets-tab {
  font-size: 14.5px;
  font-weight: 700;
  color: #848E9C;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
  position: relative;
  padding-bottom: 6px;
}

.home-markets-tab.active {
  color: #F0B90B;
}

.home-markets-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1.5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #F0B90B;
  border-radius: 2px;
}

.home-markets-subtabs-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.home-markets-subtab {
  font-size: 11.5px;
  font-weight: 700;
  color: #848E9C;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-markets-subtab.active {
  color: #ffffff;
  background: #2b3139;
}

.home-coin-table-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #5E6673;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.home-coin-table-header .col-pair {
  width: 48%;
  text-align: left;
}

.home-coin-table-header .col-price {
  width: 27%;
  text-align: left;
}

.home-coin-table-header .col-change {
  width: 25%;
  text-align: right;
}

.home-coin-list-container {
  display: flex;
  flex-direction: column;
}

.home-coin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.15s ease;
}

.home-coin-row:active {
  background: rgba(255, 255, 255, 0.03);
}

.home-coin-pair-col {
  width: 48%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-coin-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
}

.home-coin-logo-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.15);
  color: #F0B90B;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-coin-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.home-coin-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-coin-base {
  font-size: 13.5px;
  font-weight: 700;
  color: #EAECEF;
}

.home-coin-quote {
  font-size: 11px;
  color: #848E9C;
  font-weight: 500;
}

.home-coin-badge {
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #848E9C;
  padding: 1px 3px;
  border-radius: 3px;
}

.home-coin-vol {
  font-size: 10.5px;
  color: #5E6673;
  font-weight: 500;
}

.home-coin-price-col {
  width: 27%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.home-coin-price {
  font-size: 14px;
  font-weight: 700;
  color: #EAECEF;
}

.home-coin-usd {
  font-size: 11px;
  color: #5E6673;
  font-weight: 500;
}

.home-coin-change-col {
  width: 25%;
  display: flex;
  justify-content: flex-end;
}

.home-change-badge {
  width: 76px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.2s ease;
}

.home-change-badge.positive {
  background: #0ECB81;
}

.home-change-badge.negative {
  background: #F6465D;
}

.view-more-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 0 2px;
  color: #F0B90B;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
  margin: 0 auto;
}

.view-more-row:active {
  opacity: 0.7;
}

.view-more-row svg {
  width: 12px;
  height: 12px;
}

/* Slide-up Bottom Drawer */
.bottom-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.bottom-drawer-overlay.active {
  display: flex;
}

.bottom-drawer-content {
  width: 100%;
  max-width: 480px;
  background: #181A20;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px 20px 30px;
  box-sizing: border-box;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-drawer-overlay.active .bottom-drawer-content {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.drawer-header span {
  font-size: 16px;
  font-weight: 800;
  color: #EAECEF;
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: #848E9C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.drawer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.drawer-item:active {
  transform: scale(0.95);
}

.drawer-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.drawer-label {
  font-size: 11.5px;
  color: #848E9C;
  font-weight: 700;
}

/* === MEXC SCREENSHOT MATCH OVERRIDES === */
.app-wrapper.dark-mode .menu-icon-new {
  background: transparent !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 0 !important;
}
.app-wrapper.dark-mode .menu-icon-new svg {
  width: 28px !important;
  height: 28px !important;
}

/* iPhone Home Indicator Line */
.iphone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 4.5px;
  background: #ffffff;
  border-radius: 10px;
  z-index: 1000;
  pointer-events: none;
}

/* Yellow dot overrides for slider dots in dark mode */
.app-wrapper.dark-mode .promo-dot.active {
  background: #F0B90B !important;
}

/* === WALLET/ASSETS PAGE NEW DESIGN OVERRIDES === */
.app-wrapper.dark-mode .wallet-action-btn {
  background: #181a20 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 10px 8px !important;
  font-size: 13px !important;
  transition: all 0.2s;
}

.app-wrapper.dark-mode .wallet-action-btn.primary {
  background: #F0B90B !important;
  color: #000000 !important;
  font-weight: 800 !important;
}

.app-wrapper.dark-mode .wallet-action-btn:active {
  background: #2b3139 !important;
}

.app-wrapper.dark-mode .wallet-action-btn.primary:active {
  background: #cfa00a !important;
}

/* Flat account list row overrides (removing box style) */
.app-wrapper.dark-mode .overview-account-card {
  margin: 0 16px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.2px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 0 !important;
  padding: 16px 0 !important;
  transform: none !important;
}

.app-wrapper.dark-mode .overview-account-card:last-of-type {
  border-bottom: none !important;
}

/* === PROFILE PAGE DARK MODE PREMIUM OVERRIDES === */
.app-wrapper.dark-mode #page-profile {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.app-wrapper.dark-mode .profile-header {
  background: #000000 !important;
  border-bottom: 1.2px solid rgba(255, 255, 255, 0.04) !important;
}

.app-wrapper.dark-mode .profile-user-card {
  background: transparent !important;
  border-bottom: none !important;
  padding: 16px 20px !important;
}

.app-wrapper.dark-mode .profile-username {
  color: #ffffff !important;
}

.app-wrapper.dark-mode .profile-badge.unverified {
  background: rgba(246, 70, 93, 0.12) !important;
  color: #f6465d !important;
  border: 1px solid rgba(246, 70, 93, 0.25) !important;
}

.app-wrapper.dark-mode .profile-badge.vip {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.app-wrapper.dark-mode .level-up-card {
  background: #0b0e11 !important;
  border: 1.2px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  margin: 12px 16px !important;
  padding: 16px !important;
}

.app-wrapper.dark-mode .level-up-deposit-btn {
  background: #F0B90B !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 6px 14px !important;
  font-size: 11.5px !important;
}

.app-wrapper.dark-mode .progress-bar-fill {
  background: #F0B90B !important;
}

.app-wrapper.dark-mode .security-advisory-card {
  background: rgba(240, 185, 11, 0.06) !important;
  border: 1.2px solid rgba(240, 185, 11, 0.15) !important;
  border-radius: 12px !important;
  margin: 12px 16px !important;
  padding: 12px 14px !important;
}

.app-wrapper.dark-mode .security-link {
  color: #F0B90B !important;
  font-weight: 700 !important;
}

.app-wrapper.dark-mode .profile-section-container {
  background: #0b0e11 !important;
  border: 1.2px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  margin: 16px 16px !important;
  padding: 16px !important;
}

.app-wrapper.dark-mode .profile-section-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

.app-wrapper.dark-mode .quick-icon-bg {
  background: rgba(240, 185, 11, 0.06) !important;
  border: 1px solid rgba(240, 185, 11, 0.12) !important;
  color: #F0B90B !important;
  border-radius: 12px !important;
  width: 44px !important;
  height: 44px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-wrapper.dark-mode .quick-grid-item span {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 11px !important;
}

.app-wrapper.dark-mode .quick-grid-item:hover .quick-icon-bg,
.app-wrapper.dark-mode .quick-grid-item:active .quick-icon-bg {
  background: rgba(240, 185, 11, 0.12) !important;
}

.app-wrapper.dark-mode .logout-btn {
  background: #181a20 !important;
  color: #ffffff !important;
  border: 1.2px solid rgba(255, 255, 255, 0.08) !important;
  font-weight: 700 !important;
  border-radius: 22px !important;
}

.app-wrapper.dark-mode .logout-btn svg {
  color: #f6465d !important;
}

.app-wrapper.dark-mode .logout-btn:active {
  background: #2b3139 !important;
}

.app-wrapper.dark-mode .profile-about-footer {
  border-top: 1.2px solid rgba(255, 255, 255, 0.04) !important;
  color: #5e6673 !important;
  padding: 16px 20px !important;
}

.app-wrapper.dark-mode .rate-now-link {
  color: #F0B90B !important;
  font-weight: 700 !important;
}

/* Bybit Style Vertical List Item Styling */
.profile-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1.2px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-menu-item:last-of-type {
  border-bottom: none;
}

.profile-menu-item:active {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 4px;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item-icon {
  color: #848e9c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.menu-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-item-arrow {
  color: #5e6673;
  font-size: 20px;
  line-height: 1;
}

/* ==========================================================================
   REDESIGNED PRO TRADING STYLES (SPOT & FUTURES)
   ========================================================================== */

/* Pitch-black pro theme for Spot and Futures pages */
#page-trade,
#page-futures {
  background: #080808 !important;
  color: #EAECEF;
}

/* Redesigned Sub Tabs Header */
.trade-sub-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1.5px solid #181d24 !important;
  background: #080808 !important;
  position: sticky;
  top: 0;
  z-index: 100;
}
.menu-icon-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.trade-tab-list {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}
.trade-tab-list::-webkit-scrollbar {
  display: none;
}
.trade-tab-list .trade-tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #848E9C;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.trade-tab-list .trade-tab.active {
  color: #FFFFFF !important;
  font-weight: 700;
  border-bottom: 2px solid #F0B90B !important;
}

/* Unified Main Grid Layout */
.trade-main {
  display: grid;
  grid-template-columns: 1fr 140px !important; /* Slightly wider order book */
  gap: 12px !important;
  padding: 8px 12px;
  border-bottom: 1px solid #181d24 !important;
}

/* Pair Header */
.pair-header-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pair-name-new {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.pair-name-new .dropdown-caret {
  font-size: 13px;
  color: #848E9C;
}
.pair-header-new .pair-change {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
  display: inline-block;
}
.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.mm-badge {
  border: 1px solid #0ECB81;
  color: #0ECB81;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
}
.mm-percentage {
  color: #0ECB81;
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-btn {
  background: #181d24;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EAECEF;
  cursor: pointer;
  transition: background 0.15s;
}
.header-btn:active {
  background: #2b3139;
}

/* Available row */
.avail-row-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #848E9C;
  margin-bottom: 6px;
  padding: 0 2px;
}
.avail-amount-box {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #EAECEF;
  font-weight: 600;
}
.plus-circle-btn {
  color: #F0B90B;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
}

/* Limit dropdown selector */
.limit-select-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}
.custom-select {
  width: 100%;
  padding: 8px 12px;
  background: #181d24;
  border: 1px solid #2b3139;
  border-radius: 8px;
  color: #EAECEF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.select-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #848E9C;
  font-size: 11px;
  pointer-events: none;
}

/* Input Boxes */
.custom-input-box {
  background: #181d24;
  border: 1.5px solid #2b3139;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  position: relative;
  transition: border-color 0.15s;
}
.custom-input-box:focus-within {
  border-color: #F0B90B;
}
.input-label {
  position: absolute;
  top: 4px;
  left: 12px;
  font-size: 9.5px;
  color: #848E9C;
  font-weight: 500;
  text-transform: uppercase;
}
.custom-input-field {
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  padding: 14px 0 0 0;
  text-align: left !important;
}
/* Chrome, Safari, Edge, Opera number input controls hiding */
.custom-input-field::-webkit-outer-spin-button,
.custom-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-suffix {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 10px;
  padding-left: 8px;
}
.input-suffix-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 10px;
  padding-left: 8px;
}
.swap-arrows-icon {
  color: #848E9C;
  font-size: 12px;
  cursor: pointer;
}

.fiat-valuation {
  font-size: 11px;
  color: #848E9C;
  padding: 3px 4px 10px;
  text-align: left;
}

/* Custom Dots Slider */
.custom-slider-outer {
  padding: 4px 6px 12px;
}
.custom-slider-container {
  position: relative;
  width: 100%;
  height: 12px;
  display: flex;
  align-items: center;
}
.custom-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #2b3139;
  z-index: 1;
}
.custom-slider-fill {
  position: absolute;
  left: 0;
  height: 2px;
  background: #0ECB81; /* Default to buy green */
  z-index: 2;
  width: 0%;
}
.custom-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  z-index: 3;
}
.custom-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #181d24;
  border: 2px solid #2b3139;
  box-sizing: content-box;
  transition: all 0.15s;
}
.custom-slider-dot.active {
  background: #0ECB81;
  border-color: #0ECB81;
}
.custom-slider-input {
  position: absolute;
  width: 100%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  z-index: 4;
  margin: 0;
  cursor: pointer;
  outline: none;
}
.custom-slider-input::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
}
.custom-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #0ECB81;
  cursor: pointer;
  margin-top: -5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: border-color 0.15s;
}

/* Sell mode styles for slider elements */
.sell-mode-slider .custom-slider-fill {
  background: #F6465D !important;
}
.sell-mode-slider .custom-slider-dot.active {
  background: #F6465D !important;
  border-color: #F6465D !important;
}
.sell-mode-slider .custom-slider-input::-webkit-slider-thumb {
  border-color: #F6465D !important;
}

/* Max Buy Row */
.max-buy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #848E9C;
  margin: 8px 0;
  padding: 0 2px;
}
.max-buy-value {
  color: #EAECEF;
  font-weight: 600;
}

/* Redesigned Checkboxes */
.checkbox-row-new {
  display: flex;
  align-items: center;
  padding: 4px 2px;
  font-size: 11.5px;
  color: #848E9C;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.custom-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid #5E6673;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.custom-checkbox:checked {
  background: #F0B90B;
  border-color: #F0B90B;
}
.custom-checkbox:checked::after {
  content: "✓";
  color: #000000;
  font-size: 10px;
  font-weight: 800;
}
.checkbox-item label {
  cursor: pointer;
  font-weight: 500;
}
.gtc-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #EAECEF;
  font-weight: 600;
  cursor: pointer;
}
.caret-down-mini {
  font-size: 10px;
  color: #848E9C;
}

/* Stacked action buttons */
.open-long-btn {
  background: #0ECB81 !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 10px !important;
  margin-bottom: 8px !important;
}
.open-short-btn {
  background: #F6465D !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 10px !important;
  margin-bottom: 0 !important;
}

/* Order Book Pro Redesign */
.order-book-header-new {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #848E9C;
  font-weight: 600;
  padding: 2px 4px 6px;
  border-bottom: 1px solid #181d24;
}
.ob-hdr-qty {
  text-align: right;
}
.current-price-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  border-top: 1px solid #181d24;
  border-bottom: 1px solid #181d24;
  margin: 3px 0;
}
.cp-price-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.cp-price-val {
  font-size: 15px;
  font-weight: 800;
}
.cp-price-val.positive {
  color: #0ECB81;
}
.cp-price-val.negative {
  color: #F6465D;
}
.cp-price-fiat {
  font-size: 9.5px;
  color: #848E9C;
  font-weight: 500;
}
.cp-price-sub {
  font-size: 9.5px;
  color: #848E9C;
  font-weight: 500;
}
.cp-arrow {
  color: #848E9C;
  font-size: 12px;
  font-weight: 700;
}
.ob-ratio-pill {
  display: flex;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 4px;
  font-size: 8px;
  font-weight: 700;
}
.ob-ratio-fill {
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: #FFFFFF;
}
.ob-ratio-fill.buy-fill {
  background: rgba(14, 203, 129, 0.4);
  justify-content: flex-start;
  border-right: 1px solid #080808;
}
.ob-ratio-fill.sell-fill {
  background: rgba(246, 70, 93, 0.4);
  justify-content: flex-end;
}
.orderbook-footer-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 0;
  margin-top: 4px;
}
.precision-select {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #181d24;
  color: #EAECEF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.precision-caret {
  font-size: 9px;
  color: #848E9C;
}
.ob-layout-icons {
  display: flex;
  align-items: center;
  color: #848E9C;
  cursor: pointer;
}

/* Futures Specific Styles */
.futures-selectors-new {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.futures-select-wrapper {
  position: relative;
  flex: 1;
}
.custom-select-mini {
  width: 100%;
  padding: 6px 10px;
  background: #181d24;
  border: 1px solid #2b3139;
  border-radius: 6px;
  color: #EAECEF;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.futures-details-panel {
  background: rgba(24, 29, 36, 0.4);
  border: 1px solid #181d24;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 12px 0 8px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 6px;
}
.detail-row:last-child {
  margin-bottom: 0;
}
.detail-lbl {
  color: #848E9C;
}
.detail-val {
  color: #EAECEF;
  font-weight: 600;
}
.detail-val.highlight-val {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 700;
}
.funding-rate-new {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 9px;
  color: #848E9C;
  padding: 2px 4px 6px;
  line-height: 1.3;
}
.funding-rate-value {
  color: #EAECEF;
  font-weight: 600;
  margin-top: 1px;
}

/* Bottom Trade Tabs Section (Orders, Positions, Assets, Borrowing) */
.bottom-trade-tabs-section {
  padding: 12px;
  background: #080808;
  margin-top: 4px;
}
.bottom-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #181d24;
  padding-bottom: 8px;
}
.bottom-tabs-list {
  display: flex;
  gap: 16px;
}
.bottom-tabs-list .b-tab {
  font-size: 13.5px;
  font-weight: 600;
  color: #848E9C;
  cursor: pointer;
  padding: 2px 0;
  position: relative;
  transition: color 0.15s;
}
.bottom-tabs-list .b-tab.active {
  color: #FFFFFF;
}
.bottom-tabs-list .b-tab.active::after {
  content: "";
  position: absolute;
  bottom: -9.5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #F0B90B;
}
.bottom-tabs-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #848E9C;
}
.tab-control-icon {
  cursor: pointer;
  transition: color 0.15s;
}
.tab-control-icon:hover {
  color: #FFFFFF;
}
.bottom-tabs-filter-bar {
  display: flex;
  align-items: center;
  padding: 8px 2px;
  font-size: 11.5px;
  color: #848E9C;
  gap: 12px;
}
.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.filter-dropdown-item {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #EAECEF;
  font-weight: 600;
  cursor: pointer;
}
.sort-icon-btn {
  margin-left: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #EAECEF;
}
.bottom-tabs-content-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  color: #5E6673;
  font-size: 12.5px;
  font-weight: 500;
}
.empty-orders-text {
  text-align: center;
}

/* ==========================================================================
   REDESIGNED AUTH PORTAL STYLE (LOGIN & SIGNUP MOCKUPS)
   ========================================================================== */

#auth-portal-overlay {
  background: #080808 !important;
  color: #EAECEF;
}

.auth-container {
  max-width: 480px !important;
  width: 100%;
  margin: 0 auto;
  padding: 16px 20px;
  background: #080808 !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Header style */
.auth-header-new {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0;
}
.auth-close-btn-new {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.15s;
}
.auth-close-btn-new:active {
  background: #181d24;
}

/* Title section with 3D Graphic */
.auth-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 24px;
  gap: 16px;
}
.title-left {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}
.auth-title-text {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  line-height: 1.1;
}
.auth-subtitle-text {
  font-size: 13px;
  color: #848E9C;
  line-height: 1.4;
  margin: 0;
}
.title-right {
  flex-shrink: 0;
}
.auth-top-graphic {
  width: 145px;
  height: 145px;
  object-fit: contain;
  filter: drop-shadow(0px 8px 32px rgba(240, 185, 11, 0.25));
  margin-top: -15px;
}

/* Form Styles */
.auth-form-new {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.auth-input-group-new {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.auth-input-label-new {
  font-size: 13.5px;
  font-weight: 600;
  color: #EAECEF;
  margin-bottom: 8px;
  text-align: left;
}
.auth-input-box-new {
  display: flex;
  align-items: center;
  background: #181d24;
  border: 1.5px solid #2b3139;
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color 0.15s;
}
.auth-input-box-new:focus-within {
  border-color: #F0B90B;
}
.auth-input-icon-new {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-input-field-new {
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  width: 100%;
  padding: 0;
}
.auth-input-field-new::placeholder {
  color: #5E6673;
}
.auth-input-action-new {
  margin-left: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #848E9C;
}
.auth-input-hint-new {
  font-size: 11.5px;
  color: #848E9C;
  text-align: left;
  margin: 6px 0 0 2px;
  line-height: 1.3;
}
.forgot-pass-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.forgot-pass-btn {
  font-size: 13px;
  font-weight: 600;
  color: #F0B90B;
  cursor: pointer;
}

/* Checkbox alignment */
.auth-checkbox-row-new {
  display: flex;
  align-items: flex-start;
  margin-top: 12px;
  text-align: left;
}
.auth-checkbox-label-new {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  width: 100%;
}
.custom-checkbox-auth {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid #5E6673;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.custom-checkbox-auth:checked {
  background: #F0B90B;
  border-color: #F0B90B;
}
.custom-checkbox-auth:checked::after {
  content: "✓";
  color: #000000;
  font-size: 11px;
  font-weight: 800;
}
.auth-checkbox-text-new {
  font-size: 12.5px;
  color: #848E9C;
  line-height: 1.4;
}
.yellow-link {
  color: #F0B90B;
  text-decoration: none;
  font-weight: 600;
}
.yellow-link:hover {
  text-decoration: underline;
}

/* Submit Action Button */
.auth-submit-btn-new {
  width: 100%;
  padding: 12.5px;
  background: #F0B90B;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 24px;
  font-family: inherit;
  transition: opacity 0.15s;
}
.auth-submit-btn-new:active {
  opacity: 0.85;
}

/* Social continues section */
.auth-divider-new {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: #2b3139;
}
.divider-text {
  font-size: 11.5px;
  color: #848E9C;
}
.auth-social-btn-new {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #181d24;
  border: 1.5px solid #2b3139;
  border-radius: 8px;
  padding: 12px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.15s;
}
.auth-social-btn-new:active {
  background: #2b3139;
}
.social-icon {
  flex-shrink: 0;
}

/* Footer switches */
.auth-footer-link-new {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  font-size: 13.5px;
  color: #EAECEF;
}

/* Web Push Notification Permission Popup */
.push-popup-overlay {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  width: calc(100% - 48px);
  max-width: 380px;
  animation: slideUpPushPopup 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpPushPopup {
  from {
    transform: translateY(120%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.push-popup-card {
  position: relative;
  background: rgba(24, 29, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  box-sizing: border-box;
}

.push-popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  color: #848E9C;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.push-popup-close:hover {
  color: #ffffff;
}

.push-popup-icon-wrapper {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(240, 185, 11, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 185, 11, 0.2);
  box-shadow: 0 0 15px rgba(240, 185, 11, 0.15);
}

.push-popup-icon-wrapper svg {
  width: 26px;
  height: 26px;
  animation: ringBell 2s infinite ease-in-out;
}

@keyframes ringBell {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(15deg); }
  20%, 40% { transform: rotate(-15deg); }
  50% { transform: rotate(0); }
}

.push-popup-title {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.push-popup-desc {
  margin: 0 0 16px 0;
  font-size: 12.5px;
  color: #848E9C;
  line-height: 1.4;
}

.push-popup-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.push-popup-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #EAECEF;
  line-height: 1.4;
}

.benefit-bullet {
  color: #F0B90B;
  font-weight: bold;
  flex-shrink: 0;
}

.push-popup-actions {
  display: flex;
  gap: 12px;
}

.push-btn-later {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: #EAECEF;
  border-radius: 12px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.push-btn-later:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.push-btn-allow {
  flex: 1;
  background: #F0B90B;
  border: none;
  color: #000000;
  border-radius: 12px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(240, 185, 11, 0.2);
}

.push-btn-allow:hover {
  opacity: 0.9;
}

/* Mobile-only styling adjustments */
@media (max-width: 480px) {
  .push-popup-overlay {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }
  .push-popup-card {
    padding: 20px;
    border-radius: 16px;
  }
}