/* =============================================
   CRAVEI — Global Stylesheet
   ============================================= */

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

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

:root {
  --bg: #111214;
  --surface: #1a1c1f;
  --surface2: #222427;
  --border: #2e3035;
  --text: #f0f0f0;
  --muted: #888c96;
  --cor1: #22c55e;
  --cor1-rgb: 34, 197, 94;
  --green: #22c55e;
  --red: #ef4444;
  --green-bg: rgba(34,197,94,0.18);
  --red-bg: rgba(239,68,68,0.18);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* =============================================
   PHONE WRAPPER
   ============================================= */
.phone {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

/* =============================================
   HEADER
   ============================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--bg);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--cor1), var(--cor1));
  filter: brightness(0.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

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

.btn-entrar {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-entrar:hover { background: var(--border); }

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: width 0.2s;
}
.menu-btn span:nth-child(1) { width: 22px; }
.menu-btn span:nth-child(2) { width: 16px; }
.menu-btn span:nth-child(3) { width: 22px; }
.menu-btn:hover span { width: 22px; }

/* =============================================
   SEARCH
   ============================================= */
.search-wrap { padding: 12px 18px 14px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
}
.search-box svg { color: var(--muted); flex-shrink: 0; }
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.search-box input::placeholder { color: var(--muted); }

/* =============================================
   TABS
   ============================================= */
.tabs {
  display: flex;
  gap: 8px;
  padding: 0 46px 14px 18px;   /* right padding leaves room for the arrow */
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  transition: all 0.15s;
}
.tab.active {
  background: var(--surface2);
  color: var(--cor1);
  border-color: var(--cor1);
  font-weight: 600;
}
.tab .tab-icon { flex-shrink: 0; display: flex; align-items: center; }
.tab .tab-arrow { margin-left: 2px; font-size: 14px; color: var(--muted); }
.tab:hover:not(.active) { background: var(--surface2); color: var(--text); }

/* =============================================
   FILTER PILLS
   ============================================= */
.filter-pills {
  display: flex;
  gap: 8px;
  padding: 0 18px 16px;
}

.pill {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: all 0.15s;
}
.pill.active { background: var(--cor1); color: #fff; }
.pill.inactive { background: transparent; color: var(--muted); }
.pill:hover:not(.active) { color: var(--cor1); }

/* =============================================
   FEED / CARDS
   ============================================= */
.feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 18px 90px;
  overflow-y: auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.card:hover { border-color: #3e4047; }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 14px 10px;
  gap: 10px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.card-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
}

.card-rows { padding-bottom: 6px; }

.row {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  gap: 10px;
  border-top: 1px solid var(--border);
  transition: background 0.1s;
  cursor: pointer;
}
.row:hover { background: rgba(255,255,255,0.03); }

.row-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.row-label { flex: 1; font-size: 13px; font-weight: 500; color: var(--text); }
.row-pct { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 40px; text-align: right; }

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

.bet-btn {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s, transform 0.1s;
  white-space: nowrap;
}
.bet-btn:hover { filter: brightness(1.15); transform: scale(1.03); }
.bet-btn:active { transform: scale(0.97); }

.btn-sim { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.btn-nao { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.btn-nao-gray { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }

/* =============================================
   BOTTOM NAV
   ============================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.15s;
  border: none;
  background: none;
  font-family: inherit;
  text-decoration: none;
}
.nav-item.active { color: var(--cor1); }
.nav-item:hover { color: var(--cor1); }
.nav-icon { width: 22px; height: 22px; }

/* =============================================
   OVERLAY + MENU PANEL
   ============================================= */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 399;
}
.overlay.show { display: block; }

.menu-panel {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 100%;
  max-width: 390px;
  height: 100vh;
  z-index: 400;
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  background: rgba(10,10,12,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  padding-bottom: 20px;
}
.menu-panel.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* The white card at top containing title + close */
.menu-top {
  margin: 14px 14px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.menu-top-title { font-size: 17px; font-weight: 700; color: var(--text); }
.menu-top-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

.menu-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.15s;
}
.menu-close:hover { background: var(--border); color: var(--text); }

.menu-items {
  padding: 10px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}
.menu-item:hover { background: var(--surface2); }

.menu-item.logout {
  color: var(--red);
}

.menu-item.logout .menu-item-icon {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.menu-item.logout .menu-item-icon svg {
  color: var(--red);
}

.menu-item.logout .menu-item-chevron {
  color: var(--red);
}

.menu-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-item-label { flex: 1; font-size: 15px; font-weight: 500; color: var(--text); }
.menu-item-chevron { color: var(--muted); flex-shrink: 0; }

.menu-item.logout .menu-item-label {
  color: var(--red);
}

.menu-footer {
  padding: 32px 14px 40px;
  margin-top: 80px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border-top: 1px solid var(--border);
}

/* Bloquear scroll quando menu aberto */
body.menu-open {
  overflow: hidden;
}


/* =============================================
   CHAT PAGE
   ============================================= */
.chat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.chat-bar-title { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }

.online-badge { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cor1); }
.online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cor1);
  box-shadow: 0 0 6px var(--cor1);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.5} }

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.messages::-webkit-scrollbar { width: 4px; }
.messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.msg { font-size: 14px; line-height: 1.5; color: var(--text); animation: msgIn 0.2s ease both; }
@keyframes msgIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

.msg .username { font-weight: 700; margin-right: 2px; }
.msg .msg-text { color: var(--text); font-weight: 400; }
.msg .msg-tag { color: var(--muted); font-size: 12px; }

.c1{color:#22c55e} .c2{color:#f59e0b} .c3{color:#a78bfa}
.c4{color:#38bdf8} .c5{color:#f472b6} .c6{color:#fb923c} .c7{color:#34d399}

.chat-input-wrap {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 10px 18px 6px;
  z-index: 150;
}
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}
.chat-input-row input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--muted); font-size: 14px; font-family: inherit;
}
.chat-input-row input::placeholder { color: var(--muted); }

.input-emoji { background:none;border:none;cursor:pointer;color:var(--muted);font-size:18px;display:flex;align-items:center;transition:color 0.15s; }
.input-emoji:hover { color: var(--text); }

.input-send {
  width: 32px; height: 32px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s; color: var(--text);
}
.input-send:hover { background: var(--border); }

.chat-disclaimer { text-align: center; font-size: 11px; color: var(--muted); padding: 6px 0 4px; }
.chat-disclaimer a { color: var(--muted); text-decoration: underline; }

/* =============================================
   POSICOES PAGE
   ============================================= */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 28px 100px;
  text-align: center;
}

