/* Piranot v15 — Header (preservado do site ao vivo)
   Classes pira-* — NÃO alterar sem autorização.
   ------------------------------------------------- */

/* =============================================
   TOPBAR PRINCIPAL
   ============================================= */
.pira-top {
  background: linear-gradient(180deg, #0b3b8f 0%, #082c6b 100%);
  color: #fff;
  position: relative;
  /* Impede qualquer overflow horizontal */
  overflow-x: hidden;
  width: 100%;
}

/* Ensure header sits above nav when necessary */
.pira-top {
  z-index: 10010;
}

.pira-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .05) 0%, transparent 50%);
  pointer-events: none;
}

/* Container padrão — usado em todas as seções */
.pira-wrap {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.pira-topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  flex-wrap: nowrap;
  /* nunca quebra linha no topo */
  margin-bottom: 0;
}

.pira-top { padding-bottom: 0; }
.pira-nav { margin-top: 0; }
.pira-top + .pira-nav { margin-top: 0; }

/* evita “buraco” visual entre topbar e nav */
.pira-ad-header { display: none !important; }

.pira-topbar > * {
  /* Cada elemento na topbar tem flex defaults */
  display: flex;
  align-items: center;
}

/* =============================================
   LOGO / BRAND
   ============================================= */
.pira-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #fff;
  flex: 0 1 auto;
  /* não cresce — permite search centralizar */
  min-width: 0;
  /* permite encolher abaixo do tamanho intrínseco */
  overflow: hidden;
}

.pira-brand img,
.pira-logo {
  display: block;
  width: auto;
  max-width: 240px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 1;
}

.pira-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   HAMBURGUER (oculto no desktop)
   ============================================= */
.pira-menu-toggle {
  display: none;
  flex-direction: column;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .12);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  order: 999;
  /* sempre à direita — maior que qualquer outra coisa */
  margin-left: auto;
  z-index: 10015;
}

.pira-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Ícone X quando aberto */
.pira-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pira-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.pira-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   BUSCA
   ============================================= */
.pira-search-bar {
  flex: 1 1 auto;
  max-width: 340px;
  min-width: 0;
  margin: 0 10px;
}

.pira-search-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 0 12px;
  height: 38px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pira-search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  font-family: inherit;
}

.pira-search-input::placeholder {
  color: rgba(255, 255, 255, .6);
}

.pira-search-btn {
  background: none;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, .9);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* =============================================
   BOTÕES UTILITÁRIOS (pira-pill)
   ============================================= */
.pira-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.pira-pill {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  padding: 9px 14px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: .3px;
  height: 40px;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}

.pira-pill:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

/* =============================================
   MENU DE NAVEGAÇÃO PRINCIPAL
   ============================================= */
.pira-nav {
  border-top: 1px solid rgba(255, 255, 255, .15);
  background: linear-gradient(0deg, #0a2f73, #0b3b8f);
  overflow-x: hidden;
  width: 100%;
}

.pira-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
}

.pira-nav li {
  margin: 0;
}

.pira-nav a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 13px 14px;
  height: 44px;
  opacity: .9;
  border-radius: 4px;
  position: relative;
  transition: opacity .2s;
  white-space: nowrap;
}

.pira-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #ffd200;
  opacity: 0;
  transition: opacity .2s;
}

.pira-nav a:hover,
.pira-nav .current-menu-item>a {
  opacity: 1;
}

.pira-nav a:hover::after,
.pira-nav .current-menu-item>a::after {
  opacity: 1;
}

/* =============================================
   TICKER — ÚLTIMAS NOTÍCIAS COM EFEITO GC
   ============================================= */
.pira-trending {
  background: linear-gradient(135deg, #05204a 0%, #072d6a 100%);
  color: #fff;
  border-top: 3px solid #ffd200;
  border-bottom: 2px solid rgba(255, 210, 0, .5);
  overflow: hidden;
  position: relative;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.pira-trending::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd200, transparent);
  opacity: 0.6;
}

.pira-trending-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  overflow: visible;
  flex-wrap: nowrap;
  position: relative;
}

.pira-tag {
  background: linear-gradient(135deg, #ffd200 0%, #e6bd00 100%);
  color: #111;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 1px;
  flex-shrink: 0;
  text-transform: uppercase;
}

@keyframes pira-ticker-roll {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

.pira-ticker {
  display: flex;
  gap: 48px;
  flex: 1;
  overflow: visible;
  min-width: 0;
  position: relative;
  will-change: transform;
}

.pira-ticker a {
  color: #ffd200;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  opacity: 1;
  display: inline-block;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
  animation: pira-ticker-roll linear infinite;
  padding: 0 24px;
  position: relative;
}

.pira-ticker a:nth-child(1) { animation-duration: 12s; animation-delay: 0s; }
.pira-ticker a:nth-child(2) { animation-duration: 12s; animation-delay: -2s; }
.pira-ticker a:nth-child(3) { animation-duration: 12s; animation-delay: -4s; }
.pira-ticker a:nth-child(4) { animation-duration: 12s; animation-delay: -6s; }
.pira-ticker a:nth-child(5) { animation-duration: 12s; animation-delay: -8s; }
.pira-ticker a:nth-child(6) { animation-duration: 12s; animation-delay: -10s; }

.pira-ticker a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 210, 0, .5);
}

