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

:root {
  --color-charcoal: #1f1f1f;
  --color-beige: #f4ede4;
  --color-ivory: #faf6ef;
  --color-terracotta: #c86b42;
  --color-terracotta-dark: #aa5734;
  --color-ochre: #d4a13d;
  --color-green: #2f6f42;
  --color-sand: #e7d7b8;
  --color-brown: #7a5a45;
  --text-main: #1f1f1f;
  --text-muted: #6b5e55;
  --border-soft: rgba(31, 31, 31, 0.08);
  --shadow-soft: 0 12px 40px rgba(31, 31, 31, 0.08);
  --shadow-card: 0 10px 26px rgba(31, 31, 31, 0.07);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-height: 76px;
  --sidebar-width: 260px;
  --right-width: 330px;
  /* === Tokens ergonomiques (hors charte graphique) === */
  --font-display: "Sora", "Inter", sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --tap-min: 44px;      /* cible tactile standard (CTA, icon-btn isolé) */
  --tap-compact: 40px;  /* contextes denses (rangées, pagers) */
  --tap-cta: 46px;      /* CTA de formulaire pleine page */
  --mobile-header-h: 76px;
  --bottom-nav-h: 70px;
  --fab-size: 52px;
  /* Échelle z-index mappée 1:1 sur les valeurs historiques.
     Interleaving Bootstrap : backdrop 1050 / modal 1055 → --z-fab-menu doit rester < 1055. */
  --z-header: 1000;
  --z-nav: 1050;
  --z-fab-backdrop: 1050;
  --z-fab-menu: 1052;
  --z-popover: 1150;
  --z-popover-high: 1200;
  --z-drawer-backdrop: 1490;
  --z-drawer: 1500;
  --z-modal-custom: 1700;
  --z-panel-backdrop: 2050;
  --z-panel: 2060;
  --z-search-backdrop: 2070;
  --z-search-panel: 2080;
  --z-modal-top: 2100;
  --z-viewer: 3000;
  --z-toast: 3100; /* élévation délibérée : était 2000, caché par le panneau messages (2060) */
}

* { box-sizing: border-box; }

.modal,
.modal * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal::-webkit-scrollbar,
.modal *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Zone tactile ~44px pour la croix Bootstrap, glyphe et couleurs inchangés. */
.modal .btn-close {
  padding: 15px;
  background-size: 14px;
  margin: -8px -8px -8px auto;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(212, 161, 61, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbf6ef 0%, var(--color-beige) 100%);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 84px auto auto 20px;
  width: 86px;
  height: 420px;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(45deg, transparent 42%, var(--color-terracotta) 44%, transparent 46%),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(200, 107, 66, 0.35) 17px 19px, transparent 20px 34px);
  mask-image: linear-gradient(#000, transparent);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: 0;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.16; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }

.text-muted-k { color: var(--text-muted); }
.text-accent { color: var(--color-terracotta); }
.small-k { font-size: 0.86rem; color: var(--text-muted); }

.desktop-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 48px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  color: var(--text-main);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.brand-logo {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.brand-word { font-size: 1.05rem; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 28px 0 24px;
  color: var(--text-main);
}

.desktop-nav a.active,
.desktop-nav a:hover { color: var(--color-terracotta); }

.desktop-nav a.active::after,
.desktop-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-terracotta);
}

.search-pill {
  position: relative;
  flex: 1 1 260px;
  max-width: 470px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--text-muted);
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.profile-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: var(--z-popover-high);
  display: grid;
  max-height: min(420px, calc(100vh - 130px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(122, 90, 69, 0.16);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.98);
  box-shadow: 0 18px 40px rgba(33, 23, 17, 0.16);
}

.profile-search-results[hidden] {
  display: none;
}

.profile-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  color: var(--text-main);
  text-decoration: none;
}

.profile-search-result:hover,
.profile-search-result:focus-visible {
  background: rgba(200, 107, 66, 0.1);
  color: var(--text-main);
}

.profile-search-result strong,
.profile-search-result span {
  display: block;
}

.profile-search-empty {
  padding: 10px;
  color: var(--text-muted);
}

.global-search-results {
  display: grid;
  gap: 10px;
}

.global-search-section {
  display: grid;
  gap: 4px;
}

.global-search-section + .global-search-section {
  padding-top: 8px;
  border-top: 1px solid rgba(122, 90, 69, 0.1);
}

.global-search-section-label {
  margin: 0;
  padding: 2px 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.global-search-section-items {
  display: grid;
  gap: 2px;
}

.global-search-result-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(47, 111, 66, 0.1);
  color: var(--color-green);
}

.global-search-result-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.global-search-result-icon i {
  font-size: 1.1rem;
}

[data-profile-link] {
  cursor: pointer;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  gap: 14px;
}

.pro-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(47, 111, 66, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.12), rgba(212, 161, 61, 0.14)),
    rgba(255, 255, 255, 0.58);
  color: #2f6f42;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(31, 31, 31, 0.06);
}

.pro-status-badge i {
  color: var(--color-ochre);
  font-size: 0.95rem;
}

.pro-status-badge.compact {
  min-height: 32px;
  padding: 6px 8px;
}

.pro-status-badge.compact span {
  display: none;
}

.dropdown-menu:not(.show) {
  display: none;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--text-main);
  transition: 0.2s ease;
}

.icon-btn:hover,
.icon-btn.active {
  background: #efe1cf;
  color: var(--color-terracotta);
}

.subscription-plan-link.is-plan-standard,
.subscription-plan-link.is-plan-standard i {
  color: var(--text-main);
}

.subscription-plan-link.is-plan-pro,
.subscription-plan-link.is-plan-pro i {
  color: var(--color-terracotta);
}

.subscription-plan-link.is-plan-colab,
.subscription-plan-link.is-plan-colab i {
  color: var(--color-green);
}

.avatar,
.avatar-sm,
.avatar-lg {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #e9d1a6, #c86b42);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.avatar { width: 44px; height: 44px; flex: 0 0 44px; }
.avatar-sm { width: 34px; height: 34px; flex: 0 0 34px; font-size: 0.75rem; }
.avatar-lg { width: var(--profile-avatar-size, 130px); height: var(--profile-avatar-size, 130px); flex: 0 0 var(--profile-avatar-size, 130px); aspect-ratio: 1 / 1; font-size: 2.4rem; border-width: 6px; }

.default-gender-avatar {
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}

.default-gender-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(31, 31, 31, 0.12), rgba(31, 31, 31, 0.5));
}

.avatar-initials {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(31, 31, 31, 0.42);
}

.profile-avatar-button {
  --profile-avatar-size: 130px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
  flex: 0 0 var(--profile-avatar-size);
  aspect-ratio: 1 / 1;
  margin: 0 auto 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.profile-settings-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122, 90, 69, 0.16);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.86);
  color: var(--color-brown);
  box-shadow: var(--shadow-card);
}

.profile-settings-button:hover {
  color: #fff;
  background: var(--color-terracotta);
}

.profile-avatar-button:hover .avatar-lg {
  box-shadow: 0 0 0 4px rgba(200, 107, 66, 0.2);
}

.profile-avatar-flags {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 3;
  display: grid;
  gap: 4px;
}

.profile-avatar-flags img {
  width: 34px;
  height: 24px;
  object-fit: cover;
  border: 2px solid #fffaf2;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(31, 31, 31, 0.18);
}

.profile-email {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.gender-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(200, 107, 66, 0.22);
  border-radius: 999px;
  background: rgba(200, 107, 66, 0.12);
  color: var(--color-terracotta-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.gender-profile-badge i {
  font-size: 1rem;
}

.premium-test-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  min-height: 34px;
  margin: -2px auto 12px;
  padding: 7px 12px;
  border: 1px solid rgba(212, 161, 61, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.18), rgba(255, 255, 255, 0.46)),
    rgba(255, 250, 242, 0.62);
  color: #7a5a20;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.premium-test-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 107, 66, 0.42);
  box-shadow: 0 14px 30px rgba(31, 31, 31, 0.12);
}

.premium-test-toggle.is-active {
  border-color: rgba(47, 111, 66, 0.3);
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.18), rgba(212, 161, 61, 0.2)),
    rgba(255, 255, 255, 0.58);
  color: #2f6f42;
}

.premium-test-toggle i {
  font-size: 0.98rem;
}

.premium-test-toggle span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--right-width);
  gap: 28px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 36px 72px;
}

.app-shell > * {
  min-width: 0;
}

.app-shell.no-left { grid-template-columns: minmax(0, 1fr) var(--right-width); }
.app-shell.no-right { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.app-shell.single { display: block; max-width: 1480px; }

.sidebar,
.right-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

@media (min-width: 992px) {
  .sidebar,
  .right-panel {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}

.sidebar {
  min-height: calc(100vh - var(--header-height) - 48px);
  padding-right: 18px;
  border-right: 1px solid var(--border-soft);
}

.sidebar-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-title {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
}

.side-link.active,
.side-link:hover {
  background: #efe1cf;
  color: var(--color-terracotta);
}

.country-filter-list {
  display: grid;
  gap: 4px;
  max-height: min(430px, 48vh);
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.country-filter-list .side-link {
  min-width: 0;
  background: transparent;
  text-align: left;
}

.country-filter-list .side-link span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-filter-list .side-link small {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.country-filter-flag {
  display: inline-flex;
  flex: 0 0 24px;
  justify-content: center;
}

.country-filter-flag img {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.k-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(250, 246, 239, 0.82);
  box-shadow: var(--shadow-card);
}

.k-card.padded { padding: 22px; }
.k-card.soft { background: rgba(255, 251, 245, 0.68); box-shadow: none; }

.k-card::after,
.patterned::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  pointer-events: none;
  opacity: 0.08;
  background: repeating-linear-gradient(45deg, transparent 0 12px, var(--color-terracotta) 13px 15px, transparent 16px 28px);
}

.k-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: var(--color-ivory);
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  transition: 0.2s ease;
}

.k-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31,31,31,0.08); }
.k-button-primary { border-color: var(--color-terracotta); background: var(--color-terracotta); color: #fff; }
.k-button-primary:hover { background: var(--color-terracotta-dark); color: #fff; }
.k-button-secondary { background: #fff8ee; color: var(--color-charcoal); }
.k-button-dark { background: var(--color-charcoal); color: #fff; border-color: var(--color-charcoal); }
.k-button-outline { background: transparent; border-color: rgba(122, 90, 69, 0.28); color: var(--color-brown); }
.k-button-sm { min-height: 30px; padding: 6px 10px; font-size: 0.8rem; }

.follow-button.is-following,
.k-button[data-follow-profile].is-following {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta);
  color: #fff;
}

.follow-button.is-following:hover,
.k-button[data-follow-profile].is-following:hover {
  background: var(--color-terracotta-dark);
  color: #fff;
}

.profile-action-row,
.post-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-head-actions {
  justify-content: flex-end;
}

.post-follow-button {
  min-height: 36px;
  padding-inline: 12px;
}

.k-chip,
.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(122, 90, 69, 0.18);
  border-radius: 999px;
  background: rgba(250, 246, 239, 0.88);
  color: var(--color-brown);
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: normal;
}

.k-chip.active {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta);
  color: #fff;
}

.profile-language-chip button,
.profile-multi-chip button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(122, 90, 69, 0.12);
  color: inherit;
}

/* Zone tactile étendue de la croix (~44px) sans grossir le visuel. */
.profile-language-chip button::after,
.profile-multi-chip button::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
}

.profile-language-chip button:hover,
.profile-multi-chip button:hover {
  background: rgba(200, 107, 66, 0.18);
  color: var(--color-terracotta-dark);
}

.profile-origin-list .profile-multi-chip img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.flag { font-size: 1.05rem; line-height: 1; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-terracotta);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.76rem;
}

.section-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--text-main);
}

.desktop-header .header-actions .icon-btn:has(.bi-bell) {
  display: none;
}

.mobile-explorer-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-explorer-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122, 90, 69, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-main);
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.08);
}

.mobile-explorer-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer-backdrop);
  pointer-events: none;
  opacity: 0;
  background: rgba(31, 31, 31, 0.22);
  transition: opacity 0.2s ease;
}

.mobile-explorer-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--z-drawer);
  width: min(80vw, 360px);
  transform: translateX(-104%);
  display: grid;
  align-content: start;
  gap: 18px;
  padding: calc(18px + env(safe-area-inset-top)) 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 250, 242, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 18px 0 48px rgba(31, 31, 31, 0.2);
  transition: transform 0.24s ease;
}

.mobile-explorer-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-explorer-links {
  display: grid;
  gap: 10px;
}

.mobile-explorer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px;
  border: 1px solid rgba(122, 90, 69, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-main);
  font-weight: 900;
  text-decoration: none;
}

.mobile-explorer-links i {
  color: var(--color-terracotta);
  font-size: 1.25rem;
}

.mobile-explorer-open .mobile-explorer-backdrop {
  pointer-events: auto;
  opacity: 1;
}

.mobile-explorer-open .mobile-explorer-drawer {
  transform: translateX(0);
}

.video-stage {
  height: min(690px, calc(100vh - var(--header-height) - 56px));
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #1f1f1f;
  color: white;
  box-shadow: 0 22px 60px rgba(31, 31, 31, 0.18);
}

.feed-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1f1f1f;
}

.feed-image-player {
  object-fit: contain;
  background: #0c0c0c;
}

.feed-embed-player {
  border: 0;
}

@media (min-width: 992px) {
  .video-stage.is-native-ratio {
    min-height: 0;
  }

  .video-stage.is-native-ratio.is-landscape {
    aspect-ratio: var(--feed-media-ratio, 16 / 9);
    height: min(690px, calc(100vh - var(--header-height) - 56px));
    width: 100%;
  }

  .video-stage.is-native-ratio.is-portrait {
    aspect-ratio: var(--feed-media-ratio, 9 / 16);
    width: min(420px, 100%);
    height: min(690px, calc(100vh - var(--header-height) - 56px));
    margin-inline: auto;
  }

  .video-stage.is-native-ratio .feed-video-player,
  .video-stage.is-native-ratio .feed-image-player {
    object-fit: contain;
    object-position: center center;
    background: #0c0c0c;
  }
}

