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

html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #000000;
  --bg-2: #16181c;
  --bg-3: #1e2024;
  --bg-4: #272c30;
  --surface: #16181c;
  --surface-hover: #1e2024;
  --text: #e7e9ea;
  --text-2: #71767b;
  --text-3: #536471;
  --border: #2f3336;
  --border-2: #3f4448;
  --accent: #1d9bf0;
  --accent-hover: #1a8cd8;
  --accent-soft: rgba(29, 155, 240, 0.1);
  --success: #00ba7c;
  --warning: #ffd400;
  --danger: #f4212e;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bottom-h: 60px;
  --max-w: 600px;
  --ease: 0.2s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-skin="light"] {
  --bg: #ffffff;
  --bg-2: #f7f9fa;
  --bg-3: #eff3f4;
  --bg-4: #e8ecef;
  --surface: #ffffff;
  --surface-hover: #f7f9fa;
  --text: #0f1419;
  --text-2: #536471;
  --text-3: #8b98a5;
  --border: #eff3f4;
  --border-2: #e1e8ed;
  --accent-soft: rgba(29, 155, 240, 0.1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-skin="dim"] {
  --bg: #15202b;
  --bg-2: #1e2732;
  --bg-3: #253341;
  --bg-4: #2c3a4d;
  --surface: #1e2732;
  --surface-hover: #253341;
  --text: #f7f9f9;
  --text-2: #8b98a5;
  --text-3: #697684;
  --border: #38444d;
  --border-2: #4a5a6a;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--ease), color var(--ease);
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
}

body.body-guest-mode,
body.cl-app-conversation {
  padding-bottom: 0;
}

body.modal-open,
body.mobile-sb-open {
  overflow: hidden;
}

body[data-bg="default"] { background-color: var(--bg); }
body[data-bg="dark"]    { background-color: #000000; }
body[data-bg="dim"]     { background-color: #15202b; }
body[data-bg="light"]   { background-color: #ffffff; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

button {
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

svg {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }
p  { margin: 0 0 0.5rem; }

.d-none        { display: none !important; }
.hidden        { display: none !important; }
.d-block       { display: block !important; }
.d-flex        { display: flex !important; }
.d-inline      { display: inline !important; }
.d-inline-block{ display: inline-block !important; }
.d-grid        { display: grid !important; }

.justify-content-between { justify-content: space-between !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-start   { justify-content: flex-start !important; }
.justify-content-end     { justify-content: flex-end !important; }
.align-items-center      { align-items: center !important; }
.align-items-start       { align-items: flex-start !important; }
.align-items-end         { align-items: flex-end !important; }
.flex-column             { flex-direction: column !important; }
.flex-wrap               { flex-wrap: wrap !important; }
.flex-wn                 { flex-wrap: nowrap !important; }
.flex-item               { flex: 1; }

.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

.text-center { text-align: center !important; }
.text-left   { text-align: left !important; }
.text-right  { text-align: right !important; }
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col-red    { color: var(--danger) !important; }
.col-accent { color: var(--accent) !important; }

.mb-0  { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mt-0  { margin-top: 0 !important; }
.mt-10 { margin-top: 10px !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.p-0  { padding: 0 !important; }
.p-10 { padding: 10px !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed    { position: fixed !important; }
.overflow-hidden   { overflow: hidden !important; }
.pointer           { cursor: pointer !important; }

.block-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.block-link:hover { text-decoration: none; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -4px;
}
.col-3, .col-4, .col-6, .col-12,
.col-md-3, .col-lg-3, .col-xl-3, .col-xxl-2 {
  padding: 0 4px;
  width: 100%;
}
.col-3  { width: 25%; }
.col-4  { width: 33.3333%; }
.col-6  { width: 50%; }
.col-12 { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  vertical-align: middle;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  cursor: pointer;
}
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.btn-block {
  display: flex;
  width: 100%;
}
.btn.sm { padding: 4px 12px; font-size: 12px; }
.btn.md { padding: 8px 20px; font-size: 14px; }
.btn.lg { padding: 12px 24px; font-size: 15px; }

.btn.btn-custom { border: none; font-weight: 700; }
.btn.btn-custom.main-inline {
  background: var(--accent);
  color: #ffffff;
}
.btn.btn-custom.main-inline:hover { background: var(--accent-hover); text-decoration: none; }
.btn.btn-custom.main-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.btn-custom.main-outline:hover { background: var(--accent-soft); text-decoration: none; }
.btn.btn-custom.main-gray {
  background: var(--bg-3);
  color: var(--text);
}
.btn.btn-custom.main-gray:hover { background: var(--bg-4); text-decoration: none; }
.btn.btn-custom.main-white {
  background: #ffffff;
  color: #0f1419;
}
.btn.btn-custom.main-white:hover { background: #e8ecef; text-decoration: none; }
.btn.btn-custom.main-white-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn.btn-custom.main-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-group .btn { flex: 1; min-width: 0; }

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--ease), background var(--ease);
  resize: vertical;
  min-height: 40px;
}
.form-control:focus {
  border-color: var(--accent);
  background: var(--bg-2);
}
.form-control::placeholder {
  color: var(--text-3);
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  outline: 0;
  -webkit-overflow-scrolling: touch;
}
.modal.show { display: block; }
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }

.modal-dialog {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal.show .modal-dialog {
  transform: translateY(0);
  pointer-events: auto;
}
.modal-dialog.modal-md,
.modal-dialog.modal-lg,
.modal-dialog.modal-sm {
  max-width: 100%;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 90vh;
  background: var(--bg-2);
  color: var(--text);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  box-shadow: var(--shadow-lg);
  outline: 0;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.dismiss-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-2);
  transition: background var(--ease), color var(--ease);
  flex-shrink: 0;
}
.dismiss-modal:hover {
  background: var(--bg-3);
  color: var(--text);
}

.modal-body {
  padding: 16px;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.modal-footer .btn { flex: 1; min-width: 0; }

.modal.fade .modal-dialog {
  transform: translateY(100%);
}
.modal.fade.show .modal-dialog {
  transform: translateY(0);
}
.modal.fadeIn .modal-dialog {
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: rgba(91, 112, 131, 0.4);
}
.modal-backdrop.fade { opacity: 0; transition: opacity 0.15s linear; }
.modal-backdrop.show { opacity: 1; }

@media (min-width: 768px) {
  .modal-dialog {
    position: relative;
    max-width: 500px;
    margin: 1.75rem auto;
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .modal.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
  }
  .modal-content {
    border-radius: var(--radius-lg);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 3.5rem);
  }
}

.dropdown {
  position: relative;
}
.dropdown-toggle {
  cursor: pointer;
}
.dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0.7;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 1000;
  display: none;
  min-width: 180px;
  padding: 6px;
  margin: 6px 0 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease);
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--surface-hover);
  color: var(--text);
  text-decoration: none;
}
.dropdown-item.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.dropdown-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-2);
  flex-shrink: 0;
}

.popover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1060;
  display: block;
  max-width: 320px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
  word-wrap: break-word;
  white-space: normal;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.popover.show {
  opacity: 1;
  pointer-events: auto;
}
.popover .arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  overflow: hidden;
}
.popover .arrow::before,
.popover .arrow::after {
  content: "";
  position: absolute;
  border: 6px solid transparent;
}
.popover .popover-header,
.popover .popover-body {
  padding: 0;
}
.popover .popover-body {
  color: var(--text);
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.bs-popover-top .arrow::after,
.bs-popover-auto[x-placement^="top"] .arrow::after {
  border-top-color: var(--bg-2);
  bottom: 0;
}
.bs-popover-bottom .arrow::after,
.bs-popover-auto[x-placement^="bottom"] .arrow::after {
  border-bottom-color: var(--bg-2);
  top: 0;
}
.bs-popover-left .arrow::after,
.bs-popover-auto[x-placement^="left"] .arrow::after {
  border-left-color: var(--bg-2);
  right: 0;
}
.bs-popover-right .arrow::after,
.bs-popover-auto[x-placement^="right"] .arrow::after {
  border-right-color: var(--bg-2);
  left: 0;
}

.user-infobox {
  background: var(--bg-2);
  overflow: hidden;
}
.user-infobox__header {
  position: relative;
  height: 100px;
  background: var(--bg-3);
}
.user-infobox__header .cover {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.user-infobox__header .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-infobox__header .avatar {
  position: absolute;
  bottom: -32px;
  left: 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-2);
  background: var(--bg-2);
}
.user-infobox__header .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-infobox__body {
  padding: 40px 16px 12px;
}
.user-data__name a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  display: block;
}
.user-data__name a:hover { text-decoration: underline; }
.user-data__name a > span:last-child {
  font-weight: 400;
  color: var(--text-2);
  font-size: 13px;
}
.user-data__counter {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}
.counter-item {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.counter-item a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  gap: 4px;
}
.counter-item a:hover { text-decoration: underline; }
.counter-item span:first-child {
  font-weight: 700;
  color: var(--text);
}
.counter-item span:last-child {
  color: var(--text-2);
}
.user-data__bio {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}
.user-infobox__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.jq-toast-wrap {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 320px;
  max-width: calc(100vw - 32px);
}
.jq-toast-wrap.top-right    { top: 16px; right: 16px; }
.jq-toast-wrap.top-left     { top: 16px; left: 16px; }
.jq-toast-wrap.bottom-right { bottom: calc(16px + var(--bottom-h)); right: 16px; }
.jq-toast-wrap.bottom-left  { bottom: calc(16px + var(--bottom-h)); left: 16px; }
.jq-toast-wrap.top-center {
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}
.jq-toast-wrap.bottom-center {
  bottom: calc(16px + var(--bottom-h));
  left: 50%;
  transform: translateX(-50%);
}
.jq-toast-single {
  position: relative;
  padding: 12px 36px 12px 16px;
  margin: 0 0 10px;
  background: var(--bg-3);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
  pointer-events: all;
  animation: fadeIn 0.3s ease;
}
.jq-toast-single.jq-icon-success { border-left-color: var(--success); }
.jq-toast-single.jq-icon-error   { border-left-color: var(--danger); }
.jq-toast-single.jq-icon-warning { border-left-color: var(--warning); }
.jq-toast-single.jq-icon-info    { border-left-color: var(--accent); }
.jq-toast-single .close-jq-toast-single {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 20px;
  height: 20px;
  font-size: 18px;
  line-height: 1;
  color: var(--text-2);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--ease);
}
.jq-toast-single .close-jq-toast-single:hover { opacity: 1; }
.jq-toast-heading {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes bounceIn {
  0%, 20%, 40%, 60%, 80%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  0%   { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
  20%  { transform: scale3d(1.1, 1.1, 1.1); }
  40%  { transform: scale3d(0.9, 0.9, 0.9); }
  60%  { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
  80%  { transform: scale3d(0.97, 0.97, 0.97); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}
.animated.bounceIn { animation-name: bounceIn; }
.fadeIn            { animation-name: fadeIn; }
.spinner-icon {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.main-preloader-holder {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.main-preloader {
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-preloader .loading img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  animation: fadeIn 0.4s ease;
}

.main-content-container {
  position: relative;
  max-width: var(--max-w);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.main-content-container.guest-mode {
  border: 0;
  padding-bottom: 0;
}
.main-content-container-inner {
  position: relative;
  display: block;
  min-height: 100vh;
}

.timeline-container-wrapper {
  position: relative;
  min-height: calc(100vh - var(--bottom-h));
  background: var(--bg);
}
.timeline-container-inner {
  min-height: inherit;
}

.spa-preloader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.spa-preloader-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-2);
  border-radius: 50%;
  box-shadow: var(--shadow);
  color: var(--accent);
}

.left-sb-container {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  width: 280px;
  max-width: 85vw;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.4);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.left-sb-container.show {
  transform: translateX(0);
}
.sidebar__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 12px 8px;
}
.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar__nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar__nav-group_collapse {
  display: none;
}
.sidebar__nav-group_collapse.open {
  display: flex;
}
.sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  text-decoration: none;
}
.sidebar__nav-item:hover {
  background: var(--surface-hover);
  text-decoration: none;
}
.sidebar__nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.sidebar__nav-item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: inherit;
}
.sidebar__nav-item .icon svg {
  width: 22px;
  height: 22px;
}
.sidebar__nav-item .text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.sidebar__nav-item .text a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.sidebar__nav-item .text a:hover { text-decoration: none; }
.sidebar__nav-item .wallet {
  color: var(--text-2);
  font-weight: 400;
  font-size: 13px;
}
.sidebar__nav-item-devider {
  height: 1px;
  margin: 8px 16px;
  background: var(--border);
}
.sidebar__footer {
  padding: 12px 4px 4px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.guest-welcome {
  padding: 16px;
}
.guest-welcome .login-form {
  padding: 8px 0;
}

.sb-open-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.55);
  animation: fadeIn 0.2s ease;
}

.right-sb-container {
  display: none;
}

.mobile-bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  background: rgba(22, 24, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
}
[data-skin="light"] .mobile-bottom-navbar {
  background: rgba(255, 255, 255, 0.92);
  border-top-color: var(--border-2);
}
[data-skin="dim"] .mobile-bottom-navbar {
  background: rgba(30, 39, 50, 0.92);
}
.mobile-bottom-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: var(--max-w);
  height: var(--bottom-h);
  padding: 0 4px;
  gap: 2px;
}
.navbar-ctrl {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--ease), background var(--ease), transform var(--ease);
  flex: 1;
  max-width: 60px;
}
.navbar-ctrl:hover { color: var(--text); }
.navbar-ctrl.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.navbar-ctrl svg,
.navbar-ctrl i {
  width: 22px;
  height: 22px;
  display: block;
}
.navbar-ctrl .info-indicators {
  position: absolute;
  top: 2px;
  right: 2px;
  margin: 0;
}

