/* StudiKitEZ vanilla — faithful mirror of the original globals.css + page styles.
   Deep dark theme #09090b, Inter/Geist Sans, monochrome white accents. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #09090b;
  color: #fafafa;
  font-family: "Inter", "Geist Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
*:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
::selection { background: rgba(255,255,255,0.14); color: #fafafa; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- framer-motion equivalents ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-soft { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
/* toast spring: initial {opacity:0, x:40, scale:0.97} -> spring damping 24 stiffness 300 */
@keyframes toast-in {
  0% { opacity: 0; transform: translateX(40px) scale(0.97); }
  60% { opacity: 1; transform: translateX(-4px) scale(1.005); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }
/* modal spring: initial {opacity:0, scale:0.97, y:12}, damping 26 stiffness 300 */
@keyframes modal-in {
  0% { opacity: 0; transform: scale(0.97) translateY(12px); }
  60% { opacity: 1; transform: scale(1.005) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
/* entrance: initial {opacity:0, y:14-20} */
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise-in-sm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* loading bar: repeat Infinity duration 0.8 linear */
@keyframes load-slide { from { transform: translateX(-100%); } to { transform: translateX(200%); } }

.anim-page { animation: rise-in 0.4s cubic-bezier(0.16,1,0.3,1) both; }
.anim-rise { animation: rise-in-sm 0.35s cubic-bezier(0.16,1,0.3,1) both; }
.anim-fade { animation: fadeIn 0.3s ease-out both; }
.anim-scale { animation: scaleIn 0.2s ease-out both; }

/* ---------- glass + lift (original) ---------- */
.glass {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
}
.glass-strong {
  background: rgba(18,18,18,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
}
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.hover-lift:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

/* ---------- buttons (original Button.tsx) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: 0.75rem;
  transition: all 0.2s ease; cursor: pointer; border: 1px solid transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #fff; color: #09090b; }
.btn-primary:hover { background: #e4e4e7; box-shadow: 0 0 15px rgba(255,255,255,0.12); }
.btn-secondary { background: transparent; color: #fafafa; border-color: rgba(255,255,255,0.2); }
.btn-secondary:hover { background: #fff; color: #09090b; border-color: #fff; }
.btn-ghost { background: transparent; color: #a1a1aa; }
.btn-ghost:hover { color: #fafafa; background: rgba(255,255,255,0.1); }
.btn-danger { background: #fff; color: #09090b; border-color: #fff; }
.btn-danger:hover { background: #e4e4e7; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.875rem; gap: 0.375rem; }
.btn-md { padding: 0.625rem 1.25rem; font-size: 1rem; gap: 0.5rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1.125rem; gap: 0.625rem; }
.btn-block { width: 100%; }
.btn .spin { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 3px solid currentColor; border-top-color: transparent; animation: spin 0.8s linear infinite; }

/* ---------- card (original Card.tsx) ---------- */
.card { border-radius: 1rem; overflow: hidden; transition: all 0.3s ease; }
.card-default { background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); }
.card-elevated { background: #111111; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.card-outlined { background: transparent; border: 1px solid rgba(255,255,255,0.15); }
.card-p-sm { padding: 1rem; } .card-p-md { padding: 1.25rem; } .card-p-lg { padding: 1.5rem; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
/* glass-card (cards on live/premium pages) */
.glass-card { background: rgba(18,18,18,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.05); border-radius: 18px; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s, box-shadow 0.35s; overflow: hidden; display: flex; flex-direction: column; }
.glass-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); box-shadow: 0 24px 70px -30px rgba(255,255,255,0.22); }
.glass-card:hover .thumb img { transform: scale(1.05); }

/* ---------- badge (original globals.css) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500; line-height: 1;
  border: 1px solid rgba(255,255,255,0.08);
}
.badge-white { background: #ffffff; color: #09090b; }
.badge.solid, .badge-solid { background: #ffffff; color: #09090b; border-color: #fff; }
.badge-outline { background: transparent; color: #fafafa; border-color: rgba(255,255,255,0.12); }
.badge-muted { background: rgba(255,255,255,0.06); color: #a1a1aa; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse-soft 1.5s infinite; }

/* ---------- input (original Input.tsx) ---------- */
.field label { display: block; font-size: 0.875rem; font-weight: 500; color: #d4d4d8; margin-bottom: 0.5rem; }
.input-wrap { position: relative; }
.input-wrap .lic { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #71717a; pointer-events: none; display: flex; }
.input-wrap .ric { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: #71717a; pointer-events: none; display: flex; }
.input-base {
  width: 100%; background: #111111; border: 1px solid rgba(255,255,255,0.1);
  color: #fff; border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.95rem;
  transition: all 0.2s ease; outline: none;
}
.input-base::placeholder { color: #52525b; }
.input-base:hover { border-color: rgba(255,255,255,0.15); }
.input-base:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.input-wrap.has-left .input-base { padding-left: 3rem; }
.input-wrap.has-right .input-base { padding-right: 3rem; }
.input-err { border-color: rgba(255,255,255,0.3) !important; }
.form-err { margin-top: 0.5rem; font-size: 0.875rem; color: #d4d4d8; display: flex; align-items: center; gap: 0.25rem; animation: slideUp 0.3s ease-out; }
.form-help { margin-top: 0.5rem; font-size: 0.875rem; color: #71717a; }

/* ---------- header (original Header.tsx) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); background: rgba(0,0,0,0.6); border-bottom: 1px solid rgba(255,255,255,0.05); }
.site-header .sheen { position: absolute; inset: 0; background: linear-gradient(to right, rgba(255,255,255,0.02), transparent, rgba(255,255,255,0.02)); pointer-events: none; }
.nav-inner { position: relative; margin: 0 auto; max-width: 80rem; padding: 0 1rem; }
@media(min-width:640px){ .nav-inner { padding: 0 1.5rem; } }
@media(min-width:1024px){ .nav-inner { padding: 0 2rem; } }
.nav-bar { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.625rem; }
.logo-mark { width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(255,255,255,0.08); animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }
.logo-text { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: #fff; }
@media(max-width:639px){ .logo-text { display: none; } }
.nav-pills { display: none; align-items: center; gap: 0.25rem; background: rgba(255,255,255,0.04); backdrop-filter: blur(20px); border-radius: 0.75rem; padding: 0.25rem; border: 1px solid rgba(255,255,255,0.05); }
@media(min-width:768px){ .nav-pills { display: flex; } }
.nav-pills a, .nav-pills button { padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; color: #a1a1aa; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.375rem; }
.nav-pills a:hover, .nav-pills button:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-pills a.on { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.avatar { width: 2rem; height: 2rem; border-radius: 9999px; background: #fff; color: #000; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.adfree-pill { display: none; align-items: center; gap: 0.25rem; font-size: 10px; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 9999px; background: #fff; color: #000; }
@media(min-width:640px){ .adfree-pill { display: inline-flex; } }
.menu-btn { padding: 0.5rem; border-radius: 0.5rem; color: #a1a1aa; background: none; border: 0; cursor: pointer; }
.menu-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
@media(min-width:768px){ .menu-btn { display: none; } }
.mobile-menu { display: none; border-top: 1px solid rgba(255,255,255,0.05); background: #09090b; overflow: hidden; }
.mobile-menu.open { display: block; animation: slideDown 0.25s ease-out; }
.mobile-menu .pad { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu a, .mobile-menu button.mlink { display: block; padding: 0.75rem 1rem; border-radius: 0.75rem; font-size: 1rem; font-weight: 500; color: #a1a1aa; background: none; border: 1px solid transparent; text-align: left; cursor: pointer; width: 100%; }
.mobile-menu a:hover, .mobile-menu button.mlink:hover { color: #fff; background: rgba(255,255,255,0.05); }
.mobile-menu a.on { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.1); }
main.page { flex: 1; padding-top: 4rem; }
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- hero (original Hero.tsx) ---------- */
.hero { position: relative; width: 100%; overflow: hidden; padding: 5rem 0; background: #000; }
@media(min-width:1024px){ .hero { padding: 8rem 0; } }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,255,255,0.06), transparent 70%); }
.hero-grid-bg { position: absolute; inset: 0; opacity: 0.04; }
.hero-inner { position: relative; margin: 0 auto; max-width: 80rem; padding: 0 1rem; }
@media(min-width:640px){ .hero-inner { padding: 0 1.5rem; } }
@media(min-width:1024px){ .hero-inner { padding: 0 2rem; } }
.hero-center { text-align: center; max-width: 56rem; margin: 0 auto; animation: rise-in 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.hero-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 9999px; background: #fff; color: #000; font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; border: 1px solid #fff; animation: scaleIn 0.4s 0.15s both; }
.hero-pill .ping { position: relative; display: flex; height: 0.5rem; width: 0.5rem; }
.hero-pill .ping::before { content: ""; position: absolute; display: inline-flex; height: 100%; width: 100%; border-radius: 50%; background: #000; opacity: 0.2; animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
.hero-pill .ping::after { content: ""; position: relative; display: inline-flex; border-radius: 50%; height: 0.5rem; width: 0.5rem; background: #000; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.hero h1 { font-weight: 700; font-size: 2.25rem; line-height: 0.95; letter-spacing: -0.02em; color: #fff; margin: 0 0 1.5rem; }
@media(min-width:640px){ .hero h1 { font-size: 3rem; } }
@media(min-width:1024px){ .hero h1 { font-size: 3.75rem; } }
.hero p.lead { font-size: 1.125rem; color: #a1a1aa; max-width: 42rem; margin: 0 auto 2.5rem; line-height: 1.75; }
@media(min-width:640px){ .hero p.lead { font-size: 1.25rem; } }
.hero-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media(min-width:640px){ .hero-cta { flex-direction: row; } }
.hero-feats { margin-top: 4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 48rem; margin-left: auto; margin-right: auto; }
@media(min-width:768px){ .hero-feats { grid-template-columns: repeat(4, 1fr); } }
.hero-feat { text-align: left; padding: 1rem; border-radius: 0.75rem; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); transition: border-color 0.2s, background 0.2s; animation: rise-in 0.4s both; }
.hero-feat:hover { border-color: rgba(255,255,255,0.15); background: #111111; }
.hero-feat .fic { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.hero-feat h3 { font-weight: 600; color: #fff; font-size: 0.875rem; margin: 0; }
.hero-feat p { font-size: 0.75rem; color: #71717a; margin-top: 0.25rem; line-height: 1.5; }

/* ---------- catalog section (original BatchGrid) ---------- */
.section { position: relative; padding: 4rem 0; background: #09090b; overflow: hidden; }
@media(min-width:1024px){ .section { padding: 6rem 0; } }
.mesh { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.mesh-1 { top: -8rem; left: -8rem; width: 520px; height: 520px; background: rgba(255,255,255,0.04); }
.mesh-2 { top: 50%; right: -8rem; width: 560px; height: 560px; background: rgba(255,255,255,0.025); filter: blur(100px); }
.mesh-3 { bottom: 0; left: 50%; width: 700px; height: 300px; background: rgba(255,255,255,0.02); filter: blur(80px); transform: translateX(-50%); }
.wrap { position: relative; margin: 0 auto; max-width: 80rem; padding: 0 1rem; }
@media(min-width:640px){ .wrap { padding: 0 1.5rem; } }
@media(min-width:1024px){ .wrap { padding: 0 2rem; } }
.sec-head { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media(min-width:640px){ .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.sec-head h2 { font-weight: 700; font-size: 1.875rem; letter-spacing: -0.02em; color: #fff; margin: 0; animation: rise-in-sm 0.35s both; }
@media(min-width:640px){ .sec-head h2 { font-size: 2.25rem; } }
.sec-head p.sub { margin-top: 0.5rem; color: #a1a1aa; font-size: 0.875rem; }
.sec-count { font-size: 0.75rem; color: #71717a; border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 0.375rem 0.875rem; white-space: nowrap; }
.searchbox { width: 100%; max-width: 56rem; margin: 0 auto; }
.searchbox form { position: relative; }
.searchbox .sicon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #71717a; display: flex; }
.searchbox input[type="search"] { width: 100%; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 0.75rem; padding: 1rem 3rem 1rem 3rem; font-size: 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.searchbox input[type="search"]::placeholder { color: #52525b; }
.searchbox input[type="search"]:hover { border-color: rgba(255,255,255,0.15); }
.searchbox input[type="search"]:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.searchbox .sclear { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); padding: 0.375rem; border-radius: 0.5rem; color: #71717a; background: none; border: 0; cursor: pointer; display: none; }
.searchbox .sclear:hover { color: #fff; background: rgba(255,255,255,0.1); }
.frow { margin-top: 1rem; display: none; flex-wrap: wrap; gap: 0.5rem; animation: slideDown 0.25s ease-out; }
.frow.show { display: flex; }
.fbtn { padding: 0.5rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; border: 1px solid; cursor: pointer; }
.fbtn.on { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.12); }
.fbtn.off { background: #0a0a0a; color: #a1a1aa; border-color: rgba(255,255,255,0.1); }
.fbtn.off:hover { color: #fff; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
/* bento spans (original getSpan) */
.bento { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media(min-width:640px){ .bento { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:768px){ .bento { grid-template-columns: repeat(12, 1fr); } }
@media(min-width:768px){
  .bento > article:nth-child(6n+1) { grid-column: span 8; }
  .bento > article:nth-child(6n+2) { grid-column: span 4; }
  .bento > article:nth-child(6n+3) { grid-column: span 4; }
  .bento > article:nth-child(6n+4) { grid-column: span 8; }
  .bento > article:nth-child(6n+5) { grid-column: span 6; }
  .bento > article:nth-child(6n+6) { grid-column: span 6; }
}
@media(min-width:1024px){
  .bento > article:nth-child(6n+1) { grid-column: span 7; }
  .bento > article:nth-child(6n+2) { grid-column: span 5; }
  .bento > article:nth-child(6n+3) { grid-column: span 5; }
  .bento > article:nth-child(6n+4) { grid-column: span 7; }
  .bento > article:nth-child(6n+5) { grid-column: span 6; }
  .bento > article:nth-child(6n+6) { grid-column: span 6; }
}
/* batch card (original BatchCard) */
.bcard { animation: rise-in 0.35s both; height: 100%; }
.bcard-in { height: 100%; display: flex; flex-direction: column; overflow: hidden; backdrop-filter: blur(20px); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 1rem; transition: all 0.3s ease; }
.bcard:hover { transform: translateY(-4px); }
.bcard:hover .bcard-in { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.04); }
.bthumb { position: relative; overflow: hidden; background: #0a0a0a; aspect-ratio: 16/9; }
.bthumb.feat { aspect-ratio: 16/9; }
.bthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.bcard:hover .bthumb img { transform: scale(1.04); }
.bthumb .shade { position: absolute; inset: 0; background: linear-gradient(to top, #000, rgba(0,0,0,0.3), transparent); }
.bthumb .sheen { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; background: linear-gradient(to top, rgba(255,255,255,0.04), transparent); }
.bcard:hover .bthumb .sheen { opacity: 1; }
.bthumb .row { position: absolute; bottom: 0.75rem; left: 0.75rem; right: 0.75rem; display: flex; align-items: center; justify-content: space-between; }
.btn-preview { display: inline-flex; align-items: center; gap: 0.375rem; background: rgba(0,0,0,0.5); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 0.375rem 0.75rem; border-radius: 0.75rem; cursor: pointer; transition: all 0.2s; }
.btn-preview:hover { background: #fff; color: #000; }
.bbody { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: 1rem; }
.btitle { font-weight: 600; font-size: 15px; line-height: 1.4; color: #fff; letter-spacing: -0.02em; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8rem; }
.bactions { margin-top: auto; display: flex; gap: 0.5rem; }
.bactions .btn { flex: 1; font-size: 0.875rem; padding: 0.625rem 0.75rem; }
/* empty state */
.empty { text-align: center; padding: 5rem 1rem; border: 1px dashed rgba(255,255,255,0.1); border-radius: 1rem; background: rgba(255,255,255,0.02); backdrop-filter: blur(20px); animation: rise-in 0.35s both; }
.empty .eic { width: 4rem; height: 4rem; border-radius: 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: #71717a; }
.empty h3 { font-size: 1.125rem; font-weight: 600; color: #fff; margin: 0 0 0.25rem; }
.empty p { color: #71717a; font-size: 0.875rem; margin: 0; }
/* skeletons */
.skel { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; height: 272px; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,0.06),transparent); animation: shimmer 1.4s infinite; }

/* ---------- course banner (original course page) ---------- */
.banner { position: relative; }
.banner-media { aspect-ratio: 21/9; width: 100%; max-height: 420px; overflow: hidden; background: #0a0a0a; border-bottom: 1px solid rgba(255,255,255,0.05); position: relative; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.banner-media .g1 { position: absolute; inset: 0; background: linear-gradient(to top, #09090b, rgba(9,9,11,0.5), transparent); }
.banner-media .g2 { position: absolute; inset: 0; background: rgba(255,255,255,0.02); backdrop-filter: blur(0.5px); }
.banner-in { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 1rem 1.5rem; }
@media(min-width:640px){ .banner-in { padding: 0 1.5rem 1.5rem; } }
@media(min-width:1024px){ .banner-in { padding: 0 2rem 1.5rem; } }
.banner-box { margin: 0 auto; max-width: 80rem; display: flex; flex-direction: column; gap: 1rem; }
@media(min-width:640px){ .banner-box { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.banner-title { font-weight: 700; font-size: 1.875rem; letter-spacing: -0.02em; color: #fff; margin: 0.75rem 0 0; }
@media(min-width:640px){ .banner-title { font-size: 2.25rem; } }
.banner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; color: #a1a1aa; font-size: 0.875rem; margin-top: 0.75rem; }
.banner-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.banner-actions { display: flex; align-items: center; gap: 0.75rem; }
/* breadcrumbs */
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; animation: slideDown 0.25s ease-out; margin-bottom: 1.5rem; }
.crumbs nav { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; flex-wrap: wrap; }
.crumbs nav button { background: none; border: 0; cursor: pointer; padding: 0; }
.crumbs nav button:hover { color: #fff; }
.c-home { color: #71717a; } .c-mid { color: #a1a1aa; font-weight: 500; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-cur { color: #fff; font-weight: 500; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-sep { color: #52525b; }
/* underline tabs (original course page) */
.utabs { position: relative; border-bottom: 1px solid rgba(255,255,255,0.05); }
.utabs .row { display: flex; gap: 1.5rem; }
.utabs button { position: relative; padding: 0.625rem 0 0.75rem; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.02em; background: none; border: 0; cursor: pointer; transition: color 0.2s; color: #71717a; }
.utabs button:hover { color: #d4d4d8; }
.utabs button.on { color: #fff; }
.utabs .bar { position: absolute; bottom: -1px; height: 2px; background: #fff; transition: left 0.3s cubic-bezier(0.34,1.3,0.64,1), width 0.3s cubic-bezier(0.34,1.3,0.64,1); }
/* content grid (original xl:4 cols) */
.cgrid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
@media(min-width:640px){ .cgrid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .cgrid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:1280px){ .cgrid { grid-template-columns: repeat(4, 1fr); } }
/* filter tabs row */
.ftabs { display: flex; gap: 8px; flex-wrap: wrap; }
.liverow .lic { position: relative; }
/* compat: section headers, search, filter tabs, grids (live + misc pages) */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; }
h1.h2, .h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; color: #fff; font-size: clamp(22px, 3.2vw, 28px); line-height: 1; margin: 0; }
.sub { color: #a1a1aa; font-size: 14px; margin: 8px 0 0; }
.search { display: flex; align-items: center; gap: 10px; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 12px 16px; margin-top: 22px; }
.search select option { background: #0a0a0a; color: #fff; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn { font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); color: #8A8A8A; background: transparent; cursor: pointer; transition: all 0.25s; }
.tab-btn:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.tab-btn.active { background: #fff; color: #000; border-color: #fff; }
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width:640px){ .grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .grid { grid-template-columns: repeat(3, 1fr); } }
.thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.06); background: #0a0a0a; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s ease; }
.overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 60%); }
.meta-line { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #71717a; margin-top: 8px; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-title { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.spacer { flex: 1; }
.fade-up { animation: rise-in 0.7s cubic-bezier(0.16,1,0.3,1) both; }
h1.h1 { font-weight: 900; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.04em; color: #fff; font-size: clamp(30px, 5vw, 44px); margin: 0; }
/* overview stat cards */
.stat-grid { display: grid; gap: 1rem; }
@media(min-width:768px){ .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: #121212; border: 1px solid rgba(255,255,255,0.05); border-radius: 1rem; padding: 1.5rem; transition: all 0.2s; }
.stat:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.stat .sic { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.stat .l { color: #71717a; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stat .n { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: #fff; }
/* content cards (original ContentItem) */
.ccard article, .ccard { animation: rise-in-sm 0.3s both; }
.ccard .box { height: 100%; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; overflow: hidden; transition: all 0.3s; }
.ccard:hover { transform: translateY(-4px); }
.ccard:hover .box { border-color: rgba(255,255,255,0.15); box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.06); }
.ccard .carea { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.ccard .carea img.th { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.3s, transform 0.5s; }
.ccard:hover .carea img.th { opacity: 1; transform: scale(1.03); }
.ccard .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent); pointer-events: none; }
.ccard .dur { position: absolute; bottom: 0.5rem; right: 0.5rem; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 0.75rem; font-weight: 500; padding: 0.125rem 0.5rem; border-radius: 0.375rem; }
.ccard .goverlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; background: rgba(0,0,0,0.3); backdrop-filter: blur(1px); }
.ccard:hover .goverlay { opacity: 1; }
.ccard .cbody { padding: 1rem; }
.ccard h3 { font-weight: 600; color: #fff; font-size: 0.875rem; line-height: 1.4; margin: 0 0 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .frow2, .ccard .meta2 { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: #71717a; }
.ccard .meta2 span { display: inline-flex; align-items: center; gap: 0.25rem; }
.ccard .count-pills { position: absolute; bottom: 0.75rem; left: 0.75rem; right: 0.75rem; display: flex; align-items: center; justify-content: space-between; }
/* live rows */
.liverow { background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; transition: all 0.2s; animation: rise-in-sm 0.3s both; }
@media(min-width:640px){ .liverow { flex-direction: row; align-items: center; justify-content: space-between; } }
.liverow:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.liverow .lic { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.liverow h4 { font-weight: 600; color: #fff; font-size: 0.875rem; margin: 0; }
.liverow p { font-size: 0.75rem; color: #71717a; margin: 0.25rem 0 0; }
/* loading bar (original course page) */
.loadbar { margin-bottom: 1rem; height: 0.125rem; width: 100%; background: rgba(255,255,255,0.05); overflow: hidden; border-radius: 999px; }
.loadbar > div { height: 100%; width: 50%; background: #fff; animation: load-slide 0.8s linear infinite; }

/* ---------- player (original play page) ---------- */
.topbar { position: sticky; top: 4rem; z-index: 30; background: #000; border-bottom: 1px solid rgba(255,255,255,0.1); }
.topbar .in { margin: 0 auto; max-width: 80rem; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; height: 3.5rem; gap: 1rem; }
@media(min-width:640px){ .topbar .in { padding: 0 1.5rem; } }
@media(min-width:1024px){ .topbar .in { padding: 0 2rem; } }
.topbar .t { font-size: 0.875rem; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
@media(max-width:639px){ .topbar .t { display: none; } }
.stage-outer { position: relative; }
.stage-ambient { position: absolute; inset: -1.5rem; background-size: cover; background-position: center; opacity: 0.25; filter: blur(48px) saturate(1.5); pointer-events: none; }
.stage { position: relative; background: #000; border-radius: 1rem; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); aspect-ratio: 16/9; }
.stage.hide-cursor { cursor: none; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage iframe { width: 100%; height: 100%; border: 0; }
.stage .bigplay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.2); opacity: 0; transition: opacity 0.2s; border: 0; cursor: pointer; }
.stage:hover .bigplay { opacity: 1; }
.stage.hide-cursor .bigplay { opacity: 0; pointer-events: none; }
.bigplay .circle { width: 4rem; height: 4rem; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(255,255,255,0.2); font-size: 1.5rem; }
.playing-tag { position: absolute; top: 0.75rem; left: 0.75rem; background: #fff; color: #000; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 9999px; transition: opacity 0.3s; }
.ctlcard { background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; padding: 1rem; }
.progress { position: relative; height: 0.375rem; background: rgba(255,255,255,0.1); border-radius: 999px; cursor: pointer; transition: height 0.2s; }
.progress:hover { height: 0.5rem; }
.progress .fill { position: absolute; top: 0; bottom: 0; left: 0; background: #fff; border-radius: 999px; transition: width 0.1s linear; }
.progress .knob { position: absolute; top: 50%; width: 0.75rem; height: 0.75rem; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.2s; transform: translate(-50%,-50%); }
.progress:hover .knob { opacity: 1; }
.progress .buf { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(255,255,255,0.25); border-radius: 999px; }
/* volume slider (YouTube-style) */
input[type=range].vol { width: 84px; accent-color: #fff; cursor: pointer; }
@media(max-width:480px){ input[type=range].vol { width: 56px; } }
/* ---------- responsive: player + viewer adapt to screen ---------- */
@media(max-width:640px){
  .topbar .in { padding: 0 12px; gap: 8px; }
  .ctl-row { flex-wrap: wrap; row-gap: 10px; }
  .keys { display: none; }
  .time { font-size: 12px; }
  .play-main { width: 44px; height: 44px; }
  .yt-menu { left: 12px; right: 12px; min-width: 0; }
  .stage .circle, #center-overlay .circle { width: 56px; height: 56px; }
  .pdf-stage { min-height: 60vh; max-height: none; padding: 12px; }
  .pdf-bar { gap: 2px; padding: 8px; }
  .tbtn { min-width: 44px; min-height: 44px; }
  .banner-in { padding-bottom: 16px; }
}
@media(max-width:380px){
  .topbar .t, #doc-title { display: none; }
  input[type=range].vol { display: none; }
}
@media(orientation:landscape) and (max-height:500px){
  .pdf-stage { min-height: 70vh; }
  .hero { padding: 40px 0 24px; }
}
/* settings popup (YouTube-style menu) */
.yt-menu { position: absolute; right: 12px; bottom: 64px; z-index: 20; min-width: 240px; background: rgba(10,10,12,0.97); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.8); animation: scaleIn 0.18s ease-out; max-height: 320px; overflow-y: auto; }
.yt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 10px 12px; border-radius: 9px; background: none; border: 0; color: #e4e4e7; font-size: 13px; cursor: pointer; text-align: left; }
.yt-row:hover { background: rgba(255,255,255,0.08); color: #fff; }
.yt-row.on { color: #fff; font-weight: 600; }
.yt-row.yt-back { font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 9px 9px 0 0; margin-bottom: 4px; }
.yt-val { color: #a1a1aa; font-size: 12px; }
.yt-note { padding: 10px 12px; font-size: 12px; color: #71717a; }
.yt-menu.top { bottom: auto; top: calc(100% + 8px); right: 0; }
.ctl-row { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.ctl-left { display: flex; align-items: center; gap: 0.75rem; }
.play-main { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: #fff; color: #000; border: 0; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.play-main:hover { background: #e4e4e7; }
.time { font-size: 0.875rem; color: #d4d4d8; font-variant-numeric: tabular-nums; }
.ctl-right { display: flex; align-items: center; gap: 0.5rem; }
.iconbtn2 { width: 2.25rem; height: 2.25rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.75rem; background: transparent; color: #a1a1aa; border: 0; cursor: pointer; transition: all 0.2s; }
.iconbtn2:hover { color: #fff; background: rgba(255,255,255,0.1); }
.keys { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.75rem; color: #71717a; flex-wrap: wrap; }
.keys kbd { padding: 0.125rem 0.375rem; background: rgba(255,255,255,0.1); border-radius: 0.375rem; border: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; }
.qpills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.qpill { padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: #a1a1aa; cursor: pointer; transition: all 0.2s; }
.qpill:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.qpill.on { background: #fff; color: #000; border-color: #fff; }
.qpill.dim { color: #52525b; align-self: center; border: 0; cursor: default; }
.layout-2col { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 0; }
@media(min-width:1024px){ .layout-2col { grid-template-columns: 2fr 1fr; align-items: start; } }
.layout-2col.cinema { grid-template-columns: 1fr; }
.side-stack > * + * { margin-top: 1rem; }
.next-row { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.5rem; border-radius: 0.75rem; background: none; border: 1px solid transparent; cursor: pointer; text-align: left; color: #fff; transition: all 0.2s; }
.next-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.next-thumb { width: 3.5rem; height: 2.25rem; background: #111111; border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #71717a; }

/* ---------- pdf viewer (matches player chrome) ---------- */
.pdf-shell { background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; }
.pdf-bar { display: flex; align-items: center; gap: 0.25rem; padding: 0.625rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.4); flex-wrap: wrap; }
.pdf-bar .sep { width: 1px; height: 1.25rem; background: rgba(255,255,255,0.1); margin: 0 0.25rem; }
.tbtn { min-width: 44px; min-height: 44px; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: #d4d4d8; cursor: pointer; font-size: 1.125rem; transition: all 0.2s; }
.tbtn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.tbtn:disabled { opacity: 0.3; cursor: default; }
@media(max-width:639px){ .tbtn.opt { display: none; } .tbtn.opt-sm { display: none; } }
.pagebox { width: 3rem; height: 2.75rem; text-align: center; font-size: 0.875rem; font-family: monospace; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; color: #fff; outline: none; }
.pagebox:focus { border-color: rgba(255,255,255,0.3); }
.pagetotal { font-size: 0.75rem; color: #71717a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zoomlabel { font-size: 0.75rem; color: #a1a1aa; font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; background: none; border: 0; cursor: pointer; height: 2.75rem; border-radius: 0.75rem; padding: 0 0.5rem; }
.zoomlabel:hover { color: #fff; background: rgba(255,255,255,0.1); }
input[type=range].pagescrub { accent-color: #fff; flex: 1; max-width: 160px; }
@media(max-width:639px){ input[type=range].pagescrub { display: none; } }
.pdf-stage { position: relative; overflow: auto; background: #141414; display: flex; justify-content: center; padding: 1rem; min-height: 50vh; max-height: 68vh; }
@media(min-width:640px){ .pdf-stage { padding: 1.5rem; } }
.pdf-stage canvas { border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); background: #fff; max-width: 100%; height: auto; }
.pdf-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.2); border-radius: 6px; }
.pdf-status { display: flex; align-items: center; gap: 0.75rem; padding: 0.375rem 0.75rem; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.4); font-size: 11px; color: #71717a; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.pdf-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; text-align: center; padding: 4rem 1.25rem; }

/* ---------- tables / panels / auth ---------- */
.panel { background: rgba(18,18,18,0.96); border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; padding: 1.5rem; margin-top: 1rem; }
.panel h2 { margin: 0; color: #fff; font-size: 17px; font-weight: 600; }
.keyline { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.keyout { margin-top: 1.5rem; padding: 1.25rem; border-radius: 0.75rem; background: #000; border: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.keyout code { font-family: ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 800; letter-spacing: 0.12em; color: #fff; }
.keyout small { color: #71717a; display: block; font-size: 11px; margin-top: 4px; letter-spacing: 0; }
table.keys { width: 100%; border-collapse: collapse; font-size: 13px; }
table.keys th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #71717a; padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); font-weight: 500; }
table.keys td { padding: 1rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: #d4d4d8; vertical-align: middle; }
table.keys tr { transition: background 0.2s; }
table.keys tr:hover td { background: rgba(255,255,255,0.03); }
table.keys code { font-family: ui-monospace, Menlo, monospace; color: #fff; font-size: 12px; }
.tablewrap { overflow-x: auto; margin-top: 0.5rem; }
.iconbtn { background: none; border: 0; color: #71717a; cursor: pointer; padding: 0.375rem; border-radius: 0.5rem; font-size: 16px; }
.iconbtn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.search-sm { display: flex; align-items: center; gap: 8px; background: #000; border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; padding: 0.5rem 1rem; color: #71717a; }
.search-sm input { background: none; border: 0; outline: 0; color: #fff; font-size: 13px; width: 170px; }
.search-sm input::placeholder { color: #52525b; }
.auth-card { max-width: 440px; margin: 0 auto; width: 100%; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05); border-radius: 0.75rem; padding: 4px; margin-top: 22px; }
.seg button { border: 0; background: transparent; color: #a1a1aa; font-weight: 600; font-size: 14px; padding: 10px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.seg button.active { background: #fff; color: #000; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #52525b; font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.center { text-align: center; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 26px; }
.price { font-weight: 900; font-size: 40px; color: #fff; letter-spacing: -0.03em; }
.price small { font-size: 14px; font-weight: 500; color: #71717a; }
.perk { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #d4d4d8; margin-top: 10px; }
.perk i { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; flex-shrink: 0; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
@media(min-width:768px){ .plan-grid { grid-template-columns: 1fr 1fr; } }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.9); animation: pulse-soft 1.6s infinite; }

/* ---------- modal (original Modal.tsx) ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 40; display: none; }
.modal-bg.open { display: block; animation: fadeIn 0.2s ease-out; }
.modal-pos { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-pos.open { display: flex; }
.modal-panel { width: 100%; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.06); animation: modal-in 0.35s cubic-bezier(0.34,1.3,0.64,1) both; }
.modal-panel.sm { max-width: 28rem; } .modal-panel.md { max-width: 32rem; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.modal-head h2 { font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0; }
.modal-head p { font-size: 0.875rem; color: #a1a1aa; margin: 0.25rem 0 0; }
.modal-x { flex-shrink: 0; padding: 0.375rem; border-radius: 0.5rem; color: #a1a1aa; background: none; border: 0; cursor: pointer; font-size: 18px; }
.modal-x:hover { color: #fff; background: rgba(255,255,255,0.1); }
.modal-body { padding: 1.25rem; max-height: 70vh; overflow-y: auto; }

/* ---------- toast (original Toast.tsx) ---------- */
#toast-root { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; display: flex; flex-direction: column; gap: 0.75rem; width: 20rem; max-width: calc(100vw - 2rem); }
.toast { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.1); background: #111111; box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.06); animation: toast-in 0.45s cubic-bezier(0.34,1.3,0.64,1) both; }
.toast.out { animation: toast-out 0.25s ease-in both; }
.toast .tic { flex-shrink: 0; margin-top: 0.125rem; width: 2rem; height: 2rem; border-radius: 0.5rem; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.toast b { font-weight: 600; color: #fff; font-size: 0.875rem; line-height: 1; display: block; }
.toast p { font-size: 0.875rem; color: #a1a1aa; margin-top: 0.25rem; line-height: 1.4; }
.toast .tx { flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; color: #71717a; background: none; border: 0; cursor: pointer; }
.toast .tx:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ---------- ads ---------- */
.ad-wrap { position: relative; margin: 26px auto 0; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; background: rgba(255,255,255,0.02); padding: 8px; max-width: 100%; width: fit-content; }
.ad-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 6px 6px; }
.ad-bar span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #52525b; }
.ad-bar .ops { display: flex; align-items: center; gap: 12px; }
.ad-bar a { font-size: 10px; color: #71717a; } .ad-bar a:hover { color: #fff; }
.ad-bar button { background: none; border: 0; color: #71717a; cursor: pointer; padding: 2px; font-size: 14px; }
.ad-bar button:hover { color: #fff; }
.ad-host { display: flex; flex-direction: column; align-items: stretch; gap: 16px; justify-content: center; overflow: hidden; border-radius: 10px; min-height: 50px; }
.ad-host .adsbygoogle { margin: 0 auto; max-width: 100%; }
/* In-feed ad cards injected inside grids (mountInFeedAds) */
.ad-infeed { margin: 0; width: 100%; }
.ad-infeed .ad-host { min-height: 120px; }
.sticky-ad { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: none; justify-content: center; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); pointer-events: none; }
.sticky-ad .box { pointer-events: auto; background: rgba(0,0,0,0.92); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-bottom: 0; border-radius: 16px 16px 0 0; padding: 6px 8px 4px; }

/* ---------- footer (original Footer) ---------- */
footer.site { border-top: 1px solid rgba(255,255,255,0.05); background: #09090b; }
footer.site .fin { margin: 0 auto; max-width: 80rem; padding: 3rem 1rem; }
@media(min-width:640px){ footer.site .fin { padding: 3rem 1.5rem; } }
@media(min-width:1024px){ footer.site .fin { padding: 4rem 2rem; } }
footer.site .fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media(min-width:768px){ footer.site .fgrid { grid-template-columns: repeat(5, 1fr); } }
@media(min-width:1024px){ footer.site .fgrid { grid-template-columns: repeat(6, 1fr); } }
footer.site .brand { grid-column: span 2; }
@media(min-width:1024px){ footer.site .brand { grid-column: span 1; } }
footer.site .fdesc { margin-top: 1rem; font-size: 0.875rem; color: #a1a1aa; max-width: 18rem; }
footer.site .social { margin-top: 1.5rem; display: flex; gap: 1rem; }
footer.site .social a { width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; background: #1a1a1a; border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: #a1a1aa; transition: all 0.2s; }
footer.site .social a:hover { color: #fff; background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
footer.site h3 { font-size: 0.875rem; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
footer.site ul { margin-top: 1rem; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
footer.site ul a { font-size: 0.875rem; color: #a1a1aa; transition: color 0.2s; }
footer.site ul a:hover { color: #fff; }
footer.site .fbottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 1rem; }
@media(min-width:768px){ footer.site .fbottom { flex-direction: row; align-items: center; justify-content: space-between; } }
footer.site .fbottom p { font-size: 0.875rem; color: #71717a; margin: 0; }

/* misc */
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; border-top-color: transparent; animation: spin 0.8s linear infinite; margin: 60px auto; }
.spinner.sm { width: 20px; height: 20px; margin: 0; }
.count-pill { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: #000; background: #fff; border-radius: 999px; padding: 4px 10px; }

/* ---------- legacy structural classes (used across pages) ---------- */
.glass-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(0,0,0,0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }
main { padding-top: 64px; }
.hide-mobile { display: none; }
@media(min-width:640px){ .hide-mobile { display: inline; } }
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: #000; display: grid; place-items: center; font-weight: 900; font-size: 18px; box-shadow: 0 0 20px rgba(255,255,255,0.08); animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }
.logo-text { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: #fff; }
.nav-links { display: none; align-items: center; gap: 4px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 4px; backdrop-filter: blur(20px); }
@media(min-width:768px){ .nav-links { display: flex; } }
.nav-links a, .nav-links button { border: 0; background: transparent; color: #a1a1aa; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 8px; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a:hover, .nav-links button:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-links a.on, .nav-links a.active { background: #fff; color: #000; }
.menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #a1a1aa; cursor: pointer; font-size: 18px; }
.menu-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
@media(min-width:768px){ .menu-btn { display: none; } }
.mobile-menu { display: none; border-top: 1px solid rgba(255,255,255,0.05); background: #09090b; overflow: hidden; }
.mobile-menu.open { display: block; animation: slideDown 0.25s ease-out; }
.mobile-menu a { display: block; padding: 12px 16px; border-radius: 12px; color: #a1a1aa; font-weight: 500; font-size: 14px; margin: 4px 0; }
.mobile-menu a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.mobile-menu .pad { padding: 12px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.user-pill { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.bg-background { background: #09090b; }
.text-foreground { color: #fafafa; }
.dot-grid { position: fixed; inset: 0; pointer-events: none; opacity: .6; z-index: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 26px 26px; }
.halo { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,255,255,0.09), transparent 70%), radial-gradient(ellipse 60% 40% at 50% 115%, rgba(255,255,255,0.04), transparent 70%); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.mesh { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.mesh-1 { top: -8rem; left: -8rem; width: 520px; height: 520px; background: rgba(255,255,255,0.04); }
.mesh-2 { top: 50%; right: -8rem; width: 560px; height: 560px; background: rgba(255,255,255,0.025); filter: blur(100px); }
.mesh-3 { bottom: 0; left: 50%; width: 700px; height: 300px; background: rgba(255,255,255,0.02); filter: blur(80px); transform: translateX(-50%); }
.sec-head { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media(min-width:640px){ .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.sec-count { font-size: 0.75rem; color: #71717a; border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 0.375rem 0.875rem; white-space: nowrap; }
.frow { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; animation: slideDown 0.25s ease-out; }
.fbtn { padding: 0.5rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; border: 1px solid; cursor: pointer; }
.fbtn.on { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.12); }
.fbtn.off { background: #0a0a0a; color: #a1a1aa; border-color: rgba(255,255,255,0.1); }
.fbtn.off:hover { color: #fff; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.bento { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media(min-width:768px){
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento > * { grid-column: span 12; }
  .bento > .span-7 { grid-column: span 7; } .bento > .span-5 { grid-column: span 5; }
  .bento > .span-6 { grid-column: span 6; } .bento > .span-4 { grid-column: span 4; }
  .bento > .span-8 { grid-column: span 8; }
}
.hero-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 9999px; background: #fff; color: #000; font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; border: 1px solid #fff; animation: scaleIn 0.4s 0.15s both; }
.hero-pill .ping { position: relative; display: flex; height: 0.5rem; width: 0.5rem; }
.hero-pill .ping::before { content: ""; position: absolute; display: inline-flex; height: 100%; width: 100%; border-radius: 50%; background: #000; opacity: 0.2; animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.hero-feats { margin-top: 4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 48rem; margin-left: auto; margin-right: auto; }
@media(min-width:768px){ .hero-feats { grid-template-columns: repeat(4, 1fr); } }
.hero-feat { text-align: left; padding: 1rem; border-radius: 0.75rem; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); transition: border-color 0.2s, background 0.2s; animation: rise-in 0.4s both; }
.hero-feat:hover { border-color: rgba(255,255,255,0.15); background: #111111; }
.hero-feat .fic { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.hero-feat h3 { font-weight: 600; color: #fff; font-size: 0.875rem; margin: 0; }
.hero-feat p { font-size: 0.75rem; color: #71717a; margin-top: 0.25rem; line-height: 1.5; }
.empty { text-align: center; padding: 5rem 1rem; border: 1px dashed rgba(255,255,255,0.1); border-radius: 1rem; background: rgba(255,255,255,0.02); backdrop-filter: blur(20px); animation: rise-in 0.35s both; }
.empty .eic { width: 4rem; height: 4rem; border-radius: 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: #71717a; }
.empty h3 { font-size: 1.125rem; font-weight: 600; color: #fff; margin: 0 0 0.25rem; }
.empty p { color: #71717a; font-size: 0.875rem; margin: 0; }
footer.plain { border-top: 1px solid rgba(255,255,255,0.05); background: #09090b; margin-top: 56px; padding: 32px 0; color: #71717a; font-size: 13px; }
footer.plain .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* legacy toast markup (bottom-center) — new pages use #toast-root */
#toast { position: fixed; top: 24px; left: 50%; transform: translate(-50%,-120px); z-index: 100; opacity: 0; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); pointer-events: none; max-width: min(92vw,420px); }
#toast.show { transform: translate(-50%,0); opacity: 1; }
#toast .in { background: #0a0a0c; border: 1px solid rgba(255,255,255,0.14); padding: 14px 18px; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.9); display: flex; gap: 10px; align-items: flex-start; }
#toast b { color: #fff; font-size: 13px; display: block; }
#toast p { margin: 2px 0 0; font-size: 12px; color: #8A8A8A; }
#toast .tic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: #fff; color: #000; display: grid; place-items: center; font-weight: 900; }

@media(min-width:1100px){ .plan-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- streak + bell (new) ---------- */
.streak-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24; font-size: 13px; font-weight: 700;
  animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
.bell-btn {
  position: relative; padding: 6px; border-radius: 8px;
  color: #a1a1aa; background: none; border: none; cursor: pointer;
  transition: all 0.2s;
}
.bell-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.bell-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
.spinner {
  width: 32px; height: 32px; border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto;
}

/* ---------- stat-grid (dashboard) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media(max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 16px; border-radius: 12px;
  background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.stat:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.stat .l { font-size: 12px; color: #71717a; margin: 0 0 4px; }
.stat .n { font-size: 24px; font-weight: 700; color: #fff; margin: 0; }

/* ---------- week chart ---------- */
.week-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; }

/* ---------- panel (login/admin) ---------- */
.panel { background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 24px; }
.panel h2 { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 12px; }

/* ---------- key generator ---------- */
.keyline { display: flex; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.keyout {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; border-radius: 12px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap;
}
.keyout code { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 0.05em; }
.keyout small { display: block; font-size: 12px; color: #71717a; margin-top: 4px; }
.search-sm { display: flex; align-items: center; gap: 8px; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 6px 10px; font-size: 13px; color: #52525b; }
.search-sm input { background: transparent; border: 0; outline: 0; color: #fff; font-size: 13px; width: 100%; }
.tablewrap { overflow-x: auto; margin-top: 8px; }
.keys { width: 100%; border-collapse: collapse; font-size: 13px; }
.keys th { text-align: left; padding: 8px 12px; color: #52525b; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.06); }
.keys td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); color: #a1a1aa; }
.keys tr:hover td { background: rgba(255,255,255,0.02); }
.keys code { font-family: monospace; color: #e4e4e7; font-size: 13px; }
.iconbtn { background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; }
.iconbtn:hover { opacity: 0.7; }

/* ---------- ad banner ---------- */
.ad-wrap { margin: 16px 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); background: #0a0a0a; }
.ad-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; font-size: 11px; color: #52525b; }
.ad-bar .ops { display: flex; gap: 8px; align-items: center; }
.ad-bar a { color: #a1a1aa; text-decoration: underline; }
.ad-bar button { background: none; border: none; color: #52525b; cursor: pointer; font-size: 14px; }
.ad-host { display: flex; justify-content: center; overflow: hidden; }
.sticky-ad {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: none; justify-content: center; padding: 8px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9) 30%);
}
.sticky-ad .box { max-width: 360px; width: 100%; }

/* ---------- content cards ---------- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ccard { animation: rise-in 0.35s cubic-bezier(0.16,1,0.3,1) both; }
.ccard .box { border-radius: 14px; overflow: hidden; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.08); transition: all 0.3s; }
.ccard .box:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.carea { position: relative; padding: 32px; display: flex; align-items: center; justify-content: center; min-height: 140px; }
.carea .shade { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent); }
.carea .th { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.count-pills { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.cbody { padding: 16px; }
.cbody h3 { font-weight: 600; color: #fff; font-size: 14px; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cbody .meta2 { font-size: 12px; color: #71717a; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.dur { position: absolute; bottom: 8px; right: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 600; z-index: 2; }
.goverlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; z-index: 3; background: rgba(0,0,0,0.4); }
.ccard .box:hover .goverlay { opacity: 1; }

/* ---------- tabs ---------- */
.utabs { margin-top: 24px; }
.utabs .row { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 4px; border: 1px solid rgba(255,255,255,0.06); position: relative; }
.utabs button { flex: 1; padding: 10px 16px; border-radius: 10px; border: none; background: transparent; color: #71717a; font-weight: 500; font-size: 14px; cursor: pointer; transition: all 0.2s; position: relative; z-index: 1; }
.utabs button.on { color: #fff; }
.utabs .bar { position: absolute; height: calc(100% - 8px); top: 4px; background: rgba(255,255,255,0.1); border-radius: 10px; transition: all 0.3s cubic-bezier(0.16,1,0.3,1); z-index: 0; }
.ftabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ftabs .fbtn { padding: 6px 14px; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 13px; color: #71717a; }
.c-home, .c-mid, .c-cur { background: none; border: none; color: #71717a; cursor: pointer; font-size: 13px; padding: 0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-home:hover, .c-mid:hover { color: #a1a1aa; }
.c-cur { color: #fff; font-weight: 500; }
.c-sep { color: #52525b; margin: 0 4px; }

/* ---------- banner ---------- */
.banner { position: relative; min-height: 280px; display: flex; align-items: flex-end; overflow: hidden; background: #111; }
.banner-media { position: absolute; inset: 0; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.banner-media .g1, .banner-media .g2 { position: absolute; inset: 0; }
.banner-media .g1 { background: linear-gradient(180deg, transparent 30%, #09090b); }
.banner-media .g2 { background: linear-gradient(0deg, #09090b, transparent 40%); }
.banner-in { position: relative; z-index: 1; width: 100%; padding: 32px 24px; }
.banner-box { max-width: 80rem; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.banner-title { font-size: 28px; font-weight: 700; color: #fff; margin: 0; }
@media(min-width: 640px) { .banner-title { font-size: 36px; } }
.banner-meta { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: #a1a1aa; }

/* ---------- notification drawer ---------- */
.notif-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.25s ease; z-index: 90; }
.notif-overlay.open { opacity: 1; }
.notif-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: #0c0c0e; border-left: 1px solid rgba(255,255,255,0.1); z-index: 91; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); box-shadow: -20px 0 60px rgba(0,0,0,0.6); }
.notif-drawer.open { transform: translateX(0); }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.notif-head h3 { margin: 0; color: #fff; font-size: 17px; font-weight: 700; }
.notif-sub { margin: 2px 0 0; font-size: 12px; color: #71717a; }
.notif-x { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #a1a1aa; width: 30px; height: 30px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.notif-x:hover { color: #fff; }
.notif-body { flex: 1; overflow-y: auto; padding: 14px 18px 24px; }
.notif-sec { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #52525b; margin: 14px 0 10px; }
.notif-sec:first-child { margin-top: 0; }
.notif-empty { text-align: center; padding: 48px 16px; color: #71717a; }
.notif-empty h4 { color: #fff; margin: 12px 0 6px; font-size: 15px; }
.notif-empty p { font-size: 13px; margin: 0; }
.ann-card { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); margin-bottom: 10px; animation: rise-in 0.3s cubic-bezier(0.16,1,0.3,1) both; }
a.ann-card { text-decoration: none; }
a.ann-link:hover { border-color: rgba(255,255,255,0.2); }
.ann-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: rgba(255,255,255,0.07); display: grid; place-items: center; font-size: 18px; }
.ann-title { font-weight: 600; color: #fff; font-size: 13.5px; line-height: 1.4; }
.ann-body { font-size: 12.5px; color: #a1a1aa; margin-top: 4px; line-height: 1.5; }
.ann-meta { font-size: 11px; color: #52525b; margin-top: 6px; }
.ann-meta a { color: #e4e4e7; }

/* ---------- announcement billboard ---------- */
.billboard { position: relative; border-radius: 20px; padding: 1.5px; margin-top: 28px; overflow: hidden; background: linear-gradient(120deg, rgba(255,255,255,0.25), rgba(255,255,255,0.03) 30%, rgba(251,191,36,0.35) 50%, rgba(255,255,255,0.03) 70%, rgba(255,255,255,0.25)); background-size: 250% 250%; animation: bb-sheen 7s ease-in-out infinite; }
@keyframes bb-sheen { 0%,100% { background-position: 0% 40%; } 50% { background-position: 100% 60%; } }
.bb-in { position: relative; border-radius: 19px; background: #0b0b0d; overflow: hidden; }
.bb-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 160px at 15% 0%, rgba(255,255,255,0.09), transparent 60%), radial-gradient(500px 160px at 90% 100%, rgba(251,191,36,0.10), transparent 60%); }
.bb-slide { position: relative; display: none; padding: 26px 24px 22px; animation: bb-in 0.55s cubic-bezier(0.16,1,0.3,1) both; }
.bb-slide.on { display: block; }
@keyframes bb-in { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: none; } }
.bb-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fbbf24; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); padding: 4px 10px; border-radius: 999px; }
.bb-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; animation: bb-blink 1.6s ease-in-out infinite; }
@keyframes bb-blink { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(251,191,36,0.5); } 50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(251,191,36,0); } }
.bb-title { margin: 12px 0 0; color: #fff; font-size: clamp(19px, 3.4vw, 27px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.bb-body { margin: 8px 0 0; color: #a1a1aa; font-size: 14px; line-height: 1.6; max-width: 640px; }
.bb-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 20px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; font-size: 13.5px; text-decoration: none; transition: transform 0.2s ease; }
.bb-cta:hover { transform: translateY(-1px) scale(1.02); }
.bb-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px 18px; }
.bb-dots { display: flex; gap: 6px; }
.bb-dots button { width: 22px; height: 4px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.15); cursor: pointer; padding: 0; transition: background 0.2s; }
.bb-dots button.on { background: #fff; }
.bb-time { font-size: 11px; color: #52525b; }
.bb-marquee { position: relative; overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(255,255,255,0.06); padding: 9px 0; font-size: 12px; color: #71717a; }
.bb-marquee span { display: inline-block; padding-left: 100%; animation: bb-scroll 22s linear infinite; }
@keyframes bb-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- pointer FX: cursor spotlight + card tilt ---------- */
body.has-spotlight::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 200px), rgba(255,255,255,0.055), transparent 65%); }
.page-wrap { position: relative; z-index: 2; }
.bcard.tilting, .ccard.tilting, .stat.tilting { transition: transform 0.12s ease-out; will-change: transform; }
@media (pointer: coarse) { body.has-spotlight::after { display: none; } }

/* ---------- chat ---------- */
.chat-box { border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; background: #0a0a0c; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.chat-title { font-weight: 700; color: #fff; font-size: 14px; }
.chat-count { font-size: 11px; color: #52525b; background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 999px; }
.chat-msgs { height: 300px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 85%; align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; }
.chat-msg .chat-meta { font-size: 10.5px; color: #52525b; margin-bottom: 3px; }
.chat-msg.mine .chat-meta { text-align: right; }
.chat-msg .chat-text { font-size: 13px; color: #e4e4e7; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.07); padding: 8px 12px; border-radius: 12px; border-top-left-radius: 4px; line-height: 1.5; word-break: break-word; }
.chat-msg.mine .chat-text { background: #fff; color: #000; border-color: #fff; border-radius: 12px; border-top-right-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.08); }
.chat-form input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 10px 14px; color: #fff; font-size: 13px; outline: none; }
.chat-form input:focus { border-color: rgba(255,255,255,0.3); }
.chat-form input:disabled { opacity: 0.5; }
.chat-form button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 15px; cursor: pointer; flex-shrink: 0; }
.chat-form button:disabled { opacity: 0.4; }
.chat-note { font-size: 11.5px; color: #a1a1aa; padding: 0 14px 10px; }

/* ---------- posts ---------- */
.post-card { border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; background: #0a0a0c; padding: 18px; margin-bottom: 14px; animation: rise-in 0.35s cubic-bezier(0.16,1,0.3,1) both; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-ava { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.09); display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 15px; flex-shrink: 0; }
.post-who { font-size: 13px; font-weight: 600; color: #fff; }
.post-when { font-size: 11.5px; color: #52525b; }
.post-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 6px; line-height: 1.4; }
.post-body { font-size: 13.5px; color: #d4d4d8; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.post-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.post-act { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); color: #a1a1aa; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; transition: all 0.15s; }
.post-act:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.post-act.liked { color: #f87171; border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.08); }
.post-comments { margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 12px; display: grid; gap: 8px; }
.post-comment { display: flex; gap: 8px; font-size: 12.5px; }
.post-comment .cn { font-weight: 600; color: #fff; white-space: nowrap; }
.post-comment .ct { color: #d4d4d8; word-break: break-word; }
.post-comment .cdel { background: none; border: 0; color: #52525b; cursor: pointer; font-size: 12px; margin-left: auto; }
.comment-form { display: flex; gap: 8px; margin-top: 10px; }
.comment-form input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 8px 14px; color: #fff; font-size: 12.5px; outline: none; }

/* ---------- referrals / presence / contact ---------- */
.ref-linkbox { display: flex; gap: 8px; margin-top: 10px; }
.ref-linkbox input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 12px; color: #fff; font-size: 12px; outline: none; }
.presence-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); margin-bottom: 8px; font-size: 13px; }
.presence-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.8); animation: bb-blink 2s infinite; flex-shrink: 0; }
.hist-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); margin-bottom: 8px; text-decoration: none; }
.hist-row:hover { border-color: rgba(255,255,255,0.18); }
.hist-ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.07); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.hist-t { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-s { font-size: 11.5px; color: #71717a; }
