/* Yubly Hub v2.1.0 — Claymorphism */

#yubly-hub-wrap,
#yubly-hub-wrap *,
#yubly-hub-wrap *::before,
#yubly-hub-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#yubly-hub-wrap {
  background: linear-gradient(160deg, #0d1f3c 0%, #1a3a6b 60%, #0d2b5e 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  overflow: clip;
  box-shadow: 0 20px 60px rgba(6,20,50,.5), inset 0 1px 0 rgba(255,255,255,.08);
  min-height: 520px;
  color: #fff;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
#yubly-hub-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(80,20,140,.45), rgba(40,10,100,.35));
  pointer-events: none;
  z-index: 0;
}

/* ── Header ───────────────────────────────────────────────────── */
#yubly-hub-wrap .yubly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  position: relative;
  z-index: 2;
}

#yubly-hub-wrap .yubly-logo {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  text-shadow: 0 0 12px rgba(160,100,255,.5), 0 4px 12px rgba(0,0,0,.3);
}

#yubly-hub-wrap .yubly-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

#yubly-hub-wrap .yubly-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9B5CF6, #6D28D9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgba(55,138,221,.4), inset 0 1px 0 rgba(255,255,255,.2);
  text-transform: uppercase;
  flex-shrink: 0;
}

#yubly-hub-wrap .yubly-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #a8c8f0;
}

#yubly-hub-wrap .yubly-logout {
  font-size: 12px;
  font-weight: 600;
  color: #6a9fd4;
  text-decoration: none;
  transition: color .15s;
}
#yubly-hub-wrap .yubly-logout:hover { color: #a8c8f0; }

#yubly-hub-wrap .yubly-settings-link {
  display: flex;
  align-items: center;
  color: #6a9fd4;
  text-decoration: none;
  opacity: .75;
  transition: opacity .15s, color .15s;
}
#yubly-hub-wrap .yubly-settings-link:hover {
  opacity: 1;
  color: #a8c8f0;
}

/* ── Botão Instalar app — header (PWA prompt) ──────────────────── */
#yubly-hub-wrap .yubly-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #6a9fd4;
  padding: 0;
  cursor: pointer;
  opacity: .75;
  transition: opacity .15s, color .15s;
}
#yubly-hub-wrap .yubly-install-btn:hover {
  opacity: 1;
  color: #a8c8f0;
}
#yubly-hub-wrap .yubly-install-btn svg {
  display: block;
  flex-shrink: 0;
}

@keyframes yubly-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Logo como imagem ─────────────────────────────────────────── */
#yubly-hub-wrap .yubly-logo-img--hub {
  display: block;
  max-height: 47px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(160,100,255,.6)) drop-shadow(0 0 20px rgba(120,60,220,.35));
}
#yubly-hub-wrap .yubly-logo-img--auth {
  display: block;
  max-height: 96px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px rgba(180,100,255,.75)) drop-shadow(0 0 40px rgba(120,60,220,.45));
  position: relative;
  z-index: 2;
}

/* ── Alerta de vencimento ─────────────────────────────────────── */
#yubly-hub-wrap .yubly-alert {
  margin: 16px 24px 0;
  background: rgba(255,180,0,.1);
  border: 1px solid rgba(255,180,0,.2);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffd166;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  cursor: pointer;
}
#yubly-hub-wrap .yubly-alert-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Tabs de categoria ────────────────────────────────────────── */
#yubly-hub-wrap .yubly-tabs {
  display: none;
  gap: 6px;
  padding: 20px 24px 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
}
#yubly-hub-wrap .yubly-tabs::-webkit-scrollbar { display: none; }

#yubly-hub-wrap .yubly-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  border: 1px solid transparent;
  flex-shrink: 0;
}
#yubly-hub-wrap .yubly-tab-active {
  background: linear-gradient(135deg, #378ADD, #185FA5);
  color: #fff;
  box-shadow: 0 4px 12px rgba(55,138,221,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
#yubly-hub-wrap .yubly-tab-inactive {
  background: rgba(255,255,255,.06);
  color: #6a9fd4;
  border-color: rgba(255,255,255,.08);
}
#yubly-hub-wrap .yubly-tab-inactive:hover {
  background: rgba(255,255,255,.1);
  color: #a8c8f0;
}

/* ── Catálogo ─────────────────────────────────────────────────── */
#yubly-hub-wrap .yubly-catalog {
  padding: 20px 0 32px;
  position: relative;
  z-index: 2;
}

#yubly-hub-wrap .yubly-section {
  margin-bottom: 8px;
}
#yubly-hub-wrap .yubly-section.yubly-hidden { display: none; }

#yubly-hub-wrap .yubly-section-title {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 0 24px;
  margin-bottom: 12px;
}

/* Scroll lateral */
#yubly-hub-wrap .yubly-row-wrap {
  position: relative;
}

#yubly-hub-wrap .yubly-row {
  display: flex;
  gap: 12px;
  padding: 4px 24px 20px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  scroll-behavior: smooth;
}
#yubly-hub-wrap .yubly-row::-webkit-scrollbar { display: none; }

/* Fade indicador de scroll — mobile */
#yubly-hub-wrap .yubly-row-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: calc(100% - 20px);
  background: linear-gradient(to right, transparent, rgba(13,15,40,.7));
  pointer-events: none;
  border-radius: 0 20px 20px 0;
  transition: opacity .2s;
}
#yubly-hub-wrap .yubly-row-wrap.at-end::after { opacity: 0; }

