/* TurkMod mobile polish overrides */

@media (max-width: 767.98px) {
  html[data-public-theme="turkmod"] .profile-page-shell.profile-private-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell.profile-private-shell > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-quick-access {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-quick-card,
  html[data-public-theme="turkmod"] .profile-page-shell .profile-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-tab-pagination {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: thin !important;
    -webkit-overflow-scrolling: touch;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-tab-pagination > ul {
    flex: 0 0 max-content !important;
    min-width: max-content !important;
    margin-inline: 0 !important;
  }

  html[data-public-theme="turkmod"] .profile-public-shell .profile-topic-action {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell :where(
    .profile-link-strong,
    .profile-center-cta > a,
    .profile-sidebar-report-action
  ) {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-link-strong {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.35 !important;
  }

  html[data-public-theme="turkmod"] .topic-pagination {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-inline: 3px !important;
    scrollbar-width: thin !important;
    -webkit-overflow-scrolling: touch;
  }

  html[data-public-theme="turkmod"] .topic-pagination > ul {
    flex: 0 0 max-content !important;
    min-width: max-content !important;
    margin-inline: 0 !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-sidebar-report-action {
    justify-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }

  html[data-public-theme="turkmod"] body.public-page-topic .topic-details .topic-info-row a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] .profile-public-shell .profile-paging :where(
    a,
    span
  ) {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] .navbar :where(
    .navbar-toggler,
    .theme-toggle,
    .notif-toggle
  ) {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] body.public-page-messages :where(
    .page-wrap,
    .content-area
  ) {
    animation: none !important;
    transform: none !important;
  }

  html[data-public-theme="turkmod"] body:is(
    .public-page-topic,
    .public-page-public-profile
  ) :where(
    .page-wrap,
    .content-area
  ) {
    animation: none !important;
    transform: none !important;
  }

  html[data-public-theme="turkmod"] body:is(
    .public-page-topic,
    .public-page-public-profile
  ) .topic-report-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 12px !important;
  }

  html[data-public-theme="turkmod"] body:is(
    .public-page-topic,
    .public-page-public-profile
  ) .topic-report-dialog {
    width: 100% !important;
    max-width: 35rem !important;
    max-height: calc(100dvh - 24px) !important;
  }

  html[data-public-theme="turkmod"] body:is(
    .public-page-topic,
    .public-page-public-profile
  ) .topic-report-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: start !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
  }

  html[data-public-theme="turkmod"] body:is(
    .public-page-topic,
    .public-page-public-profile
  ) .topic-report-header .topic-report-close {
    align-self: start !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }

  html[data-public-theme="turkmod"] body.public-page-topic #topicReportModal .topic-report-lead {
    display: none !important;
  }

  html[data-public-theme="turkmod"] body.public-page-messages :where(
    .messages-refresh-link,
    .messages-new-chat-btn,
    .messages-composer .messages-submit,
    .messages-modal-close
  ) {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] body.public-page-messages .messages-modal {
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
  }

  html[data-public-theme="turkmod"] body.public-page-messages .messages-modal-container {
    width: 100% !important;
    max-width: 28rem !important;
    max-height: 100% !important;
  }

  html[data-public-theme="turkmod"] body.public-page-messages .messages-modal-header {
    flex: 0 0 auto !important;
    min-height: 60px !important;
    padding: 0.5rem 0.65rem 0.5rem 1rem !important;
  }

  html[data-public-theme="turkmod"] body.public-page-messages .messages-modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 1rem !important;
    overscroll-behavior: contain !important;
  }

  html[data-public-theme="turkmod"] body.public-page-notifications .notification-settings .setting-row {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    grid-template-rows: 36px auto !important;
    gap: 0.65rem !important;
    align-items: start !important;
    padding: 0.8rem !important;
  }

  html[data-public-theme="turkmod"] body.public-page-notifications .notification-settings .setting-row-icon {
    width: 36px !important;
    height: 36px !important;
  }

  html[data-public-theme="turkmod"] body.public-page-notifications .notification-settings .setting-row-copy {
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    min-width: 0 !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    margin-top: 0 !important;
  }

  html[data-public-theme="turkmod"] body.public-page-notifications .notification-settings .setting-row-copy > :where(
    strong,
    span,
    small
  ) {
    min-width: 0 !important;
    margin-top: 0 !important;
    overflow-wrap: anywhere !important;
  }

  html[data-public-theme="turkmod"] body.public-page-notifications .notification-settings .setting-row-copy > span {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  html[data-public-theme="turkmod"] body.public-page-notifications .notification-settings .setting-effect {
    display: none !important;
  }

  html[data-public-theme="turkmod"] body.public-page-notifications .notification-settings .setting-row .notification-switch {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    justify-self: center !important;
    margin-top: 0 !important;
  }

  html[data-public-theme="turkmod"] body.public-page-notifications :where(
    .notifications-action,
    .notifications-filter,
    .notification-link
  ) {
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] :where(
    .ui-theme-topic-card__action,
    .ui-theme-topic-card__category,
    .ui-theme-topic-card__owner,
    .ui-theme-topic-action--report,
    .ttb-favorite-btn,
    .topic-report-close,
    .ui-comment-sort-select,
    .md-btn
  ) {
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] .topic-report-close {
    width: 44px !important;
    height: 44px !important;
  }

  html[data-public-theme="turkmod"] .md-btn {
    width: 44px !important;
    min-width: 44px !important;
  }

  html[data-public-theme="turkmod"] body.public-page-topic .topic-comments .ui-comment-sort-select {
    height: 44px !important;
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] .sidebar-left,
  html[data-public-theme="turkmod"] .sidebar-right {
    display: block !important;
  }

  html[data-public-theme="turkmod"] .sidebar-toggle,
  html[data-public-theme="turkmod"] .sidebar-overlay,
  html[data-public-theme="turkmod"] body:has(.ui-theme-auth) .sidebar-toggle,
  html[data-public-theme="turkmod"] body.public-page-login .sidebar-toggle,
  html[data-public-theme="turkmod"] body.public-page-register .sidebar-toggle,
  html[data-public-theme="turkmod"] body.public-page-forgot-password .sidebar-toggle,
  html[data-public-theme="turkmod"] body.public-page-reset-password .sidebar-toggle,
  html[data-public-theme="turkmod"] body.public-page-topic .sidebar-toggle {
    display: none !important;
  }

  html[data-public-theme="turkmod"] body.public-page-topic .container {
    padding-inline: 10px !important;
  }

  html[data-public-theme="turkmod"] body.public-page-topic .content-area {
    padding-inline-end: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  html[data-public-theme="turkmod"] .site-header .container {
    align-items: center !important;
    gap: 8px !important;
    padding-inline: 12px !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
  }

  html[data-public-theme="turkmod"] .header-right {
    order: 1 !important;
    margin-left: 0 !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  html[data-public-theme="turkmod"] .site-header .navbar-toggler {
    order: 2 !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }

  html[data-public-theme="turkmod"] .header-auth-actions {
    gap: 4px !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }

  html[data-public-theme="turkmod"] .header-auth-link {
    min-height: 34px !important;
    padding: 0.34rem 0.5rem !important;
    font-size: 0.7rem !important;
    gap: 0.3rem !important;
  }

  html[data-public-theme="turkmod"] .header-auth-link i {
    font-size: 0.85rem !important;
  }

  html[data-public-theme="turkmod"] .header-auth-link span {
    white-space: nowrap !important;
  }

  html[data-public-theme="turkmod"] .theme-toggle {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
  }

  html[data-public-theme="turkmod"] .theme-toggle i {
    font-size: 0.9rem !important;
  }

  html[data-public-theme="turkmod"] body.public-page-topic .content-area {
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 575.98px) {
  html[data-public-theme="turkmod"] .ui-theme-topic-card.topic-card .ui-theme-topic-card__action {
    align-self: center !important;
    justify-self: center !important;
    margin-inline: auto !important;
  }

  html[data-public-theme="turkmod"] .topic-comments .ui-comment-header {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0.5rem !important;
  }

  html[data-public-theme="turkmod"] .topic-comments .ui-comment-header h2,
  html[data-public-theme="turkmod"] .topic-comments .ui-comment-header__title,
  html[data-public-theme="turkmod"] .topic-comments .ui-comment-sort {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  html[data-public-theme="turkmod"] .topic-comments .ui-comment-header h2,
  html[data-public-theme="turkmod"] .topic-comments .ui-comment-header__title {
    justify-content: flex-start !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html[data-public-theme="turkmod"] .topic-comments .ui-comment-sort {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
  }

  html[data-public-theme="turkmod"] .topic-comments .ui-comment-sort-label {
    flex: 0 0 auto !important;
  }

  html[data-public-theme="turkmod"] .topic-comments .ui-comment-sort-select {
    flex: 1 1 180px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html[data-public-theme="turkmod"] .topic-dl-card {
    align-items: start !important;
  }

  html[data-public-theme="turkmod"] .topic-dl-button,
  html[data-public-theme="turkmod"] .topic-dl-action {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-wrap: balance;
  }

  html[data-public-theme="turkmod"] .topic-dl-button {
    min-height: 44px !important;
    padding: 0.6rem 0.85rem !important;
    line-height: 1.3 !important;
  }

  html[data-public-theme="turkmod"] .topic-dl-button .topic-dl-spinner {
    flex: 0 0 auto !important;
  }

  html[data-public-theme="turkmod"] body.public-page-download .download-confirm-timer {
    justify-content: center !important;
    text-align: center !important;
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
  }

  html[data-public-theme="turkmod"] body.public-page-download .download-confirm-timer span,
  html[data-public-theme="turkmod"] body.public-page-download .download-confirm-actions .ui-admin-btn,
  html[data-public-theme="turkmod"] body.public-page-download .download-confirm-actions .ui-admin-btn span {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html[data-public-theme="turkmod"] body.public-page-download .download-confirm-actions .ui-admin-btn {
    min-height: 44px !important;
    padding-inline: 0.9rem !important;
    line-height: 1.3 !important;
  }

  html[data-public-theme="turkmod"] .ui-theme-profile-dropdown,
  html[data-public-theme="turkmod"] .notif-dropdown {
    position: static !important;
  }

  html[data-public-theme="turkmod"] .ui-theme-profile-menu,
  html[data-public-theme="turkmod"] .notif-menu {
    position: fixed !important;
    top: calc(var(--t-header-height, 64px) + 8px) !important;
    right: 12px !important;
    left: auto !important;
    width: min(320px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - var(--t-header-height, 64px) - 20px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    transform: translateY(0) !important;
  }

  html[data-public-theme="turkmod"] .ui-theme-profile-menu::before,
  html[data-public-theme="turkmod"] .notif-menu::before {
    display: none !important;
  }

  html[data-public-theme="turkmod"] .ui-theme-profile-menu__head,
  html[data-public-theme="turkmod"] .ui-theme-profile-menu__item,
  html[data-public-theme="turkmod"] .notif-menu-header,
  html[data-public-theme="turkmod"] .notif-menu-footer,
  html[data-public-theme="turkmod"] .notif-item,
  html[data-public-theme="turkmod"] .notif-menu-state {
    min-width: 0 !important;
  }

  html[data-public-theme="turkmod"] .ui-theme-profile-menu__item,
  html[data-public-theme="turkmod"] .notif-item,
  html[data-public-theme="turkmod"] .notif-menu-header,
  html[data-public-theme="turkmod"] .notif-menu-footer {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html[data-public-theme="turkmod"] .notif-menu-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }

  html[data-public-theme="turkmod"] .notif-menu-header a,
  html[data-public-theme="turkmod"] .notif-menu-footer a {
    max-width: 100% !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-activity-item {
    grid-template-columns: 18px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 0.7rem !important;
    row-gap: 0.2rem !important;
    padding: 0.85rem !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-activity-item > .profile-activity-dot {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
    margin-top: 0.2rem !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-activity-item > .profile-stack-fill,
  html[data-public-theme="turkmod"] .profile-page-shell .profile-activity-item > .profile-activity-copy,
  html[data-public-theme="turkmod"] .profile-page-shell .profile-activity-item > .profile-activity-main {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-activity-item > .profile-date-muted,
  html[data-public-theme="turkmod"] .profile-page-shell .profile-activity-item > .profile-activity-meta {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    text-align: left !important;
    white-space: normal !important;
    min-width: 0 !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-activity-item > .profile-stack-fill strong,
  html[data-public-theme="turkmod"] .profile-page-shell .profile-activity-item > .profile-activity-copy strong,
  html[data-public-theme="turkmod"] .profile-page-shell .profile-activity-item > .profile-activity-main {
    overflow-wrap: anywhere !important;
  }
}

/* Comment Form Info Notice Mobile & Responsive Overrides */
html[data-public-theme="turkmod"] .ui-comment-form-wrap {
  display: flex !important;
  gap: 12px !important;
  position: relative !important;
  width: 100% !important;
}

html[data-public-theme="turkmod"] .ui-comment-form-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
}

html[data-public-theme="turkmod"] .ui-comment-form-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  position: relative !important;
  margin-top: 8px !important;
  width: 100% !important;
}

html[data-public-theme="turkmod"] .ui-comment-form-footer .ui-comment-form-actions {
  position: static !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 0 !important;
}

html[data-public-theme="turkmod"] .ui-comment-form-info,
html[data-public-theme="turkmod"] .topic-comments .ui-comment-form-info,
.ui-comment-form-info {
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 10px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--primary, #8b1538) 8%, var(--bg-surface-alt, rgba(0, 0, 0, 0.03))) !important;
  border: 1px solid color-mix(in srgb, var(--primary, #8b1538) 18%, var(--border, #e5e7eb)) !important;
  color: var(--text-dim, #6b7280) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  box-sizing: border-box !important;
  clear: both !important;
  float: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

html[data-public-theme="turkmod"] .ui-comment-form-info i,
html[data-public-theme="turkmod"] .topic-comments .ui-comment-form-info i,
.ui-comment-form-info i {
  display: inline-block !important;
  margin-right: 6px !important;
  color: var(--primary, #8b1538) !important;
  font-size: 0.9rem !important;
  vertical-align: -1px !important;
}

html[data-public-theme="turkmod"] .ui-comment-form-info span,
html[data-public-theme="turkmod"] .topic-comments .ui-comment-form-info span,
.ui-comment-form-info span {
  display: inline !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* ==========================================================================
   PUBLIC NOTIFICATION PREFERENCES - MODERN & PROFESSIONAL REDESIGN
   ========================================================================== */
html[data-public-theme="turkmod"] .notification-settings {
  border-radius: 16px !important;
  padding: 1.5rem !important;
  background: var(--theme-surface, #ffffff) !important;
  border: 1px solid var(--theme-border, #e2e8f0) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.02) !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-intro {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary, #8b1538) 8%, #ffffff) 0%, color-mix(in srgb, var(--primary, #8b1538) 3%, #ffffff) 100%) !important;
  border: 1px solid color-mix(in srgb, var(--primary, #8b1538) 15%, #e2e8f0) !important;
  margin-bottom: 1.5rem !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-intro h2 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.35rem !important;
  color: var(--theme-text, #0f172a) !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-intro p {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: var(--theme-text-muted, #64748b) !important;
  margin: 0 !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-intro i.bi-shield-check {
  font-size: 2.25rem !important;
  color: var(--primary, #8b1538) !important;
  opacity: 0.85 !important;
  flex-shrink: 0 !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-tabs {
  display: flex !important;
  gap: 0.5rem !important;
  padding: 0.35rem !important;
  background: var(--theme-surface-muted, #f1f5f9) !important;
  border-radius: 10px !important;
  border: 1px solid var(--theme-border, #e2e8f0) !important;
  margin-bottom: 1.5rem !important;
  overflow-x: auto !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-tab {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.65rem 1rem !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--theme-text-muted, #64748b) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-tab:hover {
  color: var(--theme-text, #0f172a) !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-tab.is-active {
  color: var(--primary, #8b1538) !important;
  background: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-group-panel {
  border: 1px solid var(--theme-border, #e2e8f0) !important;
  border-radius: 14px !important;
  background: var(--theme-surface, #ffffff) !important;
  margin-bottom: 1.25rem !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-group-head {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 1.1rem 1.35rem !important;
  background: var(--theme-surface-muted, #f8fafc) !important;
  border-bottom: 1px solid var(--theme-border, #e2e8f0) !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-group-icon {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--primary, #8b1538) 12%, #ffffff) !important;
  color: var(--primary, #8b1538) !important;
  font-size: 1.15rem !important;
  flex-shrink: 0 !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-group-copy h3 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.2rem !important;
  color: var(--theme-text, #0f172a) !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-group-copy p {
  font-size: 0.85rem !important;
  color: var(--theme-text-muted, #64748b) !important;
  margin: 0 !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

html[data-public-theme="turkmod"] .notification-settings .setting-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.25rem !important;
  padding: 1.1rem 1.35rem !important;
  border-bottom: 1px solid var(--theme-border, #f1f5f9) !important;
  transition: background-color 0.15s ease, transform 0.15s ease !important;
  cursor: pointer !important;
}

html[data-public-theme="turkmod"] .notification-settings .setting-row:last-child {
  border-bottom: none !important;
}

html[data-public-theme="turkmod"] .notification-settings .setting-row:hover {
  background-color: color-mix(in srgb, var(--primary, #8b1538) 2%, #ffffff) !important;
}

html[data-public-theme="turkmod"] .notification-settings .setting-row-icon {
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: var(--theme-surface-muted, #f1f5f9) !important;
  color: var(--theme-text-muted, #64748b) !important;
  font-size: 1rem !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

html[data-public-theme="turkmod"] .notification-settings .setting-row:hover .setting-row-icon {
  background: color-mix(in srgb, var(--primary, #8b1538) 12%, #ffffff) !important;
  color: var(--primary, #8b1538) !important;
}

html[data-public-theme="turkmod"] .notification-settings .setting-row-copy {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
}

html[data-public-theme="turkmod"] .notification-settings .setting-row-copy strong {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--theme-text, #0f172a) !important;
}

html[data-public-theme="turkmod"] .notification-settings .setting-row-copy span {
  font-size: 0.85rem !important;
  color: var(--theme-text-muted, #64748b) !important;
  line-height: 1.4 !important;
}

html[data-public-theme="turkmod"] .notification-settings .setting-effect {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  margin-top: 0.35rem !important;
  padding: 0.2rem 0.55rem !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  background: color-mix(in srgb, var(--primary, #8b1538) 10%, #ffffff) !important;
  color: var(--primary, #8b1538) !important;
  border: 1px solid color-mix(in srgb, var(--primary, #8b1538) 20%, transparent) !important;
}

html[data-public-theme="turkmod"] .notification-settings .setting-effect.is-disabled {
  background: var(--theme-surface-muted, #f1f5f9) !important;
  color: var(--theme-text-muted, #94a3b8) !important;
  border-color: var(--theme-border, #e2e8f0) !important;
}

html[data-public-theme="turkmod"] .notification-settings .notification-switch {
  position: relative !important;
  display: inline-block !important;
  width: 48px !important;
  height: 26px !important;
  flex-shrink: 0 !important;
}

html[data-public-theme="turkmod"] .notification-settings .notification-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

html[data-public-theme="turkmod"] .notification-settings .notification-slider {
  position: absolute !important;
  cursor: pointer !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: var(--theme-border, #cbd5e1) !important;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 999px !important;
}

html[data-public-theme="turkmod"] .notification-settings .notification-slider:before {
  position: absolute !important;
  content: "" !important;
  height: 20px !important;
  width: 20px !important;
  left: 3px !important;
  bottom: 3px !important;
  background-color: white !important;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

html[data-public-theme="turkmod"] .notification-settings .notification-switch input:checked + .notification-slider {
  background-color: var(--primary, #8b1538) !important;
}

html[data-public-theme="turkmod"] .notification-settings .notification-switch input:checked + .notification-slider:before {
  transform: translateX(22px) !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.85rem !important;
  margin-top: 1.75rem !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid var(--theme-border, #e2e8f0) !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-save-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.6rem !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--primary, #8b1538) 0%, color-mix(in srgb, var(--primary, #8b1538) 85%, #000) 100%) !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary, #8b1538) 35%, transparent) !important;
  transition: all 0.2s ease !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-save-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary, #8b1538) 45%, transparent) !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-reset-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--theme-text-muted, #64748b) !important;
  background: var(--theme-surface-muted, #f8fafc) !important;
  border: 1px solid var(--theme-border, #e2e8f0) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

html[data-public-theme="turkmod"] .notification-settings .settings-reset-btn:hover {
  color: var(--theme-text, #0f172a) !important;
  background: #ffffff !important;
  border-color: var(--theme-border, #cbd5e1) !important;
}

@media (max-width: 768px) {
  html[data-public-theme="turkmod"] .notification-settings {
    padding: 1rem !important;
  }

  html[data-public-theme="turkmod"] .notification-settings .settings-intro {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  html[data-public-theme="turkmod"] .notification-settings .settings-actions {
    flex-direction: column-reverse !important;
    width: 100% !important;
  }

  html[data-public-theme="turkmod"] .notification-settings .settings-save-btn,
  html[data-public-theme="turkmod"] .notification-settings .settings-reset-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Mobile navigation grids: every destination stays visible without hidden swiping. */
@media (max-width: 767.98px) {
  html[data-public-theme="turkmod"] .profile-page-shell .profile-tabs {
    position: relative !important;
    top: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    padding: 0.45rem !important;
    overflow: visible !important;
  }

  html[data-public-theme="turkmod"] .profile-page-shell .profile-tab {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 0.55rem 0.45rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html[data-public-theme="turkmod"] body.public-page-events .ui-events-nav-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html[data-public-theme="turkmod"] body.public-page-events .ui-events-tabbar.ui-events-primary-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0.45rem !important;
    overflow: visible !important;
  }

  html[data-public-theme="turkmod"] body.public-page-events .ui-events-tab-button {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 0.55rem 0.4rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html[data-public-theme="turkmod"] body.public-page-events .ui-events-tab-button > span {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  html[data-public-theme="turkmod"] body.public-page-leaderboard .search-input,
  html[data-public-theme="turkmod"] body.public-page-contact :where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    button
  ) {
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] body.public-page-events .ui-events-info-cards {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html[data-public-theme="turkmod"] body.public-page-events .ui-events-info-card {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html[data-public-theme="turkmod"] body.public-page-events .ui-events-task-filter-btn {
    min-height: 44px !important;
  }

  html[data-public-theme="turkmod"] .ui-theme-profile-menu,
  html[data-public-theme="turkmod"] .notif-menu {
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  html[data-public-theme="turkmod"] .notif-menu-header,
  html[data-public-theme="turkmod"] .notif-menu-footer {
    min-height: 44px !important;
    padding-block: 0.65rem !important;
  }

  html[data-public-theme="turkmod"] .notif-menu-header a,
  html[data-public-theme="turkmod"] .notif-menu-footer a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    padding-block: 0.35rem !important;
  }

  html[data-public-theme="turkmod"] #navbarCollapse .nav-link {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
  }
}
