/* =========================================================
   NARIA MOBILE EXPERIENCE — responsive refinement v1
   Shared across the full site. Desktop styling remains intact.
   ========================================================= */

:root{
  --naria-mobile-gutter:14px;
  --naria-mobile-gold:#d8b84e;
  --naria-mobile-ink:#171815;
}

html{
  max-width:100%;
  overflow-x:clip;
  scroll-padding-top:82px;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  min-width:320px;
  max-width:100%;
  overflow-x:clip;
}
img,video,canvas,iframe,svg{
  max-width:100%;
}
button,a,input,select,textarea{
  -webkit-tap-highlight-color:transparent;
}
button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]{
  touch-action:manipulation;
}
:focus-visible{
  outline:2px solid var(--naria-mobile-gold,#d8b84e)!important;
  outline-offset:3px;
}
main,section,article,aside,form,fieldset,
.grid>*,.cols>*,.s-grid>*,.shop-product-grid>*{
  min-width:0;
}
pre,table{
  max-width:100%;
}
pre{
  overflow-x:auto;
}
table{
  display:block;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
input,select,textarea{
  max-width:100%;
}
button:disabled,[aria-disabled="true"]{
  cursor:not-allowed;
}

@media(max-width:1180px){
  header.topbar{
    position:relative;
    z-index:150!important;
    width:min(1180px,calc(100% - 32px))!important;
    min-width:0!important;
    height:66px!important;
    margin-inline:auto!important;
    padding:0!important;
    gap:10px!important;
  }
  .topbar>.brand{
    min-width:0!important;
    max-width:calc(100% - 56px)!important;
    flex:0 1 auto!important;
  }
  .topbar>.brand .brand-logo{
    display:block!important;
    width:auto!important;
    max-width:48px!important;
    height:46px!important;
    object-fit:contain!important;
  }
  .topbar>.menu{
    display:inline-flex!important;
    flex:0 0 44px!important;
    width:44px!important;
    height:44px!important;
    min-height:44px!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid #d8b84e45!important;
    border-radius:9px!important;
    background:#1b1c18!important;
    color:#f1df9a!important;
    font-size:23px!important;
    line-height:1!important;
    cursor:pointer!important;
    order:3!important;
  }
  .topbar>.nav{
    display:none!important;
    position:absolute!important;
    top:calc(100% + 1px)!important;
    right:0!important;
    left:0!important;
    z-index:200!important;
    width:100%!important;
    max-width:none!important;
    max-height:min(72dvh,560px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    padding:8px 12px!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:0!important;
    border:1px solid #d8b84e45!important;
    border-radius:0 0 13px 13px!important;
    background:rgba(27,28,24,.98)!important;
    box-shadow:0 18px 38px #000b!important;
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    white-space:normal!important;
  }
  .topbar>.nav.open{
    display:flex!important;
  }
  .topbar>.nav>a{
    display:flex!important;
    width:100%!important;
    min-height:48px!important;
    padding:10px 7px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:11px!important;
    border-bottom:1px solid #ffffff12!important;
    border-radius:0!important;
    color:#e7e2d5!important;
    font-size:.86rem!important;
    line-height:1.6!important;
    white-space:normal!important;
  }
  .topbar>.nav>a:last-child{
    border-bottom:0!important;
  }
  .topbar>.nav .nav-icon,
  .topbar>.nav .nav-icon svg{
    width:19px!important;
    height:19px!important;
    flex:0 0 19px!important;
  }
  .topbar>.nav .nav-auth-mobile{
    display:flex!important;
    align-self:stretch!important;
    justify-content:center!important;
    margin:8px 0 2px!important;
    border:1px solid #d8b84e75!important;
    border-radius:8px!important;
    color:#e9cf73!important;
  }
  .topbar>.nav-cta{
    display:none!important;
  }
}

@media(max-width:760px){
  html{
    scroll-padding-top:72px;
  }
  body:has(.mobile-bar){
    padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))!important;
  }
  body:has(.shop-mobile-bar){
    padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;
  }
  body:has(.mobile-ticket-bar){
    padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;
  }
  .mobile-bar,
  .shop-mobile-bar,
  .mobile-ticket-bar{
    position:fixed!important;
    right:0!important;
    left:0!important;
    bottom:0!important;
    z-index:180!important;
    box-sizing:border-box!important;
    padding-left:max(10px,env(safe-area-inset-left,0px))!important;
    padding-right:max(10px,env(safe-area-inset-right,0px))!important;
    padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    box-shadow:0 -10px 30px #0006!important;
  }
  .mobile-bar a,
  .mobile-bar button,
  .shop-mobile-bar a,
  .shop-mobile-bar button,
  .mobile-ticket-bar a,
  .mobile-ticket-bar button{
    min-width:0!important;
    min-height:44px!important;
    max-width:100%!important;
    padding:9px 7px!important;
    font-size:clamp(.62rem,2.7vw,.76rem)!important;
    line-height:1.45!important;
    white-space:normal!important;
    text-align:center!important;
    overflow-wrap:anywhere;
  }
  .mobile-bar{
    gap:8px!important;
  }
  .mobile-ticket-bar{
    gap:10px!important;
    min-height:70px!important;
    justify-content:space-between!important;
  }
  .mobile-ticket-bar>div{
    min-width:0!important;
  }
  .mobile-ticket-bar button{
    flex:0 0 auto!important;
    min-width:128px!important;
  }
  .wrap{
    width:calc(100% - 28px)!important;
    max-width:1180px!important;
  }
  .topbar.wrap{
    width:calc(100% - 28px)!important;
  }
  .section-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    flex-wrap:wrap!important;
    gap:10px!important;
  }
  .section-head>*{
    min-width:0!important;
    max-width:100%!important;
  }
  .footer,footer{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    padding:22px 14px!important;
    text-align:center!important;
  }
  .footer a,footer a{
    overflow-wrap:anywhere;
  }
  .btn,.shop-btn,.ticket-primary-btn,.ticket-outline-btn,
  .concert-ticket-cta,.shop-add-btn,.ticket-print-btn{
    min-height:44px!important;
    max-width:100%!important;
    justify-content:center!important;
    white-space:normal!important;
    line-height:1.55!important;
  }
  input:not([type="checkbox"]):not([type="radio"]),
  select,textarea{
    min-height:44px;
    font-size:16px!important;
    max-width:100%;
  }
  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hero,.hero-grid,.auth-shell,.cols.eq,.s-grid{
    min-width:0;
  }
  .ng-launcher{
    bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;
  }
  .ng-panel{
    bottom:calc(142px + env(safe-area-inset-bottom,0px))!important;
    max-height:calc(100dvh - 170px)!important;
  }
}

