/* RBR PWA — minimal, premium, dark-blue dominant + dark-red accent */
:root{
  --bg:#050816;
  --panel:rgba(10,16,38,.62);
  --panel2:rgba(10,16,38,.78);
  --text:#e9ecff;
  --muted:#aab2d6;
  --line:rgba(255,255,255,.08);
  --blue:#081128;
  --accent:#5a0b14; /* dark red */
  --accent2:#183a7a; /* deep blue glow */
  --radius:22px;
  --shadow: 0 18px 50px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background:
    radial-gradient(1000px 700px at 20% 0%, rgba(24,58,122,.22), transparent 60%),
    radial-gradient(900px 650px at 85% 15%, rgba(90,11,20,.16), transparent 55%),
    radial-gradient(1000px 700px at 50% 120%, rgba(24,58,122,.12), transparent 60%),
    var(--bg);
  color:var(--text);
}

.app{max-width:980px;margin:0 auto;min-height:100%;padding-bottom:92px}
.topbar{
  position:sticky;top:0;z-index:5;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(5,8,22,.92), rgba(5,8,22,.55));
  border-bottom:1px solid var(--line);
  padding:16px 16px 12px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand__logo{width:44px;height:44px;border-radius:14px;object-fit:cover;box-shadow:0 10px 25px rgba(0,0,0,.45)}
