* { box-sizing: border-box }
:root{
  --glass-bg: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.14);
  --glass-shadow: 0 12px 40px rgba(0,0,0,.45);
  --accent-1: #6a00ff;
  --accent-2: #ff007a;
  --accent-3: #00d4ff;
  --nav-bg: rgba(10, 12, 18, .35);
  --nav-border: rgba(255,255,255,.12);
  --nav-hover: rgba(255,255,255,.10);
  --focus-ring: rgba(0,212,255,.18);
}

body{
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(106,0,255,.45), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(255,0,122,.35), transparent 55%),
    radial-gradient(900px 700px at 60% 110%, rgba(0,212,255,.18), transparent 55%),
    #0b0f14;
  min-height: 100vh;
}

.bg-gradient-ero {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.navbar {
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
}

.navbar-modern{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: linear-gradient(135deg, rgba(106,0,255,.55), rgba(255,0,122,.45));
}

.navbar.bg-gradient-ero{
  background:
    linear-gradient(135deg, rgba(106,0,255,.85), rgba(255,0,122,.75));
}

.navbar-modern .navbar-brand .brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.navbar-modern .nav-link{
  position: relative;
  border-radius: 999px;
  padding: .5rem .85rem;
  transition: background-color .18s ease, transform .18s ease, color .18s ease;
}

.navbar-modern .nav-link:hover{
  background: var(--nav-hover);
  transform: translateY(-1px);
}

.navbar-modern .nav-link.active{
  background: rgba(255,255,255,.14);
}

.navbar-modern .nav-link::after{
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(0,212,255,.0), rgba(0,212,255,.85), rgba(255,0,122,.75), rgba(0,212,255,.0));
  opacity: 0;
  transform: scaleX(.7);
  transition: opacity .2s ease, transform .2s ease;
}

.navbar-modern .nav-link.active::after{
  opacity: 1;
  transform: scaleX(1);
}

.notif-btn{
  position: relative;
  width: 38px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.notif-dot{
  position: absolute;
  top: 6px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,.95), rgba(255,0,122,.75));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 25px rgba(0,0,0,.45);
}

.notif-btn.has-unread .notif-dot{
  display: inline-block;
  animation: notifPulse 1.7s ease-in-out infinite;
}

@keyframes notifPulse{
  0%{ transform: scale(1); opacity: .95; }
  50%{ transform: scale(1.18); opacity: 1; }
  100%{ transform: scale(1); opacity: .95; }
}

.notif-menu{
  width: min(420px, calc(100vw - 24px));
  background: rgba(12,14,20,.55);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 70px rgba(0,0,0,.65);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  overflow: hidden;
}

.notif-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.notif-body{
  max-height: min(64vh, 520px);
  overflow: auto;
}

.notif-item{
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: background-color .16s ease;
}

.notif-item:hover{
  background: rgba(255,255,255,.06);
}

.notif-ico{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  flex: 0 0 auto;
}

.notif-title{
  font-weight: 700;
  line-height: 1.2;
}

.notif-sub{
  color: rgba(255,255,255,.70);
  font-size: .85rem;
  margin-top: 2px;
}

.notif-pill{
  margin-left: auto;
  margin-top: 2px;
  min-width: 34px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-weight: 800;
  font-size: .85rem;
  color: rgba(255,255,255,.96);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

.notif-pill.is-hot{
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,.65), rgba(255,0,122,.20));
  border-color: rgba(0,212,255,.35);
}

.notif-empty{
  padding: 18px 14px;
  color: rgba(255,255,255,.70);
}

.card, .modal-content, .list-group-item{
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px);
}

.card{
  border-radius: 16px;
}

.btn-primary{
  border: 0;
  background: linear-gradient(135deg, rgba(106,0,255,.95), rgba(255,0,122,.90));
  box-shadow: 0 10px 22px rgba(106,0,255,.18), 0 10px 22px rgba(255,0,122,.14);
  transition: transform .18s ease, filter .18s ease;
}

.btn-primary:hover{
  transform: translateY(-1px);
  filter: saturate(1.1);
}

.btn-outline-secondary, .btn-outline-light{
  border-color: rgba(255,255,255,.18) !important;
}

.btn, .form-control, .form-select{
  border-radius: 12px;
}

.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible{
  outline: none;
  box-shadow: 0 0 0 .25rem var(--focus-ring) !important;
}

.page-enter{
  animation: pageEnter .22s ease both;
}

@keyframes pageEnter{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}


