/* G-Com V0.1 – Dark gaming community UI */
:root {
  --bg: #0a0c12;
  --bg-elevated: #0f1219;
  --surface: #151a24;
  --surface-2: #1b2130;
  --line: #252b3a;
  --line-strong: #323a4d;
  --text: #eef0f6;
  --text-2: #9aa3b5;
  --text-3: #6b7385;
  --accent: #7c6cf0;
  --accent-2: #9588f5;
  --accent-dim: rgba(124, 108, 240, 0.16);
  --accent-glow: rgba(124, 108, 240, 0.35);
  --ok: #22c55e;
  --warn: #eab308;
  --bad: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(124, 108, 240, 0.12), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(99, 102, 241, 0.06), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Topnav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #8b7cf6, #5b4fd1);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.brand-mark svg { width: 22px; height: 22px; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}
.nav-main a {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.nav-main a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-main a.active { color: var(--accent-2); background: var(--accent-dim); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  place-items: center;
}

.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  display: grid; place-items: center;
  transition: color 0.12s, border-color 0.12s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.badge-dot {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem; font-weight: 700;
  display: grid; place-items: center;
}

.user-chip { position: relative; }
.user-chip-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.45rem 0.25rem 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.avatar-sm {
  position: relative;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-dim);
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; color: var(--accent-2);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-sm img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; padding-right: 0.35rem; }
.user-name { font-size: 0.8rem; font-weight: 600; }
.user-xp { font-size: 0.68rem; color: var(--text-3); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 2px);
  min-width: 180px;
  z-index: 60;
}
.user-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-2);
}
.user-menu a:hover { background: var(--surface-2); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 42px; padding: 0 1.15rem;
  border-radius: 10px; border: none;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, #8b7cf6, #6d5ce7);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--line-strong); color: var(--text); }
.btn-sm { height: 34px; padding: 0 0.85rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* Main / pages */
.main { min-height: calc(100dvh - var(--nav-h) - 72px); }
.page { padding: 2rem 0 3rem; }

.hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 3.5rem 2rem;
  margin-bottom: 1.75rem;
  background:
    linear-gradient(135deg, rgba(15, 18, 28, 0.75), rgba(10, 12, 18, 0.9)),
    radial-gradient(ellipse at 70% 40%, rgba(124, 108, 240, 0.25), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.hero p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-dim);
  color: var(--accent-2);
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.card p { color: var(--text-2); font-size: 0.88rem; margin-bottom: 0.85rem; }
.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
}
.card-link:hover { text-decoration: underline; }

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.status-list { list-style: none; }
.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.status-list li:last-child { border-bottom: none; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.status-online { color: var(--ok); background: rgba(34, 197, 94, 0.12); }
.status-checking { color: var(--warn); background: rgba(234, 179, 8, 0.12); }
.status-offline { color: var(--bad); background: rgba(239, 68, 68, 0.12); }
.status-offline::before { animation: none; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.news-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.news-item:last-child { border-bottom: none; }
.news-item time { color: var(--text-3); font-size: 0.78rem; white-space: nowrap; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  color: var(--text-3);
  font-size: 0.78rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.text-muted { color: var(--text-2); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* Auth pages */
.auth-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.auth-card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-align: center;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; order: 2; margin-left: auto; }
  .nav-actions { order: 3; }
  .nav-main {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    overflow: visible;
  }
  .nav-main.open { display: flex; }
  .topnav-inner { position: relative; flex-wrap: wrap; }
  .user-meta { display: none; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 1.5rem); }
  .hero { padding: 2.25rem 1.25rem; }
}

/* Forms & flash (Phase 2) */
.form-group { margin-bottom: 0.9rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}
.form-group input {
  width: 100%;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus {
  border-color: rgba(124, 108, 240, 0.55);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-actions { margin-top: 1.15rem; }
.form-footer {
  margin-top: 1.15rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-3);
}
.form-footer a { color: var(--accent-2); font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

.flash-stack { margin-bottom: 1rem; }
.flash {
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
}
.flash-success { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.3); }
.flash-error { background: rgba(239,68,68,0.12); color: #f87171; border-color: rgba(239,68,68,0.3); }
.flash-info { background: rgba(59,130,246,0.12); color: #60a5fa; border-color: rgba(59,130,246,0.3); }

.auth-card .brand-mini {
  display: flex; justify-content: center; margin-bottom: 1rem;
}
.auth-card h1 { margin-bottom: 0.25rem; }
.auth-card .auth-sub {
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}


/* Profile & dashboard */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.dash-hero-top {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}
.dash-title {
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.dash-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.avatar-lg {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--accent-dim);
  color: var(--accent-2);
  font-size: 1.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.avatar-lg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  background: var(--accent-dim);
  color: var(--accent-2);
}
.chip-muted {
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--line);
}
.coming-card { opacity: 0.92; }
.profile-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.profile-header-main {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.profile-name {
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.profile-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bio-text { white-space: pre-wrap; color: var(--text-2); line-height: 1.55; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
}
.avatar-edit-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 0.4rem;
  cursor: pointer;
}
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  outline: none;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group select { height: 42px; padding-top: 0; padding-bottom: 0; }
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(124, 108, 240, 0.55);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* User dropdown: bridge gap so menu stays open */
.user-chip { position: relative; }
.user-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  padding-top: 0.55rem;
  margin-top: 0;
}
.user-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 14px;
}
.user-chip:hover .user-menu,
.user-chip:focus-within .user-menu,
.user-chip.open .user-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.user-menu-inner {
  padding: 0.4rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* Friends (Phase 4) */
.friends-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 0.5rem;
}
.friends-tabs a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--line);
}
.friends-tabs a.active {
  color: var(--accent-2);
  background: var(--accent-dim);
  border-color: transparent;
}
.friends-list { list-style: none; margin-top: 0.75rem; }
.friends-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.friends-item:last-child { border-bottom: none; }
.friends-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.friends-name { font-weight: 600; font-size: 0.92rem; }
.friends-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.profile-friend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

/* Members list (Phase 5) */
.members-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin: 1.1rem 0 0.75rem;
}
.members-search { flex: 1 1 180px; }
.members-search input {
  width: 100%;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  outline: none;
}
.members-search input:focus {
  border-color: rgba(124, 108, 240, 0.55);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.members-sort label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 0.25rem;
}
.members-sort select {
  height: 40px;
  padding: 0 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  min-width: 160px;
}
.members-count { font-size: 0.85rem; margin-bottom: 0.75rem; }
.table-wrap { overflow-x: auto; }
.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.members-table th,
.members-table td {
  padding: 0.65rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.members-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  font-weight: 650;
}
.members-user-link { font-weight: 600; }
.members-user-link:hover { color: var(--accent-2); }
.members-action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.pagination-info { font-size: 0.85rem; color: var(--text-3); }

