/* ================================
   BCG NEWS + ADMIN (namespaced)
   ================================ */

/* Brand palette for this file */
:root {
  --bcg-ink:   #1a052b;
  --bcg-paper: #ffffff;
  --bcg-teal:  #00f0ff;
  --bcg-hot:   #ff00ff;
  --bcg-gold:  #ffd766;
  --bcg-line:  rgba(255,255,255,.12);
  --bcg-muted: #a9bdd0;
}

/* ---------- Modal shell ---------- */
.bcgn-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,4,20,.6);
  backdrop-filter: blur(8px) saturate(1.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bcgn-overlay[hidden] {
  display: none !important;
}

.bcgn-modal {
  position: relative; /* so admin overlays can be absolute */
  width: min(92vw, 720px);
  max-height: min(86vh, 740px);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.07),
    rgba(255,255,255,.03)
  );
  border: 1px solid var(--bcg-line);
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
  padding: 16px 16px 14px;
  color: #eafaff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.bcgn-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* Body = scroll area */
.bcgn-body {
  margin-top: 10px;
  padding: 12px 14px 8px;
  overflow: auto;
  border-radius: 14px;
  background: none;
  border: 0;
  box-shadow: none;
}

/* Close X */
.bcgn-x {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 10px;
  padding: 6px 9px;
  cursor: pointer;
}

/* ---------- Brand / heading ---------- */
.bcgn-modal .news-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  text-align: center;
}
.bcgn-modal .bcg-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: .9;
  margin-bottom: 2px;
}
.bcgn-modal .bcg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--bcg-teal), #6dfdff);
  box-shadow: 0 0 16px rgba(0,240,255,.9);
}
.bcgn-modal .bcg-word {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: .6px;
  color: #cfe9ff;
  font-size: 1.1rem;
  text-shadow: 0 0 12px rgba(0,240,255,.4);
}
.bcgn-modal .greeting {
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: .4px;
  opacity: .9;
}
.bcgn-modal .news-title {
  text-align: center;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: .9px;
  text-shadow:
    0 0 22px rgba(0,240,255,.35),
    0 0 36px rgba(255,0,255,.25);
}
.bcgn-modal .news-underline {
  height: 2px;
  width: 140px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--bcg-teal),
    var(--bcg-hot),
    transparent
  );
  border-radius: 999px;
  filter: blur(.2px);
}

/* ---------- News list (cards) ---------- */
.news-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 0 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 6px 24px rgba(0,0,0,.35) inset,
    0 8px 24px rgba(0,0,0,.25);
}
.news-emoji {
  font-size: 22px;
  display: grid;
  place-items: center;
  width: 28px;
}
.news-line {
  font: 800 16px/1.35 "Rajdhani", system-ui;
  color: #eafaff;
}
.news-meta {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: .9;
}
.news-meta .badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(0,240,255,.12);
  border: 1px solid rgba(0,240,255,.25);
}
.news-meta .time {
  font-size: 11px;
  opacity: .85;
}

/* Tag-specific colors */
.news-meta .badge[data-tag="general"] {
  background: rgba(59,130,246,0.16);
  border-color: rgba(59,130,246,0.65);
  color: #bfdbfe;
}

.news-meta .badge[data-tag="system"] {
  background: rgba(16,185,129,0.18);
  border-color: rgba(16,185,129,0.7);
  color: #bbf7d0;
}

.news-meta .badge[data-tag="devlog"],
.news-meta .badge[data-tag="dev log"] {
  background: rgba(244,114,182,0.20);
  border-color: rgba(244,114,182,0.8);
  color: #fce7f3;
}

.news-meta .badge[data-tag="themes"],
.news-meta .badge[data-tag="theme"] {
  background: rgba(234,179,8,0.20);
  border-color: rgba(234,179,8,0.8);
  color: #fef9c3;
}

/* ---------- Footer ---------- */
.bcgn-footer {
  text-align: center;
  margin-top: 16px;
  padding: 12px 10px 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.05));
  color: #b0c3d6;
  font-family: 'Rajdhani', sans-serif;
  border-radius: 0 0 18px 18px;
}
.bcgn-footer-links {
  font-size: .95rem;
  margin-bottom: 6px;
}
.bcgn-footer-links .sep {
  opacity: .5;
  margin: 0 6px;
}
.bcgn-footer-links a {
  color: #eafaff;
  text-decoration: none;
  transition: color .2s ease;
}
.bcgn-footer-links a:hover {
  color: var(--bcg-teal);
  text-decoration: underline;
}
.bcgn-footer-links a.active {
  color: var(--bcg-teal);
  text-decoration: underline;
}
.bcgn-copy {
  opacity: .95;
  font-size: .88rem;
}