/* Mobile: mantém animação contínua */
@media (max-width: 767px) {
  .pira-ticker {
    gap: 24px;
    overflow: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: none;
  }

  .pira-ticker::-webkit-scrollbar {
    display: none;
  }

  .pira-ticker a {
    scroll-snap-align: none;
    max-width: none;
    font-size: 12px;
    animation-duration: 14s !important;
    padding: 0 16px;
  }
}

/* =============================================
   CHIPS DE SERVIÇO RÁPIDO
   ============================================= */
.pira-service-bar {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
  width: 100%;
}

.pira-service-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pira-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #0b3b8f;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-right: 1px solid #e5e5e5;
  text-decoration: none;
  transition: background .2s, color .2s;
  overflow: hidden;
}

.pira-chip:last-child {
  border-right: none;
}

.pira-chip:hover {
  background: #0b3b8f;
  color: #fff;
}

.pira-chip svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

/* =============================================
   OVERLAY quando menu mobile está aberto
   ============================================= */
body.menu-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 9998;
}

/* =============================================
   RESPONSIVO
   ============================================= */

/* Tablet largo (≤ 1100px) */
@media (max-width: 1100px) {
  .pira-brand img {
    max-width: 210px;
  }

  .pira-search-bar {
    max-width: 280px;
  }

  .pira-pill {
    padding: 8px 12px;
    font-size: 11px;
    height: 38px;
  }
}

/* Tablet estreito (≤ 900px) — esconde pills, mantém busca */
@media (max-width: 900px) {
  .pira-tools {
    display: none !important;
  }

  .pira-search-bar {
    max-width: 240px;
  }

  .pira-brand img {
    max-width: 190px;
    max-height: 52px;
  }
}

/* Mobile (≤ 768px) — ativa drawer lateral */
@media (max-width: 768px) {

  /* Topbar simplificada: só logo + hamburguer */
  .pira-topbar {
    padding: 12px 0;
    gap: 12px;
    justify-content: flex-start;
  }

  .pira-brand {
    flex: 1;
    max-width: 180px;
  }

  .pira-brand img {
    max-width: 180px;
    max-height: 52px;
    filter: brightness(1.15) contrast(1.2) drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
  }

  .pira-logo-text {
    font-size: 15px;
  }

  .pira-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .pira-search-bar,
  .pira-tools {
    display: none !important;
  }

  /* -----------------------------------------------
     DRAWER — usa transform (sem overflow issues)
     ----------------------------------------------- */
  .pira-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(290px, 82vw);
    height: 100vh;
    height: 100dvh;
    /* dynamic viewport height (iOS fix) */
    background: #0b3b8f;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .5);
    /* transform é a forma correta — não usa left negativo que causa overflow */
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  }

  .pira-nav.is-open {
    transform: translateX(0);
  }

  /* When closed, keep nav below header; when open, bring above */
  .pira-nav {
    z-index: 10008;
  }

  .pira-nav.is-open {
    z-index: 10020;
  }

  .pira-nav ul {
    flex-direction: column;
    padding: 80px 0 40px;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
  }

  .pira-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .pira-nav a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    height: auto;
    border-radius: 0;
    white-space: normal;
    width: 100%;
  }

  .pira-nav a::after {
    display: none;
  }

  /* Ticker menor */
  .pira-tag {
    font-size: 9px;
    padding: 4px 8px;
  }

  .pira-ticker a {
    font-size: 12px;
  }

  /* Chips: 2 colunas */
  .pira-service-chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .pira-chip {
    padding: 10px 6px;
    font-size: 10px;
  }
}

/* Mobile top banner (970x200) — only visible on small viewports */
.pira-ad-top-mobile {
  display: none;
}

@media (max-width: 768px) {
  .pira-ad-top-mobile {
    display: block;
    width: 100%;
    max-width: 970px;
    margin: 8px auto;
    height: 200px;
    overflow: hidden;
  }

  .pira-ad-top-mobile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }
}