.brand__text{min-width:0}
.brand__name{font-weight:800;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand__tag{font-size:12px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.content{padding:16px}
.grid{display:grid;gap:14px}
@media(min-width:760px){ .grid.cols2{grid-template-columns:1.15fr .85fr} .grid.cols3{grid-template-columns:repeat(3,1fr)} }

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card__hd{padding:14px 14px 10px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.card__title{font-weight:800}
.card__sub{color:var(--muted);font-size:12px;margin-top:4px}
.card__bd{padding:14px}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;color:var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 10px;
  background: rgba(255,255,255,.03);
}
.badge .dot{width:8px;height:8px;border-radius:999px;background:rgba(24,58,122,.8); box-shadow: 0 0 18px rgba(24,58,122,.8);}
.badge--red .dot{background:rgba(90,11,20,.9); box-shadow: 0 0 18px rgba(90,11,20,.65);}

.hero{
  display:grid;gap:14px;
}
@media(min-width:760px){ .hero{grid-template-columns:150px 1fr} }
.cover{
  width:100%;
  border-radius:18px;
  border:1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
.cover img{display:block;width:100%;height:auto}
.img{
  border-radius:18px;
  border:1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.03);
  margin:10px 0;
}
.img img{display:block;width:100%;height:100%;object-fit:cover}

/* Uniform thumbnails (Option A) */
.img--event{aspect-ratio:16/9;max-height:240px}
.img--giveaway{aspect-ratio:1/1;max-height:180px}
.img--release{aspect-ratio:1/1;max-height:260px}

.img--qr{max-width:280px;aspect-ratio:1/1}
.img--qr img{object-fit:contain;background:#fff}

/* Make bottom nav fit 6 tabs if needed */
.bottomnav .tab{max-width:150px}

.h1{font-size:20px;font-weight:900;letter-spacing:.2px;margin:0 0 6px}
.p{margin:0;color:var(--muted);line-height:1.5}

.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.btn{
  appearance:none;border:1px solid var(--line);cursor:pointer;
  border-radius:14px;
  padding:10px 12px;
  background: rgba(255,255,255,.04);
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}
.btn:hover{transform: translateY(-1px); transition: .12s ease; background: rgba(255,255,255,.06);}
.btn--primary{
  border-color: rgba(90,11,20,.55);
  background: linear-gradient(180deg, rgba(90,11,20,.45), rgba(90,11,20,.18));
  box-shadow: 0 0 0 1px rgba(90,11,20,.25), 0 12px 35px rgba(90,11,20,.25);
}
.btn--blue{
  border-color: rgba(24,58,122,.55);
  background: linear-gradient(180deg, rgba(24,58,122,.35), rgba(24,58,122,.12));
  box-shadow: 0 0 0 1px rgba(24,58,122,.2), 0 12px 35px rgba(24,58,122,.2);
}

.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hr{height:1px;background:var(--line);margin:12px 0}
.list{display:grid;gap:10px}
.item{
  display:flex;gap:12px;align-items:center;
  padding:10px;border:1px solid var(--line);border-radius:18px;background: rgba(255,255,255,.02);
}
.item__thumb{width:54px;height:54px;border-radius:16px;object-fit:cover;border:1px solid var(--line);background: rgba(255,255,255,.03)}
.item__meta{min-width:0}
.item__name{font-weight:850}
.item__small{font-size:12px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item__right{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.chip{
  display:inline-flex;align-items:center;justify-content:center;
  padding:9px 10px;border-radius:999px;
  border:1px solid var(--line);
  font-weight:800;font-size:12px;text-decoration:none;color:var(--text);
  background: rgba(255,255,255,.03);
}
.chip--ghost{background: transparent}
.chip--accent{border-color: rgba(90,11,20,.5); background: rgba(90,11,20,.18)}
.chip--blue{border-color: rgba(24,58,122,.5); background: rgba(24,58,122,.14)}

.bottomnav{
  position:fixed;left:0;right:0;bottom:0;z-index:8;
  padding:10px 10px 14px;
  background: linear-gradient(180deg, rgba(5,8,22,.0), rgba(5,8,22,.92));
  backdrop-filter: blur(18px);
  border-top:1px solid var(--line);
  display:flex;gap:8px;justify-content:center;
}
.bottomnav .tab{
  width:100%;
  max-width:180px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:18px;
  padding:10px 10px;
  color:var(--muted);
  cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:4px;
}
.bottomnav .tab__icon{font-size:16px;line-height:1;color:var(--muted)}
.bottomnav .tab__label{font-size:11px;font-weight:900;letter-spacing:.15px}
.bottomnav .tab.is-active{
  color:var(--text);
  border-color: rgba(24,58,122,.55);
  background: linear-gradient(180deg, rgba(24,58,122,.35), rgba(24,58,122,.10));
  box-shadow: 0 0 0 1px rgba(24,58,122,.18), 0 12px 28px rgba(24,58,122,.18);
}
.bottomnav .tab.is-active .tab__icon{color:var(--text)}

.form{display:grid;gap:10px}
.input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color:var(--text);
  outline:none;
  font-weight:650;
}
textarea{min-height:120px;resize:vertical;line-height:1.4}
.label{font-size:12px;color:var(--muted);margin-left:4px}
.help{font-size:12px;color:var(--muted);line-height:1.45}
.small{font-size:12px;color:var(--muted)}
.kbd{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size:12px; color:#cdd6ff}


.tab__icon svg{width:20px;height:20px;fill:currentColor;display:block}


/* === REV3.2 CARD PROFI: hard image limits (prevents giant posters/QR) === */
.img img{
  display:block;
  width:100%;
}

.img--event{
  height:220px;
  max-height:none;
  aspect-ratio:auto;
}
.img--event img{
  height:100%;
  object-fit:cover;
}

.img--release{
  height:260px;
  max-height:none;
  aspect-ratio:auto;
}
.img--release img{
  height:100%;
  object-fit:cover;
}

.img--giveaway{
  height:140px;
  max-height:none;
  aspect-ratio:auto;
}
.img--giveaway img{
  height:100%;
  object-fit:cover;
}

/* QR must never dominate the screen */
.img--qr{
  width:min(220px, 70vw);
  margin:12px auto;
  padding:8px;
  border-radius:14px;
  background:#fff;
}
.img--qr img{
  width:100%;
  height:auto;
  max-height:220px;
  object-fit:contain;
  background:transparent;
}

/* tighter cards on mobile */
.card{max-width:420px;margin-left:auto;margin-right:auto;}
.grid.cols3{gap:10px;}
/* === end REV3.2 === */