/* Setas desktop */
#yubly-hub-wrap .yubly-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 10px));
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .15s, opacity .15s;
  opacity: 0;
  backdrop-filter: blur(4px);
}
#yubly-hub-wrap .yubly-arrow-left  { left: 2px; }
#yubly-hub-wrap .yubly-arrow-right { right: 2px; }
#yubly-hub-wrap .yubly-arrow:hover { background: rgba(255,255,255,.28); }
#yubly-hub-wrap .yubly-arrow.yubly-arrow-visible { opacity: 1; }

/* ── Card ─────────────────────────────────────────────────────── */
#yubly-hub-wrap .yubly-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  width: 120px;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
  scroll-snap-align: start;
  box-shadow:
    0 8px 20px rgba(6,20,50,.45),
    0 2px 4px rgba(6,20,50,.3),
    inset 0 1px 0 rgba(255,255,255,.15);
}
#yubly-hub-wrap .yubly-card-active {
  box-shadow:
    0 8px 20px rgba(6,20,50,.45),
    0 2px 4px rgba(6,20,50,.3),
    inset 0 1px 0 rgba(255,255,255,.15),
    0 0 28px 2px color-mix(in srgb, var(--card-color, #1a2a4a) 35%, transparent);
}
#yubly-hub-wrap .yubly-card-active:hover {
  animation: none;
  transform: translateY(-8px) scale(1.15);
  z-index: 10;
  box-shadow:
    0 20px 40px rgba(6,20,50,.6),
    0 6px 12px rgba(6,20,50,.35),
    inset 0 1px 0 rgba(255,255,255,.25),
    0 0 40px 6px color-mix(in srgb, var(--card-color, #1a2a4a) 55%, transparent);
}
#yubly-hub-wrap .yubly-card-active:active,
#yubly-hub-wrap .yubly-card-active.yubly-touching {
  animation: none;
  transform: scale(.93);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
  box-shadow:
    0 2px 8px rgba(6,20,50,.5),
    0 1px 2px rgba(6,20,50,.4),
    inset 0 1px 0 rgba(255,255,255,.1);
}

#yubly-hub-wrap .yubly-card-soon,
#yubly-hub-wrap .yubly-card-locked {
  opacity: .85;
  cursor: default;
}

/* Shake ao tocar em card indisponível */
@keyframes yubly-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(3px); }
}
#yubly-hub-wrap .yubly-card-soon.yubly-shaking,
#yubly-hub-wrap .yubly-card-locked.yubly-shaking {
  animation: yubly-shake 380ms ease-out;
}

/* Capa 2:3 */
#yubly-hub-wrap .yubly-card-cover {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(160deg, #1a3a6b 0%, #0d2050 100%);
}

/* Brilho clay */
#yubly-hub-wrap .yubly-card-cover::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, transparent 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

#yubly-hub-wrap .yubly-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ícone clay */
#yubly-hub-wrap .yubly-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(145deg, #4a9de8, #2563b0);
  box-shadow:
    0 6px 16px rgba(0,0,0,.3),
    inset 0 2px 0 rgba(255,255,255,.2),
    inset 0 -2px 0 rgba(0,0,0,.2);
  position: relative;
  z-index: 2;
}

#yubly-hub-wrap .yubly-card-info {
  padding: 8px 10px 10px;
  background: var(--card-color, #1a2a4a);
}
#yubly-hub-wrap .yubly-card-name {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#yubly-hub-wrap .yubly-card-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  display: block;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#yubly-hub-wrap .yubly-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ── Badges ───────────────────────────────────────────────────── */
#yubly-hub-wrap .yubly-badge {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  font-size: 9px;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
#yubly-hub-wrap .yubly-badge-soon {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245,158,11,.5), inset 0 1px 0 rgba(255,255,255,.2);
}
#yubly-hub-wrap .yubly-badge-locked {
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,.15);
}

/* ── Toast de aviso ──────────────────────────────────────────── */
#yubly-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,10,40,.92);
  border: 1px solid rgba(155,92,246,.4);
  border-radius: 14px;
  padding: 12px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
#yubly-toast.yubly-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Vazio ────────────────────────────────────────────────────── */
#yubly-hub-wrap .yubly-empty {
  text-align: center;
  color: #6a9fd4;
  padding: 48px 24px;
  font-size: 14px;
  font-weight: 600;
}
#yubly-hub-wrap .yubly-empty small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: .6;
  font-weight: 400;
}

/* ── Login ────────────────────────────────────────────────────── */
#yubly-hub-wrap.yubly-screen-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  gap: 0;
  position: relative;
}
#yubly-hub-wrap.yubly-screen-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(80,20,140,.50), rgba(40,10,100,.40));
  pointer-events: none;
  z-index: 0;
}
#yubly-hub-wrap .yubly-logo-center {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  text-shadow: 0 4px 14px rgba(55,138,221,.5);
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}
#yubly-hub-wrap .yubly-tagline {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 28px;
  text-align: center;
  text-shadow: 0 0 12px rgba(160,100,255,.5), 0 1px 3px rgba(0,0,0,.3);
  position: relative;
  z-index: 2;
}
#yubly-hub-wrap .yubly-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}
#yubly-hub-wrap .yubly-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#yubly-hub-wrap .yubly-field label {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .08em;
}
#yubly-hub-wrap .yubly-field input {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: #6D3FAF;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  box-shadow: inset 0 0 0 100px rgba(255,255,255,.70), inset 0 2px 4px rgba(0,0,0,.08);
}
#yubly-hub-wrap .yubly-field input:-webkit-autofill,
#yubly-hub-wrap .yubly-field input:-webkit-autofill:hover,
#yubly-hub-wrap .yubly-field input:-webkit-autofill:focus {
  -webkit-box-shadow: inset 0 0 0 100px rgba(255,255,255,.70) !important;
  -webkit-text-fill-color: #6D3FAF !important;
  caret-color: #6D3FAF;
}
#yubly-hub-wrap .yubly-field input::placeholder { color: #A78BCA; }
#yubly-hub-wrap .yubly-field input:focus {
  border-color: rgba(180,120,255,.7);
  box-shadow: inset 0 0 0 100px rgba(255,255,255,.70), inset 0 2px 4px rgba(0,0,0,.08), 0 0 0 3px rgba(140,80,255,.2);
}
#yubly-hub-wrap .yubly-btn-primary {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #9B5CF6, #6D28D9);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
  -webkit-appearance: none;
  box-shadow: 0 6px 20px rgba(109,40,217,.5), inset 0 1px 0 rgba(255,255,255,.2);
  margin-top: 4px;
}
#yubly-hub-wrap .yubly-btn-primary:hover {
  box-shadow: 0 8px 28px rgba(109,40,217,.65), inset 0 1px 0 rgba(255,255,255,.2);
  transform: translateY(-1px);
}
#yubly-hub-wrap .yubly-btn-primary:active { transform: scale(.98); }
#yubly-hub-wrap .yubly-link-forgot {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .15s;
  position: relative;
  z-index: 2;
}
#yubly-hub-wrap .yubly-link-forgot:hover { color: #ffffff; }
#yubly-hub-wrap .yubly-notice {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
#yubly-hub-wrap .yubly-notice-error {
  background: rgba(220,38,38,.15);
  border: 1px solid rgba(220,38,38,.25);
  color: #fca5a5;
}
#yubly-hub-wrap .yubly-notice-success {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.25);
  color: #86efac;
}

