/* BaronFM Static Site Template
   - Single-page routing (hash routes)
   - Persistent audio player
   - Professional "sky/sea blue" look
*/

:root{
  --bg1:#cfefff;
  --bg2:#8ed3ff;
  --card:#ffffffcc;
  --card-solid:#ffffff;
  --text:#05233a;
  --muted:#355a73;
  --line:#b8e6ff;
  --shadow: 0 14px 40px rgba(0, 54, 82, .12);
  --radius: 18px;
  --radius2: 26px;
  --primary:#0b74ff;
  --primary2:#00b8ff;
  --danger:#ff3b3b;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 20% 0%, #ffffffaa 0%, transparent 60%),
    radial-gradient(900px 700px at 100% 40%, #ffffff77 0%, transparent 60%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
  overflow-x:hidden;
}

.bg-orb{
  position:fixed;
  filter: blur(50px);
  opacity:.55;
  pointer-events:none;
  z-index:-1;
}
.orb-1{ width:420px; height:420px; left:-140px; top:90px; background: #ffffff; border-radius:999px;}
.orb-2{ width:520px; height:520px; right:-180px; top:220px; background: #7ff0ff; border-radius:999px;}

.container{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

a{color:inherit; text-decoration:none}
.hidden{display:none !important}
.muted{color:var(--muted)}
.small{font-size:.92rem}
.divider{height:1px; background:var(--line); margin:18px 0}

/* TOPBAR */
.topbar{
  position:sticky; top:0;
  z-index:10;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, #ffffffcc, #ffffffaa);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 210px;
}
.brand-mark{
  width:44px;height:44px;
  display:grid;place-items:center;
  border-radius:14px;
  font-weight:800;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:white;
  box-shadow: 0 12px 26px rgba(11,116,255,.25);
}
.brand-text{display:flex; flex-direction:column; line-height:1.1}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-subtitle{font-size:.88rem; color:var(--muted)}

/* RADIO */
.radio{
  flex:1;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius: var(--radius);
  background: #ffffffa8;
  border:1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,54,82,.08);
}
.icon-btn{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: var(--card-solid);
  cursor:pointer;
  display:grid;place-items:center;
  transition: transform .08s ease;
}
.icon-btn:active{transform: scale(.98)}
.icon{
  font-size:18px;
  transform: translateX(1px);
}
.radio-meta{display:flex; flex-direction:column; min-width:160px}
.radio-title{font-size:.82rem; color:var(--muted)}
.radio-status{font-weight:700}
.radio-vol{display:flex; align-items:center; gap:10px; margin-left:auto}
.radio-vol input{width:160px}

/* AUTH MINI */
.auth-mini{display:flex; align-items:center; gap:10px}
.pill{
  padding:8px 10px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid var(--line);
  font-weight:700;
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.link-btn{
  padding:10px 10px;
  border-radius: 12px;
  border:1px solid transparent;
  color:var(--text);
}
.link-btn:hover{border-color:var(--line); background:#ffffffaa}

/* NAV */
.nav{
  background: transparent;
  margin-top: 10px;
}
.nav-inner{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding: 6px 0 10px;
}
.nav-link{
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid #ffffffaa;
  background: #ffffff77;
  box-shadow: 0 10px 26px rgba(0,54,82,.06);
  font-weight:700;
  color: #07324b;
}
.nav-link.active{
  background: linear-gradient(135deg, #ffffff, #ffffffaa);
  border-color: var(--line);
}

/* MAIN */
.main{padding: 14px 0 46px}
.card{
  background: var(--card);
  border:1px solid #ffffffcc;
  box-shadow: var(--shadow);
  border-radius: var(--radius2);
  padding: 22px;
}
h1{margin:0 0 10px; font-size: clamp(1.7rem, 2.4vw, 2.4rem); letter-spacing:-.4px}
h2{margin:0 0 12px; font-size: 1.5rem}
h3{margin:0 0 10px; font-size: 1.12rem}

.grid-hero{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:16px;
}
@media (max-width: 980px){
  .grid-hero{grid-template-columns: 1fr}
  .radio-vol input{width:120px}
  .brand{min-width:auto}
}

.hero{padding: 26px}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px}
.hero-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top: 18px;
}
@media (max-width: 980px){
  .hero-stats{grid-template-columns: 1fr}
}
.stat{
  background: #ffffffbb;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.stat-label{font-size:.85rem; color:var(--muted)}
.stat-value{font-size: 1.35rem; font-weight:900; margin-top:6px}
.stat-hint{font-size:.85rem; color:var(--muted); margin-top:4px}

.panel-row{display:flex; flex-wrap:wrap; gap:10px; margin: 10px 0 14px}
.chip{
  padding:10px 12px;
  border-radius:999px;
  background:#ffffffbb;
  border:1px solid var(--line);
}
.panel-actions{display:flex; gap:10px; flex-wrap:wrap}

.quick{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
@media (max-width: 980px){.quick{grid-template-columns:1fr}}
.quick-card{
  display:block;
  padding:14px;
  border-radius: var(--radius);
  background:#ffffffbb;
  border:1px solid var(--line);
  transition: transform .08s ease;
}
.quick-card:hover{transform: translateY(-1px)}
.quick-title{font-weight:900}
.quick-sub{font-size:.9rem; color:var(--muted); margin-top:4px}

.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width: 980px){.pricing{grid-template-columns:1fr}}
.price-card{
  background:#ffffffbb;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:18px;
  position:relative;
}
.price-card ul{margin:12px 0 0; padding-left:18px; color:var(--muted)}
.price-name{font-weight:900}
.price-value{font-size:2rem; font-weight:900; margin-top:6px}
.featured{background: linear-gradient(180deg, #ffffff, #ffffffbb)}
.badge{
  position:absolute; right:14px; top:14px;
  padding:6px 10px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:white;
  font-weight:800;
  font-size:.82rem;
}

.chat-box{
  height: 360px;
  border-radius: var(--radius2);
  border:1px dashed rgba(5,35,58,.25);
  background:#ffffffaa;
  display:grid;
  place-items:center;
  padding:18px;
}
.chat-note{
  text-align:center;
  max-width: 520px;
}

.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
@media (max-width: 980px){.gallery{grid-template-columns:1fr 1fr}}
.thumb{
  height:120px;
  border-radius: var(--radius2);
  background:#ffffffbb;
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  font-weight:900;
  color:#0b4c6a;
}

.policy-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width: 980px){.policy-grid{grid-template-columns:1fr}}
.policy-card{
  background:#ffffffbb;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:16px;
}

/* FORMS */
.auth-card{max-width: 520px; margin: 0 auto}
.form{display:flex; flex-direction:column; gap:12px}
label span{display:block; font-weight:800; margin-bottom:6px}
input{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(5,35,58,.18);
  background:#fff;
  outline:none;
}
input:focus{border-color: rgba(11,116,255,.45); box-shadow: 0 0 0 3px rgba(11,116,255,.12)}
.form-links{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.form-links a{color:#075a88; font-weight:800}
.form-links a:hover{text-decoration:underline}

/* BUTTONS */
.btn{
  border:1px solid rgba(5,35,58,.14);
  background:#ffffff;
  color:var(--text);
  padding:11px 14px;
  border-radius: 14px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:white;
  box-shadow: 0 14px 30px rgba(11,116,255,.22);
}
.btn.subtle{
  background:#ffffffaa;
  border-color: var(--line);
}
.btn:active{transform: translateY(1px)}

/* FOOTER */
.footer{
  padding: 22px 0 44px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.footer-right a{font-weight:800; color:#064a6d}
.dot{opacity:.45; padding:0 8px}

/* AUTOPLAY OVERLAY */
.autoplay{
  position:fixed;
  inset:0;
  background: rgba(0, 20, 33, .35);
  backdrop-filter: blur(8px);
  display:grid;
  place-items:center;
  z-index:999;
}
.autoplay-card{
  width:min(520px, calc(100% - 32px));
  background:#ffffff;
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
  border:1px solid rgba(5,35,58,.14);
}


/* ===== AiRA KPI grid (home panel) ===== */
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin: 12px 0 12px;
}
@media (max-width: 980px){ .kpi-grid{grid-template-columns:1fr} }

.kpi-card{
  background:#ffffffbb;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:14px;
}
.kpi-lab{font-size:.82rem; color:var(--muted); font-weight:800}
.kpi-val{font-size: 1.45rem; font-weight: 950; margin-top:6px; color:#0b4c6a}

/* ===== Rates schedule table ===== */
.table-wrap{overflow:auto; border-radius: var(--radius2); border:1px solid var(--line); background:#ffffffbb}
table.schedule{
  width:100%;
  border-collapse: collapse;
  min-width: 780px;
}
table.schedule th, table.schedule td{
  padding:12px;
  border-bottom:1px solid rgba(5,35,58,.10);
}
table.schedule th{
  text-align:left;
  background:#ffffff;
  position:sticky;
  top:0;
}
table.schedule tr.active{
  background: linear-gradient(135deg, rgba(11,116,255,.12), rgba(0,184,255,.10));
}
.active-tag{
  display:inline-block;
  margin-left:8px;
  padding:3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:white;
  font-weight:900;
  font-size:.78rem;
}

/* ===== Marquee banner ===== */
.marquee{
  border:1px solid var(--line);
  background: #ffffffbb;
  border-radius: var(--radius2);
  padding:12px 14px;
  overflow:hidden;
  margin: 10px 0 14px;
}
.marquee-inner{
  display:inline-block;
  white-space:nowrap;
  animation: marquee 14s linear infinite;
  font-weight:900;
}
@keyframes marquee { 0%{ transform: translateX(100%);} 100%{ transform: translateX(-100%);} }

/* ===== iframe wrapper for chat ===== */
.iframe-wrap{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  overflow:hidden;
  background:#ffffffbb;
  height: 72vh;
  min-height: 560px;
}
.iframe-wrap iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}
@media (max-width: 768px){
  .iframe-wrap{ height: 78vh; min-height: 520px; }
}

/* ===== Chat (embedded, full-size) ===== */
.chat-card{ padding: 16px; }
.chat-top{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.chat-title{ font-weight:900; font-size:18px; letter-spacing:.2px; }
.chat-sub{ font-size:13px; opacity:.9; }

.welcome-bar{
  position: sticky; top: 64px; z-index: 20;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: linear-gradient(90deg, rgba(2, 31, 54, .85), rgba(10, 53, 88, .85));
  backdrop-filter: blur(8px);
}
.welcome-inner{ padding:10px 12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.welcome-msg{ font-weight:900; }
.welcome-btn{
  margin-left:auto;
  border:1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}
.welcome-cta{
  border:none;
  background: #facc15;
  color: #111827;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 900;
  text-decoration:none;
}

.chat-entry{
  max-width: 520px;
  margin: 18px auto 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(8px);
  text-align:center;
}
.chat-entry h2{ margin:0 0 12px; }
.chat-note{ font-size:12px; color: rgba(8, 23, 40, .75); }

.chat-app{
  height: calc(100dvh - 240px);
  min-height: 680px;
  max-height: 980px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  overflow: hidden;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  display:flex;
  position: relative;
}
.chat-users{
  width: 260px;
  border-right: 1px solid var(--line);
  padding: 12px;
  overflow: auto;
}
.chat-users-head{ display:flex; justify-content:space-between; align-items:center; font-weight:900; }
.chat-count{ font-size:12px; opacity:.7; }
.chat-users-list{ margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.chat-users-list > div{ padding:8px 10px; border-radius:12px; background: rgba(255,255,255,.65); border:1px solid var(--line); }

.chat-main{ flex:1; display:flex; flex-direction:column; min-width: 0; }
.chat-main-head{
  padding: 10px 12px;
  font-weight: 900;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.55);
}
.chat-mini-btn{
  background: rgba(8, 23, 40, .92);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 900;
  cursor:pointer;
}
.chat-messages{
  flex: 1;
  overflow: auto;
  padding: 12px;
}
.chat-composer{
  display:flex;
  gap:10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  position: sticky;
  bottom: 0;
}
.chat-primary{
  appearance:none;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor:pointer;
  color: #0b1020;
  background: linear-gradient(180deg, #fde047, #facc15);
  box-shadow: 0 12px 22px rgba(0,0,0,.15);
}
.chat-input{
  width:100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
  background: rgba(255,255,255,.85);
}
.chat-input:focus{ box-shadow: 0 0 0 4px rgba(59,130,246,.15); }

.hint-pointer{
  position:fixed; right:12px; bottom:150px; z-index:70;
  display:none; align-items:center; gap:8px;
  background: rgba(8,23,40,.95);
  color:#fff; border:1px solid rgba(255,255,255,.18);
  padding:10px 12px; border-radius:14px; box-shadow:0 10px 28px rgba(0,0,0,.25);
  font-weight:900; font-size:13px;
}
.hint-pointer .hand{ font-size:20px; transform-origin:bottom right; animation:nod .8s ease-in-out infinite alternate; }
@keyframes nod{ from{transform:rotate(8deg)} to{transform:rotate(-4deg)} }

.mob-users-btn{
  position:absolute;
  right:14px;
  bottom:86px;
  padding:10px 12px;
  border-radius:999px;
  border:none;
  background: rgba(8,23,40,.92);
  color:#fff;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.20);
  display:none;
  z-index:40;
}
.mob-users-sheet{
  position:absolute; left:0; right:0; bottom:0; z-index:50;
  background: rgba(255,255,255,.96);
  border-top-left-radius:16px; border-top-right-radius:16px;
  border:1px solid var(--line);
  box-shadow:0 -14px 34px rgba(0,0,0,.18);
  padding:12px 12px 16px;
  display:none;
  max-height:70%;
  overflow:auto;
}
.mob-users-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.mob-users-list{ display:flex; flex-wrap:wrap; gap:8px; }
.mob-users-list > div{ background: rgba(238,242,247,.9); padding:8px 12px; border-radius:999px; border:1px solid var(--line); }

@media (max-width: 900px){
  .chat-app{ height: calc(100dvh - 220px); min-height: 620px; }
  .chat-users{ display:none; }
  .mob-users-btn{ display:block; }
}



/* ===== Chat: keep composer visible, messages scroll (do not stretch page) ===== */
#page-chat #chatApp{
  height: min(78vh, 780px);
  min-height: 560px;
  display:flex;
}
#page-chat #middleCol{
  height: 100%;
  display:flex;
  flex-direction:column;
}
#page-chat #gcList{
  flex: 1 1 auto;
  overflow: auto;
  padding-bottom: 92px; /* room above composer */
}
#page-chat #composer{
  position: sticky;
  bottom: 0;
  z-index: 5;
}


/* Home left column wrapper */
.home-left{display:flex;flex-direction:column;gap:16px}


.ad-card .ad-box{display:flex;justify-content:center;align-items:center;min-height:270px}
.ad-card #adm-container-2{min-width:250px;min-height:250px}


/* --- About page FAQ --- */
.faq{display:grid;gap:12px;margin-top:12px}
.faq-item{padding:12px 14px;border:1px solid rgba(8,23,40,.12);border-radius:14px;background:rgba(255,255,255,.75)}
.faq-q{font-weight:900;color:#0b1020;margin-bottom:6px}
.faq-a{font-size:14px}



.ad-slot{
  margin-top:14px;
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
}
.ad-slot > div{ /* container */
  display:block;
}
.ad-slot iframe, .ad-slot img{
  max-width:100%;
  height:auto;
  display:block;
}


/* BRNAds (Home only) */
.brnads-slot{
  width: 100%;
  max-width: 220px;
  margin: 14px 0;
  padding: 10px;
  border: 1px solid rgba(8,23,40,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
}
@media (max-width: 900px){
  .brnads-slot{ max-width: 100%; }
}


/* BRNAds – HOME LEFT */
.brnads-slot.left-home{
  float: left;
  width: 200px;
  margin: 8px 16px 16px 0;
}
@media (max-width: 900px){
  .brnads-slot.left-home{
    float: none;
    width: 100%;
    margin: 12px 0;
  }
}

/* TRUE LEFT COLUMN AD (HOME ONLY) */
.page#page-home{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:16px;
}
.page#page-home .grid-hero{ grid-column:2; }
.home-left-ad{
  grid-column:1;
  align-self:start;
}
@media (max-width:900px){
  .page#page-home{ grid-template-columns:1fr; }
  .home-left-ad{ order:2; }
}
