/* Trust Wallet style - dark theme, imagem 100% no topo */
:root {
  --tw-bg: #0c0e12;
  --tw-bg-card: #151922;
  --tw-bg-elevated: #1a1e28;
  --tw-blue: #3375bb;
  --tw-green: #00c853;
  --tw-text: #e8eaed;
  --tw-text-muted: #9aa0a6;
  --tw-border: rgba(255,255,255,0.08);
  --tw-radius: 16px;
  --tw-radius-sm: 12px;
  --tw-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--tw-bg);
  color: var(--tw-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.tw-app { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 80px; }

/* Header estilo Trust Wallet: logo + título + ícones */
.tw-app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
}
.tw-app-header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.tw-app-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.tw-app-header-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tw-header-icon.tw-header-back { margin-right: 0; }
.tw-app-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tw-header-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.2s;
}
.tw-header-icon:hover { background: rgba(255,255,255,0.15); color: #fff; }
.tw-header-icon svg { flex-shrink: 0; }

/* Main wallet: label + saldo + 4 ícones pequenos */
.tw-main-wallet {
  padding: 20px 20px 24px;
  padding-right: 170px;
  position: relative;
  z-index: 2;
}
.tw-main-wallet-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tw-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.tw-main-wallet-label svg { opacity: 0.8; }
.tw-main-wallet-balance {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tw-text);
  line-height: 1.2;
}
.tw-main-wallet-meta {
  font-size: 0.8rem;
  color: var(--tw-text-muted);
  margin-top: 4px;
}
.tw-main-wallet-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 20px;
  right: 20px;
}
.tw-main-wallet-icons a,
.tw-main-wallet-icons span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tw-text);
  text-decoration: none;
  transition: background 0.2s;
}
.tw-main-wallet-icons a:hover { background: rgba(255,255,255,0.18); color: var(--tw-text); }
.tw-main-wallet-icons svg { width: 18px; height: 18px; }

/* 4 botões circulares grandes (Send, Receive, Buy, Earn) */
.tw-round-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px 24px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.tw-round-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--tw-text);
  flex: 1;
  min-width: 0;
}
.tw-round-action-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tw-bg-card);
  border: 1px solid var(--tw-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.tw-round-action:hover .tw-round-action-circle {
  border-color: var(--tw-blue);
  background: rgba(51,117,187,0.15);
}
.tw-round-action-circle svg { stroke: var(--tw-blue); }
.tw-round-action span { font-size: 0.75rem; font-weight: 600; text-align: center; }

/* Banner roxo "Adicionar fundos" */
.tw-banner-deposit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin: 0 20px 20px;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
  border-radius: var(--tw-radius);
  text-decoration: none;
  color: #fff;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 40px);
  box-shadow: 0 4px 20px rgba(91,33,182,0.35);
}
.tw-banner-deposit:hover { color: #fff; opacity: 0.95; }
.tw-banner-deposit-left { display: flex; flex-direction: column; gap: 4px; }
.tw-banner-deposit-title { font-weight: 700; font-size: 1rem; }
.tw-banner-deposit-sub { font-size: 0.85rem; opacity: 0.95; }
.tw-banner-deposit-arrow { font-size: 1.25rem; font-weight: 700; }

/* Tabs estilo app (Crypto | NFTs) */
.tw-tabs {
  display: flex;
  gap: 0;
  padding: 0 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--tw-border);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.tw-tab {
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tw-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tw-tab.active { color: var(--tw-blue); border-bottom-color: var(--tw-blue); }
.tw-tab:hover:not(.active) { color: var(--tw-text); }

.tw-tabs-wrap { max-width: 480px; margin: 0 auto; width: 100%; padding: 0 0 24px; }
.tw-tab-panels { padding: 0 20px; }
.tw-tab-panel { display: none; }
.tw-tab-panel.active { display: block; }

/* Linha estilo lista crypto (logo + nome + preço + quantidade + valor) */
.tw-crypto-list { list-style: none; margin: 0; padding: 0; }
.tw-crypto-row {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 14px;
  border-bottom: 1px solid var(--tw-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.tw-crypto-row:hover { background: var(--tw-bg-elevated); }
.tw-crypto-row:last-child { border-bottom: none; }
.tw-crypto-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tw-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tw-blue);
  flex-shrink: 0;
}
.tw-crypto-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tw-crypto-info { flex: 1; min-width: 0; }
.tw-crypto-name { font-weight: 600; font-size: 0.95rem; }
.tw-crypto-meta { font-size: 0.8rem; color: var(--tw-text-muted); margin-top: 2px; }
.tw-crypto-right { text-align: right; }
.tw-crypto-value { font-weight: 700; font-size: 0.95rem; }
.tw-crypto-amount { font-size: 0.8rem; color: var(--tw-text-muted); margin-top: 2px; }
.tw-crypto-value.positive { color: var(--tw-green); }

/* Hero: imagem 100% no topo em TODAS as páginas */
.tw-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.tw-hero img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  object-position: center top;
  display: block;
  vertical-align: top;
}
.tw-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, var(--tw-bg) 0%, transparent 100%);
  pointer-events: none;
}
.tw-hero-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.tw-hero-content h1 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.tw-hero-content .tw-balance { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.tw-hero-content .tw-balance-sub { font-size: 0.8rem; opacity: 0.9; }

.tw-back {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  text-decoration: none;
}
.tw-back:hover { background: rgba(0,0,0,0.6); color: #fff; }

/* Conteúdo */
.tw-content { flex: 1; padding: 20px; max-width: 480px; margin: 0 auto; width: 100%; }

.tw-card {
  background: var(--tw-bg-card);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--tw-shadow);
}

.tw-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tw-text-muted);
  margin-bottom: 12px;
  padding-left: 4px;
}

