@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #0e1218;
  --card: #111826;
  --alt: #0b1016;
  --text: #e6e9ef;
  --muted: #b7c0cd;
  --accent: #ff7a1a;
  --accent-strong: #ff9c44;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Space Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at 20% 20%, rgba(255, 122, 26, 0.08), transparent 26%), radial-gradient(circle at 80% 0%, rgba(255, 156, 68, 0.08), transparent 24%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: relative;
  padding: 18px 0 64px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(14, 18, 24, 0.2)), linear-gradient(180deg, #0f141b 0%, #0b1016 36%, #0e1218 100%);
  overflow: hidden;
}

.site-header.site-header-compact {
  padding: 18px 0;
  overflow: visible;
  z-index: 20;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(255, 122, 26, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
}

.site-header .brand-mark {
  width: 96px;
  height: 96px;
  background: url("/media/uploads/icon-fa.png") center / contain no-repeat;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

.site-header .brand-mark::after {
  display: none;
}

.brand-name {
  font-size: 16px;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 0;
}

.nav a {
  margin-right: 0;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header .nav a.nav-link {
  color: var(--muted);
}

.site-header .nav-link:visited {
  color: var(--muted);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link-cta {
  color: var(--accent-strong);
  border: 1px solid var(--border);
}

.site-header .nav a.nav-link-cta {
  color: var(--accent-strong);
}

.site-header .nav-link-cta:visited {
  color: var(--accent-strong);
}

.nav-link-cta:hover {
  color: var(--accent);
  background: rgba(255, 156, 68, 0.12);
}

.nav-link-notifications {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-notif-icon {
  font-size: 14px;
  line-height: 1;
}

.nav-notif-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #0d1015;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding-top: 70px;
}

.hero-text h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  margin: 12px 0 12px;
}

.lead {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 22px;
}

.build-version {
  margin-left: 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn.secondary {
  background: transparent;
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.btn.secondary:hover {
  background: rgba(255, 156, 68, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #101010;
  box-shadow: 0 10px 30px rgba(255, 122, 26, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 122, 26, 0.4);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn.ghost:hover {
  border-color: rgba(255, 122, 26, 0.45);
  color: var(--text);
}

.btn.full {
  width: 100%;
}

.hero-panel {
  display: flex;
  align-items: center;
}

.hero-card {
  background: rgba(17, 24, 38, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card-title {
  margin: 0 0 12px;
  font-weight: 700;
}

.hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.hero-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--alt);
}

.section-header {
  max-width: 760px;
}

.section-header h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 8px 0;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 20px;
}

.legal-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.legal-section h2 {
  margin: 0 0 10px;
}

.legal-section p {
  margin: 0 0 8px;
  color: var(--muted);
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent-strong);
  font-weight: 700;
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
  margin: 10px 0 6px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(255, 156, 68, 0.32));
  border: 1px solid rgba(255, 122, 26, 0.35);
  position: relative;
}

.icon::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.section-actions {
  margin-top: 32px;
}

.forum-grid {
  display: grid;
  gap: 26px;
  align-items: center;
}

.forum-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.forum-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.bullet-list {
  padding-left: 16px;
  color: var(--muted);
  margin: 14px 0 22px;
}

.forum-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.forum-title {
  margin: 0 0 10px;
  font-weight: 700;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.stat {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  display: block;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.partner-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.partner-filter label {
  font-weight: 600;
  font-size: 14px;
}

.partner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.6);
}

.partner-maintenance-card {
  gap: 10px;
}

.partner-maintenance-card h3 {
  margin: 0;
}

.partner-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 28%, 170px);
  gap: 12px;
  align-items: center;
}

.partner-main {
  min-width: 0;
}

.partner-main h3 {
  margin: 0 0 8px;
}

.partner-title-link {
  color: var(--text);
  text-decoration: none;
}

.partner-title-link:visited {
  color: var(--text);
}

.partner-title-link:hover {
  color: var(--accent-strong);
}

.partner-logo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
  justify-self: start;
  margin: 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.partner-icon {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.26), rgba(255, 122, 26, 0.32)), linear-gradient(135deg, rgba(255, 122, 26, 0.28), rgba(255, 156, 68, 0.4));
}

.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  background: #0c1117;
}

.partner-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.partner-actions {
  margin-top: 4px;
}

.partner-contact {
  color: var(--text);
  margin-top: 6px;
  font-size: 14px;
}

.partner-contact-link {
  color: var(--text);
  text-decoration: underline;
}

.partner-btn-wrap {
  margin-top: 8px;
}

@media (max-width: 560px) {
  .partner-logo-wrap {
    width: 86px;
    height: 86px;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.honeypot {
  position: absolute;
  left: -5000px;
  opacity: 0;
}

label {
  font-weight: 600;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0c1117;
  color: var(--text);
  font-family: var(--font-sans);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 122, 26, 0.5);
  border-color: rgba(255, 122, 26, 0.4);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.form-actions {
  display: grid;
  gap: 10px;
}

.form-status {
  min-height: 18px;
  color: var(--muted);
  margin: 0;
}

.status-warning {
  color: #ff9c44;
}

.status-success {
  color: #8ce9a3;
}

/* Profile (auth/profile.php) */
.profile-identity {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.profile-edit-banner {
  display: none;
  margin: 0 16px 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.profile-cover {
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 180px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 122, 26, 0.55), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(255, 156, 68, 0.42), transparent 28%),
    linear-gradient(140deg, #16263a 0%, #1b2638 36%, #101821 100%);
  border-bottom: 1px solid var(--border);
}

.profile-cover-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cover.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.18));
}