/* Glass effect on mobile brand */
@media (max-width: 900px) {
  .pira-brand {
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 8px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Melhor visibilidade do logo no mobile */
  .pira-brand img {
    filter: brightness(1.1) contrast(1.1);
    mix-blend-mode: screen;
  }
}

/* WP admin bar — compensa o topo quando logado */
@media (min-width: 601px) {
  .admin-bar .pira-nav {
    top: 32px;
  }
}

@media (max-width: 600px) {
  .admin-bar .pira-nav {
    top: 46px;
  }
}

/* Phones pequenos (≤ 480px) */
@media (max-width: 480px) {
  .pira-topbar {
    padding: 10px 0;
    gap: 10px;
  }

  .pira-brand img {
    max-width: 130px;
    max-height: 40px;
    filter: brightness(1.15) contrast(1.2) drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
  }

  .pira-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .pira-logo-text {
    font-size: 13px;
  }

  .pira-ticker a {
    font-size: 11px;
  }

  .pira-trending-row {
    gap: 8px;
    padding: 7px 0;
  }

  .pira-chip {
    padding: 8px 4px;
    font-size: 9px;
  }

  .pira-chip svg {
    width: 15px;
    height: 15px;
  }
}

/* Phones muito pequenos (≤ 360px) */
@media (max-width: 360px) {
  .pira-topbar {
    gap: 6px;
  }

  .pira-brand img {
    max-width: 90px;
    max-height: 30px;
    filter: brightness(1.15) contrast(1.2) drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
  }

  .pira-service-chips {
    grid-template-columns: repeat(4, 1fr);
  }

  .pira-chip {
    padding: 6px 2px;
    font-size: 8px;
    gap: 2px;
  }

  .pira-chip svg {
    width: 13px;
    height: 13px;
  }
}

/* =============================================
   BLOCO 4 — PREMIUM REFINEMENTS (27 Feb 2026)
   ============================================= */

/* 1A. Premium shadow on scroll (via JS class header-scrolled) */
.pira-top.header-scrolled {
  box-shadow: 0 4px 16px rgba(11, 59, 143, 0.15);
  transition: box-shadow 0.3s ease;
}

/* 1B. Logo — margem e hover refinados */
.pira-brand img {
  height: 48px;
  margin-right: 16px;
  letter-spacing: -0.5px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.pira-brand img:hover {
  transform: scale(1.02);
}

/* 1C. Nav links com underline animado premium */
.pira-nav a {
  position: relative;
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.pira-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pira-blue, #0b3b8f);
  transition: width 0.3s ease;
}

.pira-nav a:hover::after {
  width: 100%;
}

/* 1D. Breaking ticker — gradiente fade nas bordas */
.pira-trending {
  position: relative;
  overflow: hidden;
}

.pira-trending::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
  z-index: 10;
}

.pira-trending::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
  z-index: 10;
}

/* 1E. Service chips — Premium colors, weight & hover */
.pira-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(11, 59, 143, 0.08);
  color: var(--pira-blue, #0b3b8f);
  transition: all 0.2s ease;
  cursor: pointer;
}