/* ── Upgrade ──────────────────────────────────────────────────── */
#yubly-hub-wrap.yubly-screen-upgrade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  gap: 16px;
}
#yubly-hub-wrap .yubly-upgrade-msg {
  font-size: 15px;
  font-weight: 600;
  color: #a8c8f0;
  line-height: 1.6;
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 500px) {
  #yubly-hub-wrap {
    border-radius: 0;
    box-shadow: none;
    min-height: 100dvh;
    max-width: 100%;
  }
}

#yubly-hub-wrap .yubly-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
#yubly-hub-wrap .yubly-password-wrap input {
  flex: 1;
  padding-right: 48px;
}
#yubly-hub-wrap .yubly-eye {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6a9fd4;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color .15s;
}
#yubly-hub-wrap .yubly-eye:hover { color: #a8c8f0; }

#yubly-hub-wrap {
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
  min-height: 100dvh;
}

body:has(#yubly-hub-wrap) {
  margin: 0 !important;
  padding: 0 !important;
  background: #0d1f3c !important;
  overflow-x: hidden;
}

body:has(#yubly-hub-wrap) #wpadminbar {
  display: none !important;
}

body:has(#yubly-hub-wrap) #page,
body:has(#yubly-hub-wrap) .site,
body:has(#yubly-hub-wrap) main,
body:has(#yubly-hub-wrap) .entry-content,
body:has(#yubly-hub-wrap) .elementor-section-wrap {
  padding: 0 !important;
  margin: 0 !important;
}

html:has(#yubly-hub-wrap) {
  margin-top: 0 !important;
  overflow-x: hidden;
}

#yubly-hub-wrap .yubly-row {
  align-items: flex-start;
}

#yubly-hub-wrap .yubly-divider-text {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin: 4px 0;
  position: relative;
  z-index: 2;
}
#yubly-hub-wrap .yubly-divider-text::before,
#yubly-hub-wrap .yubly-divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: rgba(255,255,255,.25);
}
#yubly-hub-wrap .yubly-divider-text::before { left: 0; }
#yubly-hub-wrap .yubly-divider-text::after  { right: 0; }

#yubly-hub-wrap .yubly-btn-trial {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(34,197,94,.45), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .12s, box-shadow .12s;
  position: relative;
  z-index: 2;
}
#yubly-hub-wrap .yubly-btn-trial:hover {
  box-shadow: 0 8px 28px rgba(34,197,94,.6), inset 0 1px 0 rgba(255,255,255,.2);
  transform: translateY(-1px);
}
#yubly-hub-wrap .yubly-btn-trial:active { transform: scale(.98); }

#yubly-hub-wrap .yubly-trial-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(29,107,62,.15);
  border: 1px solid rgba(29,107,62,.3);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #86efac;
}
#yubly-hub-wrap .yubly-trial-icon { font-size: 16px; }

#yubly-hub-wrap .yubly-form-desc {
  font-size: 13px;
  color: #6a9fd4;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Variações do banner de alerta */
#yubly-hub-wrap .yubly-alert-warning {
  background: rgba(234,179,8,.12);
  border: 1px solid rgba(234,179,8,.3);
  color: #fde68a;
}
#yubly-hub-wrap .yubly-alert-success {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  color: #86efac;
}
#yubly-hub-wrap .yubly-alert-error {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
}
#yubly-hub-wrap .yubly-confirm-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 12px;
  margin: 0 24px 12px;
}
#yubly-hub-wrap .yubly-alert-text { flex: 1; }
#yubly-hub-wrap .yubly-alert-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
#yubly-hub-wrap .yubly-alert-btn:hover {
  background: rgba(255,255,255,.25);
}

/* Banner de vencimento inteligente */