@supports (padding: max(0px)) {
  .bcgn-footer {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* ---------- Privacy / Terms / Contact content ---------- */
.section h3,
.section h4 {
  font-family: 'Bungee', cursive;
  color: var(--bcg-teal);
  margin: 14px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section ul {
  margin: 8px 0 12px 18px;
  padding: 0;
  line-height: 1.5;
}
.section li {
  margin-bottom: 4px;
}
.section p.lead {
  margin: 10px 0 14px;
  color: #eafaff;
  font-size: 1rem;
  line-height: 1.6;
}
.section .meta-muted {
  color: #9fb3ff;
  opacity: 0.8;
  font-size: 0.9rem;
}
.section .hr {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 10px 0;
}
.section .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  font-family: 'Rajdhani', sans-serif;
  border-radius: 8px;
  border: 1px solid var(--bcg-teal);
  background: rgba(0,240,255,0.1);
  color: var(--bcg-teal);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.section .btn:hover {
  background: rgba(0,240,255,0.2);
}

/* ---------- Contact form (inside news modal) ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 10px;
}
.form .input,
.form .textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,234,255,.25);
  background: rgba(3,8,24,.65);
  color: #eafaff;
  font: 600 14px/1.2 "Rajdhani", system-ui;
  outline: none;
}
.form .textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  resize: vertical;
}
.form .btn {
  grid-column: 2 / 3;
  justify-self: end;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--bcg-teal);
  background: radial-gradient(circle at 30% -10%, rgba(0,240,255,.18), rgba(0,0,0,.6));
  color: #eafaff;
  font: 800 14px/1 "Rajdhani", system-ui;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.form .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0,240,255,.35) inset;
}
@media (max-width: 640px) {
  .form {
    grid-template-columns: 1fr;
  }
  .form .btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
}

/* Contact variant (used in contact template) */
.contact-section {
  text-align: center;
}
.contact-section .form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.contact-section .input,
.contact-section .textarea {
  width: 90%;
  max-width: 420px;
  font-size: 1rem;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: #eafaff;
  outline: none;
}
.contact-section .textarea {
  min-height: 100px;
  resize: vertical;
}
.btn-center {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 6px;
}
.send-btn {
  width: 140px;
  height: 45px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--bcg-teal), var(--bcg-hot));
  color: #fff;
  border: none;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s;
}
.send-btn:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

/* ================================
   ADMIN LOGIN (hidden easter egg)
   ================================ */

.news-admin-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.72);
  z-index: 40;
}

.news-admin-modal {
  width: min(420px, 100vw - 32px);
  background: #020617;
  border-radius: 18px;
  padding: 20px 18px 18px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.news-admin-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.news-admin-text {
  font-size: 14px;
  opacity: 0.8;
  margin: 0 0 14px;
}

.news-admin-field {
  margin-bottom: 12px;
}
.news-admin-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 4px;
}
.news-admin-input,
.news-admin-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  font-size: 14px;
  padding: 7px 9px;
  outline: none;
}
.news-admin-textarea {
  resize: vertical;
  min-height: 72px;
}
.news-admin-input:focus,
.news-admin-textarea:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4);
}
.news-admin-hint {
  font-size: 12px;
  color: #f97373;
  min-height: 16px;
  margin: 4px 0 0;
}
.news-admin-hint.small {
  color: #9ca3af;
  margin-top: 6px;
}

.news-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

/* Buttons used inside admin UI */
.pillBtn.xs {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
}

/* ================================
   NEWS ADMIN PANEL (editor)
   ================================ */

.news-admin-panel {
  position: absolute;
  inset: 0; /* full-cover inside modal */
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.09), transparent 60%),
    radial-gradient(circle at bottom, rgba(244, 114, 182, 0.08), transparent 55%),
    rgba(15, 23, 42, 0.98);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 35;
}

.news-admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.news-admin-sub {
  font-size: 13px;
  opacity: 0.8;
  margin: 2px 0 0;
}