.hero-photo,
.image-cover {
  background:
    linear-gradient(180deg, rgba(31,31,31,0.06), rgba(31,31,31,0.72)),
    var(--photo, linear-gradient(135deg, #d4a13d, #7a5a45));
  background-size: cover;
  background-position: center;
}

.photo-senegal {
  --photo:
    radial-gradient(circle at 20% 18%, rgba(255, 212, 119, 0.85), transparent 16rem),
    linear-gradient(155deg, #d79641 0%, #7a5a45 45%, #22322d 100%);
}
.photo-profile {
  --photo:
    radial-gradient(circle at 82% 20%, rgba(212, 161, 61, 0.55), transparent 18rem),
    linear-gradient(135deg, #3a261e 0%, #8d5435 48%, #1f1f1f 100%);
}
.photo-events {
  --photo:
    radial-gradient(circle at 18% 22%, rgba(250, 246, 239, 0.36), transparent 12rem),
    linear-gradient(135deg, #c86b42 0%, #a87536 45%, #1f1f1f 100%);
}
.photo-community {
  --photo:
    radial-gradient(circle at 28% 26%, rgba(231, 215, 184, 0.7), transparent 14rem),
    linear-gradient(145deg, #2b2925 0%, #7a5a45 46%, #d4a13d 100%);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.12) 48%, rgba(0,0,0,0.72));
}

.video-stage.is-embed-post .video-overlay {
  pointer-events: none;
}

.video-stage.is-embed-post .video-country-lockup,
.video-stage.is-embed-post .feed-country-picker,
.video-stage.is-embed-post .video-step,
.video-stage.is-embed-post .video-actions-shell,
.video-stage.is-embed-post .video-meta {
  pointer-events: auto;
}

.video-control-row {
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.video-stage.is-controls-visible .video-control-row,
.video-stage:not(.is-playing) .video-control-row,
.video-stage:hover .video-control-row {
  opacity: 1;
}

.video-stage.is-controls-hidden .video-control-row {
  opacity: 0 !important;
  pointer-events: none;
}

.video-play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 50%;
  background: rgba(31,31,31,0.34);
  color: #fff;
  font-size: 3.2rem;
  backdrop-filter: blur(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-stage.is-playing .video-play-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.video-actions-shell {
  position: absolute;
  right: clamp(12px, 1.4vw, 24px);
  top: 50%;
  z-index: 8;
  min-width: clamp(58px, 4.8vw, 74px);
  max-height: calc(100% - 24px);
  padding: clamp(8px, 0.8vw, 12px) clamp(6px, 0.7vw, 10px);
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.12);
  backdrop-filter: blur(4px);
  transform: translateY(-50%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.video-actions {
  display: grid;
  gap: clamp(8px, 0.9vh, 14px);
  max-height: calc(100% - 8px);
  text-align: center;
  font-weight: 800;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-actions::-webkit-scrollbar {
  display: none;
}

.video-stage.is-native-ratio .video-actions-shell {
  right: max(10px, 1.2%);
}

.video-actions button i.fs-2 {
  font-size: clamp(1.2rem, 1.35vw, 1.9rem) !important;
}

.video-actions button span {
  font-size: clamp(0.66rem, 0.66vw, 0.8rem);
  line-height: 1.1;
}

.video-creator-action {
  width: clamp(40px, 3.2vw, 50px);
  min-height: clamp(40px, 3.2vw, 50px);
}

.video-creator-action .avatar {
  width: clamp(36px, 2.9vw, 46px);
  height: clamp(36px, 2.9vw, 46px);
  flex-basis: clamp(36px, 2.9vw, 46px);
}

.video-follow-action {
  width: clamp(36px, 2.9vw, 46px);
  height: clamp(36px, 2.9vw, 46px);
  font-size: clamp(1rem, 1.1vw, 1.25rem);
}

.video-actions button {
  color: white;
  background: transparent;
  border: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.video-actions button.active i,
.video-actions button.active span {
  color: var(--color-ochre);
}

.video-actions button.active {
  transform: translateY(-1px);
}

.video-country-lockup {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}

.video-top-row {
  position: relative;
  z-index: 12;
}

.video-country-flag {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 14px rgba(31, 31, 31, 0.34));
}

.video-country-flag img {
  width: 46px;
  height: 32px;
  object-fit: cover;
  border-radius: 3px;
}

.video-country-flag[data-country-page],
.country-filter-flag[data-country-page],
.country-modal-option .flag[data-country-page] {
  cursor: pointer;
}

.video-country-flag[data-country-page]:hover img,
.country-filter-flag[data-country-page]:hover img,
.country-modal-option .flag[data-country-page]:hover img {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.video-country-name {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(200, 107, 66, 0.74), rgba(31, 31, 31, 0.38)),
    rgba(31, 31, 31, 0.36);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.2);
  backdrop-filter: blur(10px);
}

.video-country-chevron {
  margin-left: -2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  filter: drop-shadow(0 4px 10px rgba(31, 31, 31, 0.34));
  display: none;
}

.feed-country-picker {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 18;
  width: min(310px, calc(100vw - 28px));
  max-height: min(460px, calc(100vh - 150px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(31, 31, 31, 0.74);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  color: #fff;
  overflow: hidden;
}

.feed-country-picker[hidden] {
  display: none;
}

.feed-country-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.feed-country-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.feed-country-search input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.feed-country-options {
  display: grid;
  gap: 6px;
  max-height: min(360px, calc(100vh - 220px));
  margin-top: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feed-country-options::-webkit-scrollbar,
.country-modal-options::-webkit-scrollbar {
  display: none;
}

.feed-country-picker .country-modal-option {
  min-height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.feed-country-picker .country-modal-option:hover,
.feed-country-picker .country-modal-option.active {
  background: rgba(200, 107, 66, 0.88);
  color: #fff;
}

.feed-country-picker .country-modal-option .small-k {
  color: rgba(255, 255, 255, 0.72);
}

.feed-country-picker .flag {
  width: 30px;
  display: inline-flex;
  justify-content: center;
}

.feed-country-picker .flag img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
}

.feed-empty-state {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 8px;
  max-width: 320px;
  margin: auto;
  padding: 22px;
  border-radius: 18px;
  background: rgba(31, 31, 31, 0.36);
  text-align: center;
  backdrop-filter: blur(12px);
}

.feed-empty-state i {
  font-size: 2rem;
}

.video-step {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 2.6vw;
  height: 2.6vw;
  min-width: 34px;
  min-height: 34px;
  max-width: 42px;
  max-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(31, 31, 31, 0.1);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  transform: translateY(-50%);
  opacity: 0.48;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.video-step:hover {
  background: rgba(31, 31, 31, 0.24);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.88;
  transform: translateY(-50%) scale(1.03);
}

.video-step-prev {
  left: 1.2vw;
}

.video-step-next {
  right: 8.2vw;
}

.video-creator-action {
  position: relative;
  justify-self: center;
  width: 50px;
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
}

.video-creator-action .avatar {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-width: 3px;
}

.video-follow-action {
  justify-self: center;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(200, 107, 66, 0.96), rgba(212, 161, 61, 0.88)) !important;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(200, 107, 66, 0.32);
  text-shadow: none !important;
}

.video-follow-action.active {
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.96), rgba(79, 145, 93, 0.86)) !important;
  box-shadow: 0 12px 24px rgba(47, 111, 66, 0.26);
}

.video-follow-action.active i::before {
  content: "\f26e";
}

.video-meta {
  max-width: 620px;
  padding-right: 74px;
}

.video-author-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 9px;
  padding: 0.34em 0.72em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.22);
  color: #fff;
  font-size: 86%;
  backdrop-filter: blur(10px);
}

.video-author-line span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.video-caption {
  display: grid;
  gap: 7px;
  max-width: 580px;
  padding: 0.62em 0.78em;
  border-left: 3px solid var(--color-ochre);
  border-radius: 0 14px 14px 0;
  background:
    linear-gradient(90deg, rgba(212, 161, 61, 0.18), rgba(31, 31, 31, 0.08)),
    rgba(31, 31, 31, 0.18);
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
  font-size: 88% !important;
  line-height: 1.45;
}

.video-caption-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.video-caption button {
  justify-self: start;
  margin-left: 0;
  padding: 0.16em 0.62em;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(200, 107, 66, 0.78);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.16);
  font-size: 92%;
  font-weight: 900;
  white-space: nowrap;
}

.video-caption.is-collapsed {
  max-width: 560px;
}

.video-caption.is-collapsed .video-caption-text {
  display: block;
  max-height: 3.05em;
  overflow: hidden;
}

.video-meta .fw-semibold {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: #ffdca5;
  font-size: 88%;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.video-meta > p:not(.video-caption):not(.fw-semibold) {
  font-size: 88%;
}

.video-claw-mark {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 12;
  width: min(420px, 52vw);
  height: min(320px, 40vw);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-13deg);
  mix-blend-mode: screen;
  filter: saturate(1.22) drop-shadow(0 22px 38px rgba(0, 0, 0, 0.5));
}

.video-claw-mark .claw-impact {
  position: absolute;
  left: 52%;
  top: 32%;
  width: 23%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(0.15);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 249, 237, 0.96) 0 18%, rgba(255, 214, 140, 0.94) 22%, rgba(217, 86, 52, 0.54) 55%, rgba(0, 0, 0, 0) 75%);
  opacity: 0;
  filter: blur(1.2px);
  animation: clawImpactFlash 0.5s cubic-bezier(.17, .9, .2, 1) both;
}

.video-claw-mark .claw-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.video-claw-mark .claw-path,
.video-claw-mark .claw-trace {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-claw-mark .claw-path {
  stroke: url(#clawStroke);
  stroke-width: 15;
  opacity: 0;
  filter: url(#clawGlow);
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: clawDraw 0.62s cubic-bezier(.12, .96, .2, 1) forwards;
}

.video-claw-mark .claw-path-2 {
  animation-delay: 0.03s;
}

.video-claw-mark .claw-path-3 {
  animation-delay: 0.06s;
}

.video-claw-mark .claw-trace {
  stroke: rgba(255, 238, 200, 0.64);
  stroke-width: 3.8;
  opacity: 0;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  filter: blur(1.2px);
  animation: clawTrace 0.76s ease-out forwards;
}

.video-claw-mark .claw-trace-2 {
  animation-delay: 0.03s;
}

.video-claw-mark .claw-trace-3 {
  animation-delay: 0.06s;
}

.video-claw-mark .claw-rip {
  fill: none;
  stroke: rgba(18, 10, 8, 0.72);
  stroke-width: 5.5;
  opacity: 0;
  stroke-linecap: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  filter: blur(0.25px);
  animation: clawRipPersist 0.95s ease-out forwards;
}

.video-claw-mark .claw-rip-2 {
  animation-delay: 0.03s;
}

.video-claw-mark .claw-rip-3 {
  animation-delay: 0.06s;
}

.video-stage.is-claw-hit .feed-video-player,
.video-stage.is-claw-hit .feed-image-player {
  animation: clawHitShake 0.42s cubic-bezier(.2, .9, .2, 1);
  filter: saturate(1.2) contrast(1.06);
}

@keyframes clawDraw {
  0% {
    opacity: 0;
    stroke-dashoffset: 340;
    transform: translateY(-36px) scaleY(0.08);
  }
  20% {
    opacity: 1;
  }
  52% {
    opacity: 1;
    stroke-dashoffset: 50;
    transform: translateY(2px) scaleY(1.12);
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -44;
    transform: translateY(32px) scaleY(1.2);
  }
}

@keyframes clawTrace {
  0% {
    opacity: 0;
    stroke-dashoffset: 300;
  }
  38% {
    opacity: 0.9;
    stroke-dashoffset: 46;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -54;
  }
}

@keyframes clawImpactFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }
  38% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.9);
  }
}

@keyframes clawRipPersist {
  0% {
    opacity: 0;
    stroke-dashoffset: 160;
  }
  42% {
    opacity: 0.75;
    stroke-dashoffset: 16;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -16;
  }
}

@keyframes clawHitShake {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  18% { transform: translate3d(-1.2%, 0.6%, 0) scale(1.015); }
  36% { transform: translate3d(1.1%, -0.7%, 0) scale(1.012); }
  54% { transform: translate3d(-0.7%, 0.45%, 0) scale(1.006); }
  72% { transform: translate3d(0.45%, -0.2%, 0) scale(1.002); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.video-actions button {
  position: relative;
}

.video-actions button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(45deg, rgba(212, 161, 61, 0.78) 0 4px, transparent 4px 8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 60%);
  transform: translate(-50%, -50%) scale(0.55);
}

.video-actions button.is-pulsing::after,
.video-actions button.is-saving::after,
.video-actions button.is-following::after {
  animation: koryaanActionBurst 0.58s ease-out both;
}

.video-actions button.is-pulsing i {
  animation: koryaanHeartPop 0.46s cubic-bezier(.2, 1.6, .3, 1) both;
}

.video-actions button.is-saving i {
  animation: koryaanBookmarkDrop 0.5s ease both;
}

.video-actions button.is-following i {
  animation: koryaanFollowSpin 0.52s ease both;
}

@keyframes koryaanActionBurst {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.45) rotate(0deg); }
  70% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.45) rotate(18deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9) rotate(28deg); }
}

@keyframes koryaanHeartPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.32); color: #f2b55f; }
  100% { transform: scale(1); }
}

@keyframes koryaanBookmarkDrop {
  0% { transform: translateY(-2px) scale(0.96); }
  45% { transform: translateY(3px) scale(1.22); color: #f2b55f; }
  100% { transform: translateY(0) scale(1); }
}

@keyframes koryaanFollowSpin {
  0% { transform: rotate(0deg) scale(1); }
  55% { transform: rotate(90deg) scale(1.22); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes koryaanClawSlash {
  0% {
    opacity: 0;
    transform: translateY(-56%) scaleY(0.08) rotate(-3deg);
  }
  16% {
    opacity: 1;
  }
  34% {
    opacity: 1;
    transform: translateY(-8%) scaleY(1.08) rotate(-1deg);
  }
  58% {
    opacity: 0.92;
    transform: translateY(10%) scaleY(1.14) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(26%) scaleY(1.2) rotate(1.8deg);
  }
}

@keyframes koryaanClawTrail {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-18%) scaleY(0.2);
  }
  28% {
    opacity: 0.82;
    transform: translateX(-50%) translateY(0) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20%) scaleY(1.1);
  }
}