/* Notifications (Phase 6) */
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.notif-list { list-style: none; }
.notif-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.notif-item:last-child { border-bottom: none; }
.notif-item.is-unread {
  background: var(--accent-dim);
  border-radius: 10px;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  margin-bottom: 0.25rem;
  border-bottom-color: transparent;
}
.notif-open-form { flex: 1; min-width: 0; }
.notif-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem 0;
  font: inherit;
}
.notif-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.notif-title { font-size: 0.9rem; font-weight: 500; line-height: 1.35; }
.notif-time { font-size: 0.75rem; color: var(--text-3); }

/* Q&A (Phase 7) */
.qa-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.qa-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin: 1rem 0 0.75rem;
}
.qa-search { flex: 1 1 160px; }
.qa-search input {
  width: 100%; height: 40px; padding: 0 0.85rem;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg-elevated);
}
.qa-filter label {
  display: block; font-size: 0.72rem; color: var(--text-3); margin-bottom: 0.25rem;
}
.qa-filter select {
  height: 40px; padding: 0 0.55rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elevated);
}
.qa-count { font-size: 0.85rem; margin-bottom: 0.75rem; }
.qa-question-list { list-style: none; }
.qa-question-row {
  display: flex; gap: 0.85rem; padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.qa-question-row:last-child { border-bottom: none; }
.qa-stats {
  display: flex; flex-direction: column; align-items: center;
  min-width: 52px; color: var(--text-3); font-size: 0.72rem;
}
.qa-stat { font-size: 1rem; font-weight: 700; color: var(--text); }
.qa-question-title { font-weight: 650; font-size: 1rem; line-height: 1.35; }
.qa-question-title:hover { color: var(--accent-2); }
.qa-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  margin-top: 0.4rem; font-size: 0.82rem;
}
.qa-detail-top { display: flex; gap: 1rem; align-items: flex-start; }
.qa-detail-title { font-size: 1.35rem; margin-bottom: 0.5rem; }
.qa-author {
  display: flex; align-items: center; gap: 0.55rem; margin: 0.75rem 0;
}
.qa-content {
  line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  margin: 0.5rem 0 0.75rem;
}
.qa-author-actions {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem;
}
.qa-vote {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  min-width: 40px; flex-shrink: 0;
}
.qa-vote-btn {
  border: none; background: transparent; color: var(--text-3);
  cursor: pointer; font-size: 0.85rem; padding: 0.15rem 0.35rem; border-radius: 6px;
}
.qa-vote-btn:hover:not(.disabled) { color: var(--accent-2); background: var(--accent-dim); }
.qa-vote-btn.is-active { color: var(--accent-2); }
.qa-vote-btn.disabled { cursor: default; opacity: 0.45; }
.qa-vote-score { font-weight: 700; font-size: 0.95rem; }
.qa-answer-list { list-style: none; margin-top: 0.75rem; }
.qa-answer-item {
  display: flex; gap: 0.85rem; padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.qa-answer-item:last-child { border-bottom: none; }
.qa-answer-item.is-accepted {
  background: var(--accent-dim);
  border-radius: 12px;
  padding: 0.9rem 0.75rem;
  margin-bottom: 0.35rem;
  border-bottom-color: transparent;
}
.qa-answer-body { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .qa-detail-top { flex-direction: column; }
  .qa-question-row { flex-direction: column; }
  .qa-stats { flex-direction: row; gap: 0.75rem; min-width: 0; }
}

.notif-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  flex-shrink: 0;
}

