/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  --cpo-primary-bg: rgba(0, 0, 0, 0.55);
  --cpo-primary-border: rgba(255, 255, 255, 0.12);
  --cpo-primary-text: #fff;
  --cpo-accent-orange: #e85400;
  --cpo-accent-blue: #00c8ff;
  --cpo-accent-yellow: #ffa500;
  --cpo-success: rgba(0, 255, 130, 0.25);
  --cpo-error: rgba(255, 80, 80, 0.25);
  --cpo-overlay: rgba(0, 0, 0, 0.65);
  --cpo-subtle-bg: rgba(255, 255, 255, 0.04);
  --cpo-hover-bg: rgba(255, 255, 255, 0.14);
  
  --cpo-glass-bg: rgba(255, 255, 255, 0.08);
  --cpo-glass-border: rgba(255, 255, 255, 0.16);
  --cpo-glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --cpo-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ===========================
   GENERAL IMPROVEMENTS
   =========================== */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cpo-wrap {
  max-width: 1200px;
  margin: 18px auto;

  color: var(--cpo-primary-text);
  overflow-x: hidden;
}

/* ===========================
   NAVEGAÇÃO INFERIOR - GLASS EFFECT
   =========================== */
.cpo-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.75);
  border-top: 1px solid var(--cpo-glass-border);
  padding: 12px 0;
  display: flex;
  justify-content: center;
  gap: 0;
  z-index: 1000;
  box-shadow: 
    0 -16px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.cpo-navbar__item {
  flex: 1;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
  margin: 0 4px;
  position: relative;
}

.cpo-navbar__item:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cpo-navbar__item.is-active {
  color: var(--cpo-accent-orange);
  background: rgba(232, 84, 0, 0.15);
  box-shadow: 
    0 4px 16px rgba(232, 84, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cpo-navbar__item.is-active::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--cpo-accent-orange), 
    transparent);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 12px rgba(232, 84, 0, 0.6);
}

.cpo-navbar__icon {
  font-size: 24px;
  line-height: 1;
}

.cpo-navbar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .cpo-navbar__item {
    max-width: 100px;
    padding: 6px 8px;
  }
  
  .cpo-navbar__icon {
    font-size: 20px;
  }
  
  .cpo-navbar__label {
    font-size: 10px;
  }
}

/* ===========================
   ESTADO VAZIO (SEM PACOTES)
   =========================== */
.cpo-empty-state {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 40px auto;
}

.cpo-empty-state__icon {
  font-size: 72px;
  margin-bottom: 20px;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.cpo-empty-state__title {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
}

.cpo-empty-state__message {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.75);
}

.cpo-empty-state__btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--cpo-accent-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(232, 84, 0, 0.3);
}

.cpo-empty-state__btn:hover {
  background: rgba(255, 100, 0, 1);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 84, 0, 0.4);
}

/* ===========================
   HEADER DE PACOTES - GLASS EFFECT
   =========================== */
.cpo-packs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--cpo-glass-bg);
  border: 1px solid var(--cpo-glass-border);
  box-shadow: 
    var(--cpo-glass-shadow),
    var(--cpo-glass-inset);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.cpo-packs-header__title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  animation: cpoRainbowShadow 3.8s linear infinite;
}

@keyframes cpoRainbowShadow {
  0% {
    text-shadow:
      0 0 10px rgba(232, 84, 0, 0.55),
      0 0 22px rgba(0, 200, 255, 0.35),
      0 0 34px rgba(255, 165, 0, 0.25);
  }
  25% {
    text-shadow:
      0 0 10px rgba(0, 200, 255, 0.55),
      0 0 22px rgba(255, 165, 0, 0.35),
      0 0 34px rgba(0, 255, 130, 0.25);
  }
  50% {
    text-shadow:
      0 0 10px rgba(0, 255, 130, 0.55),
      0 0 22px rgba(232, 84, 0, 0.35),
      0 0 34px rgba(0, 200, 255, 0.25);
  }
  75% {
    text-shadow:
      0 0 10px rgba(255, 165, 0, 0.55),
      0 0 22px rgba(0, 200, 255, 0.35),
      0 0 34px rgba(232, 84, 0, 0.25);
  }
  100% {
    text-shadow:
      0 0 10px rgba(232, 84, 0, 0.55),
      0 0 22px rgba(0, 200, 255, 0.35),
      0 0 34px rgba(255, 165, 0, 0.25);
  }
}