@keyframes koryaanClawCoreFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18);
  }
  34% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.32);
  }
}

@keyframes koryaanClawRingBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  28% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(6.6);
  }
}

@keyframes koryaanClawSpark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) scale(0.46);
  }
  20% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-10.8em) scale(0.04);
  }
}

.progress-line {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  overflow: hidden;
}

.progress-line span {
  display: block;
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: white;
  animation: progress 10s linear infinite;
}

.video-control-row {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 6;
  width: min(760px, calc(100% - 220px));
  display: grid;
  grid-template-columns: 38px 38px minmax(120px, 1fr) auto 38px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.22);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.video-mini-control {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.video-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
}

.video-stage:fullscreen .video-control-row {
  bottom: max(26px, env(safe-area-inset-bottom));
  width: min(860px, calc(100vw - 120px));
}

.video-stage:fullscreen .video-play-toggle {
  opacity: 0;
  pointer-events: none;
}

.video-progress {
  width: 100%;
  accent-color: #fff;
  cursor: pointer;
}

.horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.suggested-profiles-track {
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

.suggested-profiles-shell {
  position: relative;
}

.suggested-profiles-arrow {
  display: none;
}

.suggested-profile-link,
.suggested-profile-name {
  color: inherit;
  text-decoration: none;
}

.suggested-profile-avatar-link {
  display: inline-flex;
  border-radius: 50%;
}

.suggested-profile-name {
  font-weight: 800;
}

.suggested-profile-link:focus-visible,
.suggested-profile-name:focus-visible,
.suggested-profiles-arrow:focus-visible,
.community-scroll-arrow:focus-visible {
  outline: 3px solid rgba(200, 107, 66, 0.28);
  outline-offset: 3px;
}

@media (min-width: 992px) {
  body[data-page="feed"] .suggested-profiles-shell {
    margin: 0 -42px;
    padding: 0 42px;
  }

  body[data-page="feed"] .suggested-profiles-shell.has-profile-carousel .suggested-profiles-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(122, 90, 69, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-terracotta);
    box-shadow: 0 12px 26px rgba(33, 23, 17, 0.16);
    transform: translateY(-50%);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  body[data-page="feed"] .suggested-profiles-arrow:hover {
    background: var(--color-terracotta);
    color: #fff;
    transform: translateY(-50%) scale(1.04);
  }

  body[data-page="feed"] .suggested-profiles-arrow-prev {
    left: 0;
  }

  body[data-page="feed"] .suggested-profiles-arrow-next {
    right: 0;
  }
}

.suggested-profiles-track.is-dragging {
  cursor: grabbing;
}

.suggested-profile-card {
  width: clamp(190px, 16vw, 250px);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(122, 90, 69, 0.18);
  background:
    linear-gradient(155deg, rgba(212, 161, 61, 0.22), rgba(255, 255, 255, 0.9) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 238, 226, 0.9));
  box-shadow: 0 14px 28px rgba(33, 23, 17, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.suggested-profile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 107, 66, 0.45);
  box-shadow: 0 16px 30px rgba(33, 23, 17, 0.16);
}

.suggested-profile-card .avatar-sm {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.suggested-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggested-follow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(200, 107, 66, 0.34);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.suggested-follow-btn:hover {
  transform: scale(1.04);
  background: rgba(200, 107, 66, 0.14);
}

.suggested-profile-card.is-following .suggested-follow-btn {
  background: var(--color-terracotta);
  color: #fff;
  border-color: var(--color-terracotta);
}

.video-thumb {
  width: 180px;
  cursor: pointer;
}

.video-thumb.active .thumb-img {
  box-shadow: 0 0 0 3px rgba(200, 107, 66, 0.34);
}

.country-flag-img {
  width: 42px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(31, 31, 31, 0.12);
}

.community-page {
  max-width: 1380px;
}

.community-hero {
  min-height: 360px;
}

.community-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.community-stat-card i,
.community-path-card i,
.community-actions-panel i {
  color: var(--color-terracotta);
}

.community-stat-card strong {
  display: block;
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.12rem;
}

.community-directory .form-control {
  max-width: 360px;
}

.community-countries-shell {
  position: relative;
  padding: 0 38px;
}

.community-countries-track {
  align-items: stretch;
}

.community-scroll-arrow {
  display: none;
}

.community-countries-shell.has-community-carousel .community-scroll-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(122, 90, 69, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-terracotta);
  box-shadow: 0 12px 26px rgba(33, 23, 17, 0.16);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.community-scroll-arrow:hover {
  background: var(--color-terracotta);
  color: #fff;
  transform: translateY(-50%) scale(1.04);
}

.community-scroll-arrow-prev {
  left: 2px;
}

.community-scroll-arrow-next {
  right: 2px;
}

@media (min-width: 992px) {
  .community-countries-shell {
    margin: 0 -42px;
    padding: 0 42px;
  }

  .community-countries-shell.has-community-carousel .community-scroll-arrow {
    width: 36px;
    height: 36px;
  }

  .community-scroll-arrow-prev {
    left: 0;
  }

  .community-scroll-arrow-next {
    right: 0;
  }
}

.country-card {
  width: 176px;
  min-height: 244px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.country-card-title {
  display: block;
  height: 72px;
  margin-top: 12px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.country-card-flag-link {
  display: inline-flex;
  width: fit-content;
  border-radius: 8px;
}

.country-card-flag-link:focus-visible,
.country-card-title a:focus-visible {
  outline: 3px solid rgba(200, 107, 66, 0.32);
  outline-offset: 4px;
}

.country-card-meta {
  display: block;
  min-height: 38px;
}

.country-card .k-button {
  margin-top: auto;
  align-self: center;
  width: auto;
  min-width: min(112px, 100%);
}

.community-actions-panel {
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.1), transparent 34%),
    rgba(250, 246, 239, 0.9);
}

.country-page {
  align-items: start;
}

.country-profile-shell {
  display: grid;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.country-profile-shell.is-hydrating .country-hero,
.country-profile-shell.is-hydrating .country-stat-card {
  position: relative;
}

.country-profile-shell.is-hydrating .country-hero::after,
.country-profile-shell.is-hydrating .country-stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.36) 48%, transparent 100%);
  transform: translateX(-100%);
  animation: countryShimmer 1.8s ease-in-out infinite;
}

.country-loading-state,
.country-directory-hero,
.country-hero,
.country-media-section {
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.08), transparent 32%),
    rgba(255, 250, 242, 0.8);
  box-shadow: var(--shadow-card);
}

.country-loading-state {
  min-height: 340px;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
  color: var(--text-muted);
  overflow: hidden;
}

.country-loading-state i {
  font-size: 2.4rem;
  color: var(--color-terracotta);
}

.country-loading-state strong {
  display: block;
  color: var(--text-main);
  font-family: "Sora", "Inter", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.country-loading-state p {
  max-width: 420px;
  margin: 6px auto 0;
}

.country-loader-orbit {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 250, 242, 0.95) 0 36%, transparent 37%),
    conic-gradient(from 90deg, rgba(200, 107, 66, 0.95), rgba(47, 111, 66, 0.9), rgba(241, 183, 90, 0.92), rgba(200, 107, 66, 0.95));
  box-shadow: 0 22px 50px rgba(122, 90, 69, 0.18);
  animation: countryOrbit 1.45s linear infinite;
}

.country-loader-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 31, 31, 0.18);
}

.country-loader-orbit span:nth-child(1) { top: 7px; left: 40px; }
.country-loader-orbit span:nth-child(2) { right: 11px; bottom: 22px; }
.country-loader-orbit span:nth-child(3) { left: 14px; bottom: 20px; }

.country-loading-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 110px));
  gap: 10px;
  width: min(100%, 370px);
}

.country-loading-skeleton span {
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.58));
  background-size: 220% 100%;
  animation: countrySkeleton 1.35s ease-in-out infinite;
}

.country-loading-skeleton span:nth-child(2) {
  animation-delay: 0.12s;
}

.country-loading-skeleton span:nth-child(3) {
  animation-delay: 0.24s;
}

.country-directory-hero {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 5vw, 48px);
}

.country-directory-hero h1,
.country-hero h1 {
  margin: 0;
}

.country-directory-search {
  width: min(100%, 520px);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(122, 90, 69, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.country-directory-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.country-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.country-directory-card {
  display: grid;
  gap: 10px;
  min-height: 152px;
  padding: 16px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-main);
  box-shadow: var(--shadow-card);
}

.country-directory-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.country-directory-card img {
  width: 54px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.12);
}

.country-directory-card strong {
  line-height: 1.18;
}

.country-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.8fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: stretch;
  overflow: visible;
  padding: clamp(24px, 5vw, 52px);
}

.country-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 14px;
  padding-right: clamp(8px, 2vw, 18px);
}

.country-hero-phone {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: fit-content;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(47, 111, 66, 0.1);
  color: var(--text-main);
  font-size: 0.92rem;
}

.country-hero-phone i {
  color: var(--color-green);
  font-size: 1rem;
}

.country-hero-phone span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.country-hero-phone strong {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.country-hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.country-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(200, 107, 66, 0.11);
  color: var(--color-terracotta);
  font-size: 0.78rem;
  font-weight: 900;
}

.country-live-chip i {
  animation: countrySpin 1.2s linear infinite;
}

.country-live-chip.is-ready {
  background: rgba(47, 111, 66, 0.12);
  color: var(--color-green);
}

.country-live-chip.is-ready i {
  animation: none;
}

.country-back-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.country-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.country-hero-media {
  position: relative;
  isolation: isolate;
  align-self: center;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  min-height: clamp(240px, 30vw, 330px);
  padding: 16px 16px 54px;
  border-radius: 24px;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(200, 107, 66, 0.22), rgba(47, 111, 66, 0.28)),
    rgba(31, 31, 31, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.country-hero-photo-frame {
  position: relative;
  width: 100%;
  height: clamp(210px, 26vw, 286px);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(31, 31, 31, 0.12);
  box-shadow: 0 18px 42px rgba(31, 31, 31, 0.16);
}

.country-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.05);
  display: block;
  transform: scale(1.03);
}

.country-hero-photo-fallback {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 5rem;
  transform: none;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(47, 111, 66, 0.88), rgba(200, 107, 66, 0.82));
}

.country-hero-flag {
  position: absolute;
  left: 28px;
  bottom: 14px;
  z-index: 3;
  width: 108px;
  height: 76px;
  object-fit: cover;
  object-position: center;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(31, 31, 31, 0.24);
}

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

@media (max-width: 1199px) {
  .country-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.country-stat-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 154px;
  padding: 18px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.country-stat-card i {
  color: var(--color-terracotta);
  font-size: 1.35rem;
}

.country-stat-card span,
.country-detail-row span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.country-stat-card strong {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.22rem;
  line-height: 1.15;
}

.country-stat-card small {
  color: var(--text-muted);
}

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

.country-details-card {
  display: grid;
  gap: 10px;
}

.country-detail-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(122, 90, 69, 0.1);
}

.country-detail-row strong {
  line-height: 1.35;
}

.country-side {
  display: grid;
  gap: 16px;
}

.country-koryaan-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.country-koryaan-stats span {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(250, 246, 239, 0.78);
}

.country-koryaan-stats strong {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.4rem;
}

.country-koryaan-stats small {
  color: var(--text-muted);
}

.country-sources-card {
  display: grid;
  gap: 9px;
}

.country-sources-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--color-terracotta);
  font-weight: 800;
}

.country-sources-card a::after {
  content: "\F1C5";
  font-family: "bootstrap-icons";
  font-size: 0.82rem;
}

.country-media-section {
  padding: clamp(20px, 4vw, 34px);
}

.country-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.country-video-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.country-video-thumb {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.country-video-card strong {
  line-height: 1.22;
}

.country-video-card small {
  color: var(--text-muted);
}

@keyframes countryOrbit {
  to { transform: rotate(360deg); }
}

@keyframes countrySkeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes countryShimmer {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

@keyframes countrySpin {
  to { transform: rotate(360deg); }
}

.community-page #communitiesGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-inline: 0;
}

.community-page #communitiesGrid > * {
  width: auto;
  max-width: none;
  padding: 0;
  display: flex;
}

.community-action-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.community-action-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
}

.community-action-list a:hover {
  border-color: rgba(200, 107, 66, 0.3);
  background: #fff8ee;
}

.community-action-list i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200, 107, 66, 0.12);
}

.community-action-list strong,
.community-action-list small {
  display: block;
}

.community-action-list small {
  color: var(--text-muted);
  line-height: 1.35;
}

.community-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: 100%;
}

.community-path-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.community-card {
  min-height: 268px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-card h3 {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.community-card p {
  min-height: 52px;
}

.community-card .k-chip {
  margin-top: auto;
}

.community-card .k-button {
  margin-top: 0;
}

.community-card-actions {
  width: min(100%, 152px);
  display: grid;
  grid-template-columns: minmax(86px, 1fr) 38px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.community-card-actions .community-view-button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 0.84rem;
}

.community-join-button {
  width: 38px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(200, 107, 66, 0.28);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--color-terracotta);
  box-shadow: inset 0 0 0 1px rgba(250, 246, 239, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.community-join-button:hover {
  transform: translateY(-1px);
  background: #fff8ee;
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.08);
}

.community-join-button.is-joined {
  border-color: rgba(47, 111, 66, 0.32);
  background: #2f6f42;
  color: #fff;
}

.community-card h3 a {
  color: inherit;
  text-decoration: none;
}

.community-card h3 a:hover {
  color: var(--color-terracotta);
}

.k-button[data-community-join].is-joined {
  border-color: rgba(47, 111, 66, 0.28);
  background: #2f6f42;
  color: #fff;
}

.community-join-button.is-pending,
.k-button[data-community-join].is-pending {
  border-color: rgba(212, 161, 61, 0.36);
  background: rgba(212, 161, 61, 0.16);
  color: #7a5a20;
}

.community-detail-page {
  max-width: 1380px;
}

.community-detail-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--color-charcoal);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.community-detail-cover {
  position: absolute;
  inset: 0;
  opacity: 0.78;
}

.community-detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31,31,31,0.9), rgba(31,31,31,0.54) 48%, rgba(31,31,31,0.2));
}

