/*
Theme Name: D.O.M
Description: D.O.M theme.
Author: Amote
Version: 0.1
*/

/* ================================
   1. Design Tokens (colors, radius, type)
   ================================ */
:root {
  /* Backgrounds */
  --app-bg:            #FEFEFE;  /* основной фон */
  --app-bg-soft:       #F7F7F7;  /* слегка оттенённый фон */
  --app-surface:       #E8E8E8;  /* фон карточек */
  --app-surface-soft:  #F0F0F0;  /* мягкие блоки / инпуты */

  /* Text */
  --app-text-main:     #19191B;  /* основной текст */
  --app-text-muted:    #A9AAAD;  /* вторичный текст */
  --app-text-soft:     #A9AAAD;
  --app-text-invert:   #FEFEFE;  /* текст на акценте */

  /* Borders */
  --app-border-subtle: rgba(24, 25, 26, 0.12);
  --app-border-strong: #18191A;

  /* Accent */
  --app-primary:        #FFAE1E;
  --app-primary-soft:   rgba(255, 174, 30, 0.16);
  --app-primary-strong: #E09512;

  /* Status */
  --app-danger:        #EB1B1B;
  --app-danger-soft:   rgba(235, 27, 27, 0.12);

  --app-warning:       #FFD812;
  --app-warning-soft:  rgba(255, 216, 18, 0.18);

  --app-success:       #1CBB00;
  --app-success-soft:  rgba(28, 187, 0, 0.16);

  /* Buttons */
  --btn-soft-bg:       #FFFBF4;
  --btn-soft-text:     #FF8811;

  --btn-grad-start:    #FFB617;
  --btn-grad-end:      #FF8000;
  --btn-grad-text:     #F8F8F8;

  /* Shadows */
  --app-shadow-soft:   0 10px 30px rgba(0, 0, 0, 0.12);

  /* Radius */
  --app-radius-xs:     8px;
  --app-radius-sm:     12px;
  --app-radius-md:     16px;
  --app-radius-lg:     22px;
  --app-radius-pill:   999px;

  /* Layout */
  --app-page-max-width: 480px;
  --app-page-padding-x: 16px;
  --app-page-padding-y: 16px;

  /* Typography: fonts */
  --app-font-text: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
                   "Segoe UI", Roboto, sans-serif;
  --app-font-heading: "Constantia", "Georgia", "Times New Roman", serif;
  --app-font-family: var(--app-font-text);

  /* Typography: sizes */
  --fs-h1: 2rem;       /* 32px */
  --fs-h2: 1.5rem;     /* 24px */
  --fs-h3: 1.25rem;    /* 20px */

  --fs-body: 1rem;         /* 16px */
  --fs-body-small: .875rem;/* 14px */
  --fs-caption: .75rem;    /* 12px */

  --fs-button: 1rem;       /* 16px */
  --fs-tab-sm: .75rem;     /* 12px */
  --fs-tab-md: .875rem;    /* 14px */

  /* Typography: weights & line-height */
  --fw-body-regular: 400;
  --fw-body-medium:  500;
  --fw-heading:      600;

  --app-line-height-tight: 1.2;
  --app-line-height-snug:  1.35;
  --app-line-height-normal:1.5;
}

/* ================================
   2. Reset / Base
   ================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--app-font-text);
  font-size: var(--fs-body);
  font-weight: var(--fw-body-regular);
  line-height: var(--app-line-height-normal);
  background: var(--app-bg);
  color: var(--app-text-main);
}

/* Links */
a {
  color: var(--app-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Images */
img {
  max-width: 100%;
  display: block;
}

/* Lists */
ul, ol {
  margin: 0;
  padding-left: 1.2rem;
}

/* ================================
   3. Typography
   ================================ */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.35em;
  font-family: var(--app-font-heading);
  font-weight: var(--fw-heading);
  line-height: var(--app-line-height-snug);
  color: var(--app-text-main);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-body);        }
h5 { font-size: var(--fs-body-small);  }
h6 {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: .08em;
}

p {
  margin: 0 0 0.75em;
  color: var(--app-text-main);
}

/* Utilities based on Figma naming */

.text-body {
  font-size: var(--fs-body);
  font-weight: var(--fw-body-regular);
}

.text-body-medium {
  font-size: var(--fs-body);
  font-weight: var(--fw-body-medium);
}

.text-small {
  font-size: var(--fs-body-small);
  font-weight: var(--fw-body-regular);
}

.text-caption {
  font-size: var(--fs-caption);
  font-weight: var(--fw-body-regular);
  color: var(--app-text-muted);
}

/* ================================
   4. Layout primitives
   ================================ */

/* Основной контейнер "экрана" (страницы приложения) */
.app-page {
  min-height: 100vh;
  max-width: var(--app-page-max-width);
  margin: 0 auto;
  padding: var(--app-page-padding-y) var(--app-page-padding-x) 88px;
  display: flex;
  flex-direction: column;
  background: var(--app-bg);
}

