/* Lumica brand and local UX polish */
.main-header {
  min-height: 76px;
}

.main-header .logo-wrapper {
  height: 76px;
  overflow: visible;
  display: flex;
  align-items: center;
}

.main-header .logo {
  min-width: 0;
  height: 76px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.main-header .logo img.logo-light,
.main-header .logo img.logo-dark {
  width: auto;
  height: 64px;
  max-height: 64px;
  border-radius: 16px;
  background: #05070d;
  box-shadow: 0 10px 26px rgba(11, 21, 45, 0.18);
  object-fit: contain;
}

.lumica-footer-telegram {
  font-weight: 600;
}

.lumica-media-watermark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 20;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.lumica-lightbox-watermark {
  right: 18px;
  bottom: 18px;
}

.lumica-nodata-download,
.lumica-story-download,
.lumica-video-download-btn {
  position: absolute;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.lumica-nodata-download:hover,
.lumica-story-download:hover,
.lumica-video-download-btn:hover,
.lumica-reel-download:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
}

.lumica-nodata-download {
  top: 18px;
  right: 64px;
}

.lumica-story-download {
  top: 82px;
  right: 18px;
}

.lumica-video-download-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.lumica-video-download-btn {
  top: 12px;
  right: 12px;
}

.reel-video-container {
  position: relative;
}

.lumica-reel-download {
  text-decoration: none;
}

.lumica-reel-sound-toggle {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.lumica-reel-sound-toggle:hover,
.lumica-reel-sound-toggle:focus {
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  outline: 0;
}

.lumica-reel-sound-toggle.is-muted {
  background: rgba(0, 0, 0, 0.64);
}

.lumica-reel-play-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 28;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.lumica-reel-play-toggle:hover,
.lumica-reel-play-toggle:focus {
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  outline: 0;
}

.lumica-reel-play-toggle i {
  font-size: 24px;
}

.reel-container.is-paused .lumica-reel-play-toggle,
.reel-video-container:hover .lumica-reel-play-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none) {
  .reel-video-container:hover .lumica-reel-play-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .reel-container.is-paused .lumica-reel-play-toggle {
    opacity: 1;
    pointer-events: auto;
  }
}

html[dir="RTL"] .lumica-reel-sound-toggle {
  right: 16px;
  left: auto;
}

.lumica-reel-watermark {
  right: 18px;
  bottom: 18px;
}

.fr_welcome_sign .logo-wrapper img.logo-light,
.fr_welcome_sign .logo-wrapper img.logo-dark {
  width: auto;
  height: 78px !important;
  max-width: 210px !important;
  max-height: 78px !important;
  border-radius: 18px;
  background: #05070d;
  box-shadow: 0 12px 30px rgba(11, 21, 45, 0.22);
  object-fit: contain;
}

.lumica-story-editor {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(20, 29, 45, 0.035);
}

.night-mode .lumica-story-editor,
[data-bs-theme="dark"] .lumica-story-editor {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.lumica-story-preview {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(23, 35, 60, 0.78), rgba(8, 11, 20, 0.94)),
    url("../../../../uploads/lumica/lumica-logo.png") center / 58% no-repeat;
}

.lumica-story-preview-media {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.lumica-story-preview.is-empty .lumica-story-preview-media {
  display: none;
}

.lumica-story-preview[data-filter="vivid"] .lumica-story-preview-media {
  filter: saturate(1.35) contrast(1.08) brightness(1.05);
}

.lumica-story-preview[data-filter="cinema"] .lumica-story-preview-media {
  filter: contrast(1.18) saturate(0.85) brightness(0.92);
}

.lumica-story-preview[data-filter="mono"] .lumica-story-preview-media {
  filter: grayscale(1) contrast(1.12);
}

.lumica-story-preview[data-filter="warm"] .lumica-story-preview-media {
  filter: sepia(0.22) saturate(1.18) brightness(1.03);
}

.lumica-story-preview[data-filter="cool"] .lumica-story-preview-media {
  filter: saturate(1.12) hue-rotate(12deg) brightness(1.02);
}

.lumica-story-preview[data-filter="matte"] .lumica-story-preview-media {
  filter: saturate(0.9) contrast(0.92) brightness(1.08);
}

.lumica-story-viewer-item[data-filter="vivid"] .media {
  filter: saturate(1.35) contrast(1.08) brightness(1.05);
}

.lumica-story-viewer-item[data-filter="cinema"] .media {
  filter: contrast(1.18) saturate(0.85) brightness(0.92);
}

.lumica-story-viewer-item[data-filter="mono"] .media {
  filter: grayscale(1) contrast(1.12);
}

.lumica-story-viewer-item[data-filter="warm"] .media {
  filter: sepia(0.22) saturate(1.18) brightness(1.03);
}

.lumica-story-viewer-item[data-filter="cool"] .media {
  filter: saturate(1.12) hue-rotate(12deg) brightness(1.02);
}

.lumica-story-viewer-item[data-filter="matte"] .media {
  filter: saturate(0.9) contrast(0.92) brightness(1.08);
}

.lumica-story-preview-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 42px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(5, 8, 16, 0.82));
}