.community-detail-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
}

.community-back-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 800;
}

.community-detail-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.community-detail-title-row h1 {
  margin-bottom: 10px;
}

.community-detail-title-row p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
}

.community-avatar-xl {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,0.72);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-ochre));
  color: #fff;
  font-family: "Sora", "Inter", sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(31,31,31,0.2);
}

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

.community-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

.community-detail-page.is-overview-view .community-tree-section {
  display: none;
}

.community-detail-page.is-tree-view .community-about-grid,
.community-detail-page.is-tree-view .community-members-section,
.community-detail-page.is-tree-view #communityManagement,
.community-detail-page.is-tree-view .community-detail-side {
  display: none;
}

.community-detail-page.is-tree-view .community-detail-layout {
  display: block;
}

.community-detail-page.is-tree-view .community-detail-main {
  max-width: 880px;
  margin: 0 auto;
}

.community-detail-page.is-tree-view .community-detail-hero-content {
  min-height: 270px;
}

.community-detail-side {
  position: static;
  top: auto;
}

@media (min-width: 1200px) {
  .community-detail-page.is-overview-view .community-detail-layout {
    height: calc(100vh - var(--header-height) - 36px);
    min-height: 620px;
    overflow: hidden;
  }

  .community-detail-page.is-overview-view .community-detail-main,
  .community-detail-page.is-overview-view .community-detail-side {
    max-height: 100%;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .community-detail-page.is-overview-view .community-detail-main::-webkit-scrollbar,
  .community-detail-page.is-overview-view .community-detail-side::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

.community-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

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

.community-about-card p {
  margin: 0;
  color: var(--text-muted);
}

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

.community-detail-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.community-detail-stats article {
  display: grid;
  gap: 2px;
  align-content: center;
}

.community-detail-stats strong {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.35rem;
}

.community-detail-stats span {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.community-tree-entry-card {
  gap: 8px;
}

.community-tree-entry-card .k-button {
  width: max-content;
  min-height: 34px;
  margin-top: 4px;
}

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

.community-member-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.community-member-search {
  flex: 0 1 340px;
  max-width: 360px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(122, 90, 69, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--text-muted);
}

.community-member-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.community-member-pager {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.community-member-pager .icon-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.58);
}

.community-member-pager .icon-btn:disabled {
  opacity: 0.42;
  pointer-events: none;
}

.community-member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.52);
}

.community-member-card strong,
.community-member-card span {
  display: block;
}

.community-member-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.32;
}

.community-member-card .k-button {
  min-width: 78px;
}

.community-member-name,
.community-post-author-link {
  color: inherit;
  text-decoration: none;
}

.community-member-name:hover,
.community-post-author-link:hover {
  color: var(--color-terracotta);
}

.community-member-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.community-member-actions .icon-btn {
  width: 36px;
  height: 36px;
  border-color: rgba(122, 90, 69, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

.community-member-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(122, 90, 69, 0.18);
  border-radius: 14px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.42);
}

.community-post-form {
  margin-bottom: 14px;
}

.community-post-form-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.community-post-form textarea {
  min-height: 42px;
  max-height: 42px;
  resize: none;
  border-radius: 999px;
}

.community-post-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-left: 54px;
}

.community-post-tools {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.community-post-tools .icon-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.64);
}

.community-post-tools .icon-btn.active {
  border-color: rgba(200, 107, 66, 0.26);
  color: var(--color-terracotta);
  background: rgba(200, 107, 66, 0.1);
}

.community-composer-extras {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-left: 54px;
}

.community-composer-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.community-composer-preview {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.community-composer-preview img,
.community-composer-preview video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.community-composer-preview figcaption {
  padding: 7px 9px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-composer-preview .icon-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.86);
}

.community-composer-poll {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(47, 111, 66, 0.14);
  border-radius: 12px;
  background: rgba(47, 111, 66, 0.07);
}

.community-composer-poll-options {
  display: grid;
  gap: 7px;
}

.community-composer-poll-options label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.community-composer-poll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-tree-section {
  display: grid;
  gap: 14px;
}

.community-tree-head {
  align-items: center;
}

.community-tree-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.community-tree-posts {
  display: grid;
  gap: 14px;
}

.community-tree-post {
  display: grid;
  gap: 12px;
}

.community-tree-post-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.community-post-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.community-post-head-actions .icon-btn {
  width: 36px;
  height: 36px;
  border-color: rgba(122, 90, 69, 0.1);
  background: rgba(255, 255, 255, 0.54);
}

.community-tree-post-head span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.community-tree-post p {
  margin: 0;
}

.community-post-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.community-post-media {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid rgba(122, 90, 69, 0.1);
  border-radius: 12px;
  background: rgba(31, 31, 31, 0.05);
}

.community-post-poll {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(47, 111, 66, 0.14);
  border-radius: 12px;
  background: rgba(47, 111, 66, 0.07);
}

.community-post-poll > strong {
  color: var(--text-main);
}

.community-post-poll-options {
  display: grid;
  gap: 7px;
}

.community-post-poll-options button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text-muted);
  font-weight: 900;
  text-align: left;
}

.community-post-poll-options button.active,
.community-post-poll-options button:hover {
  border-color: rgba(47, 111, 66, 0.22);
  color: #2f6f42;
  background: rgba(255, 255, 255, 0.88);
}

.community-post-poll small {
  color: var(--text-muted);
  font-weight: 800;
}

.community-tree-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}

.community-tree-post-actions button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
}

.community-tree-post-actions button.active,
.community-tree-post-actions button:hover {
  color: var(--color-terracotta);
}

.community-post-comments {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(122, 90, 69, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.46);
}

.community-comments-list {
  display: grid;
  gap: 8px;
}

.community-comment-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.community-comment-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.community-comment-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.community-comment-head small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.community-comment-delete {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: #a33e24;
}

.community-comment-card p {
  margin: 5px 0 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(250, 246, 239, 0.78);
}

.community-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.community-comment-form .form-control {
  min-width: 0;
  border-radius: 999px;
}

.community-comment-form .k-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
}

.community-post-delete {
  color: #a33e24;
}

.community-rules-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
}

.community-rules-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  color: var(--text-muted);
}

.community-rules-list i {
  color: #2f6f42;
}

.community-event-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.community-event-list article,
.community-event-link {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.52);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.community-event-link:hover {
  border-color: rgba(200, 107, 66, 0.28);
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  transform: translateY(-1px);
}

.community-event-list strong,
.community-event-list span,
.community-event-list small {
  display: block;
}

.community-event-list span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.community-event-list small {
  color: var(--color-terracotta);
  font-size: 0.76rem;
  font-weight: 900;
}

.community-agenda-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.community-agenda-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-terracotta);
  font-weight: 900;
}

.community-agenda-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(47, 111, 66, 0.14);
  border-radius: 12px;
  background: rgba(47, 111, 66, 0.08);
}

.community-agenda-admin-card h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.community-event-form .modal-body {
  display: grid;
  gap: 10px;
}

.community-event-form {
  display: grid;
  gap: 8px;
}

.community-event-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.community-event-form .form-control,
.community-event-form .form-select {
  min-height: 38px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.event-category-picker-field,
.event-category-picker {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.event-selected-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.event-selected-categories:empty {
  display: none;
}

.event-category-chip {
  min-width: 0;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(200, 107, 66, 0.2);
  border-radius: 10px;
  background: rgba(200, 107, 66, 0.11);
  color: var(--color-terracotta-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.event-category-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-category-chip i {
  flex: 0 0 auto;
  font-size: 0.72rem;
}

.community-event-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 107, 66, 0.16);
  border-radius: 12px;
  background: rgba(200, 107, 66, 0.08);
  color: var(--text-main);
  font-weight: 900;
}

.community-event-context[hidden] {
  display: none;
}

.community-event-context a {
  color: var(--color-terracotta);
}

.community-management-card {
  border-color: rgba(47, 111, 66, 0.18);
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.1), transparent 34%),
    rgba(250, 246, 239, 0.92);
}

.community-admin-details {
  display: block;
}

.community-admin-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.community-admin-details summary::-webkit-details-marker {
  display: none;
}

.community-admin-details summary::after {
  content: "\F282";
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-muted);
  font-family: "bootstrap-icons";
  transition: transform 0.18s ease;
}

.community-admin-details[open] summary {
  margin-bottom: 16px;
}

.community-admin-details[open] summary::after {
  transform: rotate(180deg);
}

.community-admin-summary-meta {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.community-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.community-settings-form {
  display: grid;
  gap: 9px;
}

.community-settings-form .form-label {
  margin-bottom: -3px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-brown);
}

.community-settings-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
}

.community-settings-toggle input {
  margin-top: 3px;
  accent-color: var(--color-terracotta);
}

.community-settings-toggle strong,
.community-settings-toggle small {
  display: block;
}

.community-settings-toggle small {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.community-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.community-option-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.community-option-check input {
  accent-color: var(--color-terracotta);
}

.community-rule-editor {
  display: grid;
  gap: 8px;
}

.community-rule-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.community-rule-edit-list {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.community-rule-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(47, 111, 66, 0.12);
  border-radius: 10px;
  background: rgba(47, 111, 66, 0.07);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 800;
}

.community-rule-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.community-member-admin-panel {
  display: grid;
  gap: 18px;
}

.community-member-admin-panel h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.community-admin-list {
  display: grid;
  gap: 8px;
}

.community-admin-member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.community-admin-member strong,
.community-admin-member small {
  display: block;
}

.community-admin-member small {
  color: var(--text-muted);
  font-weight: 700;
}

.community-permission-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.community-permission-icons span,
.community-permission-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(122, 90, 69, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.community-permission-toggle {
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.community-permission-toggle:hover,
.community-permission-toggle.active,
.community-permission-icons.is-owner span {
  border-color: rgba(47, 111, 66, 0.2);
  color: #2f6f42;
  background: rgba(47, 111, 66, 0.1);
}

.community-permission-toggle:hover {
  transform: translateY(-1px);
}

.community-admin-actions {
  display: inline-flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.community-request-actions {
  display: inline-flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.community-admin-actions .icon-btn {
  width: 34px;
  height: 34px;
}

.community-admin-actions .icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.community-owner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 111, 66, 0.1);
  color: #2f6f42;
  font-size: 0.78rem;
  font-weight: 900;
}

.community-remove-member-button {
  white-space: nowrap;
}

.community-admin-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(122, 90, 69, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-muted);
}

.community-admin-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.community-moderation-card {
  border-color: rgba(163, 62, 36, 0.18);
  background:
    linear-gradient(135deg, rgba(163, 62, 36, 0.08), transparent 34%),
    rgba(250, 246, 239, 0.94);
}

.community-moderation-summary {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr minmax(0, 1.6fr);
  gap: 10px;
  margin-bottom: 14px;
}

.community-moderation-summary article {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
}

.community-moderation-summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-moderation-summary span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.community-moderation-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.community-moderation-item.is-hidden-item {
  background: rgba(250, 246, 239, 0.74);
}

.community-moderation-item-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.community-moderation-item-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-moderation-item-head small {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.community-moderation-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(163, 62, 36, 0.1);
  color: #8a301b;
  font-size: 0.72rem;
  font-weight: 900;
}

.community-moderation-text,
.community-moderation-context {
  margin: 0;
  overflow-wrap: anywhere;
}

.community-moderation-context {
  padding-left: 10px;
  border-left: 3px solid rgba(122, 90, 69, 0.16);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.community-moderation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.community-moderation-actions .icon-btn {
  width: 34px;
  height: 34px;
  border-color: rgba(122, 90, 69, 0.1);
  background: rgba(255, 255, 255, 0.62);
}

.community-moderation-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(122, 90, 69, 0.18);
  border-radius: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.44);
}

.community-moderation-archive {
  margin-top: 12px;
}

.community-moderation-archive summary {
  cursor: pointer;
  color: var(--color-brown);
  font-weight: 900;
}

.community-moderation-archive .community-moderation-list {
  margin-top: 10px;
}

.community-not-found {
  max-width: 640px;
  margin: 80px auto;
}

.video-thumb .thumb-img {
  height: 104px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d4a13d, #455f4a);
  color: white;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.post-card,
.event-card,
.profile-card,
.community-card,
.opportunity-card,
.country-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover,
.event-card:hover,
.profile-card:hover,
.community-card:hover,
.opportunity-card:hover,
.country-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.event-card.is-selected {
  border-color: rgba(200, 107, 66, 0.42);
  box-shadow: 0 16px 36px rgba(122, 90, 69, 0.14);
}

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

.event-detail-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 12px;
  background: rgba(250, 246, 239, 0.7);
}

.event-detail-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 800;
}

.event-detail-list i {
  color: var(--color-terracotta);
}

.event-attendance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-event-locked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 10px;
  background: rgba(250, 246, 239, 0.74);
}

.post-card {
  overflow: visible;
}

.post-composer {
  overflow: hidden;
  border-color: rgba(200, 107, 66, 0.16);
  background:
    linear-gradient(135deg, rgba(200, 107, 66, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(250, 246, 239, 0.86));
}

.post-composer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-ochre), #2f6f42);
  pointer-events: none;
}

.post-composer form {
  position: relative;
  z-index: 1;
}

