/* 3ON Virtual Fest V5.4 — Full-width responsive UI/UX system */
:root{
  --content:1760px;
  --page-gutter:clamp(16px,2.15vw,42px);
  --content-reading:920px;
  --touch:44px;
  --header-h:76px;
  --surface-1:#070b10;
  --surface-2:#0a1017;
  --surface-3:#0e1620;
  --v54-line:rgba(255,255,255,.09);
  --v54-line-strong:rgba(255,255,255,.14);
  --v54-shadow:0 22px 70px rgba(0,0,0,.28);
}
html{overflow-x:hidden;text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{overflow-x:hidden;min-width:320px}
body.mobile-nav-open{overflow:hidden}
main{min-width:0;overflow:clip}
img,video,iframe,svg{max-width:100%}
button,a,input,select,textarea{touch-action:manipulation}
button,.btn,input,select{min-height:var(--touch)}
textarea{resize:vertical}
input[type="checkbox"],input[type="radio"]{min-height:0;width:auto}
.container{width:min(var(--content),calc(100% - (var(--page-gutter) + var(--page-gutter))));margin-inline:auto}
.container.narrow{width:min(var(--content-reading),calc(100% - (var(--page-gutter) + var(--page-gutter))))}
.section{padding-block:clamp(42px,5.5vw,86px)}
.section-head{gap:clamp(16px,3vw,42px)}
.section-head h1,.section-head h2{max-width:980px}
.panel,.card,.side-card,.admin-card{border-color:var(--v54-line)}
.table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.table-wrap table{min-width:720px}
.flash-wrap{padding-top:18px}

/* Global header: desktop uses the available viewport instead of a narrow centred strip. */
.topbar-v52{height:var(--header-h)}
.nav-v52{width:min(1840px,calc(100% - (var(--page-gutter) + var(--page-gutter))));gap:clamp(12px,1.45vw,28px)}
.brand-v52 img{width:clamp(132px,9vw,172px)}
.desktop-nav-v52{min-width:0;justify-content:flex-start}
.desktop-nav-v52>a{padding-inline:clamp(7px,.72vw,13px);font-size:clamp(.78rem,.72vw,.9rem);white-space:nowrap}
.nav-actions-v52{min-width:0}
.header-user-name{max-width:clamp(84px,8vw,150px)}
.topbar-v52 .mobile-nav-panel{position:fixed;left:0;right:0;max-height:calc(100dvh - var(--header-h));overflow:auto;overscroll-behavior:contain;padding-inline:var(--page-gutter);padding-bottom:max(22px,env(safe-area-inset-bottom))}
.mobile-nav-grid a,.mobile-nav-account a{min-height:48px;display:flex;align-items:center;justify-content:center;border-radius:12px}

/* Landing page: full-width visual sections with controlled readable content. */
.landing-hero{min-height:min(820px,calc(100dvh - var(--header-h)));isolation:isolate}
.landing-hero-inner{grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);gap:clamp(38px,5vw,96px);padding-block:clamp(72px,7.5vw,120px)}
.landing-copy{min-width:0}
.landing-copy h1{font-size:clamp(3.4rem,6.1vw,7.8rem);max-width:1050px;text-wrap:balance}
.landing-copy>p{max-width:820px;font-size:clamp(1rem,1.15vw,1.25rem)}
.hero-stage-card{width:100%;max-width:560px;justify-self:end;padding:clamp(24px,2.4vw,38px)}
.hero-stage-logo{max-height:280px;object-fit:contain}
.hero-proof{gap:clamp(18px,3vw,42px);flex-wrap:wrap}
.trust-strip{overflow:hidden}
.trust-items{min-height:62px;gap:clamp(18px,3vw,52px);justify-content:center;white-space:nowrap}
.event-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.5vw,24px)}
.event-card-v5{min-width:0}
.event-visual{height:clamp(210px,16vw,300px)}
.artist-rail{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(12px,1.25vw,20px)}
.artist-tile{min-width:0}
.community-promo{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(36px,5vw,90px)}
.value-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.5vw,24px)}
.cta-stage>.container{grid-template-columns:minmax(130px,180px) minmax(0,1fr) auto;gap:clamp(24px,3vw,52px)}