/* Верхняя панель (header экрана) */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

/* Контентная область */
.app-page-content {
  flex: 1;
}

/* Секция в контенте */
.app-section {
  margin-bottom: 16px;
}

/* Карточка */
.app-card {
  background: var(--app-surface);
  border-radius: var(--app-radius-md);
  padding: 14px 16px;
  box-shadow: var(--app-shadow-soft);
  border: 1px solid var(--app-border-subtle);
}

/* Мягкая карточка без сильной тени */
.app-card-soft {
  background: var(--app-surface-soft);
  border-radius: var(--app-radius-md);
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Вертикальные стеки */
.stack-xs > * + * { margin-top: 4px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 16px; }

/* Горизонтальный кластер */
.cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================================
   5. Buttons
   ================================ */

.btn,
button,
.input-button {
  font-family: var(--app-font-text);
  font-size: var(--fs-button);         /* 16px */
  font-weight: var(--fw-body-regular);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--app-radius-pill); /* таблетки по умолчанию */
  background: transparent;
  color: var(--app-text-main);
  white-space: nowrap;
  transition:
    background-color .25s ease,
    background-image .25s ease,
    color .25s ease,
    box-shadow .2s ease,
    transform .08s ease,
    background-position .4s ease;
}

/* размеры: чем больше кнопка, тем больше радиус */
.btn-sm {
  padding: 8px 16px;
  border-radius: 20px;
}

.btn-md {
  padding: 10px 22px;
  border-radius: 24px;
}

.btn-lg {
  padding: 14px 28px;
  border-radius: 32px;
}

.btn-block {
  width: 100%;
}

.btn-icon-only {
  padding: 10px;
  width: 40px;
  height: 40px;
  border-radius: var(--app-radius-pill);
}

/* Type 1: soft / light accent */
.btn-soft {
  background-color: var(--btn-soft-bg);
  color: var(--btn-soft-text);
  box-shadow: 0 0 0 1px rgba(255, 136, 17, 0.15);
}

.btn-soft:hover {
  background-color: var(--btn-soft-bg);
  color: var(--btn-soft-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.btn-soft:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Type 2: main gradient CTA */
.btn-primary {
  background-image: linear-gradient(
    90deg,
    var(--btn-grad-start) 0%,
    var(--btn-grad-end) 100%
  );
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: var(--btn-grad-text);
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.35);
}

.btn-primary:hover {
  background-image: linear-gradient(
    90deg,
    var(--btn-grad-end) 0%,
    var(--btn-grad-end) 100%
  );
  background-position: 100% 0%;
  color: var(--btn-grad-text);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ================================
   6. Tags / Chips / Pills
   ================================ */

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--app-radius-pill);
  font-size: var(--fs-caption);
  line-height: 1.2;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--app-text-muted);
  background: rgba(0, 0, 0, 0.02);
}

.tag-primary {
  border-color: rgba(255, 174, 30, 0.6);
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.tag-secondary {
  border-color: rgba(24, 25, 26, 0.18);
  background: rgba(0, 0, 0, 0.02);
  color: var(--app-text-main);
}

/* ================================
   7. Form Fields
   ================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.field-label {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-text-soft);
}

.field-control {
  position: relative;
}

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  border-radius: var(--app-radius-sm);
  border: 1px solid var(--app-border-subtle);
  background: rgba(240, 240, 240, 0.9);
  color: var(--app-text-main);
  font-family: var(--app-font-text);
  font-size: var(--fs-body-small);
  padding: 9px 11px;
  outline: none;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background-color .15s ease;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--app-text-soft);
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 1px rgba(255, 174, 30, 0.35);
  background: #ffffff;
}

.field-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Error / success states */
.field-error {
  font-size: var(--fs-caption);
  color: var(--app-danger);
}

.field--invalid .field-input,
.field--invalid .field-textarea,
.field--invalid .field-select {
  border-color: var(--app-danger);
}

.field--success .field-input,
.field--success .field-textarea,
.field--success .field-select {
  border-color: var(--app-success);
}

/* ================================
   8. Bottom Navigation (tabbar)
   ================================ */

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-page-max-width);
  background: rgba(248, 248, 248, 0.98);
  backdrop-filter: blur(18px);
  border-radius: 18px 18px 0 0;
  border-top: 1px solid rgba(24, 25, 26, 0.08);
  padding: 8px 14px 12px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  z-index: 20;
}

.tabbar-btn {
  flex: 1;
  border-radius: var(--app-radius-pill);
  border: none;
  background: transparent;
  color: var(--app-text-muted);
  font-size: var(--fs-tab-sm);
  font-weight: var(--fw-body-medium);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tabbar-btn-icon {
  font-size: 1.1rem;
}

.tabbar-btn-active {
  background: rgba(255, 174, 30, 0.14);
  color: var(--app-primary);
}

/* ================================
   9. Helpers
   ================================ */

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-xs { margin-top: 4px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 12px; }
.mt-lg { margin-top: 16px; }

.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 12px; }
.mb-lg { margin-bottom: 16px; }