.post-composer-context {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.post-composer-context strong {
  color: var(--color-brown);
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.post-composer-destination {
  width: min(360px, calc(100% - 56px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 12px 56px;
  padding: 4px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.post-composer-destination button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.post-composer-destination button.active {
  background: linear-gradient(135deg, rgba(200, 107, 66, 0.16), rgba(47, 111, 66, 0.12));
  color: var(--color-brown);
  box-shadow: 0 8px 18px rgba(122, 90, 69, 0.08);
}

.post-composer-main {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px !important;
  align-items: stretch !important;
}

.post-composer .avatar-sm {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  margin-top: 4px;
  border-width: 3px;
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.12);
}

.post-composer-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.post-composer textarea.form-control {
  min-height: 96px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid rgba(122, 90, 69, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.72);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.post-composer textarea.form-control:focus {
  border-color: rgba(200, 107, 66, 0.46);
  box-shadow:
    0 0 0 3px rgba(200, 107, 66, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.post-composer textarea.form-control::placeholder {
  color: rgba(107, 94, 85, 0.82);
  font-weight: 600;
}

.post-composer .k-button-primary {
  min-width: 108px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(200, 107, 66, 0.2);
}

.post-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-left: 56px;
}

.post-composer.is-wall-post {
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(250, 246, 239, 0.9));
}

.post-composer.is-wall-post .post-composer-destination,
.post-composer.is-wall-post .post-type-actions {
  display: none;
}

.post-mention {
  display: inline;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(200, 107, 66, 0.12);
  color: var(--color-terracotta);
  font-weight: 900;
  text-decoration: none;
}

.post-mention:hover {
  color: var(--color-brown);
  background: rgba(212, 161, 61, 0.18);
}

.post-type-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  padding-left: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.post-type-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(122, 90, 69, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--color-brown);
  box-shadow: 0 8px 16px rgba(31, 31, 31, 0.04);
}

.post-type-actions button.active,
.post-type-actions button:hover {
  border-color: rgba(200, 107, 66, 0.42);
  background: rgba(200, 107, 66, 0.12);
  color: var(--color-terracotta);
}

.post-submit-button {
  flex: 0 0 auto;
}

.post-extra-fields {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.post-media-preview {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.post-media-preview img,
.post-media-preview video {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

.post-description {
  position: relative;
  margin: 12px 0 14px;
  padding: 13px 14px 13px 18px;
  border-left: 4px solid var(--color-terracotta);
  border-radius: 0 14px 14px 0;
  background:
    linear-gradient(90deg, rgba(200, 107, 66, 0.13), rgba(212, 161, 61, 0.08)),
    rgba(255, 255, 255, 0.42);
  color: var(--color-charcoal);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.post-description::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 72px;
  height: 18px;
  pointer-events: none;
  opacity: 0.16;
  background: repeating-linear-gradient(45deg, transparent 0 8px, var(--color-terracotta) 9px 11px, transparent 12px 19px);
}

.post-attachment {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  aspect-ratio: auto;
  object-fit: contain;
  margin: 12px 0 16px;
  border: 1px solid rgba(122, 90, 69, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.12), transparent),
    rgba(31, 31, 31, 0.08);
  box-shadow: 0 14px 30px rgba(31, 31, 31, 0.1);
  cursor: zoom-in;
}

.post-attachment-loading {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 320px;
  padding: 24px;
  color: var(--text-muted);
  text-align: center;
}

.post-attachment-loading i {
  color: var(--color-terracotta);
  font-size: 2rem;
}

.post-media-viewer {
  position: fixed;
  inset: 0;
  z-index: var(--z-viewer);
  background: #050505;
  color: #fff;
}

.post-media-viewer[hidden] {
  display: none;
}

.post-media-viewer-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #050505;
}

.post-media-viewer-media,
.post-media-viewer-media img {
  width: 100%;
  height: 100%;
}

.post-media-viewer-media img {
  object-fit: contain;
  background: #050505;
}

.post-media-viewer-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.post-media-viewer-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 4;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.48);
  color: #fff;
  backdrop-filter: blur(12px);
}

.post-media-viewer-caption-wrap {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  right: max(70px, calc(14px + env(safe-area-inset-right)));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 3;
}

.post-media-viewer-caption {
  display: grid;
  gap: 5px;
  max-width: 100%;
  padding: 0.58em 0.72em;
  border-left: 3px solid var(--color-ochre);
  border-radius: 0 12px 12px 0;
  background:
    linear-gradient(90deg, rgba(212, 161, 61, 0.2), rgba(31, 31, 31, 0.08)),
    rgba(31, 31, 31, 0.32);
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  line-height: 1.42;
}

.post-media-viewer-caption-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.post-media-viewer-caption.is-collapsed .post-media-viewer-caption-text {
  display: block;
  max-height: 2.95em;
  overflow: hidden;
}

.post-media-viewer-caption button {
  justify-self: start;
  padding: 0.05em 0.5em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(200, 107, 66, 0.76);
  color: #fff;
  font-size: 92%;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.16);
}

body.post-media-viewer-open {
  overflow: hidden;
}

.poll-card,
.event-post-card {
  display: grid;
  gap: 9px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.44);
}

.poll-card button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(200, 107, 66, 0.18);
  border-radius: 12px;
  background: rgba(200, 107, 66, 0.08);
  color: var(--text-main);
  font-weight: 700;
}

.event-post-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.event-post-card img {
  width: 92px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.event-post-card i {
  color: var(--color-terracotta);
  font-size: 1.35rem;
}

.event-post-card p {
  margin: 2px 0 0;
  color: var(--text-muted);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  color: var(--text-muted);
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.post-action:hover {
  color: var(--color-terracotta);
}

.post-action.active {
  color: var(--color-terracotta);
  transform: translateY(-1px);
}

.post-action.active .bi-heart,
.post-action.active .bi-bookmark {
  font-family: "bootstrap-icons";
}

.post-action[data-post-like].active i::before {
  content: "\f415";
}

.post-action[data-post-save].active i::before {
  content: "\f1a3";
}

.post-action[data-post-repost].active {
  color: #2f6f42;
}

.post-menu {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 205px;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fffaf2;
  box-shadow: var(--shadow-soft);
}

.post-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
}

.post-menu button:hover {
  background: #efe1cf;
  color: var(--color-terracotta);
}

.post-menu button[data-post-delete] {
  color: #a33e24;
}

.post-menu button[data-post-delete]:hover {
  background: rgba(200, 107, 66, 0.14);
  color: #8a301b;
}

.post-edit-media-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.post-edit-media-actions .k-button {
  width: 100%;
  min-height: 40px;
}

#editPostMediaPreview img,
#editPostMediaPreview video {
  width: 100%;
  height: auto;
  max-height: min(62vh, 520px);
  object-fit: contain;
  border-radius: 14px;
}

.post-comments {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.post-comments-list {
  display: grid;
  gap: 8px;
}

.comment-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(122, 90, 69, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.comment-main,
.comment-reply {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.comment-card p,
.comment-reply p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.46);
}

.comment-body,
.comment-reply-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.comment-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-card [data-reply-toggle],
.comment-delete {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-terracotta);
  font-size: 0.78rem;
  font-weight: 800;
}

.comment-delete {
  color: #a33e24;
}

.comment-replies {
  display: grid;
  gap: 8px;
  margin-left: 42px;
}

.comment-reply {
  padding: 8px;
  border-radius: 12px;
  background: rgba(200, 107, 66, 0.08);
}

.comment-reply-form {
  margin-left: 42px;
}

.comments-more {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-terracotta);
  font-weight: 800;
}

.post-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.card-img-top-k {
  height: 180px;
  background: linear-gradient(135deg, rgba(212,161,61,0.72), rgba(122,90,69,0.75));
  background-size: cover;
  background-position: center;
}

.event-feature {
  position: relative;
  display: grid;
  grid-template-columns: 0.48fr 0.92fr;
  min-height: 250px;
}

.event-search-panel {
  position: relative;
  z-index: 20;
  overflow: visible;
  padding: 20px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(250, 246, 239, 0.9)),
    rgba(250, 246, 239, 0.92);
  box-shadow: 0 16px 34px rgba(31, 31, 31, 0.08);
}

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

.event-search-head h2 {
  margin: 4px 0 0;
  font-size: 1.28rem;
}

.event-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(122, 90, 69, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--color-brown);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.event-reset-button:hover {
  border-color: rgba(200, 107, 66, 0.28);
  background: rgba(200, 107, 66, 0.1);
  color: var(--color-terracotta-dark);
}

.event-filter-grid {
  display: grid;
  grid-template-columns: minmax(165px, 1.15fr) minmax(148px, 0.95fr) minmax(138px, 0.88fr) minmax(96px, 0.58fr) minmax(190px, 1.24fr) auto;
  gap: 11px;
  align-items: start;
}

.event-filter-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin: 0;
}

.event-filter-field > span {
  color: var(--color-brown);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-filter-field .form-control,
.event-filter-field .form-select,
.event-country-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(122, 90, 69, 0.18);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.78);
  color: var(--text-main);
  box-shadow: none;
}

.event-filter-field .event-category-filter-picker {
  min-width: 0;
}

.event-filter-field .event-category-filter-picker .event-selected-categories {
  display: none;
}

.event-filter-field .event-category-picker .form-select {
  min-height: 48px;
}

.event-filter-field .event-selected-categories {
  max-width: 100%;
}

.event-active-filters {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 90, 69, 0.1);
}

.event-active-filters[hidden] {
  display: none;
}

.event-active-filters-label {
  color: var(--color-brown);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.event-active-filters-scroll {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.event-active-filters-scroll .event-category-chip {
  flex: 0 0 auto;
}

.event-filter-field .form-control:focus,
.event-filter-field .form-select:focus,
.event-country-search:focus-within {
  border-color: rgba(200, 107, 66, 0.48);
  box-shadow: 0 0 0 4px rgba(200, 107, 66, 0.1);
}

.event-search-submit {
  min-height: 48px;
  align-self: end;
  padding-inline: 18px;
  white-space: nowrap;
}

.event-results-status {
  min-height: 22px;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}

.event-hidden-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.event-country-combobox {
  width: 100%;
  position: relative;
}

.event-country-search {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 13px;
}

.event-country-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font-weight: 800;
}

.event-country-search .icon-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.event-country-results {
  position: absolute;
  inset: calc(100% + 8px) 0 auto 0;
  z-index: var(--z-popover-high);
  display: grid;
  gap: 5px;
  max-height: 270px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(122, 90, 69, 0.16);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.98);
  box-shadow: 0 18px 42px rgba(31, 31, 31, 0.16);
}

.event-country-results[hidden] {
  display: none;
}

.event-country-results button,
.event-sidebar-item {
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
}

.event-country-results button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-main);
  font-weight: 850;
}

.event-country-results button:hover,
.event-country-results button.active {
  background: rgba(200, 107, 66, 0.12);
}

.event-country-results img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 3px 9px rgba(31, 31, 31, 0.1);
}

.event-country-results i {
  color: var(--color-terracotta);
}

.event-card {
  display: flex;
  flex-direction: column;
}

.event-card .card-img-top-k {
  height: 148px;
}

.event-card-body {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.event-card-icon .k-asset-icon {
  margin-bottom: 0;
}

.event-card h3 {
  margin: 0;
  font-size: 1.04rem;
  overflow-wrap: anywhere;
}

.event-card-meta {
  display: inline-flex;
  align-items: start;
  gap: 7px;
  margin: 0;
  overflow-wrap: anywhere;
}

.event-card-meta i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--color-terracotta);
}

.event-card-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.event-card-tags .k-chip {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.event-card-body > .k-button {
  align-self: center;
  width: auto;
  min-width: min(132px, 100%);
}

.event-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-choice-group button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(122, 90, 69, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.event-choice-group button.active,
.event-choice-group button:hover {
  border-color: rgba(200, 107, 66, 0.3);
  background: rgba(200, 107, 66, 0.12);
  color: var(--color-terracotta-dark);
}

.event-sidebar-item {
  display: grid;
  gap: 4px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(122, 90, 69, 0.12);
  color: var(--text-main);
}

.event-sidebar-item:hover strong {
  color: var(--color-terracotta);
}

.event-create-panel .community-event-form-row,
.event-create-panel .event-create-form {
  grid-template-columns: 1fr;
}

.modal-create-intro {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 111, 66, 0.16);
  border-radius: 12px;
  background: rgba(47, 111, 66, 0.08);
}

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

.subscription-page {
  max-width: 1180px;
}

.subscription-hero {
  max-width: 780px;
  margin-bottom: 24px;
}

.subscription-hero h1 {
  max-width: 760px;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.subscription-plan-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  height: 100%;
  align-content: start;
}

.subscription-plan-card.featured {
  border-color: rgba(200, 107, 66, 0.34);
  box-shadow: 0 22px 60px rgba(200, 107, 66, 0.16);
}

.subscription-plan-head {
  min-height: 176px;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr;
}

.subscription-plan-head h2 {
  margin: 5px 0 8px;
}

.subscription-plan-head p {
  margin: 0;
}

.subscription-price {
  display: block;
  color: var(--color-terracotta-dark);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.subscription-price small {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.subscription-plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subscription-plan-card li {
  display: flex;
  gap: 9px;
  color: var(--text-muted);
  font-weight: 750;
}

.subscription-plan-card li i {
  color: #2f6f42;
}

.subscription-plan-card [data-plan-select] {
  width: fit-content !important;
  max-width: 100%;
  min-width: min(148px, 100%);
  min-height: 38px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-copy .k-button,
.community-explore-card .k-button,
.event-create-panel .k-button {
  width: fit-content !important;
  max-width: 100%;
  min-width: min(150px, 100%);
  align-self: center;
  justify-self: center;
}

.pro-hub-tabs {
  gap: 8px;
}

.pro-hub-page .section-head {
  flex-wrap: wrap;
  gap: 12px;
}

.pro-hub-page .pro-hub-tabs {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

.pro-hub-tabs [data-pro-hub-tab],
.pro-hub-tabs a {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 4px;
}

.pro-hub-page .side-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pro-hub-panel {
  min-height: 420px;
}

.pro-company-item {
  width: 100%;
  border: 1px solid rgba(122, 90, 69, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
  padding: 12px;
}

.pro-company-item.active {
  border-color: rgba(200, 107, 66, 0.45);
  box-shadow: 0 8px 26px rgba(200, 107, 66, 0.16);
}

.pro-company-item strong {
  display: block;
}

.pro-company-item .small-k {
  display: block;
}

.pro-opportunity-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.opportunity-country-flag {
  flex: 0 0 auto;
  width: 28px;
  height: 20px;
  overflow: hidden;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
}

.opportunity-country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-hub-list-empty {
  margin: 0;
  color: var(--text-muted);
}

.pro-main .pro-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  border-color: rgba(200, 107, 66, 0.2);
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.96), rgba(250, 244, 236, 0.88));
}

.pro-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pro-kpi-card {
  border: 1px solid rgba(122, 90, 69, 0.12);
}

.pro-kpi-card .small-k {
  display: block;
}

.pro-kpi-card h3 {
  margin: 6px 0 0;
  font-size: 1.5rem;
}

.pro-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 14px;
}

.pro-section-head h3 {
  margin: 0;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pro-section-head .small-k {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  max-width: 100%;
  line-height: 1.1;
  font-weight: 800;
  text-align: right;
  white-space: normal;
}

.pro-opportunity-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(122, 90, 69, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.pro-opportunity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.pro-opportunity-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pro-opportunity-desc {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.pro-opportunity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.pro-opportunity-actions .k-button {
  flex: 0 1 auto;
  min-width: min(116px, 100%);
}

#programList > article {
  min-width: 0;
  flex-wrap: wrap;
}

#programList > article > .flex-grow-1 {
  min-width: 0;
  overflow-wrap: anywhere;
}

#programList .k-button {
  flex: 0 1 auto;
  min-width: min(118px, 100%);
}

.pro-carousel-shell {
  position: relative;
  min-width: 0;
}

.pro-profiles-track {
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 2px;
}

.pro-scroll-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(122, 90, 69, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-terracotta);
  box-shadow: 0 12px 26px rgba(33, 23, 17, 0.16);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.pro-scroll-arrow:hover {
  background: var(--color-terracotta);
  color: #fff;
  transform: translateY(-50%) scale(1.04);
}

.pro-scroll-arrow:disabled {
  opacity: 0.32;
  pointer-events: none;
}

.pro-scroll-arrow-prev {
  left: -8px;
}

.pro-scroll-arrow-next {
  right: -8px;
}

.pro-profile-card {
  width: clamp(178px, 16vw, 210px);
  min-height: 224px;
  display: flex;
  flex-direction: column;
}

.pro-profile-card .k-asset-icon {
  margin-bottom: 10px;
}

.pro-profile-name {
  min-height: 2.55em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pro-profile-meta {
  min-height: 4.05em;
  overflow-wrap: anywhere;
}

.pro-profile-follow {
  align-self: center;
  width: auto;
  min-width: min(118px, 100%);
  margin-top: auto;
}

.pro-filter-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(140px, 0.8fr)) auto auto;
  gap: 12px;
  align-items: end;
}

.pro-filter-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin: 0;
}