/* ── Barras de aviso unificadas ─────────────────────────────── */
#yubly-hub-wrap .yubly-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  flex-wrap: wrap;
}
#yubly-hub-wrap .yubly-bar-yellow {
  background: rgba(180,130,0,.35);
  border-bottom: 1px solid rgba(253,230,138,.25);
  color: #fde68a;
}
#yubly-hub-wrap .yubly-bar-red {
  background: rgba(239,68,68,.25);
  border-bottom: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
}
#yubly-hub-wrap .yubly-bar-icon { font-size: 14px; flex-shrink: 0; }
#yubly-hub-wrap .yubly-bar-text { flex: 1; line-height: 1.5; }
#yubly-hub-wrap .yubly-bar-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s;
  flex-shrink: 0;
}
#yubly-hub-wrap .yubly-bar-btn:hover { background: rgba(255,255,255,.25); }
#yubly-hub-wrap .yubly-bar-btn-green {
  background: rgba(29,107,62,.5);
  border-color: rgba(29,107,62,.6);
}
#yubly-hub-wrap .yubly-bar-btn-green:hover { background: rgba(29,107,62,.7); }


/* ── Tela de e-mail confirmado ──────────────────────────────── */
#yubly-hub-wrap .yubly-confirmed-box {
  text-align: center;
  padding: 40px 24px;
}
#yubly-hub-wrap .yubly-confirmed-icon {
  width: 64px;
  height: 64px;
  background: rgba(34,197,94,.15);
  border: 2px solid rgba(34,197,94,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #86efac;
  margin: 0 auto 20px;
}
#yubly-hub-wrap .yubly-confirmed-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}
#yubly-hub-wrap .yubly-confirmed-desc {
  font-size: 14px;
  color: #6a9fd4;
  margin: 0 0 28px;
}

/* Barra de confirmação de e-mail — mesmo formato da barra de trial */
#yubly-hub-wrap .yubly-alert-confirm {
  background: rgba(234,179,8,.12);
  border-bottom: 1px solid rgba(234,179,8,.25);
  color: #fde68a;
}

/* Tela de e-mail confirmado */
#yubly-hub-wrap .yubly-confirmed-box {
  text-align: center;
  padding: 32px 24px;
  max-width: 320px;
  margin: 40px auto 0;
}
#yubly-hub-wrap .yubly-confirmed-icon {
  width: 64px;
  height: 64px;
  background: rgba(34,197,94,.15);
  border: 2px solid rgba(34,197,94,.4);
  border-radius: 50%;
  font-size: 28px;
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
#yubly-hub-wrap .yubly-confirmed-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}
#yubly-hub-wrap .yubly-confirmed-msg {
  font-size: 14px;
  color: #6a9fd4;
  line-height: 1.6;
  margin: 0 0 28px;
}

/* Garante botão sempre à direita nas barras */

/* ── Barras redesenhadas com grid 2 colunas ─────────────────── */
#yubly-hub-wrap .yubly-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  margin: 0;
}
#yubly-hub-wrap .yubly-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#yubly-hub-wrap .yubly-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
#yubly-hub-wrap .yubly-bar-right form {
  margin: 0;
}
#yubly-hub-wrap .yubly-bar-text {
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Espaçamento: gap entre header e primeira barra */
#yubly-hub-wrap .yubly-bars-wrap {
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

/* Barras coladas entre si — sem gap */
#yubly-hub-wrap .yubly-bar + .yubly-bar {
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* ── Barras de aviso — layout grid definitivo ───────────────── */
#yubly-hub-wrap .yubly-bars-wrap {
  margin-top: 8px;
}
#yubly-hub-wrap .yubly-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
}
#yubly-hub-wrap .yubly-bar + .yubly-bar {
  border-top: 1px solid rgba(255,255,255,.06);
}
#yubly-hub-wrap .yubly-bar-yellow {
  background: rgba(180,130,0,.35);
  color: #fde68a;
}
#yubly-hub-wrap .yubly-bar-red {
  background: rgba(239,68,68,.25);
  color: #fca5a5;
}
#yubly-hub-wrap .yubly-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#yubly-hub-wrap .yubly-bar-icon { flex-shrink: 0; font-size: 14px; }
#yubly-hub-wrap .yubly-bar-text {
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#yubly-hub-wrap .yubly-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
#yubly-hub-wrap .yubly-bar-right form { margin: 0; }
#yubly-hub-wrap .yubly-bar-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
#yubly-hub-wrap .yubly-bar-btn:hover { background: rgba(255,255,255,.25); }
#yubly-hub-wrap .yubly-bar-btn-green {
  background: rgba(29,107,62,.5);
  border-color: rgba(29,107,62,.6);
}
#yubly-hub-wrap .yubly-bar-btn-green:hover { background: rgba(29,107,62,.7); }
#yubly-hub-wrap .yubly-countdown {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ── Barras — layout final definitivo ──────────────────────── */
#yubly-hub-wrap .yubly-bars-wrap { margin-top: 8px; }

#yubly-hub-wrap .yubly-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  flex-wrap: nowrap;
}
#yubly-hub-wrap .yubly-bar + .yubly-bar {
  border-top: 1px solid rgba(255,255,255,.06);
}
#yubly-hub-wrap .yubly-bar-yellow {
  background: rgba(234,179,8,.15);
  color: #fde68a;
}
#yubly-hub-wrap .yubly-bar-red {
  background: rgba(239,68,68,.15);
  color: #fca5a5;
}
#yubly-hub-wrap .yubly-bar-icon { flex-shrink: 0; }
#yubly-hub-wrap .yubly-bar-text {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}
#yubly-hub-wrap .yubly-bar-action {
  margin-left: auto;
  flex-shrink: 0;
}
#yubly-hub-wrap .yubly-bar-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
#yubly-hub-wrap .yubly-bar-btn:hover { background: rgba(255,255,255,.25); }
#yubly-hub-wrap .yubly-bar-btn-green {
  background: rgba(29,107,62,.5);
  border-color: rgba(29,107,62,.6);
}
#yubly-hub-wrap .yubly-bar-btn-green:hover { background: rgba(29,107,62,.7); }
#yubly-hub-wrap .yubly-countdown {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════
   YUBLY HUB — DESKTOP RESPONSIVO
   Adicionado em v2.6.0
   Mobile first mantido — estas regras só ativam acima de 768px
   ══════════════════════════════════════════════════════════════ */