.cpo-packs-header__count {
  padding: 8px 18px;
  background: rgba(232, 84, 0, 0.15);
  border: 1px solid rgba(232, 84, 0, 0.35);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--cpo-accent-orange);
  box-shadow: 
    0 4px 12px rgba(232, 84, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
/* =========================================================
   CPO (Pack Opener) — Dark Premium UI (no estilo do CPS)
   (aproximação: tokens + card em camadas + mídia fixa)
   ========================================================= */

/* Tokens + compat com vars já usadas no CPO */
.cpo-packs-header,
.cpo-packs-grid{
  --bg0:#0A0A0A;
  --bg1:#0F0F0F;
  --bg2:#141414;

  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.06);

  --txt:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --muted2:rgba(255,255,255,.48);

  --acc:#FF6F00;
  --acc2:#FF8A33;
  --acc3:#FFB27A;

  /* Mantém compatibilidade com o seu CSS atual */
  --cpo-accent-orange: var(--acc);
  --cpo-glass-border: var(--line2);
  --cpo-subtle-bg: rgba(255,255,255,.03);

  color: var(--txt);
}

/* ===========================
   GRID DE PACOTES (estilo CPS)
   =========================== */

/* Desktop: 4 colunas fixas (mesma ideia do CPS) */
.cpo-packs-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
  padding: 14px 4px 26px;
}

/* Tablet: 2 colunas */
@media (max-width: 980px){
  .cpo-packs-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:12px;
  }
}

/* Mobile: 1 coluna (mais “premium” e respira melhor) */
@media (max-width: 640px){
  .cpo-packs-grid{
  
  }
}

/* Título mobile: como você pediu antes (14) */
@media (max-width: 480px){
  .cpo-packs-header__title{ font-size:14px !important; }
}

/* ===========================
   CARD (botão vira o card)
   =========================== */

.cpo-pack-item{

  padding:0;
  cursor:pointer;

  /* vira “card premium” */
  position:relative;
  text-align:left;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line2);

  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255,111,0,.14) 0%, rgba(255,111,0,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%),
    var(--bg1);

  box-shadow: 0 10px 30px rgba(0,0,0,.40);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cpo-pack-item:hover{
  transform: translateY(-3px);
  border-color: rgba(255,111,0,.25);
  box-shadow: 0 18px 46px rgba(0,0,0,.55);
}

.cpo-pack-item__wrapper{
  position:relative;
  width:100%;
}

/* ===========================
   MÍDIA (área fixa tipo “pack em pé”)
   =========================== */

.cpo-pack-item__media{
  position:relative;
  height: 220px;               /* “caixa” fixa (no estilo CPS) */
  border-bottom:1px solid var(--line2);
  background:
    linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.28) 100%),
    var(--bg2);

  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;

  /* remove o “glass” antigo que ficava competindo */
  border-radius: 0;
  overflow:hidden;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-left:none;
  border-right:none;
  border-top:none;
}

.cpo-pack-item__img,
.cpo-pack-item__media img{
  height:100%;
  width:auto;
  max-width:100%;
  object-fit:contain;
  padding:0;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.55));
  transform: translateZ(0);
}

@media (max-width: 980px){
  .cpo-pack-item__media{
    height: 170px;
    padding: 10px;
  }
}

@media (max-width: 480px){
  .cpo-pack-item__media{
    height: 160px;
  }
}

/* Placeholder no mesmo idioma visual */
.cpo-pack__noimg{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color: var(--muted2);
  font-weight:700;
  letter-spacing:.6px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.03),
    rgba(255,255,255,.03) 10px,
    rgba(255,255,255,.015) 10px,
    rgba(255,255,255,.015) 20px
  );
}