.pro-filter-field > span,
.pro-application-form label > span {
  color: var(--color-brown);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pro-directory-list {
  display: grid;
  gap: 14px;
}

.pro-directory-card {
  padding: 18px;
  border: 1px solid rgba(122, 90, 69, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.program-card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

#programList .program-card-row {
  padding: 13px 0;
  border-bottom: 1px solid rgba(122, 90, 69, 0.12);
}

#programList .program-card-row:last-child {
  border-bottom: 0;
}

.program-card-body {
  min-width: 0;
}

.program-card-body h3 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.program-card-body .small-k {
  margin-bottom: 0;
}

.pro-modal-open {
  overflow: hidden;
}

.pro-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-top);
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 31, 31, 0.34);
  backdrop-filter: blur(10px);
}

.pro-modal-backdrop[hidden] {
  display: none;
}

.pro-application-modal {
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  overflow-y: auto;
}

.pro-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.pro-application-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.pro-application-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.pro-application-form label,
.pro-application-message,
.pro-application-form #opportunityApplyStatus,
.pro-modal-actions {
  min-width: 0;
}

.pro-application-message,
.pro-application-form #opportunityApplyStatus,
.pro-modal-actions {
  grid-column: 1 / -1;
}

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

.community-featured-member-cover {
  display: grid;
  place-items: center;
  padding: 28px;
}

.community-featured-member-cover a {
  text-decoration: none;
}

.community-featured-member .avatar-lg {
  --profile-avatar-size: 118px;
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(31, 31, 31, 0.26);
}

.community-featured-member .follow-button {
  margin-left: auto;
}

.dark-feature {
  color: white;
  background: linear-gradient(135deg, rgba(31,31,31,0.96), rgba(31,31,31,0.86));
}

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

.stat-box {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
}

.profile-cover {
  position: relative;
  height: 230px;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.profile-cover-upload {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.48);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.18);
}

.profile-cover-upload:hover {
  background: rgba(31, 31, 31, 0.66);
}

.profile-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 18px;
  align-items: start;
}

.profile-grid > section {
  grid-column: 2;
  grid-row: 1;
  container-type: inline-size;
  container-name: profile-content;
}

.profile-grid .right-panel {
  grid-column: 3;
  grid-row: 1;
}

.profile-avatar-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: auto;
  margin-bottom: 8px;
}

.profile-avatar-zone .profile-avatar-button {
  z-index: 2;
  margin-bottom: 0;
}

.profile-inline-stats {
  position: absolute;
  inset: 0;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px 66px;
  align-items: center;
  pointer-events: none;
}

.profile-inline-stat {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 6px 2px;
  text-align: center;
}

.profile-inline-stat strong {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 800;
}

.profile-inline-stat span {
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.profile-about-head h3 {
  margin: 4px 0 0;
}

.profile-about-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-about-field {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.profile-about-field strong,
.profile-about-field a,
.profile-career-content h5,
.profile-career-content strong,
.profile-career-content p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-about-field-wide {
  grid-column: 1 / -1;
}

.profile-about-field a {
  width: fit-content;
  color: var(--color-terracotta);
  font-weight: 800;
}

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

.profile-network-head h3 {
  margin: 4px 0 0;
}

.profile-community-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.profile-community-card,
.profile-event-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.profile-community-card strong,
.profile-community-card p,
.profile-event-content h3,
.profile-event-content p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-community-card p,
.profile-event-content p {
  margin-bottom: 4px;
}

.profile-event-card {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
}

.profile-event-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(200, 107, 66, 0.12);
  color: var(--color-terracotta);
}

.profile-event-content {
  display: grid;
  gap: 7px;
}

.profile-event-content .k-button {
  width: fit-content;
}

.profile-career-shell {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.profile-career-section {
  min-width: 0;
  display: grid;
  gap: 14px;
}

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

.profile-career-head h4 {
  margin: 3px 0 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.profile-career-head .k-button {
  flex: 0 0 auto;
}

.profile-career-list {
  position: relative;
  display: grid;
  gap: 12px;
}

.profile-career-list::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(200, 107, 66, 0.36), rgba(47, 111, 66, 0.22));
}

.profile-career-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
}

.profile-career-dot {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(200, 107, 66, 0.24);
  border-radius: 50%;
  background: #fff8ee;
  color: var(--color-terracotta);
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.08);
}

.profile-career-content {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(122, 90, 69, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.05), transparent 36%),
    rgba(255, 255, 255, 0.5);
}

.profile-career-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.profile-career-content h5 {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 900;
}

.profile-career-content strong {
  color: var(--color-brown);
  font-size: 0.9rem;
}

.profile-career-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-career-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}

.profile-career-content p {
  margin: 0;
  color: var(--text-main);
  font-size: 0.9rem;
}

.profile-career-actions {
  display: inline-flex;
  gap: 7px;
}

.icon-btn.danger {
  color: #9f3325;
}

.icon-btn.danger:hover {
  background: rgba(159, 51, 37, 0.12);
}

.profile-career-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 13px 14px;
  border: 1px dashed rgba(122, 90, 69, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--text-muted);
  font-weight: 700;
}

.profile-career-empty i {
  color: var(--color-terracotta);
}

.profile-career-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-custom);
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(31, 31, 31, 0.42);
  backdrop-filter: blur(10px);
}

.profile-career-modal-backdrop[hidden] {
  display: none !important;
}

.profile-career-modal {
  width: min(720px, 100%);
  max-height: min(90vh, 780px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.12), transparent 34%),
    #fff8ee;
  box-shadow: 0 30px 80px rgba(31, 31, 31, 0.28);
}

.profile-career-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-career-modal-header h4 {
  margin: 4px 0 0;
}

.profile-career-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.profile-career-form-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--color-brown);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-career-current,
.profile-career-description {
  grid-column: 1 / -1;
}

.profile-career-current {
  display: inline-flex !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px !important;
  color: var(--text-main) !important;
}

.profile-career-current input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-terracotta);
}

.profile-career-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.interest-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.interest-badge-culture {
  border-color: rgba(200, 107, 66, 0.28);
  background: rgba(200, 107, 66, 0.15);
  color: #924626;
}

.interest-badge-business {
  border-color: rgba(48, 111, 78, 0.26);
  background: rgba(48, 111, 78, 0.14);
  color: #275f42;
}

.interest-badge-events {
  border-color: rgba(74, 91, 155, 0.25);
  background: rgba(74, 91, 155, 0.14);
  color: #38477f;
}

.interest-badge-music {
  border-color: rgba(147, 76, 126, 0.24);
  background: rgba(147, 76, 126, 0.14);
  color: #7d3e69;
}

.interest-badge-tech {
  border-color: rgba(31, 31, 31, 0.2);
  background: rgba(31, 31, 31, 0.1);
  color: #303030;
}

.interest-badge-support {
  border-color: rgba(212, 161, 61, 0.34);
  background: rgba(212, 161, 61, 0.18);
  color: #806015;
}

.interest-badge-languages {
  border-color: rgba(26, 121, 120, 0.24);
  background: rgba(26, 121, 120, 0.13);
  color: #196866;
}

.interest-badge-history {
  border-color: rgba(122, 90, 69, 0.24);
  background: rgba(122, 90, 69, 0.13);
  color: #674632;
}

.interest-badge-education {
  border-color: rgba(92, 83, 160, 0.24);
  background: rgba(92, 83, 160, 0.13);
  color: #4b4387;
}

.interest-badge-default {
  border-color: rgba(122, 90, 69, 0.2);
  background: rgba(250, 246, 239, 0.88);
  color: var(--color-brown);
}

.interest-options .interest-chip {
  border-color: rgba(74, 91, 155, 0.18);
  background:
    linear-gradient(135deg, rgba(74, 91, 155, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.68);
}

.interest-options .interest-chip.active {
  border-color: rgba(74, 91, 155, 0.42);
  background:
    linear-gradient(45deg, transparent 0 12px, rgba(250, 246, 239, 0.14) 12px 14px, transparent 14px 26px),
    #4a5b9b;
  color: #fff;
  box-shadow: 0 10px 22px rgba(74, 91, 155, 0.16);
}

.tabs-k {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-k::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tabs-k i {
  display: none;
}

.tabs-k button,
.tabs-k a {
  border: 0;
  background: transparent;
  padding: 16px 0 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.tabs-k .active {
  color: var(--color-terracotta);
  box-shadow: inset 0 -2px 0 var(--color-terracotta);
}

.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: calc(var(--mobile-header-h) + env(safe-area-inset-top));
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) 18px 0;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(16px);
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-nav);
  width: 100%;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  border-top: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(250, 246, 239, 0.88), rgba(250, 246, 239, 0.98)),
    rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 -16px 34px rgba(31, 31, 31, 0.08);
}

.bottom-nav a,
.bottom-nav button {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.bottom-nav a:hover,
.bottom-nav button:hover {
  color: var(--color-terracotta);
}

.bottom-nav .active {
  color: var(--color-terracotta);
}

.bottom-nav .create-fab {
  width: var(--fab-size);
  height: var(--fab-size);
  flex: 0 0 var(--fab-size);
  justify-self: center;
  margin-top: -18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-ochre));
  color: #fff;
  box-shadow: 0 12px 28px rgba(200, 107, 66, 0.35);
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.28s cubic-bezier(.22, 1, .36, 1), box-shadow 0.24s ease, filter 0.24s ease;
}

.bottom-nav .create-fab[aria-expanded="true"] {
  transform: translateY(-2px) rotate(45deg);
  filter: saturate(1.12);
}

.mobile-create-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-fab-backdrop);
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 82%, rgba(200, 107, 66, 0.2), transparent 18rem),
    radial-gradient(circle at 24% 68%, rgba(212, 161, 61, 0.16), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(250, 246, 239, 0.34)),
    rgba(31, 31, 31, 0.08);
  backdrop-filter: blur(11px) saturate(1.24);
  transition: opacity 0.3s ease;
}

.mobile-create-menu {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-h) - 2px + env(safe-area-inset-bottom));
  z-index: var(--z-fab-menu);
  width: min(430px, 100vw);
  height: 292px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.3s cubic-bezier(.22, 1, .36, 1);
}

.mobile-create-open .mobile-create-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-create-open .mobile-create-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -8px) scale(1);
}

.mobile-create-head {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 7px 8px 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.48);
  box-shadow:
    0 16px 34px rgba(31, 31, 31, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px) saturate(1.28);
  transform: translateX(-50%) scale(0.92);
  transform-origin: center bottom;
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0;
}

.mobile-create-open .mobile-create-head {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.mobile-create-head strong {
  font-family: var(--font-display);
  font-size: 0.86rem;
  white-space: nowrap;
}

.mobile-create-head .icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.34);
}

.mobile-create-list {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mobile-create-option,
.create-option-item {
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  font-weight: 800;
}

.create-option-item {
  display: flex;
}

.create-option-item i {
  color: var(--color-terracotta);
}

.mobile-create-option {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 86px;
  height: 86px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.88) 12%, rgba(255, 255, 255, 0.34) 35%, rgba(255, 255, 255, 0.1) 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.14)),
    rgba(250, 246, 239, 0.24);
  color: var(--text-main);
  font-size: 0.69rem;
  line-height: 1.12;
  text-align: center;
  box-shadow:
    0 18px 38px rgba(31, 31, 31, 0.14),
    inset 9px 10px 18px rgba(255, 255, 255, 0.42),
    inset -12px -14px 22px rgba(200, 107, 66, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 42px) scale(0.08) rotate(var(--bubble-start-tilt));
  transition:
    opacity 0.28s ease var(--bubble-delay),
    transform 0.58s cubic-bezier(.18, 1.42, .24, 1) var(--bubble-delay),
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  backdrop-filter: blur(18px) saturate(1.36);
}

