/* iMove — Palpite Premiado 2026 Styles */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&display=swap');

/* ==================== BANNER PROMOCIONAL (HOMEPAGE) ==================== */
.promo-section {
  padding: 80px 0;
  background: var(--imv-paper);
}
.promo-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.promo-banner {
  background: white;
  border-radius: 32px;
  border: 1px solid var(--imv-line);
  box-shadow: var(--imv-shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 380px;
  position: relative;
}
.promo-banner::before {
  content: "";
  position: absolute;
  top: 15px; left: 15px; right: 15px; bottom: 15px;
  border: 2px solid var(--imv-orange);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}
.promo-left {
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 30px;
}
.promo-left img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  z-index: 2;
}
/* Dotted accents in corners */
.promo-dots {
  position: absolute;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(#F59E0B 20%, transparent 20%);
  background-size: 10px 10px;
  opacity: 0.3;
}
.promo-dots.top-left { top: 25px; left: 25px; }
.promo-dots.bottom-left { bottom: 25px; left: 25px; }

.promo-right {
  background: linear-gradient(115deg, #F59E0B 0%, #FB923C 100%);
  padding: 50px 60px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  margin-left: -80px;
  padding-left: 120px;
}
.promo-right::before {
  content: "";
  position: absolute;
  right: -50px; top: -50px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.promo-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--imv-ink);
  margin-bottom: 12px;
  display: inline-block;
}
.promo-title-wrap {
  transform: skewX(-8deg) rotate(-1deg);
  display: inline-block;
  width: fit-content;
}
.promo-title {
  background: var(--imv-ink);
  color: white;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  padding: 10px 24px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(11,15,44,0.15);
}
.promo-badge-wrap {
  transform: skewX(-8deg);
  margin-top: 10px;
  margin-bottom: 20px;
}
.promo-badge {
  background: #EC4899; /* Hot Pink */
  color: white;
  font-size: 16px;
  font-weight: 800;
  padding: 6px 16px;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-block;
}
.promo-desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
  max-width: 450px;
}
.promo-cta-btn {
  background: var(--imv-ink);
  color: white;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  width: fit-content;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: transform .35s var(--imv-ease), background .25s var(--imv-ease);
}
.promo-cta-btn:hover {
  background: var(--imv-blue);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(80,70,229,0.35);
}
.promo-cta-btn .arrow-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: white;
  color: var(--imv-ink);
  border-radius: 50%;
  transition: transform .35s var(--imv-ease);
}
.promo-cta-btn:hover .arrow-ico {
  transform: translateX(3px);
}

@media (max-width: 820px) {
  .promo-banner {
    grid-template-columns: 1fr;
  }
  .promo-left {
    min-height: 240px;
    padding: 20px;
  }
  .promo-left img {
    height: 220px;
  }
  .promo-right {
    clip-path: none;
    margin-left: 0;
    padding: 40px;
    border-radius: 0 0 32px 32px;
  }
}

@keyframes promoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==================== PÁGINA COPA (APP CONTAINER) ==================== */
.copa-section {
  padding: 0 0 50px;
  background: var(--imv-cream);
  min-height: 100vh;
}
.copa-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
}
.copa-app-card {
  width: 100%;
  max-width: 680px;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Telas de formulário/tabela: largura confortável e centralizada mesmo em telas largas */
#tab-inicio, #tab-ranking, #tab-carteira, #tab-perfil {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
#screen-login, #screen-register, #screen-ativacao { padding-top: 28px; }
/* Jogos empilhados — um embaixo do outro, em coluna única centralizada */
.match-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.match-grid .match-card { margin-bottom: 0; }

/* Screen Headers */
.copa-header {
  background: var(--imv-ink);
  color: white;
  padding: 20px 20px 16px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copa-header-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  color: var(--imv-orange);
}

/* Scrollable Content */
.copa-content-scroll {
  flex: 1;
  padding: 20px;
}

/* Form Styles */
.copa-form-group {
  margin-bottom: 16px;
}
.copa-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--imv-muted);
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.copa-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--imv-line-strong);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: white;
  transition: border-color 0.2s;
}
.copa-input:focus {
  border-color: #068472;
}