/* Core content pages */
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.split{grid-template-columns:minmax(0,2fr) minmax(300px,1fr)}
.live-layout{grid-template-columns:minmax(0,2.3fr) minmax(340px,.8fr);gap:clamp(16px,1.7vw,28px)}
.player{width:100%}
.chat-panel{height:min(78vh,860px)}
.countdown-stage{grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);padding:clamp(24px,3vw,48px);gap:clamp(24px,4vw,64px)}
.paywall{grid-template-columns:minmax(210px,280px) minmax(0,1fr);padding:clamp(24px,3vw,46px)}

/* Community: use the width on desktop; do not trap the feed at 690px. */
.community-app{padding-bottom:clamp(30px,4vw,64px)}
.community-shell-v5{
  width:min(1840px,calc(100% - (var(--page-gutter) + var(--page-gutter))));
  grid-template-columns:minmax(220px,250px) minmax(0,1fr) minmax(300px,360px);
  gap:clamp(14px,1.25vw,24px);
  padding-top:clamp(18px,2vw,30px)
}
.community-left,.community-right{top:calc(var(--header-h) + 18px);max-height:calc(100dvh - var(--header-h) - 36px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.community-feed-column{min-width:0;width:100%;max-width:none;min-height:calc(100dvh - var(--header-h) - 48px)}
.community-feed-head{padding:clamp(16px,1.5vw,24px)}
.community-feed-head h1{font-size:clamp(1.45rem,1.8vw,1.9rem)}
.community-context-strip,.feed-tabs{scrollbar-width:none}
.community-context-strip::-webkit-scrollbar,.feed-tabs::-webkit-scrollbar{display:none}
.composer-card{padding:clamp(14px,1.3vw,22px)}
.composer-row{min-width:0}
.composer-row textarea{min-width:0}
.composer-tools{gap:10px}
.composer-tools>div:first-child{min-width:0;flex:1}
.alt-input{min-width:180px;max-width:360px}
.social-post{padding:clamp(14px,1.35vw,22px)}
.post-content,.post-body,.post-text{overflow-wrap:anywhere;word-break:break-word}
.post-media img,.post-media video{width:100%;height:auto;max-height:min(72vh,760px);object-fit:contain;background:#030507}
.community-right{min-width:0}
.side-card{padding:clamp(14px,1.2vw,19px)}
.profile-page-v5{max-width:1180px;width:min(1180px,calc(100% - (var(--page-gutter) + var(--page-gutter))))}
.profile-cover{height:clamp(240px,24vw,390px)}
.community-detail-layout{width:min(1420px,calc(100% - (var(--page-gutter) + var(--page-gutter))));margin-inline:auto;grid-template-columns:minmax(0,1fr) minmax(280px,340px)}
.messages-layout{width:min(1500px,100%);margin-inline:auto;grid-template-columns:minmax(300px,380px) minmax(0,1fr)}
.settings-layout{width:min(1320px,calc(100% - (var(--page-gutter) + var(--page-gutter))))}
.group-card-grid,.event-community-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.media-gallery-v53{grid-template-columns:repeat(5,minmax(0,1fr))}
.badge-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.v53-page-shell{width:min(1600px,calc(100% - (var(--page-gutter) + var(--page-gutter))))}
.group-layout,.event-discussion-layout,.trending-layout{grid-template-columns:minmax(0,1fr) minmax(300px,360px)}

/* Auth and account */
.auth-stage{padding-block:clamp(30px,5vw,80px)}
.auth-layout-v5{width:min(1320px,calc(100% - (var(--page-gutter) + var(--page-gutter))));margin-inline:auto;grid-template-columns:minmax(0,1fr) minmax(440px,540px)}
.auth-brand-panel,.auth-card-v5{padding:clamp(28px,4vw,58px)}

/* Admin: use full desktop canvas while keeping controls readable. */
.admin-shell-v5{grid-template-columns:270px minmax(0,1fr)}
.admin-main-v5{width:100%;max-width:none;padding:clamp(24px,2.8vw,52px);overflow-x:hidden}
.admin-page-head{gap:24px}
.admin-dashboard-grid,.control-grid{gap:clamp(14px,1.4vw,24px)}
.kpis-v5{grid-template-columns:repeat(4,minmax(0,1fr))}
.setup-check-grid,.integration-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.admin-card{min-width:0}
.admin-card .table-wrap{margin-inline:-20px;width:calc(100% + 40px);border-inline:0;border-radius:0}

/* Footer */
.footer-v52{margin-top:clamp(42px,6vw,88px)}
.footer-top-v52{padding-block:clamp(28px,3vw,42px)}
.footer-grid-v52{grid-template-columns:minmax(260px,1.7fr) repeat(4,minmax(130px,1fr));gap:clamp(24px,3vw,52px);padding-block:clamp(32px,4vw,54px)}
.footer-brand-v52>span{max-width:520px}
.footer-bottom-v52{padding-bottom:max(24px,env(safe-area-inset-bottom))}

/* Desktop ultrawide polish */
@media (min-width:1800px){
  .community-shell-v5{grid-template-columns:260px minmax(0,1fr) 380px}
  .event-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .artist-rail{grid-template-columns:repeat(6,minmax(0,1fr))}
  .landing-copy h1{font-size:7.4rem}
}

/* Laptop / small desktop */
@media (max-width:1440px){
  :root{--page-gutter:clamp(18px,2vw,30px)}
  .event-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .artist-rail{grid-template-columns:repeat(4,minmax(0,1fr))}
  .community-shell-v5{grid-template-columns:220px minmax(0,1fr) 310px}
  .desktop-nav-v52>a{padding-inline:7px}
  .header-cta-v52{display:none}
  .badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Tablet landscape / compact desktop */
@media (max-width:1220px){
  :root{--header-h:72px}
  .desktop-nav-v52{display:none}
  .mobile-nav-toggle{display:grid}
  .header-cta-v52{display:none}
  .community-shell-v5{grid-template-columns:78px minmax(0,1fr);gap:12px}
  .community-right{display:none}
  .community-left{top:calc(var(--header-h) + 14px);padding:9px}
  .community-brand-mini,.community-left .mini-profile-card>div,.community-nav-v5 span,.channel-stack span,.sidebar-label{display:none}
  .community-left .mini-profile-card{justify-content:center;border:0;background:transparent;padding:6px}
  .community-nav-v5 a,.channel-stack a{justify-content:center;font-size:1.08rem;padding:11px}
  .community-compose-shortcut{font-size:1.15rem!important}
  .landing-hero-inner{grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:36px}
  .landing-copy h1{font-size:clamp(3.2rem,7.5vw,6.2rem)}
  .group-card-grid,.event-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .media-gallery-v53{grid-template-columns:repeat(4,minmax(0,1fr))}
  .admin-shell-v5{grid-template-columns:80px minmax(0,1fr)}
  .admin-brand span,.admin-sidebar-v5 nav a{font-size:0}
  .admin-brand{justify-content:center}
  .admin-sidebar-v5 nav a{height:44px;display:grid;place-items:center}
  .admin-sidebar-v5 nav a:first-letter{font-size:1rem}
  .sidebar-group{display:none}
  .sidebar-bottom a{font-size:0;text-align:center}
  .setup-check-grid,.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid-v52{grid-template-columns:1.4fr repeat(2,minmax(0,1fr))}
  .footer-grid-v52>div:last-child{grid-column:auto;display:flex}
}

/* Tablet portrait */
@media (max-width:980px){
  :root{--page-gutter:20px}
  .landing-hero{min-height:auto}
  .landing-hero-inner{grid-template-columns:1fr;padding-block:clamp(54px,8vw,82px)}
  .landing-copy h1{font-size:clamp(3.2rem,10vw,6rem);max-width:900px}
  .hero-stage-card{max-width:720px;justify-self:start}
  .event-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .artist-rail{grid-template-columns:repeat(3,minmax(0,1fr))}
  .community-promo{grid-template-columns:1fr;gap:34px}
  .value-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cta-stage>.container{grid-template-columns:120px minmax(0,1fr)}
  .cta-stage .hero-actions{grid-column:1/-1}
  .live-layout,.split,.paywall,.countdown-stage{grid-template-columns:1fr}
  .chat-panel{position:static;height:min(620px,70dvh)}
  .profile-page-v5{width:100%;max-width:none}
  .community-detail-layout{grid-template-columns:1fr;width:min(100% - 40px,1000px)}
  .community-detail-layout .community-right{display:none}
  .messages-layout{grid-template-columns:300px minmax(0,1fr);width:100%}
  .auth-layout-v5{grid-template-columns:1fr;width:min(760px,calc(100% - 40px))}
  .auth-brand-panel{display:none}
  .footer-grid-v52{grid-template-columns:1.35fr repeat(2,minmax(0,1fr))}
  .footer-grid-v52>div:nth-child(4),.footer-grid-v52>div:nth-child(5){grid-column:auto}
  .badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .media-gallery-v53{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Mobile */
@media (max-width:760px){
  :root{--header-h:66px;--page-gutter:14px}
  .container{width:calc(100% - 28px)}
  .container.narrow{width:calc(100% - 28px)}
  .topbar-v52{height:var(--header-h)}
  .nav-v52{width:calc(100% - 20px);gap:6px}
  .brand-v52 img{width:108px;height:48px}
  .header-user-name,.signin-link-v52,.join-btn-v52,.header-cta-v52{display:none}
  .header-search-btn,.header-icon-btn,.mobile-nav-toggle{width:40px;height:40px;min-height:40px}
  .header-user-menu summary{min-height:40px;padding:2px;border:0}
  .header-user-menu summary>svg{display:none}
  .topbar-v52 .mobile-nav-panel{top:var(--header-h);padding:14px 12px max(20px,env(safe-area-inset-bottom))}
  .mobile-nav-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mobile-nav-brand{align-items:flex-start}
  .mobile-nav-brand span{display:none}
  .mobile-nav-account{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}

  .section{padding-block:38px}
  .section-head{align-items:flex-start;flex-direction:column;margin-bottom:20px}
  .section-head h1,.section-head h2{font-size:clamp(1.8rem,8vw,2.5rem);line-height:1.05}
  .landing-hero-inner{padding-block:46px;gap:28px}
  .landing-copy h1{font-size:clamp(2.9rem,15vw,4.8rem);line-height:.92;margin-block:18px 20px}
  .landing-copy h1:after{width:96px;height:4px;margin-top:18px}
  .landing-copy>p{font-size:1rem}
  .hero-actions{display:grid;grid-template-columns:1fr;width:100%}
  .hero-actions .btn{width:100%}
  .hero-stage-card{padding:20px;border-radius:18px}
  .hero-stage-logo{max-height:210px}
  .hero-proof{display:grid;grid-template-columns:repeat(3,1fr);width:100%;gap:8px}
  .hero-proof>div{min-width:0}
  .trust-items{justify-content:flex-start;overflow:auto;scrollbar-width:none;padding-block:0}
  .trust-items::-webkit-scrollbar{display:none}
  .trust-items i{display:none}
  .event-card-grid,.artist-rail,.value-grid,.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}
  .event-visual{height:clamp(210px,62vw,320px)}
  .cta-stage{padding-block:46px}
  .cta-stage>.container{grid-template-columns:1fr;text-align:center}
  .cta-stage img{width:120px;margin-inline:auto}
  .cta-stage .hero-actions{justify-content:center}

  .community-app{padding-bottom:0}
  .community-shell-v5{display:block;width:100%;padding-top:0}
  .community-left{position:sticky;top:var(--header-h);z-index:70;display:flex;align-items:center;overflow-x:auto;max-height:none;border-radius:0;border-inline:0;padding:5px 8px;background:rgba(7,10,15,.98);backdrop-filter:blur(18px);scrollbar-width:none}
  .community-left::-webkit-scrollbar{display:none}
  .community-left .mini-profile-card,.community-brand-mini{display:none}
  .community-nav-v5{display:flex;flex:0 0 auto}
  .community-nav-v5 a{min-width:44px;min-height:44px;padding:9px 11px}
  .community-compose-shortcut{margin:0 4px!important;width:auto}
  .channel-stack{display:flex;flex:0 0 auto;margin:0;padding:0;border:0}
  .channel-stack a{min-width:44px;min-height:44px;padding:9px}
  .community-feed-column{border-radius:0!important;border-inline:0!important;min-height:calc(100dvh - var(--header-h) - 48px)}
  .community-feed-head{min-height:72px;padding:13px 14px}
  .community-feed-head h1{font-size:1.35rem}
  .community-feed-head p{font-size:.78rem}
  .community-context-strip{padding-inline:10px}
  .composer-card{padding:14px}
  .composer-row{gap:9px}
  .composer-row .avatar{flex:0 0 auto}
  .composer-tools{padding-left:0;align-items:stretch;flex-direction:column}
  .composer-tools>div,.composer-submit{width:100%}
  .composer-submit{justify-content:space-between;gap:8px}
  .composer-submit select{max-width:150px}
  .alt-input{display:none}
  .composer-media-preview{margin-left:0;max-width:none}
  .social-post{padding:14px 13px}
  .post-actions-bar{justify-content:space-between;gap:2px;overflow-x:auto;scrollbar-width:none}
  .post-actions-bar::-webkit-scrollbar{display:none}
  .post-action{min-width:44px;padding:7px 6px;white-space:nowrap}
  .post-author-line{flex-wrap:wrap}
  .channel-chip,.account-type-mini,.post-author-badge{display:none}
  .community-mobile-dock{left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));border-radius:16px}

  .profile-cover{height:190px;border-radius:0;border-inline:0}
  .profile-header-card{border-inline:0;border-radius:0}
  .profile-actions{position:static;margin-top:12px;display:flex;flex-wrap:wrap}
  .profile-actions .btn,.profile-actions form{flex:1}
  .settings-layout{width:100%}
  .settings-main{padding-inline:12px}
  .group-card-grid,.event-community-grid,.badge-grid{grid-template-columns:1fr}
  .media-gallery-v53{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
  .v53-page-shell{width:calc(100% - 28px);padding-bottom:92px}
  .group-layout,.event-discussion-layout,.trending-layout{grid-template-columns:1fr}
  .group-layout>aside,.event-discussion-layout>aside,.trending-layout>aside{position:static}
  .group-hero-cover{height:180px}
  .event-hub-content{padding:30px 20px}
  .event-hub-content h1{font-size:clamp(2.25rem,12vw,3.5rem)}

  .messages-layout{display:block;width:100%;border:0}
  .messages-sidebar{border-right:0}
  .message-empty{display:none}
  .conversation-about{display:none}
  .conversation-main{height:calc(100dvh - var(--header-h) - env(safe-area-inset-bottom))}

  .table-wrap{margin-inline:0!important;width:100%!important;border:1px solid var(--v54-line)!important;border-radius:12px!important}
  .table-wrap table{min-width:660px}
  .admin-shell-v5{display:block}
  .admin-sidebar-v5{position:sticky;z-index:1000;top:0;width:100%;height:60px;flex-direction:row;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--v54-line);scrollbar-width:none}
  .admin-sidebar-v5::-webkit-scrollbar{display:none}
  .sidebar-top,.sidebar-bottom{display:none}
  .admin-sidebar-v5 nav{display:flex;padding:8px;min-width:max-content}
  .admin-sidebar-v5 nav a{min-width:44px;min-height:44px}
  .admin-main-v5{padding:18px 12px}
  .admin-page-head{align-items:flex-start;flex-direction:column}
  .admin-head-actions{width:100%;display:flex;flex-wrap:wrap}
  .admin-head-actions .btn{flex:1}
  .kpis-v5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .setup-check-grid,.integration-grid,.launch-sequence{grid-template-columns:1fr}
  .control-grid{grid-template-columns:1fr}
  .control-grid .full-control{grid-column:auto}
  .stream-row,.cue{grid-template-columns:1fr}

  .footer-top-v52{flex-direction:column;align-items:flex-start}
  .footer-cta-actions{width:100%;display:grid;grid-template-columns:1fr}
  .footer-grid-v52{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .footer-brand-v52{grid-column:1/-1}
  .footer-grid-v52>div:last-child{grid-column:auto;display:flex}
  .footer-bottom-v52{flex-direction:column;align-items:flex-start;gap:5px}
}

/* Small phones */
@media (max-width:430px){
  :root{--page-gutter:12px}
  .container,.container.narrow{width:calc(100% - 24px)}
  .nav-v52{width:calc(100% - 16px)}
  .brand-v52 img{width:98px}
  .header-search-btn{display:none}
  .mobile-nav-grid{grid-template-columns:1fr}
  .mobile-nav-account{grid-template-columns:1fr}
  .hero-proof{grid-template-columns:1fr 1fr}
  .hero-proof>div:last-child{grid-column:1/-1}
  .landing-copy h1{font-size:clamp(2.7rem,15.5vw,4rem)}
  .footer-grid-v52{grid-template-columns:1fr}
  .footer-brand-v52{grid-column:auto}
  .footer-top-v52>div:first-child strong{font-size:1.15rem}
  .kpis-v5{grid-template-columns:1fr}
  .countdown-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .community-mobile-dock{left:5px;right:5px;padding-inline:2px}
  .community-mobile-dock small{font-size:.56rem}
}

/* Short landscape devices */
@media (max-height:560px) and (orientation:landscape){
  .topbar-v52{position:sticky}
  .landing-hero{min-height:auto}
  .landing-hero-inner{padding-block:34px}
  .community-left,.community-right{max-height:calc(100dvh - var(--header-h) - 12px)}
  .chat-panel{height:calc(100dvh - var(--header-h) - 24px)}
}

/* Keyboard and motion accessibility */
:focus-visible{outline:3px solid rgba(18,150,255,.72);outline-offset:3px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