/* Wall / Activity (Phase 8a) */
.wall-compose { margin-bottom: 1.25rem; }
.wall-posts { list-style: none; margin-top: 0.75rem; }
.wall-post {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.wall-post:last-child { border-bottom: none; }
.wall-post-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}
.wall-post-body {
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.35rem 0 0.5rem;
}
.wall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.wall-comments {
  margin-top: 0.65rem;
  padding-left: 0.35rem;
  border-left: 2px solid var(--line);
  padding-left: 0.85rem;
}
.wall-comment {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.wall-comment-main { flex: 1; min-width: 0; }
.wall-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}
.wall-comment-body {
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.wall-comment-form { margin-top: 0.5rem; }

/* Wall media (Phase 8b) – consolidated */
.wall-media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0 0.65rem;
  align-items: flex-start;
}
.wall-media-item.wall-media-image {
  width: 150px;
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}
.wall-thumb-btn {
  width: 150px;
  height: 150px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  outline: none;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
  -webkit-appearance: none;
  appearance: none;
}
.wall-thumb-btn:focus-visible {
  outline: 2px solid var(--accent, #7c6cf0);
  outline-offset: 2px;
}
.wall-thumb-btn img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.wall-media-del {
  padding: 0;
  margin: 0;
}
.wall-media-item.wall-media-video {
  flex: 1 1 100%;
  max-width: 560px;
  border: 0;
  padding: 0;
  background: transparent;
}
.wall-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 10px;
}
.wall-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.wall-add-media {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.wall-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  padding: 1rem;
}
.wall-lightbox.is-open { display: flex; }
.wall-lightbox-inner {
  position: relative;
  max-width: min(96vw, 1100px);
  max-height: 92vh;
}
.wall-lightbox-inner img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.wall-lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  z-index: 1;
}
@media (max-width: 640px) {
  .wall-media-item.wall-media-image,
  .wall-thumb-btn {
    width: 120px;
    height: 120px;
  }
  .wall-media-item.wall-media-image {
    flex: 0 0 120px;
  }
}

/* XP / Rank UI (Phase 9C) */
.rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: color-mix(in srgb, var(--rank-color, #7c6cf0) 85%, #000);
  border: 1px solid color-mix(in srgb, var(--rank-color, #7c6cf0) 60%, #fff 10%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-badge-sm {
  font-size: 0.68rem;
  padding: 0.12rem 0.5rem;
  max-width: 11rem;
}
.nav-xp-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 0;
}
.xp-progress {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-top: 0.25rem;
}
.xp-progress-nav {
  width: 100%;
  min-width: 72px;
  max-width: 140px;
  height: 4px;
  margin-top: 0.2rem;
}
.xp-progress-lg {
  height: 10px;
  margin-top: 0.45rem;
}
.xp-progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
  min-width: 0;
}
.xp-widget {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.xp-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}
.xp-widget-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.xp-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.88rem;
}
.xp-progress-label strong { font-variant-numeric: tabular-nums; }
.xp-next-rank {
  margin-top: 0.45rem;
  font-size: 0.82rem;
}
.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 160px;
}
@media (max-width: 900px) {
  .rank-badge-sm { max-width: 8rem; }
  .user-meta { max-width: 120px; }
  .xp-progress-nav { max-width: 100px; }
}
@media (max-width: 640px) {
  .nav-actions .user-chip .user-meta {
    max-width: 100px;
  }
  .xp-progress-nav {
    display: none;
  }
}