/* ── Isolamento completo do tema (GeneratePress + Elementor) ── */
body:has(#yubly-hub-wrap) .site-header,
body:has(#yubly-hub-wrap) .site-footer,
body:has(#yubly-hub-wrap) .entry-header,
body:has(#yubly-hub-wrap) .entry-footer,
body:has(#yubly-hub-wrap) nav.main-navigation,
body:has(#yubly-hub-wrap) .generate-back-to-top,
body:has(#yubly-hub-wrap) .elementor-location-header,
body:has(#yubly-hub-wrap) .elementor-location-footer {
  display: none !important;
}

body:has(#yubly-hub-wrap) main,
body:has(#yubly-hub-wrap) #main,
body:has(#yubly-hub-wrap) #primary,
body:has(#yubly-hub-wrap) #page,
body:has(#yubly-hub-wrap) .site,
body:has(#yubly-hub-wrap) .inside-article,
body:has(#yubly-hub-wrap) article,
body:has(#yubly-hub-wrap) .entry-content,
body:has(#yubly-hub-wrap) .elementor-section-wrap,
body:has(#yubly-hub-wrap) .elementor-widget-container,
body:has(#yubly-hub-wrap) .elementor-column-wrap,
body:has(#yubly-hub-wrap) .elementor-widget-wrap,
body:has(#yubly-hub-wrap) .e-con,
body:has(#yubly-hub-wrap) .e-con-inner {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Full width no desktop (escapa do container do tema) ─────── */
@media (min-width: 501px) {
  #yubly-hub-wrap {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    box-shadow: none;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  /* Telas de login/cadastro/upgrade: centraliza o formulário */
  #yubly-hub-wrap.yubly-screen-login,
  #yubly-hub-wrap.yubly-screen-upgrade {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #yubly-hub-wrap.yubly-screen-login .yubly-form,
  #yubly-hub-wrap.yubly-screen-login .yubly-logo-center,
  #yubly-hub-wrap.yubly-screen-login .yubly-tagline,
  #yubly-hub-wrap.yubly-screen-login .yubly-link-forgot,
  #yubly-hub-wrap.yubly-screen-login .yubly-divider-text,
  #yubly-hub-wrap.yubly-screen-login .yubly-btn-trial,
  #yubly-hub-wrap.yubly-screen-login .yubly-trial-info,
  #yubly-hub-wrap.yubly-screen-login .yubly-form-desc,
  #yubly-hub-wrap.yubly-screen-login .yubly-notice {
    max-width: 420px;
    width: 100%;
  }
}

/* ── Tablet (768px) ───────────────────────────────────────────── */
@media (min-width: 768px) {

  /* Header: mais respiro, logo maior */
  #yubly-hub-wrap .yubly-header {
    padding: 28px 48px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  #yubly-hub-wrap .yubly-logo {
    font-size: 32px;
  }

  #yubly-hub-wrap .yubly-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  #yubly-hub-wrap .yubly-user-name {
    font-size: 14px;
  }

  /* Barras de aviso */
  #yubly-hub-wrap .yubly-bars-wrap {
    margin-top: 12px;
  }

  #yubly-hub-wrap .yubly-bar {
    padding: 12px 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Tabs */
  #yubly-hub-wrap .yubly-tabs {
    padding: 24px 48px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Catálogo */
  #yubly-hub-wrap .yubly-catalog {
    padding: 24px 0 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  #yubly-hub-wrap .yubly-section {
    margin-bottom: 32px;
  }

  #yubly-hub-wrap .yubly-section-title {
    font-size: 12px;
    padding: 0 48px;
    margin-bottom: 16px;
  }

  /* Grid no lugar de scroll horizontal */
  #yubly-hub-wrap .yubly-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 4px 48px 12px;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  /* Cards maiores no tablet */
  #yubly-hub-wrap .yubly-card {
    width: 100%;
    flex-shrink: unset;
    scroll-snap-align: unset;
  }

  #yubly-hub-wrap .yubly-card-name   { font-size: 13px; }
  #yubly-hub-wrap .yubly-card-subtitle { font-size: 11px; }
}

/* ── Desktop (1024px) ─────────────────────────────────────────── */
@media (min-width: 1024px) {

  /* 5 cards por linha no desktop */
  #yubly-hub-wrap .yubly-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

  #yubly-hub-wrap .yubly-header { padding: 32px 64px 20px; }
  #yubly-hub-wrap .yubly-bar    { padding: 12px 64px; }
  #yubly-hub-wrap .yubly-section-title { padding: 0 64px; }

  #yubly-hub-wrap .yubly-catalog {
    padding: 28px 0 56px;
  }

  #yubly-hub-wrap .yubly-row {
    padding: 4px 64px 16px;
  }

  #yubly-hub-wrap .yubly-tabs {
    padding: 28px 64px 0;
  }

  #yubly-hub-wrap .yubly-card-name     { font-size: 14px; }
  #yubly-hub-wrap .yubly-card-subtitle { font-size: 12px; }
  #yubly-hub-wrap .yubly-card-info     { padding: 10px 12px 12px; }
}

/* ── Wide (1400px) ────────────────────────────────────────────── */
@media (min-width: 1400px) {

  /* 6 cards por linha em telas muito grandes */
  #yubly-hub-wrap .yubly-row {
    grid-template-columns: repeat(6, 1fr);
  }

  #yubly-hub-wrap .yubly-header,
  #yubly-hub-wrap .yubly-catalog,
  #yubly-hub-wrap .yubly-bars-wrap .yubly-bar,
  #yubly-hub-wrap .yubly-tabs {
    max-width: 1400px;
  }
}

/* ── Hover maior no desktop ───────────────────────────────────── */
@media (min-width: 768px) {
  #yubly-hub-wrap .yubly-card {
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
  }
  #yubly-hub-wrap .yubly-card-active:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow:
      0 24px 48px rgba(6,20,50,.65),
      0 8px 16px rgba(6,20,50,.4),
      inset 0 1px 0 rgba(255,255,255,.3),
      0 0 50px 10px color-mix(in srgb, var(--card-color, #3B82F6) 70%, transparent);
    z-index: 10;
    position: relative;
  }
  #yubly-hub-wrap .yubly-card-active:active {
    transform: scale(.97);
  }
}

/* ── Card PWA de instalação ───────────────────────────────────── */
#yubly-hub-wrap .yubly-pwa-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 24px 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(55,138,221,.2), rgba(24,95,165,.15));
  border: 1px solid rgba(55,138,221,.35);
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(55,138,221,.15),
              inset 0 1px 0 rgba(255,255,255,.1);
  animation: ylive-fi .4s ease;
}
#yubly-hub-wrap .yubly-pwa-card:active { transform: scale(.98); }

#yubly-hub-wrap .yubly-pwa-icon {
  font-size: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(55,138,221,.4));
}

#yubly-hub-wrap .yubly-pwa-info {
  flex: 1;
  min-width: 0;
}

#yubly-hub-wrap .yubly-pwa-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

#yubly-hub-wrap .yubly-pwa-sub {
  font-size: 11px;
  color: #6a9fd4;
  margin-top: 2px;
  font-weight: 600;
}

#yubly-hub-wrap .yubly-pwa-btn {
  background: linear-gradient(135deg, #378ADD, #185FA5);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(55,138,221,.4),
              inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .1s, box-shadow .1s;
  flex-shrink: 0;
}
#yubly-hub-wrap .yubly-pwa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(55,138,221,.5), inset 0 1px 0 rgba(255,255,255,.2);
}

/* Desktop: card mais largo */
@media (min-width: 768px) {
  #yubly-hub-wrap .yubly-pwa-card {
    margin: 20px 48px 12px;
    padding: 16px 20px;
  }
}
@media (min-width: 1024px) {
  #yubly-hub-wrap .yubly-pwa-card {
    margin: 20px 64px 12px;
  }
}