.info-indicators {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: var(--accent);
  border-radius: var(--radius-full);
  margin-left: 4px;
}
.info-indicators:empty {
  display: none;
}

.main-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 4px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.footer-nav-item {
  color: var(--text-2);
}
.footer-nav-item a {
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-nav-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-nav-item.dropdown .dropdown-toggle {
  color: var(--text-2);
  cursor: pointer;
}
.footer-nav-item .dropdown-menu {
  left: 0;
  right: auto;
  max-height: 260px;
  overflow-y: auto;
}
.footer-nav-get-apps {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-nav-get-apps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}
.footer-nav-get-apps a:hover {
  color: var(--text);
  background: var(--bg-3);
}

.user-name-holder {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.user-name-holder__name {
  font-weight: 700;
  color: inherit;
}
.user-name-holder__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.user-name-holder__badge svg {
  width: 16px;
  height: 16px;
}

.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
}
.right-sidebar__header {
  padding: 4px 0;
}
.right-sidebar__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.right-sidebar__footer {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.sidebar-searchbar {
  position: relative;
  width: 100%;
}
.sidebar-searchbar__input {
  position: relative;
}
.sidebar-searchbar__input .form-control {
  padding-left: 40px;
  padding-right: 40px;
  background: var(--bg-3);
  border-radius: var(--radius-full);
}
.keyword-input__left-icon,
.keyword-input__right-icon,
.keyword-input__right-spinner {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-2);
}
.keyword-input__left-icon  { left: 6px; }
.keyword-input__right-icon { right: 6px; cursor: pointer; }
.keyword-input__right-spinner { right: 6px; color: var(--accent); }
.keyword-input__right-icon:hover { color: var(--text); }
.sidebar-searchbar__result {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}
.search-result__body { padding: 4px 0; }
.search-result__list { display: flex; flex-direction: column; }
.search-result__footer {
  padding: 8px;
  border-top: 1px solid var(--border);
}
.search-result__footer.disabled { opacity: 0.5; pointer-events: none; }
.search-result__list-item {
  display: block;
}
.search-result__list-item a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background var(--ease);
}
.search-result__list-item a:hover {
  background: var(--surface-hover);
  text-decoration: none;
}
.result-item-data {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.result-item-data__avatar .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}
.result-item-data__avatar .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-item-data__data {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.result-item-data__topline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-item-data__botline {
  font-size: 12px;
  color: var(--text-2);
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-content__header {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.sidebar-content__body {
  padding: 8px 0;
}
.sidebar-content__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.sidebar-content__footer a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.sidebar-content-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
}

.sidebar-users {
  display: flex;
  flex-direction: column;
}
.sidebar-users__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  transition: background var(--ease);
}
.sidebar-users__item:hover {
  background: var(--surface-hover);
}
.sidebar-users__item-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}
.sidebar-users__item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-users__item-avatar-online::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: var(--success);
  border: 2px solid var(--bg-2);
  border-radius: 50%;
}
.sidebar-users__item-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.sidebar-users__item-name a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-users__item-name a:hover { text-decoration: underline; }
.sidebar-users__item-followers {
  font-size: 12px;
  color: var(--text-2);
}
.sidebar-users__item-followers span {
  font-weight: 700;
  color: var(--text);
}

