:root{
  --bg: #0a0f1f;
  --bg2: #0c1225;
  --card: rgba(255,255,255,.08);
  --text: #e7f0ff;
  --accent: #00d4ff;
  --purple: #7b2cbf;
  --glow: 0 0 12px rgba(0,212,255,.8);
  --gold: #ffd700;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: linear-gradient(#0a0f1f, #0c1225); color: var(--text); font-family: Inter, Montserrat, Golos UI, sans-serif; }
#stars { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; position: sticky; top: 0; z-index: 5;
  background: rgba(9,12,25,.8); backdrop-filter: blur(2px);
}
.brand { display: flex; align-items: center; gap: 8px; }
.logo-text { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 28px; color: #eaf2ff; }
.brand-sub { font-size: 12px; color: #a7b7d6; margin-left: 6px; opacity: .9; }
.header-actions { display: flex; gap: 12px; }

.btn {
  background: linear-gradient(135deg, #0b1b2a, #0a2a4a);
  color: #e9f5ff; border: 1px solid #2a3f7a; padding: 10px 14px; border-radius: 8px;
  cursor: pointer; font-family: Inter, sans-serif;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--glow); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Glass cards */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  padding: 12px;
}
.container { padding: 20px; max-width: 1200px; margin: 0 auto; }

.section-title { font-family: Montserrat, sans-serif; font-size: 22px; margin: 6px 0 12px; color: #e9f4ff; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 16px; transition: transform .2s ease, background .2s ease; }
.card:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }

.card h3 { margin: 0 0 8px; font-family: Montserrat, sans-serif; font-weight: 700; }
.price { font-family: Inter, sans-serif; font-size: 22px; font-weight: 700; color: #eaf6ff; margin-bottom: 8px; }

.privileges { padding-left: 18px; margin: 0; }

.content-creator { border: 2px solid var(--gold); box-shadow: 0 0 16px rgba(255,215,0,.6); }

.note { font-size: 12px; color: var(--gold); }

.tier { position: relative; overflow: hidden; }

/* Animated snow (CSS + canvas optional, snow on canvas in script) */
@keyframes glow {
  0%,100% { filter: drop-shadow(0 0 0 rgba(0,212,255,0)); }
  50% { filter: drop-shadow(0 0 12px rgba(0,212,255,.8)); }
}
.btn.pay-btn {
  margin-top: 8px;
  display: inline-block;
  padding: 9px 12px;
  border-radius: 6px;
  border: 0;
  background: linear-gradient(135deg, #003a6b, #005e92);
  color: #eaffff;
  cursor: pointer;
}
.btn.pay-btn:hover { transform: translateY(-1px); box-shadow: 0 0 8px rgba(0,212,255,.8); }

/* Snow canvas overlay (optional tint) */
#stars { opacity: .9; }

/* Payment modal (shared) */
.modal {
  display: none;
  position: fixed; inset: 0; align-items: center; justify-content: center;
  z-index: 9999;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-content {
  position: relative; background: #0b1220; padding: 20px; border-radius: 12px;
  width: min(720px, 92%); color: #fff; box-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.modal-close { position: absolute; top: 8px; right: 8px; border: none; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }

/* Admin styles */
#admin-container { padding: 0; }
.section-title { text-align: left; }

/* Admin tickets */
.ticket { border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 10px; background: rgba(255,255,255,.05); }
.ticket .row { display:flex; justify-content: space-between; gap:8px; padding: 4px 0; align-items: baseline; }
.ticket .badge { padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.status-waiting { background: #334; color: #ffd; }
.status-approved { background: #1b3; color: #bff; }
.status-rejected { background: #422; color: #ff9; }

/* Footer hints */
.footer { text-align: center; padding: 18px; color: #b6c6e7; font-size: 13px; border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 700px){
  .logo-text { font-size: 22px; }
  .brand-sub { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .donations, .creators { margin-bottom: 12px; }
}