/* ── Modal iOS ────────────────────────────────────────────────── */
#yubly-hub-wrap .yubly-ios-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 24px;
  animation: ylive-fi .25s ease;
}

#yubly-hub-wrap .yubly-ios-modal-box {
  background: linear-gradient(160deg, #0d1f3c 0%, #1a3a6b 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 28px 24px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 -8px 40px rgba(0,0,0,.4),
              inset 0 1px 0 rgba(255,255,255,.1);
}

#yubly-hub-wrap .yubly-ios-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #6a9fd4;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
#yubly-hub-wrap .yubly-ios-close:hover { background: rgba(255,255,255,.25); }

#yubly-hub-wrap .yubly-ios-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 12px;
}

#yubly-hub-wrap .yubly-ios-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

#yubly-hub-wrap .yubly-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#yubly-hub-wrap .yubly-ios-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  color: #a8c8f0;
  line-height: 1.4;
}

#yubly-hub-wrap .yubly-ios-step strong { color: #fff; }

#yubly-hub-wrap .yubly-ios-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #378ADD, #185FA5);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(55,138,221,.4);
}

#yubly-hub-wrap .yubly-ios-share {
  font-size: 18px;
  color: #378ADD;
}

@keyframes ylive-fi {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   Yubly — Animações de entrada
   Todas as animações respeitam prefers-reduced-motion.
   ══════════════════════════════════════════════════════════════ */

@keyframes yubly-logo-in {
  from { opacity: 0; transform: scale(.75); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes yubly-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes yubly-slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes yubly-card-in {
  from { opacity: 0; transform: scale(.88) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {

  /* ── Login: sequência de entrada ────────────────────────── */
  #yubly-hub-wrap.yubly-screen-login .yubly-logo-center,
  #yubly-hub-wrap.yubly-screen-login .yubly-logo-img--auth {
    animation: yubly-logo-in 420ms cubic-bezier(.34,1.4,.64,1) both;
  }
  #yubly-hub-wrap.yubly-screen-login .yubly-tagline {
    animation: yubly-fade-up 320ms ease-out both;
    animation-delay: 160ms;
  }
  #yubly-hub-wrap.yubly-screen-login .yubly-notice {
    animation: yubly-fade-up 280ms ease-out both;
    animation-delay: 220ms;
  }
  #yubly-hub-wrap.yubly-screen-login .yubly-form {
    animation: yubly-fade-up 320ms ease-out both;
    animation-delay: 260ms;
  }
  #yubly-hub-wrap.yubly-screen-login .yubly-link-forgot {
    animation: yubly-fade-up 280ms ease-out both;
    animation-delay: 380ms;
  }
  #yubly-hub-wrap.yubly-screen-login .yubly-divider-text {
    animation: yubly-fade-up 260ms ease-out both;
    animation-delay: 420ms;
  }
  #yubly-hub-wrap.yubly-screen-login .yubly-btn-trial {
    animation: yubly-fade-up 300ms ease-out both;
    animation-delay: 460ms;
  }

  /* ── Hub: sequência de entrada ──────────────────────────── */
  #yubly-hub-wrap .yubly-header {
    animation: yubly-slide-down 380ms cubic-bezier(.25,.8,.25,1) both;
  }
  #yubly-hub-wrap .yubly-bars-wrap {
    animation: yubly-fade-up 300ms ease-out both;
    animation-delay: 180ms;
  }
  #yubly-hub-wrap .yubly-tabs {
    animation: yubly-fade-up 300ms ease-out both;
    animation-delay: 220ms;
  }
  #yubly-hub-wrap .yubly-catalog {
    animation: yubly-fade-up 300ms ease-out both;
    animation-delay: 260ms;
  }

  /* Cards escalonados por posição */
  #yubly-hub-wrap .yubly-card:nth-child(1) { animation: yubly-card-in 340ms cubic-bezier(.34,1.2,.64,1) both; animation-delay: 300ms; }
  #yubly-hub-wrap .yubly-card:nth-child(2) { animation: yubly-card-in 340ms cubic-bezier(.34,1.2,.64,1) both; animation-delay: 360ms; }
  #yubly-hub-wrap .yubly-card:nth-child(3) { animation: yubly-card-in 340ms cubic-bezier(.34,1.2,.64,1) both; animation-delay: 420ms; }
  #yubly-hub-wrap .yubly-card:nth-child(4) { animation: yubly-card-in 340ms cubic-bezier(.34,1.2,.64,1) both; animation-delay: 480ms; }
  #yubly-hub-wrap .yubly-card:nth-child(5) { animation: yubly-card-in 340ms cubic-bezier(.34,1.2,.64,1) both; animation-delay: 540ms; }
  #yubly-hub-wrap .yubly-card:nth-child(6) { animation: yubly-card-in 340ms cubic-bezier(.34,1.2,.64,1) both; animation-delay: 600ms; }
  #yubly-hub-wrap .yubly-card:nth-child(7) { animation: yubly-card-in 340ms cubic-bezier(.34,1.2,.64,1) both; animation-delay: 660ms; }
  #yubly-hub-wrap .yubly-card:nth-child(8) { animation: yubly-card-in 340ms cubic-bezier(.34,1.2,.64,1) both; animation-delay: 720ms; }

}

