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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
[data-theme="light"] {
  --bg: #f5f5f5;
  --bg2: #ffffff;
  --bg3: #efefef;
  --border: #e0e0e0;
  --border2: #cccccc;
  --text: #111111;
  --text2: #444444;
  --text3: #888888;
  --yellow: #d4a017;
  --green: #0a9e63;
  --red: #d9354a;
}
:root {
  --bg: #0b0e11;
  --bg2: #1e2329;
  --bg3: #2b3139;
  --border: #2b3139;
  --border2: #363c45;
  --text: #eaecef;
  --text2: #848e9c;
  --text3: #474d57;
  --yellow: #f0b90b;
  --yellow2: #d4a309;
  --green: #0ecb81;
  --red: #f6465d;
  --blue: #3b82f6;
  --purple: #8b5cf6;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page,
.auth-wrapper,
.verify-wrapper {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.bottom-nav {
  max-width: 480px;
}

@media (min-width: 481px) {
  body {
    background: var(
      --body-bg,
      linear-gradient(135deg, #050709 0%, #0b0e11 100%)
    );
  }

  .page,
  .auth-wrapper,
  .verify-wrapper {
    background: var(--bg);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.15);
    min-height: 100vh;
  }
}

[data-theme="light"] body {
  background: #e8eaed !important;
}
[data-theme="light"] .page,
[data-theme="light"] .auth-wrapper,
[data-theme="light"] .verify-wrapper {
  background: #f5f5f5 !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .pc-nav {
  background: #ffffff !important;
  border-bottom: 1px solid #e0e0e0 !important;
}
[data-theme="light"] .pc-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e0e0e0 !important;
}
[data-theme="light"] .pc-sidebar-link {
  color: #444444 !important;
}
[data-theme="light"] .pc-sidebar-link:hover {
  background: #f0f0f0 !important;
  color: #111 !important;
}
[data-theme="light"] .pc-sidebar-link.active {
  background: rgba(212, 160, 23, 0.12) !important;
  color: #d4a017 !important;
}
[data-theme="light"] .listing-card {
  background: #ffffff !important;
  border-bottom: 1px solid #e0e0e0 !important;
}
[data-theme="light"] .listing-card:hover {
  background: #f5f5f5 !important;
}
[data-theme="light"] .net-card {
  border-color: #e0e0e0 !important;
  background: #ffffff !important;
}
[data-theme="light"] .net-card:hover {
  border-color: #d4a017 !important;
  background: #fafafa !important;
}
[data-theme="light"] .dep-coin-row {
  border-bottom: 1px solid #e8e8e8 !important;
}
[data-theme="light"] .dep-coin-row:hover {
  background: #f5f5f5 !important;
}
[data-theme="light"] .timer-box {
  background: rgba(212, 160, 23, 0.1) !important;
  border-color: rgba(212, 160, 23, 0.3) !important;
}
[data-theme="light"] .badge-grey {
  background: #e8e8e8 !important;
  color: #444 !important;
}
[data-theme="light"] canvas#bg-canvas {
  opacity: 0.02 !important;
}

/* PC layout — remove mobile constraints */
@media (min-width: 768px) {
  body.has-pc-nav {
    max-width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden;
  }
  body.has-pc-nav .page {
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  body.has-pc-nav .bottom-nav {
    max-width: 100%;
  }
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 0;
}

/* ---- AUTH ---- */
.auth-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
}
@media (max-height: 700px) {
  .auth-wrapper {
    padding: 16px 20px;
  }
  .auth-logo {
    margin-bottom: 20px;
  }
  .trust-badges {
    margin-top: 16px;
    padding-top: 14px;
  }
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.auth-logo span {
  font-size: 24px;
  font-weight: 900;
  color: var(--yellow);
}

.auth-tabs {
  display: flex;
  background: var(--bg2);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--yellow);
  color: #000;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus {
  border-color: var(--yellow);
  background: var(--bg2);
}

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

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--yellow);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 15px;
  font-weight: 800;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.btn-primary:active {
  transform: scale(0.98);
  background: var(--yellow2);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}

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

.auth-link {
  text-align: center;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  padding: 8px;
}

.auth-link span {
  color: var(--yellow);
  font-weight: 600;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

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

/* ---- TOP BAR ---- */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--yellow);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kyc-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.kyc-badge.none {
  background: rgba(246, 70, 93, 0.1);
  color: var(--red);
  border: 1px solid rgba(246, 70, 93, 0.2);
}