.profile-identity-body {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.profile-avatar {
  position: relative;
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0d1015;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  border: 4px solid var(--bg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.profile-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.profile-kicker {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.profile-name {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(24px, 3vw, 34px);
}

.profile-handle {
  margin: 4px 0 10px;
  color: var(--muted);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text);
}

.profile-contact {
  margin: 10px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.profile-edit-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-strong);
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}

.profile-edit-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  max-width: 880px;
}

.profile-form-grid .form-row.full {
  grid-column: 1 / -1;
}

.profile-media-editor {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-media-editor-cover {
  grid-template-columns: 1fr;
  align-items: start;
}

.profile-media-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #0c1117;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-media-preview-avatar {
  width: 74px;
  height: 74px;
  border-radius: 999px;
}

.profile-media-preview-cover {
  width: 100%;
  max-width: 360px;
  min-height: 110px;
}

.profile-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-media-controls {
  display: grid;
  gap: 8px;
}

.profile-media-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.profile-intro {
  margin-top: 16px;
}

.profile-intro h2 {
  margin: 0 0 10px;
}

.profile-intro-bio {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.7;
}

.profile-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.profile-intro-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-intro-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-intro-value {
  margin: 0;
  font-weight: 600;
}

.profile-intro-block {
  margin-top: 12px;
}

.profile-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}

.profile-link-list {
  display: grid;
  gap: 8px;
}

.profile-link-list a {
  color: var(--accent-strong);
  overflow-wrap: anywhere;
}

.profile-link-list a:hover {
  color: var(--accent);
}

.profile-notif-preview {
  margin-top: 16px;
}

.profile-notif-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-notif-preview-head h2 {
  margin: 0;
}

.profile-notif-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.profile-notif-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-notif-title {
  margin: 0;
  font-weight: 700;
}

.profile-notif-body {
  margin: 4px 0 0;
  color: var(--muted);
}

.profile-notif-date {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.notifications-card {
  margin-top: 16px;
}

.notifications-head,
.notifications-local-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notifications-head h1,
.notifications-local-head h2 {
  margin: 0;
}

.notifications-local-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.notification-local-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.notification-local-item h3 {
  margin: 0;
  font-size: 16px;
}

.notification-local-body {
  margin: 0;
  color: var(--muted);
}

.notification-local-state {
  margin: 0;
}

.notification-local-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.notification-local-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notif-state-read,
.notif-state-unread {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.notif-state-read {
  color: #8ce9a3;
  background: rgba(140, 233, 163, 0.1);
  border-color: rgba(140, 233, 163, 0.35);
}

.notif-state-unread {
  color: var(--accent-strong);
  background: rgba(255, 122, 26, 0.1);
  border-color: rgba(255, 122, 26, 0.35);
}

.notifications-mark-read-form {
  display: inline-flex;
  margin-left: 8px;
}

.intro-suggest-box {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.intro-suggest-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.intro-suggest-item:hover {
  border-color: rgba(255, 122, 26, 0.55);
  color: var(--accent-strong);
}

.profile-visibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 12px;
}

.profile-visibility-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}

.profile-visibility-grid input[type="checkbox"] {
  width: auto;
}

.profile-support-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  max-width: 620px;
}

.site-footer {
  padding: 32px 0 44px;
  background: #0a0e13;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: start;
}

.footer-text {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-link,
.footer-links a {
  color: var(--text);
}

.pwa-install-toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 32px));
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 20, 28, 0.98);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  cursor: pointer;
}

.pwa-install-toast span {
  color: var(--text);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 68px;
    right: 16px;
    background: #0f141c;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    min-width: 220px;
    z-index: 30;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .forum-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-cover {
    height: 150px;
  }

  .profile-identity-body {
    margin-top: -34px;
    padding: 0 16px 80px;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
  }

  .profile-avatar {
    width: 86px;
    height: 86px;
    font-size: 30px;
  }

  .profile-name {
    display: block;
    margin: 0;
    font-size: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-contact {
    display: none;
  }

  .profile-actions {
    width: auto;
    justify-content: flex-end;
  }

  .profile-actions-desktop {
    display: none;
  }

  .profile-edit-banner {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    z-index: 2;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-media-editor {
    grid-template-columns: 1fr;
  }

  .profile-media-preview-avatar {
    width: 86px;
    height: 86px;
  }

  .profile-intro-grid {
    grid-template-columns: 1fr;
  }

  .profile-notif-preview-head,
  .notifications-head,
  .notifications-local-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pwa-install-toast {
    left: 50%;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 10px 12px;
    gap: 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .nav-bar {
    gap: 4px;
  }

  .brand-name {
    font-size: 14px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
