:root {
  --bg: #050b12;
  --card: rgba(13, 26, 38, 0.88);
  --card2: rgba(5, 16, 27, 0.95);
  --text: #eaf7ff;
  --muted: #90a6b7;
  --green: #00ff99;
  --blue: #00b7ff;
  --danger: #ff4d6d;
  --border: rgba(0, 255, 153, 0.18);
}

* {
  box-sizing: border-box;
  font-family: "Tahoma", "Arial", sans-serif;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 255, 153, .18), transparent 35%),
    radial-gradient(circle at bottom left, rgba(0, 183, 255, .15), transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.standalone-app {
  min-height: 100dvh;
}

body.community-page {
  --bg: #eef5fb;
  --card: rgba(255, 255, 255, 0.92);
  --card2: rgba(244, 249, 255, 0.96);
  --text: #071521;
  --muted: #617586;
  --green: #22c55e;
  --blue: #0ea5e9;
  --border: rgba(14, 165, 233, 0.14);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 28%),
    radial-gradient(circle at left center, rgba(14, 165, 233, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 54%, #f5fbff 100%);
  color: var(--text);
  font-family: "Cairo", sans-serif;
}

body.community-page * {
  font-family: inherit;
}

body.community-page a {
  color: var(--blue);
}

body.community-page .hero-card,
body.community-page .auth-card,
body.community-page .card,
body.community-page .side-card,
body.community-page .profile-card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 45px rgba(15, 40, 68, 0.08);
  backdrop-filter: blur(18px);
}

body.community-page .topbar {
  background: rgba(248, 252, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 36px rgba(8, 23, 38, 0.06);
}

body.community-page .logo,
body.community-page .brand-caption,
body.community-page .section-kicker,
body.community-page .brand-feature-badge {
  font-family: "Space Grotesk", "Cairo", sans-serif;
}

body.community-page .logo {
  color: #071521;
  text-shadow: none;
  letter-spacing: 0.04em;
}

body.community-page .small-logo {
  font-size: 24px;
}

body.community-page .logo span {
  color: var(--green);
}

body.community-page .nav-pill,
body.community-page .mini-profile-link,
body.community-page .mini-btn,
body.community-page .action-btn,
body.community-page .feed-badge,
body.community-page .mini-stat-box,
body.community-page .community-stat-box,
body.community-page .hero-stat-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 0 8px 20px rgba(8, 23, 38, 0.04);
}

body.community-page .nav-pill,
body.community-page .mini-profile-link,
body.community-page .mini-btn,
body.community-page .action-btn,
body.community-page .feed-badge,
body.community-page .comment-box input,
body.community-page textarea,
body.community-page .auth-card input {
  color: #082032;
}

body.community-page .nav-pill {
  background: rgba(255, 255, 255, 0.72);
}

body.community-page .nav-pill.active,
body.community-page .nav-pill:hover,
body.community-page .mini-profile-link:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(14, 165, 233, 0.18);
}

body.community-page .nav-pill-linkout {
  background: rgba(14, 165, 233, 0.08);
}

body.community-page .mini-btn:hover,
body.community-page .action-btn:hover,
body.community-page .site-launch-btn:hover {
  border-color: rgba(34, 197, 94, 0.24);
}

body.community-page .msg.success {
  color: #17803c;
}

body.community-page .msg.error {
  color: #c2365a;
}

body.community-page .notice,
body.community-page .small,
body.community-page .composer-subtitle,
body.community-page .feed-section-head p,
body.community-page .user-summary-copy p,
body.community-page .brand-feature-card p,
body.community-page .guide-note,
body.community-page .post-date {
  color: var(--muted);
}

body.community-page textarea,
body.community-page .auth-card input,
body.community-page .comment-box input {
  background: rgba(250, 253, 255, 0.9);
  border: 1px solid rgba(14, 165, 233, 0.14);
}

body.community-page textarea::placeholder,
body.community-page .comment-box input::placeholder,
body.community-page .auth-card input::placeholder {
  color: #7d90a3;
}

body.community-page .post-author-link:hover {
  background: rgba(14, 165, 233, 0.05);
}