/* Ações rápidas (home) */
.tw-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.tw-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: var(--tw-bg-card);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-sm);
  color: var(--tw-text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.tw-action:hover { background: var(--tw-bg-elevated); border-color: var(--tw-blue); color: var(--tw-text); }
.tw-action svg { margin-bottom: 8px; stroke: var(--tw-blue); }
.tw-action.active { border-color: var(--tw-blue); color: var(--tw-blue); }

/* Lista de itens */
.tw-list { list-style: none; margin: 0; padding: 0; }
.tw-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--tw-border);
  gap: 14px;
}
.tw-item:last-child { border-bottom: none; }
.tw-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tw-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tw-item-icon.deposit { background: rgba(0,200,83,0.15); color: var(--tw-green); }
.tw-item-icon.withdraw { background: rgba(245,124,0,0.15); color: #f57c00; }
.tw-item-body { flex: 1; min-width: 0; }
.tw-item-title { font-weight: 600; font-size: 0.95rem; }
.tw-item-meta { font-size: 0.8rem; color: var(--tw-text-muted); margin-top: 2px; }
.tw-item-value { font-weight: 700; text-align: right; }
.tw-item-value.positive { color: var(--tw-green); }

/* Botões */
.tw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--tw-radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  width: 100%;
}
.tw-btn:active { transform: scale(0.98); }
.tw-btn-primary {
  background: var(--tw-blue);
  color: #fff;
}
.tw-btn-primary:hover { opacity: 0.9; color: #fff; }
.tw-btn-secondary {
  background: var(--tw-bg-elevated);
  color: var(--tw-text);
  border: 1px solid var(--tw-border);
}
.tw-btn-secondary:hover { background: #22262e; color: var(--tw-text); }

/* Formulário */
.tw-input,
.tw-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--tw-bg-elevated);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-sm);
  color: var(--tw-text);
  font-size: 1rem;
  margin-top: 6px;
}
.tw-input:focus,
.tw-select:focus {
  outline: none;
  border-color: var(--tw-blue);
}
.tw-input::placeholder { color: var(--tw-text-muted); }
.tw-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--tw-text-muted); margin-bottom: 6px; }
.tw-form-group { margin-bottom: 16px; }