/* ── Loading no botão Entrar ──────────────────────────────────── */
@keyframes yubly-spin {
  to { transform: rotate(360deg); }
}

#yubly-hub-wrap .yubly-btn-primary.yubly-btn-loading {
  opacity: .85;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
  color: transparent;
}

#yubly-hub-wrap .yubly-btn-primary.yubly-btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: yubly-spin 650ms linear infinite;
}

/* ── Overrides de animação para interação (devem ficar APÓS as nth-child) ── */
@media (prefers-reduced-motion: no-preference) {
  #yubly-hub-wrap .yubly-card-active:hover {
    animation: none;
    transform: translateY(-8px) scale(1.15);
    z-index: 10;
    box-shadow:
      0 20px 40px rgba(6,20,50,.6),
      0 6px 12px rgba(6,20,50,.35),
      inset 0 1px 0 rgba(255,255,255,.25),
      0 0 40px 6px color-mix(in srgb, var(--card-color, #1a2a4a) 55%, transparent);
  }
  #yubly-hub-wrap .yubly-card-active:active,
  #yubly-hub-wrap .yubly-card-active.yubly-touching {
    animation: none;
    transform: scale(.93);
    transition: transform 80ms ease-out, box-shadow 80ms ease-out;
    box-shadow:
      0 2px 8px rgba(6,20,50,.5),
      0 1px 2px rgba(6,20,50,.4),
      inset 0 1px 0 rgba(255,255,255,.1);
  }
}

/* ── Setas desktop — só visíveis acima de 600px ─────────────────── */
@media (min-width: 600px) {
  #yubly-hub-wrap .yubly-arrow {
    display: flex;
  }
  /* No desktop o fade de borda não é necessário */
  #yubly-hub-wrap .yubly-row-wrap::after {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   Yubly — Partículas animadas de fundo
   ══════════════════════════════════════════════════════════════ */

.yubly-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

@keyframes yubly-twinkle-a {
  0%,100% { opacity: .15; transform: scale(1); }
  50%      { opacity: .9;  transform: scale(1.3); }
}
@keyframes yubly-twinkle-b {
  0%,100% { opacity: .4;  transform: scale(1.1); }
  40%      { opacity: .05; transform: scale(.8); }
}
@keyframes yubly-twinkle-c {
  0%,100% { opacity: .6;  transform: scale(1); }
  60%      { opacity: .1;  transform: scale(.9); }
}
@keyframes yubly-drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(3px, -4px); }
  50%  { transform: translate(-2px, 3px); }
  75%  { transform: translate(4px, 2px); }
  100% { transform: translate(0, 0); }
}
@keyframes yubly-drift-b {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-4px, 3px); }
  66%  { transform: translate(3px, -2px); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .yubly-particle[data-type="twinkle-a"] {
    animation: yubly-twinkle-a var(--dur, 4s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
  }
  .yubly-particle[data-type="twinkle-b"] {
    animation: yubly-twinkle-b var(--dur, 6s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
  }
  .yubly-particle[data-type="twinkle-c"] {
    animation: yubly-twinkle-c var(--dur, 5s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
  }
  .yubly-particle[data-type="drift"] {
    animation:
      yubly-drift var(--dur, 10s) ease-in-out infinite,
      yubly-twinkle-a calc(var(--dur, 10s) * .4) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
  }
  .yubly-particle[data-type="drift-b"] {
    animation:
      yubly-drift-b var(--dur, 12s) ease-in-out infinite,
      yubly-twinkle-c calc(var(--dur, 12s) * .35) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
  }
}

/* ════════════════════════════════════════════════════════════════
   Sprint Avatar — Fatia 4
   Avatar clicável no header + modal de seleção
   ════════════════════════════════════════════════════════════════ */

/* Avatar real no header (clicável — substitui as iniciais) */
#yubly-hub-wrap .yubly-avatar-clickable {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform .15s ease;
  background: transparent;
}
#yubly-hub-wrap .yubly-avatar-clickable:hover { transform: scale(1.08); }
#yubly-hub-wrap .yubly-avatar-clickable:active { transform: scale(.95); }
#yubly-hub-wrap .yubly-avatar-clickable .yubly-av-bg {
  position: absolute; inset: 0;
  border-radius: 50%;
}
#yubly-hub-wrap .yubly-avatar-clickable .yubly-av-img {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center bottom;
  /* sem padding embaixo — colado no fundo (igual à engine) */
  padding: 1px 1px 0 1px;
  box-sizing: border-box;
}