body.community-page .post-signal-pill,
body.community-page .topic-chip {
  color: #11405f;
}

body.community-page .post-signal-pill {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.12);
}

body.community-page .topic-chip {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.16);
}

body.community-page .comment {
  background: rgba(14, 165, 233, 0.06);
  color: #102232;
}

body.community-page .actions,
body.community-page .post-actions {
  border-top-color: rgba(14, 165, 233, 0.1);
}

body.community-page .preview-card,
body.community-page .post-image {
  background: rgba(244, 249, 255, 0.92);
  border-color: rgba(14, 165, 233, 0.1);
}

body.community-page .avatar,
body.community-page .post-avatar {
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
}

body.community-page .brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.community-page .community-topbar .topbar-center,
body.community-page .community-topbar .topbar-actions {
  flex-wrap: wrap;
}

body.community-page .brand-caption {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(34, 197, 94, 0.14));
  color: #0f3550;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.community-page .site-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
}

body.community-page .community-layout {
  max-width: 1360px;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 22px;
}

body.community-page .community-hero {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: 24px;
}

body.community-page .community-hero::before,
body.community-page .community-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body.community-page .community-hero::before {
  width: 240px;
  height: 240px;
  top: -70px;
  left: -60px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 68%);
}

body.community-page .community-hero::after {
  width: 320px;
  height: 320px;
  bottom: -130px;
  right: -120px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14), transparent 72%);
}

body.community-page .community-hero-copy,
body.community-page .community-hero-panel,
body.community-page .community-hero-stats {
  position: relative;
  z-index: 1;
}

body.community-page .community-hero-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

body.community-page .section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(7, 21, 33, 0.06);
  color: #0d314c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.community-page .community-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}

body.community-page .community-hero p {
  margin: 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.95;
}

body.community-page .hero-actions {
  justify-content: flex-start;
  margin-top: 6px;
}

body.community-page .brand-ghost {
  border-color: rgba(14, 165, 233, 0.16);
  color: #0d3b58;
  background: rgba(255, 255, 255, 0.6);
}

body.community-page .hero-link-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.community-page .hero-link-strip a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 165, 233, 0.12);
  color: #0f3550;
  font-weight: 700;
}

body.community-page .community-hero-panel {
  display: grid;
  gap: 14px;
}

body.community-page .brand-feature-card {
  display: block;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(3, 16, 28, 0.94), rgba(8, 31, 51, 0.96)),
    linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(34, 197, 94, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #eff8ff;
}

body.community-page .brand-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(5, 16, 28, 0.22);
}

body.community-page .brand-feature-card strong {
  display: block;
  margin: 10px 0 8px;
  color: #f7fbff;
  font-size: 22px;
}

body.community-page .brand-feature-card p {
  color: #c9dceb;
  line-height: 1.85;
}

body.community-page .brand-feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #b7ecff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.community-page .community-hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.community-page .hero-stat-box {
  padding: 18px 20px;
  border-radius: 22px;
}

body.community-page .hero-stat-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 30px;
}

body.community-page .hero-stat-box span {
  color: var(--muted);
  font-size: 13px;
}

body.community-page .side-card {
  top: 94px;
}

body.community-page .side-card a:hover {
  background: rgba(14, 165, 233, 0.06);
}

body.community-page .user-summary-copy strong,
body.community-page .account-tools-card h3,
body.community-page .official-links-card h3,
body.community-page .tips-card h3 {
  color: #081726;
}

body.community-page .account-tools-card,
body.community-page .official-links-card,
body.community-page .posting-guide-card,
body.community-page .tips-card {
  display: grid;
  gap: 12px;
}

body.community-page .account-tools-card h3,
body.community-page .official-links-card h3,
body.community-page .tips-card h3 {
  margin: 0;
  font-size: 22px;
}

body.community-page .official-link-list {
  display: grid;
  gap: 12px;
}

body.community-page .official-link-item {
  display: block;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 165, 233, 0.1);
}

body.community-page .official-link-item strong {
  display: block;
  color: #0b2234;
  margin-bottom: 6px;
}