@media(max-width:560px){
  :root{
    --naria-mobile-gutter:12px;
  }
  .wrap{
    width:calc(100% - 24px)!important;
  }
  .topbar.wrap{
    width:calc(100% - 24px)!important;
    height:64px!important;
  }
  .topbar>.brand .brand-logo{
    height:44px!important;
    max-width:44px!important;
  }
  .topbar>.menu{
    width:42px!important;
    height:42px!important;
    flex-basis:42px!important;
  }
  h1{
    overflow-wrap:anywhere;
  }
  .section-head h1,.section-head h2{
    line-height:1.55;
  }
  .mobile-bar{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .mobile-bar a,.mobile-bar button{
    min-height:44px!important;
    border-radius:8px!important;
  }
  .shop-mobile-bar{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .shop-mobile-bar a,.shop-mobile-bar button{
    min-height:44px!important;
    gap:4px!important;
    padding:7px 4px!important;
    font-size:.62rem!important;
  }
  .mobile-ticket-bar{
    padding-top:8px!important;
    gap:8px!important;
  }
  .mobile-ticket-bar button{
    min-width:116px!important;
    padding-inline:10px!important;
  }
  .shop-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  .shop-product-grid>*{
    min-width:0!important;
  }
  .shop-product-name,.shop-product-desc{
    overflow-wrap:anywhere;
  }
  .shop-product-actions-top{
    max-width:calc(100% - 10px);
  }
  .auth-shell,.auth-main,.profile{
    min-width:0!important;
    max-width:100%!important;
  }
  .auth-shell input,.auth-shell button{
    width:100%;
    max-width:100%;
  }
  .ticket-flow-page{
    width:calc(100% - 24px)!important;
    padding-top:22px!important;
    padding-bottom:38px!important;
  }
  .flow-card,.flow-layout,.guest-ticket-card{
    min-width:0!important;
    max-width:100%!important;
  }
  .guest-ticket-fields{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .guest-ticket-fields input{
    width:100%!important;
  }
  .payment-actions{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .payment-actions>*{
    width:100%!important;
  }
  .ticket-card-actions{
    align-items:stretch!important;
  }
  .ticket-card-actions>*{
    width:100%!important;
  }
  .ticket-seat-map-wrap,.mini-seat-plan{
    min-width:0!important;
    max-width:100%!important;
  }
  .instrument-page,.instrument-detail,.instrument-content{
    min-width:0!important;
    max-width:100%!important;
  }
  audio{
    width:100%!important;
    max-width:100%!important;
  }
}

@media(max-width:380px){
  .wrap,.topbar.wrap{
    width:calc(100% - 20px)!important;
  }
  .topbar{
    gap:7px!important;
  }
  .topbar>.brand .brand-logo{
    height:40px!important;
    max-width:40px!important;
  }
  .topbar>.menu{
    width:40px!important;
    height:40px!important;
    flex-basis:40px!important;
  }
  .mobile-bar a,.mobile-bar button{
    font-size:.64rem!important;
    gap:5px!important;
    padding-inline:5px!important;
  }
  .shop-mobile-bar a,.shop-mobile-bar button{
    font-size:.57rem!important;
  }
  .mobile-ticket-bar button{
    min-width:106px!important;
    font-size:.62rem!important;
  }
  .shop-product-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .shop-product-image{
    aspect-ratio:1.35/1!important;
  }
  .section-head{
    gap:8px!important;
  }
}

@media(max-height:520px) and (orientation:landscape){
  .topbar{
    height:58px!important;
  }
  .topbar>.nav{
    max-height:calc(100dvh - 66px)!important;
  }
  .mobile-bar,.shop-mobile-bar,.mobile-ticket-bar{
    padding-top:5px!important;
    padding-bottom:calc(5px + env(safe-area-inset-bottom,0px))!important;
  }
  .mobile-bar a,.mobile-bar button,
  .shop-mobile-bar a,.shop-mobile-bar button,
  .mobile-ticket-bar a,.mobile-ticket-bar button{
    min-height:38px!important;
  }
}


/* Larger, predictable tap targets for small but frequently used controls */
@media(max-width:760px){
  .chip,.tab,
  .shop-header-cart,.shop-mobile-filter-trigger,.shop-close,
  .ns-btn,.eye,
  #zoomIn,#zoomOut,
  .map-zoom button,
  .ticket-modal-close,.modal-close,
  .shop-filter-group label{
    min-height:44px!important;
  }
  .chip,.tab{
    padding:9px 12px!important;
  }
  .shop-header-cart,.shop-mobile-filter-trigger{
    min-height:44px!important;
  }
  .shop-close,.ticket-modal-close,.modal-close{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
  }
  #zoomIn,#zoomOut,.map-zoom button{
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
  }
  .ns-btn.sm{
    min-height:44px!important;
    padding:9px 13px!important;
  }
  .eye{
    min-height:44px!important;
  }
  #viewModal .view-actions .ticket-primary-btn,
  #viewModal .view-actions .ticket-outline-btn{
    min-height:44px!important;
  }
  .shop-filter-group label{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    padding-block:8px!important;
  }
  .seat-map-viewport{
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x pan-y!important;
    scrollbar-width:thin!important;
  }
  .seat-map-viewport::-webkit-scrollbar{
    height:7px;
  }
  .seat-map-viewport::-webkit-scrollbar-thumb{
    background:#9a7e3e;
    border-radius:20px;
  }
  .ticket-modal,.view-modal{
    overscroll-behavior:contain;
  }
  #viewModal .view-modal-panel{
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
}


@media(max-width:1180px){
  header.topbar{
    z-index:20!important;
  }
  header.topbar.nav-open{
    z-index:250!important;
  }
}


@media(max-width:850px){
  body:has(.shop-mobile-bar){
    padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;
  }
  .shop-mobile-bar{
    position:fixed!important;
    right:0!important;left:0!important;bottom:0!important;
    z-index:180!important;
    padding-left:max(10px,env(safe-area-inset-left,0px))!important;
    padding-right:max(10px,env(safe-area-inset-right,0px))!important;
    padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
  }
  .shop-mobile-bar a,.shop-mobile-bar button{
    min-height:44px!important;
  }
}
@media(max-width:800px){
  .mobile-ticket-bar button{
    min-height:44px!important;
  }
}


@media(max-width:760px){
  a.btn,.btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
}


@media(max-width:560px){
  #viewModal .view-visual-layout{
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
  }
  #viewModal .seat-view-frame{
    height:clamp(190px,32dvh,260px)!important;
    min-height:190px!important;
  }
  #viewModal .seat-location-card{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    padding:9px 10px!important;
  }
  #viewModal .seat-location-card h3{
    text-align:right!important;
    font-size:.66rem!important;
  }
  #viewModal #seatLocationCanvas{
    width:100%!important;
    height:clamp(125px,20dvh,160px)!important;
    max-height:160px!important;
  }
  #viewModal .seat-location-legend{
    justify-content:center!important;
    font-size:.58rem!important;
  }
  #viewModal .view-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