/* ===========================
   BADGE (vira “pill glass” estilo CPS)
   =========================== */

.cpo-pack-item__badge{
  position:absolute;
  top:12px;
 z-index: 10;
  right:12px;

  min-width: 0;
  height:auto;
  padding:6px 10px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:11px;
  font-weight:900;
  letter-spacing:.8px;
  color: rgba(255,255,255,.92);

  background: rgba(255,111,0,.14);
  border:1px solid rgba(255,111,0,.28);
  border-radius:999px;

  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* tira o “pulse” para ficar mais premium/clean */
  animation: none;
}

/* ===========================
   “BODY” (nome vira a faixa de baixo)
   =========================== */

.cpo-pack-item__name{
  margin:0;
  padding:14px 14px 16px;

  font-size:14px;
  font-weight:900;
  color: var(--txt);
  line-height:1.2;

  /* deixa “cara de bloco” do card */
  background:
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.00) 100%);
  border-top: 1px solid rgba(255,255,255,.04);

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  text-shadow:none;
}

@media (max-width: 980px){
  .cpo-pack-item__name{
    padding:12px;
    font-size:13px;
  }
}

/* ===========================
   INVENTÁRIO - HEADER MINIMALISTA LARANJA
   =========================== */
.cpo-inventory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--cpo-glass-bg);
  border: 1px solid var(--cpo-glass-border);
  box-shadow: 
    var(--cpo-glass-shadow),
    var(--cpo-glass-inset);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.cpo-inventory-header__title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color:#ff5d00;
  text-shadow: 
    0 0 12px rgba(232, 84, 0, 0.5),
    0 0 24px rgba(232, 84, 0, 0.3);
}

/* CONTADOR MINIMALISTA - LARANJA */
.cpo-inventory-header__count {
  padding: 6px 14px;
  background: rgba(232, 84, 0, 0.15);
  border: 1px solid rgba(232, 84, 0, 0.35);
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--cpo-accent-orange);
  box-shadow: 
    0 2px 8px rgba(232, 84, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

/* Mobile - contador ainda mais compacto */
@media (max-width: 460px) {
  .cpo-inventory-header {
    padding: 12px 16px;
  }
  
  .cpo-inventory-header__title {
    font-size: 15px;
  }
  
  .cpo-inventory-header__count {
    padding: 5px 12px;
    font-size: 11px;
  }
}

/* ===========================
   INVENTÁRIO - VAZIO
   =========================== */
.cpo-inventory-empty {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 40px auto;
}

.cpo-inventory-empty__icon {
  font-size: 72px;
  margin-bottom: 20px;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
}

.cpo-inventory-empty__title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
}

.cpo-inventory-empty__message {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.75);
}

.cpo-inventory-empty__btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--cpo-accent-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(232, 84, 0, 0.3);
}

.cpo-inventory-empty__btn:hover {
  background: rgba(255, 100, 0, 1);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 84, 0, 0.4);
}

/* ===========================
   INVENTÁRIO - GRID CORRIGIDO
   =========================== */
.cpo-inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  padding: 14px 4px;
  max-width: 100%;
  overflow-x: hidden;
}

/* Tablet: 3 colunas */
@media (max-width: 1024px) {
  .cpo-inventory-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Mobile: 2 colunas - FORÇADO */
@media (max-width: 768px) {
  .cpo-inventory-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;

  }
}

@media (max-width: 480px) {
  .cpo-inventory-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .cpo-inventory-card{padding:0px !important;}
  .cpo-viewer-card{width:240px !important;}
}

/* Card do inventário - LARANJA */
.cpo-inventory-card {
  border-radius: 18px;
  border: 1px solid var(--cpo-glass-border);
  background: var(--cpo-glass-bg);
  padding: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    var(--cpo-glass-inset);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  max-width: 100%;
  min-width: 0;
}

