/* BIG STAR — theme + NAVBAR ONLY (market/page-specific styles go into each page) */

:root{
  --bg: #0b0f14;
  --bg2: #0f1620;

  --surface: rgba(255,255,255,0.06);
  --surface2: rgba(255,255,255,0.09);
  --stroke: rgba(255,255,255,0.12);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);

  --accent: #ffd54f;     /* gold */
  --shadow: rgba(0,0,0,0.45);

  --radius: 18px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  padding:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== Minimal modern navbar (inserted by common.js) ===== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,15,20,0.86);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar .nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap: 10px;
}

.navbar .brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  overflow:hidden;
}

.navbar .brand img{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  flex: 0 0 auto;
}

.navbar .brand .brand-title{
  font-weight: 1000;
  letter-spacing: .7px;
  color: rgba(255,255,255,0.96);
  white-space: nowrap;
  line-height: 1;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ALWAYS show BIG STAR (even on narrow screens) */
@media (max-width: 420px){
  .navbar .brand .brand-title{
    display: inline-block;
    font-size: 14px;
  }
}

/* Minimal icon tabs */
.navbar .tabs{
  display:flex;
  gap: 8px;
  align-items:center;
  flex:0 0 auto;
  max-width:100%;
}

.navbar .tab{
  width: 42px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .10s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}

.navbar .tab svg{ width: 16px; height: 16px; opacity: .95; }
.navbar .tab:active{ transform: scale(0.985); }

.navbar .tab.active{
  background: rgba(255,213,79,0.16);
  border-color: rgba(255,213,79,0.22);
  color: var(--accent);
}

@media (max-width: 360px){
  .navbar .tab{ width: 40px; height: 36px; }
}
/* ------------------------------ */
/* Modal overlay (shared helpers) */
/* ------------------------------ */

/*
  Some pages (e.g. profile.js) create centered modals dynamically using
  a `.modal-bg` overlay and an inner `.modal` container.
  Without global styles these modals appear transparent and without a
  backdrop.

  NOTE: styles are scoped under `.modal-bg` so they don't affect admin.html
  which uses different modal/overlay class names.
*/

.modal-bg{
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow-y: auto;
}

.modal-bg .modal{
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: rgba(20,23,28,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  color: #fff;
}

.modal-bg .modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-bg .modal-header h3{
  margin: 0;
  font-size: 18px;
}

.modal-bg .modal-close{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.modal-bg .modal-actions{
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ===== Navbar tweaks for 5 tabs ===== */
.navbar .tabs{
  gap: 6px;
}
@media (max-width: 560px){
  .navbar .nav-inner{
    padding: 10px 10px;
    gap: 8px;
  }
  .navbar .brand .brand-title{
    font-size: 13px;
    letter-spacing: .45px;
  }
  .navbar .tab{
    width: 39px;
    height: 36px;
  }
}
@media (max-width: 400px){
  .navbar .brand img{
    width: 24px;
    height: 24px;
  }
  .navbar .tab{
    width: 37px;
    height: 34px;
  }
  .navbar .tab svg{
    width: 15px;
    height: 15px;
  }
}


@media (max-width: 560px){
  .navbar .nav-inner{ padding: 10px 8px; gap: 8px; }
  .navbar .brand img{ width:24px; height:24px; }
  .navbar .brand .brand-title{ font-size:12px; letter-spacing:.35px; max-width:88px; }
  .navbar .tabs{ gap:4px; }
  .navbar .tab{ width:34px; height:32px; }
  .navbar .tab svg{ width:14px; height:14px; }
}
@media (max-width: 380px){
  .navbar .brand .brand-title{ max-width:72px; }
  .navbar .tab{ width:32px; height:30px; }
  .navbar .tab svg{ width:13px; height:13px; }
}


/* ===== Extra-tight mobile navbar for 5 tabs + title ===== */
@media (max-width: 430px){
  .navbar .nav-inner{
    grid-template-columns:minmax(0,1fr) auto;
    padding: 8px 7px;
    gap: 6px;
  }
  .navbar .brand{ gap: 7px; }
  .navbar .brand img{ width:22px; height:22px; border-radius:8px; }
  .navbar .brand .brand-title{
    font-size:11px;
    letter-spacing:.22px;
    max-width:58px;
  }
  .navbar .tabs{ gap:3px; }
  .navbar .tab{ width:30px; height:29px; }
  .navbar .tab svg{ width:12px; height:12px; }
}
@media (max-width: 360px){
  .navbar .nav-inner{ padding: 8px 6px; gap: 5px; }
  .navbar .brand .brand-title{ max-width:50px; font-size:10px; }
  .navbar .tab{ width:28px; height:28px; }
  .navbar .tab svg{ width:11px; height:11px; }
}