/* Auth (login/cadastro) */
.tw-auth { max-width: 400px; margin: 0 auto; padding: 24px; }
.tw-auth .tw-card { margin-bottom: 20px; }
.tw-auth .tw-btn { margin-top: 8px; }
.tw-auth-link { text-align: center; margin-top: 20px; }
.tw-auth-link a { color: var(--tw-blue); font-weight: 600; text-decoration: none; }
.tw-auth-link a:hover { text-decoration: underline; }
.tw-error { background: rgba(244,67,54,0.15); color: #f44336; padding: 12px; border-radius: var(--tw-radius-sm); margin-bottom: 16px; font-size: 0.9rem; }

/* Check-in hero */
.tw-checkin-hero {
  text-align: center;
  padding: 32px 20px;
  background: var(--tw-bg-card);
  border-radius: var(--tw-radius);
  border: 1px solid var(--tw-border);
  margin-bottom: 24px;
}
.tw-checkin-hero .tw-reward { font-size: 2rem; font-weight: 800; color: var(--tw-green); margin: 12px 0; }
.tw-checkin-hero .tw-btn { max-width: 260px; margin: 16px auto 0; }

/* Planos investimento */
.tw-plan {
  background: var(--tw-bg-card);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius);
  padding: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.tw-plan:hover { border-color: var(--tw-blue); }
.tw-plan-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.tw-plan-value { font-size: 1.25rem; font-weight: 800; color: var(--tw-blue); }
.tw-plan-meta { font-size: 0.85rem; color: var(--tw-text-muted); margin-top: 4px; }
.tw-plan-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; margin-left: 8px; background: rgba(51,117,187,0.2); color: var(--tw-blue); }

/* Planos estilo Correora: cards com logo/crypto */
.tw-invest-header {
  text-align: center;
  margin-bottom: 24px;
}
.tw-invest-header .tw-app-logo-inline {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
  opacity: 0.95;
}
.tw-invest-header .tw-section-title { margin-bottom: 4px; }
.tw-invest-header .tw-section-sub { font-size: 0.9rem; color: var(--tw-text-muted); margin: 0; }

