:root{
  --blue:#0b5a8f;
  --green:#1a7c65;
  --ring:#e6f0fb;

  --text:#f7fbff;
  --muted:#cfe2f8;

  --glass: rgba(255,255,255,.12);
  --glassBorder: rgba(255,255,255,.35);

  --bar:#082e6d;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  height:100%;
  font-family: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  -webkit-text-size-adjust:100%;
}

body{
  min-height:100dvh;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, var(--blue) 0%, var(--green) 70%, var(--green) 100%);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 0 14px 42px !important;
}

/* Border lines (left/right/bottom) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  border-left: 3px solid var(--green);
  border-right: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  pointer-events:none;
}

/* Layout */
.page{
  width:min(760px,100%);
  text-align:center;
  margin-top:0 !important;
}

.hero{ padding:0; }

.topbar{
  width:100%;
  margin:0 auto 14px;
  border-top-left-radius:16px;
  border-top-right-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

.brand-banner{
  width:100%;
  height:auto;
  display:block;
}

.brand-title{
  margin: 10px 0 0;
  font-weight: 900;
  font-size: clamp(20px, 3.4vw, 26px);
  letter-spacing:.3px;
  color: var(--text);
}

.brand-subtitle{
  margin:.35rem auto 1rem;
  max-width:42ch;
  line-height:1.25;
  color:var(--muted);
  opacity:.85;
  font-weight:800;
}

/* Socials */
.social-row{
  display:flex;
  gap:10px;
  justify-content:center;
  margin: 10px 0 16px;
}

.social-btn{
  width:40px;
  height:40px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.45);
  text-decoration:none;
}

.social-btn img{
  width:20px;
  height:20px;
  display:block;
  opacity:.95;
  filter: brightness(0) invert(1);
}

/* ===================== MENU (single column always) ===================== */
.menu{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:12px;
}

/* Pill button (dots INSIDE) */
.pillMain{
  display:grid;
  grid-template-columns: 54px 1fr 44px; /* icon | text | dots */
  align-items:center;
  gap:14px;
  width:100%;
  padding:12px 14px;
  border-radius:999px;
  text-align:left;

  background: var(--glass);
  border: 1px solid var(--glassBorder);
  box-shadow: 0 6px 18px rgba(3,21,58,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .06s ease, box-shadow .06s ease;
  cursor:pointer;

  color: var(--text); /* ensures default text is white-ish */
}

.pillMain:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(3,21,58,.22);
}

.pillIcon{
  width:52px;
  height:52px;
  border-radius:999px;
  border:1.5px solid rgba(230,240,251,.9);
  background: rgba(12,46,120,.9);
  object-fit:cover;
}

.pillText{ min-width:0; }

/* FORCE WHITE TEXT */
.pillTitle{
  font-weight:800;
  letter-spacing:.1px;
  color: var(--text) !important;
}

.pillSub{
  margin-top:2px;
  font-size:.90em;
  opacity:.85;
  color: var(--text) !important;
}

/* Dots inside pill */
.pillDots{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  display:grid;
  place-items:center;
  cursor:pointer;
  justify-self:end;
}

.pillDots svg{
  width:22px;
  height:22px;
  opacity:.85;
  color: #fff;
}

/* IMPORTANT: remove any old pillRow grid influence */
.pillRow{ display:block; }

/* ===================== FOOTER ===================== */
.foot{
  margin:20px 0 0;
  font-size:12px;
  color:var(--muted);
  background: rgba(0,0,0,0.10);
  border-radius: 8px 8px 0 0;
  padding: 6px 0;
}

/* ===================== INLINE OVERLAY VIEWER ===================== */
.inlineOverlay{
  position:fixed;
  inset:0;
  display:none;
  padding: 12px;
  background: rgba(0,0,0,.45);
  z-index: 9999;
}

.inlineOverlay.show{ display:block; }

.inlineCard{
  width:min(980px, 100%);
  height: calc(100dvh - 24px);
  margin: 0 auto;
  border-radius: 16px;
  overflow:hidden;
  border:1.5px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
}

.inlineTopbar{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  background: var(--bar);
  padding:10px 12px;
}

.inlineBtn{
  appearance:none;
  border:0;
  border-radius:999px;
  padding:8px 12px;
  background:#ffffff;
  color:#0b255a;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
}

.inlineTitle{
  justify-self:center;
  text-align:center;
  font-weight:900;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:0 6px;
  color:#fff;
}

.inlineFrameWrap{
  flex:1;
  background:#0b1b3a;
}

.inlineFrameWrap iframe{
  width:100%;
  height:100%;
  border:0;
  background:#0b1b3a;
}