/* Awards (Phase 10A) */
.award-category { margin-bottom: 0.25rem; }
.award-category-title {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.award-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.award-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 108, 240, 0.15);
}
.award-card-icon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}
.award-card-icon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  transition: transform 0.15s ease;
}
.award-card:hover .award-card-icon img {
  transform: scale(1.06);
}
.award-card-placeholder {
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.7;
}
.award-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
.award-card-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.award-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}
.award-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  text-align: center;
  padding: 0.5rem 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.award-chip:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.award-chip img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.35rem;
}
.award-chip-fallback {
  font-size: 2rem;
  line-height: 64px;
  height: 64px;
  margin-bottom: 0.35rem;
}
.award-chip-name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
@media (max-width: 640px) {
  .award-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  .award-card-icon,
  .award-card-icon img {
    width: 72px;
    height: 72px;
  }
}

/* Awards archived overlay (Phase 10B) */
.award-card {
  position: relative;
}
.award-card-archived {
  overflow: hidden;
}
.award-archived-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 18, 0.55);
  pointer-events: none;
  border-radius: inherit;
}
.award-archived-overlay span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Admin awards */
.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-td-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.table-wrap {
  overflow-x: auto;
}
.card-link-block {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.card-link-block:hover {
  border-color: var(--accent);
}
.form-inline-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.form-inline-search label {
  flex: 1;
  min-width: 180px;
}
.admin-user-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.admin-user-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.admin-grant-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-grant-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.subsection-title {
  font-size: 0.95rem;
  margin: 0.75rem 0 0.5rem;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-inline-edit summary {
  cursor: pointer;
  list-style: none;
}
.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 0.25rem;
}

/* Role label next to rank (regression fix) */
.user-role {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

/* Admin form controls – dark theme (award edit / grant / categories) */
.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-2);
}
.form-stack input[type="text"],
.form-stack input[type="search"],
.form-stack input[type="number"],
.form-stack input[type="file"],
.form-stack select,
.form-stack textarea,
.form-inline-search input[type="search"],
.form-inline-search input[type="text"],
.admin-inline-edit input[type="text"],
.admin-inline-edit input[type="number"],
.admin-inline-edit select,
.admin-inline-edit textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  color-scheme: dark;
}
.form-stack input[type="file"] {
  padding: 0.45rem 0.5rem;
}
.form-stack textarea {
  min-height: 6rem;
  resize: vertical;
}
.form-stack select,
.form-inline-search select {
  height: 42px;
}
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus,
.form-inline-search input:focus,
.admin-inline-edit input:focus,
.admin-inline-edit select:focus,
.admin-inline-edit textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 108, 240, 0.18);
}
.form-stack input::placeholder,
.form-inline-search input::placeholder {
  color: var(--text-2);
  opacity: 0.85;
}
.form-stack input[type="checkbox"],
.admin-inline-edit input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}
.admin-award-group-title {
  margin-bottom: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

/* Dashboard sidebar (Phase 11A) – superseded by final Navigation layout block */
.main-with-sidebar {
  /* shell lives inside */
}
/* .dash-layout grid removed – see final fixed-sidebar layout */
.dash-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dash-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.dash-sidebar-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 0.25rem 0.65rem 0.4rem;
}
.dash-sidebar-link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}
.dash-sidebar-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.dash-sidebar-link.is-active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: #fff;
  font-weight: 600;
}
.dash-content {
  min-width: 0;
}
.dash-content > .page {
  padding-top: 0;
}
/* shell alignment overridden in Navigation layout section */
.dash-sidebar-toggle {
  display: none;
  margin-bottom: 0.75rem;
  grid-column: 1 / -1;
  width: fit-content;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}
/* mobile drawer handled in final Navigation layout @media (max-width: 992px) */

/* Phase 11A redesign: simplified topnav, square avatars, collapsible sidebar */
.topnav-inner {
  justify-content: space-between;
}
.nav-main { display: none !important; }
.nav-toggle { display: none !important; }

.user-chip {
  position: relative;
}
.user-chip-link.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.user-chip .avatar-sm,
.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}
.user-chip .avatar-sm img,
.avatar-sm img,
.avatar-lg img,
.avatar-md img,
.members-avatar img,
.friend-avatar img,
.wall-comment-avatar img,
.notif-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.avatar-md {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.user-menu-meta {
  padding: 0.35rem 0.75rem 0.55rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.user-menu-meta strong {
  font-size: 0.9rem;
}
.user-menu-meta .text-muted {
  font-size: 0.75rem;
}

/* Collapsible sidebar grid removed – desktop collapse disabled */
.dash-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.dash-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--text-2);
}
.dash-sidebar-link.is-active .dash-ico {
  color: #fff;
}
.dash-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-2);
  cursor: pointer;
}
.dash-collapse-btn:hover {
  color: var(--text);
  border-color: var(--line-strong, var(--line));
}
.nav-guest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin-left: 1rem;
  flex: 1;
}
.nav-guest a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}
.nav-guest a:hover { color: var(--text); }
@media (max-width: 640px) {
  .nav-guest { display: none; }
}

