/*
 * Vibeforge visual system overrides
 * Loaded after runtime theme customization in _head.tpl.
 */

:root {
  --vf-ui-accent: var(--vf-accent, var(--link-color, #4c6fff));
  --vf-ui-accent-strong: var(--vf-accent-strong, #2f4dff);
  --vf-ui-surface: var(--vf-surface, #ffffff);
  --vf-ui-surface-alt: var(--vf-surface-alt, #f5f7fb);
  --vf-ui-border: var(--vf-border, rgba(15, 23, 42, 0.08));
  --vf-ui-border-strong: var(--vf-border-strong, rgba(15, 23, 42, 0.18));
  --vf-ui-shadow-sm: var(--vf-shadow-sm, 0 10px 24px rgba(15, 23, 42, 0.1));
  --vf-ui-shadow-md: var(--vf-shadow-md, 0 18px 40px rgba(15, 23, 42, 0.14));
  --vf-ui-radius: var(--vf-radius-lg, 18px);
  --vf-chat-sidebar-width: 92px;
  --vf-chat-sidebar-gap: 12px;
}

body.n_activated,
body.n_live {
  --vf-chat-sidebar-top: 120px;
}

body {
  --vf-chat-sidebar-top: 70px;
}

#modal .modal-content {
  background: var(--vf-modal-surface, var(--vf-ui-surface)) !important;
  color: var(--body-color, #172033);
  border: 1px solid var(--vf-modal-border, var(--vf-ui-border));
}

#modal .modal-header {
  background: var(--vf-modal-header-bg, var(--vf-header-aesthetic-bg-color, var(--header-bg-color, var(--vf-ui-accent)))) !important;
  background-image: var(--vf-modal-header-bg, var(--vf-header-aesthetic-bg-image, var(--header-bg-color, var(--vf-ui-accent)))) !important;
  color: var(--vf-modal-header-text, var(--vf-header-aesthetic-text, #ffffff)) !important;
  border-bottom-color: var(--vf-modal-border, var(--vf-ui-border));
}

#modal .modal-header .modal-title,
#modal .modal-header .btn-close,
#modal .modal-header .nav-link,
#modal .modal-header .text-link {
  color: var(--vf-modal-header-text, var(--vf-header-aesthetic-text, #ffffff)) !important;
}

#modal .modal-body,
#modal .vf-share-modal-body {
  background: var(--vf-modal-surface, var(--vf-ui-surface)) !important;
}

#modal .modal-footer,
#modal .vf-share-modal-footer {
  background: var(--vf-modal-surface, var(--vf-ui-surface)) !important;
  border-top-color: var(--vf-modal-border, var(--vf-ui-border));
}

#modal .form-control,
#modal .form-select,
#modal textarea.form-control {
  background-color: var(--vf-ui-surface-alt, #f5f7fb);
  border-color: var(--vf-modal-border, var(--vf-ui-border));
  color: var(--body-color, #172033);
}

#modal .btn-primary {
  background: var(--vf-accent, var(--link-color, #4c6fff)) !important;
  border-color: var(--vf-accent, var(--link-color, #4c6fff)) !important;
}

.vf-posts-filter .btn,
.vf-posts-filter .countries-filter,
.vf-posts-filter .btn-group-text,
.vf-posts-filter-mobile-sheet .btn,
.vf-posts-filter-mobile-sheet .countries-filter,
.vf-posts-filter-mobile-sheet .btn-group-text {
  text-transform: capitalize !important;
}

.js_lazy-bg {
  background-color: rgba(110, 132, 154, 0.12);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.emoji-menu .nav-tabs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px !important;
}

.emoji-menu .nav-tabs > li,
.emoji-menu .nav-tabs > .nav-item {
  float: none !important;
  flex: 1 1 0;
  width: auto !important;
  margin: 0 !important;
}

.emoji-menu .nav-tabs > li > .nav-link {
  width: 100%;
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px !important;
  white-space: nowrap;
}

body:not(.night-mode) {
  background-color: #eef3ff;
  background-image:
    radial-gradient(circle at 18% 16%, rgba(76, 111, 255, 0.12) 0, rgba(76, 111, 255, 0) 34%),
    radial-gradient(circle at 86% 4%, rgba(14, 165, 233, 0.1) 0, rgba(14, 165, 233, 0) 30%),
    linear-gradient(180deg, #f5f8ff 0%, #edf3ff 52%, #e8f0ff 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 3px),
    repeating-linear-gradient(90deg, rgba(76, 111, 255, 0.03) 0 1px, rgba(76, 111, 255, 0) 1px 4px);
  background-size: auto, auto, auto, 3px 3px, 4px 4px;
  background-attachment: fixed;
}

.main-wrapper .main-header {
  border-bottom-color: var(--vf-ui-border);
}

/* Groups directory refresh */
.vf-groups-shell .vf-groups-grid {
  row-gap: 18px;
}

.vf-groups-shell .vf-group-card-col {
  display: flex;
}

.vf-groups-shell .vf-group-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  text-align: left;
  overflow: hidden;
}

.vf-groups-shell .vf-group-card .img.vf-group-card-media {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.vf-groups-shell .vf-group-card .img.vf-group-card-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.vf-groups-shell .vf-group-card .img.vf-group-card-media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.vf-groups-shell .vf-group-card:hover .img.vf-group-card-media img {
  transform: scale(1.04);
}

.vf-groups-shell .vf-group-card-body {
  padding: 14px 14px 15px;
}

.vf-groups-shell .vf-group-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vf-groups-shell .vf-group-card-title {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a !important;
  text-decoration: none !important;
}

.vf-groups-shell .vf-group-card-title:hover {
  color: var(--vf-ui-accent-strong) !important;
}

.vf-groups-shell .vf-group-card-privacy {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.vf-groups-shell .vf-group-card-meta {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.vf-groups-shell .vf-group-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vf-groups-shell .vf-group-card-plan {
  margin-top: 10px;
}

.vf-groups-shell .vf-group-card-plan .badge {
  font-size: 0.74rem;
}

.vf-groups-shell .vf-group-card-action {
  margin-top: 12px;
}

.vf-groups-shell .vf-group-card-action .btn {
  min-width: 128px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: none;
}

.vf-groups-shell .see-more {
  border: 1px solid rgba(76, 111, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1e3a8a;
  font-weight: 700;
}

body.night-mode .vf-groups-shell .vf-group-card {
  background: linear-gradient(180deg, rgba(24, 34, 49, 0.97), rgba(18, 28, 42, 0.95));
  border-color: var(--card-dark-divider);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

body.night-mode .vf-groups-shell .vf-group-card-title {
  color: #f8fbff !important;
}

body.night-mode .vf-groups-shell .vf-group-card-title:hover {
  color: #9eb7ff !important;
}

body.night-mode .vf-groups-shell .vf-group-card-meta {
  color: #b7c5d8;
}

body.night-mode .vf-groups-shell .vf-group-card-privacy {
  color: #dbe9ff;
  background: rgba(76, 111, 255, 0.22);
  border-color: rgba(123, 152, 255, 0.34);
}

body.night-mode .vf-groups-shell .see-more {
  background: rgba(18, 28, 42, 0.9);
  border-color: rgba(123, 152, 255, 0.32);
  color: #dbe9ff;
}

@media (max-width: 767.98px) {
  .vf-groups-shell .vf-group-card-body {
    padding: 12px;
  }

  .vf-groups-shell .vf-group-card-title {
    font-size: 0.98rem;
  }
}

/* Pages directory refresh */
.vf-pages-shell .vf-pages-grid {
  row-gap: 18px;
}

.vf-pages-shell .vf-page-card-col {
  display: flex;
}

.vf-pages-shell .vf-page-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  text-align: left;
  overflow: hidden;
}

.vf-pages-shell .vf-page-card .img.vf-page-card-media {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.vf-pages-shell .vf-page-card .img.vf-page-card-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.vf-pages-shell .vf-page-card .img.vf-page-card-media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.vf-pages-shell .vf-page-card:hover .img.vf-page-card-media img {
  transform: scale(1.04);
}

.vf-pages-shell .vf-page-card-body {
  padding: 14px 14px 15px;
}

.vf-pages-shell .vf-page-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vf-pages-shell .vf-page-card-head .verified-badge {
  flex: 0 0 auto;
}

.vf-pages-shell .vf-page-card-title {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a !important;
  text-decoration: none !important;
}

.vf-pages-shell .vf-page-card-title:hover {
  color: var(--vf-ui-accent-strong) !important;
}

.vf-pages-shell .vf-page-card-meta {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.vf-pages-shell .vf-page-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vf-pages-shell .vf-page-card-plan {
  margin-top: 10px;
}

.vf-pages-shell .vf-page-card-plan .badge {
  font-size: 0.74rem;
}

.vf-pages-shell .vf-page-card-action {
  margin-top: 12px;
}

.vf-pages-shell .vf-page-card-action .btn {
  min-width: 128px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: none;
}

.vf-pages-shell .see-more {
  border: 1px solid rgba(76, 111, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1e3a8a;
  font-weight: 700;
}

body.night-mode .vf-pages-shell .vf-page-card {
  background: linear-gradient(180deg, rgba(24, 34, 49, 0.97), rgba(18, 28, 42, 0.95));
  border-color: var(--card-dark-divider);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

body.night-mode .vf-pages-shell .vf-page-card-title {
  color: #f8fbff !important;
}

body.night-mode .vf-pages-shell .vf-page-card-title:hover {
  color: #9eb7ff !important;
}

body.night-mode .vf-pages-shell .vf-page-card-meta {
  color: #b7c5d8;
}

body.night-mode .vf-pages-shell .see-more {
  background: rgba(18, 28, 42, 0.9);
  border-color: rgba(123, 152, 255, 0.32);
  color: #dbe9ff;
}

@media (max-width: 767.98px) {
  .vf-pages-shell .vf-page-card-body {
    padding: 12px;
  }

  .vf-pages-shell .vf-page-card-title {
    font-size: 0.98rem;
  }
}

/* Header dropdown (messages / requests / notifications) */
.main-wrapper .main-header .js_live-messages .dropdown-widget-header,
.main-wrapper .main-header .js_live-requests .dropdown-widget-header,
.main-wrapper .main-header .js_live-notifications .dropdown-widget-header {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 247, 255, 0.96)) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 12px 12px 0 0;
}

.main-wrapper .main-header .js_live-messages .dropdown-widget-header .title,
.main-wrapper .main-header .js_live-requests .dropdown-widget-header .title,
.main-wrapper .main-header .js_live-notifications .dropdown-widget-header .title {
  color: #0f172a !important;
}

body.night-mode .main-wrapper .main-header .js_live-messages .dropdown-widget-header,
body.night-mode .main-wrapper .main-header .js_live-requests .dropdown-widget-header,
body.night-mode .main-wrapper .main-header .js_live-notifications .dropdown-widget-header {
  background: linear-gradient(180deg, rgba(23, 33, 48, 0.96), rgba(18, 28, 42, 0.94)) !important;
  border-bottom: 1px solid rgba(96, 121, 155, 0.42) !important;
}

body.night-mode .main-wrapper .main-header .js_live-messages .dropdown-widget-header .title,
body.night-mode .main-wrapper .main-header .js_live-requests .dropdown-widget-header .title,
body.night-mode .main-wrapper .main-header .js_live-notifications .dropdown-widget-header .title {
  color: #f8fbff !important;
}

/* Sidebar polish */
.main-side-nav-card {
  overflow: hidden;
}

.main-side-nav-card .card-body.with-nav {
  padding: 14px 12px;
}

.sidebar-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b !important;
}

.sidebar-section-heading:hover,
.sidebar-section-heading:focus {
  background: rgba(76, 111, 255, 0.08);
  color: #334155 !important;
  text-decoration: none;
}

.sidebar-section-label {
  font-size: 0.72rem;
  text-transform: none;
}

.main-side-nav > li > a,
.side-nav > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-radius: 12px;
}

/* Composer polish */
.composer-launcher {
  border: 1px solid var(--vf-ui-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  box-shadow: var(--vf-ui-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.composer-launcher:hover {
  transform: translateY(-1px);
  border-color: var(--vf-ui-border-strong);
  box-shadow: var(--vf-ui-shadow-md);
}

.composer-launcher-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.composer-launcher-input {
  color: #475569;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.night-mode .composer-launcher {
  background: linear-gradient(180deg, rgba(20, 29, 43, 0.95), rgba(15, 24, 36, 0.95));
  border-color: var(--card-dark-divider);
}

body.night-mode .composer-launcher-input {
  color: #b5c5d8;
}

/* Unified feed promo cards */
.vf-promo-card {
  background: linear-gradient(145deg, #1d4ed8 0%, #2563eb 46%, #0ea5e9 100%) !important;
  color: #f8fbff;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.28);
}

.vf-promo-card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.vf-promo-card .user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.vf-promo-card .user-box:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}

.vf-promo-card .user-box img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.vf-promo-card .user-box .name {
  font-weight: 700;
  line-height: 1.2;
}

/* Profile polish */
.vf-profile-shell .profile-header {
  overflow: visible;
  margin-bottom: 0 !important;
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--vf-ui-border);
  border-bottom: 0;
  box-shadow: var(--vf-ui-shadow-md);
}

.vf-profile-shell .post .post-image img,
.vf-profile-shell .post .photos img,
.vf-profile-shell .post img.img-fluid,
.vf-profile-shell .post-image img,
.vf-profile-shell .post-media img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.vf-profile-shell .post .post-image,
.vf-profile-shell .post .photos,
.vf-profile-shell .post-media {
  width: 100%;
  overflow: hidden;
}

.vf-profile-shell .profile-cover-wrapper {
  min-height: clamp(220px, 32vw, 360px);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.vf-profile-shell .profile-cover-wrapper img {
  display: block;
}

.vf-profile-shell .profile-name-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 8px;
}

.vf-profile-shell .profile-name-wrapper > a:first-of-type {
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper,
html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper > a:first-of-type,
html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper .text-muted,
html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper .badge.bg-primary,
html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-featured-song,
html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-featured-song a {
  color: #0f172a !important;
}

.vf-profile-shell .profile-name-wrapper .text-muted {
  font-size: 0.95rem;
  font-weight: 600;
}

.vf-profile-shell .profile-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 20px 18px;
}

.vf-profile-shell .profile-buttons-wrapper .btn {
  box-shadow: none;
}

.vf-profile-shell .profile-header-stats {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.38));
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vf-profile-shell .profile-header-stats-grid {
  display: inline-flex;
  align-items: stretch;
}

.vf-profile-shell .profile-header-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 4px 8px;
  line-height: 1.05;
}

.vf-profile-shell .profile-header-stats-grid .profile-header-stat:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.vf-profile-shell .profile-header-stat-link {
  text-decoration: none !important;
  color: inherit !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vf-profile-shell .profile-header-stat-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.vf-profile-shell .profile-header-stat-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

.vf-profile-shell .profile-header-stat .stat-value {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f8fbff;
}

.vf-profile-shell .profile-header-stat .stat-label {
  margin-top: 5px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(236, 246, 255, 0.9);
}

.vf-profile-shell .profile-header-stats-window {
  display: none;
}

.vf-anchor-offset {
  display: block;
  position: relative;
  top: -92px;
}

.vf-profile-shell .profile-tabs-wrapper a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 82px;
  text-align: center !important;
  line-height: 1.1;
}

.vf-profile-shell .profile-tabs-wrapper a.active {
  text-align: center !important;
}

.vf-profile-shell .profile-tabs-wrapper a .main-icon {
  margin-right: 0 !important;
}

.vf-profile-shell .profile-tabs-wrapper a span {
  margin-left: 0 !important;
}

.vf-profile-shell .profile-tabs-wrapper {
  margin-top: 0;
  margin-bottom: 20px;
  border-radius: 0 0 24px 24px;
  border: 1px solid var(--vf-ui-border);
  border-top: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--vf-ui-shadow-md);
}

body.night-mode .vf-profile-shell .profile-tabs-wrapper {
  background: var(--card-dark-color);
  border-color: var(--card-dark-divider);
}

@media (min-width: 992px) {
  .vf-profile-shell .profile-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 10px;
  }

  .vf-profile-shell .profile-tabs-wrapper a {
    flex-direction: row;
    min-width: auto;
    gap: 6px;
    padding: 14px 11px;
    line-height: 1;
    font-size: 0.92rem;
    font-weight: 700;
  }

  .vf-profile-shell .profile-tabs-wrapper a span.d-none.d-xxl-inline-block {
    display: inline-block !important;
    margin-left: 0 !important;
  }

  .vf-profile-shell .profile-tabs-wrapper a .main-icon svg,
  .vf-profile-shell .profile-tabs-wrapper a .main-icon i {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
  }
}

.profile-name-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 0.35rem;
  flex-shrink: 0;
}

.profile-name-flag.profile-name-flag-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.profile-name-flag.profile-name-flag-swatch {
  width: 1.35rem;
  height: 0.95rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 10px rgba(15, 23, 42, 0.18);
  background-size: cover;
  background-repeat: no-repeat;
}

.vf-profile-shell .profile-avatar-wrapper {
  width: auto !important;
  height: auto !important;
  bottom: auto !important;
  overflow: hidden;
  border-radius: 999px;
}

.vf-profile-shell .profile-avatar-wrapper > img {
  display: block;
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  min-height: 90px !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (min-width: 576px) {
  .vf-profile-shell .profile-avatar-wrapper > img {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
  }
}

@media (min-width: 768px) {
  .vf-profile-shell .profile-header .profile-avatar-wrapper {
    top: 170px !important;
  }

  .vf-profile-shell .profile-avatar-wrapper > img {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
  }
}

@media (min-width: 992px) {
  .vf-profile-shell .profile-header {
    min-height: clamp(280px, 30vw, 360px);
  }

  .vf-profile-shell .profile-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.42) 62%, rgba(2, 6, 23, 0.6) 100%);
    pointer-events: none;
    z-index: 3;
  }

  .vf-profile-shell .profile-header .profile-avatar-wrapper:not(.static) {
    top: auto !important;
    bottom: 18px !important;
    left: 22px !important;
    transform: none !important;
    z-index: 5;
  }

  .vf-profile-shell .profile-avatar-wrapper > img {
    width: 160px !important;
    height: 160px !important;
    min-width: 160px !important;
    min-height: 160px !important;
  }

  .vf-profile-shell .profile-name-wrapper {
    left: 212px !important;
    right: 360px !important;
    bottom: 30px !important;
    min-height: 0;
    padding: 0 !important;
    gap: 10px;
    justify-content: flex-start;
    text-align: left !important;
    z-index: 5;
  }

  .vf-profile-shell .profile-buttons-wrapper {
    left: auto !important;
    right: 20px !important;
    bottom: 26px !important;
    padding: 0 !important;
    justify-content: flex-end;
    z-index: 5;
  }

  .vf-profile-shell .profile-header-stats {
    top: auto;
    right: 34px;
    bottom: 104px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 5;
  }

  .vf-profile-shell .profile-header-stats-grid {
    gap: 0;
  }

  .vf-profile-shell .profile-header-stat {
    min-width: 114px;
    padding: 2px 20px;
    align-items: center;
  }

  .vf-profile-shell .profile-header-stats-grid .profile-header-stat:not(:last-child) {
    border-right: 0;
  }

  .vf-profile-shell .profile-header-stats-grid .profile-header-stat + .profile-header-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
  }

  .vf-profile-shell .profile-header-stat .stat-value {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 0.95;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  }

  .vf-profile-shell .profile-header-stat .stat-label {
    margin-top: 7px;
    font-size: 0.73rem;
    letter-spacing: 0.12em;
    color: rgba(246, 250, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  }

  .vf-profile-shell .profile-header-stats-window {
    display: none;
  }

  .vf-profile-shell .profile-header-stat-link:hover {
    background: transparent;
    transform: translateY(-1px);
  }

  .vf-profile-shell .profile-header-stat-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: -2px;
  }

  .vf-profile-shell .profile-name-wrapper > a:first-of-type {
    color: #f8fbff !important;
    font-size: clamp(1.9rem, 2vw, 2.3rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  }

  .vf-profile-shell .profile-name-wrapper .text-muted,
  .vf-profile-shell .profile-name-wrapper .badge.bg-primary,
  .vf-profile-shell .profile-featured-song,
  .vf-profile-shell .profile-featured-song a {
    color: #f8fbff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  }

  html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper,
  html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper > a:first-of-type,
  html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper .text-muted,
  html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper .badge.bg-primary,
  html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-featured-song,
  html body .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-featured-song a {
    color: #f8fbff !important;
  }
}

.profile-avatar-wrapper.avatar-frame-gold img {
  border: 4px solid #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.profile-avatar-wrapper.avatar-frame-silver img {
  border: 4px solid #c0c0c0;
  box-shadow: 0 0 0 3px rgba(192, 192, 192, 0.3);
}

.profile-avatar-wrapper.avatar-frame-rainbow img {
  border: 4px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #b983ff);
  background-origin: border-box;
  background-clip: content-box, border-box;
}

.profile-avatar-wrapper.avatar-frame-neon img {
  border: 4px solid #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.75), 0 0 0 2px rgba(0, 229, 255, 0.2);
}

.profile-featured-song {
  margin-top: 2px;
  font-size: 0.92rem;
  color: #64748b;
}

.vf-profile-shell .profile-name-wrapper .verified-badge,
.vf-profile-shell .profile-name-wrapper .verified-badge .svg-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.vf-profile-shell .profile-name-wrapper .verified-badge svg {
  width: 24px !important;
  height: 24px !important;
}

.vf-profile-shell .profile-name-wrapper > a:not(:first-of-type),
.vf-profile-shell .profile-name-wrapper .profile-name-flag,
.vf-profile-shell .profile-name-wrapper .verified-badge,
.vf-profile-shell .profile-name-wrapper .badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.vf-profile-shell .profile-featured-song {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.vf-profile-shell .profile-featured-song i {
  margin-right: 0 !important;
  line-height: 1;
}

body.night-mode .vf-profile-shell .profile-name-wrapper > a:first-of-type {
  color: #f8fafc;
}

body.night-mode .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper,
body.night-mode .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper > a:first-of-type,
body.night-mode .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper .text-muted,
body.night-mode .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-name-wrapper .badge.bg-primary,
body.night-mode .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-featured-song,
body.night-mode .main-wrapper .vf-profile-shell.profile-theme-preset-page .profile-featured-song a {
  color: #f8fafc !important;
}

body.night-mode .profile-featured-song {
  color: #9cb0c6;
}

/* Chat sidebar responsive shell */
.chat-sidebar {
  right: var(--vf-chat-sidebar-gap);
  top: var(--vf-chat-sidebar-top);
  bottom: 14px;
  width: var(--vf-chat-sidebar-width);
}

.chat-sidebar-shell {
  display: flex;
  flex-direction: column;
}

.chat-sidebar-content {
  top: 14px;
  bottom: 86px;
  left: 8px;
  width: calc(100% - 16px);
}

.chat-sidebar-content .js_scroller {
  padding-bottom: 6px;
}

.chat-sidebar-footer {
  bottom: 10px;
  left: 50%;
  width: calc(100% - 20px);
  max-width: 64px;
  transform: translateX(-50%);
}

.chat-sidebar-shell .chat-sidebar-footer a.btn-chat {
  top: 0;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  :root {
    --vf-chat-sidebar-width: 84px;
  }

  .chat-sidebar-content {
    left: 7px;
    width: calc(100% - 14px);
  }
}

@media (max-width: 1199.98px) {
  .chat-sidebar {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .vf-profile-shell .profile-header .profile-avatar-wrapper:not(.static) {
    top: 156px !important;
  }

  .vf-profile-shell .profile-name-wrapper {
    justify-content: center;
    text-align: center;
    padding-top: 52px;
    padding-bottom: 10px;
  }

  .vf-profile-shell .profile-name-wrapper > a:first-of-type {
    width: 100%;
    font-size: 1.24rem;
    line-height: 1.2;
  }

  .main-side-nav-card .card-body.with-nav {
    padding: 10px;
  }

  .vf-profile-shell .profile-name-wrapper,
  .vf-profile-shell .profile-buttons-wrapper {
    padding-left: 14px;
    padding-right: 14px;
  }

  .vf-profile-shell .profile-buttons-wrapper {
    justify-content: center;
    gap: 8px;
    padding-top: 2px;
  }

  .vf-profile-shell .profile-header-stats {
    top: 10px;
    right: 10px;
    bottom: auto;
    padding: 5px 7px;
    border-radius: 12px;
  }

  .vf-profile-shell .profile-header-stat {
    min-width: 56px;
    padding: 3px 7px;
  }

  .vf-profile-shell .profile-header-stat .stat-value {
    font-size: 0.9rem;
  }

  .vf-profile-shell .profile-header-stat .stat-label {
    font-size: 0.54rem;
    letter-spacing: 0.05em;
  }

  .vf-profile-shell .profile-header-stats-window {
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }

  .vf-anchor-offset {
    top: -74px;
  }
}

@media (max-width: 767px) {
  .profile-header .profile-name-wrapper a {
    color: #000000 !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .vf-profile-shell .profile-header .profile-avatar-wrapper:not(.static) {
    top: 150px !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .vf-profile-shell .profile-header .profile-avatar-wrapper:not(.static) {
    top: 162px !important;
  }

  .vf-profile-shell .profile-name-wrapper {
    padding-top: 72px;
  }
}

/* Live studio refresh */
.live-stream-wrapper.live-studio-shell {
  position: relative;
  border: 1px solid rgba(146, 171, 206, 0.28);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 4% -14%, rgba(85, 150, 255, 0.2), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(35, 84, 159, 0.18), transparent 36%),
    linear-gradient(165deg, #1d2a3f 0%, #22334d 34%, #1f2e45 100%);
  box-shadow: 0 24px 52px rgba(18, 33, 54, 0.2);
  color: #dfe7f6;
}

.live-stream-wrapper.live-studio-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

body.night-mode .live-stream-wrapper.live-studio-shell {
  border-color: rgba(120, 140, 165, 0.3);
  background:
    radial-gradient(circle at 6% -12%, rgba(73, 125, 217, 0.2), transparent 44%),
    radial-gradient(circle at 100% 0%, rgba(37, 70, 128, 0.2), transparent 38%),
    linear-gradient(162deg, #172233 0%, #1a2638 40%, #162030 100%);
}

.live-stream-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: #f5f9ff;
  font-size: 1rem;
  line-height: 1.2;
}

.live-stream-title-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.live-stream-title-main .main-icon {
  width: 32px;
  height: 32px;
}

.live-stream-title-text {
  font-family: var(--heading-font-family);
  font-size: clamp(1.62rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.live-stream-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.live-stream-actions .live-stream-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-stream-actions .live-stream-option .btn {
  border-width: 1px;
  border-color: rgba(124, 165, 227, 0.5);
  background: rgba(17, 33, 54, 0.66);
  color: #cde1ff;
  font-weight: 600;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  font-size: 0.9rem;
}

.live-stream-actions .live-stream-option .btn:hover {
  border-color: rgba(152, 190, 250, 0.65);
  background: rgba(34, 52, 78, 0.82);
  color: #e6f0ff;
}

.live-stream-actions .live-stream-option .btn-check:checked + .btn {
  border-color: rgba(107, 168, 255, 0.7);
  background: linear-gradient(135deg, rgba(20, 91, 196, 0.92), rgba(25, 120, 226, 0.92));
  color: #fff;
}

.live-stream-actions .live-stream-primary-action.btn {
  background: linear-gradient(135deg, #ef476f 0%, #e6335d 100%);
  border-color: rgba(255, 122, 158, 0.86);
  color: #fff;
  min-height: 40px;
  padding: 0.42rem 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(234, 72, 116, 0.32);
}

.live-stream-actions #js_live-end.live-stream-primary-action.btn {
  background: linear-gradient(135deg, #ff7b2f 0%, #ef4444 100%);
  border-color: rgba(255, 165, 117, 0.86);
  box-shadow: 0 10px 24px rgba(239, 89, 73, 0.34);
}

.live-stream-actions .live-stream-primary-action.btn:hover {
  filter: brightness(1.03);
}

.live-stream-actions .live-paid-price {
  min-width: 100px;
  max-width: 128px;
  height: 42px;
  padding: 0 14px;
  background: rgba(10, 20, 34, 0.88);
  border: 1px solid rgba(105, 163, 244, 0.58);
  color: #e8f2ff;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 42px;
  outline: none;
}

.live-stream-actions .live-paid-price::placeholder {
  color: rgba(213, 227, 250, 0.68);
}

.live-studio-settings {
  border: 1px solid rgba(146, 171, 206, 0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.96), rgba(238, 247, 255, 0.93));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(14, 30, 52, 0.12);
}

body.night-mode .live-studio-settings {
  border-color: rgba(90, 109, 136, 0.6);
  background: linear-gradient(180deg, rgba(25, 38, 57, 0.96), rgba(21, 33, 51, 0.92));
}

.live-studio-settings .card-body {
  padding: 14px 14px 12px;
}

.live-studio-settings-grid {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(300px, 1fr);
  gap: 10px 20px;
  align-items: start;
}

.live-setting-label {
  margin-bottom: 7px;
  font-weight: 700;
  color: #2f4668;
}

.live-studio-settings .form-text {
  color: #607690;
}

body.night-mode .live-setting-label {
  color: #c1d4ed;
}

body.night-mode .live-studio-settings .form-text {
  color: #93a7be;
}

.live-studio-settings #js_live-privacy {
  max-width: 100%;
  height: 42px;
  border-radius: 12px;
  border-color: rgba(140, 166, 202, 0.45);
  box-shadow: none;
}

.live-stream-wrapper.live-studio-shell .js_live-cohosts.chat-to {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin-top: 4px;
  padding: 0 0 0 74px;
  border-bottom: 0;
  background: transparent;
}

.live-stream-wrapper.live-studio-shell .js_live-cohosts.chat-to .to {
  position: absolute;
  top: 7px;
  left: 0;
  font-weight: 700;
  color: #2f4668;
}

body.night-mode .live-stream-wrapper.live-studio-shell .js_live-cohosts.chat-to .to {
  color: #b7cbe4;
}

.live-stream-wrapper.live-studio-shell .js_live-cohosts.chat-to ul.tags li {
  margin-top: 4px;
  margin-right: 6px;
  border-radius: 999px;
  border: 1px solid rgba(117, 151, 198, 0.48);
  background: #fff;
  color: #2d4669;
  font-weight: 600;
}

body.night-mode .live-stream-wrapper.live-studio-shell .js_live-cohosts.chat-to ul.tags li {
  border-color: rgba(109, 140, 181, 0.6);
  background: rgba(30, 45, 67, 0.94);
  color: #cfddf2;
}

.live-stream-wrapper.live-studio-shell .js_live-cohosts.chat-to .typeahead {
  float: left;
  width: 100%;
  max-width: 480px;
}

.live-stream-wrapper.live-studio-shell .js_live-cohosts.chat-to .typeahead input {
  border-radius: 12px;
  border: 1px solid rgba(126, 158, 201, 0.45);
  background: rgba(255, 255, 255, 0.98);
  color: #314a6b;
  font-weight: 600;
  line-height: 34px;
  padding: 0 12px;
}

body.night-mode .live-stream-wrapper.live-studio-shell .js_live-cohosts.chat-to .typeahead input {
  border-color: rgba(95, 122, 158, 0.62);
  background: rgba(22, 33, 50, 0.96);
  color: #d6e6ff;
}

.live-stream-wrapper.live-studio-shell .live-stream-video.live-stream-stage {
  height: clamp(250px, 52vw, 620px);
  min-height: 260px;
  border: 1px solid rgba(110, 141, 187, 0.38);
  border-radius: 20px;
  background: #02050d;
  box-shadow: inset 0 0 0 1px rgba(243, 248, 255, 0.05), 0 14px 34px rgba(7, 16, 30, 0.45);
}

.live-stream-wrapper.live-studio-shell .live-stream-video.live-stream-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 6, 16, 0.32) 0%, rgba(0, 6, 16, 0.08) 22%, rgba(0, 6, 16, 0.22) 100%);
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-counter {
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-counter .status,
.live-stream-wrapper.live-studio-shell .live-stream-video .live-counter .number {
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 20, 33, 0.76);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-counter .status {
  background: linear-gradient(135deg, #f03d5d, #f45d7a);
  border-color: rgba(255, 168, 190, 0.5);
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-counter .status.offline {
  background: rgba(15, 24, 38, 0.84);
  border-color: rgba(180, 193, 212, 0.32);
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-counter .number {
  margin-left: 0;
  padding: 5px 12px;
  color: #eff5ff;
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-recording {
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffd5d5;
  background: rgba(20, 8, 14, 0.76);
  border: 1px solid rgba(235, 92, 103, 0.38);
  z-index: 4;
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-status {
  bottom: 18px;
  border-radius: 999px;
  background: rgba(8, 17, 30, 0.82);
  border: 1px solid rgba(131, 159, 199, 0.4);
  color: #e6effc;
  max-width: calc(100% - 24px);
  box-shadow: 0 8px 26px rgba(7, 15, 29, 0.45);
  z-index: 4;
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-status.info {
  background: linear-gradient(135deg, rgba(25, 97, 208, 0.94), rgba(34, 127, 231, 0.94));
  border-color: rgba(130, 181, 255, 0.62);
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-status.success {
  background: linear-gradient(135deg, rgba(32, 140, 85, 0.95), rgba(41, 174, 105, 0.95));
  border-color: rgba(129, 223, 175, 0.55);
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-status.error {
  background: linear-gradient(135deg, rgba(208, 61, 74, 0.95), rgba(229, 89, 102, 0.95));
  border-color: rgba(247, 158, 166, 0.6);
}

.live-stream-wrapper.live-studio-shell .live-stream-video .live-comments {
  height: min(230px, 44%);
  padding: 14px;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 8%, rgba(5, 10, 19, 0.84) 62%, rgba(5, 10, 19, 0.96) 100%);
}

.live-stream-buttons.live-control-toolbar {
  margin-top: 16px;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(235, 244, 255, 0.18);
  border: 1px solid rgba(170, 194, 226, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.live-stream-buttons.live-control-toolbar[style*="display: block"],
.live-stream-buttons.live-control-toolbar[style*="display:block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.live-stream-buttons.live-control-toolbar > * {
  margin-right: 0 !important;
}

.live-control-item,
.live-control-item .live-control-btn {
  margin-right: 0 !important;
}

.live-control-btn.btn {
  width: 52px;
  height: 52px;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1;
  background: rgba(241, 247, 255, 0.96);
  border: 1px solid rgba(184, 203, 230, 0.62);
  color: #214063;
  box-shadow: 0 10px 22px rgba(6, 17, 33, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.live-control-btn.btn i {
  margin: 0 !important;
  line-height: 1;
  font-size: 1.02rem;
}

.live-control-btn.btn:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 14px 28px rgba(8, 20, 39, 0.28);
}

.live-control-btn.btn-danger {
  background: linear-gradient(135deg, #f04969, #f66076);
  border-color: rgba(247, 162, 174, 0.68);
  color: #fff;
}

body.night-mode .live-control-btn.btn {
  background: rgba(26, 39, 58, 0.96);
  border-color: rgba(95, 119, 151, 0.52);
  color: #d9e8fb;
}

body.night-mode .live-stream-buttons.live-control-toolbar {
  background: rgba(14, 23, 38, 0.5);
  border-color: rgba(97, 122, 158, 0.32);
}

body.night-mode .live-control-btn.btn:hover {
  background: rgba(33, 49, 73, 0.98);
}

.live-stream-wrapper.live-studio-shell #camera-select-menu .dropdown-menu {
  border-radius: 14px;
  border: 1px solid rgba(182, 201, 226, 0.55);
  box-shadow: 0 16px 32px rgba(12, 24, 43, 0.2);
}

body.night-mode .live-stream-wrapper.live-studio-shell #camera-select-menu .dropdown-menu {
  border-color: rgba(87, 109, 141, 0.62);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
  .live-stream-wrapper.live-studio-shell {
    padding: 24px;
  }
}

@media (max-width: 991.98px) {
  .live-stream-wrapper.live-studio-shell {
    border-radius: 20px;
    padding: 14px;
  }

  .live-stream-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .live-studio-settings-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .live-stream-wrapper.live-studio-shell .live-stream-video.live-stream-stage {
    height: clamp(230px, 62vw, 480px);
  }

  .live-stream-buttons.live-control-toolbar {
    padding: 8px 10px;
    border-radius: 18px;
  }

  .live-stream-wrapper.live-studio-shell .js_live-cohosts.chat-to {
    padding-left: 0;
  }

  .live-stream-wrapper.live-studio-shell .js_live-cohosts.chat-to .to {
    position: static;
    display: block;
    margin-bottom: 6px;
  }
}

@media (max-width: 575.98px) {
  .live-stream-title {
    margin-bottom: 14px;
  }

  .live-stream-title-text {
    font-size: 1.52rem;
  }

  .live-stream-actions .live-stream-option,
  .live-stream-actions .live-stream-primary-action {
    width: 100%;
  }

  .live-stream-actions .live-stream-option .btn,
  .live-stream-actions .live-stream-primary-action.btn {
    width: 100%;
    justify-content: center;
  }

  .live-stream-actions .live-paid-price {
    width: 100%;
    max-width: 100%;
  }

  .live-stream-wrapper.live-studio-shell .live-stream-video.live-stream-stage {
    min-height: 210px;
  }

  .live-stream-wrapper.live-studio-shell .live-stream-video .live-status {
    font-size: 0.84rem;
    padding: 9px 14px;
  }

  .live-control-btn.btn {
    width: 46px;
    height: 46px;
    border-radius: 14px !important;
  }

  .live-stream-buttons.live-control-toolbar {
    width: 100%;
    justify-content: center;
  }
}

/* v15i final profile page system */
.vf-profile-shell .sg-offcanvas-mainbar > .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
  margin-top: 12px;
}

.vf-profile-shell .vf-profile-sidebar,
.vf-profile-shell .vf-profile-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vf-profile-shell .vf-profile-sidebar > *,
.vf-profile-shell .vf-profile-main > * {
  margin-bottom: 0 !important;
}

.vf-profile-shell .card {
  border: 1px solid var(--vf-ui-border);
  border-radius: 20px;
  background: var(--vf-ui-surface);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.vf-profile-shell .card .card-header {
  border-bottom: 1px solid var(--vf-ui-border);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(243, 248, 255, 0.9));
  padding: 13px 16px;
}

.vf-profile-shell .card .card-header strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.vf-profile-shell .card .card-body {
  padding: 14px 16px;
}

.vf-profile-shell .vf-profile-sidebar .card .card-header {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
}

.vf-profile-shell .vf-profile-sidebar .card .card-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 255, 0.95));
}

.vf-profile-shell .vf-profile-sidebar .about-list li {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.vf-profile-shell .vf-profile-sidebar .about-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.vf-profile-shell .vf-profile-sidebar .about-list-item {
  position: relative;
  display: block;
  padding-left: 30px;
  font-size: 0.92rem;
  line-height: 1.4;
  word-break: break-word;
}

.vf-profile-shell .vf-profile-sidebar .about-list-item .svg-container {
  position: absolute;
  left: 0;
  top: 2px;
  transform: none;
}

.vf-profile-shell .vf-profile-sidebar .about-list-item i {
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  min-width: 18px;
  text-align: center;
  margin-right: 0 !important;
  line-height: 1;
}

.vf-profile-shell .vf-profile-sidebar .about-list-item .main-icon,
.vf-profile-shell .vf-profile-sidebar .about-list-item .main-icon * {
  width: 18px !important;
  height: 18px !important;
  color: #4c6fff !important;
  fill: #4c6fff !important;
}

.vf-profile-shell .vf-profile-sidebar .badge.bg-light.text-primary {
  background: rgba(76, 111, 255, 0.12) !important;
  border: 1px solid rgba(76, 111, 255, 0.24);
}

.vf-profile-shell .vf-profile-main .composer-launcher {
  border-radius: 20px;
  border: 1px solid rgba(76, 111, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.vf-profile-shell .vf-profile-main .composer-launcher .card-body {
  padding: 15px 16px !important;
}

.vf-profile-shell .vf-profile-main .composer-launcher-input {
  font-size: 0.97rem;
  font-weight: 600;
  color: #4b5c74;
}

.vf-profile-shell .vf-profile-main .post {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: var(--vf-ui-surface);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.vf-profile-shell .vf-profile-main .post.post-menu-open {
  overflow: visible;
}

.vf-profile-shell .vf-profile-main .post .post-body {
  padding-top: 14px;
}

.vf-profile-shell .vf-profile-main .post .post-footer,
.vf-profile-shell .vf-profile-main .post .comments,
.vf-profile-shell .vf-profile-main .post .comment {
  border-top-color: var(--vf-ui-border);
}

.vf-profile-shell .vf-profile-main .post .post-actions .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  line-height: 1;
}

.vf-profile-shell .vf-profile-main .post .post-actions .reaction-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.vf-profile-shell .btn-primary {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(76, 111, 255, 0.24);
}

.vf-profile-shell .btn-light {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.94);
}

.vf-profile-shell .profile-header,
.vf-profile-shell .profile-cover-wrapper {
  border-radius: 24px !important;
}

.vf-profile-shell .profile-header {
  overflow: hidden;
  margin-top: 0 !important;
}

.vf-profile-shell .sg-offcanvas-mainbar {
  padding-top: 15px;
}

.vf-profile-shell .profile-name-wrapper > a:first-of-type {
  font-size: clamp(1.45rem, 2.05vw, 2.05rem);
  line-height: 1.08;
}

.vf-profile-shell .profile-header-presence-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(7, 16, 33, 0.45);
  color: #f8fbff !important;
}

.vf-profile-shell .profile-header-presence-badge.is-online {
  background: rgba(22, 163, 74, 0.28);
  border-color: rgba(134, 239, 172, 0.45);
}

.vf-profile-shell .profile-header-presence-badge.is-offline {
  background: rgba(100, 116, 139, 0.34);
  border-color: rgba(203, 213, 225, 0.42);
}

.vf-profile-shell .profile-header-meta {
  order: 24;
  flex-basis: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.vf-profile-shell .profile-header-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fbff !important;
  text-decoration: none !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.vf-profile-shell .profile-header-meta-item i {
  font-size: 0.8rem;
  line-height: 1;
}

.vf-profile-shell .profile-header-meta-link:hover {
  text-decoration: underline !important;
}

.vf-profile-shell .profile-header-social {
  order: 30;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 6px;
}

.vf-profile-shell .profile-header-social-link {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: #f8fbff !important;
  background: rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.vf-profile-shell .profile-header-social-link:hover {
  transform: translateY(-1px);
  background: rgba(76, 111, 255, 0.42);
}

.vf-profile-shell .profile-header-social-link i,
.vf-profile-shell .profile-header-social-link svg {
  font-size: 14px !important;
  line-height: 1 !important;
  width: 14px !important;
  height: 14px !important;
}

/* Hide owner quick actions under stats (Import Calendar + Edit Profile) */
.vf-profile-shell .profile-buttons-wrapper button[data-url*="events/import_ics.php"],
.vf-profile-shell .profile-buttons-wrapper a[href$="/settings/profile"] {
  display: none !important;
}

/* Dark glass stats panel */
.vf-profile-shell .profile-header-stats {
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, rgba(7, 16, 33, 0.58), rgba(7, 16, 33, 0.38));
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.35);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

@media (min-width: 1200px) {
  .vf-profile-shell .sg-offcanvas-mainbar > .row {
    --bs-gutter-x: 1.1rem;
  }
}

@media (min-width: 992px) {
  .vf-profile-shell .profile-header {
    min-height: clamp(390px, 38vw, 490px) !important;
  }

  .vf-profile-shell .profile-cover-wrapper {
    min-height: clamp(390px, 38vw, 490px) !important;
  }

  .vf-profile-shell .profile-avatar-wrapper > img {
    width: 164px !important;
    height: 164px !important;
    min-width: 164px !important;
    min-height: 164px !important;
  }

  .vf-profile-shell .profile-header .profile-avatar-wrapper:not(.static) {
    left: 28px !important;
    bottom: 86px !important;
  }

  .vf-profile-shell .profile-name-wrapper {
    left: 230px !important;
    right: 470px !important;
    bottom: 92px !important;
  }

  .vf-profile-shell .profile-name-wrapper > a:first-of-type {
    font-size: clamp(2.12rem, 2.4vw, 2.72rem) !important;
    letter-spacing: -0.01em;
  }

  .vf-profile-shell .profile-header-meta {
    margin-top: 7px;
    gap: 14px;
  }

  .vf-profile-shell .profile-buttons-wrapper {
    right: 34px !important;
    bottom: 60px !important;
  }

  .vf-profile-shell .profile-header-stats {
    right: 34px !important;
    bottom: 126px !important;
  }

  .vf-profile-shell .profile-tabs-wrapper {
    position: relative;
    z-index: 8;
    display: flex !important;
    align-items: stretch;
    justify-content: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    margin: -44px 0 16px !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0 0 24px 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(180deg, rgba(8, 18, 37, 0.88), rgba(10, 21, 42, 0.84));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 16px 34px rgba(2, 8, 23, 0.38) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .vf-profile-shell .profile-tabs-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    pointer-events: none;
  }

  .vf-profile-shell .profile-tabs-wrapper > a {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    padding: 15px 8px 11px !important;
    border-radius: 0 !important;
    border-bottom: 3px solid transparent;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(240, 247, 255, 0.92) !important;
    text-align: center !important;
    white-space: nowrap;
  }

  .vf-profile-shell .profile-tabs-wrapper > a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .vf-profile-shell .profile-tabs-wrapper > a .main-icon,
  .vf-profile-shell .profile-tabs-wrapper > a .main-icon * {
    margin-right: 0 !important;
    color: rgba(240, 247, 255, 0.92) !important;
    fill: rgba(240, 247, 255, 0.92) !important;
  }

  .vf-profile-shell .profile-tabs-wrapper > a span,
  .vf-profile-shell .profile-tabs-wrapper > a span.d-none.d-xxl-inline-block {
    margin-left: 0 !important;
    display: inline-block !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .vf-profile-shell .profile-tabs-wrapper > a.active,
  .vf-profile-shell .profile-tabs-wrapper > a:hover {
    background: rgba(76, 111, 255, 0.34) !important;
    border-bottom-color: #7ea2ff;
    color: #ffffff !important;
  }

  .vf-profile-shell .profile-tabs-wrapper > a.active .main-icon,
  .vf-profile-shell .profile-tabs-wrapper > a.active .main-icon *,
  .vf-profile-shell .profile-tabs-wrapper > a:hover .main-icon,
  .vf-profile-shell .profile-tabs-wrapper > a:hover .main-icon * {
    color: #ffffff !important;
    fill: #ffffff !important;
  }

  .vf-profile-shell .profile-tabs-wrapper > a:first-child {
    border-bottom-left-radius: 24px !important;
  }

  .vf-profile-shell .profile-tabs-wrapper > a:last-child {
    border-bottom-right-radius: 24px !important;
  }
}

@media (max-width: 991.98px) {
  .vf-profile-shell .vf-profile-sidebar,
  .vf-profile-shell .vf-profile-main {
    gap: 12px;
  }

  .vf-profile-shell .card {
    border-radius: 16px;
  }

  .vf-profile-shell .card .card-header {
    padding: 11px 13px;
  }

  .vf-profile-shell .card .card-body {
    padding: 12px 13px;
  }

  .vf-profile-shell .profile-tabs-wrapper {
    border-radius: 14px;
    margin-top: 8px;
  }

  .vf-profile-shell .profile-tabs-wrapper a {
    min-width: 74px;
    padding: 10px 6px;
  }

  .vf-profile-shell .profile-header-meta {
    justify-content: center;
    margin-top: 7px;
    gap: 10px;
  }

  .vf-profile-shell .profile-header-meta-item {
    font-size: 0.82rem;
  }

  .vf-profile-shell .profile-header-social {
    justify-content: center;
    margin-top: 8px;
  }

  .vf-profile-shell .profile-header-social-link {
    width: 28px;
    height: 28px;
    border-radius: 999px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .vf-profile-shell .profile-name-wrapper {
    right: 440px !important;
  }

  .vf-profile-shell .profile-header-stats {
    right: 26px !important;
    bottom: 130px !important;
  }

  .vf-profile-shell .profile-buttons-wrapper {
    right: 26px !important;
    bottom: 58px !important;
    gap: 8px;
  }
}

body.night-mode .vf-profile-shell .card {
  background: var(--card-dark-color);
  border-color: var(--card-dark-divider);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.night-mode .vf-profile-shell .card .card-header {
  background: linear-gradient(180deg, rgba(24, 34, 49, 0.95), rgba(20, 30, 44, 0.9));
  border-bottom-color: var(--card-dark-divider);
}

body.night-mode .vf-profile-shell .vf-profile-sidebar .about-list li {
  border-bottom-color: var(--card-dark-divider);
}

body.night-mode .vf-profile-shell .vf-profile-sidebar .badge.bg-light.text-primary {
  background: rgba(76, 111, 255, 0.22) !important;
  border-color: rgba(110, 141, 255, 0.34);
}

body.night-mode .vf-profile-shell .vf-profile-main .composer-launcher {
  background: linear-gradient(180deg, rgba(23, 33, 48, 0.95), rgba(20, 30, 45, 0.95));
  border-color: rgba(86, 114, 150, 0.34);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

body.night-mode .vf-profile-shell .vf-profile-main .composer-launcher-input {
  color: #b9cade;
}

body.night-mode .vf-profile-shell .vf-profile-main .post {
  background: var(--card-dark-color);
  border-color: var(--card-dark-divider);
}

body.night-mode .vf-profile-shell .vf-profile-sidebar .card .card-body {
  background: linear-gradient(180deg, rgba(24, 34, 49, 0.95), rgba(20, 30, 44, 0.9)) !important;
}

body.night-mode .vf-profile-shell .btn-light {
  background: rgba(26, 37, 54, 0.9);
  border-color: rgba(96, 121, 155, 0.42);
  color: #e5efff;
}

body.night-mode .vf-profile-shell .profile-tabs-wrapper {
  background: linear-gradient(180deg, rgba(7, 15, 29, 0.92), rgba(9, 17, 33, 0.9));
  border-color: rgba(114, 132, 162, 0.34);
}

body.night-mode .vf-profile-shell .profile-header-social-link {
  background: rgba(12, 20, 36, 0.36);
  border-color: rgba(159, 179, 206, 0.32);
}

body.night-mode .vf-profile-shell .profile-header-meta-item {
  color: #f8fbff !important;
}

/* v16 site-wide profile-inspired skin */
.main-wrapper .card:not(.vf-promo-card) {
  border: 1px solid var(--vf-ui-border);
  border-radius: 18px;
  background: var(--vf-ui-surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.main-wrapper .card .card-header {
  border-bottom: 1px solid var(--vf-ui-border);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(243, 248, 255, 0.9));
}

.main-wrapper .post {
  border: 1px solid var(--vf-ui-border);
  border-radius: 18px;
  background: var(--vf-ui-surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.main-wrapper .post .post-footer,
.main-wrapper .post .comments,
.main-wrapper .post .comment {
  border-top-color: var(--vf-ui-border);
}

.main-wrapper .btn.btn-primary {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(76, 111, 255, 0.24);
}

.main-wrapper .btn.btn-light {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.94);
}

.main-wrapper .nav-tabs,
.main-wrapper .nav-pills {
  gap: 6px;
}

.main-wrapper .nav-tabs .nav-link,
.main-wrapper .nav-pills .nav-link {
  border-radius: 11px;
  font-weight: 700;
}

.main-wrapper .nav-tabs .nav-link.active,
.main-wrapper .nav-pills .nav-link.active {
  border-color: rgba(76, 111, 255, 0.25);
  background: rgba(76, 111, 255, 0.12);
  color: #2343cf;
}

.main-wrapper .form-control,
.main-wrapper .form-select {
  border-radius: 12px;
  border-color: rgba(148, 163, 184, 0.34);
}

.main-wrapper .form-control:focus,
.main-wrapper .form-select:focus {
  border-color: rgba(76, 111, 255, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(76, 111, 255, 0.14);
}

.main-wrapper .list-group-item {
  border-color: var(--vf-ui-border);
}

body.night-mode .main-wrapper .card:not(.vf-promo-card),
body.night-mode .main-wrapper .post {
  background: var(--card-dark-color);
  border-color: var(--card-dark-divider);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.night-mode .main-wrapper .card .card-body,
body.night-mode .main-wrapper .card .bg-white,
body.night-mode .main-wrapper .card .bg-light,
body.night-mode .main-wrapper .bg-white,
body.night-mode .main-wrapper .bg-light {
  background-color: var(--card-dark-color) !important;
}

body.night-mode .main-wrapper .card .card-header {
  background: linear-gradient(180deg, rgba(24, 34, 49, 0.95), rgba(20, 30, 44, 0.9));
  border-bottom-color: var(--card-dark-divider);
}

body.night-mode .main-wrapper .btn.btn-light {
  background: rgba(26, 37, 54, 0.9);
  border-color: rgba(96, 121, 155, 0.42);
  color: #e5efff;
}

body.night-mode .main-wrapper .nav-tabs .nav-link.active,
body.night-mode .main-wrapper .nav-pills .nav-link.active {
  background: rgba(76, 111, 255, 0.26);
  border-color: rgba(110, 141, 255, 0.42);
  color: #dbe8ff;
}

body.night-mode .main-wrapper .form-control,
body.night-mode .main-wrapper .form-select {
  border-color: rgba(96, 121, 155, 0.42);
  background: rgba(26, 37, 54, 0.94);
  color: #e5efff;
}

@media (max-width: 991.98px) {
  .main-wrapper .card:not(.vf-promo-card),
  .main-wrapper .post {
    border-radius: 14px;
  }
}

/* Avatar / cover action dropdown layering fix */
.vf-profile-shell .profile-avatar-wrapper {
  overflow: visible !important;
  z-index: 20 !important;
}

.vf-profile-shell .profile-avatar-change,
.vf-profile-shell .profile-avatar-crop,
.vf-profile-shell .profile-avatar-delete,
.vf-profile-shell .profile-cover-change,
.vf-profile-shell .profile-cover-position,
.vf-profile-shell .profile-cover-delete,
.vf-profile-shell .profile-cover-buttons {
  z-index: 21 !important;
}

.vf-profile-shell .profile-avatar-change .dropdown-menu,
.vf-profile-shell .profile-avatar-change .action-dropdown-menu,
.vf-profile-shell .profile-cover-change .dropdown-menu,
.vf-profile-shell .profile-cover-change .action-dropdown-menu,
.vf-profile-shell .profile-cover-buttons .dropdown-menu,
.vf-profile-shell .profile-cover-buttons .action-dropdown-menu {
  z-index: 2200 !important;
}

@media (min-width: 992px) {
  .vf-profile-shell .profile-header .profile-avatar-wrapper:not(.static),
  .vf-profile-shell .profile-name-wrapper,
  .vf-profile-shell .profile-buttons-wrapper,
  .vf-profile-shell .profile-header-stats {
    z-index: 20 !important;
  }

  .vf-profile-shell .profile-tabs-wrapper {
    z-index: 6 !important;
  }
}

/* Avatar dropdown above profile name */
.vf-profile-shell .profile-header .profile-avatar-wrapper,
.vf-profile-shell .profile-header .profile-avatar-wrapper:not(.static) {
  z-index: 60 !important;
}

.vf-profile-shell .profile-avatar-change,
.vf-profile-shell .profile-avatar-change .dropdown,
.vf-profile-shell .profile-avatar-change .dropdown-menu,
.vf-profile-shell .profile-avatar-change .action-dropdown-menu {
  z-index: 61 !important;
}

@media (min-width: 992px) {
  .vf-profile-shell .profile-name-wrapper,
  .vf-profile-shell .profile-buttons-wrapper,
  .vf-profile-shell .profile-header-stats {
    z-index: 12 !important;
  }
}

/* v20 full default-theme reskin (light mode only, feature-safe CSS overrides) */
:root {
  --vf-v20-paper: #f7f1e6;
  --vf-v20-paper-soft: #fffaf2;
  --vf-v20-ink: #1f2a37;
  --vf-v20-muted: #69788a;
  --vf-v20-accent: #c85a2b;
  --vf-v20-accent-strong: #a0441d;
  --vf-v20-accent-soft: rgba(200, 90, 43, 0.14);
  --vf-v20-outline: rgba(31, 42, 55, 0.16);
  --vf-v20-shadow: 0 14px 0 rgba(31, 42, 55, 0.08), 0 24px 48px rgba(18, 29, 45, 0.12);
  --vf-v20-focus: 0 0 0 0.2rem rgba(200, 90, 43, 0.24);
}

body:not(.night-mode) {
  color: var(--vf-v20-ink);
  background-color: #f3ecde;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(200, 90, 43, 0.2) 0, rgba(200, 90, 43, 0) 36%),
    radial-gradient(circle at 88% 4%, rgba(22, 126, 153, 0.16) 0, rgba(22, 126, 153, 0) 34%),
    linear-gradient(180deg, #fff8ec 0%, #f7f0e2 54%, #f2e9d7 100%),
    repeating-linear-gradient(90deg, rgba(31, 42, 55, 0.03) 0 1px, rgba(31, 42, 55, 0) 1px 5px);
}

body:not(.night-mode) .main-wrapper {
  color: var(--vf-v20-ink);
}

body:not(.night-mode) .main-wrapper .text-muted {
  color: var(--vf-v20-muted) !important;
}

body:not(.night-mode) .main-wrapper a:not(.btn):not(.dropdown-item) {
  color: #1a6a80;
}

body:not(.night-mode) .main-wrapper a:not(.btn):not(.dropdown-item):hover {
  color: #0f4f61;
}

body:not(.night-mode) .main-wrapper .main-header {
  background:
    linear-gradient(90deg, rgba(26, 35, 52, 0.98), rgba(23, 52, 65, 0.97)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, rgba(255, 255, 255, 0) 1px 6px);
  border-bottom: 2px solid rgba(255, 229, 194, 0.45);
  box-shadow: 0 18px 34px rgba(8, 20, 33, 0.34);
}

body:not(.night-mode) .main-wrapper .main-header .navbar-wrapper > ul > li > a,
body:not(.night-mode) .main-wrapper .main-header .navbar-wrapper > ul > li > .dropdown-toggle {
  color: #f7efe2 !important;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body:not(.night-mode) .main-wrapper .main-header .navbar-wrapper > ul > li > a:hover,
body:not(.night-mode) .main-wrapper .main-header .navbar-wrapper > ul > li > .dropdown-toggle:hover {
  background: rgba(255, 235, 204, 0.14);
  color: #fff8ef !important;
  transform: translateY(-1px);
}

body:not(.night-mode) .main-wrapper .main-header .counter {
  background: #f08d57 !important;
  color: #1b2735 !important;
}

body:not(.night-mode) .main-wrapper .card:not(.vf-promo-card):not(.main-side-nav-card),
body:not(.night-mode) .main-wrapper .post {
  position: relative;
  border: 1px solid rgba(31, 42, 55, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(245, 236, 222, 0.98)),
    repeating-linear-gradient(90deg, rgba(31, 42, 55, 0.018) 0 1px, rgba(31, 42, 55, 0) 1px 5px);
  box-shadow: var(--vf-v20-shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: vfV20Rise 280ms ease both;
}

body:not(.night-mode) .main-wrapper .card:not(.vf-promo-card):not(.main-side-nav-card)::before,
body:not(.night-mode) .main-wrapper .post::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #e0753d 0%, #d06435 36%, #1e7f95 100%);
  pointer-events: none;
}

body:not(.night-mode) .main-wrapper .card:not(.vf-promo-card):not(.main-side-nav-card):hover,
body:not(.night-mode) .main-wrapper .post:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 42, 55, 0.26);
  box-shadow: 0 18px 0 rgba(31, 42, 55, 0.09), 0 32px 58px rgba(18, 29, 45, 0.17);
}

body:not(.night-mode) .main-wrapper .card .card-header {
  border-bottom: 1px solid rgba(31, 42, 55, 0.12);
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.98), rgba(248, 240, 228, 0.95));
}

body:not(.night-mode) .main-wrapper .card .card-header strong,
body:not(.night-mode) .main-wrapper .card .card-header h6 {
  letter-spacing: 0.03em;
}

body:not(.night-mode) .main-wrapper .post .post-footer,
body:not(.night-mode) .main-wrapper .post .comments,
body:not(.night-mode) .main-wrapper .post .comment {
  border-top-color: rgba(31, 42, 55, 0.12);
}

body:not(.night-mode) .main-wrapper .btn {
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.76rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

body:not(.night-mode) .main-wrapper .btn:active {
  transform: translateY(1px);
}

body:not(.night-mode) .main-wrapper .btn.btn-primary {
  border: 1px solid rgba(146, 58, 23, 0.5);
  background: linear-gradient(135deg, #df7a45 0%, #c85a2b 48%, #b84d22 100%);
  color: #fff8f2;
  box-shadow: 0 10px 0 rgba(132, 57, 28, 0.18), 0 14px 28px rgba(200, 90, 43, 0.32);
}

body:not(.night-mode) .main-wrapper .btn.btn-primary:hover,
body:not(.night-mode) .main-wrapper .btn.btn-primary:focus {
  background: linear-gradient(135deg, #e58a58 0%, #d06733 48%, #bb501f 100%);
  box-shadow: 0 12px 0 rgba(132, 57, 28, 0.2), 0 18px 34px rgba(200, 90, 43, 0.36);
  color: #fffdf8;
}

body:not(.night-mode) .main-wrapper .btn.btn-light {
  border: 1px solid rgba(31, 42, 55, 0.2);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(245, 236, 223, 0.96));
  color: #253243;
  box-shadow: 0 6px 0 rgba(31, 42, 55, 0.08);
}

body:not(.night-mode) .main-wrapper .btn.btn-light:hover {
  background: linear-gradient(180deg, rgba(255, 254, 248, 0.98), rgba(251, 243, 232, 0.98));
  border-color: rgba(31, 42, 55, 0.3);
  color: #18212e;
}

body:not(.night-mode) .main-wrapper .btn:focus-visible,
body:not(.night-mode) .main-wrapper .form-control:focus-visible,
body:not(.night-mode) .main-wrapper .form-select:focus-visible,
body:not(.night-mode) .main-wrapper .nav-link:focus-visible {
  box-shadow: var(--vf-v20-focus);
}

body:not(.night-mode) .main-wrapper .form-control,
body:not(.night-mode) .main-wrapper .form-select {
  border: 1px solid rgba(31, 42, 55, 0.2);
  border-radius: 10px;
  background: rgba(255, 251, 244, 0.92);
  color: #1f2a37;
}

body:not(.night-mode) .main-wrapper .form-control::placeholder {
  color: #7c8897;
}

body:not(.night-mode) .main-wrapper .form-control:focus,
body:not(.night-mode) .main-wrapper .form-select:focus {
  border-color: rgba(200, 90, 43, 0.54);
  background: #fffefb;
  box-shadow: var(--vf-v20-focus);
}

body:not(.night-mode) .main-wrapper .dropdown-menu {
  border: 1px solid rgba(31, 42, 55, 0.18);
  border-radius: 14px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.99), rgba(246, 238, 226, 0.98));
  box-shadow: 0 18px 40px rgba(18, 29, 45, 0.18);
}

body:not(.night-mode) .main-wrapper .dropdown-menu .dropdown-item {
  border-radius: 9px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body:not(.night-mode) .main-wrapper .dropdown-menu .dropdown-item:hover,
body:not(.night-mode) .main-wrapper .dropdown-menu .dropdown-item:focus {
  background: rgba(200, 90, 43, 0.14);
  color: #8f3e1a;
}

body:not(.night-mode) .main-wrapper .main-side-nav > li > a,
body:not(.night-mode) .main-wrapper .side-nav > li > a {
  position: relative;
  border-radius: 10px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body:not(.night-mode) .main-wrapper .main-side-nav > li > a:hover,
body:not(.night-mode) .main-wrapper .side-nav > li > a:hover {
  background: rgba(31, 127, 149, 0.12);
  color: #145569 !important;
  transform: translateX(2px);
}

body:not(.night-mode) .main-wrapper .main-side-nav > li.active > a,
body:not(.night-mode) .main-wrapper .side-nav > li.active > a {
  background: rgba(200, 90, 43, 0.16);
  color: #8f3e1a !important;
}

body:not(.night-mode) .main-wrapper .main-side-nav > li.active > a::before,
body:not(.night-mode) .main-wrapper .side-nav > li.active > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: #c85a2b;
}

body:not(.night-mode) .main-wrapper .nav-tabs,
body:not(.night-mode) .main-wrapper .nav-pills {
  gap: 7px;
}

body:not(.night-mode) .main-wrapper .nav-tabs .nav-link,
body:not(.night-mode) .main-wrapper .nav-pills .nav-link {
  border-radius: 10px;
  border: 1px solid transparent;
  color: #415367;
}

body:not(.night-mode) .main-wrapper .nav-tabs .nav-link.active,
body:not(.night-mode) .main-wrapper .nav-pills .nav-link.active {
  border-color: rgba(200, 90, 43, 0.35);
  background: rgba(200, 90, 43, 0.12);
  color: #8f3e1a;
}

body:not(.night-mode) .main-wrapper .table > :not(caption) > * > * {
  border-bottom-color: rgba(31, 42, 55, 0.12);
}

body:not(.night-mode) .main-wrapper .table tbody tr:hover {
  background: rgba(31, 127, 149, 0.08);
}

body:not(.night-mode) .composer-launcher {
  border: 1px solid rgba(31, 42, 55, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.97), rgba(245, 236, 223, 0.95));
  box-shadow: 0 10px 0 rgba(31, 42, 55, 0.08), 0 18px 34px rgba(18, 29, 45, 0.13);
}

body:not(.night-mode) .composer-launcher:hover {
  border-color: rgba(31, 42, 55, 0.26);
  box-shadow: 0 14px 0 rgba(31, 42, 55, 0.08), 0 24px 42px rgba(18, 29, 45, 0.16);
}

body:not(.night-mode) .composer-launcher-input {
  color: #344456;
}

.post-meta .dropdown .post-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.post-meta .dropdown .post-menu-toggle:focus {
  outline: none;
  box-shadow: none;
}

.action-dropdown-menu {
  min-width: 240px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.action-dropdown-menu .dropdown-item {
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  white-space: normal;
  background: transparent;
}

.action-dropdown-menu .dropdown-item:hover,
.action-dropdown-menu .dropdown-item:focus {
  background: #f8fafc;
}

.action-dropdown-menu .action,
.action-dropdown-menu .action.no-desc {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-dropdown-menu .action-desc {
  margin-top: 4px;
}

.action-dropdown-menu .main-icon,
.action-dropdown-menu .fa {
  flex: 0 0 20px;
  margin-right: 0;
}

.post-edit-inline {
  padding: 10px 16px 16px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}

.post-edit-inline .post-form {
  margin-bottom: 12px;
}

.post-edit-inline .js_post-editor-quill-wrap {
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.post-edit-inline .js_post-editor-quill-wrap .ql-toolbar.ql-snow {
  padding: 10px 12px 6px;
  background: #fff;
}

.post-edit-inline .js_post-editor-quill-wrap .ql-container.ql-snow {
  border-top: 1px solid #eef2f7 !important;
  background: #fff;
}

.post-edit-inline .js_post-editor-quill-wrap .ql-editor {
  min-height: 120px;
  padding: 14px 16px 16px !important;
}

.post-edit-inline .x-form-tools {
  right: 18px;
  bottom: 16px;
}

body.night-mode .action-dropdown-menu {
  border-color: rgba(148, 163, 184, 0.2);
  background: #151b24;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.5);
}

body.night-mode .action-dropdown-menu .dropdown-item:hover,
body.night-mode .action-dropdown-menu .dropdown-item:focus {
  background: rgba(148, 163, 184, 0.12);
}

body.night-mode .post-edit-inline {
  border-top-color: var(--card-dark-divider);
  background: rgba(15, 23, 42, 0.48);
}

body.night-mode .post-edit-inline .js_post-editor-quill-wrap {
  border-color: rgba(148, 163, 184, 0.18);
  background: var(--card-dark-input);
  box-shadow: none;
}

body.night-mode .post-edit-inline .js_post-editor-quill-wrap .ql-toolbar.ql-snow,
body.night-mode .post-edit-inline .js_post-editor-quill-wrap .ql-container.ql-snow {
  background: var(--card-dark-input);
}

body.night-mode .post-edit-inline .js_post-editor-quill-wrap .ql-container.ql-snow {
  border-top-color: rgba(148, 163, 184, 0.14) !important;
}

body:not(.night-mode) .main-wrapper .list-group-item {
  border-color: rgba(31, 42, 55, 0.12);
  background: transparent;
}

@keyframes vfV20Rise {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  body:not(.night-mode) .main-wrapper .card:not(.vf-promo-card),
  body:not(.night-mode) .main-wrapper .post {
    border-radius: 16px;
  }

  body:not(.night-mode) .main-wrapper .card:not(.vf-promo-card):hover,
  body:not(.night-mode) .main-wrapper .post:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.night-mode) .main-wrapper .card:not(.vf-promo-card),
  body:not(.night-mode) .main-wrapper .post,
  body:not(.night-mode) .main-wrapper .btn,
  body:not(.night-mode) .main-wrapper .main-side-nav > li > a,
  body:not(.night-mode) .main-wrapper .side-nav > li > a,
  body:not(.night-mode) .main-wrapper .main-header .navbar-wrapper > ul > li > a,
  body:not(.night-mode) .main-wrapper .main-header .navbar-wrapper > ul > li > .dropdown-toggle {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep the modern left sidebar on the cool brand palette */
body:not(.night-mode) .main-wrapper .main-side-nav-card {
  background:
    radial-gradient(circle at top right, rgba(76, 111, 255, 0.08), rgba(76, 111, 255, 0) 34%),
    linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(236, 242, 250, 0.96)) !important;
  border-color: rgba(191, 219, 254, 0.32) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07) !important;
}

body:not(.night-mode) .main-wrapper .main-side-nav-card::before {
  background: linear-gradient(90deg, #4c6fff 0%, #2f6fe4 42%, #22c1ee 100%) !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-section-block {
  border-top-color: rgba(148, 163, 184, 0.12) !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-section-title {
  color: #55657c !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-section-title .main-icon,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-section-title .sidebar-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  margin-right: 0 !important;
  transform: translateY(0);
  vertical-align: middle !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-section-title .mr10 {
  margin-right: 0 !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-section-title .main-icon svg,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-section-title .sidebar-section-icon svg {
  display: block;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-section-title .sidebar-section-icon,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-section-title .sidebar-section-icon * {
  color: #9aaed8 !important;
  fill: #9aaed8 !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-grid-item,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-quick-item {
  border-color: rgba(181, 194, 218, 0.5) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.94)) !important;
  color: #1d2b41 !important;
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.08) !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-grid-item:hover,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-quick-item:hover {
  background: linear-gradient(180deg, rgba(242, 247, 255, 0.98), rgba(234, 242, 255, 0.96)) !important;
  border-color: rgba(47, 111, 228, 0.18) !important;
  box-shadow: 0 8px 16px rgba(148, 163, 184, 0.12) !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-grid-item.is-active,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-quick-item.is-active {
  background: linear-gradient(180deg, rgba(229, 238, 255, 0.98), rgba(219, 231, 255, 0.96)) !important;
  border-color: rgba(47, 111, 228, 0.26) !important;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 228, 0.1), 0 8px 16px rgba(76, 111, 255, 0.08) !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-grid-item.is-active::before,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-quick-item.is-active::before {
  background: var(--vf-accent) !important;
  opacity: 1 !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-grid-item .main-icon,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-grid-item .main-icon *,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-quick-item .main-icon,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-quick-item .main-icon * {
  color: #7188c3 !important;
  fill: #7188c3 !important;
}

body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-grid-item.is-active .main-icon,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-grid-item.is-active .main-icon *,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-quick-item.is-active .main-icon,
body:not(.night-mode) .main-wrapper .sidebar-layout-modern .sidebar-quick-item.is-active .main-icon * {
  color: var(--vf-accent) !important;
  fill: var(--vf-accent) !important;
}

/* Restore the core modern light palette after legacy warm reskin rules */
body:not(.night-mode) {
  color: var(--body-color) !important;
  background-color: var(--body-bg-color) !important;
  background-image:
    radial-gradient(1200px circle at 20% -10%, rgba(76, 111, 255, 0.18), transparent 45%),
    radial-gradient(900px circle at 85% 10%, rgba(16, 185, 129, 0.12), transparent 45%) !important;
}

body:not(.night-mode) .main-wrapper {
  color: var(--body-color) !important;
}

body:not(.night-mode) .main-wrapper .main-header {
  background: linear-gradient(90deg, #17365a 0%, #215c97 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 24px rgba(12, 24, 43, 0.22) !important;
}

body:not(.night-mode) .main-wrapper .main-header .navbar-wrapper > ul > li > a,
body:not(.night-mode) .main-wrapper .main-header .navbar-wrapper > ul > li > .dropdown-toggle {
  color: #f8fbff !important;
}

body:not(.night-mode) .main-wrapper .main-header .counter {
  background: var(--vf-accent) !important;
  color: #ffffff !important;
}

body:not(.night-mode) .main-wrapper .main-header .search-wrapper .form-control {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #f8fbff !important;
}

body:not(.night-mode) .main-wrapper .main-header .search-wrapper .form-control::placeholder {
  color: rgba(248, 251, 255, 0.72) !important;
}

.main-wrapper .main-header .logo,
.main-wrapper .main-header .logo:hover {
  display: block !important;
  line-height: 70px !important;
}

.main-wrapper .main-header .logo img {
  display: inline-block !important;
  vertical-align: middle !important;
  max-height: 50px !important;
}

.main-wrapper .main-header img.logo-light {
  display: none !important;
}

.main-wrapper .main-header img.logo-dark {
  display: block !important;
}

@media (min-width: 768px) {
  .main-wrapper .main-header .logo-wrapper {
    display: flex;
    align-items: center;
    min-height: 70px;
  }

  .main-wrapper .main-header .logo,
  .main-wrapper .main-header .logo:hover {
    display: inline-flex !important;
    align-items: center;
    line-height: 1 !important;
    height: auto;
  }

  .main-wrapper .main-header .logo img {
    max-height: 48px !important;
  }

  .main-wrapper .main-header .header-search-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .main-wrapper .main-header .header-search-cluster .home-icon {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    z-index: auto;
  }

  .main-wrapper .main-header .header-search-cluster .search-wrapper {
    flex: 1 1 auto;
    min-width: 0;
  }
}

body:not(.night-mode) .main-wrapper .card:not(.vf-promo-card),
body:not(.night-mode) .main-wrapper .post,
body:not(.night-mode) .main-wrapper .publisher,
body:not(.night-mode) .main-wrapper .dropdown-menu,
body:not(.night-mode) .main-wrapper .x-form {
  background: var(--vf-surface) !important;
  border: 1px solid var(--vf-border) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12) !important;
}

body:not(.night-mode) .main-wrapper .card:not(.vf-promo-card)::before,
body:not(.night-mode) .main-wrapper .post::before {
  background: linear-gradient(90deg, #4c6fff 0%, #2f6fe4 42%, #22c1ee 100%) !important;
}

body:not(.night-mode) .main-wrapper .card .card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--vf-border) !important;
}

body:not(.night-mode) .main-wrapper .btn.btn-primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--vf-accent), var(--vf-accent-strong)) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(76, 111, 255, 0.28) !important;
}

body:not(.night-mode) .main-wrapper .btn.btn-light {
  border: 1px solid var(--vf-border) !important;
  background: var(--vf-surface) !important;
  color: var(--body-color) !important;
  box-shadow: none !important;
}

body:not(.night-mode) .main-wrapper .form-control,
body:not(.night-mode) .main-wrapper .form-select,
body:not(.night-mode) .composer-launcher {
  border-color: var(--vf-border-strong) !important;
  background: var(--vf-surface) !important;
  color: var(--body-color) !important;
  box-shadow: var(--vf-shadow-sm) !important;
}

body:not(.night-mode) .composer-launcher-input {
  color: #475569 !important;
}

body:not(.night-mode) .main-wrapper .dropdown-menu {
  border-color: var(--vf-border) !important;
}

body:not(.night-mode) .main-wrapper .dropdown-menu .dropdown-item:hover,
body:not(.night-mode) .main-wrapper .dropdown-menu .dropdown-item:focus {
  background: var(--vf-accent-soft) !important;
  color: var(--vf-accent-strong) !important;
}

body:not(.night-mode) .main-wrapper .nav-tabs .nav-link.active,
body:not(.night-mode) .main-wrapper .nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--vf-accent), var(--vf-accent-strong)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.marketplace-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px;
}

.marketplace-tabs > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2px;
  min-width: 0;
}

.marketplace-tabs > ul > li {
  float: none;
}

.marketplace-tabs > ul > li > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 8px;
  white-space: nowrap;
}

.marketplace-tabs > ul > li > a .main-icon {
  margin-right: 6px !important;
}

.marketplace-tabs-actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0 !important;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-actions-primary {
  width: 100%;
  justify-content: center;
}

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

.product-actions-grid .btn {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.product-actions-grid .btn .fa {
  margin-right: 6px;
}

@media (max-width: 1439.98px) {
  .marketplace-tabs-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .marketplace-tabs {
    padding: 10px 12px;
  }

  .marketplace-tabs > ul {
    gap: 2px 6px;
  }

  .marketplace-tabs > ul > li > a {
    padding: 9px 10px;
  }

  .marketplace-tabs-actions {
    justify-content: flex-start;
  }
}
.vf-newsfeed-shell .post .post-actions,
.js_posts_stream .post .post-actions {
  overflow: visible;
}

.vf-newsfeed-shell .post .post-actions .reactions-wrapper,
.js_posts_stream .post .post-actions .reactions-wrapper {
  position: relative !important;
  overflow: visible !important;
}

.vf-newsfeed-shell .reactions-container,
.js_posts_stream .reactions-container {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  bottom: calc(100% + 12px) !important;
  left: 68% !important;
  transform: translateX(-50%) !important;
  display: none;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  height: 48px;
  padding: 0 8px;
  align-items: center;
  overflow: visible;
  z-index: 9999;
}

.vf-newsfeed-shell .post .post-actions .reactions-wrapper .reaction-btn,
.js_posts_stream .post .post-actions .reactions-wrapper .reaction-btn {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vf-newsfeed-shell .post .post-actions .reactions-wrapper .reaction-btn-name,
.js_posts_stream .post .post-actions .reactions-wrapper .reaction-btn-name {
  margin-left: 0;
}

.vf-newsfeed-shell .reactions-container .reactions_item,
.js_posts_stream .reactions-container .reactions_item {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: visible;
  animation: none !important;
  -webkit-animation: none !important;
  transform: none;
}

.vf-newsfeed-shell .reactions-container .reactions_item .emoji,
.js_posts_stream .reactions-container .reactions_item .emoji {
  position: absolute;
  top: 50%;
  right: auto;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.325);
  transform-origin: center center;
}

.vf-newsfeed-shell .reactions-container .reactions_item:hover,
.js_posts_stream .reactions-container .reactions_item:hover {
  transform: scale(1.18) translateY(-2px);
}

.vf-newsfeed-shell .comment-form textarea,
.js_posts_stream .comment-form textarea {
  padding-right: 182px !important;
}

.vf-newsfeed-shell .comment-form .x-form-tools,
.js_posts_stream .comment-form .x-form-tools {
  right: 12px;
  gap: 6px;
}

.vf-newsfeed-shell .comment-form .x-form-tools > li,
.js_posts_stream .comment-form .x-form-tools > li {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.vf-newsfeed-shell .comment-form .x-form-tools-post,
.js_posts_stream .comment-form .x-form-tools-post {
  min-width: 24px;
  overflow: visible;
}

@media (max-width: 767.98px) {
  .main-wrapper .main-header > .container > .row,
  .main-wrapper .main-header > .container-fluid > .row {
    align-items: center !important;
    min-height: 70px;
  }

  .main-wrapper .main-header > .container > .row > [class*="col-"],
  .main-wrapper .main-header > .container-fluid > .row > [class*="col-"] {
    display: flex !important;
    align-items: center !important;
    min-height: 70px;
  }

  .main-wrapper .main-header > .container > .row > [class*="col-"]:first-child,
  .main-wrapper .main-header > .container-fluid > .row > [class*="col-"]:first-child {
    justify-content: center !important;
  }

  .main-wrapper .main-header > .container > .row > [class*="col-"]:last-child,
  .main-wrapper .main-header > .container-fluid > .row > [class*="col-"]:last-child {
    justify-content: flex-end !important;
  }

  .main-wrapper .main-header .logo-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 70px !important;
    width: 100%;
    padding-left: 0 !important;
    overflow: visible !important;
  }

  .main-wrapper .main-header .logo,
  .main-wrapper .main-header .logo:hover {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 70px;
    line-height: 1 !important;
  }

  .main-wrapper .main-header .logo img {
    position: static !important;
    top: auto !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 48px !important;
    object-fit: contain;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .vf-newsfeed-shell {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .vf-newsfeed-shell > .row,
  .vf-newsfeed-shell .sg-offcanvas-mainbar > .row {
    --bs-gutter-x: 0;
  }

  .vf-newsfeed-shell .post,
  .js_posts_stream .post {
    border-radius: 18px !important;
  }

  .vf-newsfeed-shell .post .post-body,
  .js_posts_stream .post .post-body {
    padding: 14px 12px 10px !important;
  }

  .vf-newsfeed-shell .post .post-media,
  .js_posts_stream .post .post-media {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .vf-newsfeed-shell .post .post-media-image,
  .js_posts_stream .post .post-media-image {
    border-radius: 16px !important;
    overflow: hidden;
  }

  .vf-newsfeed-shell .post .post-media-meta,
  .js_posts_stream .post .post-media-meta {
    padding: 12px 14px 14px !important;
  }

  .vf-newsfeed-shell .post .post-media-meta .title,
  .js_posts_stream .post .post-media-meta .title {
    font-size: 1.05rem !important;
    line-height: 1.28 !important;
  }

  .vf-newsfeed-shell .post .post-media-meta .text,
  .js_posts_stream .post .post-media-meta .text,
  .vf-newsfeed-shell .post .post-text,
  .js_posts_stream .post .post-text {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }

  .vf-newsfeed-shell .post .post-stats,
  .js_posts_stream .post .post-stats {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    padding: 10px 8px !important;
    overflow: hidden;
  }

  .vf-newsfeed-shell .post .post-stats .float-start,
  .js_posts_stream .post .post-stats .float-start {
    flex: 0 0 auto;
    margin-right: 0 !important;
  }

  .vf-newsfeed-shell .post .post-stats .float-end,
  .js_posts_stream .post .post-stats .float-end {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex: 1 1 auto;
    gap: 3px !important;
    min-width: 0;
  }

  .vf-newsfeed-shell .post .post-stats .pointer,
  .vf-newsfeed-shell .post .post-stats .text-link,
  .js_posts_stream .post .post-stats .pointer,
  .js_posts_stream .post .post-stats .text-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin-left: 0 !important;
    gap: 3px;
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .vf-newsfeed-shell .post .post-stats .pointer i,
  .vf-newsfeed-shell .post .post-stats .text-link i,
  .js_posts_stream .post .post-stats .pointer i,
  .js_posts_stream .post .post-stats .text-link i {
    margin-right: 0 !important;
    font-size: 0.86rem !important;
  }

  .vf-newsfeed-shell .post .post-actions,
  .js_posts_stream .post .post-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 0 8px 14px !important;
  }

  .vf-newsfeed-shell .post .post-actions .action-btn,
  .js_posts_stream .post .post-actions .action-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
    justify-content: center !important;
  }

  .vf-newsfeed-shell .post .post-actions .reaction-btn,
  .js_posts_stream .post .post-actions .reaction-btn {
    width: 100%;
    justify-content: center;
  }

  .vf-newsfeed-shell .reactions-container,
  .js_posts_stream .reactions-container {
    left: 50% !important;
    display: none;
    flex-wrap: nowrap !important;
    width: max-content !important;
    max-width: calc(100vw - 28px) !important;
    height: 48px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    transform: translateX(-50%) !important;
  }

  .vf-share-slideout.js-vf-share-slideout,
  #vf-vibeguide-assistant.vf-assistant-mobile-tab,
  #vf-vibeguide-assistant.vf-assistant-left-tab {
    display: none !important;
  }
}