.form-control, .form-select{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

.form-control:focus, .form-select:focus{
  border-color: rgba(0,212,255,.55) !important;
  box-shadow: 0 0 0 .25rem rgba(0,212,255,.15) !important;
}

.member-card{
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.member-card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,212,255,.35) !important;
  box-shadow: 0 14px 55px rgba(0,0,0,.55);
}
.list { list-style: none; padding: 0; margin: 0 }
.list li { padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.1) }
.muted { opacity: .8; font-size: .875rem }
.phpbb-table thead th { font-weight: 600; font-size: .9rem; text-transform: none; }
.phpbb-table .cell-tight { white-space: nowrap; }
.phpbb-forum-title { font-weight: 600; }
.phpbb-meta { color: var(--bs-secondary-color); font-size: .8125rem; }
.post-box { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.post-author { text-align: center; }
.post-author .name { font-weight: 600; }
.post-body { padding-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; }
.gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: .75rem; transition: transform .15s ease, filter .15s ease; }
.gallery img:hover { transform: scale(1.02); filter: saturate(1.05) contrast(1.05); }
.member-card img { width: 100%; height: 180px; object-fit: cover; border-radius: .5rem; }
.pre-wrap { white-space: pre-wrap; }
.profile-hero { width: 100%; height: 260px; object-fit: cover; border-radius: .75rem; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-list { display: grid; gap: 6px; }
.profile-list .rowline { display: flex; justify-content: space-between; gap: 10px; }
.profile-list .k { color: var(--bs-secondary-color); }

.phpbb-breadcrumb{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}

.phpbb-breadcrumb a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
}

.phpbb-breadcrumb a:hover{
  text-decoration: underline;
}

.phpbb-icon{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

.phpbb-icon-forum{
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,.20), rgba(255,255,255,.06));
  border-color: rgba(0,212,255,.18);
}

.phpbb-panel .phpbb-panel-head{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.phpbb-table-forums{
  margin-top: 10px;
}

.phpbb-table{
  border-color: rgba(255,255,255,.10);
}

.phpbb-table thead th{
  background: rgba(0,0,0,.16) !important;
  border-bottom: 1px solid rgba(255,255,255,.14) !important;
}

.phpbb-table tbody tr{
  transition: background-color .16s ease;
}

.phpbb-table tbody tr:hover{
  background: rgba(255,255,255,.04);
}

.phpbb-num{
  display: inline-flex;
  min-width: 38px;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 700;
  color: rgba(255,255,255,.92);
}

.phpbb-catrow th{
  background: rgba(0,0,0,.20) !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  padding: 10px 14px !important;
}

.phpbb-catrow .phpbb-catname{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.phpbb-catrow .phpbb-catname .t{
  font-weight: 800;
  color: rgba(255,255,255,.95);
}

.phpbb-catrow .phpbb-catname .d{
  color: rgba(255,255,255,.70);
  font-weight: 500;
  font-size: .85rem;
}

.phpbb-lastpost{
  display: grid;
  gap: 2px;
  font-size: .85rem;
}

.phpbb-lastpost .t{
  font-weight: 650;
}

.phpbb-lastpost .m{
  color: rgba(255,255,255,.70);
}

.phpbb-lastpost a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
}

.phpbb-lastpost a:hover{
  text-decoration: underline;
}

.phpbb-post{
  border-top: 1px solid rgba(255,255,255,.10);
}

.phpbb-post:first-child{
  border-top: 0;
}

.phpbb-post-head{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.phpbb-post-head .meta{
  color: rgba(255,255,255,.70);
  font-size: .85rem;
}

.phpbb-post-actions{
  display: flex;
  gap: 8px;
}

.phpbb-post-actions .btn{
  border-radius: 999px;
}

.phpbb-post-body{
  padding: 12px 14px;
}

.phpbb-quote{
  border-left: 3px solid rgba(0,212,255,.45);
  background: rgba(0,0,0,.18);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
}

.phpbb-quote .h{
  font-size: .85rem;
  color: rgba(255,255,255,.70);
  margin-bottom: 6px;
}

.phpbb-code{
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 12px;
  overflow: auto;
  margin: 10px 0;
}

.phpbb-code code{
  color: rgba(255,255,255,.92);
}

.phpbb-editor{
  display: grid;
  gap: 10px;
}

.phpbb-editor .toolbar{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.phpbb-editor .toolbtn{
  border-radius: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  transition: transform .16s ease, background-color .16s ease;
}

.phpbb-editor .toolbtn:hover{
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.phpbb-editor .toolbtn:active{
  transform: translateY(0);
}

.phpbb-editor .editor-preview{
  border-radius: 16px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.12);
  padding: 12px 14px;
}

.phpbb-editor .help{
  color: rgba(255,255,255,.70);
  font-size: .85rem;
}

.phpbb-post-body img.phpbb-img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 60px rgba(0,0,0,.45);
  margin: 10px 0;
}