.kyc-badge.pending {
  background: rgba(240, 185, 11, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(240, 185, 11, 0.2);
}

.kyc-badge.approved {
  background: rgba(14, 203, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(14, 203, 129, 0.2);
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 60px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--text3);
  font-family: "Inter", sans-serif;
  transition: all 0.2s;
  flex: 1;
}

.nav-item.active {
  color: var(--yellow);
}
.nav-item.active .nav-icon {
  transform: scale(1.1);
}
.nav-icon {
  font-size: 22px;
  transition: transform 0.2s;
}
.nav-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- PAGE ---- */
.page {
  min-height: 100vh;
  padding-bottom: 75px;
  position: relative;
  z-index: 1;
}

/* ---- CARDS ---- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

/* ---- VERIFY PAGE ---- */
.verify-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.verify-icon {
  font-size: 60px;
  margin-bottom: 20px;
}
.verify-wrapper h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.verify-wrapper p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ---- DIVIDER ---- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* ---- SECTION TITLE ---- */
.section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ---- TOAST ---- */
#toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 440px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.toast-show {
  transform: translateY(0);
  opacity: 1;
}
.toast-hide {
  transform: translateY(20px);
  opacity: 0;
}
.toast-success {
  border-left: 3px solid var(--green);
}
.toast-error {
  border-left: 3px solid var(--red);
}
.toast-info {
  border-left: 3px solid var(--blue);
}
.toast-warning {
  border-left: 3px solid var(--yellow);
}
.toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.toast-message {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.toast-close {
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--yellow);
  animation: progress 4s linear forwards;
}

@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* ---- STATUS BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-green {
  background: rgba(14, 203, 129, 0.1);
  color: var(--green);
}
.badge-red {
  background: rgba(246, 70, 93, 0.1);
  color: var(--red);
}
.badge-yellow {
  background: rgba(240, 185, 11, 0.1);
  color: var(--yellow);
}
.badge-grey {
  background: var(--bg3);
  color: var(--text2);
}

/* ---- INPUT WITH LABEL ---- */
.input-row {
  display: flex;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  gap: 10px;
  margin-bottom: 12px;
}

.input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  outline: none;
}

.input-row input::placeholder {
  color: var(--text3);
}
.input-row .input-suffix {
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
}

/* ---- TABS ---- */
.tabs {
  display: flex;
  background: var(--bg2);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.tab.active {
  background: var(--yellow);
  color: #000;
}

/* ---- ONLINE/OFFLINE ---- */
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.online-dot.online {
  background: var(--green);
}
.online-dot.offline {
  background: var(--text3);
}

/* ---- VERIFIED BADGE ---- */
.verified-icon {
  color: var(--yellow);
  font-size: 13px;
}

/* ---- LISTING CARD ---- */
.listing-card {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
  active: background var(--bg3);
}

.listing-card:active {
  background: var(--bg3);
}

/* ---- DEPOSIT COIN ROWS ---- */
.dep-coin-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.dep-coin-row:last-child {
  border-bottom: none;
}
.dep-coin-row:hover {
  background: var(--bg3);
}
.dep-coin-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
}
.dep-coin-symbol {
  font-weight: 700;
  font-size: 14px;
}
.dep-coin-name {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}
.dep-coin-nets {
  margin-left: auto;
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
}

/* ---- NETWORK CARDS ---- */
.net-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.net-card:hover {
  border-color: var(--yellow);
  background: var(--bg3);
}
.net-key {
  font-weight: 800;
  font-size: 15px;
}
.net-name {
  font-size: 12px;
  color: var(--text2);
  margin-top: 3px;
}
.net-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text3);
}