/* Modal — overlay e box */
#yubly-hub-wrap .yubly-av-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 4, 20, .72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  animation: yubly-av-fade .18s ease;
}
#yubly-hub-wrap .yubly-av-modal-overlay.open { display: flex; }
#yubly-hub-wrap .yubly-av-modal-box {
  background: linear-gradient(180deg, #2a1f4a, #1a1530);
  border: 1px solid rgba(155,92,246,.35);
  border-radius: 18px;
  padding: 28px 24px 22px;
  max-width: 420px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  animation: yubly-av-pop .26s cubic-bezier(.34,1.4,.64,1);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
#yubly-hub-wrap .yubly-av-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #d4c5e8;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  padding: 0;
}
#yubly-hub-wrap .yubly-av-modal-close:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}

#yubly-hub-wrap .yubly-av-modal-box h2 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 0 0 18px;
  letter-spacing: .3px;
}

#yubly-hub-wrap .yubly-av-preview-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

#yubly-hub-wrap .yubly-av-section-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px;
}

/* Sprint Avatar — Refinamento: carrosséis horizontais (espelha o Live).
   Wrapper com setas; setas só aparecem em desktop quando há overflow. */
#yubly-hub-wrap .yubly-av-carousel {
  position: relative;
  margin-bottom: 22px;
}

/* Linha de personagens — flex horizontal scrollável */
#yubly-hub-wrap .yubly-av-chars {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  padding: 4px 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
  -webkit-overflow-scrolling: touch;
}
#yubly-hub-wrap .yubly-av-chars::-webkit-scrollbar { height: 6px; }
#yubly-hub-wrap .yubly-av-chars::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 3px;
}
#yubly-hub-wrap .yubly-av-chars::-webkit-scrollbar-track { background: transparent; }

#yubly-hub-wrap .yubly-av-char-btn {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 4px;
  transition: border-color .15s, background .15s, transform .12s;
}
#yubly-hub-wrap .yubly-av-char-btn:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}
#yubly-hub-wrap .yubly-av-char-btn.selected {
  border-color: #fbbf24;
  background: rgba(251,191,36,.12);
}
#yubly-hub-wrap .yubly-av-char-btn img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* Linha de cores — também horizontal */
#yubly-hub-wrap .yubly-av-colors {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  padding: 6px 4px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
  -webkit-overflow-scrolling: touch;
}
#yubly-hub-wrap .yubly-av-colors::-webkit-scrollbar { height: 6px; }
#yubly-hub-wrap .yubly-av-colors::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 3px;
}
#yubly-hub-wrap .yubly-av-colors::-webkit-scrollbar-track { background: transparent; }

#yubly-hub-wrap .yubly-av-color-btn {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .12s, border-color .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
#yubly-hub-wrap .yubly-av-color-btn:hover { transform: scale(1.12); }
#yubly-hub-wrap .yubly-av-color-btn.selected {
  border-color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 4px 12px rgba(0,0,0,.4);
}
#yubly-hub-wrap .yubly-av-color-btn[data-color-slug="branco"] {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.25);
}

/* Setas dos carrosséis — só desktop (>= 768px) */
#yubly-hub-wrap .yubly-av-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(20,10,45,.92);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s, transform .12s;
}
#yubly-hub-wrap .yubly-av-arrow:hover {
  background: rgba(155,92,246,.6);
  transform: translateY(-50%) scale(1.08);
}
#yubly-hub-wrap .yubly-av-arrow.left  { left: -4px; }
#yubly-hub-wrap .yubly-av-arrow.right { right: -4px; }
#yubly-hub-wrap .yubly-av-arrow svg { width: 14px; height: 14px; }
@media (min-width: 768px) {
  #yubly-hub-wrap .yubly-av-arrow.visible { display: inline-flex; }
}

/* Botões de ação */
#yubly-hub-wrap .yubly-av-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
#yubly-hub-wrap .yubly-av-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .12s, opacity .15s, box-shadow .15s;
  font-family: inherit;
}
#yubly-hub-wrap .yubly-av-btn:active { transform: scale(.97); }
#yubly-hub-wrap .yubly-av-btn-random {
  background: rgba(255,255,255,.08);
  color: #d4c5e8;
  border: 1px solid rgba(255,255,255,.18);
}
#yubly-hub-wrap .yubly-av-btn-random:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}
#yubly-hub-wrap .yubly-av-btn-save {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
}
#yubly-hub-wrap .yubly-av-btn-save:hover { box-shadow: 0 6px 18px rgba(34,197,94,.5); }
#yubly-hub-wrap .yubly-av-btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

#yubly-hub-wrap .yubly-av-empty {
  color: rgba(255,255,255,.6);
  text-align: center;
  font-size: 13px;
  font-style: italic;
  padding: 14px;
}

@keyframes yubly-av-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes yubly-av-pop {
  0%   { opacity: 0; transform: scale(.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobile */
@media (max-width: 480px) {
  #yubly-hub-wrap .yubly-av-modal-box {
    padding: 22px 16px 18px;
  }
  #yubly-hub-wrap .yubly-av-color-btn {
    width: 34px; height: 34px;
  }
}