.lumica-story-preview-caption {
  position: absolute;
  right: 18px;
  left: 18px;
  z-index: 2;
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  direction: auto;
  line-height: 1.8;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lumica-story-view-caption {
  position: absolute;
  right: 18px;
  left: 18px;
  z-index: 50;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.8;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  direction: auto;
}

.lumica-story-viewer-item[data-text-bg="dark"] .lumica-story-view-caption {
  background: rgba(0, 0, 0, 0.48);
}

.lumica-story-viewer-item[data-text-bg="light"] .lumica-story-view-caption {
  background: rgba(255, 255, 255, 0.74);
}

.lumica-story-viewer-item[data-text-bg="blur"] .lumica-story-view-caption {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.lumica-story-viewer-item[data-text-position="top"] .lumica-story-view-caption {
  top: 82px;
}

.lumica-story-viewer-item[data-text-position="middle"] .lumica-story-view-caption {
  top: 50%;
  transform: translateY(-50%);
}

.lumica-story-viewer-item[data-text-position="bottom"] .lumica-story-view-caption {
  bottom: 34px;
}

.lumica-story-viewer-item[data-text-size="small"] .lumica-story-view-caption {
  font-size: 15px;
}

.lumica-story-viewer-item[data-text-size="medium"] .lumica-story-view-caption {
  font-size: 18px;
}

.lumica-story-viewer-item[data-text-size="large"] .lumica-story-view-caption {
  font-size: 23px;
  font-weight: 700;
}

.lumica-story-preview.has-caption .lumica-story-preview-caption {
  display: block;
}

.lumica-story-preview[data-text-bg="dark"] .lumica-story-preview-caption {
  background: rgba(0, 0, 0, 0.48);
}

.lumica-story-preview[data-text-bg="light"] .lumica-story-preview-caption {
  background: rgba(255, 255, 255, 0.74);
  color: #111827;
}

.lumica-story-preview[data-text-bg="blur"] .lumica-story-preview-caption {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.lumica-story-preview[data-text-position="top"] .lumica-story-preview-caption {
  top: 18px;
}

.lumica-story-preview[data-text-position="middle"] .lumica-story-preview-caption {
  top: 50%;
  transform: translateY(-50%);
}

.lumica-story-preview[data-text-position="bottom"] .lumica-story-preview-caption {
  bottom: 18px;
}

.lumica-story-preview[data-text-size="small"] .lumica-story-preview-caption {
  font-size: 15px;
}

.lumica-story-preview[data-text-size="medium"] .lumica-story-preview-caption {
  font-size: 18px;
}

.lumica-story-preview[data-text-size="large"] .lumica-story-preview-caption {
  font-size: 23px;
  font-weight: 700;
}

.lumica-story-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.lumica-story-control label {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #5f6b7a;
}

.lumica-story-color {
  min-height: 34px;
  padding: 3px;
}

@media (max-width: 767.98px) {
  .main-header,
  .main-header .logo-wrapper,
  .main-header .logo {
    min-height: 66px;
    height: 66px;
  }

  .main-header .logo img.logo-light,
  .main-header .logo img.logo-dark {
    height: 54px;
    max-height: 54px;
    border-radius: 14px;
  }

  .lumica-story-preview {
    min-height: 260px;
  }

  .lumica-story-controls {
    grid-template-columns: 1fr;
  }
}

@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 767.98px) {
    body:not(.index-body) {
      padding-top: calc(66px + env(safe-area-inset-top, 0px));
    }

    body.n_activated,
    body.n_live {
      padding-top: calc(116px + env(safe-area-inset-top, 0px));
    }

    .main-header {
      box-sizing: border-box;
      min-height: calc(66px + env(safe-area-inset-top, 0px));
      height: calc(66px + env(safe-area-inset-top, 0px));
      padding-top: env(safe-area-inset-top, 0px);
    }

    .footer-bottom-bar {
      box-sizing: border-box;
      height: calc(70px + env(safe-area-inset-bottom, 0px));
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }
  }
}

.admin-chart.lumica-chart-fallback {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 400px;
  padding: 18px;
}

.lumica-chart-fallback-title {
  color: #2d3748;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.night-mode .lumica-chart-fallback-title {
  color: var(--body-color-dark);
}

.lumica-chart-fallback-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-size: 12px;
}