@media(max-width:760px){
  .mobile-seat-map-hint{
    display:block!important;
    margin:8px 2px 0!important;
    color:#aaa28f!important;
    font-size:.58rem!important;
    line-height:1.8!important;
    text-align:center!important;
  }
}
@media(min-width:761px){
  .mobile-seat-map-hint{display:none!important}
}


/* NARIA frontend polish v12: account action + right-side slide-in navigation */
.topbar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  gap:8px;
  position:relative;
  z-index:230;
}
.topbar-actions .nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:7px 12px;
  border:1px solid var(--gold,#d8b84e);
  border-radius:8px;
  color:var(--gold,#d8b84e);
  background:rgba(216,184,78,.06);
  font-size:.72rem;
  font-weight:700;
  line-height:1.5;
  white-space:nowrap;
}
.topbar-actions .menu{
  display:none;
  width:42px;
  height:42px;
  min-height:42px;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #d8b84e55;
  border-radius:9px;
  background:#1b1c18;
  color:#f1df9a;
  font-size:23px;
  line-height:1;
  cursor:pointer;
}
.topbar>.brand{order:0}
.topbar>.nav{order:1}
.topbar-actions{order:2}

@media(max-width:1180px){
  body.naria-drawer-open{overflow:hidden!important}
  .topbar{
    z-index:250!important;
    gap:10px!important;
  }
  .topbar>.brand{
    order:1!important;
    flex:0 0 auto!important;
    max-width:52px!important;
  }
  .topbar-actions{
    order:2!important;
    gap:7px!important;
    z-index:230!important;
  }
  .topbar-actions .nav-cta{
    display:inline-flex!important;
    min-height:40px!important;
    padding:7px 10px!important;
    font-size:.68rem!important;
  }
  .topbar-actions .menu{
    display:inline-flex!important;
    position:relative!important;
    z-index:230!important;
    width:42px!important;
    height:42px!important;
    min-height:42px!important;
  }
  .topbar.nav-open::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:190;
    background:rgba(0,0,0,.62);
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
    pointer-events:none;
  }
  .topbar>.nav{
    display:flex!important;
    position:fixed!important;
    top:0!important;
    right:0!important;
    left:auto!important;
    bottom:0!important;
    width:min(86vw,350px)!important;
    height:100dvh!important;
    max-height:100dvh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:0!important;
    margin:0!important;
    padding:78px 16px 22px!important;
    border:1px solid #d8b84e50!important;
    border-top:0!important;
    border-bottom:0!important;
    border-radius:18px 0 0 18px!important;
    background:rgba(25,26,22,.985)!important;
    box-shadow:-18px 0 48px #000b!important;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    white-space:normal!important;
    z-index:210!important;
    transform:translateX(105%);
    visibility:hidden;
    pointer-events:none;
    transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility .28s;
  }
  .topbar>.nav.open{
    display:flex!important;
    transform:translateX(0);
    visibility:visible;
    pointer-events:auto;
  }
  .topbar>.nav>a{
    display:flex!important;
    width:100%!important;
    min-height:48px!important;
    padding:10px 7px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:11px!important;
    border-bottom:1px solid #ffffff12!important;
    border-radius:0!important;
    color:#e7e2d5!important;
    font-size:.86rem!important;
    line-height:1.6!important;
    white-space:normal!important;
  }
  .topbar>.nav .nav-icon,
  .topbar>.nav .nav-icon svg{
    width:19px!important;
    height:19px!important;
    flex:0 0 19px!important;
  }
  .topbar>.nav .nav-auth-mobile{display:none!important}
  .topbar>.nav-cta{display:none!important}
}

@media(max-width:520px){
  .topbar{
    width:calc(100% - 24px)!important;
    height:66px!important;
    gap:8px!important;
  }
  .topbar>.brand .brand-logo{
    max-width:46px!important;
    height:46px!important;
  }
  .topbar-actions{gap:6px!important}
  .topbar-actions .menu{
    width:40px!important;
    height:40px!important;
    min-height:40px!important;
  }
  .topbar-actions .nav-cta{
    min-height:39px!important;
    padding:6px 9px!important;
    font-size:.65rem!important;
  }
}