/* App Buttons */
.copa-btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.25s, transform 0.15s;
}
.copa-btn-primary {
  background: linear-gradient(135deg, #068472 0%, #586761 100%);
  color: white;
}
.copa-btn-primary:hover {
  opacity: 0.95;
}
.copa-btn-primary:active {
  transform: scale(0.98);
}
.copa-btn-secondary {
  background: white;
  border: 1px solid var(--imv-line-strong);
  color: var(--imv-ink);
}

/* App Navigation Bar (no topo) */
.copa-nav-bar {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 3vw, 28px);
  padding: 16px 8px 14px;
  background: var(--imv-cream);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 14px -10px rgba(11,15,44,0.25);
}
.copa-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex: 1 1 0;
  max-width: 110px;
  min-width: 0;
}
.copa-nav-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #F2F4F7;
  box-shadow: 0 2px 6px rgba(11,15,44,0.06);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}
/* Cor distinta por ícone (estilo app) */
.copa-nav-item:nth-child(1) .copa-nav-item-icon { background: #E8F0FE; }
.copa-nav-item:nth-child(2) .copa-nav-item-icon { background: #E7F7F1; }
.copa-nav-item:nth-child(3) .copa-nav-item-icon { background: #FFF1E6; }
.copa-nav-item:nth-child(4) .copa-nav-item-icon { background: #FFF8DD; }
.copa-nav-item:nth-child(5) .copa-nav-item-icon { background: #F1E9FB; }
.copa-nav-item span {
  font-size: 11px;
  font-weight: 600;
  color: var(--imv-ink);
  text-align: center;
  white-space: nowrap;
}
.copa-nav-item.active .copa-nav-item-icon {
  background: linear-gradient(135deg, #068472 0%, #0a9e88 100%);
  box-shadow: 0 6px 16px rgba(6,132,114,0.40);
  transform: translateY(-3px) scale(1.06);
}
.copa-nav-item.active span {
  color: #068472;
  font-weight: 700;
}
.copa-nav-item:active .copa-nav-item-icon {
  transform: scale(0.94);
}

/* Auth Cards */
.auth-box {
  background: white;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--imv-line);
  box-shadow: var(--imv-shadow-card);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.auth-box h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--imv-ink);
}

/* Modal OTP styles */
.otp-modal {
  position: absolute;
  inset: 0;
  background: rgba(11,15,44,0.7);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.otp-box {
  background: white;
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
}
.otp-box h4 {
  font-family: 'Sora', sans-serif;
  margin: 0 0 10px;
}
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}
.otp-digit {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid var(--imv-line-strong);
  border-radius: 8px;
  outline: none;
}
.otp-digit:focus {
  border-color: #068472;
}

/* Cards & Widgets */
.app-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--imv-line);
  padding: 16px;
  margin-bottom: 16px;
}
.app-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--imv-ink);
}