body.community-page .official-link-item span {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

body.community-page .danger-link {
  color: #a22549;
}

body.community-page .highlighted-composer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.96));
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 24px 60px rgba(14, 165, 233, 0.12);
}

body.community-page .composer-title {
  color: #081726;
}

body.community-page .feed-section-head h2 {
  color: #071521;
}

body.community-page .guide-note {
  margin: 0;
  line-height: 1.95;
}

body.community-page .empty-state {
  display: grid;
  gap: 10px;
}

body.community-page .empty-state h3 {
  color: #071521;
}

body.community-page .comment-box {
  align-items: stretch;
}

body.community-page .post-text {
  color: #102232;
}

body.community-page .editing-post {
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.12), 0 18px 45px rgba(14, 165, 233, 0.08);
}

body.auth-community-page,
body.community-profile-page {
  min-height: 100vh;
}

body.auth-community-page .auth-shell {
  max-width: 1360px;
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

body.auth-community-page .auth-topbar-links {
  justify-content: center;
}

body.auth-community-page .auth-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  display: grid;
  gap: 18px;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.22), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.18), transparent 24%),
    linear-gradient(160deg, rgba(4, 17, 29, 0.96), rgba(10, 33, 52, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(4, 17, 29, 0.22);
}

body.auth-community-page .auth-brand-panel::before,
body.auth-community-page .auth-brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body.auth-community-page .auth-brand-panel::before {
  width: 260px;
  height: 260px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 68%);
}

body.auth-community-page .auth-brand-panel::after {
  width: 220px;
  height: 220px;
  bottom: -110px;
  left: -70px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 68%);
}

body.auth-community-page .auth-brand-panel > * {
  position: relative;
  z-index: 1;
}

body.auth-community-page .auth-brand-panel h1 {
  margin: 0;
  max-width: 720px;
  color: #f5fbff;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
}

body.auth-community-page .auth-brand-panel p {
  margin: 0;
  max-width: 720px;
  color: #d1e2ef;
  font-size: 17px;
  line-height: 1.95;
}

body.auth-community-page .auth-panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.auth-community-page .auth-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.auth-community-page .auth-brand-panel .official-link-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.auth-community-page .auth-brand-panel .official-link-item strong {
  color: #f6fbff;
}

body.auth-community-page .auth-brand-panel .official-link-item span {
  color: #ccdfed;
}

body.auth-community-page .auth-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.auth-community-page .auth-stat-box {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.auth-community-page .auth-stat-box strong {
  display: block;
  margin-bottom: 6px;
  color: #f5fbff;
  font-size: 18px;
}

body.auth-community-page .auth-stat-box span {
  color: #c5dceb;
  line-height: 1.8;
  font-size: 13px;
}

body.auth-community-page .auth-card-enhanced {
  width: min(480px, 100%);
  padding: 32px;
  display: grid;
  gap: 14px;
  align-self: center;
  text-align: right;
}

body.auth-community-page .auth-title {
  margin: 0;
  color: #081726;
  font-size: 32px;
}

body.auth-community-page .auth-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

body.auth-community-page .auth-utility-links {
  display: grid;
  gap: 8px;
}

body.auth-community-page .auth-utility-links p {
  margin: 0;
}

body.community-profile-page .profile-page {
  max-width: 1360px;
}

body.community-profile-page .profile-hero {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
}

body.community-profile-page .profile-cover {
  background:
    radial-gradient(circle at 16% 22%, rgba(255,255,255,.3), transparent 18%),
    radial-gradient(circle at 84% 18%, rgba(34,197,94,.22), transparent 22%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.7), rgba(34, 197, 94, 0.42) 42%, rgba(7, 21, 33, 0.86) 100%);
}

body.community-profile-page .profile-kicker {
  margin-bottom: 2px;
}

body.community-profile-page .profile-headline {
  color: #d9eef9;
}

body.community-profile-page .profile-view-note {
  margin: 0;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #eef8ff;
  font-size: 13px;
}

body.community-profile-page .profile-hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

body.community-profile-page .profile-site-btn {
  min-height: 46px;
  padding-inline: 18px;
}

body.community-profile-page .profile-notice {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(14, 165, 233, 0.12);
}