.mobile-create-open .mobile-create-option {
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-50% + var(--bubble-x)), var(--bubble-up)) scale(1) rotate(0deg);
  animation: mobileBubbleFloat 3.6s ease-in-out calc(0.54s + var(--bubble-delay)) infinite;
}

.mobile-create-option::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  width: 28px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  filter: blur(0.4px);
  transform: rotate(-24deg);
  pointer-events: none;
}

.mobile-create-option::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 18px rgba(212, 161, 61, 0.14);
  opacity: 0;
  transform: scale(0.62);
  pointer-events: none;
}

.mobile-create-open .mobile-create-option::after {
  animation: mobileBubbleRipple 0.54s ease-out var(--bubble-delay) both;
}

.mobile-create-option.is-premium-option {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.88) 12%, rgba(241, 250, 239, 0.38) 38%, rgba(47, 111, 66, 0.12) 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(47, 111, 66, 0.12)),
    rgba(255, 255, 255, 0.22);
}

.mobile-create-option i {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  color: var(--color-terracotta);
  font-size: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 18px rgba(31, 31, 31, 0.08);
}

.mobile-create-option span {
  position: relative;
  z-index: 1;
  max-width: 76px;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.72);
}

.mobile-create-option small {
  position: absolute;
  z-index: 2;
  right: 2px;
  top: 1px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: #2f6f42;
  font-size: 0.58rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mobile-create-option:hover {
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 24px 48px rgba(31, 31, 31, 0.18),
    inset 10px 11px 20px rgba(255, 255, 255, 0.48),
    inset -12px -14px 24px rgba(200, 107, 66, 0.1),
    0 0 0 7px rgba(255, 255, 255, 0.16);
}

@keyframes mobileBubbleRipple {
  0% {
    opacity: 0.64;
    transform: scale(0.62);
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@keyframes mobileBubbleFloat {
  0%,
  100% {
    transform: translate(calc(-50% + var(--bubble-x)), var(--bubble-up)) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(calc(-50% + var(--bubble-x)), calc(var(--bubble-up) - 7px)) scale(1.025) rotate(var(--bubble-tilt));
  }
}

@media (max-width: 359px) {
  .mobile-create-option {
    width: 82px;
    height: 82px;
    font-size: 0.7rem;
  }

  .mobile-create-option i {
    width: 30px;
    height: 30px;
  }

  .mobile-create-option span {
    max-width: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-create-open .mobile-create-option {
    animation: none;
  }

  .mobile-create-open .mobile-create-option::after {
    animation: none;
  }
}

.auth-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.7fr);
  align-items: stretch;
  overflow: hidden;
}

.auth-visual {
  padding: clamp(28px, 4vh, 54px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(31,31,31,0.72), rgba(122,90,69,0.58)),
    linear-gradient(145deg, #1f1f1f, #7a5a45 58%, #c86b42);
  color: #fff;
}

.auth-body::before {
  display: none;
}

.auth-brand {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  letter-spacing: 0.24em;
}

.auth-brand .brand-word {
  display: none;
}

.auth-brand .brand-logo {
  width: clamp(96px, 13vh, 136px);
  height: clamp(68px, 9.2vh, 96px);
  border-radius: 0;
  overflow: visible;
}

.auth-brand .brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vh, 44px) 44px clamp(58px, 7vh, 70px);
  background:
    linear-gradient(rgba(31, 31, 31, 0.12), rgba(31, 31, 31, 0.12)),
    url("../backgroung/background clair 2.png") center / cover no-repeat;
  overflow: hidden;
}

.auth-card {
  width: min(100%, clamp(390px, 33vw, 500px));
  max-height: none;
  overflow: hidden;
  padding: clamp(16px, 2.3vh, 26px);
}

.auth-card .form-control {
  min-height: clamp(34px, 4.6vh, 44px);
  padding-top: clamp(6px, 0.9vh, 10px);
  padding-bottom: clamp(6px, 0.9vh, 10px);
}

.auth-card .k-button {
  min-height: clamp(34px, 4.5vh, 40px);
  padding-top: clamp(6px, 0.8vh, 8px);
  padding-bottom: clamp(6px, 0.8vh, 8px);
}

.auth-card .auth-brand {
  width: 100%;
  justify-content: center;
}

.auth-card h2 {
  margin-bottom: clamp(4px, 0.8vh, 8px);
  font-size: clamp(1.25rem, 3.1vh, 1.75rem);
  text-align: center;
}

.auth-card p,
.auth-card label,
.auth-card a,
.auth-card .k-button,
.auth-card .form-control {
  font-size: clamp(0.8rem, 1.65vh, 0.95rem);
}

.auth-card .auth-brand {
  margin-bottom: clamp(8px, 1.6vh, 16px) !important;
}

.auth-card .text-muted-k {
  margin-bottom: clamp(6px, 1.2vh, 12px);
}

.auth-card .form-label.mt-3 {
  margin-top: clamp(6px, 1.1vh, 12px) !important;
  margin-bottom: clamp(3px, 0.6vh, 6px);
}

.auth-card .my-3 {
  margin-top: clamp(6px, 1.1vh, 12px) !important;
  margin-bottom: clamp(6px, 1.1vh, 12px) !important;
}

.auth-card .mt-3 {
  margin-top: clamp(6px, 1.1vh, 12px) !important;
}

.auth-card .mt-4 {
  margin-top: clamp(8px, 1.4vh, 16px) !important;
  margin-bottom: 0;
}

.auth-card::after {
  display: none;
}

.auth-copyright {
  position: fixed;
  left: 0;
  right: 42%;
  bottom: 14px;
  z-index: 2;
  color: rgba(31, 31, 31, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.auth-copyright a {
  color: var(--color-terracotta);
  font-weight: 800;
}

.auth-switch {
  position: fixed;
  right: 0;
  bottom: 14px;
  z-index: 2;
  width: 42%;
  margin: 0;
  color: rgba(31, 31, 31, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.auth-switch a {
  color: var(--color-terracotta);
  font-weight: 800;
}

.signup-card {
  padding: clamp(14px, 2vh, 24px);
}

.signup-card .row.g-3 {
  --bs-gutter-x: 10px;
  --bs-gutter-y: clamp(6px, 1.1vh, 12px);
}

.signup-card .progress.my-3,
.signup-card .mb-3 {
  margin-top: clamp(6px, 1.1vh, 12px) !important;
  margin-bottom: clamp(6px, 1.1vh, 12px) !important;
}

.signup-card .form-select,
.signup-card .country-picker-trigger,
.signup-card .gender-option span {
  min-height: clamp(34px, 4.6vh, 44px);
}

.signup-card .country-picker-trigger,
.signup-card .gender-option span {
  padding-top: clamp(6px, 0.9vh, 10px);
  padding-bottom: clamp(6px, 0.9vh, 10px);
}

.signup-card .signup-actions {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.signup-card .signup-actions #prevStep {
  margin-right: auto;
}

.signup-card .signup-actions .signup-actions-main {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 1px solid rgba(122, 90, 69, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(250, 246, 239, 0.42);
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-terracotta);
  background:
    linear-gradient(135deg, rgba(200, 107, 66, 0.12), transparent 34%),
    linear-gradient(45deg, transparent 0 12px, rgba(212, 161, 61, 0.08) 12px 14px, transparent 14px 26px),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 0.18rem rgba(200, 107, 66, 0.13),
    inset 4px 0 0 var(--color-terracotta);
}

.country-picker {
  position: relative;
}

.country-picker-trigger {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(122, 90, 69, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.62);
  color: var(--text-main);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(250, 246, 239, 0.42);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.country-picker.is-open .country-picker-trigger {
  border-color: var(--color-terracotta);
  background:
    linear-gradient(135deg, rgba(200, 107, 66, 0.12), transparent 34%),
    linear-gradient(45deg, transparent 0 12px, rgba(212, 161, 61, 0.08) 12px 14px, transparent 14px 26px),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 0.18rem rgba(200, 107, 66, 0.13),
    inset 4px 0 0 var(--color-terracotta);
}

.country-picker-trigger img,
.country-option img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(31,31,31,0.08);
}

.country-picker-trigger .country-code,
.country-option .country-code {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.country-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: var(--z-popover-high);
  display: none;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fffaf2;
  box-shadow: var(--shadow-soft);
}

.country-picker.is-open .country-picker-menu {
  display: block;
}

.country-picker.is-disabled {
  opacity: 0.62;
  pointer-events: none;
}

.country-options {
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  text-align: left;
}

.country-option:hover,
.country-option.active {
  background: #efe1cf;
  color: var(--color-terracotta);
}

.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.password-rules span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(122, 90, 69, 0.1);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.password-rules span.valid {
  background: rgba(69, 130, 86, 0.14);
  color: #2f6f42;
}

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

.gender-option {
  cursor: pointer;
}

.gender-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-option span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122, 90, 69, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.62);
  color: var(--text-main);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(250, 246, 239, 0.42);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gender-option input:checked + span {
  border-color: var(--color-terracotta);
  background:
    linear-gradient(45deg, transparent 0 12px, rgba(250, 246, 239, 0.13) 12px 14px, transparent 14px 26px),
    var(--color-terracotta);
  color: #fff;
  box-shadow:
    0 10px 22px rgba(200, 107, 66, 0.18),
    inset 0 0 0 1px rgba(250, 246, 239, 0.18);
}

.profile-type-options .k-chip {
  border-color: rgba(200, 107, 66, 0.2);
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.68);
}

.profile-type-options .k-chip.active {
  border-color: var(--color-terracotta);
  background:
    linear-gradient(45deg, transparent 0 12px, rgba(250, 246, 239, 0.14) 12px 14px, transparent 14px 26px),
    var(--color-terracotta);
  color: #fff;
  box-shadow: 0 10px 22px rgba(200, 107, 66, 0.16);
}

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

.profile-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-type-badge-creator {
  border-color: rgba(200, 107, 66, 0.28);
  background: rgba(200, 107, 66, 0.15);
  color: #924626;
}

.profile-type-badge-entrepreneur {
  border-color: rgba(48, 111, 78, 0.26);
  background: rgba(48, 111, 78, 0.14);
  color: #275f42;
}

.profile-type-badge-diaspora {
  border-color: rgba(74, 91, 155, 0.25);
  background: rgba(74, 91, 155, 0.14);
  color: #38477f;
}

.profile-type-badge-association {
  border-color: rgba(122, 90, 69, 0.24);
  background: rgba(122, 90, 69, 0.13);
  color: #674632;
}

.profile-type-badge-student {
  border-color: rgba(212, 161, 61, 0.34);
  background: rgba(212, 161, 61, 0.18);
  color: #806015;
}

.profile-type-badge-professional {
  border-color: rgba(31, 31, 31, 0.2);
  background: rgba(31, 31, 31, 0.1);
  color: #303030;
}

.profile-type-badge-artist {
  border-color: rgba(147, 76, 126, 0.24);
  background: rgba(147, 76, 126, 0.14);
  color: #7d3e69;
}

.profile-type-badge-default {
  border-color: rgba(122, 90, 69, 0.2);
  background: rgba(250, 246, 239, 0.88);
  color: var(--color-brown);
}

.identity-field {
  position: relative;
  padding-top: 10px;
}

.identity-field::before {
  content: "";
  position: absolute;
  left: calc(var(--bs-gutter-x) * 0.5);
  right: calc(var(--bs-gutter-x) * 0.5);
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-ochre));
  opacity: 0.78;
}

.city-picker {
  position: relative;
}

.city-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: var(--z-popover);
  display: none;
  max-height: 230px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fffaf2;
  box-shadow: var(--shadow-soft);
}

.city-suggestions.is-open {
  display: grid;
  gap: 4px;
}

.city-option {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  font-weight: 600;
}

.city-option:hover {
  background: #efe1cf;
  color: var(--color-terracotta);
}

.profile-image-preview {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.48);
}

.profile-image-preview img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-photo {
  display: inline-block;
  object-fit: cover;
}

.profile-edit-modal {
  overflow: visible;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.12), transparent 34%),
    rgba(250, 246, 239, 0.96);
}

.profile-edit-modal::after {
  display: none;
}

.profile-edit-header {
  align-items: start;
  padding: 22px 24px 12px;
  border-bottom: 1px solid var(--border-soft) !important;
}

.profile-edit-header .section-kicker {
  margin-bottom: 6px;
}

.profile-edit-header .section-kicker::before {
  width: 28px;
}

.profile-edit-modal .modal-body {
  max-height: min(68vh, 720px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 18px 24px;
}

.profile-edit-modal .modal-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.profile-edit-modal .modal-footer {
  padding: 14px 24px 22px;
  background: rgba(255, 250, 242, 0.72);
  border-top: 1px solid var(--border-soft) !important;
}

.profile-edit-section {
  padding: 16px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
}

.profile-edit-section + .profile-edit-section {
  margin-top: 14px;
}

.profile-edit-section h6 {
  margin: 0 0 12px;
  color: var(--color-brown);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-modal {
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.1), transparent 34%),
    rgba(250, 246, 239, 0.98);
}

.feed-modal::after {
  display: none;
}

.feed-create-dialog {
  max-width: 560px;
}

.feed-create-modal {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: #070707;
  color: #fff;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.42);
}

.feed-create-camera-view {
  position: relative;
  min-height: 680px;
  height: min(760px, calc(100vh - 64px));
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 28%, rgba(0, 0, 0, 0.78)),
    #090909;
}

.feed-create-camera-view[hidden],
.feed-create-editor[hidden] {
  display: none;
}

.feed-create-camera-preview,
.feed-create-camera-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feed-create-camera-preview {
  object-fit: cover;
  background: #050505;
}

.feed-create-camera-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 34%, rgba(212, 161, 61, 0.18), transparent 26%),
    linear-gradient(150deg, #0b0b0b, #211916);
  text-align: center;
}

