:root {
  --bg-primary: #0A0E17;
  --bg-secondary: #12181F;
  --bg-card: #1A222D;
  --bg-elevated: #232D3B;
  --accent: #00D4FF;
  --accent-dim: #0099CC;
  --accent-glow: rgba(0, 212, 255, 0.25);
  --green: #00C853;
  --red: #FF5252;
  --orange: #FFAB40;
  --text-primary: #FFFFFF;
  --text-secondary: #8B95A5;
  --text-muted: #5A6577;
  --border: #2A3544;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 64px;
  --header-height: 56px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

#app {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100%;
  margin: 0 auto;
  background: var(--bg-primary);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

/* ========== SPLASH ========== */
#splash {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  transition: opacity 0.6s ease, visibility 0.6s;
}

#splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  width: 110px;
  height: 110px;
  animation: logoPulse 1.8s ease-in-out infinite;
}

.splash-logo svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.9; }
}

.splash-text {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #00D4FF, #0099FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeInUp 0.8s 0.4s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== MAIN LAYOUT ========== */
#main {
  display: none;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#main.show {
  display: flex;
  opacity: 1;
}

.page {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

.page.active {
  display: flex;
}

/* ========== HEADER ========== */
.header {
  height: var(--header-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border-bottom: 1px solid transparent;
  flex-shrink: 0;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* ========== HOME ========== */
.home-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
}

.balance-card {
  background: linear-gradient(145deg, #1A2A3A 0%, #12181F 100%);
  border-radius: 20px;
  padding: 24px 20px;
  margin-top: 8px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.balance-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.balance-amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.balance-change {
  font-size: 14px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-row {
  display: flex;
  justify-content: space-around;
  margin: 24px 0 8px;
  padding: 0 8px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.action-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.15s, background 0.15s;
}

.action-btn:active .action-icon {
  transform: scale(0.92);
  background: var(--bg-elevated);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
}

.see-all {
  font-size: 13px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

/* Trending */
.trending-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trending-scroll::-webkit-scrollbar { display: none; }

.trending-card {
  min-width: 140px;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.trending-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

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

.coin-name {
  font-size: 13px;
  font-weight: 600;
}

.trending-price {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.trending-change {
  font-size: 12px;
  font-weight: 500;
}

.positive { color: var(--green); }
.negative { color: var(--red); }

/* Portfolio */
.asset-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asset-item {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  border-radius: 14px;
  background: transparent;
  transition: background 0.15s;
  cursor: pointer;
}

.asset-item:active {
  background: var(--bg-card);
}

.asset-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-right: 12px;
  flex-shrink: 0;
}

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

.asset-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.asset-amount {
  font-size: 13px;
  color: var(--text-secondary);
}

.asset-right {
  text-align: right;
}

.asset-value {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.asset-change {
  font-size: 12px;
  font-weight: 500;
}

/* ========== MARKET ========== */
.market-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
}

.market-search {
  margin: 12px 0 16px;
  position: relative;
}

.market-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px 12px 42px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

.market-search input::placeholder {
  color: var(--text-muted);
}

.market-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.market-table-header {
  display: flex;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.market-col-name { flex: 1.4; }
.market-col-price { flex: 1; text-align: right; }
.market-col-change { flex: 0.8; text-align: right; }

.market-item {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.market-item:active {
  background: var(--bg-card);
}

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

.market-coin-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.market-coin-name {
  font-size: 14px;
  font-weight: 600;
}

.market-coin-symbol {
  font-size: 12px;
  color: var(--text-secondary);
}

.market-price {
  flex: 1;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}

.market-change {
  flex: 0.8;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
}

/* ========== HISTORY ========== */
.history-filters {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

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

.filter-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0E17;
}

.history-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
}

.tx-group-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 16px 0 8px;
  padding-left: 4px;
}

.tx-item {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--bg-card);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.tx-item:active {
  background: var(--bg-elevated);
}

.tx-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 18px;
}

.tx-icon.sent { background: rgba(255, 82, 82, 0.15); color: var(--red); }
.tx-icon.received { background: rgba(0, 200, 83, 0.15); color: var(--green); }
.tx-icon.swap { background: rgba(0, 212, 255, 0.15); color: var(--accent); }

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

.tx-type {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tx-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-right {
  text-align: right;
}

.tx-amount {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tx-amount.sent { color: var(--red); }
.tx-amount.received { color: var(--green); }
.tx-amount.swap { color: var(--text-primary); }

.tx-status {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== SETTINGS ========== */
.settings-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  margin: 12px 0 24px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00D4FF, #0066FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.profile-name {
  font-size: 17px;
  font-weight: 600;
}

.profile-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-left: 4px;
}

.settings-item {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.settings-item:active {
  background: var(--bg-elevated);
}

.settings-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 16px;
  color: var(--accent);
}

.settings-item-label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.settings-item-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== BOTTOM NAV ========== */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--accent);
}

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

/* ========== MODALS ========== */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal {
  width: 100%;
  max-height: 90%;
  background: var(--bg-secondary);
  border-radius: 24px 24px 0 0;
  padding: 12px 20px 32px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 0 auto 16px;
}

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

/* Receipt Modal */
.receipt-status {
  text-align: center;
  margin-bottom: 24px;
}

.receipt-status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.receipt-status-icon.success {
  background: rgba(0, 200, 83, 0.15);
  color: var(--green);
}

.receipt-amount {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.receipt-type {
  font-size: 14px;
  color: var(--text-secondary);
}

.receipt-details {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 4px 0;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

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

.receipt-label {
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.receipt-value {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
  max-width: 60%;
}

.receipt-value.hash {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 12px;
  color: var(--accent);
}

.receipt-party {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.receipt-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00D4FF, #0066FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.receipt-actions {
  display: flex;
  gap: 12px;
}

.btn-primary {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  background: var(--accent);
  color: #0A0E17;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

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

.btn-secondary {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

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

/* Send / Receive / Swap forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  appearance: none;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.qr-box {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 12px;
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #111,
    #111 4px,
    #222 4px,
    #222 8px
  );
  border-radius: 8px;
  position: relative;
}

.qr-placeholder::after {
  content: 'QR';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
}

.address-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 13px;
  word-break: break-all;
  text-align: center;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  color: var(--accent);
}

.copy-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 8px;
}

/* Toast */
.toast {
  position: absolute;
  bottom: calc(var(--nav-height) + 20px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  border: 1px solid var(--border);
  white-space: nowrap;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ========== AUTH ========== */
.auth-container {
  position: absolute;
  inset: 0;
  z-index: 500;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 40px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
  margin-top: 24px;
}

.auth-logo {
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px var(--accent-glow));
}

.auth-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-btn {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  font-size: 16px;
}

.auth-error {
  background: rgba(255, 82, 82, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 82, 82, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.header-greeting {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.profile-username {
  font-size: 13px;
  color: var(--accent);
  margin-top: 1px;
  margin-bottom: 2px;
}

.logout-item {
  border-color: rgba(255, 82, 82, 0.25) !important;
}


/* Membership badge */
.member-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #F5C542, #FF8C00);
  color: #1a1200;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.trade-banner {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(0,212,255,0.25);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}

/* iPhone / Mac special glass UI */
body.plat-ios #app,
body.plat-mac #app {
  background: radial-gradient(ellipse at top, #12182a 0%, #0A0E17 55%);
}
body.plat-ios .balance-card,
body.plat-mac .balance-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
body.plat-ios .form-input,
body.plat-mac .form-input {
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}
body.plat-ios .btn-primary,
body.plat-mac .btn-primary {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,153,255,0.35);
}
body.plat-ios .modal,
body.plat-mac .modal {
  border-radius: 24px 24px 0 0;
  background: rgba(18,22,32,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Android keeps default solid premium dark */
body.plat-android .balance-card {
  border-radius: 16px;
}

/* Windows / desktop responsive */
body.plat-win #app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 24px 80px rgba(0,0,0,0.45);
}
@media (min-width: 900px) {
  body.plat-win #app,
  body.plat-mac #app {
    max-width: 420px;
    border-radius: 20px;
    margin-top: 24px;
    margin-bottom: 24px;
    overflow: hidden;
  }
  body.plat-win,
  body.plat-mac {
    background: #06080f;
  }
}

.header-greeting .member-badge {
  font-size: 10px;
}
