body {
  background: #0B0B0F;
}
.wp-block-group.is-style-card,
.nupass-card {
  background: #14141B;
  border-radius: 20px;
}
.nupass-shell {
  max-width: 1380px;
  margin: 0 auto;
}

.nupass-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}

.nupass-header-row {
  gap: 1rem;
}

.nupass-header-brand {
  gap: 0.75rem;
  min-width: max-content;
}

.nupass-main-nav {
  flex: 1 1 auto;
  justify-content: center;
}

.nupass-main-nav .wp-block-navigation-item__content {
  font-weight: 500;
  opacity: 0.95;
}

.nupass-header-actions-shell {
  min-width: max-content;
  gap: 0.75rem;
}

.nupass-header-actions-mobile-wrap {
  display: none;
}

.nupass-header-actions-desktop-wrap,
.nupass-header-actions-mobile-wrap {
  margin: 0;
}

.nupass-header-actions-desktop-wrap .nupass-header-actions,
.nupass-header-actions-mobile-wrap .nupass-mobile-header-actions {
  margin: 0;
}

@media (min-width: 961px) {
  .nupass-header-actions-mobile-wrap,
  .nupass-mobile-header-actions {
    display: none !important;
  }

  .nupass-header-actions-desktop-wrap,
  .nupass-header-actions {
    display: flex !important;
  }
}

@media (max-width: 960px) {
  .nupass-header-row {
    flex-wrap: nowrap;
  }

  .nupass-main-nav {
    justify-content: flex-end;
  }

  .nupass-header-actions-desktop-wrap,
  .nupass-header-actions {
    display: none !important;
  }

  .nupass-header-actions-mobile-wrap,
  .nupass-mobile-header-actions {
    display: flex !important;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .nupass-header-brand .wp-block-site-title {
    display: none;
  }
}

/* =========================
   NUPASS 1.6.0 VISUAL PASS
   CSS-only refresh over the stable theme structure.
   ========================= */
body.home,
body.blog,
body.archive.post-type-archive-nupass_event {
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 0, 206, 0.12), transparent 18%),
    radial-gradient(circle at 8% 38%, rgba(255, 0, 206, 0.08), transparent 22%),
    #08080C;
}

body.home .wp-site-blocks,
body.blog .wp-site-blocks,
body.archive.post-type-archive-nupass_event .wp-site-blocks {
  overflow-x: hidden;
}

body.home .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.home .wp-block-group.is-layout-constrained,
body.blog .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.archive.post-type-archive-nupass_event .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 1180px;
}

.nupass-site-header {
  background: rgba(8, 8, 12, 0.74);
  border-bottom-color: rgba(255,255,255,0.06);
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}

.nupass-header-row {
  min-height: 74px;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}

.nupass-header-brand .custom-logo,
.nupass-header-brand img {
  border-radius: 14px;
}

.nupass-main-nav .wp-block-navigation__container {
  gap: 0.45rem;
}