.lock-icon {
  width: 80px; height: 80px;
  background: var(--surface2);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  animation: fadeDown 0.4s ease both;
}
@keyframes fadeDown { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }

.content h1 { font-size: 24px; font-weight: 700; margin-bottom: 12px; animation: fadeUp 0.4s 0.08s ease both; }
.content p { font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 240px; margin-bottom: 32px; animation: fadeUp 0.4s 0.14s ease both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

.btn-inicio {
  width: 100%; padding: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
  animation: fadeUp 0.4s 0.2s ease both;
}
.btn-inicio:hover { background: var(--border); }
.btn-inicio:active { transform: scale(0.98); }

.signup-hint { margin-top: 28px; font-size: 13px; color: var(--muted); animation: fadeUp 0.4s 0.26s ease both; }
.signup-hint a { color: var(--text); font-weight: 600; text-decoration: none; }
.signup-hint a:hover { text-decoration: underline; }

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-bg-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 0;
}

.login-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.login-preview-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(transparent, var(--surface));
}
.login-preview-card-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.login-preview-card-title .pav { width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0; }
.login-preview-info { font-size: 12px; color: var(--muted); line-height: 1.7; padding-left: 40px; }

.login-form-wrap {
  padding: 28px 18px 30px;
  flex: 1;
}

.login-logo { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 6px; }
.login-logo span { font-size: 18px; }
.login-tagline { font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.login-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

/* FORM FIELDS */
.field-group { margin-bottom: 16px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; display: block; }

.field-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.field-input::placeholder { color: var(--muted); }
.field-input:focus { border-color: #4e5158; }
.field-input.error { border-color: var(--red); }

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field-wrap .field-input { padding-right: 46px; }
.toggle-pw {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.15s;
}
.toggle-pw:hover { color: var(--text); }

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 12px;
}
.btn-primary:hover { background: var(--border); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 12px;
}
.btn-secondary:hover { background: var(--surface); }
.btn-secondary:active { transform: scale(0.98); }

.link-btn {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.15s;
  margin-top: 4px;
  text-decoration: none;
}
.link-btn:hover { color: var(--text); }

.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--muted);
}
.chat-fab:hover { background: var(--border); color: var(--text); }