body.community-profile-page .profile-stat {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.18);
}

body.community-profile-page .profile-stat strong,
body.community-profile-page .profile-display-name,
body.community-profile-page .profile-panel h3 {
  color: #081726;
}

body.community-profile-page .profile-stat span {
  color: rgba(7, 21, 33, 0.66);
}

body.community-profile-page .profile-about-item,
body.community-profile-page .profile-photo-box {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(14, 165, 233, 0.12);
}

body.community-profile-page .profile-bio-preview {
  color: #173244;
}

body.community-profile-page .field-label {
  color: #617586;
}

body.community-profile-page .profile-post-chip {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.14);
  color: #11405f;
}

body.community-profile-page .profile-brand-panel {
  display: grid;
  gap: 14px;
}

body.community-profile-page .profile-brand-panel h3 {
  margin: 0;
  font-size: 24px;
}

body.community-profile-page .profile-brand-panel p {
  margin: 0;
  line-height: 1.9;
}

a {
  color: var(--green);
  text-decoration: none;
}

.install-app-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #00131b;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 18px 35px rgba(0, 183, 255, .22);
}

.install-ios-hint {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0,255,153,.2);
  background: rgba(4, 15, 24, .95);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .28);
}

.install-ios-hint strong {
  display: block;
  margin-bottom: 4px;
}

.install-ios-hint p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.install-ios-close {
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 10px 14px;
}

.logo {
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  font-size: 30px;
  text-shadow: 0 0 18px rgba(0,255,153,.45);
}

.logo span {
  color: var(--green);
  margin: 0 5px;
}

.small-logo {
  font-size: 20px;
}

.landing,
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.hero-card,
.auth-card,
.card,
.side-card,
.profile-card {
  background: linear-gradient(145deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  box-shadow: 0 0 45px rgba(0, 255, 153, .08);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.hero-card {
  max-width: 760px;
  padding: 55px 40px;
  text-align: center;
}

.hero-card h1 {
  font-size: 44px;
  margin: 22px 0 10px;
}

.hero-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.btn {
  border: 0;
  cursor: pointer;
  padding: 13px 24px;
  border-radius: 14px;
  font-weight: bold;
  transition: .25s;
  display: inline-block;
}

.btn.primary {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #00131b;
}

.btn.ghost {
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
}

.btn:hover,
.mini-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.btn:disabled,
.mini-btn:disabled,
.action-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.full {
  width: 100%;
}

.auth-card {
  width: min(420px, 100%);
  padding: 35px;
  text-align: center;
}

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

.auth-inline-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: -4px;
}

.auth-link-button {
  border: 0;
  background: transparent;
  color: #7fd9ff;
  cursor: pointer;
  font: inherit;
  padding: 0 4px;
  transition: color .2s ease, opacity .2s ease;
}

.auth-link-button:hover {
  color: #b9efff;
  text-decoration: underline;
}

.auth-link-button:disabled {
  cursor: wait;
  opacity: .6;
}

.auth-card input,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
  border-radius: 14px;
  padding: 14px;
  margin: 9px 0;
}

textarea {
  min-height: 95px;
  resize: vertical;
}

.small {
  color: var(--muted);
}

.msg {
  color: var(--green);
  min-height: 22px;
  line-height: 1.6;
}

.msg.error {
  color: #ff8aa0;
}

.msg.success {
  color: var(--green);
}

.msg.muted,
.notice {
  color: var(--muted);
}

.notice {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 11, 18, .88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
}

.topbar nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.topbar nav a {
  color: var(--text);
}

.social-topbar {
  gap: 18px;
}

.topbar-center,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-center {
  justify-content: center;
  flex: 1;
}

.nav-pill,
.mini-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 16px;
  color: var(--text);
  border: 1px solid transparent;
}

.nav-pill {
  justify-content: center;
  min-width: 124px;
  background: rgba(255,255,255,.04);
}

.nav-pill.active,
.nav-pill:hover,
.mini-profile-link:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
}