.lumica-chart-fallback-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lumica-chart-fallback-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.lumica-chart-fallback-bars {
  display: grid;
  align-items: end;
  flex: 1;
  gap: 6px;
  min-height: 0;
  padding-top: 8px;
  border-bottom: 1px solid #dbe3ef;
  direction: ltr;
}

.night-mode .lumica-chart-fallback-bars {
  border-bottom-color: var(--card-dark-divider);
}

.lumica-chart-fallback-month {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.lumica-chart-fallback-group {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  gap: 2px;
  min-height: 0;
}

.lumica-chart-fallback-bar {
  display: block;
  width: 100%;
  min-width: 3px;
  max-width: 14px;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
}

.lumica-chart-fallback-label {
  overflow: hidden;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.night-mode .lumica-chart-fallback-label {
  color: #9fb0c3;
}

.lumica-chart-fallback-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #6b7280;
  font-weight: 600;
}

.admin-sidebar .side-nav i.fa,
.admin-sidebar .side-nav i.fab,
.admin-sidebar .side-nav i.fa-solid,
.admin-sidebar .side-nav i.fa-regular,
.admin-sidebar .side-nav i.fa-brands {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h7v7H4zm9 0h7v7h-7zM4 14h7v5H4zm9 0h7v5h-7z'/%3E%3C/svg%3E");
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  font-family: inherit !important;
  line-height: 1;
  vertical-align: -0.18em;
}

.admin-sidebar .side-nav i.fa::before,
.admin-sidebar .side-nav i.fab::before,
.admin-sidebar .side-nav i.fa-solid::before,
.admin-sidebar .side-nav i.fa-regular::before,
.admin-sidebar .side-nav i.fa-brands::before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask-image: var(--lumica-admin-icon);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: var(--lumica-admin-icon);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.admin-sidebar .side-nav i.fa-tachometer-alt,
.admin-sidebar .side-nav i.fa-stopwatch {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a9 9 0 0 0-9 9c0 2 .7 3.9 1.9 5.5h14.2A9 9 0 0 0 12 4zm0 2a7 7 0 0 1 7 7c0 1.2-.3 2.4-.9 3.5H5.9A7 7 0 0 1 12 6zm4.4 3.4-3.5 5.2a2 2 0 1 1-1.7-1.1z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-cog,
.admin-sidebar .side-nav i.fa-cogs {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.4 13.5a8 8 0 0 0 0-3L21.5 9l-2-3.5-2.5 1a8 8 0 0 0-2.6-1.5L14 2h-4l-.4 3A8 8 0 0 0 7 6.5l-2.5-1-2 3.5 2.1 1.5a8 8 0 0 0 0 3L2.5 15l2 3.5 2.5-1a8 8 0 0 0 2.6 1.5l.4 3h4l.4-3a8 8 0 0 0 2.6-1.5l2.5 1 2-3.5zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-user,
.admin-sidebar .side-nav i.fa-sign-in-alt {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM5 21a7 7 0 0 1 14 0z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-users,
.admin-sidebar .side-nav i.fa-users-cog {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm8-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM2 21a7 7 0 0 1 14 0zm13 0a8 8 0 0 0-2-5.3A5 5 0 0 1 22 19v2z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-key,
.admin-sidebar .side-nav i.fa-shield-alt {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l8 3v6c0 5-3.3 8.6-8 11-4.7-2.4-8-6-8-11V5z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-comments,
.admin-sidebar .side-nav i.fa-comment-alt,
.admin-sidebar .side-nav i.fa-headset {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16v11H8l-4 4z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-newspaper,
.admin-sidebar .side-nav i.fa-book,
.admin-sidebar .side-nav i.fa-file,
.admin-sidebar .side-nav i.fa-window-restore {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 3h9l3 3v15H6zM14 4v4h4zM8 11h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-flag {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 4h12l-2 4 2 4H7v8H5z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-calendar {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h2v3H7zm8 0h2v3h-2zM4 5h16v16H4zm2 5v9h12v-9z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-briefcase {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 6V4h6v2h4v13H5V6zm2 0h2V5h-2z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-film {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16v14H4zM7 7H5v2h2zm0 4H5v2h2zm0 4H5v2h2zm12-8h-2v2h2zm0 4h-2v2h2zm0 4h-2v2h2z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-gamepad {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 9h10a5 5 0 0 1 4.8 6.4l-.7 2.3a2.5 2.5 0 0 1-4.2 1l-2.1-2.2H9.2l-2.1 2.2a2.5 2.5 0 0 1-4.2-1l-.7-2.3A5 5 0 0 1 7 9zm0 3H5v2h2v2h2v-2h2v-2H9v-2H7zm9 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm3 3a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-chart-line,
.admin-sidebar .side-nav i.fa-chart-pie {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 19h16v2H2V3h2zm2-2 4-5 3 3 5-8 2 1-6.5 10-3.2-3.2-3 3.8z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-bullhorn,
.admin-sidebar .side-nav i.fa-bullseye,
.admin-sidebar .side-nav i.fa-paper-plane {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 10h3l10-5v14L7 14H4zm3 4 2 6H7l-2-6z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-wallet {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h14a2 2 0 0 1 2 2v1H6a2 2 0 0 0 0 4h14v3a2 2 0 0 1-2 2H4zm2 4h15v4H6a2 2 0 0 1 0-4zm10 1.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-money-bill-alt,
.admin-sidebar .side-nav i.fa-money-check-dollar,
.admin-sidebar .side-nav i.fa-hand-holding-usd,
.admin-sidebar .side-nav i.fa-coins,
.admin-sidebar .side-nav i.fa-dollar-sign,
.admin-sidebar .side-nav i.fa-piggy-bank,
.admin-sidebar .side-nav i.fa-bitcoin,
.admin-sidebar .side-nav i.fa-university,
.admin-sidebar .side-nav i.fa-credit-card {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 7h18v10H3zm2 2v6h14V9zm7 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-shopping-bag,
.admin-sidebar .side-nav i.fa-gift {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 8V6a5 5 0 0 1 10 0v2h3v13H4V8zm2 0h6V6a3 3 0 0 0-6 0z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-tag {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h8l8 8-8 8-8-8zm4 3a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-cubes,
.admin-sidebar .side-nav i.fa-shapes,
.admin-sidebar .side-nav i.fa-puzzle-piece,
.admin-sidebar .side-nav i.fa-toolbox,
.admin-sidebar .side-nav i.fa-bars {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h7v7H4zm9 0h7v7h-7zM4 14h7v5H4zm9 0h7v5h-7z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-desktop,
.admin-sidebar .side-nav i.fa-mobile {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 2h8a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm4 17a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-language,
.admin-sidebar .side-nav i.fa-globe {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zM4.5 11h15v2h-15zM12 4c1.7 1.7 2.7 4.5 2.7 8s-1 6.3-2.7 8c-1.7-1.7-2.7-4.5-2.7-8S10.3 5.7 12 4z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-paint-brush,
.admin-sidebar .side-nav i.fa-palette {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a9 9 0 0 0 0 18h1.5a2 2 0 0 0 1.4-3.4 1.5 1.5 0 0 1 1.1-2.6h1a5 5 0 0 0 5-5c0-3.9-4-7-10-7zM7.5 11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4-2a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4 2a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-bell,
.admin-sidebar .side-nav i.fa-envelope-open,
.admin-sidebar .side-nav i.fa-openai,
.admin-sidebar .side-nav i.fa-venus-mars,
.admin-sidebar .side-nav i.fa-exchange-alt,
.admin-sidebar .side-nav i.fa-smile,
.admin-sidebar .side-nav i.fa-grin-tears,
.admin-sidebar .side-nav i.fa-hand-peace,
.admin-sidebar .side-nav i.fa-star,
.admin-sidebar .side-nav i.fa-copyright,
.admin-sidebar .side-nav i.fa-check-circle,
.admin-sidebar .side-nav i.fa-minus-circle {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l3 6 6 .9-4.5 4.4 1 6.3L12 16.6l-5.5 3 1-6.3L3 8.9 9 8z'/%3E%3C/svg%3E");
}

.admin-sidebar .side-nav i.fa-exclamation-triangle {
  --lumica-admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l10 18H2zm-1 6h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E");
}

.comment-form .x-form-tools-post {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #fff;
  background: var(--bs-primary);
  border-radius: 50%;
}

.comment-form .x-form-tools-post:hover {
  color: #fff;
  background: var(--bs-primary);
  filter: brightness(0.95);
}

@media (min-width: 992px) {
  .comment-form .x-form-tools-post {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .comment-form textarea {
    padding-right: 154px;
  }

  html[dir="RTL"] .comment-form textarea {
    padding-right: 16px;
    padding-left: 154px;
  }
}

.reactions-container {
  display: none;
  max-width: calc(100vw - 16px);
  align-items: center;
  justify-content: center;
  padding: 6px;
  gap: 3px;
  overflow: visible;
  white-space: nowrap;
  z-index: 1060;
}

.reactions_item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  float: none !important;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transform-origin: center;
}

.reactions_item .emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  top: auto;
  right: auto;
  left: auto;
  transform: none;
  pointer-events: none;
}

.reactions_item .emoji img,
.reactions_item .emoji-fallback {
  width: 40px;
  height: 40px;
}

.reactions_item:hover {
  transform: scale(1.06);
}

.emoji-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}

.inline-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.inline-emoji .emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  top: auto;
  right: auto;
  left: auto;
  transform: none;
}

.inline-emoji .emoji img {
  width: 18px;
  height: 18px;
}

.inline-emoji .emoji-fallback,
.reaction-btn-icon .emoji-fallback,
.reactions-stats-item .emoji-fallback {
  width: 18px;
  height: 18px;
  font-size: 16px;
}

.reaction-btn {
  min-width: 48px;
}

.reaction-btn-icon {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
}

.reaction-btn-icon .inline-emoji,
.reaction-btn-icon .inline-emoji .emoji,
.reaction-btn-icon .inline-emoji .emoji img,
.reaction-btn-icon .inline-emoji .emoji-fallback {
  width: 22px;
  height: 22px;
}

.lumica-react-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
}

.reaction-btn-icon .lumica-react-fallback + i {
  margin-left: -19px;
  opacity: 0;
}

.lumica-post-menu-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--bs-body-color, #111);
  cursor: pointer;
}

.lumica-post-menu-toggle:hover,
.lumica-post-menu-toggle.show {
  background: rgba(0, 0, 0, 0.06);
  color: var(--bs-primary);
}

body.night-mode .lumica-post-menu-toggle {
  color: var(--body-color-dark, #c1d4e3);
}

.lumica-post-menu-toggle .fas {
  display: none;
}

.lumica-post-menu-dots {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.comment-actions .reaction-btn {
  gap: 4px;
}

.comment-actions .reaction-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-reactions-preview {
  display: inline-flex;
  max-width: calc(100% - 32px);
  align-items: center;
  gap: 10px;
  margin: 0 16px 10px;
  padding: 7px 10px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 8px;
  color: var(--bs-body-color, #1f2937);
  background: rgba(99, 102, 241, 0.055);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  vertical-align: top;
}

.post-reactions-preview:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.09);
}

body.night-mode .post-reactions-preview {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--body-color-dark, #c1d4e3);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.post-reactions-preview-avatars {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  direction: ltr;
}

.post-reactions-preview-avatar,
.post-reactions-preview-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: #2f3a4a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.13);
}

.post-reactions-preview-avatar:first-child,
.post-reactions-preview-more:first-child {
  margin-left: 0;
}

html[dir="RTL"] .post-reactions-preview-avatars {
  direction: rtl;
}

html[dir="RTL"] .post-reactions-preview-avatar,
html[dir="RTL"] .post-reactions-preview-more {
  margin-right: -8px;
  margin-left: 0;
}

html[dir="RTL"] .post-reactions-preview-avatar:first-child,
html[dir="RTL"] .post-reactions-preview-more:first-child {
  margin-right: 0;
}

body.night-mode .post-reactions-preview-avatar,
body.night-mode .post-reactions-preview-more {
  border-color: var(--card-dark-color, #1f2937);
  background: var(--card-dark-input, #111827);
  color: var(--body-color-dark, #c1d4e3);
}

.post-reactions-preview-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.post-reactions-preview-more {
  z-index: 1;
  background: #eef2ff;
  color: #3b4cca;
}

.post-reactions-preview-reaction {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
}

body.night-mode .post-reactions-preview-reaction {
  border-color: var(--card-dark-color, #1f2937);
  background: var(--card-dark-input, #111827);
}

.post-reactions-preview-reaction .inline-emoji,
.post-reactions-preview-reaction .inline-emoji .emoji,
.post-reactions-preview-reaction .inline-emoji .emoji img,
.post-reactions-preview-reaction .inline-emoji .emoji-fallback {
  width: 12px;
  height: 12px;
}

.post-reactions-preview-reaction .inline-emoji .emoji-fallback {
  font-size: 9px;
}

.post-reactions-preview-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.post-reactions-preview-text span,
.post-reactions-preview-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-reactions-preview-text span {
  max-width: 190px;
  color: var(--bs-secondary-color, #6b7280);
  font-size: 11px;
  font-weight: 600;
}

.post-reactions-preview-text strong {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.lumica-chatroom-message-bubble {
  background: var(--bs-light);
  white-space: pre-wrap;
  word-break: break-word;
}

.lumica-chatroom-message-bubble-mine {
  color: #0f172a;
  background: #dbeafe;
}

body.night-mode .lumica-chatroom-message-bubble {
  background: var(--card-dark-input);
}

body.night-mode .lumica-chatroom-message-bubble-mine {
  color: #dbeafe;
  background: #1e3a5f;
}

.reels-wrapper {
  position: relative;
  overflow: hidden;
}

.reel-container.hidden video {
  visibility: hidden;
}

.lumica-reel-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
}

.reel-video-container {
  background: #000;
}

.reel-actions .action-btn,
.reel-prev-btn,
.reel-next-btn {
  touch-action: manipulation;
}

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

.lumica-game-card {
  display: grid;
  min-height: 144px;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.lumica-game-card:hover {
  color: var(--bs-body-color);
  border-color: var(--bs-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.lumica-game-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #276149;
  font-weight: 800;
}

.lumica-game-card small {
  color: var(--bs-secondary-color);
  line-height: 1.6;
}

.lumica-recent-visits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lumica-recent-visit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.lumica-recent-visit:hover {
  color: var(--bs-primary);
}

.lumica-recent-visit img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
}

.lumica-recent-visit-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.lumica-recent-visit-body strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lumica-recent-visit-body small {
  color: var(--bs-secondary-color, #777);
  font-size: 12px;
}

@media (max-width: 767.98px) {
  .lumica-games-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .reels-wrapper {
    height: calc(100dvh - 66px);
    margin-right: -12px;
    margin-left: -12px;
    background: #000;
  }

  .reel-container,
  .reel-container > .position-relative,
  .reel-video-wrapper,
  .reel-video-container {
    width: 100%;
    height: 100%;
    min-height: calc(100dvh - 66px);
  }

  .reel-video-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .reel-comments-wrapper {
    position: fixed;
    inset: 12vh 0 0 0;
    z-index: 1050;
    border-radius: 12px 12px 0 0;
  }

  html[dir="RTL"] .reel-actions {
    right: auto;
    left: 10px;
  }

  .video-caption {
    right: 14px;
    left: 74px;
    max-height: 28vh;
    overflow: hidden;
  }

  html[dir="RTL"] .video-caption {
    right: 74px;
    left: 14px;
  }

  .reactions-container {
    display: none;
    flex-wrap: wrap;
    width: min(304px, calc(100vw - 16px));
    border-radius: 22px;
  }

  .reactions_item {
    width: 42px;
    height: 42px;
  }

  .reactions_item .emoji,
  .reactions_item .emoji img,
  .reactions_item .emoji-fallback {
    width: 36px;
    height: 36px;
  }

  .reactions_item:hover {
    transform: scale(1.04);
  }

  .post-reactions-preview {
    display: flex;
    width: auto;
    max-width: none;
    margin-right: 12px;
    margin-left: 12px;
  }

  .post-reactions-preview-text span {
    max-width: calc(100vw - 190px);
  }
}