.nupass-main-nav .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: rgba(245,247,250,0.92);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.nupass-main-nav .wp-block-navigation-item__content:hover,
.nupass-main-nav .current-menu-item > .wp-block-navigation-item__content,
.nupass-main-nav .current-menu-ancestor > .wp-block-navigation-item__content {
  opacity: 1;
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.nupass-header-actions-shell .wp-block-button__link,
.nupass-header-actions-shell .wp-element-button,
.nupass-header-actions-shell a.wp-element-button {
  box-shadow: 0 14px 34px rgba(255,0,206,0.22);
}

body.home main.wp-block-group {
  padding-bottom: 2.25rem;
}

/* Hero: first section on front page */
body.home main.wp-block-group > .wp-block-group:nth-of-type(1) {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 20px clamp(2.5rem, 5vw, 4rem);
  isolation: isolate;
}

body.home main.wp-block-group > .wp-block-group:nth-of-type(1)::before {
  content: '';
  position: absolute;
  right: -4%;
  top: 1rem;
  width: min(38vw, 420px);
  aspect-ratio: 1;
  border-radius: 38% 62% 56% 44% / 48% 40% 60% 52%;
  background: radial-gradient(circle at 36% 38%, rgba(255, 0, 206, 0.34), rgba(255, 0, 206, 0.08) 38%, transparent 72%);
  filter: blur(2px);
  z-index: -1;
}

body.home main.wp-block-group > .wp-block-group:nth-of-type(1) h1 {
  max-width: 11ch;
  margin: 0 auto 1rem;
  font-size: clamp(2.8rem, 8vw, 5.35rem);
  letter-spacing: -0.06em;
  line-height: 0.93;
}

body.home main.wp-block-group > .wp-block-group:nth-of-type(1) p {
  max-width: 42rem;
  margin-inline: auto;
  color: rgba(245,247,250,0.78);
  font-size: clamp(1rem, 1.9vw, 1.16rem);
}

body.home main.wp-block-group > .wp-block-group:nth-of-type(1) .wp-block-buttons {
  justify-content: center;
  margin-top: 1.35rem;
}

body.home main.wp-block-group > .wp-block-group:nth-of-type(1) .wp-block-button__link,
body.home main.wp-block-group > .wp-block-group:nth-of-type(1) .wp-element-button {
  box-shadow: 0 18px 50px rgba(255,0,206,0.24);
}

/* Shared front-page sections */
body.home main.wp-block-group > .wp-block-group:nth-of-type(2),
body.home main.wp-block-group > .wp-block-group:nth-of-type(3),
body.home main.wp-block-group > .wp-block-group:nth-of-type(4) {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 20px 2rem;
}

body.home main.wp-block-group > .wp-block-group:nth-of-type(2) > h2,
body.home main.wp-block-group > .wp-block-group:nth-of-type(3) > h2,
body.home main.wp-block-group > .wp-block-group:nth-of-type(4) > h2 {
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

/* Events grid cards */
body.home .wp-block-query .wp-block-post-template,
body.archive.post-type-archive-nupass_event .wp-block-query .wp-block-post-template {
  gap: 1.25rem;
}

body.home .wp-block-query .wp-block-post-template > *,
body.archive.post-type-archive-nupass_event .wp-block-query .wp-block-post-template > * {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(20,20,27,0.98), rgba(12,12,18,0.98));
  box-shadow: 0 22px 60px rgba(0,0,0,0.34);
}

body.home .wp-block-query .wp-block-post-featured-image,
body.archive.post-type-archive-nupass_event .wp-block-query .wp-block-post-featured-image {
  margin: 0;
}

body.home .wp-block-query .wp-block-post-featured-image img,
body.archive.post-type-archive-nupass_event .wp-block-query .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.home .wp-block-query .wp-block-post-template > * > .wp-block-group:last-child,
body.archive.post-type-archive-nupass_event .wp-block-query .wp-block-post-template > * > .wp-block-group:last-child {
  padding: 1rem 1rem 1.15rem;
}

body.home .wp-block-query h3,
body.archive.post-type-archive-nupass_event .wp-block-query h3 {
  font-size: 1.28rem;
  line-height: 1.12;
}

body.home .wp-block-query .wp-block-post-title a,
body.archive.post-type-archive-nupass_event .wp-block-query .wp-block-post-title a {
  color: var(--wp--preset--color--text);
  text-decoration: none;
}

body.home .wp-block-query .wp-block-post-title a:hover,
body.archive.post-type-archive-nupass_event .wp-block-query .wp-block-post-title a:hover {
  color: var(--wp--preset--color--primary);
}

/* Producer CTA */
body.home main.wp-block-group > .wp-block-group:nth-of-type(3) {
  padding-top: 0.5rem;
}

body.home main.wp-block-group > .wp-block-group:nth-of-type(3) > div {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,0,206,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 64px rgba(0,0,0,0.26);
}

/* FAQ */
body.home main.wp-block-group > .wp-block-group:nth-of-type(4) .wp-block-details {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

body.home main.wp-block-group > .wp-block-group:nth-of-type(4) summary {
  cursor: pointer;
  font-weight: 700;
}

/* Generic footer styling using current markup */
footer .wp-block-group.has-surface-background-color.has-background {
  max-width: 1180px;
  margin: 2.5rem auto 0;
  padding: 1.4rem 20px 2.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: transparent !important;
}

footer .wp-block-group.has-surface-background-color.has-background p {
  color: rgba(245,247,250,0.66);
}

/* Interior polish */
.single-nupass_event .wp-block-group.is-style-card,
.single-nupass_event .nupass-card,
.page .wp-block-group.is-style-card,
.page .nupass-card {
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}

@media (max-width: 960px) {
  .nupass-header-row {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .nupass-main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .nupass-main-nav .wp-block-navigation__container {
    flex-wrap: nowrap;
  }

  .nupass-main-nav .wp-block-navigation-item__content {
    white-space: nowrap;
  }

  .nupass-header-actions-shell {
    margin-left: auto;
  }
}

@media (max-width: 781px) {
  body.home main.wp-block-group > .wp-block-group:nth-of-type(1) {
    padding-top: 2.25rem;
    padding-bottom: 2.1rem;
  }

  body.home main.wp-block-group > .wp-block-group:nth-of-type(1)::before {
    width: 260px;
    right: -16%;
    top: -1.2rem;
    opacity: 0.9;
  }

  body.home .wp-block-query .wp-block-post-template,
  body.archive.post-type-archive-nupass_event .wp-block-query .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }

  body.home main.wp-block-group > .wp-block-group:nth-of-type(2),
  body.home main.wp-block-group > .wp-block-group:nth-of-type(3),
  body.home main.wp-block-group > .wp-block-group:nth-of-type(4) {
    padding-inline: 16px;
  }
}

@media (max-width: 640px) {
  .nupass-site-header {
    backdrop-filter: blur(12px);
  }

  body.home main.wp-block-group > .wp-block-group:nth-of-type(1) h1 {
    font-size: clamp(2.35rem, 12vw, 3.15rem);
  }

  body.home main.wp-block-group > .wp-block-group:nth-of-type(1) p {
    font-size: 1rem;
  }

  body.home main.wp-block-group > .wp-block-group:nth-of-type(2) > h2,
  body.home main.wp-block-group > .wp-block-group:nth-of-type(3) > h2,
  body.home main.wp-block-group > .wp-block-group:nth-of-type(4) > h2 {
    font-size: 1.65rem;
  }

  body.home main.wp-block-group > .wp-block-group:nth-of-type(1) .wp-block-buttons .wp-block-button,
  body.home main.wp-block-group > .wp-block-group:nth-of-type(1) .wp-block-buttons .wp-element-button,
  .nupass-header-actions-shell .wp-block-button,
  .nupass-header-actions-shell .wp-element-button {
    width: 100%;
  }

  .nupass-header-actions-shell .wp-block-button__link,
  .nupass-header-actions-shell .wp-element-button {
    width: 100%;
    justify-content: center;
  }
}


/* ===== v1.6.2 dashboard shell hardening ===== */
.nupass-dashboard-page-shell{
  width:100%;
}
.nupass-dashboard-page-shell,
.nupass-dashboard-page-shell > .wp-block-post-content,
.nupass-dashboard-page-shell > .entry-content{
  max-width:none !important;
}
body:has(.nupass-dashboard-productor) .wp-site-blocks > main,
body:has(.nupass-dashboard-productor) main.wp-block-group,
body:has(.nupass-dashboard-productor) .nupass-dashboard-page-shell{
  max-width:none !important;
  width:100%;
  margin:0;
  padding-left:0;
  padding-right:0;
}
body:has(.nupass-dashboard-productor) .wp-block-post-content,
body:has(.nupass-dashboard-productor) .entry-content{
  max-width:none !important;
}
body:has(.nupass-dashboard-productor) .nupass-site-header,
body:has(.nupass-dashboard-productor) header.wp-block-group.nupass-site-header{
  display:block !important;
  visibility:visible !important;
}
@media (max-width: 900px){
  body:has(.nupass-dashboard-productor) .nupass-site-header{
    position:sticky;
    top:0;
  }
}


/* ===== v1.6.3 desktop/tablet dashboard shell stabilizer ===== */
body:has(.nupass-dashboard-productor){overflow-x:hidden}
body:has(.nupass-dashboard-productor) .wp-site-blocks,
body:has(.nupass-dashboard-productor) .wp-site-blocks > main,
body:has(.nupass-dashboard-productor) .nupass-dashboard-page-shell,
body:has(.nupass-dashboard-productor) .wp-block-post-content,
body:has(.nupass-dashboard-productor) .entry-content{min-width:0;overflow-x:hidden}


/* ===== v1.6.4 home spacing + header label polish ===== */
body.home .wp-site-blocks > main,
body.blog .wp-site-blocks > main,
body.archive.post-type-archive-nupass_event .wp-site-blocks > main{
  margin-top:0 !important;
  padding-top:0 !important;
}
body.home main.wp-block-group > .wp-block-group:nth-of-type(1){
  padding-top:clamp(2rem,4vw,3rem) !important;
  padding-bottom:clamp(2rem,4vw,3rem) !important;
}
body.home main.wp-block-group > .wp-block-group:nth-of-type(2),
body.home main.wp-block-group > .wp-block-group:nth-of-type(3),
body.home main.wp-block-group > .wp-block-group:nth-of-type(4){
  padding-top:.5rem !important;
}
.nupass-main-nav .wp-block-navigation-item__content,
.nupass-header-actions-shell a,
.nupass-header-actions-shell button{
  white-space:nowrap;
}


/* ===== v1.6.5 home container + header label polish ===== */
body.home .wp-site-blocks > main.wp-block-group{max-width:1280px;margin:0 auto;padding-inline:24px;box-sizing:border-box}
body.home main.wp-block-group > .wp-block-group:nth-of-type(1),
body.home main.wp-block-group > .wp-block-group:nth-of-type(2),
body.home main.wp-block-group > .wp-block-group:nth-of-type(3),
body.home main.wp-block-group > .wp-block-group:nth-of-type(4){max-width:1120px;margin-inline:auto}
body.home main.wp-block-group > .wp-block-group:nth-of-type(1){padding-top:2.25rem;padding-bottom:2rem}
body.home main.wp-block-group > .wp-block-group:nth-of-type(2),
body.home main.wp-block-group > .wp-block-group:nth-of-type(3),
body.home main.wp-block-group > .wp-block-group:nth-of-type(4){padding-top:1.25rem;padding-bottom:1.4rem}
body.home main.wp-block-group > .wp-block-group:nth-of-type(3) > div{max-width:860px;margin-inline:auto;text-align:center}
footer .wp-block-group.has-surface-background-color.has-background{margin-top:1rem;padding-top:1rem;padding-bottom:1.5rem}
@media (min-width:1200px){body.home .wp-site-blocks > main.wp-block-group{padding-inline:32px}}
@media (max-width:781px){body.home .wp-site-blocks > main.wp-block-group{padding-inline:16px}}


/* ===== v1.6.6 mobile header cleanup ===== */
.nupass-mobile-nav-toggle{display:none}
.nupass-mobile-drawer[hidden]{display:none!important}
@media (max-width: 960px){
  .nupass-site-header{position:sticky;top:0;z-index:90}
  .nupass-header-row{min-height:64px;max-width:none;padding-inline:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:nowrap !important}
  .nupass-header-brand{flex:1 1 auto;min-width:0}
  .nupass-header-brand .wp-block-site-title{display:none !important}
  .nupass-header-brand .custom-logo,
  .nupass-header-brand img{height:28px;width:auto;max-width:130px;object-fit:contain;border-radius:0}
  .nupass-main-nav,
  .nupass-header-actions-shell,
  .nupass-header-actions-desktop-wrap,
  .nupass-header-actions-mobile-wrap{display:none !important}
  .nupass-mobile-nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.03);box-shadow:0 10px 24px rgba(0,0,0,.22);color:#fff;cursor:pointer;flex:0 0 auto}
  .nupass-mobile-nav-toggle span{display:block;width:16px;height:2px;background:#fff;border-radius:999px;margin:2px 0}

  .nupass-mobile-drawer{position:fixed;inset:0;z-index:9999}
  .nupass-mobile-drawer__backdrop{position:absolute;inset:0;background:rgba(5,5,8,.62);backdrop-filter:blur(4px);opacity:0;transition:opacity .22s ease}
  .nupass-mobile-drawer__panel{position:absolute;top:0;right:0;height:100%;width:min(88vw,360px);background:linear-gradient(180deg,rgba(13,13,18,.98),rgba(7,7,10,.995));border-left:1px solid rgba(255,255,255,.08);box-shadow:-18px 0 48px rgba(0,0,0,.36);padding:16px 16px 24px;transform:translateX(100%);transition:transform .22s ease;display:flex;flex-direction:column;overflow-y:auto}
  .nupass-mobile-drawer.is-open .nupass-mobile-drawer__backdrop{opacity:1}
  .nupass-mobile-drawer.is-open .nupass-mobile-drawer__panel{transform:translateX(0)}
  .nupass-mobile-drawer__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
  .nupass-mobile-drawer__brand{display:flex;align-items:center;gap:10px;min-width:0}
  .nupass-mobile-drawer__brand .wp-block-site-title{display:none!important}
  .nupass-mobile-drawer__brand .custom-logo,
  .nupass-mobile-drawer__brand img{height:28px;width:auto;max-width:122px;object-fit:contain;border-radius:0}
  .nupass-mobile-drawer__close{width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#fff;font-size:26px;line-height:1;cursor:pointer}
  .nupass-mobile-drawer__nav{display:flex;flex-direction:column;gap:14px}
  .nupass-mobile-drawer__group{display:flex;flex-direction:column;gap:10px}
  .nupass-mobile-drawer__group + .nupass-mobile-drawer__group{padding-top:4px}
  .nupass-mobile-drawer__link{display:flex;align-items:center;min-height:48px;padding:0 16px;border-radius:18px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.025);color:#f5f7fa;text-decoration:none;font-size:16px;font-weight:600;letter-spacing:-.01em}
  .nupass-mobile-drawer__link.is-cta{justify-content:center;min-height:52px;background:linear-gradient(180deg,#ff00ce,#e000b6);border-color:transparent;box-shadow:0 16px 36px rgba(255,0,206,.22)}
  .nupass-mobile-drawer__group.is-utility-group{margin-top:auto;padding-top:10px}
  .nupass-mobile-drawer__group.is-utility-group .nupass-mobile-drawer__link{font-size:15px;font-weight:500;min-height:44px;color:rgba(245,247,250,.88)}
  body.nupass-mobile-drawer-open{overflow:hidden}
}


/* ===== v1.6.7 desktop header center + Mis Tickets ===== */
@media (min-width: 961px){
  .nupass-header-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    column-gap:20px;
  }
  .nupass-header-brand{
    justify-self:start;
    min-width:0;
  }
  .nupass-main-nav{
    grid-column:2;
    justify-self:center;
    justify-content:center !important;
    flex:0 0 auto;
    min-width:max-content;
  }
  .nupass-header-actions-shell{
    grid-column:3;
    justify-self:end;
    margin-left:0;
    min-width:max-content;
  }
}
