:root{ --muted:#9aa4b2; --link:#8dd4ff; --link-hover:#c8ecff; }
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,Segoe UI,Roboto,Arial}
body.dark{background:#0b1220;color:#e6eef6}
body.light{background:#f5f7fb;color:#0c1220}
body.neon{background:#060810;color:#eaffff}
body.ocean{background:#071b2c;color:#e6f6ff}
body.sunset{background:#1a0f14;color:#ffe9e0}

.site-header{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:transparent}
.brand h1{margin:0;font-weight:900;font-size:30px;letter-spacing:1px}

/* --- FIXED RGB TITLE --- */
#nerdbay-title{
  font-weight:900;
  font-size:32px;
  background:linear-gradient(90deg,#ff0047,#00ff8a,#00d4ff,#ff00e0,#ff0047);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:rgbFlow 6s linear infinite;
  background-size:400%;
}
@keyframes rgbFlow {
  0% { background-position:0% 50%; }
  50% { background-position:100% 50%; }
  100% { background-position:0% 50%; }
}

.btn{background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.08);padding:8px 12px;border-radius:10px;color:inherit;text-decoration:none;margin-left:6px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center}
.btn.small{padding:6px 10px;font-size:12px;min-width:96px}
.actions-cell,
.actions-row{display:flex;gap:10px;align-items:center}
.actions-cell .btn,
.actions-row .btn{margin-left:0}
.actions-cell form,
.actions-row form{margin:0}
.container{padding:18px}
.card{background:rgba(255,255,255,0.04);padding:18px;border-radius:14px;box-shadow:0 6px 18px rgba(2,6,23,0.5);margin-bottom:16px}
.auth-card{max-width:480px;margin:40px auto}
label{display:block;margin:10px 0;color:var(--muted)}
input[type=text],input[type=password],input[type=file],textarea,select{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  color:inherit;
  transition:border-color .2s, background .2s;
}
input[type=text]:focus,
input[type=password]:focus,
input[type=file]:focus,
textarea:focus,
select:focus{
  outline:none;
  border-color:rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.08);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus{
  -webkit-text-fill-color:inherit;
  transition:background-color 9999s ease-out 0s;
  box-shadow:0 0 0px 1000px rgba(11,18,32,0.95) inset;
}
.board{display:flex;gap:18px}
.sidebar{width:240px}
.main{flex:1}
.files{width:100%;border-collapse:collapse}
.files th,.files td{padding:8px;border-bottom:1px solid rgba(255,255,255,0.08);text-align:left}
.files a{color:inherit}
.pagi{margin-top:12px}
.page{display:inline-block;margin-right:6px;padding:6px 10px;border-radius:8px;border:1px solid rgba(255,255,255,0.2)}
.page.active{background:rgba(255,255,255,0.15)}
.error{background:#4b1b1b;padding:8px;border-radius:8px;color:#ffd0d0}
.avatar{width:96px;height:96px;border-radius:10px;display:block;object-fit:cover;margin:10px 0}
.cats{list-style:none;padding:0;margin:0}
.cats li{margin:6px 0}
.cats a{color:#00d4ff;text-decoration:none;font-weight:500;}
.cats a:hover{color:#6ee7b7;text-shadow:0 0 8px #00d4ff;}
.comments{list-style:none;padding:0;margin:0}
.c-head{opacity:.8;margin-bottom:4px}
.meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin-bottom:8px}
body.light .card{background:#ffffff; color:#0c1220; box-shadow:0 6px 18px rgba(0,0,0,0.1)}
body.light .btn{background:#f0f2f7; border-color:#e1e5ee}
body.light input[type=text],
body.light input[type=password],
body.light input[type=file],
body.light textarea,
body.light select{
  background:rgba(12,18,32,0.04);
  border:1px solid rgba(12,18,32,0.15);
  color:#0c1220;
}
body.light input[type=text]:focus,
body.light input[type=password]:focus,
body.light input[type=file]:focus,
body.light textarea:focus,
body.light select:focus{
  border-color:rgba(12,18,32,0.35);
  background:rgba(12,18,32,0.08);
}
body.light input:-webkit-autofill,
body.light input:-webkit-autofill:hover,
body.light input:-webkit-autofill:focus{
  -webkit-text-fill-color:#0c1220;
  box-shadow:0 0 0px 1000px rgba(255,255,255,0.95) inset;
}
.controls{display:flex;align-items:center}

.card a{color:var(--link);text-decoration:none}
.card a:hover{color:var(--link-hover);text-decoration:underline}
.user-card .mini-list a,
.user-card .favorites a,
.user-profile-board .favorites a{color:var(--link);}
.user-card .mini-list a:hover,
.user-card .favorites a:hover,
.user-profile-board .favorites a:hover{color:var(--link-hover);}

.user-card .user-actions{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 6px}
.user-card .user-actions > *{margin:0}
.user-card .user-actions .btn,
.user-card .user-actions .favorite-form .btn{margin:0;display:inline-flex;align-items:center}
.user-card .favorite-form{margin:0;display:inline-flex}
.hidden{display:none!important}
.upload-progress{margin:12px 0 16px}
.upload-progress-bar{width:100%;height:10px;border-radius:999px;background:rgba(255,255,255,0.1);overflow:hidden}
.upload-progress-fill{height:100%;width:0%;background:#3b82f6;transition:width .2s ease}
.upload-progress-stats{margin-top:8px;font-size:0.85rem;display:flex;flex-wrap:wrap;gap:6px;color:var(--muted)}
.upload-progress-stats .divider{opacity:0.5}
.upload-error{margin-top:8px;padding:10px;border-radius:10px;background:rgba(255,60,60,0.15);border:1px solid rgba(255,99,99,0.3);color:#ffc9c9}
.comment-badges{margin-left:6px;font-size:0.85rem;letter-spacing:2px}