/* ================================
   Auth screens (D.O.M style)
   ================================ */

body.auth-page {
  background: #FF8000; /* запас на случай, если что-то не отрисуется */
}

/* “корпус телефона” */
.auth-frame {
  min-height: 100vh;
  max-width: 390px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #FF8000;
}

/* Верхний блок с градиентом и закруглением снизу */
.auth-top {
  position: relative;
  height: 260px;
  background: linear-gradient(
    135deg,
    var(--btn-grad-start),
    var(--btn-grad-end)
  );
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* Внутренние отступы сверху, круглая “кнопка” слева */
.auth-top-inner {
  height: 100%;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.auth-logo-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid rgba(248,248,248,0.9);
  background: transparent;
}

/* Большой логотип по центру (для onboarding) */
.auth-logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -35%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-svg {
  width: 120px;
  height: auto;
}

/* Нижняя белая панель */
.auth-bottom {
  flex: 1;
  background: transparent;
  margin-top: -40px; /* белая панель наезжает на градиент */
  padding: 0 16px 24px 16px;
  display: flex;
  align-items: stretch;
}

.auth-panel {
  background: #FEFEFE;
  border-radius: 32px;
  padding: 28px 22px 32px;
  width: 100%;
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
}

/* Заголовки/текст внутри панели */
.auth-title {
  font-family: var(--app-font-heading);
  font-size: var(--fs-h2);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: var(--fs-body-small);
  color: var(--app-text-muted);
  margin-bottom: 20px;
}

/* Обёртка формы логина */
.auth-form {
  margin-bottom: 20px;
}

/* Стилизация wp_login_form */
.auth-form form p {
  margin-bottom: 12px;
}

.auth-form label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-text-soft);
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--app-border-subtle);
  background: #FFFBF4;
  color: var(--app-text-main);
  font-family: var(--app-font-text);
  font-size: var(--fs-body-small);
  padding: 10px 14px;
  outline: none;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background-color .15s ease;
}

.auth-form input[type="text"]::placeholder,
.auth-form input[type="password"]::placeholder {
  color: var(--app-text-muted);
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus {
  border-color: var(--btn-soft-text);
  box-shadow: 0 0 0 1px rgba(255, 136, 17, 0.4);
  background: #FFFFFF;
}

.auth-form .forgetmenot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-caption);
  color: var(--app-text-soft);
}

.auth-form .forgetmenot input[type="checkbox"] {
  margin: 0;
}

.auth-form .forgetmenot label {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

/* Кнопка Log in */
.auth-form input[type="submit"] {
  width: 100%;
  margin-top: 8px;
  border-radius: 999px;
  border: none;
  font-family: var(--app-font-text);
  font-size: var(--fs-button);
  font-weight: var(--fw-body-regular);
  padding: 10px 20px;
  cursor: pointer;
  background-image: linear-gradient(
    90deg,
    var(--btn-grad-start) 0%,
    var(--btn-grad-end) 100%
  );
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: var(--btn-grad-text);
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.35);
  transition:
    background-image .25s ease,
    background-position .4s ease,
    transform .08s ease,
    box-shadow .2s.ease;
}

.auth-form input[type="submit"]:hover {
  background-image: linear-gradient(
    90deg,
    var(--btn-grad-end) 0%,
    var(--btn-grad-end) 100%
  );
  background-position: 100% 0%;
}

.auth-form input[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Блок соцсетей */
.auth-alt {
  margin-top: 8px;
}

.auth-social-row {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.auth-social-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--app-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-caption);
  background: #FFFFFF;
}

/* Центровка заголовка на прочих auth-страницах */
.auth-page .auth-panel .text-center {
  text-align: center;
}
/* === Дополнение для соответствия Figma === */

/* Убираем желтый фон у инпутов на странице входа, делаем рамку */
.auth-form input[type="text"],
.auth-form input[type="password"] {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px; /* Чуть меньше скругление, как на макете */
  padding: 14px;
  font-size: 16px;
}

/* Активное состояние */
.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 4px var(--app-primary-soft);
}

/* Кнопка "Назад" (стрелочка) */
.auth-logo-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

/* =========================
   CHAKLOON PROFILE PAGE
   exact layout for DOM
========================= */

.profile-page {
  min-height: 100vh;
  padding: 32px 0 140px;
}

.profile-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.profile-header-card {
  background: #ffffff;
  border: 1px solid #e7edf2;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.04);
  margin-bottom: 24px;
}

.profile-header-card__top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-header-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.profile-header-card__content {
  flex: 1;
  min-width: 0;
}