.mini-profile-link {
  padding-inline: 12px;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.mini-btn {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
}

.layout {
  max-width: 1280px;
  margin: auto;
  padding: 26px;
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 20px;
}

.social-layout {
  align-items: start;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 88px;
}

.side-card a {
  display: block;
  padding: 12px;
  color: var(--text);
  border-radius: 12px;
}

.side-card a:hover {
  background: rgba(0,255,153,.08);
}

.user-summary {
  display: grid;
  gap: 18px;
}

.user-summary-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0;
  color: var(--text);
}

.user-summary-head:hover {
  background: transparent;
}

.user-summary-copy {
  display: grid;
  gap: 6px;
}

.user-summary-copy strong {
  font-size: 19px;
}

.user-summary-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.side-avatar {
  width: 62px;
  height: 62px;
  font-size: 22px;
}

.side-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat-box {
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
  text-align: center;
}

.mini-stat-box strong,
.feed-badge strong,
.community-stat-box strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.mini-stat-box span,
.feed-badge span,
.community-stat-box span {
  color: var(--muted);
  font-size: 12px;
}

.main-feed {
  gap: 16px;
}

.feed {
  display: grid;
  gap: 18px;
}

.card {
  padding: 20px;
}

.composer-card {
  display: grid;
  gap: 14px;
}

.composer-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.composer-avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.composer-title {
  margin: 0 0 4px;
  font-size: 22px;
}

.composer-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.composer-submit-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.composer-messages {
  flex: 1;
  display: grid;
  gap: 6px;
}

.feed-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 0;
}

.feed-section-head h2 {
  margin: 0 0 6px;
}

.feed-section-head p {
  margin: 0;
  color: var(--muted);
}

.feed-badge {
  min-width: 118px;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
}

.posts-stack {
  display: grid;
  gap: 18px;
}

.composer-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}

.file-input {
  display: none;
}

.upload-trigger,
.subtle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upload-trigger {
  min-width: 120px;
}

.subtle-btn {
  background: transparent;
}

.image-hint {
  margin: 6px 0 0;
}

.preview-card {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
}

.preview-image,
.post-image {
  width: 100%;
  border-radius: 18px;
  display: block;
  object-fit: cover;
}

.preview-image {
  max-height: 360px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.post-author-link {
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  padding: 4px;
  margin: -4px;
}

.post-author-link:hover {
  background: rgba(255,255,255,.04);
}

.post-head-copy {
  display: grid;
  gap: 4px;
}

.post-avatar,
.avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #00131b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.avatar-text {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.post-name {
  font-weight: bold;
}

.post-date {
  color: var(--muted);
  font-size: 12px;
}

.post-text {
  line-height: 1.8;
  white-space: pre-wrap;
}

.post-body {
  display: grid;
  gap: 14px;
}

.post-image {
  margin-top: 2px;
  max-height: 520px;
  background: rgba(255,255,255,.04);
}

.post-card {
  display: grid;
  gap: 14px;
}

.post-signal {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-signal-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #d9edf9;
  font-size: 12px;
}

.post-actions {
  margin-top: 0;
}

.editing-post {
  border-color: rgba(0, 183, 255, .34);
  box-shadow: 0 0 0 1px rgba(0, 183, 255, .18), 0 0 45px rgba(0, 183, 255, .08);
}

.edit-post-form {
  display: grid;
  gap: 12px;
}

.edit-post-textarea {
  min-height: 140px;
  margin: 0;
}

.edit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
}

.action-btn {
  background: rgba(255,255,255,.07);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 9px 13px;
  cursor: pointer;
}

.danger-btn {
  border-color: rgba(255, 77, 109, .35);
  color: #ffc1cd;
}

.danger-btn:hover {
  background: rgba(255, 77, 109, .14);
}

.danger-solid-btn {
  background: linear-gradient(135deg, #ff5a76, #ff8f5a);
  color: #1f060d;
}

.danger-note,
.legal-entry {
  margin: 0;
  line-height: 1.8;
}

.helper-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.helper-links a,
.legal-entry a {
  color: #a8ecff;
}

.comments {
  margin-top: 12px;
}

.comment {
  background: rgba(255,255,255,.055);
  padding: 10px 12px;
  border-radius: 12px;
  margin: 8px 0;
  color: #dcecff;
}

.comment-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.comment-box input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 12px;
  padding: 11px;
  outline: none;
}