.pira-chip:hover {
  background: rgba(11, 59, 143, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(11, 59, 143, 0.1);
}

/* =============================================
   PREMIUM ENHANCEMENT LAYER (27 Feb 2026)
   Enhanced shadows, typography, animations
   ============================================= */

/* 2A. Header base — enhanced shadow depth */
.pira-top {
  box-shadow: 0 2px 8px rgba(11, 59, 143, 0.08);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2B. Scroll-triggered shadow enhancement via JS */
.pira-top.header-scrolled {
  box-shadow: 0 4px 20px rgba(11, 59, 143, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 2C. Premium typography — topbar */
.pira-topbar {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pira-logo-text {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: text-shadow 0.3s ease;
}

.pira-brand:hover .pira-logo-text {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 2D. Search bar — premium glass morphism */
.pira-search-wrapper {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pira-search-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 1px rgba(255, 210, 0, 0.3);
}

.pira-search-input {
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.pira-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.pira-search-wrapper:hover .pira-search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

/* 2E. Pills — premium button styling */
.pira-pill {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.pira-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.3s ease;
  z-index: -1;
}

.pira-pill:hover::before {
  left: 100%;
}

.pira-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.pira-pill:active {
  transform: translateY(0);
}

/* 2F. Nav — enhanced link styling with premium underline */
.pira-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.pira-nav a {
  font-weight: 700;
  letter-spacing: 0.3px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.85;
}

.pira-nav a:hover {
  opacity: 1;
  color: #ffd200;
}

.pira-nav a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, #ffd200 0%, rgba(255, 210, 0, 0.5) 100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scaleX(0);
  transform-origin: left;
}

.pira-nav a:hover::after,
.pira-nav .current-menu-item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.pira-nav .current-menu-item > a {
  opacity: 1;
  color: #fff;
  font-weight: 800;
}

/* 2G. Menu toggle — smooth interaction */
.pira-menu-toggle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pira-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

.pira-menu-toggle:active {
  transform: scale(0.98);
}

.pira-menu-toggle span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2H. Trending/Ticker — premium styling */
.pira-trending {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 10009;
}

.pira-trending:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pira-tag {
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 10px;
  box-shadow: 0 2px 4px rgba(255, 210, 0, 0.2);
  transition: all 0.2s ease;
}

.pira-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(255, 210, 0, 0.3);
}

.pira-ticker a {
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pira-ticker a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 210, 0, 0.6);
  transform: scale(1.02);
}

/* 2I. Service bar chips — premium refinement */
.pira-service-bar {
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.pira-service-bar:hover {
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.pira-chip {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.pira-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(11, 59, 143, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.pira-chip:hover {
  background: rgba(11, 59, 143, 0.18);
  box-shadow: 0 4px 12px rgba(11, 59, 143, 0.12);
  transform: translateY(-3px);
}

.pira-chip:hover::before {
  left: 100%;
}

.pira-chip svg {
  transition: transform 0.3s ease;
}

.pira-chip:hover svg {
  transform: scale(1.15) rotate(5deg);
}

/* 2J. Mobile drawer — premium animation */
@media (max-width: 768px) {
  .pira-nav {
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  }

  .pira-nav.is-open {
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.3);
  }

  .pira-nav a {
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.2px;
  }

  .pira-nav a:active {
    background: rgba(255, 255, 255, 0.08);
  }

  /* Remove hover underline on mobile, use background instead */
  .pira-nav a::after {
    display: none;
  }
}

/* 2K. Mobile optimizations — better touch targets */
@media (max-width: 768px) {
  .pira-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .pira-pill {
    min-height: 40px;
    min-width: 40px;
  }

  .pira-search-wrapper {
    min-height: 40px;
  }
}

/* 2L. Smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* 2M. Accessibility — focus states */
.pira-nav a:focus-visible,
.pira-pill:focus-visible,
.pira-chip:focus-visible,
.pira-search-input:focus-visible,
.pira-menu-toggle:focus-visible {
  outline: 2px solid #ffd200;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 2N. Premium spacing refinements */
.pira-topbar {
  padding: 10px 0;
  transition: padding 0.3s ease;
}

.pira-topbar > * {
  transition: flex 0.3s ease;
}

.pira-brand {
  margin-right: 4px;
  transition: all 0.3s ease;
}

.pira-brand:hover {
  filter: brightness(1.05);
}

/* 2O. Container refinement — subtle shadow on wrap */
.pira-wrap {
  transition: all 0.3s ease;
}

/* 2P. Animated gradient background (premium effect) */
.pira-top::before {
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.04;
  }
  50% {
    opacity: 0.08;
  }
}

/* 2Q. Typography hierarchy — premium font stacking */
.pira-nav a,
.pira-logo-text,
.pira-pill {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2R. Premium hover state on entire nav */
.pira-nav {
  transition: background 0.3s ease;
}

.pira-nav:hover {
  background: linear-gradient(0deg, #0a2f73, #0b3b8f);
}

/* 2S. Refined mobile topbar spacing */
@media (max-width: 768px) {
  .pira-topbar {
    padding: 12px 0;
  }

  .pira-brand {
    margin-right: 8px;
  }

  .pira-logo-text {
    font-size: 16px;
  }
}

/* 2T. Enhanced ticker fade edges with refined colors */
.pira-trending::before {
  background: linear-gradient(to right,
    rgba(5, 32, 74, 1) 0%,
    rgba(5, 32, 74, 0.8) 50%,
    transparent 100%);
}

.pira-trending::after {
  background: linear-gradient(to left,
    rgba(5, 32, 74, 1) 0%,
    rgba(5, 32, 74, 0.8) 50%,
    transparent 100%);
}

/* 2U. Smooth state transitions for interactive elements */
.pira-search-btn,
.pira-pill,
.pira-chip,
.pira-nav a {
  will-change: transform, background, box-shadow;
}

/* 2V. Premium line-height and letter-spacing */
.pira-nav a {
  line-height: 1.5;
  letter-spacing: 0.4px;
}

.pira-pill {
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.pira-ticker a {
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* 2W. Mobile drawer enhanced appearance */
@media (max-width: 768px) {
  .pira-nav {
    background: linear-gradient(180deg, #0b3b8f 0%, #082c6b 100%);
    backdrop-filter: blur(10px);
  }

  .pira-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .pira-nav a {
    padding: 16px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .pira-nav a:hover {
    background: rgba(255, 210, 0, 0.08);
    padding-left: 28px;
  }
}

/* 2X. Premium text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}