/* Match prediction grid */
.match-card {
  overflow: hidden;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--imv-line);
  margin-bottom: 16px;
  box-shadow: var(--imv-shadow-card);
}
.match-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 4px;
}
.match-group {
  font-weight: 700;
  font-size: 14px;
  color: var(--imv-ink);
}
.match-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.match-status.st-open     { color: var(--imv-muted); background: #f1f3f5; }
.match-status.st-locked   { color: #B45309; background: #FEF3C7; }
.match-status.st-finished { color: #1D4ED8; background: #DBEAFE; }
.match-mid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 12px 14px 16px;
}
.team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 88px;
  flex-shrink: 0;
  padding-top: 4px;
}
.team-flag {
  font-size: 40px;
  line-height: 1;
}
.team-flag img {
  display: block;
}
.team-name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  color: var(--imv-ink);
}
.match-score {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.score-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--imv-ink);
  min-width: 26px;
  text-align: center;
  line-height: 1;
}
.score-num.input {
  background: #0B0F2C;
  color: white;
  border-radius: 12px;
  width: 50px;
  height: 50px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-x {
  font-weight: 600;
  color: var(--imv-muted);
  font-size: 16px;
}
.sc-btn {
  width: 50px;
  height: 22px;
  border-radius: 7px;
  border: none;
  background: #eef1f4;
  color: var(--imv-ink);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}
.sc-btn:active { background: #e2e6ea; }
.match-penalty {
  margin: 0 16px 12px;
  font-size: 12px;
  color: var(--imv-muted);
}
.match-confirm {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #068472 0%, #0a9e88 100%);
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.match-confirm:active { transform: scale(0.99); }
.match-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f6f7f9;
  border-top: 1px solid var(--imv-line);
  font-size: 13px;
  color: var(--imv-muted);
}
.match-foot .foot-pts { font-weight: 800; color: var(--imv-ink); }
.match-foot .foot-ok { color: #068472; font-weight: 700; }
.match-foot .foot-muted { color: var(--imv-muted); }
.match-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-count {
  font-size: 11px;
  font-weight: 800;
  color: #068472;
  background: #E8F5F2;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.palpite-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px 10px;
}
.palpite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f6f7f9;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
.palpite-row .pl-num { color: var(--imv-muted); font-size: 12px; }
.palpite-row .pl-score { font-weight: 800; color: var(--imv-ink); margin-left: auto; }
.palpite-row .pl-pts { color: #068472; font-weight: 700; font-size: 12px; }
.match-add {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  height: 42px;
  border: 1px dashed #068472;
  border-radius: 12px;
  background: #f0faf8;
  color: #068472;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.match-add:active { background: #e3f4f0; }

/* Wallet and Stats */
.wallet-box {
  background: linear-gradient(135deg, #04160E 0%, #0D2D1E 100%);
  color: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
}
.wallet-label {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  opacity: 0.7;
}
.wallet-balance {
  font-size: 32px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--imv-orange);
}

/* Admin floating view */
.admin-mode-badge {
  position: fixed;
  top: auto;
  bottom: 14px;
  right: 14px;
  opacity: 0.55;
  background: #EF4444;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
.admin-panel-overlay {
  position: absolute;
  inset: 0;
  background: white;
  z-index: 90;
  overflow-y: auto;
  padding: 20px;
}

/* Generic alert box */
.custom-alert {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  background: var(--imv-ink);
  color: white;
  border-left: 4px solid var(--imv-orange);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  z-index: 200;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideInDown 0.35s var(--imv-ease) forwards;
}
.custom-alert button {
  background: none;
  border: none;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

@keyframes slideInDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==================== GLOBAL NAVBAR EXTENSIONS ==================== */
.imv-nav-btn-secondary {
  height: 40px;
  padding: 0 18px;
  border-radius: 9999px;
  background: transparent;
  color: var(--imv-ink);
  border: 1.5px solid var(--imv-line-strong);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--imv-ease), border-color 0.25s var(--imv-ease), transform 0.25s var(--imv-ease);
  cursor: pointer;
  text-decoration: none;
}
.imv-nav-btn-secondary:hover {
  background: rgba(11, 15, 44, 0.05);
  border-color: var(--imv-ink);
  transform: translateY(-1px);
}
.imv-nav-btn-secondary:active {
  transform: translateY(0);
}

@media (max-width: 580px) {
  .imv-nav-btn-secondary {
    padding: 0 12px;
    font-size: 12px;
    height: 36px;
  }
  .imv-nav-cta {
    padding: 0 12px;
    font-size: 12px;
    height: 36px;
  }
}

/* ==================== GLOBAL LOGIN/REGISTER MODAL ==================== */
.global-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 44, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.global-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.global-modal-card {
  width: 100%;
  max-width: 440px;
  background: #F7FBF9;
  border-radius: 32px;
  border: 1px solid var(--imv-line-strong);
  box-shadow: 0 30px 60px rgba(11,15,44,0.25);
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.global-modal-overlay.active .global-modal-card {
  transform: scale(1);
}
.global-modal-header {
  background: var(--imv-ink);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.global-modal-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--imv-orange);
  margin: 0;
}
.global-modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.global-modal-close:hover {
  color: white;
}
.global-modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* User dropdown menu in navbar */
.nav-user-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border: 1px solid var(--imv-line-strong);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(11,15,44,0.15);
  width: 200px;
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 101;
  text-align: left;
}
.nav-user-dropdown.active {
  display: flex;
}
.nav-user-dropdown a {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--imv-ink);
  border-radius: 12px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-user-dropdown a:hover {
  background: rgba(11,15,44,0.05);
}
.nav-user-dropdown .dropdown-divider {
  height: 1px;
  background: var(--imv-line);
  margin: 4px 8px;
}

/* Alert notifications on the site (toasts) */
.global-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--imv-ink);
  color: white;
  border-left: 4px solid var(--imv-orange);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.global-toast.active {
  transform: translateY(0);
  opacity: 1;
}