.profile-header-card__name {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.profile-header-card__username {
  margin-top: 6px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.profile-header-card__stats {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.profile-header-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-header-card__stat strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  color: #111827;
}

.profile-header-card__stat span {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

/* feed */

.profile-posts {
  margin-top: 8px;
}

.app-feed-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-action-btn {
  border: 0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
}

.post-action-btn:hover {
  background: #eef2f7;
}

.post-action-btn.danger {
  color: #dc2626;
}

.feed-preview-card__media {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  border-radius: 18px;
  overflow: hidden;
}

.feed-preview-card__media.media-count-1 {
  display: block;
}

.feed-preview-card__media.media-count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feed-preview-card__media.media-count-3,
.feed-preview-card__media.media-count-4,
.feed-preview-card__media.media-count-5,
.feed-preview-card__media.media-count-6 {
  grid-template-columns: repeat(2, 1fr);
}

.feed-preview-card__media-item {
  background: #f3f4f6;
  overflow: hidden;
}

.feed-preview-card__media-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.feed-preview-card__media.media-count-1 .feed-preview-card__media-item img {
  height: auto;
  max-height: 580px;
  object-fit: contain;
  background: #f8fafc;
}

.feed-empty {
  background: #ffffff;
  border: 1px solid #e7edf2;
  border-radius: 22px;
  padding: 32px;
  text-align: center;
  color: #6b7280;
  font-weight: 700;
}

/* load more */

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.btn.btn-light {
  height: 44px;
  padding: 0 22px;
  border: 1px solid #dbe3ea;
  background: #ffffff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
}

.btn.btn-light:hover {
  background: #f8fafc;
}

@media (max-width: 768px) {
  .profile-page {
    padding: 18px 0 110px;
  }

  .profile-header-card {
    padding: 18px;
    border-radius: 20px;
  }

  .profile-header-card__top {
    gap: 14px;
  }

  .profile-header-card__avatar {
    width: 78px;
    height: 78px;
  }

  .profile-header-card__name {
    font-size: 24px;
  }

  .profile-header-card__stats {
    gap: 14px;
  }

  .feed-preview-card__media-item img {
    height: 180px;
  }

  .feed-preview-card__media.media-count-1 .feed-preview-card__media-item img {
    max-height: 420px;
  }
}

.profile-page {
  min-height: calc(100vh - 40px);
  padding: 14px 0 40px;
  box-sizing: border-box;
}

.profile-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.profile-header-card {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(69, 164, 225, 0.20);
}

.profile-header-card__top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.profile-header-card__avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 128px;
}

.profile-header-card__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8px;
}

.profile-header-card__name {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: #111;
}

.profile-header-card__username {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.2;
  color: #5e646d;
}

.profile-header-card__stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}

.profile-header-card__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.profile-header-card__stat strong {
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: #111;
}

.profile-header-card__stat span {
  font-size: 14px;
  line-height: 1.2;
  color: #3f3f46;
}

.profile-posts {
  margin-top: 0;
}

.app-feed-list {
  width: 100%;
}

@media (max-width: 767px) {
  .profile-page {
    padding: 72px 15px 92px !important;
  }

  .profile-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .profile-header-card {
    padding: 0 0 14px;
  }

  .profile-header-card__top {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .profile-header-card__avatar {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border-radius: 50%;
    object-fit: cover;
  }

  .profile-header-card__content {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0;
  }

  .profile-header-card__name {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 700;
  }

  .profile-header-card__username {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.15;
    color: #5e646d;
  }

  .profile-header-card__stats {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    flex-wrap: wrap;
  }

  .profile-header-card__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
  }
}

.dom-post-edit-modal[hidden] {
  display: none !important;
}

.dom-post-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dom-post-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.dom-post-edit-box {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100vw - 32px));
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.dom-post-edit-box h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.dom-post-edit-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dom-post-edit-textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  font-family: inherit;
}

.dom-post-edit-textarea:focus {
  border-color: #45a4e1;
  box-shadow: 0 0 0 3px rgba(69, 164, 225, 0.15);
}

.dom-post-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.dom-post-edit-cancel,
.dom-post-edit-save {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.dom-post-edit-cancel {
  background: #f3f4f6;
  color: #111827;
}

.dom-post-edit-save {
  background: #45a4e1;
  color: #ffffff;
}

.dom-post-edit-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.edit-post-modal[hidden] {
  display: none !important;
}

.edit-post-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.edit-post-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.edit-post-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 80px auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .14);
  overflow: hidden;
}

.edit-post-modal__header {
  padding: 14px 16px;
  border-bottom: 1px solid #e8eef4;
}

.edit-post-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.edit-post-modal__body {
  padding: 14px 14px 10px;
}

.edit-post-modal__author {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.edit-post-modal__author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.edit-post-modal__author-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.edit-post-modal__author-username {
  margin-top: 2px;
  font-size: 12px;
  color: #6f757d;
}

.edit-post-modal__textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  border: 1px solid #d7dfe6;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  font-size: 13px;
  line-height: 1.55;
  color: #222;
  padding: 14px 12px;
  box-sizing: border-box;
  font-family: inherit;
}

.edit-post-modal__media {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.edit-post-modal__media-item {
  position: relative;
  width: 182px;
  height: 202px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f5;
  flex: 0 0 182px;
}

.edit-post-modal__media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edit-post-modal__media-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #555;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 13px;
}