.cpo-inventory-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 84, 0, 0.4);
  box-shadow: 
    0 12px 32px rgba(232, 84, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cpo-inventory-card.is-pending {
  border-color: rgba(255, 165, 0, 0.3);
  background: rgba(255, 165, 0, 0.05);
}

.cpo-inventory-card__frame {
  border-radius: 12px 12px 0px 0px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

.cpo-inventory-card__frame img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cpo-inventory-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cpo-inventory-card__pack {
  font-weight: 700;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2px;
}

.cpo-inventory-card__date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.cpo-inventory-card__actions {
  width: 100%;
}

.cpo-redeem-form {
  margin: 0;
}
.section h2{margin:0px !important;}
/* Botão LARANJA */
.cpo-inventory-card__btn {
        margin-left: 15px;
    margin-bottom: 10px;

  padding: 12px 20px;
  background: linear-gradient(135deg, #ff6a00, var(--cpo-accent-orange));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(232, 84, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cpo-inventory-card__btn:not(:disabled):hover {
  background: linear-gradient(135deg, #ff8500, rgba(255, 100, 0, 1));
  transform: translateY(-2px);
  box-shadow: 
    0 6px 16px rgba(232, 84, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cpo-inventory-card__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.15);
}

.cpo-inventory-card__btn:focus-visible {
  outline: 2px solid var(--cpo-accent-orange);
  outline-offset: 2px;
}

.cpo-inventory-card__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: 10px;
  text-align: center;
}

.cpo-inventory-card__status-icon {
  font-size: 24px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cpo-inventory-card__status-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--cpo-accent-yellow);
  line-height: 1.4;
}

/* ===========================
   MENSAGENS DE RESULTADO
   =========================== */
.cpo-result {
  border: 1px solid var(--cpo-primary-border);
  background: var(--cpo-primary-bg);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.cpo-result.is-ok { 
  border-color: var(--cpo-success);
  background: rgba(0, 255, 130, 0.05);
}

.cpo-result.is-err { 
  border-color: var(--cpo-error);
  background: rgba(255, 80, 80, 0.05);
}

.cpo-result__msg {
  font-weight: 700;
}

.cpo-result__source { 
  display: none; 
}

/* ===========================
   CARDS VIEWER
   =========================== */
.cpo-viewer {
  margin: 14px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
}

.cpo-viewer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
}

.cpo-viewer__counter {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 14px;
}

.cpo-viewer__close {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cpo-viewer__close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.cpo-viewer__close:focus-visible {
  outline: 2px solid var(--cpo-accent-orange);
  outline-offset: 2px;
}

.cpo-viewer__stage {
  position: relative;
  padding: 18px 14px 14px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.cpo-viewer-card {
  display: none;
  width: 100%;
  max-width: 520px;
}

.cpo-viewer-card.is-active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cpo-cardframe {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  box-shadow: 
    inset 0 0 0 1px rgba(0, 0, 0, 0.25), 
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cpo-cardframe:hover {
  transform: scale(1.02);
  box-shadow: 
    inset 0 0 0 1px rgba(0, 0, 0, 0.25), 
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.cpo-viewer__hint {
  padding: 0 14px 14px;
  text-align: center;
  opacity: 0.75;
  font-size: 12px;
}

.cpo-viewer__raw {
  display: none;
}

.cpo-viewer-done[hidden] { 
  display: none; 
}

.cpo-viewer-done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.4s ease-out;
}

.cpo-viewer-done__box {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.65);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cpo-viewer-done__title {
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 8px;
}

.cpo-viewer-done__summary {
  margin-top: 6px;
  margin-bottom: 24px;
  opacity: 0.8;
  font-size: 15px;
}

.cpo-viewer-done__btn {
  padding: 12px 28px;
  background: var(--cpo-accent-orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 16px rgba(232, 84, 0, 0.3);
}

.cpo-viewer-done__btn:hover {
  background: rgba(255, 100, 0, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 84, 0, 0.4);
}

.cpo-viewer-done__btn:focus-visible {
  outline: 2px solid var(--cpo-accent-orange);
  outline-offset: 2px;
}

/* ===========================
   FOCUS STATES GERAIS
   =========================== */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cpo-accent-orange);
  outline-offset: 2px;
}