/* Navbar user area: avatar + name/rank/role/xp, no progress bar, no pill */
.user-chip-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  max-width: 220px;
  font: inherit;
}
.user-chip-link:hover {
  background: var(--surface-2);
  border-color: var(--line-strong, var(--line));
}
.user-chip .avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}
.user-chip .user-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  line-height: 1.2;
}
.user-chip .user-name {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip .user-rank,
.user-chip .user-role,
.user-chip .user-xp {
  font-size: 0.68rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip .xp-progress,
.user-chip .xp-progress-nav,
.nav-xp-row {
  display: none !important;
}
@media (max-width: 640px) {
  .user-chip .user-meta {
    display: none;
  }
  .user-chip-link {
    padding: 0.25rem;
    max-width: none;
  }
}

/* User chip: display only, no interaction */
.user-chip-display {
  pointer-events: none;
}
.user-chip-display .user-chip-link {
  cursor: default;
  pointer-events: none;
}
.user-chip-display .user-chip-link:hover {
  background: var(--surface);
  border-color: var(--line);
}
.user-menu { display: none !important; }
.dash-sidebar-logout {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}



/* Phase 11B.5 – Dictionary Top 3 */
.dict-top3 { margin-bottom: 1.25rem; }
.dict-top3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 800px) {
  .dict-top3-grid { grid-template-columns: 1fr; }
}
.dict-top-card {
  text-align: center;
  position: relative;
  border: 1px solid rgba(116, 106, 182, 0.35);
}
.dict-top-1 { box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35); }
.dict-top-2 { box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35); }
.dict-top-3 { box-shadow: 0 0 0 1px rgba(180, 120, 80, 0.35); }
.dict-medal { font-size: 2rem; line-height: 1; margin-bottom: 0.35rem; }
.dict-place { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: #9aa3b5; margin-bottom: 0.35rem; }
.dict-title { margin: 0.25rem 0; font-size: 1.15rem; }
.dict-desc { font-size: 0.9rem; color: #c5cad3; }
.dict-author { font-size: 0.85rem; }
.dict-audio { width: 100%; margin-top: 0.65rem; }
.dict-list { list-style: none; margin: 0; padding: 0; }
.dict-item { padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dict-item:last-child { border-bottom: 0; }
.dict-item-head { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.25rem; }
.rule-item { margin-bottom: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.rule-item:last-child { border-bottom: 0; margin-bottom: 0; }
.rule-title { margin: 0 0 0.35rem; font-size: 1.05rem; }
.rule-body { color: #c5cad3; font-size: 0.95rem; }
.motd-banner { border-left: 3px solid #746AB6; }
.motd-img { max-width: 100%; margin-top: 0.75rem; border-radius: 8px; }


/* Phase 11B.5 revision – Dictionary / Rules / Bot */
.dict-top3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 800px) {
  .dict-top3-grid { grid-template-columns: 1fr; }
}
.dict-top-slot {
  text-align: center;
  background: #171b20;
  border: 1px solid rgba(116, 106, 182, 0.3);
  border-radius: 12px;
  padding: 1rem 0.85rem 1.1rem;
}
.dict-medal-img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 0.35rem; }
.dict-place { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9aa3b5; margin-bottom: 0.5rem; }
.dict-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 1100px) { .dict-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .dict-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dict-grid { grid-template-columns: 1fr; } }
.dict-card {
  background: #171b20;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
}
.dict-card-top { background: transparent; border: 0; padding: 0; }
.dict-card-word {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  color: #f3f4f6;
  word-break: break-word;
}
.dict-card-correct {
  font-size: 1rem;
  font-weight: 600;
  color: #857BC7;
}
.dict-card-meta {
  margin: 0.35rem 0 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
}
.dict-card-meta dt {
  color: #8b93a7;
  font-weight: 500;
  display: inline;
}
.dict-card-meta dd {
  display: inline;
  margin: 0 0 0 0.25rem;
  color: #d1d5db;
}
.dict-play-btn {
  margin-top: 0.45rem;
  align-self: flex-start;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 0;
  background: #746AB6;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.dict-play-btn:hover { background: #857BC7; }
.dict-play-btn:focus-visible { outline: 2px solid #857BC7; outline-offset: 2px; }

.rules-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.rules-cat-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: #171b20;
  border: 1px solid rgba(255,255,255,0.06);
  color: inherit;
  text-decoration: none;
  min-width: 8rem;
  max-width: 16rem;
}
.rules-cat-link:hover { border-color: rgba(116, 106, 182, 0.45); }
.rules-cat-link.is-active {
  border-color: #746AB6;
  background: rgba(116, 106, 182, 0.15);
}
.rules-cat-name { font-weight: 600; font-size: 0.95rem; }
.rules-cat-desc { font-size: 0.75rem; color: #9aa3b5; }

.bot-cat-title { margin-top: 0; display: flex; align-items: center; gap: 0.45rem; }
.bot-cat-icon { font-size: 1.35rem; }
.bot-cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
@media (max-width: 700px) { .bot-cmd-grid { grid-template-columns: 1fr; } }
.bot-cmd-card {
  background: #1d2228;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
}
.bot-cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.bot-cmd-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #c4b5fd;
  background: transparent;
}
.bot-cmd-desc { margin: 0.25rem 0; font-size: 0.9rem; color: #d1d5db; }
.bot-cmd-example { margin: 0.25rem 0 0; font-size: 0.85rem; }
.bot-cmd-perm { margin: 0.35rem 0 0; font-size: 0.8rem; }

/* Dark admin form controls (content admin) */
.admin-page-header ~ .card input[type="text"],
.admin-page-header ~ .card input[type="search"],
.admin-page-header ~ .card input[type="number"],
.admin-page-header ~ .card input[type="url"],
.admin-page-header ~ .card input[type="datetime-local"],
.admin-page-header ~ .card input[type="file"],
.admin-page-header ~ .card select,
.admin-page-header ~ .card textarea,
.card.mb-2 input[type="text"],
.card.mb-2 input[type="search"],
.card.mb-2 input[type="number"],
.card.mb-2 input[type="url"],
.card.mb-2 input[type="datetime-local"],
.card.mb-2 input[type="file"],
.card.mb-2 select,
.card.mb-2 textarea,
.card input[type="text"],
.card input[type="search"],
.card input[type="number"],
.card input[type="url"],
.card input[type="datetime-local"],
.card input[type="file"],
.card select,
.card textarea {
  background: #12161c;
  color: #e8eaed;
  border: 1px solid rgba(255,255,255,0.1);
  color-scheme: dark;
}
.card input::placeholder,
.card textarea::placeholder { color: #7a8499; }


/* Dashboard MOTD (functional) */
.motd-dash { margin-bottom: 1rem; }
.motd-dash-media { margin: -0.25rem -0.25rem 0.85rem; overflow: hidden; border-radius: 8px; }
.motd-dash-media img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.motd-dash-title { margin: 0 0 0.5rem; font-size: 1.15rem; }
.motd-dash-body { color: #c5cad3; font-size: 0.95rem; }


/* Playground / Gameserver */
.gs-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }
.gs-filter-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.gs-filter-tab {
  padding: 0.4rem 0.75rem; border-radius: 999px; font-size: 0.85rem;
  background: #12161c; border: 1px solid rgba(255,255,255,0.08); color: #c5cad3; text-decoration: none;
}
.gs-filter-tab:hover { border-color: rgba(116,106,182,0.45); }
.gs-filter-tab.is-active { background: rgba(116,106,182,0.2); border-color: #746AB6; color: #fff; }
.gs-search-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.gs-search-form input[type="search"] {
  min-width: 160px; background: #12161c; color: #e8eaed; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 0.4rem 0.65rem; color-scheme: dark;
}
.gs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 800px) { .gs-grid { grid-template-columns: 1fr; } }
.gs-card {
  position: relative; min-height: 260px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06); background: #171b20;
}
.gs-card-bg {
  position: absolute; inset: 0;
  background: #1d2228 center/cover no-repeat; opacity: 0.45;
}
.gs-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,22,0.35) 0%, rgba(15,18,22,0.92) 70%);
}
.gs-card-body { position: relative; z-index: 1; padding: 1rem 1.1rem 1.15rem; }
.gs-badge {
  position: absolute; top: 0.85rem; right: 0.85rem;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem; border-radius: 999px;
}
.gs-badge-online { background: rgba(34,197,94,0.2); color: #4ade80; }
.gs-badge-offline { background: rgba(239,68,68,0.2); color: #f87171; }
.gs-badge-planned { background: rgba(116,106,182,0.25); color: #c4b5fd; }
.gs-badge-checking { background: rgba(249,115,22,0.2); color: #fb923c; }
.gs-card-title { margin: 0 2.5rem 0.25rem 0; font-size: 1.35rem; font-weight: 700; }
.gs-card-platform { font-size: 0.8rem; color: #9aa3b5; margin-bottom: 0.4rem; }
.gs-card-desc { margin: 0 0 0.75rem; font-size: 0.9rem; color: #d1d5db; line-height: 1.45; }
.gs-card-meta { margin: 0; display: grid; gap: 0.45rem; font-size: 0.85rem; }
.gs-card-meta dt { color: #8b93a7; display: inline; font-weight: 500; }
.gs-card-meta dd { display: inline; margin: 0 0 0 0.35rem; color: #e8eaed; }
.gs-pass-hint { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: #fbbf24; }
.gs-pass-value, .gs-addr {
  display: inline-block; margin: 0 0.35rem 0 0; padding: 0.1rem 0.35rem;
  background: rgba(0,0,0,0.35); border-radius: 4px; font-size: 0.85rem; color: #e9d5ff;
}


/* Daily surprise (functional) */
.ds-card code { background: rgba(0,0,0,0.35); padding: 0.2rem 0.45rem; border-radius: 4px; color: #e9d5ff; }

/* ========== Navigation layout: fixed sidebar + independent centered content ========== */
:root {
  --sidebar-w: 232px;
}

.main-with-sidebar {
  padding: 0;
}

/* Layout shell no longer constrains content width together with sidebar */
.main-with-sidebar > .dash-layout.shell {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  min-height: calc(100vh - var(--nav-h, 64px));
}

/* Fixed left sidebar (desktop) */
.dash-sidebar {
  position: fixed;
  left: 0;
  top: var(--nav-h, 64px);
  bottom: 0;
  width: var(--sidebar-w);
  height: auto;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface);
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 0.55rem 1.25rem;
  z-index: 40;
  align-self: auto;
}

.dash-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dash-sidebar-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 0.35rem 0.7rem 0.35rem;
}

.dash-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.dash-sidebar-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.dash-sidebar-link.is-active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: #fff;
  font-weight: 600;
}
.dash-sidebar-link.is-active .dash-ico {
  color: #fff;
}

.dash-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--text-2);
}

/* Content uses same horizontal shell as navbar – NOT shifted by sidebar */
.dash-content {
  min-width: 0;
  width: 100%;
  margin-left: 0;
  padding: 1.25rem 0 2.5rem;
  box-sizing: border-box;
}

.dash-content > .page {
  padding-top: 0;
  padding-bottom: 0;
}

/* Same .shell rules as global / topnav (do not invent a different max-width) */
.dash-content > .page > .shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  max-width: none; /* width already constrained via min() like global .shell */
}

.dash-content .table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

/* No desktop icon-collapse */
.dash-collapse-btn {
  display: none !important;
}
.dash-layout.is-collapsed {
  /* noop – collapse removed */
}

/* Admin accordion */
.dash-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}
.dash-accordion-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
}
.dash-accordion-chevron {
  display: inline-flex;
  transition: transform 0.18s ease;
  color: var(--text-3);
}
.dash-admin-accordion.is-open .dash-accordion-chevron {
  transform: rotate(180deg);
}
.dash-accordion-panel {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.15rem;
}
.dash-admin-accordion.is-open .dash-accordion-panel {
  display: flex;
}

/* Mobile top toggle */
.nav-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-sidebar-toggle:hover {
  background: var(--surface-2);
}

.dash-sidebar-toggle {
  display: none;
}

.dash-sidebar-backdrop {
  display: none;
}

@media (max-width: 992px) {
  .nav-sidebar-toggle {
    display: inline-grid;
  }

  .dash-sidebar {
    position: fixed;
    left: 0;
    top: var(--nav-h, 64px);
    bottom: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    z-index: 80;
    box-shadow: none;
  }

  .dash-layout.sidebar-open .dash-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.35);
  }

  .dash-content {
    margin-left: 0;
    padding: 1rem 0 2rem;
  }

  .dash-content > .page > .shell {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .dash-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: var(--nav-h, 64px) 0 0 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 70;
  }
  .dash-layout.sidebar-open .dash-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 993px) {
  .dash-sidebar-backdrop {
    display: none !important;
  }
  .nav-sidebar-toggle {
    display: none !important;
  }
}

/* ========== Design Finish Phase 2 (mockup-aligned visuals) ========== */
:root {
  --bg: #07090f;
  --bg-elevated: #0c0f16;
  --surface: #121722;
  --surface-2: #181e2c;
  --line: #242b3c;
  --line-strong: #323a4f;
  --text: #eef1f8;
  --text-2: #9aa3b8;
  --text-3: #6b7388;
  --accent: #7c6cf0;
  --accent-2: #9b8df7;
  --accent-dim: rgba(124, 108, 240, 0.14);
  --accent-glow: rgba(124, 108, 240, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body {
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(124, 108, 240, 0.08), transparent 55%),
    radial-gradient(900px 500px at 88% 0%, rgba(88, 70, 180, 0.06), transparent 50%),
    var(--bg);
  color: var(--text);
}

/* Topnav polish */
.topnav {
  background: rgba(8, 10, 16, 0.82);
  border-bottom: 1px solid rgba(36, 43, 60, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  font-weight: 750;
  letter-spacing: -0.02em;
}

.btn {
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.card {
  background: linear-gradient(180deg, rgba(24, 30, 44, 0.92), rgba(18, 23, 34, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-feature {
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card-feature:hover {
  border-color: rgba(124, 108, 240, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}
.card-icon {
  background: var(--accent-dim);
  color: var(--accent-2);
  border: 1px solid rgba(124, 108, 240, 0.18);
  border-radius: 12px;
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.section-title::after {
  content: none;
}

/* —— Home hero (placeholder image, swappable via CSS) —— */
.page-home {
  padding-top: 0;
}
.hero-home {
  position: relative;
  isolation: isolate;
  min-height: clamp(280px, 42vh, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.75rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Swap this URL for the final hero image */
  background-image: url("../images/hero-placeholder.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.55) 0%, rgba(7, 9, 15, 0.72) 45%, rgba(7, 9, 15, 0.96) 100%),
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(124, 108, 240, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 3.25rem 0 2.75rem;
}
.hero-home h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-sub {
  color: var(--text-2);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  max-width: 36rem;
  margin: 0 auto 1.35rem;
  line-height: 1.5;
}
.hero-actions {
  justify-content: center;
}
.page-home-body {
  padding-bottom: 2.5rem;
}

/* —— Profile banner (placeholder, swappable) —— */
.profile-header.card {
  padding: 0;
  overflow: hidden;
  display: block;
}
.profile-banner {
  height: clamp(120px, 18vw, 200px);
  width: 100%;
  /* Swap this URL for the final profile banner image */
  background-image: url("../images/profile-banner-placeholder.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.profile-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(18, 23, 34, 0.85) 100%);
  pointer-events: none;
}
.profile-header-main {
  padding: 0 1.35rem 1.25rem;
  margin-top: -2.25rem;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.15rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.avatar-lg-profile,
.profile-header .avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 3px solid var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  background: var(--surface-2);
}
.profile-header-main > div:last-child {
  flex: 1;
  min-width: 12rem;
  padding-bottom: 0.15rem;
}
.profile-name {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Forms / inputs darker */
.card input[type="text"],
.card input[type="search"],
.card input[type="number"],
.card input[type="url"],
.card input[type="email"],
.card input[type="password"],
.card input[type="datetime-local"],
.card input[type="file"],
.card select,
.card textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
select,
textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(124, 108, 240, 0.55);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Flash / badges */
.flash {
  border-radius: var(--radius-sm);
}
.status-badge.status-online {
  color: var(--ok);
}
.chip {
  border-radius: 999px;
}

/* Sidebar visual only (layout rules unchanged) */
.dash-sidebar {
  background: linear-gradient(180deg, #121722 0%, #0e131c 100%);
  border-right-color: var(--line);
}
.dash-sidebar-link.is-active {
  background: linear-gradient(90deg, rgba(124, 108, 240, 0.28), rgba(124, 108, 240, 0.12));
  box-shadow: inset 3px 0 0 var(--accent);
}
.dash-accordion-toggle:hover {
  background: var(--surface-2);
}

/* MOTD / highlight cards */
.card.motd-card,
.motd-card {
  border-color: rgba(124, 108, 240, 0.35);
  background:
    radial-gradient(600px 120px at 90% 0%, rgba(124, 108, 240, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(28, 24, 48, 0.95), rgba(18, 23, 34, 0.98));
}

/* Tables */
table {
  border-collapse: collapse;
}
th, td {
  border-color: var(--line);
}

@media (max-width: 900px) {
  .hero-home {
    min-height: 240px;
  }
  .hero-inner {
    padding: 2.25rem 0 2rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .profile-header-main {
    margin-top: -1.75rem;
    align-items: center;
  }
  .avatar-lg-profile,
  .profile-header .avatar-lg {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
