@import url("/theme-light.css");
@import url("/theme-dark.css");
@import url("/theme-midnight.css");

* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.navbar {
  height: 68px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

button,
.nav-links a,
.google-btn {
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button,
.google-btn {
  background: var(--button-primary);
  color: var(--on-primary);
}

button:hover,
.google-btn:hover {
  background: var(--button-primary-hover);
  text-decoration: none;
}

.admin-btn {
  background: #fff4db !important;
  color: #8a5a00 !important;
  border: 1px solid #f1d28c !important;
}

.admin-btn:hover {
  background: #ffeab4 !important;
}

.pro-btn {
  background: #efe8ff !important;
  color: #5d2fb7 !important;
  border: 1px solid #d5c2ff !important;
}

.pro-btn:hover {
  background: #e1d2ff !important;
}

.logout-btn {
  background: #fff1f0 !important;
  color: var(--danger) !important;
  border: 1px solid #f3c0c5 !important;
}

.logout-btn:hover {
  background: #ffdede !important;
}

.danger {
  background: var(--danger) !important;
  color: white !important;
}

.danger:hover {
  background: var(--danger-dark) !important;
}

.auth-box {
  width: 100%;
  max-width: 430px;
  margin: 60px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.auth-box h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 28px;
  color: var(--text);
}

.auth-box form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd6dd;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  margin-bottom: 16px;
  transition: 0.2s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

.small-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 28px auto;
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.container h1,
.container h2,
.container h3 {
  margin-top: 0;
}

.forum-layout {
  max-width: 1240px;
  margin: 24px auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 0 20px;
}

.forum-sidebar {
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  height: fit-content;
}

.forum-sidebar h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
}

.forum-sidebar button {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 10px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.forum-sidebar button:hover {
  background: var(--soft-blue);
  color: var(--primary-dark);
  border-color: #b6d4f2;
}

.forum-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.create-post-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.create-post-box h2,
.create-post-box h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  transition: 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.post-card h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  cursor: pointer;
  color: #111827;
}

.post-card h3:hover {
  color: var(--primary);
}

.post-card p {
  color: #334155;
  line-height: 1.6;
  margin-bottom: 0;
}

.post-top,
.post-footer,
.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-footer {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

.post-actions {
  margin-top: 16px;
  justify-content: flex-start;
}

.category-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--soft-blue);
  color: var(--primary-dark);
  border: 1px solid #bed8f3;
}

.post-content-full {
  line-height: 1.7;
  white-space: pre-wrap;
  color: #27313a;
  margin-top: 12px;
}

.comment-card {
  background: #f8fafc;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.comment-card p {
  margin: 0 0 8px;
}

.forum-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.forum-pagination button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #ffffff;
  color: #17345f;
  font-weight: 800;
  cursor: pointer;
}

.forum-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.post-tag-row,
.post-engagement {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.post-tag-row span,
.post-solved-badge,
.comment-answer-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf4ff;
  color: #245fc2;
  font-size: 0.82rem;
  font-weight: 800;
}

.post-engagement button,
.comment-solution-btn {
  padding: 9px 13px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #ffffff;
  color: #17345f;
  font-weight: 800;
  cursor: pointer;
}

.post-engagement button.active,
.comment-solution-btn {
  border-color: #7ca7f5;
  background: #edf4ff;
  color: #245fc2;
}

.comment-answer-badge {
  display: inline-flex;
  margin-top: 10px;
  background: #e8f8ef;
  color: #167344;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #e6e9ee;
  font-size: 14px;
}

th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

tr:hover td {
  background: #fafcff;
}

.info-box {
  background: #eef6ff;
  border: 1px solid #c6ddf5;
  color: #19456b;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.success-box {
  background: #ebfff5;
  border: 1px solid #bfe7d0;
  color: #0a5e35;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.warning-box {
  background: #fff8e8;
  border: 1px solid #f4dfab;
  color: #7b5a00;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 24px 0;
}

/* MAIL DOĞRULAMA SAYFALARI */
.verify-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(10, 102, 194, 0.10), transparent 34%),
    #f3f2ef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.verify-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border: 1px solid #d9dde3;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
  padding: 38px;
  text-align: center;
}

.verify-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f3ff;
  color: #0a66c2;
  font-size: 34px;
  font-weight: 800;
}

.verify-icon.success {
  background: #e8fff3;
  color: #057642;
}

.verify-icon.error {
  background: #fff1f0;
  color: #d11124;
}

.verify-card h1 {
  margin: 0 0 12px;
  font-size: 30px;
  color: #1d2226;
  letter-spacing: -0.5px;
}

.verify-desc {
  margin: 0 auto 24px;
  max-width: 470px;
  color: #5e6b75;
  font-size: 15px;
  line-height: 1.7;
}

.verify-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0;
  text-align: left;
}

.verify-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 14px;
}

