/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
button, a {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
button:focus, button:active, button:focus-visible,
a:focus, a:active, a:focus-visible { outline: none; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #1a1a1a;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.top-navbar {
  background: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s;
}

.connect-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #1a1a1a;
  border-radius: 50px;
  padding: 8px 18px;
  background: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.connect-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

.wallet-icon {
  width: 28px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.guest-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-login-btn {
  border: 1.5px solid #1a1a1a;
  border-radius: 50px;
  padding: 8px 18px;
  background: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  color: #1a1a1a;
}

.account-login-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

.connected-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #16a34a;
  border-radius: 50px;
  padding: 8px 16px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #16a34a;
  transition: all 0.2s;
}

.connected-btn:hover {
  background: #16a34a;
  color: #fff;
}

.connected-btn:hover .connected-dot {
  background: #fff;
}

.connected-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 0 0 90px 0;
  background: #f5f5f5;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  padding: 20px 20px 14px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 20px;
  width: 36px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
}

/* ===== COIN TICKER STRIP ===== */
.coin-ticker-wrap {
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
  margin-bottom: 4px;
}
.coin-ticker {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
  will-change: transform;
}
.coin-ticker:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  border-right: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.ticker-item:last-child { border-right: none; }
.ticker-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.ticker-sym { color: #1a1a1a; }
.ticker-chg { font-size: 12px; font-weight: 700; }
.ticker-chg.pos { color: #27ae60; }
.ticker-chg.neg { color: #e63946; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== EXPLORE SECTION ===== */
.explore-section {
  padding: 18px 0 6px;
}
.explore-title {
  font-size: 17px; font-weight: 800; color: #1a1a1a;
  padding: 0 16px; margin-bottom: 14px;
}
.explore-slider-wrap {
  overflow: hidden;
  padding: 0 0 8px 16px;
}
.explore-slider {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: exploreScroll 22s linear infinite;
  will-change: transform;
}
.explore-slider:hover { animation-play-state: paused; }
@keyframes exploreScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.explore-coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 50px;
  padding: 8px 14px 8px 8px;
  border: 1.5px solid #f0f0f0;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.explore-coin-chip:hover {
  border-color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
  animation-play-state: paused;
}
.chip-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.chip-sym {
  font-size: 14px; font-weight: 700; color: #1a1a1a;
}

/* ===== BANNER / HERO ===== */
.hero-banner {
  margin: 0 16px 20px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 20px;
  min-height: 200px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: relative;
}

.banner-text {
  flex: 1;
  z-index: 2;
}

.banner-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: #e63946;
  line-height: 1.1;
  margin-bottom: 12px;
  font-style: italic;
}

.banner-text p {
  font-size: 14px;
  color: #444;
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 170px;
}

.earn-btn {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.earn-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.banner-phone {
  flex-shrink: 0;
  margin-left: 8px;
  z-index: 2;
}

.phone-mockup {
  width: 155px;
  height: 190px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 26px;
  border: 3px solid #2a2a2a;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

.phone-top-bar {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-top-bar span {
  font-size: 9px;
  color: #fff;
  font-weight: 500;
}

.phone-price-badge {
  background: #e63946;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 8px;
  color: #fff;
  font-weight: 700;
}

.chart-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.phone-chart-svg {
  width: 100%;
  height: 100%;
}

.phone-stats {
  display: flex;
  justify-content: space-between;
  padding: 4px 2px 0;
}

.phone-stat {
  font-size: 8px;
  color: rgba(255,255,255,0.7);
}

.phone-stat span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

.phone-stat .negative {
  color: #e63946;
}

.phone-stat .positive {
  color: #4caf50;
}

/* ===== COIN GRID ===== */
.coins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px;
}

/* ===== COIN CARD ===== */
.coin-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.coin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.coin-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.coin-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.coin-currency {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.coin-chart {
  height: 60px;
  width: 100%;
  margin: 8px 0 10px;
}

.coin-chart svg {
  width: 100%;
  height: 100%;
}

.coin-footer {
  margin-top: 2px;
}

.coin-price {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.coin-change {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.coin-change.positive {
  color: #4caf50;
}

.coin-change.negative {
  color: #e63946;
}

.coin-change .arrow {
  font-size: 11px;
}

/* ===== ACTION BUTTONS ===== */
.coin-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.btn-buy-up {
  flex: 1;
  background: #00bfa5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-buy-down {
  flex: 1;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-buy-up:hover,
.btn-buy-down:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px env(safe-area-inset-bottom, 12px);
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #bbb;
  font-size: 10px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 4px 2px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:focus,
.nav-item:active,
.nav-item:focus-visible {
  outline: none;
  background: none;
  color: #bbb;
}
.nav-item.active { color: #1a1a1a; }
.nav-item.active:focus,
.nav-item.active:active { color: #1a1a1a; }

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.nav-item span {
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}


/* ===== PARTNERS & WITHDRAWAL SECTIONS ===== */
.info-section {
  margin: 0 16px 24px;
  padding: 24px 20px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #f0f0f0;
  text-align: center;
}
.info-title {
  font-size: 20px; font-weight: 800; color: #1a1a1a;
  margin-bottom: 20px; letter-spacing: -0.3px;
}
.info-sub {
  font-size: 13px; color: #999; line-height: 1.6;
  margin-bottom: 22px; max-width: 260px; margin-left: auto; margin-right: auto;
}

/* Partners row */
.partners-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.partner-item {
  display: flex; align-items: center; justify-content: center;
  padding: 6px 8px;
}
.partner-item svg { display: block; }

/* TradingView text logo */
.tv-logo { font-size: 13px; font-weight: 900; color: #131722; letter-spacing: -0.5px; }

/* FXStreet */
.partner-fx { gap: 0; }
.fx-t { font-size: 16px; font-weight: 900; color: #e63946; letter-spacing: -1px; }
.fx-s { font-size: 13px; font-weight: 800; color: #1a1a1a; letter-spacing: 1px; }

/* Trading Central */
.tc-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: #003087; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; line-height: 1.1;
}
.tc-circle span { font-size: 6.5px; font-weight: 800; letter-spacing: 0.3px; }

/* Investing.com */
.inv-text { font-size: 15px; font-weight: 800; color: #e63946; }
.inv-dot  { font-size: 13px; color: #1a1a1a; font-weight: 600; }

/* TradingView pill */
.tv-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 800; color: #131722;
}
.tv-pill-icon {
  width: 20px; height: 20px; background: #131722; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 900;
}

/* Payment grid */
.payment-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; margin-bottom: 16px;
}
.payment-item {
  border: 1.5px solid #e8e8e8; border-radius: 12px;
  padding: 12px 8px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px;
}

/* VISA */
.visa-text {
  font-size: 22px; font-weight: 900; color: #1a1a6e;
  font-style: italic; letter-spacing: -1px;
}

/* Mastercard */
.mc-item { gap: 8px; }
.mc-circles { display: flex; position: relative; width: 36px; }
.mc-red    { width: 22px; height: 22px; border-radius: 50%; background: #eb001b; }
.mc-orange { width: 22px; height: 22px; border-radius: 50%; background: #f79e1b; margin-left: -10px; mix-blend-mode: multiply; }
.mc-text { font-size: 10px; font-weight: 700; color: #231f20; }

/* PayiD */
.payid-pay { font-size: 15px; font-weight: 800; color: #f26522; }
.payid-id  { font-size: 15px; font-weight: 900; color: #003087; background: #003087; color: #fff; border-radius: 4px; padding: 0 3px; }

/* Skrill */
.skrill-text { font-size: 18px; font-weight: 900; color: #8b008b; font-style: italic; }

/* Neteller */
.neteller-text { font-size: 14px; font-weight: 900; color: #1a1a1a; letter-spacing: -0.5px; }
.neteller-dot  { color: #e63946; }

/* Bank Transfer */
.bank-item { flex-direction: column; gap: 4px; }
.bank-item span { font-size: 9px; font-weight: 800; color: #1a1a1a; letter-spacing: 0.5px; line-height: 1.2; text-align: center; }
.bank-item svg { color: #1a1a1a; }

.payment-note {
  font-size: 11px; color: #bbb; text-align: left; line-height: 1.5; margin: 0;
}

/* ===== HOME FAB (legacy, kept for compat) ===== */
.home-fab {
  width: 54px;
  height: 54px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  margin-bottom: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  flex: 0 0 auto;
  text-decoration: none;
}

.home-fab svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== SUPPORT BUBBLE ===== */
.support-bubble {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  cursor: pointer;
  z-index: 99;
  border: 2px solid #e9ecef;
  transition: transform 0.2s;
}

.support-bubble:hover {
  transform: scale(1.1);
}

.support-bubble svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #1a90ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== SIDEBAR DRAWER ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  height: 100dvh;
  background: #f7f7f8;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 4px 0 24px rgba(0,0,0,0.13);
}

.sidebar.open {
  transform: translateX(0);
}

/* Close button */
.sidebar-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.sidebar-close:hover {
  background: #eee;
  color: #333;
}

/* ===== SIDEBAR PROFILE ===== */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 22px;
  background: #f0f0f2;
  border-bottom: 1px solid #e5e5e8;
}

.sidebar-guest {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 22px;
  background: #f0f0f2;
  border-bottom: 1px solid #e5e5e8;
}

.sidebar-guest-info {
  flex: 1;
}

.sidebar-guest-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.sidebar-guest-btns {
  display: flex;
  gap: 8px;
}

.sidebar-guest-btns button {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.sidebar-guest-btns button:first-child {
  background: #1a1a1a;
  color: #fff;
}

.sidebar-guest-btns button:last-child {
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
}

.sidebar-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c63ff, #3f51b5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(99,102,241,0.3);
}

.sidebar-avatar svg {
  width: 28px;
  height: 28px;
}

.avatar-flag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1.5px solid #f0f0f2;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-email {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.vip-badge {
  background: linear-gradient(90deg, #f5a623, #f7c948);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}

.sidebar-id {
  font-size: 13px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.copy-id-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 0;
  display: flex;
  align-items: center;
}

.copy-id-btn svg {
  width: 14px;
  height: 14px;
}

.copy-id-btn:hover {
  color: #333;
}

.sidebar-credit {
  font-size: 12px;
  color: #999;
}

/* ===== SIDEBAR NAV ===== */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 20px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  transition: background 0.18s;
  position: relative;
}

.sidebar-item:hover {
  background: #ececec;
}

.sidebar-item.active {
  color: #1a1a1a;
  font-weight: 700;
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3.5px;
  background: #1a1a1a;
  border-radius: 0 3px 3px 0;
}

.sidebar-icon {
  width: 36px;
  height: 36px;
  background: #ebebeb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}

.sidebar-item:hover .sidebar-icon {
  background: #ddd;
}

.sidebar-icon svg {
  width: 18px;
  height: 18px;
  stroke: #555;
}

.sidebar-item.active .sidebar-icon {
  background: #1a1a1a;
}

.sidebar-item.active .sidebar-icon svg {
  stroke: #fff;
}

.sidebar-divider {
  height: 1px;
  background: #e5e5e8;
  margin: 6px 20px;
}

.sidebar-scroll-hint {
  height: 20px;
  background: linear-gradient(to top, #f7f7f8, transparent);
  pointer-events: none;
  margin-top: -20px;
}

/* ===== LANGUAGE ITEM ===== */
.sidebar-item-lang {
  justify-content: flex-start;
}

.lang-label {
  flex: 1;
}

.lang-flag {
  font-size: 20px;
  margin-left: auto;
  line-height: 1;
}

/* ===== SIGN OUT ITEM ===== */
.sidebar-item-signout {
  color: #e63946;
}

.sidebar-item-signout:hover {
  background: #ffeaec;
}

.sidebar-icon-signout {
  background: #ffeaec !important;
}

.sidebar-icon-signout svg {
  stroke: #e63946 !important;
}

.sidebar-item-signout:hover .sidebar-icon-signout {
  background: #ffd0d3 !important;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== LANGUAGE PICKER MODAL ===== */
.lang-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .lang-modal {
  transform: translateY(0);
}

.lang-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.lang-modal-header button {
  background: none;
  border: none;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.lang-modal-header button:hover {
  background: #f0f0f0;
}

.lang-list {
  padding: 8px 0 24px;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  background: none;
  border: none;
  font-size: 15px;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s;
  position: relative;
}
.lang-native {
  flex: 1;
  font-size: 15px;
  color: #1a1a1a;
}

.lang-option:hover {
  background: #f5f5f5;
}

.lang-option.active {
  font-weight: 700;
  color: #1a1a1a;
}

.lang-opt-flag {
  font-size: 22px;
  line-height: 1;
}

.lang-check {
  margin-left: auto;
  color: #4caf50;
  font-size: 16px;
  font-weight: 700;
}

/* ===== SIGN OUT CONFIRM MODAL ===== */
.confirm-modal {
  background: #fff;
  width: calc(100% - 48px);
  max-width: 320px;
  border-radius: 20px;
  padding: 28px 24px 22px;
  text-align: center;
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  margin-bottom: 0;
}

.modal-overlay.active .confirm-modal {
  transform: scale(1);
  opacity: 1;
}

/* center sign-out modal vertically */
#signOutModalOverlay {
  align-items: center;
}

.confirm-icon {
  width: 60px;
  height: 60px;
  background: #ffeaec;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-icon svg {
  width: 28px;
  height: 28px;
}

.confirm-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.confirm-desc {
  font-size: 14px;
  color: #777;
  margin-bottom: 22px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-cancel {
  flex: 1;
  padding: 13px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: background 0.2s;
}

.confirm-cancel:hover {
  background: #f5f5f5;
}

.confirm-ok {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: #e63946;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.confirm-ok:hover {
  background: #c62828;
  transform: translateY(-1px);
}

/* Hamburger active state (X) when sidebar open */
.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
  .coins-grid {
    gap: 10px;
    padding: 0 12px;
  }
  .hero-banner {
    margin: 0 12px 16px;
  }
  .banner-text h2 {
    font-size: 22px;
  }
  .phone-mockup {
    width: 130px;
    height: 165px;
  }
}

#navLoader { display: none !important; }
.nav-loader-spinner { display: none !important; }