.edit-post-modal__add-photo-row {
  margin-top: 10px;
}

.edit-post-modal__add-photo {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7dfe6;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: #222;
  cursor: pointer;
  background: #fff;
}

.edit-post-modal__add-photo-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.edit-post-modal__add-photo-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.edit-post-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 14px 14px;
  border-top: 1px solid #e8eef4;
}

.edit-post-modal__btn {
  min-width: 72px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  padding: 0 18px;
  cursor: pointer;
}

.edit-post-modal__btn--cancel {
  border: 1px solid #FF8000;
  background: #fff;
  color: #FF8000;
}

.edit-post-modal__btn--save {
  border: 0;
  background: #FF8000;
  color: #fff;
  box-shadow: 0 2px 8px rgba(69, 164, 225, .22);
}

@media (max-width: 640px) {
  .edit-post-modal__dialog {
    max-width: calc(100% - 24px);
    margin-top: 64px;
  }

  .edit-post-modal__media-item {
    width: calc(50% - 3px);
    height: 180px;
    flex: 0 0 calc(50% - 3px);
  }
}

.post-action-btn {
  border: 0;
  background: transparent;
  color: #6f757d;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.post-action-btn.danger {
  color: #c62828;
}

.delete-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.delete-confirm-modal[hidden] {
  display: none !important;
}

.delete-confirm-modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.delete-confirm-modal__dialog {
  position: absolute;
  z-index: 2;
  pointer-events: auto;
}

#domDeleteConfirmOk,
#domDeleteConfirmCancel {
  pointer-events: auto;
  cursor: pointer;
}

.delete-confirm-modal {
  pointer-events: auto !important;
  z-index: 999999 !important;
}

.delete-confirm-modal__dialog {
  pointer-events: auto !important;
  z-index: 2 !important;
}

.delete-confirm-modal__actions button {
  pointer-events: auto !important;
  position: relative;
  z-index: 3;
}

.delete-confirm-modal[hidden] {
  display: none !important;
}

.delete-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-confirm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(2px);
}

.delete-confirm-modal__dialog {
  position: relative;
  width: calc(100% - 32px);
  max-width: 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  text-align: center;
  z-index: 2;
}

.delete-confirm-modal__dialog h3 {
  margin: 0;
  padding: 22px 20px 8px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.delete-confirm-modal__dialog p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #737983;
}

.delete-confirm-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #edf1f5;
}

.delete-confirm-modal__actions button {
  height: 52px;
  border: 0;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

#domDeleteConfirmCancel {
  color: #5f6670;
}

#domDeleteConfirmOk {
  color: #111;
  background: #f5fbff;
  font-weight: 600;
}

#domDeleteConfirmOk:hover {
  background: #eaf6fe;
}

.delete-confirm-modal__actions button + button {
  border-left: 1px solid #edf1f5;
}

/* =========================
   SOCIAL POSTS — PROFILE
========================= */

.dom-social-profile-posts {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #E7ECF1;
}

.dom-social-profile-posts-head {
    margin-bottom: 16px;
}

.dom-social-profile-posts-head span {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}