/* =============================================
   REGISTER / CONFIRMATION PAGE
   ============================================= */
.page-header {
  display: flex;
  align-items: center;
  padding: 18px 18px 10px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.back-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  transition: opacity 0.15s;
}
.back-btn:hover { opacity: 0.7; }

/* Step progress bar */
.steps-bar {
  display: flex;
  gap: 6px;
  padding: 14px 18px 0;
}
.step-bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  transition: background 0.3s;
}
.step-bar.active { background: var(--text); }

.page-form-wrap {
  padding: 24px 18px 30px;
  flex: 1;
  overflow-y: auto;
}

.page-form-wrap h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.page-form-wrap .page-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }

/* Error banner */
.error-banner {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--red);
  line-height: 1.4;
  animation: fadeUp 0.2s ease both;
}
.error-banner.show { display: flex; }
.error-banner svg { flex-shrink: 0; margin-top: 1px; }

/* Terms */
.terms-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}
.terms-note a { color: var(--text); text-decoration: none; }
.terms-note a:hover { text-decoration: underline; }

/* Confirmation page */
.confirm-email-hint {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.confirm-email-hint strong { color: var(--text); font-weight: 600; }
.confirm-email-hint .email-addr { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }

.field-wrap-timer {
  position: relative;
}
.field-timer {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  pointer-events: none;
}

/* =============================================
   LOGIN — extra pixel-perfect fixes
   ============================================= */
.login-phone {
  overflow-y: auto;
}

/* Green bottom border on first preview card */
.login-preview-card.lpc-green {
  border-bottom: 2px solid var(--green);
}

/* Logo row with icon inline */
.login-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text);
}
.login-logo svg { color: var(--text); }
.login-tagline { font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.login-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }

/* btn-primary inside login has no bottom margin — spacing via form itself */
.login-form-wrap .btn-primary { margin-bottom: 12px; margin-top: 8px; }
.login-form-wrap .btn-secondary { margin-bottom: 12px; }

/* Register phone scroll */
.reg-phone {
  overflow-y: auto;
}

/* Error banner — match image exactly: dark bg, lighter border, circle-X icon */
.error-banner {
  background: #1e1a1a;
  border: 1px solid #3d2828;
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.error-banner svg {
  color: #888;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Confirmation email hint — bold label then plain email below */
.confirm-email-hint { font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.confirm-email-hint strong { color: var(--text); font-weight: 700; display: block; margin-bottom: 2px; }
.confirm-email-hint .email-addr { color: var(--muted); font-size: 13px; }

/* Code input with timer — right-aligned text inside */
.field-wrap-timer .field-input { padding-right: 56px; }


/* =============================================
   TABS — right fade + arrow button overlay
   ============================================= */
.tabs-container {
  position: relative;
}

/* Tab arrow buttons - fixas sobre o scroll */
.tab-arrow-fixed {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, opacity 0.3s ease;
  z-index: 10;
  pointer-events: all;
}

.tab-arrow-left {
  left: -4px;
}

.tab-arrow-right {
  right: -4px;
}

.tab-arrow-fixed:hover {
  color: rgba(255, 255, 255, 1);
}

.tab-arrow-fixed svg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

/* =============================================
   USER BALANCE (Header quando logado)
   ============================================= */
.user-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 12px;
}

.balance-label {
  font-size: 12px;
  color: #888c96;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-bottom: 2px;
}

.balance-amount {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.balance-crypto {
  font-size: 11px;
  color: #888c96;
  font-weight: 500;
}

.btn-depositar {
  background: var(--cor1);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.btn-depositar:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-depositar:active {
  transform: translateY(0);
}

/* Ajuste do header quando logado */
header .header-right {
  gap: 10px;
}

/* Responsivo para telas menores */
@media (max-width: 390px) {
  .balance-label {
    font-size: 11px;
  }
  .balance-amount {
    font-size: 18px;
  }
  .btn-depositar {
    padding: 7px 16px;
    font-size: 14px;
  }
}