.news-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .news-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.news-admin-editor {
  display: flex;
  flex-direction: column;
}
.news-admin-field-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.news-admin-field-row .news-admin-field {
  flex: 1;
  margin-bottom: 0;
}

.news-admin-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.news-admin-status {
  font-size: 12px;
  color: #22c55e;
  min-height: 16px;
  margin-top: 6px;
}

.news-admin-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-admin-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-admin-list-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.news-admin-list {
  max-height: 220px;
  overflow: auto;
  padding: 6px 4px 6px 0;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 55%),
    rgba(15, 23, 42, 0.9);
}

.news-admin-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}
.news-admin-item:last-child {
  border-bottom: none;
}
.news-admin-emoji {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}
.news-admin-item-main {
  flex: 1;
}
.news-admin-item-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.news-admin-item-title {
  font-size: 13px;
  font-weight: 700;
}
.news-admin-item-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}
.news-admin-item-date {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 1px;
}
.news-admin-item-body {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 3px;
}

.news-admin-item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.news-admin-remove {
  border: none;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  cursor: pointer;
}
.news-admin-remove:hover {
  background: rgba(248, 113, 113, 0.22);
}

.news-admin-export {
  margin-top: 8px;
}
.news-admin-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.news-admin-textarea.small {
  font-size: 11px;
  min-height: 80px;
}

/* --- FIX: Keep Save-to-Server visible --- */

/* Right column structure */
.news-admin-side {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: visible !important;
  max-height: none !important;
}

/* The draft list should scroll, not the whole panel */
.news-admin-list {
  flex: 1 1 auto !important;
  min-height: 72px !important;
  max-height: 220px !important;
  overflow-y: auto !important;
  padding: 4px 0 !important;
}

/* Export JSON stays pinned under the list */
.news-admin-export {
  flex: 0 0 auto !important;
  background: rgba(4,10,26,0.9);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px 12px;
}

/* --- Fix: allow scroll inside News Admin on small screens --- */

/* Outer modal: can scroll vertically if content is tall */
.bcgn-modal {
  max-height: 94vh;
  overflow-y: auto;
}

/* Admin panel body: flex column + its own scroll area */
.news-admin-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 8px; /* space for scrollbar */
}

/* Make the grid shrink nicely on phones */
.news-admin-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 900px) {
  .news-admin-grid {
    flex-direction: row;
  }
}

/* =========================================================
   ACCOUNT MODAL (OVERLAY + CARD)
   ========================================================= */

/* Glassy overlay above everything */
#bcgaOverlay {
  position: fixed;
  inset: 0;
  z-index: 1200; /* above game UI & news */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at top, rgba(0, 240, 255, 0.16), transparent 55%),
    radial-gradient(circle at bottom, rgba(255, 0, 255, 0.18), transparent 55%),
    rgba(3, 4, 12, 0.92);
  backdrop-filter: blur(18px);
}

#bcgaOverlay[hidden] {
  display: none;
}

/* Main account card */
#bcgaOverlay > * {
  width: 100%;
  max-width: 480px;
  max-height: min(640px, 100vh);
  border-radius: 28px;
  padding: 22px 22px 18px;
  background:
    radial-gradient(circle at top left, rgba(0, 240, 255, 0.10), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 0, 255, 0.10), transparent 55%),
    rgba(12, 14, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  color: #e7f4ff;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Close X */
#bcgaClose {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(4, 8, 16, 0.9);
  color: #eafaff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
}

/* Inner scroll area */
.account-window {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

/* Sections */
.acct-section {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.acct-section:last-child {
  border-bottom: none;
}

.acct-heading {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}

/* Simple label/value rows (Email / Plan / Status) */
.acct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin: 4px 0;
}
.acct-label {
  color: rgba(255,255,255,0.6);
}
.acct-value {
  font-weight: 600;
}

/* =========================================================
   TICKETS ROW (BALANCE + STORE BUTTON SIDE-BY-SIDE)
   ========================================================= */

.acct-ticket-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* pill with icon + balance */
.acct-ticket-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, rgba(0,0,0,0.85), rgba(0,0,0,0.55));
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.9),
    0 10px 24px rgba(0,0,0,0.65);
  flex: 1 1 auto;
  min-width: 0;
}