/* ---- ORDER TYPE ---- */
.order-type {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.order-type.buy {
  background: rgba(14, 203, 129, 0.1);
  color: var(--green);
}
.order-type.sell {
  background: rgba(246, 70, 93, 0.1);
  color: var(--red);
}

/* ---- TIMER ---- */
.timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(246, 70, 93, 0.08);
  border: 1px solid rgba(246, 70, 93, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.timer-icon {
  font-size: 18px;
}
.timer-text {
  font-size: 13px;
  color: var(--text2);
  flex: 1;
}
.timer-count {
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

/* ---- CHAT ---- */
.chat-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.chat-messages {
  height: 200px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-msg.mine {
  background: var(--yellow);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-msg.theirs {
  background: var(--bg3);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

.chat-input-row input {
  flex: 1;
  background: var(--bg3);
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: "Inter", sans-serif;
  outline: none;
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- BALANCE COUNTER ---- */
.balance-total {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.balance-change {
  font-size: 13px;
  font-weight: 600;
}

.balance-change.up {
  color: var(--green);
}
.balance-change.down {
  color: var(--red);
}

/* ---- MARKET TICKER ---- */
.ticker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.ticker-item:last-child {
  border-bottom: none;
}

.ticker-coin {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.coin-icon.btc {
  background: rgba(240, 185, 11, 0.15);
  color: var(--yellow);
}
.coin-icon.usdt {
  background: rgba(14, 203, 129, 0.15);
  color: var(--green);
}
.coin-icon.eth {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}
.coin-icon.bnb {
  background: rgba(240, 185, 11, 0.15);
  color: var(--yellow);
}
.coin-icon.sol {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}
.coin-icon.xrp {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

.coin-name {
  font-size: 14px;
  font-weight: 700;
}
.coin-fullname {
  font-size: 11px;
  color: var(--text2);
}
.ticker-price {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}
.ticker-change {
  font-size: 12px;
  font-weight: 600;
}
.ticker-change.up {
  color: var(--green);
}
.ticker-change.down {
  color: var(--red);
}

/* ---- KYC PAGE ---- */
.kyc-step {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.kyc-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(240, 185, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kyc-step-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.kyc-step-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}

/* ---- FILE UPLOAD ---- */
.file-upload {
  border: 2px dashed var(--border2);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.file-upload:active {
  border-color: var(--yellow);
  background: rgba(240, 185, 11, 0.03);
}
.file-upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.file-upload-text {
  font-size: 13px;
  color: var(--text2);
}
.file-upload-text span {
  color: var(--yellow);
  font-weight: 600;
}

/* ---- MERCHANT PAGE ---- */
.merchant-req {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}

.merchant-req-icon {
  font-size: 22px;
  width: 36px;
  text-align: center;
}
.merchant-req-text {
  font-size: 13px;
  font-weight: 600;
}
.merchant-req-status {
  margin-left: auto;
  font-size: 18px;
}
/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

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

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

.modal-title {
  font-size: 16px;
  font-weight: 800;
}
.modal-close {
  font-size: 18px;
  color: var(--text2);
  cursor: pointer;
  padding: 4px 8px;
}

.modal-list {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 16px;
}

.modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-item:active {
  background: var(--bg3);
}
.crypto-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.crypto-pill.active {
  background: rgba(240, 185, 11, 0.1);
  border-color: var(--yellow);
  color: var(--yellow);
}
/* ---- PROFILE MENU ---- */
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.profile-menu-item:last-child {
  border-bottom: none;
}
.profile-menu-item:active {
  background: var(--bg3);
}

.profile-menu-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}
.profile-menu-text {
  flex: 1;
}
.profile-menu-title {
  font-size: 14px;
  font-weight: 700;
}
.profile-menu-sub {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}
.profile-menu-arrow {
  font-size: 18px;
  color: var(--text3);
}
.profile-menu-status {
  font-size: 14px;
}

/* ---- MERCHANT GLOW CARD ---- */
.merchant-glow-card {
  background: linear-gradient(
    135deg,
    rgba(240, 185, 11, 0.15),
    rgba(139, 92, 246, 0.1)
  );
  border: 1px solid rgba(240, 185, 11, 0.3);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(240, 185, 11, 0.15);
  animation: glowPulse 3s ease-in-out infinite;
  transition: transform 0.2s;
}

.merchant-glow-card:active {
  transform: scale(0.98);
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.1);
  }
  50% {
    box-shadow: 0 0 35px rgba(240, 185, 11, 0.25);
  }
}

/* ---- FORM SELECT ---- */
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  outline: none;
}

.form-group select:focus {
  border-color: var(--yellow);
}
.form-group select option {
  background: var(--bg2);
}
.payment-info-box {
  background: rgba(240, 185, 11, 0.05);
  border: 1px solid rgba(240, 185, 11, 0.15);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.payment-info-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 10px;
}
.payment-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.payment-info-row:last-child {
  border-bottom: none;
}
.payment-info-row span {
  color: var(--text2);
}
.payment-info-row strong {
  color: var(--text);
}

.admin-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.admin-tabs::-webkit-scrollbar {
  display: none;
}
.admin-tabs .filter-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.admin-tabs .filter-tab.active {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}
.admin-tab-content {
  padding: 16px;
}
.admin-tab-content .card {
  margin-bottom: 10px;
}
.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}
.toggle-switch.active {
  background: var(--yellow);
}
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}
.toggle-switch.active .toggle-knob {
  transform: translateX(20px);
}
.empty-state {
  text-align: center;
  color: var(--text3);
  padding: 40px 20px;
  font-size: 13px;
}

.img-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}
.img-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  border: 1px solid var(--border2);
}
.img-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
}
.nav-icon-svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s;
  display: block;
}
.nav-item.active .nav-icon-svg {
  transform: scale(1.1);
}

/* ============ PC LAYOUT ============ */
/* ============ PC LAYOUT ============ */

/* ============================================================
   PC LAYOUT — single authoritative block (768px+)
   ============================================================ */
@media (min-width: 768px) {
  html,
  body {
    height: 100%;
    min-height: 100vh;
    background: var(--bg);
  }

  body.has-pc-nav {
    display: block;
    width: 100%;
    overflow-x: hidden;
  }

  /* Fixed top nav bar */
  .pc-nav {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 200;
    box-sizing: border-box;
  }

  .pc-nav-logo {
    font-size: 20px;
    font-weight: 900;
    color: var(--yellow);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pc-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .btn-logout {
    padding: 8px 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    transition: all 0.2s;
  }
  .btn-logout:hover {
    color: var(--red);
    border-color: var(--red);
  }

  /* Fixed sidebar */
  .pc-sidebar {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    top: 60px;
    left: 0;
    width: 220px;
    height: calc(100vh - 60px);
    background: var(--bg2);
    border-right: 1px solid var(--border);
    padding: 20px 12px;
    overflow-y: auto;
    z-index: 100;
    box-sizing: border-box;
  }

  .pc-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .pc-sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .pc-sidebar-link:hover {
    background: var(--bg3);
    color: var(--text);
  }
  .pc-sidebar-link.active {
    background: rgba(240, 185, 11, 0.12);
    color: var(--yellow);
  }

  /* Page wrapper — full width, no centering */
  .page {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
  }

  /* Main content area — offset from fixed sidebar + nav */
  .pc-main {
    display: block;
    margin-left: 220px;
    margin-top: 60px;
    padding: 28px 36px;
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
    width: calc(100vw - 220px);
    max-width: calc(100vw - 220px);
    overflow-x: visible;
  }

  .pc-main .card {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Smaller laptops */
  @media (max-width: 1200px) {
    .pc-sidebar {
      width: 200px;
    }
    .pc-main {
      margin-left: 200px;
      width: calc(100vw - 200px);
      max-width: calc(100vw - 200px);
      padding: 20px 24px;
    }
  }

  /* Hide mobile-only elements */
  .bottom-nav {
    display: none !important;
  }
  .top-bar {
    display: none !important;
  }

  /* Modals centered on desktop */
  .modal-overlay {
    align-items: center;
  }
  .modal-sheet {
    max-width: 520px;
    width: 100%;
    border-radius: 16px;
  }

  /* Deposit coin grid — 2 columns on PC */
  /* Deposit coin grid — 2 columns on PC */
  #coin-grid-inner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile — hide PC elements */
@media (max-width: 767px) {
  .pc-nav {
    display: none !important;
  }
  .pc-sidebar {
    display: none !important;
  }
  .pc-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
[data-theme="light"] #bg-canvas {
  opacity: 0.03;
}
[data-theme="light"] .card {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .bottom-nav {
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
}
[data-theme="light"] .modal-sheet {
  background: #ffffff;
}
[data-theme="light"] .top-bar {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}
[data-theme="light"] input,
[data-theme="light"] select {
  background: #f5f5f5;
  color: #111;
  border-color: #e0e0e0;
}
[data-theme="light"] .chat-box {
  background: #f5f5f5;
}
[data-theme="light"] .chat-msg.mine {
  background: #d4a017;
  color: #000;
}
[data-theme="light"] .chat-msg.theirs {
  background: #e0e0e0;
  color: #111;
}