.sidebar-hashtags {
  display: flex;
  flex-direction: column;
}
.sidebar-hashtags__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background var(--ease);
}
.sidebar-hashtags__item a:hover {
  background: var(--surface-hover);
  text-decoration: none;
}
.sidebar-hashtags__item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-2);
  flex-shrink: 0;
}
.sidebar-hashtags__item .text {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.display-settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.display-settings__header h4 {
  margin: 0 0 4px;
  font-size: 16px;
}
.display-settings__header p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}
.display-settings__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.display-settings__group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.display-settings__options-list .row {
  margin: 0 -4px;
}
.options-li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
  text-align: center;
}
.options-li:hover {
  border-color: var(--accent);
  background: var(--bg-4);
  transform: translateY(-1px);
}
.options-li .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.options-li .emoji-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.options-li .name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.options-li .active-color {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.report-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.comment-input-holder {
  margin-top: 6px;
}

.subscription-form {
  display: flex;
  flex-direction: column;
}
.subscription-form__header {
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  justify-content: center;
}
.subscription-form__header .lp {
  position: relative;
  display: flex;
}
.subscription-form__header .lp__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-2);
  background: var(--bg-2);
}
.subscription-form__header .lp__avatar:nth-child(2) {
  margin-left: -24px;
}
.subscription-form__header .lp__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subscription-form__body {
  padding: 20px 16px;
  text-align: center;
}
.subscription-form__body h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.subscription-form__body p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-2);
}
.subscription-price {
  margin-top: 8px;
  padding: 12px;
  background: var(--bg-3);
  border-radius: var(--radius);
}
.subscription-price__header {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
}
.subscription-price__body {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.subscription-price__body span {
  color: var(--accent);
}
.subscription-form__footer {
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subscription-form__footer .btn-group {
  flex-wrap: nowrap;
}
.subscription-form__footer > span {
  display: block;
  font-size: 11px;
  color: var(--text-2);
  text-align: center;
}

.cookie-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  animation: slideUp 0.3s ease;
}
.cookie-alert__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.cookie-message {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-message .lp h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.cookie-message .lp p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}
.cookie-message .rp {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-message .rp .btn {
  flex: 1;
  min-width: 0;
}

[data-app="black-hole"] {
  position: static;
}

.cl-google-ads {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

[dir="rtl"] .left-sb-container {
  left: auto;
  right: 0;
  border-right: 0;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  box-shadow: -2px 0 24px rgba(0, 0, 0, 0.4);
}
[dir="rtl"] .left-sb-container.show {
  transform: translateX(0);
}
[dir="rtl"] .dropdown-menu {
  right: auto;
  left: 0;
}
[dir="rtl"] .jq-toast-single {
  border-left: 0;
  border-right: 4px solid var(--accent);
  padding: 12px 16px 12px 36px;
}
[dir="rtl"] .jq-toast-single.jq-icon-success { border-right-color: var(--success); }
[dir="rtl"] .jq-toast-single.jq-icon-error   { border-right-color: var(--danger); }
[dir="rtl"] .jq-toast-single.jq-icon-warning { border-right-color: var(--warning); }
[dir="rtl"] .jq-toast-single .close-jq-toast-single {
  right: auto;
  left: 12px;
}
[dir="rtl"] .sidebar__nav-item .icon,
[dir="rtl"] .footer-nav-get-apps a { margin-left: 0; }

@media (max-width: 400px) {
  body { font-size: 14px; }
  .navbar-ctrl { width: 38px; height: 38px; max-width: 50px; }
  .navbar-ctrl svg { width: 20px; height: 20px; }
  .mobile-bottom-navbar-inner { padding: 0 2px; gap: 0; }
  .left-sb-container { width: 260px; }
  .modal-header { padding: 12px 14px; }
  .modal-body   { padding: 14px; }
  .modal-footer { padding: 10px 14px; }
}

@media (min-width: 768px) {
  .main-content-container {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  }
  .sb-open-overlay { background: rgba(0, 0, 0, 0.65); }
  .left-sb-container {
    width: 300px;
    z-index: 1020;
  }
}

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