.dom-social-feed {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dom-social-empty {
    padding: 28px;
    border: 1px dashed #D8E0E8;
    border-radius: 14px;
    text-align: center;
    color: #98A2B3;
    font-size: 14px;
    background: #FAFCFE;
}

.dom-social-profile-posts--desktop {
    max-width: 100%;
}

/* mobile */

@media (max-width: 768px) {
    .dom-social-profile-posts-head span {
        font-size: 16px;
    }
}

/* =========================
   SOCIAL POST CARD
========================= */

.dom-social-post {
    position: relative;
    padding: 16px 0;
    border-bottom: 1px solid #E7ECF1;
}

.dom-social-post-meta {
    flex: 1;
    min-width: 0;
}

.dom-social-post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dom-social-views {
    font-size: 13px;
    color: #6B7280;
}

.dom-social-post-menu-btn {
    border: 0;
    background: transparent;
    color: #8A94A6;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
}

.dom-social-post-menu {
    position: absolute;
    top: 42px;
    right: 0;
    width: 140px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    overflow: hidden;
    z-index: 10;
}

.dom-social-post-menu button {
    width: 100%;
    height: 36px;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 0 14px;
    font-size: 13px;
    cursor: pointer;
}

.dom-social-post-menu button:hover {
    background: #FFF7EA;
}


/* =========================
   SOCIAL EDIT MODAL
========================= */

.dom-social-edit-modal[hidden] {
    display: none !important;
}

.dom-social-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.dom-social-edit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.dom-social-edit-panel {
    position: relative;
    width: 578px;
    max-width: calc(100vw - 24px);
    margin: 76px auto 0;
    background: #FFFEFC;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,.35);
    overflow: hidden;
}

.dom-social-edit-head {
    height: 52px;
    padding: 16px 20px;
    border-bottom: 1px solid #E7ECF1;
    font-size: 14px;
    color: #0C0600;
}

.dom-social-edit-body {
    padding: 16px;
}

.dom-social-edit-textarea {
    width: 100%;
    min-height: 180px;
    border: 1px solid #FFDFC0;
    border-radius: 12px;
    background: #FFF7EA;
    padding: 14px 16px;
    resize: vertical;
    outline: none;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #0C0600;
}

.dom-social-edit-foot {
    height: 58px;
    padding: 0 16px;
    border-top: 1px solid #E7ECF1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.dom-social-edit-cancel,
.dom-social-edit-save {
    width: 120px;
    min-height: 38px;
    border-radius: 40px;
    padding: 0 20px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.dom-social-edit-cancel {
    background: #FFFFFF;
    border: 1px solid rgba(12, 6, 0, 0.8);
    color: rgba(12, 6, 0, 0.8);
}

.dom-social-edit-save {
    border: 0;
    background: linear-gradient(84.51deg, #FFB617 0%, #FF8000 100%);
    color: #FFFEFC;
}

@media (max-width: 768px) {
    .dom-social-edit-panel {
        width: calc(100vw - 32px);
        margin-top: 80px;
    }

    .dom-social-edit-foot {
        justify-content: center;
    }

    .dom-social-edit-cancel,
    .dom-social-edit-save {
        width: 120px;
    }
}

.dom-social-edit-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.dom-social-edit-media img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.dom-social-edit-media-item {
    position: relative;
}

.dom-social-edit-media-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.dom-social-edit-media-item button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(12, 6, 0, 0.72);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.dom-social-edit-add-photo {
    margin-top: 12px;
    width: 100%;
    height: 40px;
    border: 1px dashed #FF8811;
    border-radius: 12px;
    background: #FFF7EA;
    color: #FF8811;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.dom-social-profile-tabs {
    font-size: 16px;
    color: #111;
}

.dom-social-profile-posts--desktop {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.dom-social-profile-posts--desktop .dom-social-profile-posts-head {
    display: none;
}

.dom-social-search-page {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.dom-social-users-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dom-social-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dom-social-user-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    background: #E5E7EB;
    flex: 0 0 58px;
}

.dom-social-user-info {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: #111827;
    display: flex;
    flex-direction: column;
}

.dom-social-user-info strong {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
}

.dom-social-follow-btn {
    min-width: 105px;
    height: 36px;
    border: 1px solid #FFE1C2;
    border-radius: 12px;
    background: #FFFFFF;
    color: #FF7900;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.dom-social-follow-btn.is-following {
    background: #FFF1E3;
    border-color: #FFF1E3;
}

@media (max-width: 1024px) {
  #tab-search.tab-view {
    overflow-y: auto;
  }

  #tab-search.tab-view.active {
    display: flex;
  }

  #tab-search .dom-social-search-page {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 1024px) {
  #tab-user-profile.tab-view {
    overflow-y: auto;
  }

  #tab-user-profile.tab-view.active {
    display: flex;
  }

  #tab-user-profile .dom-desktop-profile-wrap {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 1024px) {
  #tab-profile .profile-hero,
  #tab-profile .profile-form {
    display: none !important;
  }

  .dom-social-profile-posts--mobile {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

.dom-social-feed[data-user-profile-posts],
.dom-social-feed[data-mobile-user-profile-posts] {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dom-social-feed[data-user-profile-posts] .dom-social-post,
.dom-social-feed[data-mobile-user-profile-posts] .dom-social-post {
  padding: 0px 0 18px;
  border-bottom: 1px solid #E5EAF0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.dom-social-feed[data-user-profile-posts] .dom-social-post-meta,
.dom-social-feed[data-mobile-user-profile-posts] .dom-social-post-meta {
  min-width: 0;
}

@media (max-width: 1024px) {
  #tab-user-profile .dom-social-post {
    padding-left: 0;
    padding-right: 0;
  }
}

.dom-home-social-feed {
  width: min(100%, 680px);
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
}

.dom-events-archive-toggle {
  width: 100%;
  min-height: 42px;
  border: 1px solid #FFDFC0;
  border-radius: 40px;
  background: #FFF7EA;
  color: #0C0600;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  cursor: pointer;
  margin: 16px 0;
}

.dom-events-archive-toggle--desktop {
  width: 260px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dom-events-archive-list {
  opacity: .72;
}

.is-hidden {
  display: none !important;
}

.alert-overlay-common {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 6, 0, 0.12);
  backdrop-filter: blur(1px);
}

.alert-overlay-common.visible {
  display: flex !important;
}

.alert-card-common {
  width: 280px;
  min-height: 132px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(12, 6, 0, 0.16);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.alert-icon-common {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFF1DF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.alert-icon-common svg {
  width: 24px;
  height: 24px;
}

.alert-desc-common {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 18px;
  color: #0C0600;
  font-weight: 400;
}

.alert-actions-common {
  display: flex;
  justify-content: center;
}

.btn-alert-ok {
  border: 0;
  min-width: 96px;
  height: 32px;
  border-radius: 9px;
  background: #FF8811;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(255, 136, 17, 0.28);
}

@media (max-width: 1024px) {
  .dom-desktop-topbar {
    display: none;
  }
}

.dom-social-post-avatar-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 50%;
  flex: 0 0 auto;
  line-height: 0;
}

.dom-social-post-avatar-btn .dom-social-post-avatar {
  display: block;
}

@media (min-width: 1025px) {
  .app-screen:has(#tab-mentor-sacraments.active),
  .app-screen:has(#tab-mentor-booking.active) {
    display: block !important;
    max-width: 520px;
    margin-left: 420px;
    padding-top: 40px;
  }

  .dom-desktop-shell:has(~ .app-screen #tab-mentor-sacraments.active),
  .dom-desktop-shell:has(~ .app-screen #tab-mentor-booking.active) {
    display: none !important;
  }

  #tab-mentor-sacraments.active,
  #tab-mentor-booking.active {
    display: block !important;
  }
}

.dom-desktop-chat-wrap {
  height: 100vh;
  display: grid;
  grid-template-rows: 82px 1fr 72px;
  background: #f8fafc;
}

.dom-desktop-chat-header {
  height: 82px;
  display: flex;
  align-items: center;
  padding: 0 44px;
  background: #fff;
  border-bottom: 1px solid #e7ecf1;
}

.dom-desktop-chat-header-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dom-desktop-chat-back {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dom-desktop-chat-header-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.dom-desktop-chat-header-name {
  font-size: 18px;
  font-weight: 700;
  color: #0c0600;
  line-height: 22px;
}

.dom-desktop-chat-header-status {
  font-size: 13px;
  line-height: 18px;
}

.dom-desktop-chat-header-status.online {
  color: #27c46b;
}

.dom-desktop-chat-header-status.offline {
  color: #ff3b30;
}

.dom-desktop-chat-body {
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.dom-desktop-chat-thread {
  height: 100%;
  overflow-y: auto;
  padding: 120px 44px 34px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.dom-desktop-chat-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.dom-desktop-chat-row.left {
  justify-content: flex-start;
}

.dom-desktop-chat-row.right {
  justify-content: flex-end;
}

.dom-desktop-chat-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 30px;
}

.dom-desktop-chat-bubble {
  max-width: 520px;
  min-width: 120px;
  padding: 14px 18px 16px;
  border-radius: 14px;
  position: relative;
}

.dom-desktop-chat-row.left .dom-desktop-chat-bubble {
  background: #fff;
  border: 1px solid #e7ecf1;
  color: #53627a;
}

.dom-desktop-chat-row.right .dom-desktop-chat-bubble {
  background: #ff8811;
  color: #fff;
}

.dom-desktop-chat-bubble-text {
  margin: 0;
  font-size: 14px;
  line-height: 19px;
  color: inherit;
}

.dom-desktop-chat-time {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 12px;
  text-align: right;
  opacity: 0.8;
  color: inherit;
}

.dom-desktop-chat-composer {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 14px;
  align-items: center;
  padding: 12px 44px;
  background: #f8fafc;
}

.dom-desktop-chat-input-wrap {
  height: 46px;
  border: 1px solid #dbe3ec;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 18px;
}

.dom-desktop-chat-input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #0c0600;
}

.dom-desktop-chat-input::placeholder {
  color: #8a94a6;
}

.dom-desktop-chat-send {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dom-desktop-chat-send svg {
  width: 46px;
  height: 46px;
  display: block;
}

.dom-desktop-view[data-desktop-view="mentor-chat"] {
  padding: 0 !important;
}

.dom-desktop-view[data-desktop-view="mentor-chat"].is-active {
  display: block !important;
}

body.dom-alert-open .dom-desktop-topbar,
body.dom-alert-open .dom-desktop-sidebar,
body.dom-alert-open .dom-mobile-bottom-nav,
body.dom-alert-open .mobile-bottom-nav,
body.dom-alert-open .bottom-nav,
body.dom-alert-open .app-bottom-nav,
body.dom-alert-open .app-tabbar {
  z-index: 1 !important;
}

body.dom-alert-open .alert-overlay-common.visible {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(245, 245, 245, 0.82) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
}

body.dom-alert-open .alert-overlay-common.visible::before {
  display: none !important;
}

body.dom-alert-open .alert-card-common {
  position: relative !important;
  z-index: 2147483001 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.dom-alert-open #app-sidebar,
body.dom-alert-open .app-sidebar {
  z-index: 1 !important;
}

.dom-public-user-posts {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dom-public-user-posts:has(.dom-public-profile-empty-text:only-child) {
  min-height: 260px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dom-public-profile-empty-text {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgba(31, 31, 31, 0.65) !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  #tab-user-profile .dom-public-user-profile {
    padding: 24px 8px 0 !important;
  }
}

#main-tabs-nav {
  display: flex !important;
}

body:not(.dom-events-tabs-visible) #main-tabs-nav {
  display: none !important;
}

.dom-desktop-mentor-search-item[data-open-user-profile],
.mentor-item[data-open-user-profile] {
  cursor: pointer !important;
}

.dom-desktop-mentor-search-item[data-open-user-profile]:hover,
.mentor-item[data-open-user-profile]:hover {
  background: rgba(255, 128, 0, .04) !important;
}

.dom-social-search-page .ckln-user-search {
  margin-bottom: 22px;
}

@media (max-width: 1024px) {
  #tab-search .ckln-user-search {
    margin-bottom: 18px;
  }
}

/* CKLN post card like icon switch */
.ckln-post-card .ckln-post-card__like-icon {
  flex: 0 0 20px !important;
}

.ckln-post-card .ckln-post-card__like-icon--filled {
  display: none !important;
}

.ckln-post-card .ckln-post-card__like-icon--empty {
  display: block !important;
}

.ckln-post-card .ckln-post-card__like.is-liked .ckln-post-card__like-icon--empty,
.ckln-post-card .ckln-post-card__like.active .ckln-post-card__like-icon--empty {
  display: none !important;
}

.ckln-post-card .ckln-post-card__like.is-liked .ckln-post-card__like-icon--filled,
.ckln-post-card .ckln-post-card__like.active .ckln-post-card__like-icon--filled {
  display: block !important;
}

@media (max-width: 1024px) {
  .app-content .tab-view {
    display: none !important;
  }

  .app-content .tab-view.active {
    display: block !important;
  }
}
.app-screen.dom-has-mentor [data-dom-no-mentor-home-block] {
  display: none !important;
}

.ckln-stream-card{
  margin: 10px 0 18px 0;
}

.post-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}

.post-media-grid img {
  width: 100%;
  display: block;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.post-media-grid img:only-child {
  grid-column: span 3;
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 75vh;
}

/* Post actions menu alignment */
.ckln-post-card__menu,
.dom-social-post-menu,
[data-post-menu-box] {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

/* Menu buttons */
.ckln-post-card__menu button,
.dom-social-post-menu button,
[data-post-menu-box] button {
  width: 100% !important;
  justify-content: flex-start !important;
  text-align: left !important;

  padding: 12px 18px !important;
  gap: 12px !important;

  border-radius: 0 !important;
  background: transparent !important;
}

/* Hover на всю ширину */
.ckln-post-card__menu button:hover,
.dom-social-post-menu button:hover,
[data-post-menu-box] button:hover {
  background: rgba(255, 136, 17, 0.10) !important;
}

/* Щоб перший/останній пункт мали нормальні радіуси по краях меню */
.ckln-post-card__menu button:first-child,
.dom-social-post-menu button:first-child,
[data-post-menu-box] button:first-child {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.ckln-post-card__menu button:last-child,
.dom-social-post-menu button:last-child,
[data-post-menu-box] button:last-child {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* Іконки рівно зліва */
.ckln-post-card__menu button svg,
.dom-social-post-menu button svg,
[data-post-menu-box] button svg {
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
}

.ckln-post-card__menu-box {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.ckln-post-card__menu-box button {
  width: 100% !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 12px 18px !important;
  gap: 12px !important;
  border-radius: 0 !important;
}

.ckln-post-card__menu-box button:hover {
  background: rgba(255, 136, 17, 0.10) !important;
}

.ckln-priest-profile-hero{
  background: rgba(245, 247, 251, 0.55) !important
}

.ckln-priest-profile-hero__card[data-ckln-priest-action="note"],
.ckln-priest-profile-hero__card[data-ckln-priest-action="candle"] {
  pointer-events: none !important;
  cursor: default !important;
}

.ckln-priest-profile-hero__card[data-ckln-priest-action="note"]:hover,
.ckln-priest-profile-hero__card[data-ckln-priest-action="candle"]:hover {
  background: inherit !important;
  color: inherit !important;
  box-shadow: none !important;
  transform: none !important;
}

.ckln-priest-profile-hero__top{
  padding-top: 10px;
}

.ckln-priest-profile-hero__tabs{
  padding-bottom: 15px;
}

.ckln-priest-profile-hero__stat strong{
  padding-right: 3px;
}

.ckln-priest-profile-hero__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

button.ckln-priest-profile-hero__stat {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
}

button.ckln-priest-profile-hero__stat:hover {
  background: transparent;
  color: inherit;
}

@media (max-width: 1024px) {
  body.dom-mobile-mentor-profile-open #main-tabs-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  html,
  body {
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .app-screen {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  .app-content {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  #tab-all.tab-view.active,
  #tab-feed.tab-view.active,
  #tab-prayer.tab-view.active {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    box-sizing: border-box !important;
    padding-bottom: 130px !important;
  }
}

@media (max-width: 767px) {
  #tab-all #mobile-events-all-empty {
    display: none !important;
  }

  #tab-all #mobile-events-all-empty:not(.is-hidden) {
    display: none !important;
  }
}




.ckln-sacrament-post-card__name {
  width: auto !important;
  max-width: none !important;
}