.tw-plan-card {
  background: linear-gradient(145deg, var(--tw-bg-card) 0%, var(--tw-bg-elevated) 100%);
  border: 1px solid var(--tw-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.tw-plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tw-blue), #7c3aed);
  opacity: 0.9;
}
.tw-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(51, 117, 187, 0.15);
  border-color: rgba(51, 117, 187, 0.4);
}
.tw-plan-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.tw-plan-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.tw-plan-card-icon .tw-crypto-symbol {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tw-plan-card-icon.btc { background: linear-gradient(135deg, #f7931a 0%, #e68a00 100%); }
.tw-plan-card-icon.eth { background: linear-gradient(135deg, #627eea 0%, #4c63d2 100%); }
.tw-plan-card-icon.bnb { background: linear-gradient(135deg, #f3ba2f 0%, #d9a20e 100%); }
.tw-plan-card-icon.usdt { background: linear-gradient(135deg, #26a17b 0%, #1e8c6a 100%); }
.tw-plan-card-title { font-weight: 800; font-size: 1.35rem; margin: 0; color: var(--tw-text); }
.tw-plan-card-sub { font-size: 0.85rem; color: var(--tw-text-muted); margin-top: 4px; }
.tw-plan-card-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tw-blue);
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}
.tw-plan-card-meta {
  font-size: 0.85rem;
  color: var(--tw-text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}
.tw-plan-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--tw-border);
}
.tw-plan-card-row:last-of-type { border-bottom: none; }
.tw-plan-card-label { font-size: 0.9rem; color: var(--tw-text-muted); font-weight: 600; }
.tw-plan-card-num { font-size: 1.05rem; font-weight: 800; color: var(--tw-text); }
.tw-plan-card-row-total .tw-plan-card-num { font-size: 1.2rem; color: var(--tw-green); }
.tw-plan-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 200, 83, 0.15);
  color: var(--tw-green);
  margin-top: 8px;
}
.tw-plan-card-cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--tw-blue) 0%, #2a5f95 100%);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.2s;
}
.tw-plan-card-cta:hover { opacity: 0.95; color: #fff; }
.tw-my-invest-card {
  background: var(--tw-bg-card);
  border: 1px solid var(--tw-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}
.tw-my-invest-card .tw-plan-name { margin-bottom: 6px; }
.tw-my-invest-card .tw-plan-meta { margin-top: 2px; }

/* Bottom nav - estilo Trust Wallet */
.tw-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--tw-bg-elevated);
  border-top: 1px solid var(--tw-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 8px);
}
.tw-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--tw-text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}
.tw-nav a:hover { color: var(--tw-text); }
.tw-nav a.active { color: var(--tw-blue); }
.tw-nav a svg { margin-bottom: 4px; }
.tw-nav a.active svg { stroke: var(--tw-blue); }

/* Logout */
.tw-logout {
  display: block;
  text-align: center;
  padding: 14px;
  background: rgba(244,67,54,0.1);
  color: #f44336;
  border-radius: var(--tw-radius-sm);
  text-decoration: none;
  font-weight: 700;
  margin-top: 24px;
  border: 1px solid rgba(244,67,54,0.3);
}
.tw-logout:hover { background: rgba(244,67,54,0.2); color: #f44336; }

/* Valor grande (saldo) */
.tw-amount { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.tw-amount-sm { font-size: 1rem; font-weight: 700; }

/* Quick amounts (enviar) */
.tw-quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tw-quick-amounts button {
  padding: 8px 14px;
  background: var(--tw-bg-elevated);
  border: 1px solid var(--tw-border);
  border-radius: 8px;
  color: var(--tw-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.tw-quick-amounts button:hover { border-color: var(--tw-blue); color: var(--tw-blue); }

/* PIX modal */
.tw-pix-modal .tw-card { margin-top: 16px; }
.tw-pix-modal img { max-width: 200px; margin: 16px auto; display: block; border-radius: 8px; }
.tw-pix-modal input[readonly] { font-size: 0.75rem; margin-top: 12px; }

/* Progress bar */
.tw-progress { height: 6px; background: var(--tw-bg-elevated); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.tw-progress-fill { height: 100%; background: var(--tw-green); border-radius: 3px; transition: width 0.3s; }

/* Afiliados */
.tw-affiliate-link-wrap { margin-top: 8px; }
.tw-affiliate-input { font-size: 0.8rem; }
.tw-btn-copy { width: 100%; }
.tw-affiliate-meta { font-size: 0.85rem; color: var(--tw-text-muted); margin: 12px 0 0; }
.tw-comissao-niveis .tw-nivel-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--tw-border); }
.tw-comissao-niveis .tw-nivel-row:last-child { border-bottom: none; }
.tw-nivel-label { font-weight: 600; font-size: 0.95rem; }
.tw-nivel-pct { font-weight: 800; color: var(--tw-blue); font-size: 1.1rem; }
.tw-total-comissao { text-align: center; }
.tw-comissao-breakdown { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; font-size: 0.85rem; color: var(--tw-text-muted); }
.tw-comissao-breakdown span { white-space: nowrap; }

/* Modal boas-vindas + Telegram */
.tw-modal-telegram {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: tw-modal-fade 0.25s ease;
}
@keyframes tw-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tw-modal-telegram-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.tw-modal-telegram-box {
  position: relative;
  background: var(--tw-bg-card);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.tw-modal-telegram-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--tw-bg-elevated);
  color: var(--tw-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.tw-modal-telegram-close:hover { color: var(--tw-text); background: var(--tw-border); }
.tw-modal-telegram-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tw-text);
}
.tw-modal-telegram-text {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--tw-text-muted);
  line-height: 1.45;
}
.tw-modal-telegram-text strong { color: var(--tw-green); }
.tw-modal-telegram-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  margin: 16px 0 12px;
  background: #0088cc;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--tw-radius-sm);
  text-decoration: none;
  transition: opacity 0.2s;
}
.tw-modal-telegram-btn:hover { opacity: 0.95; color: #fff; }
.tw-modal-telegram-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--tw-text-muted);
  cursor: pointer;
  margin: 12px 0;
}
.tw-modal-telegram-check input { width: auto; margin: 0; }
.tw-modal-telegram-btn-secondary {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: var(--tw-bg-elevated);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-sm);
  color: var(--tw-text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.tw-modal-telegram-btn-secondary:hover { background: #1a1e28; }