.community-stat-grid {
  display: grid;
  gap: 10px;
}

.community-stat-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,183,255,.08);
  border: 1px solid rgba(0,183,255,.16);
  color: #ddf5ff;
  font-size: 13px;
}

.profile-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.profile-hero {
  overflow: hidden;
  padding: 0;
}

.profile-cover {
  height: 280px;
  background:
    radial-gradient(circle at 18% 25%, rgba(255,255,255,.18), transparent 20%),
    radial-gradient(circle at 80% 10%, rgba(0,255,153,.24), transparent 25%),
    linear-gradient(120deg, rgba(0,183,255,.55), rgba(0,255,153,.3) 48%, rgba(5,11,18,.85) 100%);
}

.profile-hero-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 0 28px 28px;
  margin-top: -78px;
}

.profile-avatar-wrap {
  display: flex;
  align-items: flex-end;
}

.profile-avatar {
  width: 156px;
  height: 156px;
  font-size: 56px;
  border: 6px solid var(--bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.profile-hero-main {
  display: grid;
  gap: 14px;
}

.profile-display-name {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}

.profile-headline {
  margin: 0;
  color: #d7ebf7;
  line-height: 1.8;
  max-width: 760px;
}

.profile-hero-actions {
  display: flex;
  justify-content: flex-end;
  align-self: center;
}

.profile-notice {
  margin: 0 4px;
}

.profile-stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-stat {
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  display: grid;
  gap: 4px;
}

.profile-stat strong {
  font-size: 20px;
}

.profile-stat span {
  color: var(--muted);
  font-size: 13px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.profile-side,
.profile-main {
  display: grid;
  gap: 18px;
}

.profile-panel {
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h3,
.section-head h4 {
  margin: 0 0 6px;
}

.section-head p {
  margin: 0;
}

.compact-head {
  margin-bottom: 12px;
}

.profile-about-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-about-item {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
}

.profile-about-item span {
  color: var(--muted);
  font-size: 13px;
}

.profile-about-item strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.profile-bio-preview {
  margin: 0;
  line-height: 1.9;
  color: #dcecff;
  white-space: pre-wrap;
}

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

.field-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

.profile-form input,
.profile-form textarea {
  margin: 0;
}

.profile-form input[readonly] {
  opacity: .78;
  cursor: default;
}

.profile-photo-box {
  margin-top: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}

.profile-preview-image {
  max-height: 280px;
  object-fit: cover;
}

.profile-post-card {
  display: grid;
  gap: 16px;
}

.post-head-copy {
  display: grid;
  gap: 4px;
}

.profile-post-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.profile-post-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,255,153,.08);
  border: 1px solid rgba(0,255,153,.16);
  color: #dffdf0;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.legal-card h1,
.legal-card h2,
.legal-card h3 {
  margin: 0;
}

.legal-card p,
.legal-card li {
  line-height: 1.9;
  color: #dcecff;
}

.legal-list {
  margin: 0;
  padding-inline-start: 20px;
}

.legal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

  body.community-page .community-layout {
    padding: 18px;
    gap: 18px;
  }

  body.community-page .community-topbar {
    gap: 12px;
  }

  body.community-page .brand-lockup {
    width: 100%;
    justify-content: space-between;
  }

  body.community-page .topbar-center {
    order: 2;
    justify-content: flex-start;
  }

  body.community-page .topbar-actions {
    order: 3;
    justify-content: space-between;
  }

  body.community-page .site-launch-btn {
    flex: 1 1 100%;
  }

  body.community-page .mini-profile-link,
  body.community-page .mini-btn,
  body.community-page .nav-pill {
    flex: 1 1 calc(50% - 6px);
  }

  body.community-page .community-hero {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  body.community-page .community-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  body.community-page .community-hero-stats {
    grid-template-columns: 1fr;
  }

  body.community-page .comment-box {
    flex-direction: column;
  }

  body.auth-community-page .auth-shell {
    min-height: auto;
    padding: 18px;
    grid-template-columns: 1fr;
  }

  body.auth-community-page .auth-link-grid,
  body.auth-community-page .auth-mini-stats {
    grid-template-columns: 1fr;
  }

  body.auth-community-page .auth-card-enhanced {
    width: 100%;
  }

  body.community-profile-page .profile-hero-actions {
    width: 100%;
  }

  body.community-profile-page .profile-site-btn,
  body.community-profile-page .profile-hero-actions .action-btn {
    width: 100%;
    justify-content: center;
  }

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

  .side-card {
    position: static;
  }

  .left {
    display: none;
  }

  .topbar {
    padding: 14px;
  }

  .social-topbar {
    flex-wrap: wrap;
  }

  .topbar nav {
    gap: 10px;
  }

  .install-app-btn {
    left: 14px;
    right: 14px;
    width: calc(100% - 28px);
  }

  .topbar-center,
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-center {
    order: 3;
  }

  .composer-tools {
    align-items: stretch;
  }

  .side-mini-stats {
    grid-template-columns: 1fr;
  }

  .composer-submit-row,
  .feed-section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feed-badge {
    width: 100%;
  }

  .profile-page {
    padding: 18px;
  }

  .profile-cover {
    height: 220px;
  }

  .profile-hero-body {
    grid-template-columns: 1fr;
    margin-top: -56px;
    text-align: center;
    justify-items: center;
  }

  .profile-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .profile-hero-actions .action-btn {
    width: 100%;
  }

  .profile-avatar {
    width: 124px;
    height: 124px;
    font-size: 42px;
  }

  .profile-stat-row {
    justify-content: center;
  }

  .upload-trigger,
  .subtle-btn,
  .edit-actions .btn,
  .edit-actions .action-btn {
    width: 100%;
  }

  .profile-post-meta {
    align-items: stretch;
  }

  .profile-post-meta .action-btn {
    width: 100%;
    justify-content: center;
  }
}

.admin-page {
  padding: 24px;
  display: grid;
  gap: 20px;
}

.admin-shell {
  display: grid;
  gap: 20px;
}

.admin-gate-card,
.admin-hero-card,
.admin-panel,
.admin-stat-card {
  padding: 24px;
}

.admin-gate-card {
  max-width: 760px;
  margin: 40px auto;
  text-align: center;
}

.admin-gate-card h1,
.admin-hero-card h1 {
  margin: 0 0 12px;
}

.admin-gate-copy,
.admin-hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr);
  gap: 20px;
  align-items: start;
}

.admin-hero-copy {
  display: grid;
  gap: 10px;
}

.admin-hero-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat-card {
  display: grid;
  gap: 10px;
}

.admin-stat-card span {
  color: var(--muted);
}

.admin-stat-card strong {
  font-size: 34px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-side,
.admin-main {
  display: grid;
  gap: 20px;
}

.admin-search-input {
  margin: 0;
}

.admin-capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-users-list,
.admin-posts-list {
  display: grid;
  gap: 16px;
}

.admin-user-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.admin-user-head {
  display: grid;
  gap: 14px;
}

.admin-user-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-user-avatar {
  width: 66px;
  height: 66px;
  font-size: 24px;
  flex-shrink: 0;
}

.admin-user-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-user-copy span,
.admin-user-copy small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-user-name-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0,255,153,.15);
  border: 1px solid rgba(0,255,153,.26);
  color: #dffdf0;
}

.admin-badge.muted {
  color: #d8e7f2;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}

.admin-actions,
.admin-inline-actions,
.admin-post-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-user-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-inline-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.12);
}

.admin-inline-form textarea,
.admin-inline-form input {
  margin: 0;
}

.admin-post-card {
  gap: 16px;
}

.admin-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.admin-check-row input {
  width: auto;
  margin: 0;
}

@media (max-width: 960px) {
  .admin-page {
    padding: 18px;
  }

  .admin-hero-card,
  .admin-grid,
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions,
  .admin-inline-actions,
  .admin-post-tools {
    align-items: stretch;
  }

  .admin-actions .action-btn,
  .admin-inline-actions .action-btn,
  .admin-inline-actions .btn,
  .admin-post-tools .action-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-user-identity {
    align-items: flex-start;
  }
}