.acct-ticket-pill img {
  width: 28px;
  height: 28px;
}

.acct-ticket-info {
  display: flex;
  flex-direction: column;
}

.acct-ticket-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
}

.acct-ticket-balance,
#acctTickets {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* Compact neon button */
#acctOpenStore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  margin-top: 0;

  font-family: "Rajdhani", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;

  background-image: linear-gradient(120deg, #00f0ff, #ff00ff);
  color: #06101a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.95),
    0 12px 30px rgba(0, 0, 0, 0.8);
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

#acctOpenStore:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 1),
    0 18px 40px rgba(0, 0, 0, 0.85);
}

#acctOpenStore:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

@media (max-width: 480px) {
  .acct-ticket-bar {
    gap: 10px;
  }
}

/* Small note under tickets */
.acct-note {
  margin-top: 6px;
  font-size: 0.86rem;
  color: rgba(208, 224, 255, 0.85);
}

/* =========================================================
   INVOICES / RECENT PAYMENTS
   ========================================================= */

.acct-invoices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.acct-invoice {
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 4px;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.18), transparent 60%),
    rgba(15, 18, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.acct-invoice-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.acct-invoice-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #eaf3ff;
}

.acct-invoice-amount {
  font-size: 13px;
  font-weight: 800;
  color: #ffd766;
}

.acct-invoice-meta {
  margin-top: 3px;
  font-size: 11px;
  opacity: 0.6;
}

/* Empty state card */
.acct-invoice-empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(10, 12, 24, 0.7);
}

/* =========================================================
   BILLING / SIGN OUT BUTTONS
   ========================================================= */

#acctOpenBilling,
#acctLogout {
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.5);
  background: transparent;
  color: #bff7ff;
  font-family: "Rajdhani", system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#acctOpenBilling:hover,
#acctLogout:hover {
  background: rgba(0, 240, 255, 0.12);
  color: #eafaff;
}

/* Make Sign out feel a bit more "danger" */
#acctLogout {
  border-color: rgba(255, 64, 129, 0.7);
  color: #ffd4e5;
}

#acctLogout:hover {
  background: rgba(255, 64, 129, 0.14);
  color: #ffffff;
}

/* =========================================================
   FOOTER NAV: Account | News | Privacy | Terms | Contact
   ========================================================= */

#bcgaFooterNav {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#bcgaFooterNav a {
  text-decoration: none;
  color: #84e7ff;
  opacity: 0.7;
}

#bcgaFooterNav a:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.9);
}

/* Highlight current tab */
#bcgaFooterNav a[href="#/account"] {
  color: #ffffff;
  opacity: 1;
}
/* =========================================================
   NEWS MODAL: sticky header + footer, scrolling center
   ========================================================= */

/* Center the modal, no body scroll inside overlay */
.bcgn-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,4,20,.6);
  backdrop-filter: blur(8px) saturate(1.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bcgn-overlay[hidden] {
  display: none !important;
}

/* Modal = flex column: header / body / footer */
.bcgn-modal {
  position: relative;
  width: min(92vw, 720px);
  max-height: min(86vh, 740px);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.07),
    rgba(255,255,255,.03)
  );
  border: 1px solid var(--bcg-line);
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
  padding: 16px 16px 14px;
  color: #eafaff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  display: flex;
  flex-direction: column;
  overflow: hidden;         /* keep the scroll inside the center panel */
}

/* Header sticks at top */
.bcgn-header {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* Scroll panel (cards / privacy / terms / contact) */
.bcgn-body {
  flex: 1 1 auto;
  min-height: 0;            /* critical so flex child can scroll */
  margin-top: 10px;
  padding: 12px 14px 8px;
  overflow-y: auto;
  border-radius: 14px;
  background: rgba(3,8,24,.76);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.45) inset;
}

/* Footer sticks at bottom */
.bcgn-footer {
  flex: 0 0 auto;
  text-align: center;
  margin-top: 16px;
  padding: 12px 10px 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.05));
  color: #b0c3d6;
  font-family: 'Rajdhani', sans-serif;
  border-radius: 0 0 18px 18px;
}

@supports (padding: max(0px)) {
  .bcgn-footer {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* Make sure the close button still sits on top-right of the card */
.bcgn-x {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 10px;
  padding: 6px 9px;
  cursor: pointer;
}