.verify-step span {
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0a66c2;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verify-step p {
  margin: 4px 0 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.verify-warning {
  background: #fff8e8;
  border: 1px solid #f4dfab;
  color: #7b5a00;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.verify-form {
  text-align: left;
  margin-top: 22px;
}

.verify-form button {
  width: 100%;
}

.verify-main-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
  background: #0a66c2;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.verify-main-btn:hover {
  background: #004182;
  text-decoration: none;
}

.verify-links {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 980px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .forum-sidebar {
    order: 2;
  }

  .forum-main {
    order: 1;
  }
}

@media (max-width: 700px) {
  .navbar {
    height: auto;
    padding: 14px;
    gap: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .auth-box {
    margin: 30px 16px;
    padding: 24px 18px;
  }

  .container {
    margin: 16px;
    padding: 18px;
  }

  .forum-layout {
    padding: 0 12px;
  }

  .post-card h3 {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .verify-card {
    padding: 28px 20px;
  }

  .verify-card h1 {
    font-size: 24px;
  }

  .verify-page {
    padding: 16px;
    align-items: flex-start;
  }
}
/* FİZİK.NET ANA SAYFA */
.fizik-home {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.fizik-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-content {
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.20), transparent 32%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 42px;
}

.hero-badge {
  display: inline-flex;
  background: #e8f3ff;
  color: #004182;
  border: 1px solid #bed8f3;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: #111827;
}

.hero-content p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.75;
  max-width: 780px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.primary-link-btn,
.secondary-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link-btn {
  background: var(--button-primary);
  color: var(--on-primary);
}

.primary-link-btn:hover {
  background: var(--button-primary-hover);
  text-decoration: none;
}

.secondary-link-btn {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid #b6d4f2;
}

.secondary-link-btn:hover {
  background: #e8f3ff;
  text-decoration: none;
}

.hero-panel {
  background: #0f172a;
  color: white;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.hero-panel-header span {
  color: #cbd5e1;
  font-size: 14px;
}

.hero-panel-header strong {
  background: rgba(10, 102, 194, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #bfdbfe;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.core-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.core-grid div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  font-weight: 700;
}

.home-layout {
  display: grid;
  grid-template-columns: 260px 1fr 310px;
  gap: 24px;
  align-items: start;
}

.left-profile-card,
.info-card,
.quick-post-card,
.feed-card,
.module-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.left-profile-card {
  overflow: hidden;
  position: sticky;
  top: 92px;
}

.profile-cover {
  height: 76px;
  background:
    linear-gradient(135deg, #0a66c2, #004182);
}

.profile-body {
  text-align: center;
  padding: 0 18px 18px;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e8f3ff;
  color: #0a66c2;
  border: 4px solid white;
  margin: -38px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
}

.profile-body h3 {
  margin: 0;
  font-size: 18px;
}

.profile-body p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #475569;
}

.profile-meta span {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 8px;
  border-radius: 10px;
}

.profile-links {
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.profile-links a {
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
  font-weight: 600;
  font-size: 14px;
}

.profile-links a:last-child {
  border-bottom: none;
}

.center-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quick-post-card {
  padding: 18px;
}

.quick-post-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mini-avatar {
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8f3ff;
  color: #0a66c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.quick-post-top button {
  width: 100%;
  background: #ffffff;
  color: #64748b;
  border: 1px solid #cfd6dd;
  justify-content: flex-start;
}

.quick-post-top button:hover {
  background: #f8fafc;
  color: var(--primary);
}

.quick-post-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.quick-post-actions span {
  text-align: center;
  padding: 10px;
  border-radius: 12px;
}

.quick-post-actions span:hover {
  background: #f1f5f9;
}

.section-title h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.section-title.centered {
  text-align: center;
  margin-bottom: 24px;
}

.feed-card {
  padding: 22px;
}

.feed-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.feed-icon {
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e8f3ff;
  color: #0a66c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
}

.feed-header h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.feed-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feed-card > p {
  color: #334155;
  line-height: 1.65;
  margin: 0;
}

.feed-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.feed-tags span {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.right-info-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.info-card {
  padding: 20px;
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.info-card p {
  color: #475569;
  line-height: 1.6;
  margin: 0 0 14px;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roadmap-list li {
  border-bottom: 1px solid #eef2f7;
  padding: 12px 0;
}

.roadmap-list li:first-child {
  padding-top: 0;
}

.roadmap-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.roadmap-list strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
}

.roadmap-list span {
  color: var(--muted);
  font-size: 13px;
}

.ai-card {
  background:
    linear-gradient(135deg, #ffffff, #f3e8ff);
}

.ai-card span {
  display: inline-flex;
  background: #efe8ff;
  color: #5d2fb7;
  border: 1px solid #d5c2ff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.module-section {
  margin-top: 34px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.module-card {
  padding: 20px;
  box-shadow: none;
  transition: 0.2s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.module-icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.module-card h3 {
  margin: 0 0 8px;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1150px) {
  .home-layout {
    grid-template-columns: 230px 1fr;
  }

  .right-info-panel {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .fizik-hero {
    grid-template-columns: 1fr;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .left-profile-card,
  .right-info-panel {
    position: static;
  }

  .right-info-panel {
    display: flex;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .quick-post-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .fizik-home {
    padding: 16px 12px 40px;
  }

  .hero-content {
    padding: 28px 20px;
  }

  .hero-content h1 {
    font-size: 27px;
  }

  .module-section {
    padding: 22px 16px;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .core-grid {
    grid-template-columns: 1fr;
  }
}
/* COMMUNITY / FORUM SAYFASI */
.community-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.community-hero {
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 24px;
}

.community-hero h1 {
  margin: 10px 0 10px;
  font-size: 34px;
  letter-spacing: -0.8px;
}

.community-hero p {
  max-width: 820px;
  margin: 0;
  color: #475569;
  line-height: 1.7;
  font-size: 16px;
}

.community-layout {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 24px;
  align-items: start;
}

.community-sidebar,
.community-right {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.side-card h3 {
  margin: 0 0 14px;
}

.category-filter {
  width: 100%;
  justify-content: flex-start;
  background: #ffffff;
  color: #1d2226;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 9px;
}

.category-filter:hover {
  background: #e8f3ff;
  color: #004182;
}

.rule-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.65;
  font-size: 14px;
}

.community-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.create-forum-post,
.forum-post-card,
.post-detail-card,
.comments-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.create-forum-post h2 {
  margin: 0 0 16px;
}

.forum-post-card h3 {
  margin: 13px 0 8px;
  font-size: 22px;
  cursor: pointer;
}

.forum-post-card h3:hover {
  color: var(--primary);
}

.forum-post-card p {
  margin: 0;
  color: #334155;
  line-height: 1.65;
}

.forum-post-top,
.forum-post-footer,
.forum-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.forum-post-footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.forum-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

.pin-badge,
.announcement-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-left: 6px;
}

.pin-badge {
  background: #fff8e8;
  color: #7b5a00;
  border: 1px solid #f4dfab;
}

.announcement-badge {
  background: #fff1f0;
  color: #d11124;
  border: 1px solid #f3c0c5;
}

.topic-chip {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 9px 12px;
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.empty-card {
  background: #ffffff;
  border: 1px dashed #cfd6dd;
  border-radius: 16px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.post-detail-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.post-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-detail-card h1 {
  margin: 16px 0 8px;
  font-size: 32px;
}

.comments-section h2 {
  margin: 0 0 18px;
}

.comment-form {
  margin-top: 20px;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.comment-form h3 {
  margin: 0 0 12px;
}

.comment-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.small-danger {
  margin-top: 10px;
  padding: 7px 12px;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .community-layout {
    grid-template-columns: 230px 1fr;
  }

  .community-right {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-sidebar,
  .community-right {
    position: static;
  }

  .community-right {
    display: flex;
  }

  .community-hero h1 {
    font-size: 27px;
  }
}

@media (max-width: 560px) {
  .community-page,
  .post-detail-page {
    padding: 16px 12px 40px;
  }

  .community-hero {
    padding: 24px 18px;
  }

  .create-forum-post,
  .forum-post-card,
  .post-detail-card,
  .comments-section {
    padding: 18px;
  }

  .post-detail-card h1 {
    font-size: 25px;
  }
}
/* ADMIN PANEL */
.admin-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.admin-hero {
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 24px;
}

.admin-hero h1 {
  margin: 10px 0 10px;
  font-size: 34px;
  letter-spacing: -0.8px;
}

.admin-hero p {
  max-width: 800px;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-side {
  position: sticky;
  top: 92px;
}

.admin-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-section {
  display: block;
}

.admin-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.admin-card h2 {
  margin: 0 0 14px;
}

.admin-card p {
  color: #475569;
  line-height: 1.6;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-card-head h2 {
  margin: 0 0 6px;
}

.admin-card-head p {
  margin: 0;
  color: var(--muted);
}

.admin-menu-btn {
  width: 100%;
  justify-content: flex-start;
  background: #ffffff;
  color: #1d2226;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 9px;
}

.admin-menu-btn:hover,
.admin-menu-btn.active {
  background: #e8f3ff;
  color: #004182;
  border-color: #b6d4f2;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.security-item {
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 16px;
}

.security-item strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
}

.security-item p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

@media (max-width: 850px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
  }

  .admin-hero h1 {
    font-size: 27px;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-page {
    padding: 16px 12px 40px;
  }

  .admin-hero {
    padding: 24px 18px;
  }

  .admin-card {
    padding: 18px;
  }
}
/* PRO ADMIN PANEL */
.pro-admin-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.pro-admin-hero {
  background:
    radial-gradient(circle at top left, rgba(93, 47, 183, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #faf7ff);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: center;
}

.pro-admin-hero h1 {
  margin: 10px 0 10px;
  font-size: 34px;
  letter-spacing: -0.8px;
}

.pro-admin-hero p {
  max-width: 760px;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.pro-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pro-admin-stats div {
  background: #ffffff;
  border: 1px solid #e4dcff;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.pro-admin-stats strong {
  display: block;
  font-size: 30px;
  color: #5d2fb7;
  margin-bottom: 6px;
}

.pro-admin-stats span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.pro-admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.pro-admin-side {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pro-admin-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.role-info-card {
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
}

.role-info-card strong {
  display: block;
  margin-bottom: 6px;
}

.role-info-card p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.user-role {
  background: #f8fafc;
}

.admin-role {
  background: #fff8e8;
  border-color: #f4dfab;
}

.pro-role {
  background: #f5f0ff;
  border-color: #d5c2ff;
}

.pro-admin-toolbar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.pro-admin-toolbar h2 {
  margin: 0 0 6px;
}

.pro-admin-toolbar p {
  margin: 0;
  color: var(--muted);
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar-actions input {
  min-width: 260px;
  margin-bottom: 0;
}

.user-management-table {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  overflow-x: auto;
}

.table-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-avatar {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f3ff;
  color: #0a66c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.table-user strong {
  display: block;
  margin-bottom: 3px;
}

.table-user span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.table-user em {
  display: inline-flex;
  margin-top: 5px;
  font-style: normal;
  background: #e8fff3;
  color: #057642;
  border: 1px solid #bfe7d0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.login-method,
.verify-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.google-login {
  background: #e8f3ff;
  color: #004182;
  border: 1px solid #bed8f3;
}

.local-login {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.verified {
  background: #e8fff3;
  color: #057642;
  border: 1px solid #bfe7d0;
}

.not-verified {
  background: #fff8e8;
  color: #7b5a00;
  border: 1px solid #f4dfab;
}

@media (max-width: 1100px) {
  .pro-admin-hero {
    grid-template-columns: 1fr;
  }

  .pro-admin-layout {
    grid-template-columns: 1fr;
  }

  .pro-admin-side {
    position: static;
  }
}

@media (max-width: 700px) {
  .pro-admin-stats {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions input {
    width: 100%;
    min-width: 0;
  }

  .pro-admin-hero h1 {
    font-size: 27px;
  }
}

@media (max-width: 560px) {
  .pro-admin-page {
    padding: 16px 12px 40px;
  }

  .pro-admin-hero {
    padding: 24px 18px;
  }
}
/* PROFİL SAYFASI */
.profile-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.profile-hero-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.profile-hero-cover {
  height: 150px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 30%),
    linear-gradient(135deg, #0a66c2, #004182);
}

.profile-hero-body {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  padding: 0 28px 28px;
}

.profile-big-avatar {
  min-width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #e8f3ff;
  color: #0a66c2;
  border: 5px solid #ffffff;
  margin-top: -64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  font-weight: 900;
}

.profile-main-info h1 {
  margin: 0 0 4px;
  font-size: 32px;
}

.profile-main-info p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-badges span,
.profile-role-badge,
.profile-verify-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.profile-role-badge.user {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.profile-role-badge.admin {
  background: #fff8e8;
  color: #7b5a00;
  border: 1px solid #f4dfab;
}

.profile-role-badge.pro_admin {
  background: #f5f0ff;
  color: #5d2fb7;
  border: 1px solid #d5c2ff;
}

.profile-verify-badge.ok {
  background: #e8fff3;
  color: #057642;
  border: 1px solid #bfe7d0;
}

.profile-verify-badge.wait {
  background: #fff8e8;
  color: #7b5a00;
  border: 1px solid #f4dfab;
}

.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.profile-info-card,
.profile-section-head,
.profile-post-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.profile-info-card h3 {
  margin: 0 0 16px;
}

.profile-info-row {
  border-bottom: 1px solid #eef2f7;
  padding: 12px 0;
}

.profile-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-info-row strong {
  display: block;
  color: #111827;
  margin-bottom: 5px;
  font-size: 14px;
}

.profile-info-row span {
  color: #475569;
  font-size: 14px;
  word-break: break-word;
}

.profile-road-item {
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.profile-road-item strong {
  display: block;
  color: #111827;
  margin-bottom: 5px;
}

.profile-road-item span {
  color: #475569;
  font-size: 13px;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-section-head h2 {
  margin: 0 0 6px;
}

.profile-section-head p {
  margin: 0;
  color: var(--muted);
}

.profile-post-card {
  margin-bottom: 16px;
}

.profile-post-card h3 {
  margin: 14px 0 8px;
  cursor: pointer;
}

.profile-post-card h3:hover {
  color: var(--primary);
}

.profile-post-card p {
  margin: 0;
  color: #334155;
  line-height: 1.65;
}

@media (max-width: 850px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-left {
    position: static;
  }

  .profile-hero-body {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .profile-badges {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .profile-page {
    padding: 16px 12px 40px;
  }

  .profile-hero-cover {
    height: 110px;
  }

  .profile-big-avatar {
    min-width: 104px;
    height: 104px;
    font-size: 42px;
    margin-top: -52px;
  }

  .profile-main-info h1 {
    font-size: 26px;
  }

  .profile-info-card,
  .profile-section-head,
  .profile-post-card {
    padding: 18px;
  }
}
/* PROFİL DÜZENLEME */
.profile-edit-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.profile-edit-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.profile-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.profile-edit-head h1 {
  margin: 10px 0 10px;
  font-size: 34px;
  letter-spacing: -0.8px;
}

.profile-edit-head p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
  max-width: 680px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.profile-edit-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.profile-action-row {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-edit-head h1 {
    font-size: 27px;
  }
}

@media (max-width: 560px) {
  .profile-edit-page {
    padding: 16px 12px 40px;
  }

  .profile-edit-card {
    padding: 24px 18px;
  }
}
/* PROFİL FOTOĞRAF VE BANNER */
.profile-big-avatar,
.profile-avatar,
.mini-avatar,
.edit-photo-preview {
  overflow: hidden;
}

.profile-big-avatar img,
.profile-avatar img,
.mini-avatar img,
.edit-photo-preview img,
.table-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-cover,
.profile-cover,
.edit-banner-preview {
  background-size: cover;
  background-position: center;
}

.edit-banner-preview {
  height: 210px;
  border-radius: 18px;
  border: 1px dashed #b6c2cf;
  background:
    linear-gradient(135deg, #e8f3ff, #f8fbff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a66c2;
  font-weight: 800;
  margin-bottom: 22px;
}

.edit-photo-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}

.edit-photo-preview {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #e8f3ff;
  color: #0a66c2;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 900;
}

.edit-photo-actions h3 {
  margin: 0 0 8px;
}

.edit-photo-actions p {
  margin: 0 0 16px;
  color: var(--muted);
}

.image-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.image-upload-grid form {
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  padding: 16px;
}

@media (max-width: 760px) {
  .edit-photo-row {
    grid-template-columns: 1fr;
  }

  .image-upload-grid {
    grid-template-columns: 1fr;
  }
}
/* PUBLIC PROFİL */
.user-link {
  color: #0a66c2;
  font-weight: 700;
  text-decoration: none;
}

.user-link:hover {
  text-decoration: underline;
}
/* ARKADAŞLIK VE MESAJ SİSTEMİ */
.friends-page,
.messages-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.friends-hero {
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 24px;
}

.friends-hero h1 {
  margin: 10px 0;
  font-size: 34px;
}

.friends-hero p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.friends-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.friends-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.friends-card h2 {
  margin: 0 0 16px;
}

.friend-user-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.friend-user-main {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.friend-user-main:hover {
  text-decoration: none;
}

.friend-avatar,
.conversation-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8f3ff;
  color: #0a66c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.friend-avatar img,
.conversation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-user-main strong {
  display: block;
  color: #111827;
  margin-bottom: 3px;
}

.friend-user-main span,
.friend-user-main small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.friend-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.messages-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
  min-height: 680px;
}

.conversation-list-card,
.message-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.messages-head {
  padding: 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.messages-head h2 {
  margin: 0;
}

.conversation-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}

.conversation-item:hover {
  background: #f8fafc;
}

.conversation-item strong {
  display: block;
  color: #111827;
}

.conversation-item span,
.conversation-item small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.message-empty {
  height: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 30px;
}

.message-target-head {
  padding: 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.message-target-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-target-user strong {
  display: block;
}

.message-target-user span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.message-list {
  height: 480px;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-bubble {
  max-width: 72%;
  border-radius: 18px;
  padding: 12px 14px;
}

.message-bubble p {
  margin: 0 0 6px;
  line-height: 1.5;
}

.message-bubble span {
  font-size: 11px;
  opacity: 0.75;
}

.message-bubble.mine {
  align-self: flex-end;
  background: #0a66c2;
  color: white;
  border-bottom-right-radius: 5px;
}

.message-bubble.other {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  color: #1d2226;
  border-bottom-left-radius: 5px;
}

.message-form {
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.message-form textarea {
  margin-bottom: 0;
  min-height: 54px;
  max-height: 120px;
}

@media (max-width: 900px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .message-list {
    height: 420px;
  }
}

@media (max-width: 560px) {
  .friends-page,
  .messages-page {
    padding: 16px 12px 40px;
  }

  .friends-hero {
    padding: 24px 18px;
  }

  .message-form {
    grid-template-columns: 1fr;
  }

  .message-bubble {
    max-width: 90%;
  }
}
/* AUTH SAYFALARI - GİRİŞ / KAYIT */
body {
  margin: 0;
}

:focus-visible {
  outline: 3px solid rgba(10, 102, 194, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.ui-toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30000;
  display: grid;
  width: min(390px, calc(100vw - 24px));
  gap: 10px;
  pointer-events: none;
}

.ui-toast {
  padding: 13px 15px;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  background: #eff6ff;
  color: #1e3a8a;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  animation: uiToastIn 0.18s ease-out;
}

.ui-toast.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.ui-toast.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.ui-toast.leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.ui-modal-open {
  overflow: hidden;
}

.ui-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.ui-modal {
  width: min(470px, 100%);
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dbe3ee;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

.ui-modal h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
}

.ui-modal p {
  margin: 10px 0 0;
  color: #475569;
  line-height: 1.65;
}

.ui-modal-input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  margin-top: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 13px;
  font: inherit;
}

.ui-modal-input[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.ui-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.ui-modal-actions button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.ui-modal-cancel {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.ui-modal-confirm {
  border: 0;
  background: #0a66c2;
  color: #ffffff;
}

.ui-modal-confirm.danger {
  background: #dc2626;
}

@keyframes uiToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .ui-toast-region {
    right: 12px;
    bottom: 12px;
  }

  .ui-modal-actions {
    flex-direction: column-reverse;
  }

  .ui-modal-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.20), transparent 32%),
    linear-gradient(135deg, #eef6ff 0%, #f8fafc 45%, #ffffff 100%);
}

.auth-left {
  padding: 54px 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0a66c2, #003f7d);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(10, 102, 194, 0.28);
}

.auth-brand h1 {
  margin: 0;
  color: #0f172a;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.auth-brand p {
  margin: 4px 0 0;
  color: #475569;
}

.auth-hero {
  max-width: 680px;
  margin-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: #e8f3ff;
  color: #0a66c2;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}

.auth-hero h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.auth-hero p {
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.auth-feature-list {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.auth-feature-list div {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.auth-feature-list strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  margin-bottom: 4px;
}

.auth-feature-list span {
  color: #64748b;
  font-size: 14px;
}

.auth-right {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.auth-preference-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.auth-preference-control {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card);
  cursor: pointer;
}

.auth-preference-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--soft-blue);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.auth-preference-theme-icon {
  font-size: 19px;
}

.auth-preference-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.auth-preference-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-preference-copy select {
  width: 100%;
  min-width: 0;
  min-height: 26px;
  padding: 0 20px 0 0;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  outline: 0;
  cursor: pointer;
}

.auth-preference-control:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.auth-card-head {
  margin-bottom: 24px;
}

.auth-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.auth-card-head p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition: 0.18s ease;
}

.auth-form input:focus {
  border-color: #0a66c2;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.12);
}

.auth-form button,
.google-login-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: none;
  background: #0a66c2;
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  transition: 0.18s ease;
}

.auth-form button {
  margin-top: 8px;
}

.auth-form button:disabled,
.verify-form button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.auth-form-status {
  min-height: 20px;
  margin: 4px 0 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.5;
}

.auth-form-status:empty {
  display: none;
}

.auth-form-status.success {
  background: #f0fdf4;
  color: #166534;
}

.auth-form-status.error {
  background: #fef2f2;
  color: #991b1b;
}

.auth-form button:hover,
.google-login-btn:hover {
  background: #004182;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 102, 194, 0.22);
}

.google-login-btn {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #cbd5e1;
}

.google-login-btn:hover {
  background: #f8fafc;
  color: #0a66c2;
}

.google-login-btn span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4285f4;
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 13px;
  margin: 22px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e8f0;
}

.auth-help {
  display: block;
  margin: -4px 0 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.auth-footer {
  margin-top: 22px;
  text-align: center;
  color: #475569;
  font-size: 14px;
}

.auth-footer p {
  margin: 8px 0;
}

.auth-footer a {
  color: #0a66c2;
  font-weight: 800;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-link-button {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0a66c2;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-link-button:hover {
  background: transparent;
  color: #004182;
  text-decoration: underline;
}

.auth-resend-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  text-align: left;
}

.auth-resend-form label {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.auth-resend-form input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  background: #ffffff;
  font: inherit;
}

.auth-resend-form button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #0a66c2;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-resend-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-resend-status {
  min-height: 18px;
  margin: 0 !important;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.auth-resend-status.success {
  color: #15803d;
}

.auth-resend-status.error {
  color: #b91c1c;
}

@media (max-width: 920px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-left {
    padding: 34px 24px 10px;
  }

  .auth-hero {
    margin-top: 42px;
  }

  .auth-hero h2 {
    font-size: 38px;
  }

  .auth-right {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .auth-brand h1 {
    font-size: 28px;
  }

  .auth-hero h2 {
    font-size: 32px;
  }

  .auth-card {
    padding: 24px;
    border-radius: 22px;
  }

  .auth-preference-bar {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   FİZİK.NET MOBİL OPTİMİZASYON
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Genel görsel ve kutu taşmalarını engelle */
img,
video,
canvas {
  max-width: 100%;
}

/* Navbar mobil düzen */
@media (max-width: 900px) {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 12px 14px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .navbar .logo,
  .logo {
    font-size: 20px;
    width: 100%;
  }

  .nav-links {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .nav-links a,
  .nav-links span {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .logout-btn,
  .admin-btn,
  .pro-btn {
    padding: 8px 12px;
    border-radius: 999px;
  }
}

/* Login / Register mobil */
@media (max-width: 920px) {
  .auth-page {
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: contents;
  }

  .auth-brand {
    order: 1;
    align-items: center;
    padding: 28px 18px 0;
  }

  .auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 24px;
  }

  .auth-brand h1 {
    font-size: 28px;
  }

  .auth-brand p {
    font-size: 13px;
  }

  .auth-hero {
    order: 3;
    margin-top: 32px;
    padding: 0 18px 28px;
  }

  .auth-hero h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .auth-hero p {
    font-size: 15px;
    line-height: 1.7;
  }

  .auth-feature-list {
    margin-top: 22px;
  }

  .auth-right {
    order: 2;
    padding: 18px;
  }

  .auth-card {
    max-width: none;
    padding: 24px;
    border-radius: 22px;
  }

  .auth-card-head h2 {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .auth-left {
    padding: 22px 14px 0;
  }

  .auth-right {
    padding: 14px;
  }

  .auth-hero h2 {
    font-size: 30px;
  }

  .auth-card {
    padding: 20px;
  }

  .auth-form input,
  .auth-form button,
  .google-login-btn {
    min-height: 46px;
    font-size: 14px;
  }
}

/* Dashboard mobil */
@media (max-width: 1000px) {
  .dashboard-grid,
  .dashboard-layout,
  .home-grid,
  .main-grid {
    grid-template-columns: 1fr !important;
  }

  .dashboard-page,
  .home-page {
    padding: 18px 14px 50px;
  }

  .dashboard-hero,
  .home-hero {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .dashboard-hero h1,
  .home-hero h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  .dashboard-hero p,
  .home-hero p {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* Community / Forum mobil */
@media (max-width: 1100px) {
  .community-layout {
    grid-template-columns: 1fr !important;
  }

  .community-page {
    padding: 18px 14px 50px;
  }

  .community-hero {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .community-hero h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  .community-sidebar,
  .community-right {
    order: 2;
  }

  .community-feed {
    order: 1;
  }

  .side-card,
  .create-forum-post,
  .forum-post-card {
    border-radius: 18px;
  }

  .create-forum-post input,
  .create-forum-post select,
  .create-forum-post textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .forum-post-top {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .forum-post-footer,
  .forum-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .forum-actions button {
    flex: 1 1 auto;
  }
}

/* Post detay mobil */
@media (max-width: 900px) {
  .post-detail-page {
    padding: 18px 14px 50px;
  }

  .post-detail-layout {
    grid-template-columns: 1fr !important;
  }

  .post-detail-card,
  .comments-section {
    border-radius: 18px;
  }

  .post-detail-card h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .comment-form textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .comment-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Profil sayfaları mobil */
@media (max-width: 1000px) {
  .profile-page {
    padding: 18px 14px 50px;
  }

  .profile-layout {
    grid-template-columns: 1fr !important;
  }

  .profile-hero-card {
    border-radius: 20px;
    overflow: hidden;
  }

  .profile-hero-cover {
    height: 150px;
  }

  .profile-hero-body {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 18px 22px;
  }

  .profile-big-avatar {
    width: 110px;
    height: 110px;
    margin-top: -55px;
    font-size: 42px;
  }

  .profile-main-info h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .profile-badges {
    flex-wrap: wrap;
  }

  .profile-action-row {
    flex-wrap: wrap;
    width: 100%;
  }

  .profile-action-row a,
  .profile-action-row button {
    flex: 1 1 auto;
    text-align: center;
  }

  .profile-info-card,
  .profile-post-card {
    border-radius: 18px;
  }

  .profile-info-row {
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .profile-hero-cover {
    height: 120px;
  }

  .profile-big-avatar {
    width: 92px;
    height: 92px;
    margin-top: -46px;
    font-size: 36px;
  }

  .profile-main-info h1 {
    font-size: 24px;
  }

  .profile-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .profile-section-head a,
  .profile-section-head button {
    width: 100%;
    text-align: center;
  }
}

/* Profil düzenleme mobil */
@media (max-width: 760px) {
  .edit-photo-row {
    grid-template-columns: 1fr !important;
  }

  .image-upload-grid {
    grid-template-columns: 1fr !important;
  }

  .edit-banner-preview {
    height: 150px;
  }

  .edit-photo-preview {
    width: 112px;
    height: 112px;
    font-size: 42px;
  }

  .profile-edit-page,
  .edit-profile-page {
    padding: 18px 14px 50px;
  }
}

/* Arkadaşlar mobil */
@media (max-width: 760px) {
  .friends-page {
    padding: 18px 14px 50px;
  }

  .friends-hero {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .friends-hero h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  .friend-user-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .friend-user-main {
    width: 100%;
  }

  .friend-actions {
    width: 100%;
  }

  .friend-actions button {
    flex: 1 1 auto;
  }
}

/* Mesajlar mobil */
@media (max-width: 900px) {
  .messages-page {
    padding: 18px 14px 50px;
  }

  .messages-layout {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .conversation-list-card,
  .message-panel {
    border-radius: 18px;
  }

  .conversation-list-card {
    max-height: 340px;
    overflow-y: auto;
  }

  .message-empty {
    min-height: 280px;
  }

  .message-target-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .message-list {
    height: 420px;
  }

  .message-form {
    grid-template-columns: 1fr !important;
  }

  .message-form button {
    width: 100%;
  }

  .message-bubble {
    max-width: 86%;
  }
}

@media (max-width: 520px) {
  .message-list {
    height: 360px;
    padding: 14px;
  }

  .message-bubble {
    max-width: 92%;
    font-size: 14px;
  }

  .conversation-item {
    padding: 12px 14px;
  }
}

/* Admin / Pro Admin mobil */
@media (max-width: 900px) {
  .admin-page,
  .pro-admin-page {
    padding: 18px 14px 50px;
  }

  .admin-layout,
  .pro-admin-layout {
    grid-template-columns: 1fr !important;
  }

  .admin-card,
  .pro-admin-card,
  .table-card {
    border-radius: 18px;
    overflow-x: auto;
  }

  table {
    min-width: 720px;
  }
}

/* Form genel mobil */
@media (max-width: 600px) {
  input,
  select,
  textarea,
  button {
    font-size: 15px;
  }

  textarea {
    min-height: 120px;
  }

  button,
  .primary-link-btn,
  .secondary-link-btn {
    min-height: 42px;
  }
}

/* Küçük ekranlarda yatay taşma önleme */
@media (max-width: 480px) {
  .profile-page,
  .community-page,
  .post-detail-page,
  .friends-page,
  .messages-page,
  .dashboard-page,
  .home-page,
  .admin-page,
  .pro-admin-page {
    width: 100%;
    box-sizing: border-box;
  }

  .side-card,
  .profile-info-card,
  .profile-post-card,
  .forum-post-card,
  .post-detail-card,
  .comments-section,
  .friends-card,
  .conversation-list-card,
  .message-panel {
    width: 100%;
    box-sizing: border-box;
  }
}
/* MOBİLDE PC GÖRÜNÜMÜNÜ ZORLA KIR */
@media (max-width: 768px) {
  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  main,
  section,
  aside,
  article,
  div {
    max-width: 100%;
    box-sizing: border-box;
  }

  .auth-page,
  .community-layout,
  .profile-layout,
  .messages-layout,
  .dashboard-grid,
  .dashboard-layout,
  .admin-layout,
  .pro-admin-layout,
  .post-detail-layout,
  .image-upload-grid,
  .edit-photo-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .auth-page {
    min-height: 100vh;
  }

  .auth-left,
  .auth-right,
  .community-page,
  .profile-page,
  .post-detail-page,
  .friends-page,
  .messages-page,
  .dashboard-page,
  .admin-page,
  .pro-admin-page {
    width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box;
  }

  .navbar {
    width: 100%;
    display: block !important;
    padding: 12px 14px !important;
    box-sizing: border-box;
  }

  .navbar .logo,
  .logo {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 20px !important;
  }

  .nav-links {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
  }

  .nav-links a,
  .nav-links span {
    flex: 0 0 auto;
    font-size: 13px !important;
  }

  .auth-left {
    min-height: auto;
  }

  .auth-hero {
    margin-top: 28px !important;
  }

  .auth-hero h2,
  .community-hero h1,
  .friends-hero h1,
  .dashboard-hero h1,
  .home-hero h1 {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }

  .auth-hero p,
  .community-hero p,
  .friends-hero p,
  .dashboard-hero p,
  .home-hero p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .auth-card {
    width: 100% !important;
    max-width: none !important;
    padding: 22px !important;
    border-radius: 22px !important;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
    box-sizing: border-box;
  }

  .auth-form input,
  .auth-form button,
  .google-login-btn {
    width: 100% !important;
  }

  .community-sidebar,
  .community-right,
  .community-feed,
  .profile-left,
  .profile-main {
    width: 100% !important;
  }

  .forum-post-top,
  .forum-post-footer,
  .forum-actions,
  .profile-section-head,
  .friend-user-card,
  .message-target-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .forum-actions button,
  .friend-actions button,
  .profile-action-row button,
  .profile-action-row a {
    width: 100%;
  }

  .profile-hero-cover {
    height: 120px !important;
  }

  .profile-hero-body {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 16px 20px !important;
  }

  .profile-big-avatar {
    width: 92px !important;
    height: 92px !important;
    margin-top: -46px !important;
  }

  .profile-main-info h1 {
    font-size: 24px !important;
  }

  .message-list {
    height: 360px !important;
  }

  .message-form {
    grid-template-columns: 1fr !important;
  }

  .message-bubble {
    max-width: 92% !important;
  }

  table {
    min-width: 700px;
  }

  .table-card,
  .admin-card,
  .pro-admin-card {
    overflow-x: auto;
  }
}
/* =========================================================
   PRO ADMIN PC GÖRÜNÜM DÜZELTME
   Bu blok mobil kuralların PC'de taşmasını engeller.
   ========================================================= */

@media (min-width: 901px) {
  .pro-admin-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 60px;
  }

  .pro-admin-hero {
    background:
      radial-gradient(circle at top left, rgba(10, 102, 194, 0.18), transparent 34%),
      linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 34px;
    margin-bottom: 24px;
  }

  .pro-admin-hero h1 {
    margin: 10px 0;
    font-size: 36px;
    line-height: 1.15;
  }

  .pro-admin-hero p {
    max-width: 760px;
    color: #475569;
    line-height: 1.7;
  }

  .pro-admin-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  .pro-admin-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 22px;
  }

  .pro-admin-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    gap: 16px;
    margin-bottom: 18px;
  }

  .pro-admin-head h2 {
    margin: 0 0 6px;
  }

  .pro-admin-head p {
    margin: 0;
    color: var(--muted);
  }

  .table-card {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e1e7ef;
    background: #ffffff;
  }

  .table-card table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
  }

  .table-card th,
  .table-card td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    white-space: nowrap;
  }

  .table-card th {
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
  }

  .table-card td {
    color: #1f2937;
    font-size: 14px;
  }

  .table-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .table-user-cell strong {
    display: block;
    color: #111827;
  }

  .table-user-cell small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
  }

  .table-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8f3ff;
    color: #0a66c2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex: 0 0 auto;
  }

  .table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .table-card select {
    min-width: 120px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 0 10px;
    background: #ffffff;
  }
}
/* KVKK / LEGAL */
.kvkk-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  padding: 12px;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.kvkk-check input {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #0a66c2;
}

.kvkk-check a,
.kvkk-login-note a {
  color: #0a66c2;
  font-weight: 800;
  text-decoration: none;
}

.kvkk-check a:hover,
.kvkk-login-note a:hover {
  text-decoration: underline;
}

.kvkk-login-note {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.16), transparent 32%),
    linear-gradient(135deg, #eef6ff, #ffffff);
  padding: 36px 18px;
  box-sizing: border-box;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  padding: 34px;
}

.legal-card h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.legal-card h2 {
  margin: 28px 0 10px;
  color: #0f172a;
  font-size: 20px;
}

.legal-card p,
.legal-card li {
  color: #475569;
  line-height: 1.75;
}

.legal-muted {
  color: #64748b !important;
  font-size: 14px;
}

.legal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.legal-actions a {
  background: #0a66c2;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.legal-actions a:hover {
  background: #004182;
}

@media (max-width: 600px) {
  .legal-card {
    padding: 22px;
    border-radius: 18px;
  }

  .legal-card h1 {
    font-size: 26px;
  }

  .legal-actions a {
    width: 100%;
    text-align: center;
  }
}
/* =========================================================
   GLOBAL NAVBAR DÜZENİ
   ========================================================= */

.navbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  text-decoration: none;
  flex: 0 0 auto;
}

.nav-logo span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a66c2, #003f7d);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.nav-logo strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-menu a {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-menu a:hover {
  background: #eef6ff;
  color: #0a66c2;
}

.nav-menu a.active {
  background: #0a66c2;
  color: #ffffff;
}

.nav-user {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a !important;
}

.logout-link {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.logout-link:hover {
  background: #fecaca !important;
}

.logout-form {
  margin: 0;
}

button.logout-link,
button.logout-btn,
.auth-link-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.auth-link-button {
  padding: 0;
  color: #2563eb;
  background: transparent;
  text-decoration: underline;
}

.admin-link {
  background: #fef3c7;
  color: #92400e !important;
}

.admin-link.active {
  background: #f59e0b !important;
  color: #ffffff !important;
}

.pro-link {
  background: #ede9fe;
  color: #6d28d9 !important;
}

.pro-link.active {
  background: #7c3aed !important;
  color: #ffffff !important;
}

.mobile-menu-btn {
  display: none;
  border: none;
  background: #0a66c2;
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
  cursor: pointer;
}

/* Mobil Navbar */
@media (max-width: 900px) {
  .nav-inner {
    padding: 10px 14px;
    flex-wrap: wrap;
  }

  .nav-logo strong {
    font-size: 18px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }
}

/* PC'de eski nav-links kalıntılarını bastır */
.navbar .nav-links {
  display: none !important;
}
/* ŞİFREMİ UNUTTUM */
.auth-row-link {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.auth-row-link a {
  color: #0a66c2;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.auth-row-link a:hover {
  text-decoration: underline;
}
/* ACCOUNT SETTINGS / DATA RIGHTS */
.account-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.account-hero {
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 24px;
}

.account-hero h1 {
  margin: 10px 0;
  font-size: 36px;
  line-height: 1.15;
}

.account-hero p {
  max-width: 760px;
  color: #475569;
  line-height: 1.7;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.account-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.account-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
}

.account-card p {
  color: #475569;
  line-height: 1.7;
}

.account-card textarea {
  width: 100%;
  min-height: 110px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  resize: vertical;
  outline: none;
  margin: 10px 0 14px;
}

.account-card textarea:focus {
  border-color: #0a66c2;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.12);
}

.account-card button,
.account-main-btn {
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: #0a66c2;
  color: #ffffff;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-card button:hover,
.account-main-btn:hover {
  background: #004182;
}

.account-card .danger {
  background: #dc2626;
}

.account-card .danger:hover {
  background: #991b1b;
}

.account-two-factor-status {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
}

.account-two-factor-status[data-enabled="true"] {
  border-color: color-mix(in srgb, var(--success-text) 30%, var(--border));
  background: var(--success-surface);
}

.account-two-factor-status strong {
  color: var(--text-strong);
}

.account-two-factor-status span {
  color: var(--muted);
  font-size: 13px;
}

.account-two-factor-disable:not([hidden]) {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.account-two-factor-disable input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--card);
  color: var(--text);
}

.account-two-factor-disable label {
  display: grid;
  gap: 8px;
}

.account-two-factor-disable .danger {
  justify-self: start;
}

.account-card #twoFactorSetupButton[hidden],
.account-two-factor-disable[hidden],
.account-two-factor-disable label[hidden] {
  display: none !important;
}

.fx-account-state > span:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.secondary-danger {
  margin-left: 8px;
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.secondary-danger:hover {
  background: #fecaca !important;
}

.danger-zone {
  border-color: #fecaca;
}

.account-info-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.account-info-row strong {
  color: #0f172a;
}

.account-info-row span {
  color: #475569;
  text-align: right;
}

.legal-links-card {
  margin-top: 22px;
}

.legal-link-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-link-grid a {
  background: #eef6ff;
  color: #0a66c2;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
}

.legal-link-grid a:hover {
  background: #dbeafe;
}

@media (max-width: 900px) {
  .account-page {
    padding: 18px 14px 50px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-hero {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .account-hero h1 {
    font-size: 30px;
  }

  .account-info-row {
    flex-direction: column;
    gap: 4px;
  }

  .account-info-row span {
    text-align: left;
  }

  .secondary-danger {
    margin-left: 0;
    margin-top: 8px;
  }
}
/* ERROR PAGES */
.error-page {
  min-height: calc(100vh - 80px);
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.16), transparent 34%),
    linear-gradient(135deg, #eef6ff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
}

.error-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  padding: 36px;
  text-align: center;
}

.error-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6ff;
  color: #0a66c2;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 16px;
}

.error-card h1 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.error-card p {
  margin: 0 0 26px;
  color: #475569;
  line-height: 1.7;
}

.error-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: #0a66c2;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.error-card a:hover {
  background: #004182;
}

@media (max-width: 600px) {
  .error-card {
    padding: 26px 18px;
    border-radius: 20px;
  }

  .error-card h1 {
    font-size: 26px;
  }
}
/* =========================================================
   CLEAN MESSAGES PAGE
   ========================================================= */

.msg-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 50px;
}

.msg-top {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.msg-top h1 {
  margin: 0 0 4px;
  font-size: 28px;
  color: #0f172a;
}

.msg-top p {
  margin: 0;
  color: #64748b;
}

.msg-top button {
  border: none;
  background: #0a66c2;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.msg-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  min-height: 620px;
}

.msg-sidebar,
.msg-chat {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.msg-sidebar {
  min-height: 620px;
}

.msg-sidebar-head {
  padding: 15px 16px;
  border-bottom: 1px solid #eef2f7;
}

.msg-sidebar-head h2 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.msg-conversation-list {
  padding: 10px;
  max-height: 560px;
  overflow-y: auto;
}

.msg-sidebar-head input {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 11px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
}

.msg-load-older {
  display: block;
  margin: 0 auto 14px;
  padding: 8px 14px;
  border: 1px solid #d7e1ee;
  border-radius: 999px;
  background: #ffffff;
  color: #245fc2;
  font-weight: 800;
  cursor: pointer;
}

.msg-attachment-image {
  display: block;
  max-width: min(100%, 360px);
  max-height: 320px;
  margin-top: 8px;
  border-radius: 12px;
  object-fit: cover;
}

.msg-attachment-link {
  display: inline-flex;
  margin-top: 8px;
  color: #245fc2;
  font-weight: 800;
}

.msg-conversation {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 6px;
}

.msg-conversation:hover,
.msg-conversation.active {
  background: #eef6ff;
}

.msg-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0a66c2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
}

.msg-avatar.small {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-conversation-text {
  min-width: 0;
  flex: 1;
}

.msg-conversation-text strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
}

.msg-conversation-text span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.msg-conversation-text p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-chat {
  min-height: 620px;
}

.msg-no-chat {
  height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  padding: 24px;
}

.msg-no-chat h2 {
  margin: 0 0 8px;
  color: #0f172a;
}

.msg-chat-box {
  height: 620px;
  display: flex;
  flex-direction: column;
}

.msg-chat-head {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.msg-chat-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.msg-chat-user h2 {
  margin: 0 0 3px;
  font-size: 18px;
  color: #0f172a;
}

.msg-chat-user a {
  color: #0a66c2;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.msg-list {
  flex: 1;
  background: #f8fafc;
  padding: 16px;
  overflow-y: auto;
}

.msg-empty {
  color: #64748b;
  text-align: center;
  padding: 28px 14px;
  line-height: 1.6;
}

.msg-row {
  display: flex;
  margin-bottom: 10px;
}

.msg-row.mine {
  justify-content: flex-end;
}

.msg-row.other {
  justify-content: flex-start;
}

.msg-bubble {
  max-width: 72%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 9px 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.msg-row.mine .msg-bubble {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
}

.msg-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  font-size: 14px;
}

.msg-bubble span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
}

.msg-row.mine .msg-bubble span {
  color: rgba(255, 255, 255, 0.75);
}

.msg-form {
  border-top: 1px solid #eef2f7;
  padding: 12px 14px 14px;
  background: #ffffff;
  flex: 0 0 auto;
}

.msg-composer {
  overflow: hidden;
  border: 1px solid #d6e0ed;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.msg-composer:focus-within {
  border-color: #75a7e5;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1), 0 10px 28px rgba(15, 23, 42, 0.08);
}

.msg-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  max-height: 128px;
  margin: 0;
  padding: 14px 16px 8px;
  resize: none;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.5;
  font-family: inherit;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
}

.msg-form textarea:focus {
  border: 0;
  box-shadow: none;
}

.msg-form textarea::placeholder,
.msg-attachment-panel input::placeholder {
  color: #94a3b8;
}

.msg-attachment-panel {
  display: grid;
  grid-template-columns: 20px minmax(150px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 2px 10px 8px;
  padding: 8px 10px;
  border: 1px solid #dbe7f6;
  border-radius: 12px;
  background: #f4f8fd;
}

.msg-attachment-panel > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #4274bd;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.msg-attachment-panel input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.msg-file-picker {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  color: #245fc2;
}

.msg-file-picker strong {
  font-size: 13px;
}

.msg-file-picker span,
.msg-file-name {
  color: #64748b;
  font-size: 11px;
}

.msg-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-form .msg-attachment-clear {
  min-width: 0;
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.msg-form .msg-attachment-clear:hover {
  background: #e7eef8;
  color: #b42318;
  box-shadow: none;
  transform: none;
}

.msg-composer-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 8px;
  border-top: 1px solid #f1f5f9;
}

.msg-form .msg-attachment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.msg-form .msg-attachment-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.msg-form .msg-attachment-toggle:hover,
.msg-form .msg-attachment-toggle[aria-expanded="true"] {
  background: #edf5ff;
  color: #0a66c2;
  box-shadow: none;
  transform: none;
}

.msg-compose-hints {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
}

.msg-compose-hints strong {
  color: #64748b;
}

.msg-form .msg-send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #3973cf, #245fc2);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(36, 95, 194, 0.2);
  cursor: pointer;
}

.msg-form .msg-send-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.msg-form .msg-send-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2867c8, #164fae);
  box-shadow: 0 10px 20px rgba(36, 95, 194, 0.26);
  transform: translateY(-1px);
}

.msg-form .msg-send-button:disabled {
  background: #dce4ef;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.msg-form .msg-send-button.loading {
  min-width: 132px;
}

.msg-top button:hover {
  background: #004182;
}

.hidden {
  display: none !important;
}

@media (max-width: 850px) {
  .msg-page {
    padding: 14px 12px 40px;
  }

  .msg-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .msg-top button {
    width: 100%;
  }

  .msg-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .msg-sidebar {
    min-height: auto;
  }

  .msg-conversation-list {
    max-height: 260px;
  }

  .msg-chat,
  .msg-chat-box,
  .msg-no-chat {
    min-height: auto;
  }

  .msg-chat-box {
    height: 560px;
  }

  .msg-no-chat {
    height: 280px;
  }

  .msg-bubble {
    max-width: 86%;
  }

  .msg-form {
    padding: 10px;
  }

  .msg-composer-footer {
    gap: 6px;
  }

  .msg-compose-hints span:first-child {
    display: none;
  }

  .msg-form .msg-send-button {
    min-height: 42px;
  }
}

@media (max-width: 520px) {
  .msg-form {
    padding: 8px;
  }

  .msg-composer {
    border-radius: 15px;
  }

  .msg-form textarea {
    min-height: 58px;
    padding: 13px 13px 7px;
  }

  .msg-composer-footer {
    padding: 6px;
  }

  .msg-form .msg-attachment-toggle {
    width: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }

  .msg-attachment-toggle span,
  .msg-compose-hints {
    display: none;
  }

  .msg-form .msg-send-button {
    min-width: 96px;
    min-height: 40px;
    margin-left: auto;
    padding: 0 13px;
  }

  .msg-attachment-panel {
    grid-template-columns: 18px minmax(95px, auto) minmax(0, 1fr) auto;
    margin-right: 7px;
    margin-left: 7px;
  }
}
/* =========================================================
   COMMUNITY / FORUM FIX
   ========================================================= */

.community-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.community-hero {
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid #dbe3ee;
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.community-hero h1 {
  margin: 10px 0;
  color: #0f172a;
  font-size: 38px;
}

.community-hero p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.community-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}

.community-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card,
.forum-card,
.forum-toolbar,
.post-card {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 20px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 15px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: 0.15s ease;
}

.category-btn:hover,
.category-btn.active {
  background: #eef6ff;
  border-color: #bfdbfe;
}

.category-btn strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 0;
}

.category-btn span {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.forum-main {
  min-width: 0;
}

.forum-card {
  padding: 20px;
  margin-bottom: 18px;
}

.forum-card-head,
.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.forum-toolbar {
  padding: 18px 20px;
  margin-bottom: 18px;
}

.forum-toolbar h2,
.forum-card-head h2 {
  margin: 0;
  color: #0f172a;
}

.forum-toolbar p {
  margin: 4px 0 0;
  color: #64748b;
}

.primary-btn,
.ghost-btn,
.post-form button,
.mini-form button {
  border: none;
  border-radius: 13px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn,
.post-form button,
.mini-form button {
  background: #0a66c2;
  color: #ffffff;
}

.primary-btn:hover,
.post-form button:hover,
.mini-form button:hover {
  background: #004182;
}

.ghost-btn {
  background: #eef6ff;
  color: #0a66c2;
}

.ghost-btn:hover {
  background: #dbeafe;
}

.post-form,
.mini-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-form label {
  font-weight: 800;
  color: #0f172a;
  font-size: 14px;
}

.post-form input,
.post-form select,
.post-form textarea,
.mini-form input,
.mini-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  outline: none;
  font-family: inherit;
}

.post-form textarea {
  min-height: 180px;
  resize: vertical;
}

.mini-form textarea {
  min-height: 90px;
  resize: vertical;
}

.post-form input:focus,
.post-form select:focus,
.post-form textarea:focus,
.mini-form input:focus,
.mini-form textarea:focus {
  border-color: #0a66c2;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.12);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-card {
  padding: 18px;
  cursor: pointer;
  transition: 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
}

.post-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.post-meta span,
.pin-badge,
.announcement-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0a66c2;
  font-size: 12px;
  font-weight: 900;
}

.pin-badge {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.announcement-badge {
  background: #ede9fe !important;
  color: #6d28d9 !important;
}

.post-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
}

.post-card p {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.6;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid #eef2f7;
  padding-top: 14px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author img,
.post-author span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0a66c2;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  object-fit: cover;
}

.post-author strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.post-author small,
.post-stats {
  color: #64748b;
  font-size: 12px;
}

.post-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.forum-empty {
  color: #64748b;
  text-align: center;
  padding: 24px 12px;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .community-page {
    padding: 16px 12px 44px;
  }

  .community-hero {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
    padding: 22px;
  }

  .community-hero h1 {
    font-size: 30px;
  }

  .community-hero .primary-btn {
    width: 100%;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .forum-card-head,
  .forum-toolbar,
  .post-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .ghost-btn {
    width: 100%;
  }

  .post-stats {
    justify-content: flex-start;
  }
}

@media (min-width: 851px) {
  .msg-shell,
  .msg-sidebar,
  .msg-chat {
    min-height: min(560px, calc(100vh - 170px));
  }

  .msg-chat-box,
  .msg-no-chat {
    height: min(560px, calc(100vh - 170px));
  }
}
/* =========================================================
   PROFILE / ADMIN FIX
   ========================================================= */

.fx-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.fx-card {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  padding: 22px;
  margin-bottom: 22px;
}

.fx-card h1,
.fx-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
}

.fx-card p {
  color: #475569;
  line-height: 1.7;
}

.fx-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: start;
}

.fx-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fx-profile-hero {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 22px;
}

.fx-banner {
  height: 180px;
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.22), transparent 34%),
    linear-gradient(135deg, #0a66c2, #003f7d);
  background-size: cover;
  background-position: center;
}

.fx-profile-main {
  padding: 0 24px 24px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: -54px;
}

.fx-avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #0a66c2;
  color: #ffffff;
  border: 5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 900;
  overflow: hidden;
  flex: 0 0 auto;
}

.fx-avatar img,
.fx-small-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-profile-info {
  padding-top: 62px;
  min-width: 0;
}

.fx-profile-info h1 {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
}

.fx-profile-info p {
  margin: 4px 0 14px;
  color: #64748b;
}

.fx-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fx-primary-link,
.fx-secondary-link,
.fx-primary-btn,
.fx-secondary-btn,
.fx-danger-btn,
.fx-form button {
  min-height: 42px;
  border: none;
  border-radius: 13px;
  padding: 0 15px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fx-primary-link,
.fx-primary-btn,
.fx-form button {
  background: #0a66c2;
  color: #ffffff;
}

.fx-primary-link:hover,
.fx-primary-btn:hover,
.fx-form button:hover {
  background: #004182;
}

.fx-secondary-link,
.fx-secondary-btn {
  background: #eef6ff;
  color: #0a66c2;
}

.fx-secondary-link:hover,
.fx-secondary-btn:hover {
  background: #dbeafe;
}

.fx-danger-btn {
  background: #fee2e2;
  color: #b91c1c;
}

.fx-danger-btn:hover {
  background: #fecaca;
}

.fx-info-list {
  display: flex;
  flex-direction: column;
}

.fx-info-list div {
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.fx-info-list strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.fx-info-list span {
  color: #475569;
  word-break: break-word;
}

.fx-muted {
  color: #64748b !important;
}

.fx-empty {
  color: #64748b;
  text-align: center;
  padding: 24px 12px;
  line-height: 1.6;
}

.fx-post-list,
.fx-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fx-mini-post,
.fx-list-item {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
}

.fx-mini-post {
  cursor: pointer;
  transition: 0.15s ease;
}

.fx-mini-post:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.fx-mini-post span {
  display: inline-flex;
  background: #eef6ff;
  color: #0a66c2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.fx-mini-post h3 {
  margin: 0 0 6px;
  color: #0f172a;
}

.fx-mini-post p {
  margin: 0 0 8px;
  color: #475569;
}

.fx-mini-post small {
  color: #64748b;
}

.fx-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-form label {
  font-weight: 900;
  color: #0f172a;
  font-size: 14px;
}

.fx-form input,
.fx-form textarea,
.fx-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
  outline: none;
}

.fx-form textarea {
  min-height: 120px;
  resize: vertical;
}

.fx-form input:focus,
.fx-form textarea:focus,
.fx-form select:focus {
  border-color: #0a66c2;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.12);
}

.fx-upload-box {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}

.fx-upload-box h3 {
  margin: 0 0 12px;
  color: #0f172a;
}

.fx-avatar-preview {
  margin-bottom: 14px;
}

.fx-banner-preview {
  height: 120px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(10, 102, 194, 0.22), transparent 34%),
    linear-gradient(135deg, #0a66c2, #003f7d);
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
}

.fx-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fx-list-item strong {
  display: block;
  color: #0f172a;
}

.fx-list-item span {
  display: block;
  color: #475569;
  margin-top: 4px;
}

.fx-list-item small {
  display: block;
  color: #64748b;
  margin-top: 4px;
}

.fx-table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.fx-mobile-table-hint {
  display: none;
}

.fx-list-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 750;
}

.fx-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.fx-table th,
.fx-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: middle;
}

.fx-table th {
  background: rgba(248, 250, 252, 0.96);
  color: #0f172a;
  box-shadow: inset 0 -1px 0 #e2e8f0;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fx-table td {
  color: #334155;
  background: #ffffff;
  font-size: 13px;
  transition: background 0.18s ease;
}

.fx-table tbody tr:hover td {
  background: #f9fbfe;
}

.fx-table th:nth-child(1) {
  width: 23%;
}

.fx-table th:nth-child(2) {
  width: 12%;
}

.fx-table th:nth-child(3) {
  width: 26%;
}

.fx-table th:nth-child(4) {
  width: 24%;
}

.fx-table th:nth-child(5) {
  width: 15%;
}

.fx-table select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 10px;
  color: #27364a;
  background: #ffffff;
  font: inherit;
  font-weight: 750;
}

.fx-content-roles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 240px;
}

.fx-content-roles label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  column-gap: 12px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  background: #f8fafc;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.fx-content-roles label:hover {
  border-color: #bfdbfe;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.08);
}

.fx-content-role-copy {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.fx-content-role-copy > i {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #2563eb;
  background: #eaf3ff;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.fx-content-role-copy > span {
  min-width: 0;
}

.fx-content-role-copy strong,
.fx-content-role-copy small {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.fx-content-role-copy strong {
  color: #27364a;
  font-size: 11px;
  line-height: 1.2;
}

.fx-content-role-copy small {
  margin-top: 2px;
  color: #8a97a8;
  font-size: 9px;
  line-height: 1.2;
}

.fx-content-roles input {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  justify-self: end;
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #dbe3ee;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.fx-content-roles input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  content: "";
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
  transition: transform 0.18s ease;
}

.fx-content-roles input:checked {
  border-color: #315fdd;
  background: linear-gradient(135deg, #2563eb, #4f6fe5);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.24);
}

.fx-content-roles input:checked::after {
  transform: translateX(18px);
}

.fx-content-roles input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.fx-content-roles label:has(input:checked) {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background:
    linear-gradient(135deg, #f3f8ff, #eaf3ff);
}

.fx-content-roles label:has(input:checked)
  .fx-content-role-copy > i {
  color: #ffffff;
  background: #2563eb;
}

.fx-content-roles input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.fx-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fx-user-cell strong {
  display: block;
  color: #0f172a;
}

.fx-user-identity {
  min-width: 0;
}

.fx-user-identity strong,
.fx-user-identity span,
.fx-user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-user-identity small {
  display: block;
  max-width: 235px;
  margin-top: 4px;
  color: #8a97a8;
  font-size: 10px;
}

.fx-account-state {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 215px;
}

.fx-account-state > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #e7edf4;
  border-radius: 10px;
  background: #f8fafc;
}

.fx-account-state small {
  color: #94a3b8;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fx-account-state strong {
  overflow: hidden;
  color: #475569;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-account-state .fx-state-active {
  color: #047857;
}

.fx-account-state .fx-state-danger {
  color: #b91c1c;
}

.fx-request-stack {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.fx-user-management-actions {
  display: grid;
  gap: 8px;
  min-width: 130px;
}

.fx-user-delete-btn {
  min-height: 34px;
  width: 100%;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 11px;
}

.fx-user-delete-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.fx-protected-account {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.fx-owner-badge {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  color: #92400e !important;
  background: #fffbeb;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fx-user-table-card {
  padding-bottom: 14px;
}

.fx-user-table-card > .fx-section-head {
  align-items: flex-end;
  margin-bottom: 18px;
}

.fx-user-table-card > .fx-section-head h2 {
  margin-bottom: 6px;
}

.fx-user-table-card > .fx-section-head p {
  margin: 0;
}

.fx-user-table-card .fx-table-wrap {
  margin-top: 0;
}

.fx-user-table-card .fx-table {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .fx-mobile-table-hint {
    display: block;
    margin: 0 0 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
  }
}

@media (max-width: 700px) {
  .fx-mobile-table-hint {
    display: none;
  }

  .fx-table-wrap {
    overflow: visible;
  }

  .fx-table,
  .fx-table tbody,
  .fx-table tr,
  .fx-table td {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .fx-table thead {
    display: none;
  }

  .fx-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 15px;
    background: #ffffff;
  }

  .fx-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 2px;
    border-bottom: 1px solid #eef2f7;
    word-break: break-word;
  }

  .fx-table td:last-child {
    border-bottom: 0;
  }

  .fx-table td::before {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
  }

  .fx-table td:nth-child(1)::before {
    content: "Kullanıcı";
  }

  .fx-table td:nth-child(2)::before {
    content: "Sistem Rolü";
  }

  .fx-table td:nth-child(3)::before {
    content: "İçerik Yetkileri";
  }

  .fx-table td:nth-child(4)::before {
    content: "Hesap Durumu";
  }

  .fx-table td:nth-child(5)::before {
    content: "İşlemler";
  }

  .fx-table td[colspan] {
    display: block;
  }

  .fx-table td[colspan]::before {
    content: none;
  }

  .fx-table select {
    width: 100%;
  }

  .fx-content-roles {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .fx-account-state {
    min-width: 0;
  }

  .fx-user-management-actions {
    min-width: 0;
  }
}

.fx-user-cell span {
  color: #64748b;
  font-size: 12px;
}

.fx-small-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0a66c2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  overflow: hidden;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .fx-page {
    padding: 16px 12px 44px;
  }

  .fx-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-grid > * {
    width: 100%;
    min-width: 0;
  }

  .fx-section-head,
  .fx-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .fx-profile-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .fx-profile-info {
    padding-top: 0;
  }

  .fx-profile-info h1 {
    font-size: 26px;
  }

  .fx-avatar {
    width: 104px;
    height: 104px;
  }

  .fx-primary-link,
  .fx-secondary-link,
  .fx-primary-btn,
  .fx-secondary-btn,
  .fx-danger-btn {
    width: 100%;
  }
}
/* =========================================================
   POST DETAIL FIX
   ========================================================= */

.post-detail-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 20px 70px;
}

.post-detail-card {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  padding: 24px;
  margin-bottom: 22px;
}

.post-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.post-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0a66c2;
  font-size: 12px;
  font-weight: 900;
}

.post-detail-date {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

.post-detail-card h1 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 32px;
  line-height: 1.25;
}

.post-detail-card h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 26px;
}

.post-detail-author,
.comment-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-detail-author {
  padding: 14px 0;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 18px;
}

.post-detail-author img,
.comment-user img,
.post-detail-avatar,
.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0a66c2;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  object-fit: cover;
  overflow: hidden;
}

.post-detail-author strong,
.comment-user strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.post-detail-author a,
.comment-user a,
.post-detail-author span,
.comment-user span {
  color: #64748b;
  font-size: 12px;
  text-decoration: none;
}

.post-detail-content {
  color: #334155;
  line-height: 1.8;
  font-size: 16px;
}

.post-detail-content p {
  margin: 0 0 12px;
}

.post-detail-actions {
  border-top: 1px solid #eef2f7;
  margin-top: 18px;
  padding-top: 18px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.comment-head small {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.comment-card p {
  margin: 0;
  color: #334155;
  line-height: 1.7;
}

.comment-form-box {
  border-top: 1px solid #eef2f7;
  margin-top: 22px;
  padding-top: 22px;
}

.comment-form-box h3 {
  margin: 0 0 12px;
  color: #0f172a;
}

.comment-form-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-form-box textarea {
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.comment-form-box textarea:focus {
  border-color: #0a66c2;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.12);
}

.comment-form-box button,
.danger-btn,
.comment-delete-btn {
  border: none;
  border-radius: 13px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.comment-form-box button {
  background: #0a66c2;
  color: #ffffff;
  align-self: flex-start;
}

.comment-form-box button:hover {
  background: #004182;
}

.danger-btn,
.comment-delete-btn {
  background: #fee2e2;
  color: #b91c1c;
}

.danger-btn:hover,
.comment-delete-btn:hover {
  background: #fecaca;
}

.comment-delete-btn {
  margin-top: 12px;
  min-height: 36px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .post-detail-page {
    padding: 18px 12px 50px;
  }

  .post-detail-card {
    padding: 18px;
    border-radius: 18px;
  }

  .post-detail-top,
  .comment-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-detail-card h1 {
    font-size: 26px;
  }

  .comment-form-box button,
  .danger-btn {
    width: 100%;
  }
}
/* =========================================================
   MAIN FIX PACK - PRO ADMIN / PROFILE HELPERS
   ========================================================= */

.fx-search {
  width: 320px;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  font-family: inherit;
}

.fx-search:focus {
  border-color: #0a66c2;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.12);
}

.fx-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  margin: 2px;
}

.fx-pill.blue {
  background: #eef6ff;
  color: #0a66c2;
}

.fx-pill.red {
  background: #fee2e2;
  color: #b91c1c;
}

.fx-list-item p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.fx-table td select {
  min-width: 110px;
}

@media (max-width: 900px) {
  .fx-search {
    width: 100%;
  }
}
/* =========================================================
   DASHBOARD
   ========================================================= */

.dash-page,
.mod-page,
.report-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 20px 70px;
}

.dash-hero,
.mod-head {
  background:
    radial-gradient(
      circle at top left,
      rgba(10, 102, 194, 0.22),
      transparent 38%
    ),
    linear-gradient(135deg, #ffffff, #f4f9ff);
  border: 1px solid #dbe3ee;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dash-hero-user {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dash-avatar,
.dash-user-avatar,
.mod-user-avatar {
  border-radius: 50%;
  background: #0a66c2;
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.dash-avatar {
  width: 76px;
  height: 76px;
  font-size: 30px;
}

.dash-avatar img,
.dash-user-avatar img,
.mod-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-label,
.mod-label,
.report-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef6ff;
  color: #0a66c2;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.dash-hero h1,
.mod-head h1,
.report-card h1 {
  color: #0f172a;
  margin: 8px 0;
}

.dash-hero p,
.mod-head p,
.report-card p {
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

.dash-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-primary-link,
.dash-secondary-link,
.mod-primary-btn {
  min-height: 42px;
  border: none;
  border-radius: 13px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-primary-link,
.mod-primary-btn {
  background: #0a66c2;
  color: #fff;
}

.dash-secondary-link {
  background: #eef6ff;
  color: #0a66c2;
}

.dash-stats,
.mod-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dash-stat-card,
.mod-stats article {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.dash-stat-card strong,
.mod-stats strong {
  display: block;
  color: #0a66c2;
  font-size: 28px;
  margin-bottom: 5px;
}

.dash-stat-card span,
.mod-stats span {
  color: #64748b;
  font-size: 13px;
}

.dash-grid,
.mod-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.dash-column {
  min-width: 0;
}

.dash-card,
.mod-card,
.report-card {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  padding: 20px;
  margin-bottom: 20px;
}

.dash-card-head,
.mod-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dash-card-head h2,
.mod-card-head h2 {
  color: #0f172a;
  margin: 0;
}

.dash-card-head p,
.mod-card-head p {
  color: #64748b;
  margin: 4px 0 0;
  font-size: 13px;
}

.dash-card-head a {
  color: #0a66c2;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.dash-post-list,
.dash-side-list,
.mod-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-post {
  border: 1px solid #e5e7eb;
  border-radius: 17px;
  padding: 16px;
  cursor: pointer;
  transition: 0.15s ease;
}

.dash-post:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.dash-post-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.dash-post-meta span {
  border-radius: 999px;
  background: #eef6ff;
  color: #0a66c2;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.dash-post-meta .dash-pin {
  background: #fef3c7;
  color: #92400e;
}

.dash-post-meta .dash-announcement {
  background: #ede9fe;
  color: #6d28d9;
}

.dash-post h3 {
  color: #0f172a;
  margin: 0 0 7px;
}

.dash-post p {
  color: #475569;
  line-height: 1.55;
  margin: 0 0 12px;
}

.dash-post footer {
  border-top: 1px solid #eef2f7;
  padding-top: 11px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}

.dash-side-item {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 15px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.dash-side-item:hover {
  background: #f8fafc;
}

.dash-side-item strong {
  display: block;
  color: #0f172a;
  margin-bottom: 5px;
}

.dash-side-item span {
  color: #64748b;
  font-size: 12px;
}

.dash-user-item {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 11px;
  text-decoration: none;
}

.dash-user-item:hover {
  background: #f8fafc;
}

.dash-user-avatar {
  width: 44px;
  height: 44px;
}

.dash-user-item strong,
.dash-user-item span,
.dash-user-item small {
  display: block;
}

.dash-user-item strong {
  color: #0f172a;
}

.dash-user-item span {
  color: #0a66c2;
  font-size: 12px;
}

.dash-user-item small {
  color: #64748b;
  margin-top: 3px;
}

.dash-module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dash-module-grid a {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  transition: 0.18s ease;
}

.dash-module-grid a:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.dash-module-grid a > span {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.dash-module-grid strong {
  color: #0f172a;
}

.dash-module-grid p {
  color: #64748b;
  line-height: 1.5;
  font-size: 13px;
  margin: 6px 0 0;
}

.dash-module-grid small {
  display: block;
  color: #0a66c2;
  font-size: 12px;
  font-weight: 800;
  margin-top: 10px;
}

body[data-content-page] {
  background:
    radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.1), transparent 26%),
    linear-gradient(180deg, #f8faff 0, #f4f7fb 52%, #eef3f8 100%);
}

.content-page {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 76px;
}

.content-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 46px;
  min-height: 410px;
  padding: 54px 58px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.76);
  border-radius: 30px;
  color: #0f172a;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92)),
    #ffffff;
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 #ffffff;
}

.content-hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  content: "";
  background: linear-gradient(180deg, #2563eb, #60a5fa);
}

.content-hero::after {
  position: absolute;
  right: -130px;
  bottom: -180px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 58px rgba(37, 99, 235, 0.035),
    0 0 0 116px rgba(37, 99, 235, 0.025);
}

.content-hero-copy {
  position: relative;
  z-index: 2;
}

.content-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-eyebrow > i {
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.content-hero h1 {
  max-width: 680px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.content-hero p {
  max-width: 650px;
  margin: 0;
  color: #526176;
  font-size: 17px;
  line-height: 1.75;
}

.content-hero-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 28px;
}

.content-primary-button,
.content-secondary-button,
.content-ghost-button {
  min-height: 46px;
  box-sizing: border-box;
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.content-primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0a66c2);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.content-primary-button:hover,
.content-ghost-button:hover {
  transform: translateY(-2px);
}

.content-secondary-button {
  color: #334155;
  background: #eef2f7;
}

.content-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #d7e0eb;
  color: #1e3a5f;
  background: rgba(255, 255, 255, 0.72);
}

.content-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.content-topic-row span {
  padding: 7px 11px;
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  color: #526176;
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.content-hero-art,
.content-module-visual {
  position: relative;
  z-index: 2;
  min-height: 300px;
}

.content-hero-art {
  display: grid;
  place-items: center;
}

.content-orbit {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.23);
  border-radius: 50%;
}

.content-orbit--outer {
  width: 274px;
  height: 274px;
  transform: rotate(-12deg);
}

.content-orbit--inner {
  width: 194px;
  height: 194px;
  transform: rotate(48deg);
}

.content-orbit i {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 5px solid #dbeafe;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 7px 20px rgba(37, 99, 235, 0.32);
}

.content-orbit--inner i {
  top: auto;
  right: 2%;
  bottom: 20%;
  left: auto;
  background: #7c3aed;
}

.content-atom-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 10px solid #e7efff;
  border-radius: 29px;
  color: #ffffff;
  background: linear-gradient(145deg, #1d4ed8, #60a5fa);
  box-shadow:
    0 22px 42px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-size: 42px;
  font-weight: 950;
  transform: rotate(-7deg);
}

.content-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 152px;
  padding: 13px 15px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 34px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
}

.content-float-card--top {
  top: 24px;
  right: -6px;
  display: grid;
  gap: 3px;
}

.content-float-card--bottom {
  bottom: 20px;
  left: -4px;
}

.content-float-card > span {
  color: #2563eb;
  font-size: 28px;
  font-weight: 900;
}

.content-float-card small {
  display: block;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.content-float-card strong {
  display: block;
  margin-top: 2px;
  color: #172033;
  font-size: 12px;
}

.content-module-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  transform: rotate(2deg);
}

.content-module-visual-card {
  position: relative;
  min-height: 112px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.84);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.content-module-visual-card:nth-child(even) {
  transform: translateY(18px);
}

.content-module-visual-card > span {
  position: absolute;
  top: 13px;
  right: 13px;
  color: #9aa8ba;
  font-size: 10px;
  font-weight: 900;
}

.content-module-visual-card strong {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: #2563eb;
  font-size: 21px;
}

.content-module-visual-card small {
  display: block;
  margin-top: 12px;
  color: #27364a;
  font-size: 12px;
  font-weight: 850;
}

.content-module-visual-card.is-labs strong {
  background: #0f9f7a;
}

.content-module-visual-card.is-library strong {
  background: #7c3aed;
}

.content-module-visual-card.is-summit strong {
  background: #e05f2c;
}

body[data-module-key] .content-module-visual-card {
  opacity: 0.38;
}

body[data-module-key] .content-module-visual-card.is-active {
  border-color: #93c5fd;
  opacity: 1;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.16);
}

.content-kicker {
  color: #3b82f6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
  margin-top: 26px;
}

.content-section,
.content-editor,
.content-detail-card,
.content-aside-card {
  border: 1px solid #e1e8f0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.065);
}

.content-section,
.content-editor {
  margin-top: 26px;
  padding: 30px;
}

.content-layout .content-section {
  margin-top: 0;
}

.content-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.content-section-head h2 {
  margin: 7px 0 0;
  color: #121a2c;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.content-section-note,
.content-section-description {
  margin: 0;
  color: #7b899c;
  font-size: 12px;
  font-weight: 700;
}

.content-section-description {
  max-width: 390px;
  line-height: 1.65;
  text-align: right;
}

.content-inline-link,
.content-back-link {
  color: #2563eb;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.content-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 15px;
}

.content-aside-card {
  padding: 24px;
}

.content-aside-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: #111b30;
  font-size: 24px;
  font-weight: 900;
}

.content-aside-card h2,
.content-aside-card h3 {
  margin: 18px 0 9px;
  color: #121a2c;
  letter-spacing: -0.025em;
}

.content-aside-card h2 {
  font-size: 22px;
}

.content-aside-card h3 {
  font-size: 18px;
}

.content-aside-card p {
  margin: 0;
  color: #66758a;
  font-size: 13px;
  line-height: 1.75;
}

.content-aside-card--accent {
  border-color: #cfe0f7;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 42%),
    #f7fbff;
}

.content-aside-card a {
  display: inline-block;
  margin-top: 18px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.content-form {
  display: grid;
  gap: 18px;
}

.content-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.content-form input,
.content-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ced8e5;
  border-radius: 14px;
  padding: 13px 15px;
  color: #0f172a;
  background: #fdfefe;
  font: inherit;
  line-height: 1.65;
  resize: vertical;
}

.content-form input:focus,
.content-form textarea:focus {
  outline: 4px solid rgba(59, 130, 246, 0.12);
  border-color: #3b82f6;
}

.content-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#contentFormStatus {
  color: #64748b;
  font-size: 13px;
}

.content-card-grid {
  display: grid;
  gap: 14px;
}

.content-search-form,
.content-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 22px;
}

.content-module-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.content-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.content-search-form input,
.content-search-form button {
  min-height: 46px;
  border-radius: 12px;
}

.content-search-form input {
  padding: 0 14px;
  border: 1px solid #dbe4f0;
}

.content-search-form button {
  padding: 0 22px;
  border: 0;
  background: #336fd1;
  color: #ffffff;
  font-weight: 800;
}

.content-card-cover,
.content-detail-cover {
  width: 100%;
  object-fit: cover;
  background: #edf3fb;
}

.content-card-cover {
  height: 190px;
  border-radius: 18px 18px 10px 10px;
}

.content-detail-cover {
  max-height: 520px;
  margin: 24px 0;
  border-radius: 20px;
}

.content-status-badge,
.content-tag-row span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf4ff;
  color: #245fc2;
  font-size: 0.76rem;
  font-weight: 800;
}

.content-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.content-engagement-panel,
.content-related {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e4eaf2;
}

.content-module-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.content-module-meta > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #e1e8f1;
  border-radius: 13px;
  background: #f8fbff;
}

.content-module-meta small {
  color: #7b8ba3;
  font-weight: 800;
  text-transform: uppercase;
}

.content-engagement-panel > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.content-engagement-panel button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #d8e2ef;
  border-radius: 11px;
  background: #ffffff;
  color: #17345f;
  font-weight: 800;
  cursor: pointer;
}

.content-engagement-panel button.active {
  border-color: #6c9df0;
  background: #edf4ff;
  color: #245fc2;
}

#contentCommentForm {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

#contentCommentForm textarea {
  min-height: 100px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 13px;
  resize: vertical;
}

.content-comment {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid #edf1f6;
}

.content-comment p {
  margin: 6px 0 0;
  color: #40516d;
}

.content-related > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.content-related a {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid #e1e8f1;
  border-radius: 14px;
  color: #16233a;
  text-decoration: none;
}

.content-related span {
  color: #64748b;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .content-form-grid,
  .content-module-fields,
  .content-related > div {
    grid-template-columns: 1fr;
  }
}

.content-card {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 25px;
  overflow: hidden;
  border: 1px solid #e3e9f1;
  border-radius: 19px;
  background: #ffffff;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.content-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, #2563eb, #8dbbff);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.content-card:hover {
  border-color: #bdd5f4;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.content-card:hover::before {
  opacity: 1;
}

.content-card-meta,
.content-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7d8a9b;
  font-size: 11px;
  font-weight: 750;
}

.content-card-tag {
  padding: 6px 10px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.content-card-copy h3 {
  margin: 18px 0 10px;
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.content-card-copy h3 a {
  color: #111a2d;
  text-decoration: none;
}

.content-card-copy h3 a:hover {
  color: #2563eb;
}

.content-card-copy p {
  margin: 0;
  color: #5f6f84;
  line-height: 1.7;
}

.content-card-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 18px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.content-card-read span {
  transition: transform 0.18s ease;
}

.content-card-read:hover span {
  transform: translateX(4px);
}

.content-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #edf1f5;
  color: #6f7d90;
  font-size: 11px;
}

.content-card-author {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.content-card-author > i {
  position: relative;
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  color: #ffffff;
  background: #17233b;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.content-card-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card-actions {
  display: flex;
  gap: 7px;
}

.content-card-actions button {
  border: 0;
  border-radius: 9px;
  padding: 7px 10px;
  color: #2563eb;
  background: #eaf3ff;
  font-size: 11px;
  font-weight: 850;
}

.content-card-actions button.danger {
  color: #b91c1c;
  background: #feecec;
}

.content-module-hub {
  padding: 38px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.content-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.content-module-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 34px;
  align-items: start;
  gap: 18px;
  min-height: 190px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid #dfe7f0;
  border-radius: 23px;
  color: inherit;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.055);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.content-module-card::after {
  position: absolute;
  right: -48px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  content: "";
  background: rgba(37, 99, 235, 0.05);
}

.content-module-card:hover {
  border-color: #b9d1ef;
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}

.content-module-index {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #a0adbc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.content-module-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 17px;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
  font-size: 24px;
  font-weight: 950;
}

.content-module-card.is-labs .content-module-icon {
  background: #0f9f7a;
  box-shadow: 0 12px 24px rgba(15, 159, 122, 0.18);
}

.content-module-card.is-library .content-module-icon {
  background: #7c3aed;
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.18);
}

.content-module-card.is-summit .content-module-icon {
  background: #e05f2c;
  box-shadow: 0 12px 24px rgba(224, 95, 44, 0.18);
}

.content-module-card-copy {
  align-self: stretch;
}

.content-module-card strong {
  display: block;
  color: #111a2d;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.content-module-card p {
  margin: 9px 0 17px;
  color: #637287;
  line-height: 1.65;
}

.content-module-card small {
  color: #2563eb;
  font-size: 11px;
  font-weight: 850;
}

.content-module-arrow {
  position: relative;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  align-self: end;
  place-items: center;
  border: 1px solid #dce5ef;
  border-radius: 50%;
  color: #2563eb;
  background: #ffffff;
  font-size: 16px;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.content-module-card:hover .content-module-arrow {
  color: #ffffff;
  background: #2563eb;
  transform: translateX(3px);
}

.content-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 210px;
  padding: 34px;
  place-items: center;
  align-content: center;
  border: 1px dashed #cbd8e7;
  border-radius: 19px;
  color: #758398;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0.94));
  text-align: center;
}

.content-empty-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 15px;
  color: #2563eb;
  background: #e7f1ff;
  font-size: 23px;
}

.content-empty strong {
  color: #243248;
  font-size: 17px;
}

.content-empty p {
  max-width: 440px;
  margin: 7px 0 0;
  color: #7a889a;
  font-size: 13px;
  line-height: 1.6;
}

.content-detail-page {
  width: min(1120px, calc(100% - 40px));
}

.content-detail-card {
  position: relative;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.content-detail-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, #2563eb, #60a5fa, #7c3aed);
}

.content-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 42px;
  border-bottom: 1px solid #e7edf4;
  background: rgba(248, 250, 252, 0.82);
}

.content-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.content-detail-type {
  padding: 7px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eaf3ff;
  font-size: 10px;
  font-weight: 850;
}

.content-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  align-items: center;
  gap: 54px;
  margin: 0;
  padding: 48px 54px 38px;
  border: 0;
}

.content-detail-card h1 {
  max-width: 720px;
  margin: 18px 0 17px;
  color: #111a2d;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.content-detail-heading > p {
  max-width: 680px;
  margin: 0;
  color: #5c6c81;
  font-size: 17px;
  line-height: 1.7;
}

.content-author-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px;
  border: 1px solid #dfe7f1;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 45%),
    #f8fbff;
  text-align: center;
}

.content-author-avatar {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(145deg, #2563eb, #17233b);
  box-shadow: 0 13px 28px rgba(37, 99, 235, 0.2);
  font-size: 24px;
  font-weight: 900;
}

.content-author-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-author-label {
  margin-top: 16px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-author-panel > strong {
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: #27364a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-author-panel > small {
  margin-top: 3px;
  color: #8a97a8;
  font-size: 11px;
}

.content-author-panel > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.content-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 54px;
  padding: 20px 0;
  border-top: 1px solid #e7edf4;
  border-bottom: 1px solid #e7edf4;
}

.content-detail-facts > span {
  display: grid;
  gap: 5px;
  padding: 0 24px;
  border-left: 1px solid #e7edf4;
}

.content-detail-facts > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.content-detail-facts small {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.content-detail-facts strong {
  color: #334155;
  font-size: 12px;
}

.content-article-shell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 23px;
  width: min(100% - 108px, 820px);
  margin: 0 auto;
  padding: 46px 0 52px;
}

.content-article-marker {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(145deg, #2563eb, #60a5fa);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
  font-size: 17px;
  font-weight: 900;
}

.content-detail-body {
  min-width: 0;
  color: #26364a;
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.content-detail-actions {
  margin: 0 54px;
  padding: 22px 0 34px;
  border-top: 1px solid #e5ebf2;
}

.content-detail-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border-radius: 12px;
  color: #2563eb;
  background: #eaf3ff;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 920px) {
  .content-hero {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
    padding: 44px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .content-page,
  .content-detail-page {
    width: min(100% - 22px, 1200px);
    padding-top: 16px;
  }

  .content-hero {
    display: block;
    min-height: auto;
    padding: 31px 23px;
    border-radius: 24px;
  }

  .content-hero h1 {
    margin-top: 15px;
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1;
  }

  .content-hero p {
    font-size: 15px;
    line-height: 1.65;
  }

  .content-hero-actions,
  .content-section-head,
  .content-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .content-primary-button,
  .content-ghost-button {
    width: 100%;
  }

  .content-topic-row {
    margin-top: 20px;
  }

  .content-hero-art {
    display: none;
  }

  .content-module-visual {
    min-height: 0;
    margin-top: 28px;
    gap: 8px;
    transform: none;
  }

  .content-module-visual-card {
    min-height: 76px;
    padding: 12px;
    border-radius: 15px;
  }

  .content-module-visual-card:nth-child(even) {
    transform: none;
  }

  .content-module-visual-card strong {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 16px;
  }

  .content-module-visual-card small {
    margin-top: 7px;
    font-size: 10px;
  }

  .content-layout {
    gap: 15px;
  }

  .content-aside {
    grid-template-columns: 1fr;
  }

  .content-section,
  .content-editor {
    padding: 21px;
    border-radius: 20px;
  }

  .content-module-hub {
    padding: 31px 0 0;
  }

  .content-section-description {
    max-width: none;
    text-align: left;
  }

  .content-card {
    padding: 21px;
  }

  .content-card footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-module-grid {
    grid-template-columns: 1fr;
  }

  .content-module-card {
    grid-template-columns: 50px minmax(0, 1fr) 30px;
    gap: 14px;
    min-height: 0;
    padding: 22px 18px;
    border-radius: 19px;
  }

  .content-module-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 20px;
  }

  .content-module-card strong {
    font-size: 19px;
  }

  .content-module-card p {
    margin-top: 7px;
    font-size: 13px;
  }

  .content-detail-card {
    padding: 0;
    border-radius: 21px;
  }

  .content-detail-topbar {
    padding: 18px 20px;
  }

  .content-detail-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 31px 22px 26px;
  }

  .content-detail-card h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .content-detail-heading > p {
    font-size: 16px;
  }

  .content-author-panel {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 2px 13px;
    padding: 16px;
    text-align: left;
  }

  .content-author-avatar {
    width: 58px;
    height: 58px;
    grid-row: 1 / 5;
    border-radius: 18px;
  }

  .content-author-label {
    margin-top: 0;
  }

  .content-author-panel > a {
    margin-top: 6px;
  }

  .content-detail-facts {
    grid-template-columns: 1fr;
    margin: 0 22px;
    padding: 8px 0;
  }

  .content-detail-facts > span,
  .content-detail-facts > span:first-child {
    padding: 12px 0;
    border-top: 1px solid #edf1f5;
    border-left: 0;
  }

  .content-detail-facts > span:first-child {
    border-top: 0;
  }

  .content-article-shell {
    grid-template-columns: 1fr;
    gap: 17px;
    width: calc(100% - 44px);
    padding: 32px 0 38px;
  }

  .content-article-marker {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .content-detail-body {
    font-size: 16px;
    line-height: 1.85;
  }

  .content-detail-actions {
    margin: 0 22px;
  }
}

.dash-empty,
.mod-empty {
  color: #64748b;
  text-align: center;
  padding: 22px 12px;
}

/* =========================================================
   MODERATION
   ========================================================= */

.mod-stats article {
  display: block;
}

.mod-card-head select,
.mod-search-row input,
.report-card select,
.report-card textarea {
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 11px 12px;
  font-family: inherit;
  outline: none;
}

.mod-card-head select:focus,
.mod-search-row input:focus,
.report-card select:focus,
.report-card textarea:focus {
  border-color: #0a66c2;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.12);
}

.mod-search-row {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
}

.mod-search-row input {
  min-width: 0;
  flex: 1;
}

.mod-search-row button,
.mod-report-actions button,
.mod-user-actions button {
  border: none;
  border-radius: 11px;
  padding: 9px 11px;
  background: #eef6ff;
  color: #0a66c2;
  font-weight: 900;
  cursor: pointer;
}

.mod-report,
.mod-user {
  border: 1px solid #e5e7eb;
  border-radius: 17px;
  padding: 15px;
}

.mod-report header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.mod-report p {
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  margin: 7px 0;
  word-break: break-word;
}

.mod-report a {
  color: #0a66c2;
}

.mod-report time {
  color: #64748b;
  font-size: 12px;
}

.mod-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 900;
}

.mod-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.mod-status.reviewing {
  background: #dbeafe;
  color: #1d4ed8;
}

.mod-status.resolved {
  background: #dcfce7;
  color: #166534;
}

.mod-status.accepted {
  background: #dcfce7;
  color: #166534;
}

.mod-status.rejected {
  background: #f1f5f9;
  color: #475569;
}

.mod-status.closed {
  background: #f1f5f9;
  color: #475569;
}

.mod-report-actions,
.mod-user-actions,
.mod-user-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.mod-report-actions .mod-light-btn {
  background: #f1f5f9;
  color: #475569;
}

.mod-user-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mod-user-avatar {
  width: 44px;
  height: 44px;
}

.mod-user-top strong,
.mod-user-top span,
.mod-user-top small {
  display: block;
}

.mod-user-top strong {
  color: #0f172a;
}

.mod-user-top span {
  color: #0a66c2;
  font-size: 12px;
}

.mod-user-top small {
  color: #64748b;
  margin-top: 2px;
}

.mod-user-statuses span {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.mod-user-statuses .red {
  background: #fee2e2;
  color: #b91c1c;
}

.mod-user-statuses .green {
  background: #dcfce7;
  color: #166534;
}

.mod-user-statuses .orange {
  background: #ffedd5;
  color: #9a3412;
}

.mod-user-statuses .purple {
  background: #ede9fe;
  color: #6d28d9;
}

.mod-user-actions .mod-danger-btn {
  background: #fee2e2;
  color: #b91c1c;
}

.mod-analytics-period {
  border-radius: 999px;
  padding: 7px 11px;
  background: #eef6ff;
  color: #0a66c2;
  font-size: 12px;
  font-weight: 900;
}

.mod-analytics-totals {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.mod-analytics-totals article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.mod-analytics-totals span,
.mod-analytics-totals small {
  display: block;
  color: #64748b;
  font-size: 11px;
}

.mod-analytics-totals strong {
  display: block;
  margin: 7px 0 5px;
  color: #0f172a;
  font-size: 23px;
}

.mod-chart-head,
.mod-chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mod-chart-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.mod-chart-legend span {
  color: #64748b;
  font-size: 11px;
}

.mod-chart-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #0a66c2;
}

.mod-chart-legend .messages::before {
  background: #7c3aed;
}

.mod-chart-legend .posts::before {
  background: #0f9f6e;
}

.mod-analytics-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(28px, 1fr));
  gap: 8px;
  min-height: 190px;
  padding: 14px 10px 4px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(to top, #eef2f7 1px, transparent 1px) 0 0 / 100% 25%;
  overflow-x: auto;
}

.mod-chart-day {
  min-width: 28px;
  display: grid;
  grid-template-rows: 150px auto;
  gap: 7px;
  text-align: center;
}

.mod-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}

.mod-chart-bars i {
  position: relative;
  width: 7px;
  min-height: 2px;
  border-radius: 5px 5px 2px 2px;
  background: #0a66c2;
}

.mod-chart-bars i.messages {
  background: #7c3aed;
}

.mod-chart-bars i.posts {
  background: #0f9f6e;
}

.mod-chart-bars i span {
  display: none;
}

.mod-chart-day small {
  color: #64748b;
  font-size: 10px;
}

.mod-appeal {
  border: 1px solid #e5e7eb;
  border-radius: 17px;
  padding: 15px;
}

.mod-appeal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mod-appeal header time {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
  text-align: right;
}

.mod-appeal-context {
  margin-top: 13px;
  padding: 13px;
  border-radius: 13px;
  background: #f8fafc;
}

.mod-appeal-context p {
  margin: 0 0 8px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.mod-appeal-context p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1050px) {
  .mod-analytics-totals {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   REPORT PAGE
   ========================================================= */

.report-page {
  max-width: 760px;
}

.report-card {
  padding: 28px;
}

.report-target {
  border: 1px solid #bfdbfe;
  background: #eef6ff;
  color: #334155;
  border-radius: 14px;
  padding: 13px;
  margin: 18px 0;
}

.report-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-card label {
  color: #0f172a;
  font-weight: 900;
}

.report-card textarea {
  min-height: 150px;
  resize: vertical;
}

.report-card form button {
  min-height: 44px;
  border: none;
  border-radius: 13px;
  background: #0a66c2;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  margin-top: 5px;
}

@media (max-width: 900px) {
  .dash-page,
  .mod-page,
  .report-page {
    padding: 16px 12px 50px;
  }

  .dash-hero,
  .mod-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 21px;
  }

  .dash-hero-user {
    align-items: flex-start;
  }

  .dash-hero-actions {
    width: 100%;
  }

  .dash-primary-link,
  .dash-secondary-link,
  .mod-primary-btn {
    flex: 1;
  }

  .dash-stats,
  .mod-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-grid,
  .mod-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dash-hero-user {
    flex-direction: column;
  }

  .dash-stats,
  .mod-stats,
  .dash-module-grid {
    grid-template-columns: 1fr;
  }

  .dash-card-head,
  .mod-card-head,
  .dash-post footer,
  .mod-report header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mod-search-row {
    flex-direction: column;
  }

  .mod-analytics-totals {
    grid-template-columns: repeat(2, 1fr);
  }

  .mod-chart-head,
  .mod-appeal header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mod-chart-legend {
    flex-wrap: wrap;
  }

  .mod-search-row button {
    min-height: 42px;
  }
}
/* =========================================================
   MODERATION ERROR MODAL
   ========================================================= */

body.modal-open {
  overflow: hidden;
}

.moderation-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.moderation-modal {
  width: 100%;
  max-width: 490px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  padding: 26px;
  display: flex;
  gap: 18px;
}

.moderation-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff7ed;
  color: #c2410c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  flex: 0 0 auto;
}

.moderation-modal-content {
  flex: 1;
  min-width: 0;
}

.moderation-modal-label {
  display: inline-flex;
  background: #fff7ed;
  color: #c2410c;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.moderation-modal-content h2 {
  color: #0f172a;
  margin: 10px 0 8px;
  font-size: 23px;
}

.moderation-modal-content > p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.moderation-modal-details {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  margin-top: 16px;
  overflow: hidden;
}

.moderation-modal-details div {
  padding: 11px 13px;
  border-bottom: 1px solid #e5e7eb;
}

.moderation-modal-details div:last-child {
  border-bottom: none;
}

.moderation-modal-details strong,
.moderation-modal-details span {
  display: block;
}

.moderation-modal-details strong {
  color: #0f172a;
  font-size: 12px;
  margin-bottom: 3px;
}

.moderation-modal-details span {
  color: #475569;
  font-size: 13px;
}

.moderation-modal-close {
  width: 100%;
  min-height: 43px;
  border: none;
  border-radius: 13px;
  background: #0a66c2;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  margin-top: 17px;
}

.moderation-modal-close:hover {
  background: #004182;
}

/* =========================================================
   REPORT CENTER
   ========================================================= */

.report-center-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 70px;
}

.report-center-hero {
  background:
    radial-gradient(
      circle at top left,
      rgba(220, 38, 38, 0.14),
      transparent 36%
    ),
    linear-gradient(135deg, #ffffff, #fff8f8);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
  padding: 28px;
  margin-bottom: 20px;
}

.report-center-hero span {
  display: inline-flex;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.report-center-hero h1 {
  color: #0f172a;
  margin: 10px 0 7px;
}

.report-center-hero p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.report-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 20px;
  align-items: start;
}

.report-center-card {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  padding: 22px;
}

.report-step {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.report-step > strong {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #0a66c2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.report-step h2 {
  color: #0f172a;
  margin: 0;
  font-size: 19px;
}

.report-step p {
  color: #64748b;
  margin: 3px 0 0;
  font-size: 13px;
}

.report-area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.report-area {
  border: 1px solid #dbe3ee;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.report-area:hover,
.report-area.active {
  border-color: #0a66c2;
  background: #eef6ff;
}

.report-area > span {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.report-area strong,
.report-area small {
  display: block;
}

.report-area strong {
  color: #0f172a;
  margin-bottom: 4px;
}

.report-area small {
  color: #64748b;
  line-height: 1.4;
}

.report-user-search {
  display: flex;
  gap: 9px;
  margin-bottom: 13px;
}

.report-user-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 11px 13px;
  outline: none;
}

.report-user-search button {
  border: none;
  border-radius: 13px;
  background: #eef6ff;
  color: #0a66c2;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer;
}

.report-user-list {
  max-height: 430px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-user-item {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 15px;
  padding: 11px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.report-user-item:hover,
.report-user-item.selected {
  background: #eef6ff;
  border-color: #93c5fd;
}

.report-user-avatar,
.selected-report-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #0a66c2;
  color: #ffffff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.report-user-avatar img,
.selected-report-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-user-item strong,
.report-user-item span,
.report-user-item small {
  display: block;
}

.report-user-item strong {
  color: #0f172a;
}

.report-user-item span {
  color: #0a66c2;
  font-size: 12px;
}

.report-user-item small {
  color: #64748b;
  margin-top: 3px;
}

.selected-report-user {
  min-height: 70px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 18px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.selected-report-user strong,
.selected-report-user span {
  display: block;
}

.selected-report-user strong {
  color: #0f172a;
}

.selected-report-user span {
  color: #0a66c2;
  font-size: 12px;
}

.report-center-card form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.report-center-card form label {
  color: #0f172a;
  font-weight: 900;
  font-size: 14px;
}

.report-center-card form select,
.report-center-card form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 12px;
  font-family: inherit;
  outline: none;
}

.report-center-card form textarea {
  min-height: 155px;
  resize: vertical;
}

.report-center-card form button {
  min-height: 44px;
  border: none;
  border-radius: 13px;
  background: #dc2626;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  margin-top: 5px;
}

.report-center-card form button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.report-information {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 15px;
  padding: 13px;
  margin-top: 18px;
}

.report-information strong {
  color: #92400e;
}

.report-information p {
  color: #78350f;
  margin: 5px 0 0;
  line-height: 1.5;
  font-size: 13px;
}

.report-center-empty {
  color: #64748b;
  text-align: center;
  padding: 22px 12px;
}

.nav-report-link {
  color: #b91c1c !important;
}

.moderation-link {
  color: #6d28d9 !important;
}

@media (max-width: 900px) {
  .report-center-page {
    padding: 16px 12px 50px;
  }

  .report-center-grid {
    grid-template-columns: 1fr;
  }

  .report-area-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .moderation-modal {
    flex-direction: column;
    padding: 20px;
  }

  .report-user-search {
    flex-direction: column;
  }

  .report-user-search button {
    min-height: 42px;
  }
}
/* =========================================================
   COMPACT NAVBAR
   ========================================================= */

.nav-inner-compact {
  max-width: 1500px;
  min-height: 66px;
  padding-left: 20px;
  padding-right: 20px;
  gap: 22px;
}

.nav-menu-compact {
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}

.nav-primary-group,
.nav-action-group {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-primary-group {
  flex: 1 1 auto;
}

.nav-menu-compact a,
.nav-management-button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 11px;
  white-space: nowrap;
  font-size: 13px;
}

.nav-action-group {
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-logo {
  flex: 0 0 auto;
}

.nav-report-link {
  background: #fff1f2;
  color: #b91c1c !important;
}

.nav-report-link:hover,
.nav-report-link.active {
  background: #ffe4e6 !important;
}

.nav-user-link {
  max-width: 156px;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-avatar {
  position: relative;
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0f172a);
  font-size: 10px;
  font-weight: 900;
}

.nav-user-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-handle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-management-wrap {
  position: relative;
  display: inline-flex;
}

.nav-management-button {
  border: none;
  background: #f3e8ff;
  color: #6d28d9;
  font-family: inherit;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-management-button:hover,
.nav-management-button.active {
  background: #e9d5ff;
}

.nav-management-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 2500;
  width: 190px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 15px;
  padding: 7px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.17);
}

.nav-management-dropdown a {
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  min-height: 39px;
  color: #334155 !important;
  background: transparent !important;
}

.nav-management-dropdown a:hover {
  background: #f8fafc !important;
  color: #0a66c2 !important;
}

.notification-btn {
  width: 38px;
  height: 36px;
  padding: 0;
}

/* =========================================================
   CLOSED REPORTS
   ========================================================= */

.mod-report.closed {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.mod-report.closed header,
.mod-report.closed > p {
  opacity: 0.84;
}

.mod-closed-info {
  margin-top: 13px;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  border-radius: 12px;
  padding: 11px 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.mod-review-note {
  margin-top: 13px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 11px 12px;
}

.mod-review-note strong {
  display: block;
  color: #1d4ed8;
  font-size: 12px;
  margin-bottom: 4px;
}

.mod-review-note p {
  margin: 0;
  color: #334155;
}

@media (max-width: 1050px) {
  .nav-inner-compact {
    max-width: 100%;
  }

  .nav-menu-compact {
    font-size: 12px;
  }

  .nav-menu-compact a,
  .nav-management-button {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* =========================================================
   LANGUAGE AND MULTI-THEME PREFERENCES
   ========================================================= */

.interface-preferences-card {
  position: relative;
  overflow: hidden;
}

.interface-preferences-card::after {
  position: absolute;
  top: -54px;
  right: -48px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  content: "";
  pointer-events: none;
}

.interface-preferences-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.interface-preferences-heading > span:last-child {
  min-width: 0;
}

.interface-preferences-heading h2,
.interface-preferences-heading p {
  margin-top: 0;
}

.interface-preferences-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--soft-blue);
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
}

.interface-preferences-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.interface-preferences-note {
  margin: 3px 0 16px !important;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.5 !important;
}

@media (max-width: 560px) {
  .interface-preferences-fields {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] body,
html[data-theme="midnight"] body {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] :is(h1, h2, h3, h4, strong),
html[data-theme="midnight"] :is(h1, h2, h3, h4, strong) {
  color: var(--text-strong);
}

html[data-theme="dark"] :is(input, textarea, select),
html[data-theme="midnight"] :is(input, textarea, select) {
  border-color: var(--border) !important;
  background: var(--input-bg) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] :is(input, textarea)::placeholder,
html[data-theme="midnight"] :is(input, textarea)::placeholder {
  color: var(--muted);
}

html[data-theme="dark"] :is(
  .navbar, .nav-menu-compact, .verify-card, .quick-post-card,
  .feed-card, .module-card, .module-section, .side-card,
  .forum-post-card, .post-detail-card, .comments-section, .empty-card,
  .admin-card, .pro-admin-toolbar, .user-management-table,
  .profile-hero-card, .profile-info-card, .profile-section-head,
  .profile-post-card, .profile-edit-card, .friends-card,
  .conversation-list-card, .message-panel, .ui-modal, .auth-card,
  .legal-card, .account-card, .error-card, .msg-top, .msg-sidebar,
  .msg-chat, .msg-form, .forum-card, .forum-toolbar, .post-card,
  .fx-card, .fx-profile-hero, .dash-stat-card, .mod-stats article,
  .dash-card, .mod-card, .report-card, .moderation-modal,
  .report-center-card, .forum-filter-card, .admin-mail-card,
  .admin-mail-mode-card, .admin-mail-modal-card
),
html[data-theme="midnight"] :is(
  .navbar, .nav-menu-compact, .verify-card, .quick-post-card,
  .feed-card, .module-card, .module-section, .side-card,
  .forum-post-card, .post-detail-card, .comments-section, .empty-card,
  .admin-card, .pro-admin-toolbar, .user-management-table,
  .profile-hero-card, .profile-info-card, .profile-section-head,
  .profile-post-card, .profile-edit-card, .friends-card,
  .conversation-list-card, .message-panel, .ui-modal, .auth-card,
  .legal-card, .account-card, .error-card, .msg-top, .msg-sidebar,
  .msg-chat, .msg-form, .forum-card, .forum-toolbar, .post-card,
  .fx-card, .fx-profile-hero, .dash-stat-card, .mod-stats article,
  .dash-card, .mod-card, .report-card, .moderation-modal,
  .report-center-card, .forum-filter-card, .admin-mail-card,
  .admin-mail-mode-card, .admin-mail-modal-card
) {
  border-color: var(--border) !important;
  background: var(--card) !important;
  color: var(--text);
}

html[data-theme="dark"] :is(
  .account-hero, .account-check-list label, .account-push-permission,
  .notification-item, .audit-log-item, .report-user-item,
  .admin-mail-user-result, .admin-mail-list-user,
  .admin-mail-selected-user, .dash-side-item
),
html[data-theme="midnight"] :is(
  .account-hero, .account-check-list label, .account-push-permission,
  .notification-item, .audit-log-item, .report-user-item,
  .admin-mail-user-result, .admin-mail-list-user,
  .admin-mail-selected-user, .dash-side-item
) {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
  color: var(--text);
}

html[data-theme="dark"] :is(.account-card p, .account-info-row span, small),
html[data-theme="midnight"] :is(.account-card p, .account-info-row span, small) {
  color: var(--muted) !important;
}

html[data-theme="dark"] :is(.account-hero p, .account-card .account-field),
html[data-theme="midnight"] :is(.account-hero p, .account-card .account-field) {
  color: var(--muted) !important;
}

html[data-theme="dark"] :is(.account-info-row, .nav-action-group, hr),
html[data-theme="midnight"] :is(.account-info-row, .nav-action-group, hr) {
  border-color: var(--border) !important;
}

html[data-theme="dark"] .message-bubble.other,
html[data-theme="dark"] .msg-bubble:not(.mine),
html[data-theme="midnight"] .message-bubble.other,
html[data-theme="midnight"] .msg-bubble:not(.mine) {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

@media (max-width: 1320px) {
  .nav-inner-compact {
    flex-wrap: wrap;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-menu-compact {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    flex-wrap: nowrap;
    padding-top: 10px;
  }

  .nav-menu-compact.show {
    display: flex;
    align-items: stretch;
  }

  .nav-primary-group,
  .nav-action-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .nav-menu-compact a,
  .nav-management-button {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .nav-management-wrap {
    width: 100%;
    display: block;
  }

  .nav-management-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 6px;
    box-sizing: border-box;
  }

  .nav-action-group {
    margin-left: 0;
  }

  .notification-wrap,
  .notification-btn {
    width: 100%;
  }

  .notification-btn {
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
  }
}
/* =========================================================
   FORUM SEARCH / FILTER
   ========================================================= */

.forum-filter-card {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.forum-filter-grid {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.4fr)
    minmax(150px, 0.8fr)
    minmax(150px, 0.7fr)
    minmax(150px, 0.7fr);
  gap: 12px;
}

.forum-filter-grid label {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.forum-filter-grid input,
.forum-filter-grid select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 0 12px;
  background: #ffffff;
  font-family: inherit;
  outline: none;
}

.forum-filter-grid input:focus,
.forum-filter-grid select:focus {
  border-color: #0a66c2;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.12);
}

.forum-filter-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.forum-filter-actions button {
  min-height: 40px;
  border: none;
  border-radius: 12px;
  padding: 0 15px;
  background: #0a66c2;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.forum-filter-actions .ghost-btn {
  background: #eef6ff;
  color: #0a66c2;
}

/* =========================================================
   AUDIT LOGS
   ========================================================= */

.audit-log-item {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
}

.audit-log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-log-top strong {
  color: #0f172a;
}

.audit-log-top time {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.audit-log-item p {
  color: #475569;
  line-height: 1.5;
  margin: 8px 0;
}

.audit-log-item small {
  color: #64748b;
}

.fx-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 1000px) {
  .forum-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .forum-filter-grid {
    grid-template-columns: 1fr;
  }

  .forum-filter-actions,
  .fx-request-actions {
    flex-direction: column;
  }

  .forum-filter-actions button,
  .fx-request-actions button {
    width: 100%;
  }

  .audit-log-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* style.css dosyasının en altına ekle */
.msg-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.msg-head-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  cursor: pointer;
}

.msg-head-actions .danger,
.msg-delete-btn {
  background: #fee2e2;
  color: #b91c1c;
}

.msg-unread-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0a66c2;
  color: #fff;
  font-size: 11px;
}

.msg-delete-btn {
  border: 0;
  border-radius: 8px;
  margin-top: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 11px;
}

.msg-bubble.deleted {
  opacity: 0.7;
  font-style: italic;
}

#typingIndicator {
  display: block;
  margin-top: 3px;
  color: #0a66c2;
}

#typingIndicator.hidden {
  display: none;
}

.notification-type-icon {
  margin-right: 6px;
}

.account-card label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.account-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}

.account-check-list label {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.35;
}

.account-check-list input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #2563eb;
}

.account-check-list--channels {
  grid-template-columns: 1fr;
}

.account-push-permission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -4px 0 18px;
  padding: 13px 14px;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #f3f7fc);
}

.account-push-permission-copy {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.account-push-permission-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e8f1ff;
  color: #2765c3;
}

.account-push-permission-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-push-permission-copy > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-push-permission-copy strong {
  color: #172033;
  font-size: 14px;
}

.account-push-permission-copy small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.account-card .account-push-permission-button {
  flex: 0 0 auto;
  min-width: 108px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  background: #2868c7;
  font-size: 13px;
  box-shadow: 0 7px 16px rgba(40, 104, 199, 0.18);
}

.account-card .account-push-permission-button:hover:not(:disabled) {
  background: #1855ae;
}

.account-push-permission[data-state="active"] {
  border-color: #bbdfca;
  background: #f2fbf6;
}

.account-push-permission[data-state="active"] .account-push-permission-icon {
  background: #daf2e3;
  color: #157347;
}

.account-push-permission[data-state="blocked"] {
  border-color: #f3c7c4;
  background: #fff7f6;
}

.account-push-permission[data-state="blocked"] .account-push-permission-icon {
  background: #fee5e3;
  color: #c63832;
}

.account-push-permission[data-state="repair"] {
  border-color: #f0d49b;
  background: #fffaf0;
}

.account-push-permission[data-state="repair"] .account-push-permission-icon {
  background: #fff0c9;
  color: #a15c00;
}

.account-push-permission[data-state="unsupported"] {
  opacity: 0.72;
}

.account-card .account-push-permission-button:disabled {
  background: #d8e2ee;
  color: #66758a;
  box-shadow: none;
  cursor: default;
}

.account-card .account-field {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0;
  color: #334155;
  font-weight: 750;
}

.account-card .account-field select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

@media (max-width: 560px) {
  .account-check-list {
    grid-template-columns: 1fr;
  }

  .account-push-permission {
    align-items: stretch;
    flex-direction: column;
  }

  .account-card .account-push-permission-button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .msg-chat-head {
    align-items: flex-start;
    gap: 12px;
  }

  .msg-head-actions {
    width: 100%;
  }
}

/* =========================================================
   NOTIFICATION PANEL — FINAL RESPONSIVE LAYOUT
   ========================================================= */

.notification-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.notification-trigger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] {
  border-color: #b7d3f3;
  background: #f6faff;
  color: #0a66c2;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .09);
  transform: translateY(-1px);
}

.notification-trigger svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(620px, calc(100dvh - 92px));
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .18), 0 4px 16px rgba(15, 23, 42, .08);
  transform-origin: top right;
  animation: notificationPanelIn .17s ease-out;
  isolation: isolate;
}

.notification-panel.hidden {
  display: none !important;
}

@keyframes notificationPanelIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-panel-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #edf2f7;
  background: radial-gradient(circle at top right, rgba(10, 102, 194, .08), transparent 42%), #fff;
}

.notification-panel-header > div {
  min-width: 0;
}

.notification-panel-kicker {
  display: block;
  margin-bottom: 3px;
  color: #0a66c2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.notification-panel-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.2;
}

.notification-panel-close {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
}

.notification-panel-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.notification-panel-close svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.notification-panel-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f7;
  background: #fbfdff;
}

.notification-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f1f5f9;
}

.notification-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.notification-tab.active {
  background: #fff;
  color: #0a66c2;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.notification-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #dbeafe;
  color: #0757a4;
  font-size: 10px;
  font-weight: 900;
}

.notification-mark-all {
  flex: 0 0 auto;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: #0a66c2;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.notification-mark-all:hover {
  text-decoration: underline;
}

.notification-mark-all:disabled,
.notification-clear-all:disabled {
  opacity: .46;
  cursor: not-allowed;
  pointer-events: none;
}

.notification-panel-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.notification-panel-list::-webkit-scrollbar {
  width: 8px;
}

.notification-panel-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #cbd5e1;
  background-clip: padding-box;
}

.notification-card {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 88px;
  margin: 0 0 7px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 15px;
  background: #fff;
  transition: background .15s ease, border-color .15s ease, opacity .16s ease, transform .16s ease;
}

.notification-card:last-child {
  margin-bottom: 0;
}

.notification-card:hover {
  border-color: #dbe8f7;
  background: #f8fbff;
}

.notification-card.is-unread {
  border-color: #dbeafe;
  background: linear-gradient(90deg, rgba(10, 102, 194, .075), transparent 74%), #fff;
}

.notification-card.is-unread::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #0a66c2;
}

.notification-card.is-removing {
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
}

.notification-card-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 88px;
  padding: 13px 48px 13px 14px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.notification-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: #eef6ff;
  color: #0a66c2;
}

.notification-card-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.notification-card-icon--message,
.notification-card-icon--comment {
  background: #ecfdf5;
  color: #047857;
}

.notification-card-icon--friend_request,
.notification-card-icon--friend_accept {
  background: #f5f3ff;
  color: #6d28d9;
}

.notification-card-icon--admin {
  background: #fff7ed;
  color: #c2410c;
}

.notification-card-icon--delete_request {
  background: #fef2f2;
  color: #b91c1c;
}

.notification-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.notification-card-topline {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.notification-card-topline strong {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.notification-card-count {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0757a4;
  font-size: 10px;
  font-weight: 900;
}

.notification-card-message {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #536175;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.notification-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  min-width: 0;
  margin: 1px 0 0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.notification-card-meta i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #0a66c2;
}

.notification-card-meta span {
  color: #0a66c2;
  white-space: nowrap;
}

.notification-card-meta time {
  margin-left: auto;
  color: #94a3b8;
  white-space: nowrap;
}

.notification-card-delete {
  position: absolute;
  top: 50%;
  right: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  color: #94a3b8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}

.notification-card:hover .notification-card-delete,
.notification-card-delete:focus-visible {
  opacity: 1;
}

.notification-card-delete:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.notification-card-delete svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.notification-panel-state {
  display: flex;
  min-height: 240px;
  padding: 34px 20px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.notification-panel-state strong {
  margin-top: 14px;
  color: #0f172a;
  font-size: 15px;
}

.notification-panel-state small {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
}

.notification-panel-state button {
  margin-top: 15px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #0a66c2;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.notification-state-symbol {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #eef6ff;
  color: #0a66c2;
  font-size: 22px;
  font-weight: 900;
}

.notification-state-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #dbeafe;
  border-top-color: #0a66c2;
  border-radius: 50%;
  animation: notificationSpin .7s linear infinite;
}

@keyframes notificationSpin {
  to { transform: rotate(360deg); }
}

.notification-panel-footer {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-top: 1px solid #edf2f7;
  background: #fbfdff;
}

.notification-clear-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.notification-clear-all:hover {
  background: #fff1f2;
  color: #be123c;
}

.notification-clear-all svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

@media (max-width: 900px) {
  body.notification-panel-open {
    overflow: hidden;
  }

  body.notification-panel-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2990;
    background: rgba(15, 23, 42, .34);
    backdrop-filter: blur(2px);
  }

  .notification-wrap {
    position: static;
    width: 100%;
  }

  .notification-trigger {
    width: 100%;
    height: 40px;
    flex-basis: auto;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 11px;
  }

  .notification-panel {
    position: fixed;
    z-index: 3001;
    top: max(68px, env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 80px - env(safe-area-inset-bottom));
    border-radius: 18px;
    transform-origin: top center;
  }

  .notification-card-delete {
    opacity: 1;
  }

  .notification-panel-footer {
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .notification-panel {
    top: max(58px, env(safe-area-inset-top));
    right: 6px;
    left: 6px;
    max-height: calc(100dvh - 66px - env(safe-area-inset-bottom));
    border-radius: 16px;
  }

  .notification-panel-header {
    padding: 15px 14px 12px;
  }

  .notification-panel-header h2 {
    font-size: 19px;
  }

  .notification-panel-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 9px 10px;
  }

  .notification-tabs {
    width: 100%;
    box-sizing: border-box;
  }

  .notification-tab {
    flex: 1;
  }

  .notification-mark-all {
    align-self: stretch;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
    text-align: center;
  }

  .notification-mark-all:hover {
    background: #dbeafe;
    text-decoration: none;
  }

  .notification-panel-list {
    padding: 6px;
  }

  .notification-card {
    min-height: 84px;
    border-radius: 14px;
  }

  .notification-card-main {
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 9px;
    min-height: 84px;
    padding: 12px 43px 12px 12px;
  }

  .notification-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .notification-card-icon svg {
    width: 19px;
    height: 19px;
  }

  .notification-card-topline strong {
    font-size: 12px;
  }

  .notification-card-message {
    font-size: 11px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .notification-card-meta {
    font-size: 9px;
  }

  .notification-card-meta time {
    width: 100%;
    margin-left: 0;
  }

  .notification-card-delete {
    right: 7px;
    width: 29px;
    height: 29px;
  }
}

@media (max-height: 640px) and (max-width: 900px) {
  .notification-panel {
    top: 6px;
    bottom: 6px;
    max-height: none;
  }
}


/* =========================================================
   BİLDİRİM KARTI – GLOBAL BUTTON HOVER ÇAKIŞMASI DÜZELTMESİ
   ========================================================= */
.notification-panel .notification-card-main,
.notification-panel .notification-card-main:hover,
.notification-panel .notification-card-main:focus,
.notification-panel .notification-card-main:active,
.notification-panel .notification-card-main:focus-visible {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 88px !important;
  margin: 0 !important;
  padding: 13px 48px 13px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  opacity: 1 !important;
  transform: none !important;
  text-align: left !important;
}

.notification-panel .notification-card-main:hover,
.notification-panel .notification-card-main:focus-visible {
  background: transparent !important;
  color: inherit !important;
}

.notification-panel .notification-card:hover {
  background: #f8fbff !important;
  border-color: #dbe8f7 !important;
}

.notification-panel .notification-card.is-unread:hover {
  background: linear-gradient(90deg, rgba(10, 102, 194, .09), transparent 74%), #fff !important;
}

.notification-panel .notification-card-main > *,
.notification-panel .notification-card-body,
.notification-panel .notification-card-topline,
.notification-panel .notification-card-message,
.notification-panel .notification-card-meta {
  position: static !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 600px) {
  .notification-panel .notification-card-main,
  .notification-panel .notification-card-main:hover,
  .notification-panel .notification-card-main:focus,
  .notification-panel .notification-card-main:active,
  .notification-panel .notification-card-main:focus-visible {
    min-height: 84px !important;
    padding: 12px 43px 12px 12px !important;
  }
}


/* =========================================================
   PRO ADMIN MAIL MERKEZİ
   ========================================================= */
.admin-mail-page{max-width:1180px;margin:0 auto;padding:34px 20px 70px}.admin-mail-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;margin-bottom:22px;background:linear-gradient(135deg,#eff6ff,#f5f3ff);border:1px solid #dbeafe;border-radius:24px}.admin-mail-kicker{display:block;margin-bottom:7px;color:#1d4ed8;font-size:11px;font-weight:900;letter-spacing:1.4px}.admin-mail-hero h1{margin:0 0 8px;font-size:32px;color:#0f172a}.admin-mail-hero p{margin:0;color:#64748b;line-height:1.65}.admin-mail-back{flex:0 0 auto;padding:12px 16px;border-radius:12px;background:#fff;color:#0a66c2;text-decoration:none;font-weight:800;border:1px solid #bfdbfe}.admin-mail-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px;align-items:start}.admin-mail-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:24px;box-shadow:0 14px 38px rgba(15,23,42,.06)}.admin-mail-card-head>div{display:flex;align-items:flex-start;gap:12px;margin-bottom:22px}.admin-mail-card-head>div>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#0a66c2;color:#fff;font-weight:900}.admin-mail-card-head h2{margin:0 0 4px;color:#0f172a;font-size:20px}.admin-mail-card-head p{margin:0;color:#64748b;font-size:13px}.admin-mail-label{display:block;margin:16px 0 7px;color:#1e293b;font-size:13px;font-weight:850}.admin-mail-card input,.admin-mail-card textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:13px;background:#fff;padding:13px 14px;font:inherit;color:#0f172a;outline:none}.admin-mail-card input:focus,.admin-mail-card textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.12)}.admin-mail-card textarea{resize:vertical;min-height:230px;line-height:1.6}.admin-mail-search-wrap{position:relative}.admin-mail-search-wrap input{padding-right:45px}.admin-mail-spinner{position:absolute;right:15px;top:50%;width:17px;height:17px;margin-top:-9px;border:2px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:adminMailSpin .8s linear infinite}@keyframes adminMailSpin{to{transform:rotate(360deg)}}.admin-mail-results{margin-top:10px;max-height:360px;overflow:auto;border-radius:14px}.admin-mail-empty{padding:20px;text-align:center;color:#94a3b8;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:13px;font-size:13px}.admin-mail-empty.error{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.admin-mail-user-result{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:11px;margin-bottom:7px;padding:11px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;color:#0f172a;text-align:left;cursor:pointer}.admin-mail-user-result:hover{border-color:#93c5fd;background:#f8fbff;transform:none}.admin-mail-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;overflow:hidden;background:#e8f1ff;color:#1d4ed8;font-weight:900}.admin-mail-avatar img{width:100%;height:100%;object-fit:cover}.admin-mail-user-info{min-width:0;display:flex;flex-direction:column;gap:3px}.admin-mail-user-info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-mail-user-info small{color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-mail-role{padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:850}.admin-mail-selected{margin-top:14px;padding:14px;border:1px solid #bfdbfe;border-radius:15px;background:#eff6ff;display:flex;justify-content:space-between;align-items:center;gap:12px}.admin-mail-selected>div{display:flex;align-items:center;gap:11px;min-width:0}.admin-mail-selected>div>div{display:flex;min-width:0;flex-direction:column}.admin-mail-selected small{color:#2563eb;font-size:9px;font-weight:900;letter-spacing:1px}.admin-mail-selected strong{color:#0f172a}.admin-mail-selected span{color:#64748b;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-mail-selected button{border:0;background:#fff;color:#1d4ed8;border-radius:10px;padding:9px 11px;font-weight:800;cursor:pointer}.admin-mail-counter{text-align:right;margin-top:5px;color:#94a3b8;font-size:10px}.admin-mail-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.admin-mail-primary,.admin-mail-secondary{min-height:43px;padding:0 17px;border-radius:12px;font-weight:850;cursor:pointer}.admin-mail-primary{border:0;background:#0a66c2;color:#fff}.admin-mail-primary:disabled{opacity:.45;cursor:not-allowed}.admin-mail-secondary{border:1px solid #cbd5e1;background:#fff;color:#334155}.admin-mail-modal{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.48);backdrop-filter:blur(4px)}.admin-mail-modal-card{width:min(650px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 30px 80px rgba(15,23,42,.3)}.admin-mail-modal-head{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 24px;border-bottom:1px solid #e2e8f0}.admin-mail-modal-head span{color:#2563eb;font-size:10px;font-weight:900;letter-spacing:1.2px}.admin-mail-modal-head h2{margin:5px 0 0}.admin-mail-modal-head button{width:34px;height:34px;border:0;border-radius:10px;background:#f1f5f9;color:#475569;font-size:21px;cursor:pointer}.admin-mail-preview-meta{display:flex;flex-direction:column;gap:3px;margin:22px 24px 0;padding:13px 15px;border-radius:13px;background:#f8fafc}.admin-mail-preview-meta span{color:#64748b;font-size:12px}.admin-mail-modal-card h3{margin:22px 24px 12px;font-size:21px}.admin-mail-preview-message{margin:0 24px;padding:18px;border:1px solid #e2e8f0;border-radius:14px;color:#475569;line-height:1.7;word-break:break-word}.admin-mail-modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:22px 24px}.admin-mail-toast{position:fixed;right:22px;bottom:22px;z-index:21000;max-width:420px;padding:14px 17px;border-radius:13px;color:#fff;font-weight:750;box-shadow:0 14px 36px rgba(15,23,42,.22)}.admin-mail-toast.success{background:#15803d}.admin-mail-toast.error{background:#b91c1c}.hidden{display:none!important}@media(max-width:850px){.admin-mail-layout{grid-template-columns:1fr}.admin-mail-hero{align-items:flex-start}.admin-mail-card textarea{min-height:190px}}@media(max-width:560px){.admin-mail-page{padding:20px 10px 50px}.admin-mail-hero{flex-direction:column;padding:22px}.admin-mail-hero h1{font-size:27px}.admin-mail-back{width:100%;box-sizing:border-box;text-align:center}.admin-mail-card{padding:17px;border-radius:18px}.admin-mail-user-result{grid-template-columns:42px minmax(0,1fr)}.admin-mail-role{display:none}.admin-mail-selected{align-items:flex-start;flex-direction:column}.admin-mail-selected button{width:100%}.admin-mail-actions,.admin-mail-modal-actions{flex-direction:column-reverse}.admin-mail-actions button,.admin-mail-modal-actions button{width:100%}.admin-mail-toast{right:10px;left:10px;bottom:10px;max-width:none}}


/* =========================================================
   MAIL MERKEZİ - TOPLU GÖNDERİM
   ========================================================= */
.admin-mail-mode-card{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:22px;padding:20px 24px;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 10px 28px rgba(15,23,42,.05)}
.admin-mail-mode-label{display:block;margin-bottom:4px;color:#2563eb;font-size:10px;font-weight:900;letter-spacing:1.2px}.admin-mail-mode-card h2{margin:0;color:#0f172a;font-size:19px}.admin-mail-mode-options{display:grid;grid-template-columns:repeat(2,minmax(190px,1fr));gap:10px}.admin-mail-mode-option{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;border:1px solid #dbe3ee;border-radius:14px;background:#fff;cursor:pointer;transition:.18s ease}.admin-mail-mode-option:hover{border-color:#93c5fd;background:#f8fbff}.admin-mail-mode-option.active{border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.admin-mail-mode-option input{margin-top:3px;accent-color:#0a66c2}.admin-mail-mode-option span{display:flex;flex-direction:column;gap:3px}.admin-mail-mode-option strong{color:#0f172a;font-size:13px}.admin-mail-mode-option small{color:#64748b;font-size:11px;line-height:1.4}.admin-mail-bulk-summary{display:flex;align-items:center;gap:15px;padding:19px;border:1px solid #bfdbfe;border-radius:16px;background:linear-gradient(135deg,#eff6ff,#f5f3ff)}.admin-mail-bulk-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:#0a66c2;color:#fff;font-size:23px}.admin-mail-bulk-summary>div:last-child{display:flex;flex-direction:column}.admin-mail-bulk-summary strong{color:#0f172a;font-size:28px;line-height:1}.admin-mail-bulk-summary span{margin-top:5px;color:#64748b;font-size:12px}.admin-mail-bulk-warning{margin-top:13px;padding:14px 15px;border:1px solid #fed7aa;border-radius:13px;background:#fff7ed;color:#9a3412;font-size:12px;line-height:1.6}.admin-mail-bulk-confirm-body{padding:22px 24px}.admin-mail-bulk-confirm-body p{margin:0 0 18px;color:#475569;line-height:1.65}.admin-mail-bulk-confirm-body input{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:13px;padding:13px 14px;font:inherit;outline:none}.admin-mail-bulk-confirm-body input:focus{border-color:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.1)}.admin-mail-danger{background:#dc2626!important}.admin-mail-danger:hover{background:#b91c1c!important}
@media(max-width:850px){.admin-mail-mode-card{align-items:flex-start;flex-direction:column}.admin-mail-mode-options{width:100%}}
@media(max-width:560px){.admin-mail-mode-card{padding:17px}.admin-mail-mode-options{grid-template-columns:1fr}.admin-mail-mode-option{width:100%;box-sizing:border-box}}

/* =========================================================
   MAIL MERKEZİ - SEÇMELİ ALICI SİSTEMİ
   ========================================================= */
.admin-mail-selected-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 10px;padding-top:17px;border-top:1px solid #e2e8f0}.admin-mail-selected-head>div{display:flex;align-items:center;gap:9px}.admin-mail-selected-head strong{color:#0f172a;font-size:14px}.admin-mail-selected-head span{display:inline-flex;align-items:center;min-height:25px;padding:0 9px;border-radius:999px;background:#eaf3ff;color:#0a66c2;font-size:11px;font-weight:900}.admin-mail-clear-selected{border:0;background:transparent;color:#64748b;font-size:11px;font-weight:800;cursor:pointer}.admin-mail-clear-selected:hover:not(:disabled){color:#dc2626}.admin-mail-clear-selected:disabled{opacity:.45;cursor:not-allowed}.admin-mail-selected-list{display:flex;flex-direction:column;gap:8px;max-height:320px;overflow-y:auto;padding-right:3px}.admin-mail-selected-user{display:grid;grid-template-columns:42px minmax(0,1fr) 32px;align-items:center;gap:11px;padding:10px 11px;border:1px solid #dbe5f0;border-radius:14px;background:#fbfdff}.admin-mail-selected-user>div{display:flex;min-width:0;flex-direction:column;gap:3px}.admin-mail-selected-user strong{overflow:hidden;color:#0f172a;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.admin-mail-selected-user span{overflow:hidden;color:#64748b;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.admin-mail-selected-user>button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:9px;background:transparent;color:#94a3b8;font-size:18px;cursor:pointer}.admin-mail-selected-user>button:hover{background:#fee2e2;color:#dc2626}.admin-mail-select-result{grid-template-columns:28px 42px minmax(0,1fr) auto!important}.admin-mail-select-result.selected{border-color:#60a5fa!important;background:#eff6ff!important;box-shadow:0 0 0 3px rgba(59,130,246,.09)}.admin-mail-select-result:disabled{opacity:.55;cursor:not-allowed}.admin-mail-select-check{display:grid;place-items:center;width:24px;height:24px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0a66c2;font-size:14px;font-weight:900}.admin-mail-select-result.selected .admin-mail-select-check{border-color:#0a66c2;background:#0a66c2;color:#fff}.admin-mail-preview-recipients{display:flex;flex-wrap:wrap;gap:6px;margin:0 24px 18px}.admin-mail-preview-recipients span{display:inline-flex;align-items:center;min-height:27px;padding:0 9px;border-radius:999px;background:#eef6ff;color:#1d4ed8;font-size:11px;font-weight:800}
@media(max-width:620px){.admin-mail-selected-head{align-items:flex-start;flex-direction:column}.admin-mail-select-result{grid-template-columns:26px 38px minmax(0,1fr)!important}.admin-mail-select-result .admin-mail-role{display:none}.admin-mail-selected-user{grid-template-columns:38px minmax(0,1fr) 30px}.admin-mail-selected-list{max-height:270px}}

/* =========================================================
   MAIL MERKEZİ - LİSTE TABANLI ALICI SEÇİMİ
   ========================================================= */
.admin-mail-layout-list{grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr)}
.admin-mail-recipient-card{min-width:0}
.admin-mail-compose-card{position:sticky;top:92px;align-self:start}
.admin-mail-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.admin-mail-list-search{flex:1;min-width:220px}
.admin-mail-list-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-mail-small-button{min-height:39px;padding:0 12px;font-size:11px;white-space:nowrap}
.admin-mail-list-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:0 2px;color:#64748b;font-size:11px}
.admin-mail-list-summary strong{color:#0a66c2;font-size:12px}
.admin-mail-user-list-panel{display:flex;flex-direction:column;gap:7px;max-height:520px;overflow-y:auto;padding:4px 5px 4px 1px}
.admin-mail-list-user{display:grid;grid-template-columns:30px 44px minmax(0,1fr) auto 72px;align-items:center;gap:11px;padding:11px 12px;border:1px solid #dbe5f0;border-radius:15px;background:#fff;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.admin-mail-list-user:hover{border-color:#bfdbfe;background:#f8fbff}
.admin-mail-list-user.selected{border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 3px rgba(59,130,246,.08)}
.admin-mail-user-checkbox{display:grid;place-items:center;width:26px;height:26px;cursor:pointer}
.admin-mail-user-checkbox input{position:absolute;opacity:0;pointer-events:none}
.admin-mail-user-checkbox span{display:grid;place-items:center;width:22px;height:22px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;transition:.16s ease}
.admin-mail-user-checkbox input:checked+span{border-color:#0a66c2;background:#0a66c2}
.admin-mail-user-checkbox input:checked+span::after{content:"✓";color:#fff;font-size:13px;font-weight:900}
.admin-mail-user-checkbox input:disabled+span{opacity:.45;cursor:not-allowed}
.admin-mail-list-user-info{display:flex;min-width:0;flex-direction:column;gap:2px}
.admin-mail-list-user-info strong{overflow:hidden;color:#0f172a;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.admin-mail-list-user-info span{overflow:hidden;color:#475569;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.admin-mail-list-user-info small{overflow:hidden;color:#94a3b8;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.admin-mail-row-select{min-height:34px;padding:0 10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#475569;font-size:11px;font-weight:850;cursor:pointer}
.admin-mail-row-select:hover:not(:disabled){border-color:#93c5fd;color:#0a66c2;background:#f8fbff}
.admin-mail-row-select.selected{border-color:#0a66c2;background:#0a66c2;color:#fff}
.admin-mail-row-select:disabled{opacity:.45;cursor:not-allowed}
.admin-mail-selected-compact{max-height:210px}
@media(max-width:1050px){.admin-mail-layout-list{grid-template-columns:1fr}.admin-mail-compose-card{position:static}.admin-mail-user-list-panel{max-height:460px}}
@media(max-width:700px){.admin-mail-list-toolbar{align-items:stretch;flex-direction:column}.admin-mail-list-actions{display:grid;grid-template-columns:repeat(3,1fr)}.admin-mail-list-actions button{width:100%}.admin-mail-list-user{grid-template-columns:28px 40px minmax(0,1fr) 66px}.admin-mail-list-user .admin-mail-role{display:none}.admin-mail-user-list-panel{max-height:58vh}}
@media(max-width:500px){.admin-mail-list-actions{grid-template-columns:1fr}.admin-mail-list-user{grid-template-columns:26px 36px minmax(0,1fr)}.admin-mail-list-user .admin-mail-row-select{display:none}.admin-mail-list-user .admin-mail-avatar{width:36px;height:36px}.admin-mail-list-summary{align-items:flex-start;flex-direction:column;gap:4px}.admin-mail-selected-compact{max-height:180px}}

/* =========================================================
   ORTAK BUTON TASARIM SİSTEMİ
   ========================================================= */
:root {
  --button-height: 44px;
  --button-height-compact: 38px;
  --button-radius: 12px;
  --button-primary: #0a66c2;
  --button-primary-hover: #07539f;
  --button-primary-active: #064884;
  --button-secondary: #ffffff;
  --button-secondary-hover: #f4f8fd;
  --button-secondary-border: #cdd9e7;
  --button-secondary-text: #26415f;
  --button-danger: #dc2626;
  --button-danger-hover: #b91c1c;
  --button-danger-soft: #fff1f2;
  --button-danger-soft-hover: #ffe4e6;
  --button-focus-ring: 0 0 0 4px rgba(10, 102, 194, 0.18);
  --button-shadow: 0 5px 13px rgba(10, 102, 194, 0.18);
  --button-shadow-hover: 0 8px 20px rgba(10, 102, 194, 0.24);
}

button,
.primary-link-btn,
.secondary-link-btn,
.fx-primary-link,
.fx-secondary-link,
.account-main-btn,
.admin-mail-back,
.google-login-btn {
  max-width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: var(--button-height);
  padding: 0 16px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  background: linear-gradient(135deg, #1674cf, var(--button-primary));
  color: #ffffff;
  box-shadow: var(--button-shadow);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease;
}

button:hover:not(:disabled):not([aria-disabled="true"]) {
  background: linear-gradient(135deg, #0e64b7, var(--button-primary-hover));
  box-shadow: var(--button-shadow-hover);
  transform: translateY(-1px);
}

button:active:not(:disabled):not([aria-disabled="true"]) {
  background: var(--button-primary-active);
  box-shadow: 0 2px 7px rgba(10, 102, 194, 0.18);
  transform: translateY(0);
}

button:focus-visible,
.primary-link-btn:focus-visible,
.secondary-link-btn:focus-visible,
.fx-primary-link:focus-visible,
.fx-secondary-link:focus-visible,
.account-main-btn:focus-visible,
.admin-mail-back:focus-visible,
.google-login-btn:focus-visible,
.nav-menu a:focus-visible,
.nav-management-dropdown a:focus-visible,
.fx-content-roles input:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: var(--button-focus-ring);
}

button:disabled,
button[aria-disabled="true"] {
  border-color: #dce3eb;
  background: #e7ebf0;
  color: #8a97a8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.78;
  pointer-events: none;
}

button svg,
.primary-link-btn svg,
.secondary-link-btn svg,
.fx-primary-link svg,
.fx-secondary-link svg {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.primary-link-btn,
.fx-primary-link,
.account-main-btn,
.content-primary-button,
.primary-btn,
.fx-primary-btn,
.mod-primary-btn,
.admin-mail-primary,
.verify-main-btn {
  min-height: var(--button-height);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  background: linear-gradient(135deg, #1674cf, var(--button-primary));
  color: #ffffff;
  box-shadow: var(--button-shadow);
  font-weight: 850;
  text-decoration: none;
}

:is(
  .primary-link-btn,
  .fx-primary-link,
  .account-main-btn,
  .content-primary-button,
  .primary-btn,
  .fx-primary-btn,
  .mod-primary-btn,
  .admin-mail-primary,
  .verify-main-btn
):hover:not(:disabled) {
  border-color: transparent;
  background: linear-gradient(135deg, #0e64b7, var(--button-primary-hover));
  color: #ffffff;
  box-shadow: var(--button-shadow-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.secondary-link-btn,
.fx-secondary-link,
.fx-secondary-btn,
.ghost-btn,
.content-secondary-button,
.content-ghost-button,
.admin-mail-secondary,
.admin-mail-back,
.mod-light-btn,
.google-login-btn {
  min-height: var(--button-height);
  padding: 0 16px;
  border: 1px solid var(--button-secondary-border);
  border-radius: var(--button-radius);
  background: var(--button-secondary);
  color: var(--button-secondary-text);
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.06);
  font-weight: 800;
  text-decoration: none;
}

:is(
  .secondary-link-btn,
  .fx-secondary-link,
  .fx-secondary-btn,
  .ghost-btn,
  .content-secondary-button,
  .content-ghost-button,
  .admin-mail-secondary,
  .admin-mail-back,
  .mod-light-btn,
  .google-login-btn
):hover:not(:disabled) {
  border-color: #9cb4ce;
  background: var(--button-secondary-hover);
  color: #0a66c2;
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

.danger,
.danger-btn,
.fx-danger-btn,
.mod-danger-btn,
.admin-mail-danger,
.report-center-card form button {
  border-color: transparent !important;
  background: linear-gradient(135deg, #ef4444, var(--button-danger)) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 13px rgba(220, 38, 38, 0.2);
}

:is(
  .danger,
  .danger-btn,
  .fx-danger-btn,
  .mod-danger-btn,
  .admin-mail-danger,
  .report-center-card form button
):hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626, var(--button-danger-hover)) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25);
}

.secondary-danger,
.comment-delete-btn,
.msg-delete-btn,
.notification-card-delete,
.admin-mail-selected > button,
.admin-mail-selected-user > button {
  border-color: #fecdd3 !important;
  background: var(--button-danger-soft) !important;
  color: #be123c !important;
  box-shadow: none;
}

:is(
  .secondary-danger,
  .comment-delete-btn,
  .msg-delete-btn,
  .notification-card-delete,
  .admin-mail-selected > button,
  .admin-mail-selected-user > button
):hover:not(:disabled) {
  border-color: #fda4af !important;
  background: var(--button-danger-soft-hover) !important;
  color: #9f1239 !important;
  box-shadow: 0 5px 12px rgba(190, 18, 60, 0.1);
}

.admin-btn {
  min-height: var(--button-height);
  border-radius: var(--button-radius);
  box-shadow: 0 3px 10px rgba(146, 64, 14, 0.08);
}

.pro-btn,
.nav-management-button {
  min-height: var(--button-height);
  border-radius: var(--button-radius);
  box-shadow: 0 3px 10px rgba(109, 40, 217, 0.09);
}

.logout-btn,
.logout-link {
  min-height: var(--button-height);
  border: 1px solid #fecdd3 !important;
  border-radius: var(--button-radius);
  background: #fff1f2 !important;
  color: #be123c !important;
  box-shadow: none;
}

:is(.logout-btn, .logout-link):hover {
  border-color: #fda4af !important;
  background: #ffe4e6 !important;
  color: #9f1239 !important;
  box-shadow: 0 5px 12px rgba(190, 18, 60, 0.1);
}

.auth-link-button {
  min-height: auto;
  padding: 2px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #0a66c2;
  box-shadow: none;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
}

.auth-link-button:hover:not(:disabled) {
  background: transparent;
  color: #004182;
  box-shadow: none;
  text-decoration: underline;
  transform: none;
}

.mobile-menu-btn {
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--button-radius);
}

.notification-trigger,
.notification-btn,
.notification-panel-close,
.notification-card-delete,
.moderation-modal-close,
.admin-mail-modal-head button,
.admin-mail-selected-user > button {
  display: inline-grid;
  min-width: 38px;
  width: 38px;
  min-height: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #d9e2ec;
  border-radius: 11px;
  background: #ffffff;
  color: #476079;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

:is(
  .notification-trigger,
  .notification-btn,
  .notification-panel-close,
  .moderation-modal-close,
  .admin-mail-modal-head button
):hover:not(:disabled) {
  border-color: #b7c7d9;
  background: #f4f8fd;
  color: #0a66c2;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.1);
}

.forum-pagination button,
.post-engagement button,
.comment-solution-btn,
.content-engagement-panel button,
.content-card-actions button,
.mod-report-actions button,
.mod-user-actions button,
.forum-filter-actions button,
.msg-head-actions button,
.msg-delete-btn,
.msg-load-older,
.notification-tab,
.notification-mark-all,
.notification-clear-all,
.notification-panel-state button,
.admin-mail-small-button,
.admin-mail-row-select,
.report-user-search button,
.fx-list-notice button {
  min-height: var(--button-height-compact);
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
}

.post-engagement button,
.comment-solution-btn,
.content-engagement-panel button,
.content-card-actions button,
.mod-report-actions button,
.mod-user-actions button,
.forum-pagination button,
.msg-load-older,
.notification-tab,
.notification-mark-all,
.notification-clear-all,
.admin-mail-row-select,
.fx-list-notice button {
  border-color: var(--button-secondary-border);
  background: #ffffff;
  color: #31506f;
  box-shadow: none;
}

:is(
  .post-engagement button,
  .comment-solution-btn,
  .content-engagement-panel button,
  .content-card-actions button,
  .mod-report-actions button,
  .mod-user-actions button,
  .forum-pagination button,
  .msg-load-older,
  .notification-tab,
  .notification-mark-all,
  .notification-clear-all,
  .admin-mail-row-select,
  .fx-list-notice button
):hover:not(:disabled) {
  border-color: #9cb4ce;
  background: #edf5ff;
  color: #0a66c2;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

:is(
  .post-engagement button,
  .comment-solution-btn,
  .content-engagement-panel button,
  .notification-tab,
  .admin-mail-row-select
).active,
:is(
  .post-engagement button,
  .content-engagement-panel button
)[aria-pressed="true"] {
  border-color: #79a9e3;
  background: #e7f2ff;
  color: #075aa9;
  box-shadow: inset 0 0 0 1px rgba(10, 102, 194, 0.08);
}

.msg-conversation,
.notification-card-main,
.report-user-item,
.admin-mail-user-result,
.dash-side-item {
  min-height: 0;
  box-shadow: none;
  transform: none;
}

:is(
  .msg-conversation,
  .notification-card-main,
  .report-user-item,
  .admin-mail-user-result,
  .dash-side-item
):hover:not(:disabled) {
  box-shadow: none;
  transform: none;
}

.msg-conversation:focus-visible,
.notification-card-main:focus-visible,
.report-user-item:focus-visible,
.admin-mail-user-result:focus-visible,
.dash-side-item:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px rgba(10, 102, 194, 0.2);
}

.nav-menu-compact a,
.nav-management-button {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 11px;
  font-weight: 800;
}

.nav-management-button {
  border: 1px solid #ddd0fa;
  box-shadow: none;
}

.notification-btn {
  min-width: 40px;
  width: 40px;
  min-height: 38px;
  height: 38px;
}

.account-card button,
.account-main-btn,
.msg-top button,
.msg-form button,
.post-form button,
.mini-form button,
.comment-form-box button,
.content-search-form button,
.report-card form button,
.report-center-card form button {
  min-height: var(--button-height);
  border-radius: var(--button-radius);
}

.fx-content-roles label {
  min-width: 0;
}

.fx-content-role-copy > span {
  overflow: visible;
}

.fx-content-role-copy strong,
.fx-content-role-copy small {
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

@media (max-width: 600px) {
  :root {
    --button-height: 46px;
    --button-height-compact: 42px;
  }

  button {
    padding-right: 15px;
    padding-left: 15px;
    font-size: 14px;
  }

  .account-card button,
  .account-main-btn,
  .auth-form button,
  .google-login-btn,
  .admin-mail-actions button,
  .admin-mail-modal-actions button,
  .forum-filter-actions button,
  .fx-request-actions button {
    width: 100%;
  }

  .secondary-danger {
    margin-left: 0;
  }

  .notification-trigger,
  .notification-btn,
  .notification-panel-close,
  .notification-card-delete,
  .moderation-modal-close,
  .admin-mail-modal-head button,
  .admin-mail-selected-user > button {
    min-width: 42px;
    width: 42px;
    min-height: 42px;
    height: 42px;
  }

  .msg-head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .msg-head-actions button {
    width: 100%;
  }
}

button:disabled,
button[aria-disabled="true"],
:is(
  .danger,
  .danger-btn,
  .fx-danger-btn,
  .mod-danger-btn,
  .admin-mail-danger,
  .report-center-card form button
):disabled {
  border-color: #dce3eb !important;
  background: #e7ebf0 !important;
  color: #8a97a8 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.78;
  transform: none !important;
}

/* =========================================================
   ŞİKÂYET KULLANICI SEÇİMİ - KONTRAST DÜZELTMESİ
   ========================================================= */
button.report-user-item {
  position: relative;
  min-height: 66px;
  padding: 10px 48px 10px 12px;
  border: 1px solid #dfe7f0;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  transform: none;
}

button.report-user-item:hover:not(:disabled) {
  border-color: #9bbbe5;
  background: #f6faff;
  color: #172033;
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

button.report-user-item.selected,
button.report-user-item.selected:hover:not(:disabled) {
  border-color: #5f91dc;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.12), transparent 58%),
    #f6faff;
  color: #172033;
  box-shadow:
    inset 4px 0 0 #2563eb,
    0 8px 20px rgba(37, 99, 235, 0.12);
  transform: none;
}

button.report-user-item.selected::after {
  position: absolute;
  top: 50%;
  right: 15px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  content: "✓";
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  font-size: 13px;
  font-weight: 900;
  transform: translateY(-50%);
}

button.report-user-item.selected .report-user-avatar {
  background: linear-gradient(135deg, #2563eb, #183a8d);
  box-shadow: 0 0 0 3px #ffffff, 0 5px 12px rgba(37, 99, 235, 0.2);
}

button.report-user-item strong {
  color: #121a2b;
}

button.report-user-item span {
  color: #175db7;
}

button.report-user-item small {
  color: #65758a;
}

/* =========================================================
   FORUM ETKİLEŞİM ARAÇ ÇUBUĞU
   ========================================================= */
.post-engagement {
  width: fit-content;
  max-width: 100%;
  gap: 9px;
  margin-top: 22px;
  padding: 9px;
  border: 1px solid #e1e9f3;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #f4f7fb);
  box-shadow: inset 0 1px 0 #ffffff;
}

.post-engagement button.post-engagement-button {
  min-height: 44px;
  padding: 5px 8px 5px 7px;
  gap: 8px;
  border: 1px solid #d6e1ee;
  border-radius: 12px;
  background: #ffffff;
  color: #253c58;
  box-shadow: 0 4px 11px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  font-weight: 850;
}

.post-engagement button.post-engagement-button:hover:not(:disabled) {
  border-color: #9cb6d5;
  background: #ffffff;
  color: #0f4f91;
  box-shadow: 0 8px 17px rgba(15, 23, 42, 0.11);
  transform: translateY(-2px);
}

.post-engagement-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #edf4fc;
  color: #3e6fa6;
}

.post-engagement-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-engagement-bookmark .post-engagement-icon svg,
.post-engagement-follow .post-engagement-icon svg {
  fill: currentColor;
  stroke: none;
}

.post-engagement-like .post-engagement-icon {
  background: #fff0f3;
  color: #d53b62;
}

.post-engagement-bookmark .post-engagement-icon {
  background: #fff8e7;
  color: #b7791f;
}

.post-engagement-follow .post-engagement-icon {
  background: #eef1ff;
  color: #5b62d6;
}

.post-engagement-label {
  white-space: nowrap;
}

.post-engagement-count {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  place-items: center;
  border-radius: 8px;
  background: #edf2f7;
  color: #486078;
  font-size: 11px;
  font-weight: 900;
}

.post-engagement button.post-engagement-button.active,
.post-engagement button.post-engagement-button[aria-pressed="true"],
.post-engagement button.post-engagement-button.active:hover:not(:disabled) {
  border-color: #6d9fe3;
  background: linear-gradient(135deg, #edf5ff, #ffffff);
  color: #075aa9;
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.08),
    0 7px 16px rgba(37, 99, 235, 0.12);
}

.post-engagement button.post-engagement-button.active .post-engagement-icon,
.post-engagement button.post-engagement-button[aria-pressed="true"] .post-engagement-icon {
  background: #2563eb;
  color: #ffffff;
}

.post-engagement button.post-engagement-button.active .post-engagement-count,
.post-engagement button.post-engagement-button[aria-pressed="true"] .post-engagement-count {
  background: #dbeafe;
  color: #1d4ed8;
}

.post-detail-actions .danger-btn {
  gap: 8px;
}

.post-detail-actions .danger-btn::before,
.comment-delete-btn::before,
.comment-solution-btn::before {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 900;
}

.post-detail-actions .danger-btn::before,
.comment-delete-btn::before {
  content: "×";
  background: rgba(255, 255, 255, 0.18);
}

.comment-delete-btn {
  gap: 7px;
  border: 1px solid #fecdd3 !important;
  box-shadow: 0 3px 9px rgba(190, 18, 60, 0.07);
}

.comment-delete-btn::before {
  background: #ffe4e6;
}

.comment-solution-btn {
  gap: 7px;
  border-color: #b9d7c6;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  color: #187044;
  box-shadow: 0 3px 9px rgba(22, 101, 52, 0.07);
}

.comment-solution-btn::before {
  content: "✓";
  background: #dcfce7;
  color: #15803d;
}

.comment-solution-btn:hover:not(:disabled) {
  border-color: #79b38f;
  background: #ecfdf3;
  color: #126136;
  box-shadow: 0 7px 15px rgba(22, 101, 52, 0.11);
}

@media (max-width: 600px) {
  button.report-user-item {
    min-height: 64px;
    padding-right: 45px;
  }

  .post-engagement {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .post-engagement button.post-engagement-button {
    width: 100%;
    justify-content: flex-start;
  }

  .post-engagement-count {
    margin-left: auto;
  }
}

/* =========================================================
   RESPONSIVE NAVBAR WINDOW FIX
   ========================================================= */

.navbar {
  display: block !important;
  height: auto;
  min-height: 68px;
  padding: 0 !important;
  align-items: stretch;
  box-sizing: border-box;
}

@media (max-width: 1320px) {
  .nav-inner-compact {
    position: relative;
    flex-wrap: nowrap;
  }

  .mobile-menu-btn {
    margin-left: auto;
  }

  .nav-menu-compact {
    position: absolute;
    top: calc(100% - 5px);
    right: 20px;
    left: auto;
    z-index: 3000;
    display: none;
    width: min(360px, calc(100vw - 28px));
    min-width: 0;
    max-height: calc(100vh - 92px);
    margin: 0;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    box-sizing: border-box;
  }

  .nav-menu-compact.show {
    display: block;
  }

  .nav-primary-group,
  .nav-action-group {
    width: 100%;
    align-items: stretch;
    gap: 4px;
  }

  .nav-action-group {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid #e8edf3;
  }

  .nav-menu-compact a,
  .nav-management-button,
  .nav-menu-compact .logout-form,
  .nav-menu-compact .logout-link,
  .nav-menu-compact .notification-wrap,
  .nav-menu-compact .notification-trigger {
    width: 100%;
    box-sizing: border-box;
  }

  .nav-menu-compact a,
  .nav-management-button,
  .nav-menu-compact .logout-link,
  .nav-menu-compact .notification-trigger {
    min-height: 42px;
    justify-content: flex-start;
    padding-right: 12px;
    padding-left: 12px;
    border-radius: 11px;
  }

  .nav-menu-compact .notification-trigger {
    display: flex;
    gap: 9px;
  }

  .nav-menu-compact .notification-trigger::after {
    content: var(--i18n-notifications, "Bildirimler");
    font-weight: 800;
  }
}

@media (max-width: 600px) {
  .nav-inner-compact {
    min-height: 64px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .nav-menu-compact {
    right: 14px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 82px);
    border-radius: 16px;
  }
}

/* =========================================================
   FINAL DARK THEME COMPATIBILITY LAYER
   ========================================================= */

html[data-theme="dark"],
html[data-theme="midnight"] {
  scrollbar-color: var(--border) var(--bg);
}

html[data-theme="dark"] body,
html[data-theme="midnight"] body {
  background: var(--bg) !important;
  color: var(--text);
}

html[data-theme="dark"] ::selection,
html[data-theme="midnight"] ::selection {
  background: color-mix(in srgb, var(--primary) 45%, transparent);
  color: var(--text-strong);
}

html[data-theme="dark"] :is(.navbar, .nav-menu-compact, footer),
html[data-theme="midnight"] :is(.navbar, .nav-menu-compact, footer) {
  border-color: var(--border) !important;
  background: var(--card) !important;
  color: var(--text);
}

html[data-theme="dark"] :is(
  [class$="-card"], [class*="-card "],
  [class$="-panel"], [class*="-panel "],
  [class$="-toolbar"], [class*="-toolbar "],
  [class$="-sidebar"], [class*="-sidebar "],
  [class$="-table"], [class*="-table "],
  [class$="-modal-card"], [class*="-modal-card "]
),
html[data-theme="midnight"] :is(
  [class$="-card"], [class*="-card "],
  [class$="-panel"], [class*="-panel "],
  [class$="-toolbar"], [class*="-toolbar "],
  [class$="-sidebar"], [class*="-sidebar "],
  [class$="-table"], [class*="-table "],
  [class$="-modal-card"], [class*="-modal-card "]
) {
  border-color: var(--border) !important;
  background: var(--card) !important;
  color: var(--text);
}

html[data-theme="dark"] :is(
  .account-hero, .pro-admin-hero, .friends-hero,
  .admin-mail-hero, .fx-profile-hero
),
html[data-theme="midnight"] :is(
  .account-hero, .pro-admin-hero, .friends-hero,
  .admin-mail-hero, .fx-profile-hero
) {
  border-color: var(--border) !important;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 18%, transparent), transparent 38%),
    linear-gradient(135deg, var(--card), var(--surface-raised)) !important;
  color: var(--text);
}

html[data-theme="dark"] :is(
  .account-check-list label, .account-push-permission,
  .audit-log-item, .report-user-item, .dash-side-item,
  .admin-mail-user-result, .admin-mail-list-user,
  .admin-mail-selected-user, .notification-item,
  .notification-card, .post-engagement, .forum-filter-card,
  .mod-closed-info, .admin-mail-preview-meta
),
html[data-theme="midnight"] :is(
  .account-check-list label, .account-push-permission,
  .audit-log-item, .report-user-item, .dash-side-item,
  .admin-mail-user-result, .admin-mail-list-user,
  .admin-mail-selected-user, .notification-item,
  .notification-card, .post-engagement, .forum-filter-card,
  .mod-closed-info, .admin-mail-preview-meta
) {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
  color: var(--text);
  box-shadow: none;
}

html[data-theme="dark"] :is(
  .report-user-item:hover, .report-user-item.selected,
  .notification-card.is-unread, .admin-mail-list-user.selected,
  .admin-mail-mode-option.active
),
html[data-theme="midnight"] :is(
  .report-user-item:hover, .report-user-item.selected,
  .notification-card.is-unread, .admin-mail-list-user.selected,
  .admin-mail-mode-option.active
) {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--border)) !important;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface-soft)) !important;
}

html[data-theme="dark"] :is(input, textarea, select),
html[data-theme="midnight"] :is(input, textarea, select) {
  border-color: var(--border) !important;
  background: var(--input-bg) !important;
  color: var(--text) !important;
  box-shadow: none;
}

html[data-theme="dark"] :is(input, textarea, select):focus,
html[data-theme="midnight"] :is(input, textarea, select):focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent) !important;
}

html[data-theme="dark"] :is(input, textarea)::placeholder,
html[data-theme="midnight"] :is(input, textarea)::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent) !important;
}

html[data-theme="dark"] option,
html[data-theme="midnight"] option {
  background: var(--input-bg);
  color: var(--text);
}

html[data-theme="dark"] :is(table, thead, tbody, tr, th, td),
html[data-theme="midnight"] :is(table, thead, tbody, tr, th, td) {
  border-color: var(--border) !important;
  color: var(--text);
}

html[data-theme="dark"] :is(th, thead td),
html[data-theme="midnight"] :is(th, thead td) {
  background: var(--surface-soft) !important;
  color: var(--text-strong) !important;
}

html[data-theme="dark"] tbody td,
html[data-theme="midnight"] tbody td {
  background: var(--card) !important;
}

html[data-theme="dark"] main :is(p, small),
html[data-theme="midnight"] main :is(p, small) {
  color: var(--muted);
}

html[data-theme="dark"] main :is(h1, h2, h3, h4, h5, h6),
html[data-theme="midnight"] main :is(h1, h2, h3, h4, h5, h6) {
  color: var(--text-strong) !important;
}

html[data-theme="dark"] :is(
  .account-info-row, .profile-info-row, .nav-action-group,
  .notification-panel-header, .notification-panel-toolbar,
  .notification-panel-footer, .msg-form, .msg-chat-head,
  .admin-mail-modal-head, hr
),
html[data-theme="midnight"] :is(
  .account-info-row, .profile-info-row, .nav-action-group,
  .notification-panel-header, .notification-panel-toolbar,
  .notification-panel-footer, .msg-form, .msg-chat-head,
  .admin-mail-modal-head, hr
) {
  border-color: var(--border) !important;
}

html[data-theme="dark"] :is(
  .message-bubble.other, .msg-row.other .msg-bubble,
  .ui-modal-cancel, .notification-panel-close,
  .post-engagement button.post-engagement-button,
  .fx-list-notice button
),
html[data-theme="midnight"] :is(
  .message-bubble.other, .msg-row.other .msg-bubble,
  .ui-modal-cancel, .notification-panel-close,
  .post-engagement button.post-engagement-button,
  .fx-list-notice button
) {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
  color: var(--text) !important;
  box-shadow: none;
}

html[data-theme="dark"] :is(
  .secondary-link-btn, .fx-secondary-link, .fx-secondary-btn,
  .ghost-btn, .content-secondary-button, .content-ghost-button,
  .admin-mail-secondary, .admin-mail-back, .mod-light-btn,
  .google-login-btn
),
html[data-theme="midnight"] :is(
  .secondary-link-btn, .fx-secondary-link, .fx-secondary-btn,
  .ghost-btn, .content-secondary-button, .content-ghost-button,
  .admin-mail-secondary, .admin-mail-back, .mod-light-btn,
  .google-login-btn
) {
  border-color: var(--button-secondary-border) !important;
  background: var(--button-secondary) !important;
  color: var(--button-secondary-text) !important;
}

html[data-theme="dark"] button:disabled,
html[data-theme="dark"] button[aria-disabled="true"],
html[data-theme="midnight"] button:disabled,
html[data-theme="midnight"] button[aria-disabled="true"] {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
  color: var(--muted) !important;
}

html[data-theme="dark"] :is(.notification-panel, .ui-modal, .admin-mail-modal-card),
html[data-theme="midnight"] :is(.notification-panel, .ui-modal, .admin-mail-modal-card) {
  border: 1px solid var(--border);
  background: var(--card) !important;
  color: var(--text);
}

html[data-theme="dark"] .interface-preferences-card::after,
html[data-theme="midnight"] .interface-preferences-card::after {
  background: color-mix(in srgb, var(--primary) 16%, transparent);
}

/* =========================================================
   DARK THEME CONTRAST AND READABILITY
   ========================================================= */

:is(html[data-theme="dark"], html[data-theme="midnight"]) {
  color-scheme: dark;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.nav-primary-group > a, .nav-menu-compact > a) {
  color: var(--text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.nav-primary-group > a, .nav-menu-compact > a):hover {
  background: var(--surface-soft) !important;
  color: var(--primary) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .nav-primary-group > a.active {
  background: var(--button-primary) !important;
  color: var(--on-primary) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.nav-user, .nav-user-link, .notification-trigger, .notification-btn) {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
  color: var(--text-strong) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.nav-report-link, .logout-link, .logout-btn) {
  border-color: color-mix(in srgb, var(--danger-text) 42%, var(--border)) !important;
  background: var(--danger-surface) !important;
  color: var(--danger-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.nav-management-button, .pro-btn) {
  border-color: color-mix(in srgb, var(--purple-text) 38%, var(--border)) !important;
  background: var(--purple-surface) !important;
  color: var(--purple-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .nav-management-dropdown {
  border-color: var(--border) !important;
  background: var(--card) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .nav-management-dropdown a {
  background: transparent !important;
  color: var(--text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .nav-management-dropdown a:hover {
  background: var(--surface-soft) !important;
  color: var(--primary) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :where(main, .notification-panel, .ui-modal, .admin-mail-modal-card)
  :is(h1, h2, h3, h4, h5, h6, strong, label, legend) {
  color: var(--text-strong) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :where(main, .notification-panel, .ui-modal, .admin-mail-modal-card)
  :is(p, li, dd, dt, blockquote) {
  color: var(--text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :where(
    [class$="-card"], [class*="-card "],
    [class$="-panel"], [class*="-panel "],
    [class$="-box"], [class*="-box "],
    [class$="-notice"], [class*="-notice "],
    [class$="-hero"], [class*="-hero "],
    [class$="-toolbar"], [class*="-toolbar "],
    [class$="-sidebar"], [class*="-sidebar "],
    [class$="-modal"], [class*="-modal "]
  ) :is(span, p, li, dd, dt) {
  color: var(--text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :where(
    [class$="-card"], [class*="-card "],
    [class$="-panel"], [class*="-panel "],
    [class$="-box"], [class*="-box "],
    [class$="-notice"], [class*="-notice "],
    [class$="-hero"], [class*="-hero "],
    [class$="-toolbar"], [class*="-toolbar "],
    [class$="-sidebar"], [class*="-sidebar "],
    [class$="-modal"], [class*="-modal "]
  ) :is(small, time) {
  color: var(--muted) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :where(main, .notification-panel, .ui-modal, .admin-mail-modal-card)
  :is(a, button, [role="button"]) :is(span, strong, small) {
  color: inherit !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .dash-stat-card span, .mod-stats span, .dash-side-item span,
    .dash-module-grid p, .category-btn span, .post-stats,
    .post-detail-date, .content-section-description,
    .content-card-meta, .content-aside-card p,
    .content-author-panel > small, .content-detail-facts small,
    .fx-muted, .fx-empty, .fx-account-state small,
    .fx-content-role-copy small, .admin-mail-user-info small,
    .admin-mail-list-user-info span, .admin-mail-list-user-info small,
    .admin-mail-selected-user span, .notification-card-message,
    .notification-card-meta, .account-info-row span
  ) {
  color: var(--muted) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .hero-badge, .category-badge, .topic-chip,
    .dash-label, .mod-label, .report-label,
    .content-card-tag, .content-tag-row span,
    .profile-role-badge.user, .fx-pill.blue,
    .mod-status.reviewing, .admin-mail-role,
    .admin-mail-selected-head span, .admin-mail-preview-recipients span
  ) {
  border-color: color-mix(in srgb, var(--info-text) 30%, var(--border)) !important;
  background: var(--info-surface) !important;
  color: var(--info-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .success-box, .verify-status, .profile-verify-badge.ok,
    .fx-account-state .fx-state-active, .mod-status.resolved,
    .mod-user-statuses .green, .account-push-permission.success
  ) {
  border-color: color-mix(in srgb, var(--success-text) 30%, var(--border)) !important;
  background: var(--success-surface) !important;
  color: var(--success-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .warning-box, .verify-warning, .profile-verify-badge.wait,
    .fx-list-notice, .mod-status.pending, .mod-user-statuses .orange,
    .admin-mail-bulk-warning, .admin-btn
  ) {
  border-color: color-mix(in srgb, var(--warning-text) 30%, var(--border)) !important;
  background: var(--warning-surface) !important;
  color: var(--warning-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .danger-zone, .secondary-danger, .mod-status.rejected,
    .mod-user-statuses .red, .fx-pill.red, .admin-mail-empty.error
  ) {
  border-color: color-mix(in srgb, var(--danger-text) 32%, var(--border)) !important;
  background: var(--danger-surface) !important;
  color: var(--danger-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .profile-role-badge.pro_admin, .mod-user-statuses .purple,
    .notification-card-icon--friend_accept
  ) {
  border-color: color-mix(in srgb, var(--purple-text) 30%, var(--border)) !important;
  background: var(--purple-surface) !important;
  color: var(--purple-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.notification-card:hover, .notification-card.is-unread:hover) {
  border-color: color-mix(in srgb, var(--primary) 52%, var(--border)) !important;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-soft)) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(input, textarea, select) {
  color-scheme: dark;
}

/* =========================================================
   DARK THEME SURFACE REFINEMENT
   ========================================================= */

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.auth-page, .legal-page, .error-page, body[data-content-page]) {
  background: var(--bg) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .hero-content, .community-hero, .admin-hero, .pro-admin-hero,
    .friends-hero, .account-hero, .dash-hero, .mod-head,
    .report-center-hero, .content-hero
  ) {
  border-color: var(--border) !important;
  background:
    radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--primary) 20%, transparent),
      transparent 38%
    ),
    linear-gradient(135deg, var(--card), var(--surface-raised)) !important;
  color: var(--text);
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .module-section, .category-filter, .security-item, .verify-step,
    .auth-feature-list > div, .auth-resend-form,
    .profile-meta span, .profile-road-item, .image-upload-grid form,
    .message-list, .msg-list, .msg-attachment-panel,
    .content-module-meta > div, .moderation-modal-details,
    .selected-report-user, .notification-panel-toolbar,
    .notification-tabs, .notification-panel-footer, .post-engagement,
    .admin-mail-bulk-summary, .admin-mail-selected
  ) {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
  color: var(--text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .forum-pagination button, .post-engagement button,
    .comment-solution-btn, .content-engagement-panel button,
    .content-card-actions button, .mod-report-actions button,
    .mod-user-actions button, .forum-filter-actions button,
    .msg-load-older, .notification-tab, .notification-mark-all,
    .notification-clear-all, .notification-panel-state button,
    .admin-mail-small-button, .admin-mail-row-select,
    .report-user-search button, .fx-list-notice button,
    .quick-post-top button, .admin-menu-btn, .dash-secondary-link
  ) {
  border-color: var(--button-secondary-border) !important;
  background: var(--button-secondary) !important;
  color: var(--button-secondary-text) !important;
  box-shadow: none;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .forum-pagination button, .post-engagement button,
    .comment-solution-btn, .content-engagement-panel button,
    .content-card-actions button, .mod-report-actions button,
    .mod-user-actions button, .forum-filter-actions button,
    .msg-load-older, .notification-tab, .notification-mark-all,
    .notification-clear-all, .notification-panel-state button,
    .admin-mail-small-button, .admin-mail-row-select,
    .report-user-search button, .fx-list-notice button,
    .quick-post-top button, .admin-menu-btn, .dash-secondary-link
  ):hover:not(:disabled) {
  border-color: var(--primary) !important;
  background: var(--button-secondary-hover) !important;
  color: var(--primary) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .post-engagement button.active, .post-engagement button[aria-pressed="true"],
    .content-engagement-panel button.active,
    .content-engagement-panel button[aria-pressed="true"],
    .notification-tab.active, .admin-mail-row-select.active,
    .admin-mail-row-select.selected, .admin-menu-btn.active
  ) {
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border)) !important;
  background: color-mix(in srgb, var(--primary) 18%, var(--surface-soft)) !important;
  color: var(--primary) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .secondary-danger, .comment-delete-btn, .msg-delete-btn,
    .notification-card-delete, .admin-mail-selected > button,
    .admin-mail-selected-user > button
  ) {
  border-color: color-mix(in srgb, var(--danger-text) 38%, var(--border)) !important;
  background: var(--button-danger-soft) !important;
  color: var(--danger-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.ui-toast, .auth-form-status, .mod-review-note) {
  border-color: color-mix(in srgb, var(--info-text) 30%, var(--border)) !important;
  background: var(--info-surface) !important;
  color: var(--info-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.ui-toast.success, .auth-form-status.success) {
  border-color: color-mix(in srgb, var(--success-text) 30%, var(--border)) !important;
  background: var(--success-surface) !important;
  color: var(--success-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.ui-toast.error, .auth-form-status.error) {
  border-color: color-mix(in srgb, var(--danger-text) 32%, var(--border)) !important;
  background: var(--danger-surface) !important;
  color: var(--danger-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.auth-divider::before, .auth-divider::after) {
  background: var(--border) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.google-login-btn span, .admin-mail-select-check) {
  border-color: var(--border) !important;
  background: var(--input-bg) !important;
  color: var(--text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(
    .dash-card-head a, .dash-stat-card strong, .dash-module-grid small,
    .mod-card-head a, .content-section-link, .content-module-arrow
  ) {
  color: var(--primary) !important;
}

/* =========================================================
   DARK THEME COMPONENT POLISH
   ========================================================= */

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .fx-content-roles label {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
  color: var(--text) !important;
  box-shadow: none;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .fx-content-roles label:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border)) !important;
  background: var(--button-secondary-hover) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .fx-content-roles label:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 72%, var(--border)) !important;
  background: color-mix(in srgb, var(--primary) 16%, var(--surface-soft)) !important;
  color: var(--text-strong) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .fx-content-role-copy > i {
  background: var(--info-surface) !important;
  color: var(--info-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .fx-content-roles label:has(input:checked) .fx-content-role-copy > i {
  background: var(--button-primary) !important;
  color: var(--on-primary) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .fx-content-role-copy strong {
  color: var(--text-strong) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .fx-content-role-copy small {
  color: var(--muted) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .fx-account-state > span {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
  color: var(--text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .fx-account-state strong {
  color: var(--text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .fx-account-state small {
  color: var(--muted) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .report-center-hero > span {
  border: 1px solid color-mix(in srgb, var(--danger-text) 34%, var(--border));
  background: var(--danger-surface) !important;
  color: var(--danger-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .report-area {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
  color: var(--text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.report-area:hover, .report-area.active) {
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border)) !important;
  background: color-mix(in srgb, var(--primary) 16%, var(--surface-soft)) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .report-area strong {
  color: var(--text-strong) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .report-area small {
  color: var(--muted) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .notification-panel-header {
  border-color: var(--border) !important;
  background:
    radial-gradient(
      circle at top right,
      color-mix(in srgb, var(--primary) 18%, transparent),
      transparent 45%
    ),
    var(--card) !important;
  color: var(--text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .notification-panel-header h2 {
  color: var(--text-strong) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.notification-panel-toolbar, .notification-panel-footer) {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .notification-card-icon {
  border: 1px solid color-mix(in srgb, var(--info-text) 28%, var(--border));
  background: var(--info-surface) !important;
  color: var(--info-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.notification-card-icon--message, .notification-card-icon--comment) {
  border-color: color-mix(in srgb, var(--success-text) 28%, var(--border));
  background: var(--success-surface) !important;
  color: var(--success-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.notification-card-icon--friend_request, .notification-card-icon--friend_accept) {
  border-color: color-mix(in srgb, var(--purple-text) 28%, var(--border));
  background: var(--purple-surface) !important;
  color: var(--purple-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .notification-card-icon--admin {
  border-color: color-mix(in srgb, var(--warning-text) 28%, var(--border));
  background: var(--warning-surface) !important;
  color: var(--warning-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .notification-card-icon--delete_request {
  border-color: color-mix(in srgb, var(--danger-text) 28%, var(--border));
  background: var(--danger-surface) !important;
  color: var(--danger-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.notification-card-topline strong, .notification-panel-state strong) {
  color: var(--text-strong) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  :is(.notification-card-count, .notification-tab-count, .notification-state-symbol) {
  background: var(--info-surface) !important;
  color: var(--info-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .notification-card-delete {
  border: 1px solid var(--border) !important;
  background: var(--surface-raised) !important;
  color: var(--muted) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .notification-card-delete:hover {
  border-color: color-mix(in srgb, var(--danger-text) 35%, var(--border)) !important;
  background: var(--danger-surface) !important;
  color: var(--danger-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .content-topic-row span {
  border-color: color-mix(in srgb, var(--info-text) 28%, var(--border)) !important;
  background: var(--info-surface) !important;
  color: var(--info-text) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .content-module-arrow {
  border-color: var(--border) !important;
  background: var(--surface-soft) !important;
  color: var(--primary) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .content-module-card:hover .content-module-arrow {
  border-color: var(--button-primary) !important;
  background: var(--button-primary) !important;
  color: var(--on-primary) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .forum-filter-actions button {
  border: 1px solid var(--button-primary) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .forum-filter-actions button:not(.ghost-btn) {
  background: var(--button-primary) !important;
  color: var(--on-primary) !important;
}

:is(html[data-theme="dark"], html[data-theme="midnight"])
  .forum-filter-actions .ghost-btn {
  border-color: var(--button-secondary-border) !important;
  background: var(--button-secondary) !important;
  color: var(--button-secondary-text) !important;
}

.cookie-notice {
  position: fixed;
  z-index: 1900;
  bottom: max(16px, env(safe-area-inset-bottom));
  right: max(16px, env(safe-area-inset-right));
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  animation: cookieNoticeIn 0.22s ease-out both;
}

@keyframes cookieNoticeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-notice-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--info-surface);
  font-size: 22px;
}

.cookie-notice-copy strong {
  color: var(--text-strong);
  font-size: 16px;
}

.cookie-notice-copy p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-notice-copy a {
  font-size: 13px;
  font-weight: 700;
}

.cookie-notice > button {
  grid-column: 2;
  justify-self: start;
  min-height: 44px;
  border-radius: 12px;
  white-space: nowrap;
}

.legal-cookie-reopen {
  margin-top: 8px;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .cookie-notice {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .cookie-notice > button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    animation: none;
  }
}