.feed-create-camera-fallback[hidden] {
  display: none;
}

.feed-create-camera-fallback i {
  font-size: 2.3rem;
  color: #f2b55f;
}

.feed-create-camera-fallback span {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.68);
}

.feed-create-permission-btn {
  margin-top: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f6f42, #d4a13d);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(47, 111, 66, 0.22);
}

.feed-create-topbar,
.feed-create-bottom-menu {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
}

.feed-create-topbar {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.54), transparent);
}

.feed-create-kicker {
  color: #f2b55f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-create-icon-btn,
.feed-create-gallery {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.46);
  color: #fff;
  backdrop-filter: blur(12px);
}

.feed-create-status {
  min-width: 74px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.46);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(12px);
}

.feed-create-bottom-menu {
  bottom: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 14px;
  padding: 20px 18px 24px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.95));
}

.feed-create-capture {
  justify-self: center;
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.08);
}

.feed-create-capture span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  transition: border-radius 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.feed-create-modal.is-recording .feed-create-capture {
  border-color: rgba(242, 181, 95, 0.92);
}

.feed-create-modal.is-recording .feed-create-capture span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #d83b34;
}

.feed-create-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.feed-create-mode-toggle button {
  min-width: 46px;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
}

.feed-create-mode-toggle button.active {
  background: rgba(255, 255, 255, 0.94);
  color: #1f1f1f;
}

.feed-create-editor {
  min-height: 620px;
  background:
    radial-gradient(circle at 18% 4%, rgba(212, 161, 61, 0.22), transparent 28%),
    linear-gradient(160deg, #141210, #241a16);
}

.feed-create-publisher {
  border-radius: 22px;
}

.feed-create-editor-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.feed-create-editor-head h5 {
  margin: 1px 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.feed-create-editor-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.feed-create-preview {
  width: min(238px, 100%);
  aspect-ratio: 9 / 16;
  justify-self: center;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.feed-create-preview-wide {
  width: 100%;
  min-height: 160px;
  aspect-ratio: auto;
  padding: 18px;
}

.feed-create-preview > i {
  font-size: 2.1rem;
  color: #f2b55f;
}

.feed-create-preview img,
.feed-create-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-create-caption-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.feed-create-caption {
  width: 100%;
  min-height: 128px;
  resize: none;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  outline: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1f1f1f;
}

.feed-create-kind-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.feed-create-kind-tabs button {
  min-width: 0;
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 8px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
}

.feed-create-kind-tabs button.active,
.feed-create-kind-tabs button:hover {
  border-color: rgba(242, 181, 95, 0.58);
  background: rgba(242, 181, 95, 0.16);
  color: #fff;
}

.feed-create-kind-tabs i {
  font-size: 1.15rem;
}

.feed-create-extra {
  display: grid;
  gap: 10px;
}

.feed-create-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feed-create-event-grid input:nth-child(4),
.feed-create-event-grid input:nth-child(5) {
  grid-column: span 3;
}

.feed-create-secondary,
.feed-create-publish-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
}

.feed-create-publish-icon {
  width: 42px;
  min-height: 42px;
  background: linear-gradient(135deg, #2f6f42, #d4a13d);
}

.feed-create-publish-icon:disabled {
  opacity: 0.42;
}

.feed-create-caption:focus {
  border-color: rgba(242, 181, 95, 0.68);
  box-shadow: 0 0 0 3px rgba(242, 181, 95, 0.12);
}

.feed-create-caption::placeholder {
  color: rgba(31, 31, 31, 0.46);
}

.feed-create-footer span,
.feed-create-preview span {
  color: rgba(255, 255, 255, 0.68);
}

.feed-create-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.feed-create-footer button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f6f42, #d4a13d);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 12px 20px rgba(47, 111, 66, 0.22);
}

.feed-create-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.feed-create-publisher {
  border: 1px solid rgba(122, 90, 69, 0.12);
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.08), transparent 30%),
    linear-gradient(165deg, rgba(212, 161, 61, 0.14), transparent 48%),
    rgba(250, 246, 239, 0.98);
  color: var(--text-main);
  box-shadow: 0 24px 70px rgba(31, 31, 31, 0.22);
}

.feed-create-publisher .feed-create-editor {
  min-height: 0;
  background: transparent;
}

.feed-create-publisher .feed-create-editor-head {
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(122, 90, 69, 0.1);
}

.feed-create-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.feed-create-identity .avatar-sm {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.feed-create-publisher .feed-create-kicker {
  color: var(--color-terracotta);
}

.feed-create-publisher .feed-create-editor-head h5 {
  color: var(--color-brown);
}

.feed-create-publisher .feed-create-icon-btn {
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-brown);
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.06);
}

.feed-create-publisher .feed-create-publish-icon,
.feed-create-publisher .feed-create-footer button {
  background: linear-gradient(135deg, var(--color-terracotta), #2f6f42);
  color: #fff;
}

.feed-create-destination {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.feed-create-destination button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.feed-create-destination button.active {
  background: #fff;
  color: var(--color-brown);
  box-shadow: 0 10px 22px rgba(122, 90, 69, 0.1);
}

.feed-create-input-shell {
  overflow: hidden;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.feed-create-community-target {
  display: grid;
  gap: 8px;
}

.feed-create-community-search {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-muted);
}

.feed-create-community-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font-weight: 800;
}

.feed-create-community-options {
  max-height: 178px;
  display: grid;
  gap: 7px;
  overflow-y: auto;
}

.feed-create-community-selected-list {
  display: grid;
  gap: 7px;
}

.feed-create-community-options button,
.feed-create-community-selected {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(122, 90, 69, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-main);
  text-align: left;
}

.feed-create-community-options button.active,
.feed-create-community-selected {
  border-color: rgba(47, 111, 66, 0.28);
  background: rgba(47, 111, 66, 0.1);
}

.feed-create-community-selected i {
  color: var(--color-terracotta);
}

.feed-create-community-options button small,
.feed-create-community-selected small {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.feed-create-community-suggestions {
  display: grid;
  gap: 7px;
}

.feed-create-publisher .feed-create-caption {
  min-height: 132px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.5;
  box-shadow: none;
}

.feed-create-publisher .feed-create-caption:focus {
  box-shadow: inset 0 0 0 2px rgba(200, 107, 66, 0.18);
}

.feed-create-publisher .feed-create-preview {
  border-color: rgba(122, 90, 69, 0.12);
  background: rgba(255, 255, 255, 0.66);
  color: var(--color-brown);
}

.feed-create-publisher .feed-create-preview > i {
  color: var(--color-terracotta);
}

.feed-create-publisher .feed-create-preview span,
.feed-create-publisher .feed-create-footer span {
  color: var(--text-muted);
}

.feed-create-publisher .feed-create-kind-tabs button {
  min-height: 58px;
  border-color: rgba(122, 90, 69, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-brown);
}

.feed-create-publisher .feed-create-kind-tabs button.active,
.feed-create-publisher .feed-create-kind-tabs button:hover {
  border-color: rgba(200, 107, 66, 0.32);
  background: rgba(200, 107, 66, 0.12);
  color: var(--color-terracotta);
}

.feed-create-media-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 0;
}

.feed-create-publisher .feed-create-extra .form-control {
  border-color: rgba(122, 90, 69, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.feed-create-publisher .feed-create-secondary {
  min-width: 0;
  background: rgba(47, 111, 66, 0.1);
  color: var(--color-brown);
}

.feed-create-media-choice {
  min-height: 78px;
  justify-content: flex-start;
  padding: 12px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.56)),
    rgba(47, 111, 66, 0.08);
  box-shadow: 0 14px 30px rgba(31, 31, 31, 0.08);
}

.feed-create-media-choice i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--color-brown);
  color: #fff;
  font-size: 1.12rem;
}

.feed-create-media-choice span {
  display: grid;
  gap: 1px;
  text-align: left;
}

.feed-create-media-choice strong {
  color: var(--color-brown);
  font-size: 0.9rem;
}

.feed-create-media-choice small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.feed-create-media-choice:hover {
  border-color: rgba(200, 107, 66, 0.28);
  transform: translateY(-1px);
}

.feed-create-publisher .feed-create-footer {
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
}

.feed-create-publisher .feed-create-footer button {
  min-width: 132px;
  justify-content: center;
  min-height: 46px;
  background: #254632;
  color: #fff;
  text-shadow: none;
  box-shadow: 0 14px 24px rgba(37, 70, 50, 0.22);
}

.feed-create-publisher .feed-create-footer button:not(:disabled):hover {
  background: #1f3a2b;
  transform: translateY(-1px);
}

.feed-create-publisher .feed-create-footer button:disabled {
  background: rgba(122, 90, 69, 0.18);
  color: rgba(31, 31, 31, 0.48);
  opacity: 1;
  box-shadow: none;
}

.country-modal-options,
.video-comments-list,
.share-targets {
  display: grid;
  gap: 8px;
}

.country-modal-options {
  max-height: 320px;
  overflow-y: auto;
}

.video-comments-list {
  max-height: min(46vh, 360px);
  overflow-y: auto;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.messages-list,
.message-thread-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-comments-list::-webkit-scrollbar,
.messages-list::-webkit-scrollbar,
.message-thread-body::-webkit-scrollbar {
  display: none;
}

.country-modal-option,
.share-targets button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--text-main);
  text-align: left;
  font-weight: 800;
}

.country-modal-option:hover,
.country-modal-option.active,
.share-targets button:hover {
  background: #efe1cf;
  color: var(--color-terracotta);
}

.country-modal-option .small-k {
  margin-left: auto;
}

.country-modal-option .flag img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
}

.video-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.video-comment p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.video-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.video-comment-form .form-control {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.video-comment-send {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6f42, #d4a13d);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 111, 66, 0.18);
}

.avatar img,
.avatar-sm img,
.avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.k-asset-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,0.42);
  box-shadow: 0 10px 24px rgba(31,31,31,0.08);
}

.k-asset-icon.sm {
  width: 38px;
  height: 38px;
}

.k-asset-icon.lg {
  width: 86px;
  height: 86px;
}

.k-icon-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.k-card .k-asset-icon {
  margin-bottom: 12px;
}

.auth-visual .k-asset-icon {
  width: 110px;
  height: 110px;
  background: rgba(250,246,239,0.14);
  box-shadow: none;
}

.toast-container-k {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: var(--z-toast);
  display: grid;
  gap: 10px;
}

.toast-koryaan {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
  background: var(--color-charcoal);
  box-shadow: var(--shadow-soft);
  animation: slideUp 0.25s ease both;
}

.messages-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-panel-backdrop);
  opacity: 0;
  pointer-events: none;
  background: rgba(31, 31, 31, 0.24);
  transition: opacity 0.8s ease;
}

.messages-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--z-panel);
  width: min(38vw, 520px);
  min-width: 360px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 18px max(18px, env(safe-area-inset-bottom), var(--kb-inset, 0px));
  border-left: 1px solid var(--border-soft);
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.08), transparent 28%),
    linear-gradient(165deg, rgba(212, 161, 61, 0.12), transparent 42%),
    rgba(250, 246, 239, 0.98);
  box-shadow: -18px 0 44px rgba(31, 31, 31, 0.16);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  clip-path: inset(0 0 0 100%);
  transform: none;
  transition:
    clip-path 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    visibility 0s linear 0.36s;
}

.messages-panel-open .messages-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.messages-panel-open .messages-panel {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  clip-path: inset(0);
  transform: none;
  transition:
    clip-path 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.messages-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.messages-panel-head h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
}

.messages-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: none;
  padding-top: 12px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.message-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(122, 90, 69, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.message-preview.unread {
  border-color: rgba(47, 111, 66, 0.24);
  background: rgba(47, 111, 66, 0.08);
}

.message-preview:hover,
.message-preview.active {
  border-color: rgba(212, 161, 61, 0.42);
  background: rgba(212, 161, 61, 0.12);
  transform: translateY(-1px);
}

.message-preview p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.message-preview time {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.message-thread {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  margin-top: 0;
  padding-top: 12px;
}

.messages-panel.is-thread-open .messages-list {
  display: none;
}

.message-thread-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.message-back-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 111, 66, 0.12);
  color: #2f6f42;
}

.message-thread-body {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.message-bubble {
  width: fit-content;
  max-width: 78%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-main);
}

.message-bubble.mine {
  justify-self: end;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, #2f6f42, #c86b42);
  color: #fff;
}

.message-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(122, 90, 69, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.message-reply-form .form-control {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message-send-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6f42, #d4a13d);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 111, 66, 0.18);
}

.mobile-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-search-backdrop);
  opacity: 0;
  pointer-events: none;
  background: rgba(31, 31, 31, 0.28);
  transition: opacity 0.28s ease;
}

.mobile-user-search-panel {
  position: fixed;
  left: 50%;
  top: 14px;
  z-index: var(--z-search-panel);
  width: min(560px, calc(100vw - 24px));
  max-height: min(720px, calc(100dvh - 28px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(122, 90, 69, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(47, 111, 66, 0.08), transparent 30%),
    rgba(250, 246, 239, 0.98);
  box-shadow: 0 22px 52px rgba(31, 31, 31, 0.2);
  transform: translate(-50%, -120%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-user-search-open .mobile-search-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-user-search-open .mobile-user-search-panel {
  transform: translate(-50%, 0);
}

.mobile-user-search-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.mobile-user-search-head h3 {
  margin: 3px 0 0;
  font-size: 1.15rem;
}

.mobile-user-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(122, 90, 69, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-muted);
}

.mobile-user-search-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.mobile-user-search-results {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-user-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.mobile-user-result .profile-search-result {
  min-width: 0;
}

.mobile-user-follow {
  min-height: 38px;
  padding: 8px 10px;
  white-space: nowrap;
}

.footer-k {
  border-top: 1px solid var(--border-soft);
  padding: 22px 42px;
  color: var(--text-muted);
  background: rgba(250,246,239,0.6);
}

.footer-pattern {
  height: 16px;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(200, 107, 66, 0.42) 13px 15px, transparent 16px 28px);
  opacity: 0.45;
}

@keyframes progress {
  from { width: 8%; }
  to { width: 100%; }
}

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