:root {
  --eplats-form-spacing: var(--spacing-unit, 12px);
  --eplats-input-height-sm: 38px;
  --eplats-input-height-md: 44px;
  --eplats-input-height-lg: 52px;
}

.eplats-form {
  display: block;
  gap: var(--eplats-form-spacing);
  margin-bottom: 16px;
}
.eplats-form.grid-1-col,
.eplats-form.grid-2-col,
.eplats-form.grid-3-col {
  display: grid;
}
.eplats-form.grid-1-col { grid-template-columns: 1fr; }
.eplats-form.grid-2-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eplats-form.grid-3-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eplats-text-end { text-align: end; }
.eplats-justify-end { justify-content: end; }
:dir(rtl) .eplats-text-end { text-align: left; }
:dir(ltr) .eplats-text-end { text-align: right; }
:dir(rtl) .eplats-justify-end { justify-content: flex-end; }
:dir(ltr) .eplats-justify-end { justify-content: flex-end; }
:dir(rtl) .float-end { float: left !important; }
:dir(ltr) .float-end { float: right !important; }
.eplats-form[class*="grid-"] > .btn:not(.w-100),
.eplats-form[class*="grid-"] > .eplats-btn:not(.w-100) {
  justify-self: end;
  width: auto;
}
:dir(rtl) .eplats-form[class*="grid-"] > .btn:not(.w-100),
:dir(rtl) .eplats-form[class*="grid-"] > .eplats-btn:not(.w-100) {
  justify-self: end;
}
:dir(ltr) .eplats-form[class*="grid-"] > .btn:not(.w-100),
:dir(ltr) .eplats-form[class*="grid-"] > .eplats-btn:not(.w-100) {
  justify-self: end;
}

.user-files-form {
  max-width: 640px;
  margin: 0 auto;
}
.user-files-form.eplats-form,
.user-files-form.eplats-form.grid-1-col,
.user-files-form.eplats-form.grid-2-col,
.user-files-form.eplats-form.grid-3-col {
  display: block;
}
.user-files-form .form-control,
.user-files-form .form-select,
.user-files-form textarea.form-control {
  width: 100%;
}

.file-list__icon {
  width: 4rem;
  height: 6rem;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.file-list__icon .file-icon {
  width: 100%;
  height: 100%;
}
.file-list__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.file-icon {
  width: 100%;
  height: 100%;
}

.file-type-icon {
  font-size: 3.6rem;
  line-height: 1;
  color: var(--color-primary, #9f1239);
}

.link-list__item {
  align-items: center;
}

.link-list .featured-articles__separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 6rem;
  line-height: 6rem;
}

.file-preview__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--border-color, #e5e7eb);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
}
.file-preview__link.file-preview--portrait {
  width: 8rem;
  height: 12rem;
}
.file-preview__link.file-preview--landscape {
  width: 12rem;
  height: 8rem;
}
.file-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eplats-field { display: flex; flex-direction: column; gap: 6px; }
.eplats-label { font-weight: 600; font-size: 14px; color: var(--text-color, #0f172a); }
.eplats-input, .eplats-select, select.eplats-input {
  width: 100%;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--border-radius, 8px);
  padding: 0 12px;
  background: #fff;
  color: var(--text-color, #0f172a);
  font-size: var(--font-size-base, 16px);
  min-height: var(--eplats-input-height-md);
}

.eplats-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--border-radius, 8px);
  padding: 10px 16px;
  border: 1px solid transparent;
  font-weight: 600;
}
.eplats-btn-primary { background: var(--color-primary, #4b5563); color: #fff; }
.eplats-btn-secondary { background: #fff; color: var(--color-primary, #4b5563); border-color: var(--color-primary, #4b5563); }
.eplats-btn-danger { background: var(--danger-color, #dc2626); color: #fff; }

.articles-form-check-slot {
  min-height: var(--eplats-input-height-md);
}

.profile-invite-form-row {
  align-items: flex-end;
}

.profile-invite-form-row .profile-invite-field {
  max-width: 320px;
}

.profile-invite-form-row .profile-invite-field--email {
  max-width: 200px;
}

.profile-invite-form-row .profile-invite-field--duration {
  max-width: 240px;
}

.profile-invite-form-row .profile-invite-action {
  max-width: 220px;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 999px;
  border: 2px solid var(--color-primary, #9f1239);
  background: #fff;
  color: var(--text-color, #1f2937);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.follow-btn:hover,
.follow-btn:focus {
  text-decoration: none;
}
.follow-btn--primary {
  border-color: var(--color-primary, #9f1239);
  background: var(--color-primary, #9f1239);
  color: var(--text-inverse, #fff);
}
.follow-btn--outline {
  border-color: var(--color-primary, #9f1239);
  background: #fff;
  color: var(--color-primary, #9f1239);
}
.follow-btn--sm {
  padding: 8px 22px;
  font-size: 1.05rem;
}

.follow-btn--xs {
  padding: 4px 14px;
  font-size: 0.85rem;
}

.profile-tool-sidebar__stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 8px;
  font-size: 0.82rem;
  color: var(--text-muted, #6b7280);
  flex-wrap: nowrap;
}

.profile-tool-sidebar__stats-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
:dir(ltr) .profile-tool-sidebar__stats-row {
  font-size: 0.78rem;
}

.profile-tool-sidebar__stats-link:hover,
.profile-tool-sidebar__stats-link:focus {
  text-decoration: none;
  background: color-mix(in srgb, var(--color-primary, #8d1530) 12%, #fff);
}

.profile-tool-sidebar__stats-label { font-weight: 600; }
.profile-tool-sidebar__stats-label,
.profile-tool-sidebar__last-visit-label {
  color: var(--color-primary, #8d1530);
}

.profile-tool-sidebar__alert-list {
  display: grid;
  gap: 6px;
}

.profile-tool-sidebar__alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: color-mix(in srgb, var(--border-color, #e5e7eb) 25%, #fff);
  color: var(--text-main, #111827);
  font-weight: 600;
}

.cms-admin-shell__sidebar-col {
  align-self: flex-start;
}

.cms-sidebar {
  position: sticky;
  top: calc(var(--site-header-height, 72px) + 12px);
}

.cms-sidebar__title {
  font-weight: 700;
  color: var(--color-primary, #8d1530);
  margin-bottom: 2px;
}

.cms-sidebar__subtitle {
  font-size: 0.83rem;
  color: var(--text-muted, #6b7280);
  margin-bottom: 10px;
}

.cms-sidebar__groups {
  display: grid;
  gap: 10px;
}

.cms-sidebar__group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  margin: 0 0 4px;
}

.cms-sidebar__link {
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.cms-sidebar__link.active {
  background: color-mix(in srgb, var(--color-primary, #8d1530) 12%, #fff);
  border-color: color-mix(in srgb, var(--color-primary, #8d1530) 24%, #ddd);
  color: var(--color-primary, #8d1530);
  font-weight: 700;
}

.cms-actions-row {
  align-items: center;
}

.cms-actions-row > form {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
}

.cms-actions-row > .btn,
.cms-actions-row > form > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: .375rem .75rem;
  line-height: 1.5;
  min-height: 46px;
}

.page-title-actions {
  align-items: center;
  justify-content: flex-start;
}

.profile-tool-sidebar__alert-item:hover,
.profile-tool-sidebar__alert-item:focus {
  text-decoration: none;
  background: color-mix(in srgb, var(--color-primary, #8d1530) 10%, #fff);
}

.profile-tool-sidebar__alert-count {
  min-width: 28px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary, #8d1530);
  border: 1px solid color-mix(in srgb, var(--color-primary, #8d1530) 20%, #fff);
  font-size: 0.8rem;
  font-weight: 700;
}

.profile-tool-sidebar__logout {
  display: flex;
  justify-content: center;
  margin: -4px 0 8px;
}

.profile-tool-sidebar__logout-btn {
  border: 0;
  background: transparent;
  color: var(--color-primary, #8d1530);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 10px;
}

.profile-tool-sidebar__logout-btn:hover,
.profile-tool-sidebar__logout-btn:focus {
  text-decoration: underline;
}

.profile-tool-sidebar__last-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0;
  font-size: 0.82rem;
  color: var(--text-muted, #6b7280);
  flex-wrap: wrap;
  border-top: 1px solid color-mix(in srgb, var(--border-color, #e5e7eb) 85%, transparent);
  padding-top: 6px;
  padding-bottom: 6px;
}
.profile-tool-sidebar__last-visit-label {
  font-weight: 600;
}

.profile-tool-sidebar__follows-link:hover,
.profile-tool-sidebar__follows-link:focus {
  text-decoration: underline;
}

.profile-tool-sidebar__follows-sep {
  margin: 0 6px;
  color: var(--border-color, #e5e7eb);
}

.profile-tool-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: color-mix(in srgb, var(--border-color, #e5e7eb) 35%, #fff);
}

.profile-tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

html[dir="rtl"] .profile-tool-icon {
  margin-left: 8px;
}

html[dir="ltr"] .profile-tool-icon {
  margin-right: 8px;
}

html[dir="rtl"] body {
  --bs-body-text-align: right;
}

html[dir="ltr"] body {
  --bs-body-text-align: left;
}

/* Admin: boost contrast for semantic buttons when theme uses pastel state colors */
body[data-admin-theme="1"] {
  --admin-success: var(--success-color, #16a34a);
  --admin-success: color-mix(in srgb, var(--success-color, #16a34a) 70%, #000);
  --admin-warning: var(--warning-color, #f59e0b);
  --admin-warning: color-mix(in srgb, var(--warning-color, #f59e0b) 70%, #000);
  --admin-danger: var(--danger-color, #ef4444);
  --admin-danger: color-mix(in srgb, var(--danger-color, #ef4444) 70%, #000);
  --admin-info: var(--info-color, #0ea5e9);
  --admin-info: color-mix(in srgb, var(--info-color, #0ea5e9) 70%, #000);
}

body[data-admin-theme="1"] .btn-outline-success,
body[data-admin-theme="1"] .btn-outline-success:hover,
body[data-admin-theme="1"] .btn-outline-success:focus {
  --bs-btn-color: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-border-color: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-hover-bg: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-hover-border-color: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-hover-color: var(--text-inverse, #fff) !important;
  --bs-btn-active-bg: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-active-border-color: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-active-color: var(--text-inverse, #fff) !important;
  color: var(--admin-success, var(--success-color, #16a34a)) !important;
  border-color: var(--admin-success, var(--success-color, #16a34a)) !important;
}

body[data-admin-theme="1"] .btn-success,
body[data-admin-theme="1"] .btn-success:hover,
body[data-admin-theme="1"] .btn-success:focus {
  --bs-btn-bg: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-border-color: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-hover-bg: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-hover-border-color: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-active-bg: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-active-border-color: var(--admin-success, var(--success-color, #16a34a)) !important;
  --bs-btn-color: var(--text-inverse, #fff) !important;
  background: var(--admin-success, var(--success-color, #16a34a)) !important;
  border-color: var(--admin-success, var(--success-color, #16a34a)) !important;
  color: var(--text-inverse, #fff) !important;
}

body[data-admin-theme="1"] .btn-outline-warning,
body[data-admin-theme="1"] .btn-outline-warning:hover,
body[data-admin-theme="1"] .btn-outline-warning:focus {
  --bs-btn-color: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-border-color: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-hover-bg: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-hover-border-color: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-hover-color: var(--text-inverse, #fff) !important;
  --bs-btn-active-bg: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-active-border-color: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-active-color: var(--text-inverse, #fff) !important;
  color: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  border-color: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
}

body[data-admin-theme="1"] .btn-warning,
body[data-admin-theme="1"] .btn-warning:hover,
body[data-admin-theme="1"] .btn-warning:focus {
  --bs-btn-bg: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-border-color: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-hover-bg: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-hover-border-color: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-active-bg: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-active-border-color: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  --bs-btn-color: var(--text-inverse, #fff) !important;
  background: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  border-color: var(--admin-warning, var(--warning-color, #f59e0b)) !important;
  color: var(--text-inverse, #fff) !important;
}

body[data-admin-theme="1"] .btn-outline-danger,
body[data-admin-theme="1"] .btn-outline-danger:hover,
body[data-admin-theme="1"] .btn-outline-danger:focus {
  --bs-btn-color: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-border-color: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-hover-bg: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-hover-border-color: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-hover-color: var(--text-inverse, #fff) !important;
  --bs-btn-active-bg: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-active-border-color: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-active-color: var(--text-inverse, #fff) !important;
  color: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  border-color: var(--admin-danger, var(--danger-color, #ef4444)) !important;
}

body[data-admin-theme="1"] .btn-danger,
body[data-admin-theme="1"] .btn-danger:hover,
body[data-admin-theme="1"] .btn-danger:focus {
  --bs-btn-bg: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-border-color: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-hover-bg: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-hover-border-color: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-active-bg: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-active-border-color: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  --bs-btn-color: var(--text-inverse, #fff) !important;
  background: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  border-color: var(--admin-danger, var(--danger-color, #ef4444)) !important;
  color: var(--text-inverse, #fff) !important;
}

body[data-admin-theme="1"] .btn-outline-info,
body[data-admin-theme="1"] .btn-outline-info:hover,
body[data-admin-theme="1"] .btn-outline-info:focus {
  --bs-btn-color: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-border-color: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-hover-bg: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-hover-border-color: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-hover-color: var(--text-inverse, #fff) !important;
  --bs-btn-active-bg: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-active-border-color: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-active-color: var(--text-inverse, #fff) !important;
  color: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  border-color: var(--admin-info, var(--info-color, #0ea5e9)) !important;
}

body[data-admin-theme="1"] .btn-info,
body[data-admin-theme="1"] .btn-info:hover,
body[data-admin-theme="1"] .btn-info:focus {
  --bs-btn-bg: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-border-color: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-hover-bg: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-hover-border-color: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-active-bg: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-active-border-color: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  --bs-btn-color: var(--text-inverse, #fff) !important;
  background: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  border-color: var(--admin-info, var(--info-color, #0ea5e9)) !important;
  color: var(--text-inverse, #fff) !important;
}

body[data-admin-theme="1"] td.d-flex .btn.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* height variants */
.eplats-input.height-small { min-height: var(--eplats-input-height-sm); }
.eplats-input.height-large { min-height: var(--eplats-input-height-lg); }

/* prevent inline styles */
body[data-admin-theme="1"] [style] { outline: 1px dashed rgba(220,38,38,0.2); }
body:not([data-admin-theme="1"]) [style] { outline: none !important; }

/* Utility preview/thumb sizes to replace inline styles */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.progress-thin { height: 6px; }
.progress-thin-lg { height: 8px; }
.sticky-top-10 { position: sticky; top: 10px; }
.teams-actions .btn {
  height: 28px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-tool-sidebar__shared {
  margin-top: 12px;
}
.profile-tool-sidebar__shared .card {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--secondary, #b21f4b) 10%, #fff),
      color-mix(in srgb, var(--card-background, #ffffff) 96%, var(--secondary, #b21f4b) 4%));
}
.profile-tool-sidebar__title {
  color: var(--primary, #701a1a);
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Admin sizing tokens */
.nav-link-col--toggle { min-width: 70px; }
.nav-link-col--order { min-width: 40px; max-width: 40px; }
.nav-link-col--icon { min-width: 80px; }
.nav-link-col--title { min-width: 120px; max-width: 160px; }
.nav-link-col--title-en { min-width: 120px; max-width: 160px; }
.nav-link-col--url { min-width: 120px; max-width: 160px; }
.nav-link-col--target { min-width: 90px; max-width: 120px; }
.nav-link-col--site-vis { min-width: 100px; max-width: 120px; }
.nav-link-col--action { min-width: 88px; max-width: 104px; }
.nav-link-col--destination { min-width: 110px; max-width: 130px; }
.nav-link-col--apply { min-width: 90px; }
.nav-link-icon-btn {
  width: 31px;
  min-width: 31px;
  height: 31px;
  padding: 0 !important;
  line-height: 1 !important;
}
.nav-link-icon-btn i {
  font-size: 1rem;
}
.nav-select-compact { width: 140px; }
.nav-order-input::-webkit-outer-spin-button,
.nav-order-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.nav-order-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
  direction: ltr;
  text-align: center;
  padding-inline: 0.25rem;
}

.release-col-date { min-width: 160px; }
.terms-col-date { min-width: 160px; }
.static-pages-col-actions { min-width: 160px; }
.editor-col-order { min-width: 120px; }
.lang-col-key { min-width: 180px; }
.lang-col-default { min-width: 240px; }
.lang-col-translation { min-width: 240px; }

.icon-thumb { width: 48px; height: 48px; }
.icon-thumb-sm { width: 36px; height: 36px; }
.admin-tool-sort-input { width: 84px; }
.theme-color-swatch { width: 48px; height: 48px; }
.theme-scope-col { width: 120px; }
.banner-preview { min-height: 180px; }
.auth-avatar-preview { width: 120px; height: 120px; }
.auth-banner-preview { width: 280px; height: 280px; max-width: 100%; }
.auth-terms-scroll { max-height: 360px; }
.profile-avatar-frame { width: 96px; height: 96px; overflow: hidden; }
.profile-avatar-img { object-fit: cover; }
.profile-avatar-initials { font-size: 18px; }
.profile-text-col { min-width: 0; }
.cv-avatar-thumb { width: 80px; height: 80px; object-fit: cover; }
.cv-avatar-rect {
  width: 110px;
  height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 2px solid var(--color-primary, #8d1530);
  background: var(--card-background, #ffffff);
}
.cv-name-avatar__image label {
  cursor: pointer;
}
.cv-form-grid--top {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 12px;
}
.cv-form-grid--top .cv-field {
  min-width: 0;
}
.cv-form-grid--top .cv-field--avatar {
  flex: 0 0 auto;
  align-self: center;
}
.cv-form-grid--top .cv-field--name {
  flex: 2.2 1 0;
}
.cv-form-grid--top .cv-field--title {
  flex: 1.5 1 0;
}
.cv-form-grid--top .cv-field--nationality {
  flex: 0.8 1 0;
}
.cv-form-grid--top .cv-field--email {
  flex: 1.6 1 0;
}
.cv-form-grid--top .cv-field--phone {
  flex: 1.15 1 0;
  min-width: 180px;
}
.cv-form-grid--top .form-control,
.cv-form-grid--top .form-select {
  font-size: 0.9rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.cv-avatar-empty {
  border: 2px dashed color-mix(in srgb, var(--color-primary, #8d1530) 35%, var(--border-color, #e5e7eb));
  background: color-mix(in srgb, var(--page-background, #f8fafc) 80%, #ffffff);
}
.cv-form-card { border-radius: 16px; }
.cv-editor-shell {
  padding-top: 1rem;
}
.cv-edit-layout [id^="cv-section-"] {
  scroll-margin-top: 110px;
}
.cv-edit-sidebar {
  position: sticky;
  top: 96px;
  border-radius: 16px;
}
.cv-edit-subnav .nav-link {
  color: var(--text-primary, #111827);
  border: 1px solid transparent;
  border-radius: 10px;
  margin-bottom: 6px;
  padding: 8px 10px;
  font-weight: 500;
}
.cv-edit-subnav .nav-link:hover {
  background: color-mix(in srgb, var(--page-background, #f8fafc) 88%, #ffffff);
  border-color: var(--border-color, #e5e7eb);
}
.cv-form-section__saved {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 12px;
  background: var(--card-background, #ffffff);
}
.cv-form-section__entry-block {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--card-background, #ffffff) 92%, var(--page-background, #f8fafc));
  margin-top: 14px;
}
.cv-section-save-actions {
  justify-content: flex-end;
  border-top: 1px dashed color-mix(in srgb, var(--border-color, #e5e7eb) 70%, transparent);
  padding-top: 12px;
}
.cv-edit-layout .cv-row-grid--inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px;
}
.cv-edit-layout .cv-row-grid--inline .cv-field {
  min-width: 0;
}
.cv-form-card .card-header {
  background: color-mix(in srgb, var(--page-background, #f8fafc) 86%, #ffffff);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.cv-section-card { border-radius: 16px; }
.cv-section-card {
  --cv-table-head-bg: color-mix(in srgb, var(--page-background, #f8fafc) 70%, #ffffff);
  --cv-table-data-bg: var(--bs-table-striped-bg, #f2f2f2);
}
.cv-section-card .table thead th {
  background-color: var(--cv-table-head-bg) !important;
}
.cv-section-card .table th,
.cv-section-card .table td {
  text-align: center !important;
  vertical-align: middle;
}
.cv-basic-info-table-wrap {
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--cv-table-head-bg);
  border: 1px solid var(--border-color, #e5e7eb);
  box-shadow: none !important;
}
.cv-basic-info-table-wrap .table {
  margin-bottom: 0;
  box-shadow: none !important;
}
.cv-section-card .table-responsive {
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--cv-table-head-bg);
  border: 1px solid var(--border-color, #e5e7eb);
  box-shadow: none !important;
}
.cv-section-card .table-responsive .table {
  margin-bottom: 0;
  box-shadow: none !important;
}
.cv-summary-divider {
  border-top: 1px solid color-mix(in srgb, var(--color-primary, #8d1530) 35%, var(--border-color, #e5e7eb));
  opacity: 1;
}
.cv-summary-cards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.cv-summary-card {
  border: 1px solid color-mix(in srgb, var(--color-primary, #8d1530) 18%, var(--border-color, #e5e7eb));
  border-radius: 14px;
  background-color: var(--cv-table-data-bg) !important;
}
.cv-summary-card .card-body {
  padding: 14px 16px;
  background-color: var(--cv-table-data-bg) !important;
  border-radius: 14px;
}
.cv-summary-card__title {
  margin-bottom: 10px;
}
.cv-section-card .border-top {
  border-top: 0 !important;
}
.cv-section-card .card-body + .card-body {
  border-top: 0 !important;
}
.cv-section-card hr {
  border-top-color: color-mix(in srgb, var(--color-primary, #8d1530) 35%, var(--border-color, #e5e7eb));
  opacity: 1;
}
.cv-section-card__header {
  background: color-mix(in srgb, var(--page-background, #f8fafc) 86%, #ffffff);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  padding: 12px 16px;
}
.cv-form-section__header {
  padding: 12px 16px;
}
.cv-form-section__body {
  padding: 16px;
}
.cv-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cv-form-grid.cv-form-grid--top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}
.cv-form-grid.cv-form-grid--top .cv-field {
  min-width: 0;
}
.cv-form-grid.cv-form-grid--top .cv-field--avatar {
  flex: 0 0 120px;
  align-self: center;
}
.cv-form-grid.cv-form-grid--top .cv-field--name {
  flex: 0 1 26%;
}
.cv-form-grid.cv-form-grid--top .cv-field--title {
  flex: 0 1 18%;
}
.cv-form-grid.cv-form-grid--top .cv-field--nationality {
  flex: 0 1 14%;
}
.cv-form-grid.cv-form-grid--top .cv-field--email {
  flex: 0 1 15%;
}
.cv-form-grid.cv-form-grid--top .cv-field--phone {
  flex: 0 1 17%;
  min-width: 180px;
}
.cv-form-grid.cv-form-grid--top .form-control,
.cv-form-grid.cv-form-grid--top .form-select {
  font-size: 0.9rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.cv-row {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  padding: 16px;
  background: var(--card-background, #ffffff);
  overflow-x: hidden;
}
.cv-row__header {
  padding-bottom: 12px;
  border-bottom: 1px dashed color-mix(in srgb, var(--border-color, #e5e7eb) 70%, transparent);
}
.cv-row-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-color, #e5e7eb);
  padding: 1px;
  border-radius: 12px;
}
.cv-row-grid--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: none;
  padding: 0;
}
.cv-row-grid--inline .cv-field {
  flex: 1 1 220px;
  min-width: 180px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
}
.cv-skill-row .cv-row-grid--inline {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) minmax(180px, 1.2fr) minmax(150px, 0.85fr) minmax(110px, 0.65fr);
  gap: 12px;
}
.cv-skill-row.cv-skill-row--with-custom .cv-row-grid--inline {
  grid-template-columns: minmax(200px, 1.35fr) minmax(160px, 1fr) minmax(300px, 2fr) minmax(140px, 0.8fr) minmax(100px, 0.55fr);
}
.cv-skill-row .cv-row-grid--inline .cv-field {
  min-width: 0;
}
.cv-skill-row .cv-skill-field--order .form-control {
  max-width: 100%;
}
@media (max-width: 991.98px) {
  .cv-edit-sidebar {
    position: static;
  }
}
.cv-field {
  background: var(--card-background, #ffffff);
  padding: 10px 12px;
  min-width: 0;
}
.cv-field--span-2 { grid-column: span 2; }
.cv-field--span-3 { grid-column: span 3; }
.cv-input-compact { max-width: 120px; }
.cv-row-grid .form-label,
.cv-form-grid .form-label { font-size: 0.9rem; }
.profile-tool-sidebar__owner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-background, #ffffff) 88%, var(--color-primary, #8d1530) 12%);
  border: 1px solid color-mix(in srgb, var(--color-primary, #8d1530) 26%, var(--border-color, #e5e7eb));
  margin-bottom: 10px;
  text-align: left;
}
.profile-tool-sidebar__owner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  flex: 0 1 auto;
  min-width: 0;
}
[dir="rtl"] .profile-tool-sidebar__owner {
  flex-direction: row-reverse;
}
[dir="rtl"] .profile-tool-sidebar__owner-text {
  align-items: center;
  text-align: center;
}
[dir="rtl"] .profile-tool-sidebar__avatar {
  order: 2;
}
[dir="rtl"] .profile-tool-sidebar__owner-text {
  order: 1;
}
.profile-tool-sidebar__role {
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
}
.profile-tool-sidebar__bio-link {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--color-primary, #8d1530);
  text-decoration: none;
  font-weight: 600;
}

.profile-tool-sidebar__bio-link:hover,
.profile-tool-sidebar__bio-link:focus {
  text-decoration: none;
}
.profile-tool-sidebar__avatar {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--color-primary, #8d1530) 45%, var(--border-color, #e5e7eb));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-background, #ffffff);
}
.profile-tool-sidebar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-tool-sidebar__avatar-fallback {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary, #111827);
}
.profile-tool-sidebar__name {
  font-weight: 600;
  color: var(--color-primary, #8d1530);
}
.profile-display-name {
  color: var(--color-primary, #8d1530);
}
.cv-export {
  font-size: 12.5px;
  font-family: "Arial", "Arial Unicode MS", "DejaVu Sans", sans-serif !important;
  color: #111827;
  background: #ffffff;
  direction: rtl;
  unicode-bidi: embed;
  margin: 0;
  padding: 0;
}
.cv-export * {
  font-family: "Arial", "Arial Unicode MS", "DejaVu Sans", sans-serif !important;
}
.cv-export .Section1 {
  page: Section1;
}
.cv-export .heading-xl {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
}
.cv-export .card-body {
  padding: 12px;
  page-break-inside: auto;
}
.cv-export .table {
  font-size: 11.5px;
  margin-bottom: 0;
  border-collapse: collapse;
  direction: rtl !important;
  page-break-inside: auto;
  width: 100%;
}
.cv-export th {
  font-family: "DejaVu Sans", sans-serif !important;
  font-weight: 700 !important;
  text-align: center !important;
  vertical-align: middle !important;
  background: #f4f5f7 !important;
}
.cv-export td {
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 1.45;
}
.cv-export tr,
.cv-export th,
.cv-export td {
  page-break-inside: avoid;
}
.cv-export .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #eceef2 !important;
}
.cv-export .cv-avatar-rect {
  width: 74px;
  height: 100px;
  border: 1.5px solid #8d1530;
  border-radius: 10px;
}
.cv-export-page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.1cm 0.2cm;
}
.cv-export .badge.bg-light {
  border: 1px solid #d9dde5;
}
.cv-export .card {
  border: 1px solid #d9dde5 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.cv-export .cv-section-card {
  overflow: visible;
  page-break-inside: auto;
}
.cv-export .cv-basic-info-table-wrap,
.cv-export .cv-section-card .table-responsive {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  margin-bottom: 18px;
  page-break-inside: auto;
}
.cv-export .cv-summary-cards {
  display: block;
  margin-top: 28px;
  page-break-inside: auto;
}
.cv-export .cv-basic-summary-gap {
  display: block;
  width: 100%;
  height: 24px;
  line-height: 24px;
  font-size: 0;
}
.cv-export .cv-summary-card {
  background: #eceef2 !important;
  border: 1px solid #d9dde5 !important;
  border-radius: 12px !important;
  margin-bottom: 12px;
  page-break-inside: avoid;
}
.cv-export .cv-summary-card .card-body {
  background: #eceef2 !important;
}
.cv-export .cv-summary-card__title {
  margin-bottom: 8px;
}
.cv-export .cv-export-section {
  margin-top: 18px;
  page-break-inside: auto;
}
.cv-export .cv-export-section-title {
  margin: 0 0 14px !important;
  font-size: 16px !important;
  font-weight: 700;
  text-align: right !important;
}
.cv-export .cv-export-section + .cv-export-section {
  margin-top: 22px;
}
.cv-export .cv-export-header-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  direction: rtl !important;
  page-break-inside: avoid;
}
.cv-export .cv-export-header-table td {
  border: 0 !important;
}
.cv-export .cv-export-header-table__avatar {
  width: 96px;
  text-align: start !important;
  vertical-align: top !important;
}
.cv-export .cv-export-header-table__info {
  text-align: right !important;
  vertical-align: middle !important;
  padding-inline-end: 10px;
}
[dir="rtl"] .cv-export .table,
[dir="rtl"] .cv-export .cv-section-card,
[dir="rtl"] .cv-export .cv-section-card * {
  direction: rtl !important;
}
[dir="ltr"] .cv-export .cv-export-header-table__avatar {
  text-align: end !important;
}
[dir="ltr"] .cv-export .cv-export-header-table__info {
  text-align: left !important;
  padding-inline-start: 10px;
  padding-inline-end: 0;
}
.cv-export-layout {
  table-layout: fixed;
}
.cv-export-header-row td {
  vertical-align: top;
}
.cv-export-info-row td {
  vertical-align: top;
}
.cv-export-header-row td,
.cv-export-info-row td {
  border: none !important;
}
.cv-export-header {
  border-collapse: collapse;
  table-layout: fixed;
}
.cv-export-header__info {
  vertical-align: top;
}

@page {
  size: A4 portrait;
  margin: 6mm;
}
.cv-export-header__avatar {
  vertical-align: top;
  width: 140px;
}
.cv-export-info__cell {
  vertical-align: top;
  width: 33.33%;
}
.cv-export-info__cell h5,
.cv-export-info__cell p {
  text-align: center;
}
.cv-export-info__cell {
  text-align: center;
}
.cv-export-section {
  border-top: 1px solid color-mix(in srgb, var(--color-primary, #8d1530) 35%, var(--border-color, #e5e7eb));
  padding-top: 12px;
  margin-top: 12px;
}
.legacy-card-img { height: 220px; object-fit: cover; }
.member-headline {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Auth screens */
.auth-login-shell,
.auth-register-shell {
  --auth-ink: var(--text-color, #0f172a);
  --auth-primary: var(--color-primary, #4b5563);
  --auth-secondary: var(--color-secondary, #8d1530);
  --auth-card: var(--card-background, #ffffff);
  --auth-bg: var(--page-background, #f8fafc);
  --auth-border: var(--border-color, #e5e7eb);
  position: relative;
  border-radius: 28px;
  overflow: hidden;
}
.cv-row-grid .form-control,
.cv-row-grid .form-select,
.cv-form-grid .form-control,
.cv-form-grid .form-select { width: 100%; }

@media (max-width: 767.98px) {
  .cv-form-grid,
  .cv-row-grid { grid-template-columns: 1fr; }
  .cv-row-grid {
    gap: 12px;
    background: transparent;
    padding: 0;
  }
  .cv-row-grid .cv-field {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
  }
  .cv-field--span-2,
  .cv-field--span-3 { grid-column: span 1; }
  .cv-input-compact { max-width: 100%; }
}
.auth-login-shell { padding: 48px 16px; }
.auth-register-shell { padding: 44px 16px; }
.auth-login-shell {
  --auth-accent: var(--accent-color, #be123c);
  background: radial-gradient(circle at 12% 18%,
      color-mix(in srgb, var(--auth-secondary) 14%, transparent),
      transparent 45%),
    radial-gradient(circle at 88% 10%,
      color-mix(in srgb, var(--auth-primary) 18%, transparent),
      transparent 50%),
    linear-gradient(160deg,
      color-mix(in srgb, var(--auth-bg) 92%, #ffffff) 0%,
      color-mix(in srgb, var(--auth-bg) 80%, var(--auth-secondary)) 100%);
}
.auth-register-shell {
  background: radial-gradient(circle at 12% 18%,
      color-mix(in srgb, var(--auth-secondary) 12%, transparent),
      transparent 45%),
    radial-gradient(circle at 88% 10%,
      color-mix(in srgb, var(--auth-primary) 18%, transparent),
      transparent 50%),
    linear-gradient(160deg,
      color-mix(in srgb, var(--auth-bg) 94%, #ffffff) 0%,
      color-mix(in srgb, var(--auth-bg) 82%, var(--auth-secondary)) 100%);
}
.auth-login-shell::after,
.auth-register-shell::after {
  content: '';
  position: absolute;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--auth-secondary) 20%, transparent),
    color-mix(in srgb, var(--auth-primary) 20%, transparent));
  border-radius: 32px;
  pointer-events: none;
  opacity: 0.8;
}
.auth-login-shell::after {
  inset: 24px 18px auto auto;
  width: 140px;
  height: 140px;
  transform: rotate(8deg);
}
.auth-register-shell::after {
  inset: 20px 22px auto auto;
  width: 150px;
  height: 150px;
  transform: rotate(10deg);
  opacity: 0.85;
}
.auth-login-shell::before,
.auth-register-shell::before {
  content: '';
  position: absolute;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--auth-primary) 22%, transparent),
    transparent 70%);
  pointer-events: none;
}
.auth-login-shell::before {
  left: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
}
.auth-register-shell::before {
  left: -80px;
  bottom: -90px;
  width: 240px;
  height: 240px;
}
.auth-login-card {
  border: 1px solid color-mix(in srgb, var(--auth-border) 70%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--auth-card) 92%, transparent);
  box-shadow: 0 24px 50px rgba(18, 18, 18, 0.12);
  backdrop-filter: blur(12px);
}
.auth-login-card .card-body { padding: 28px; }
.auth-title {
  font-weight: 700;
  font-size: 2rem;
  color: var(--auth-primary);
  margin: 0 0 6px;
}
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--auth-card) 80%, var(--auth-bg));
  border: 1px solid var(--auth-border);
  color: var(--auth-primary);
  font-weight: 600;
  font-size: 0.85rem;
}
.auth-register-shell .auth-kicker { margin-bottom: 8px; }
.auth-subtitle {
  color: color-mix(in srgb, var(--auth-ink) 70%, transparent);
  font-size: 0.98rem;
}
.auth-login-shell .auth-subtitle { margin: 6px 0 18px; }
.auth-login-card .eplats-input::placeholder {
  color: color-mix(in srgb, var(--auth-ink) 55%, transparent);
}
.auth-input {
  border-radius: 12px;
  border-color: color-mix(in srgb, var(--auth-primary) 18%, var(--auth-border));
  background: var(--auth-card);
}
.auth-submit {
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--auth-primary) 0%, var(--auth-secondary) 100%);
  border-color: transparent;
}
.auth-submit:hover,
.auth-submit:focus { filter: brightness(1.04); }
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.auth-link {
  color: var(--link-color, var(--auth-primary));
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { color: var(--link-hover, var(--auth-secondary)); text-decoration: underline; }
.auth-login-card .captcha-compact { margin-top: 0; }
.auth-login-card .captcha-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-login-card .captcha-check .form-check-label { margin-bottom: 0; }
.auth-login-card .recaptcha-fit {
  width: 100%;
  min-height: 78px;
  overflow: hidden;
}
.auth-login-card .recaptcha-fit .recaptcha-scale {
  width: 304px;
  height: 78px;
}
.auth-login-card .recaptcha-fit [style],
.auth-login-card .recaptcha-fit {
  outline: none;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  animation: authReveal 0.7s ease forwards;
}
[data-reveal='2'] { animation-delay: 0.1s; }
[data-reveal='3'] { animation-delay: 0.16s; }
[data-reveal='4'] { animation-delay: 0.24s; }
@keyframes authReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-register-header { margin-bottom: 26px; }
.auth-section-title,
.auth-register-form .form-label { color: var(--auth-primary); }
.large-card {
  background: var(--auth-card);
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 25px;
  border: 1px solid var(--auth-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.required-grid,
.optional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 15px;
}
.required-grid .full-width-field,
.optional-grid .full-width-field {
  grid-column: 1 / -1;
}
.field-card {
  background: color-mix(in srgb, var(--auth-bg) 96%, var(--auth-primary) 4%);
  padding: 15px;
  border-radius: 12px;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--auth-border) 70%, transparent);
}
.subtle-card {
  background: color-mix(in srgb, var(--auth-bg) 96%, var(--auth-primary) 4%);
}
.field-card input:not([type='checkbox']):not([type='radio']),
.field-card select,
.field-card textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.field-card .form-check-input {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
html[dir="rtl"] .field-card input[type="email"],
html[dir="rtl"] .field-card input[name*="email"],
html[dir="rtl"] .field-card input[name*="mail"] {
  text-align: right;
}
html[dir="rtl"] .auth-register-form .form-control,
html[dir="rtl"] .auth-register-form .form-select,
html[dir="rtl"] .auth-register-form textarea {
  text-align: right;
}
.recaptcha-wrapper {
  transform: scale(0.95);
  transform-origin: top center;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 24px;
}
.modal-box {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  max-width: 860px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

/* User public profile */
.profile-hero-card {
  background: linear-gradient(135deg, var(--nav-start), var(--nav-end));
}
.profile-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35)),
    linear-gradient(135deg, var(--nav-start), var(--nav-end));
  mix-blend-mode: normal;
}
.profile-hero-content {
  position: relative;
  z-index: 1;
}
.profile-flag-img {
  width: 20px;
  height: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px;
  object-fit: cover;
}
.profile-badge-pill {
  font-size: 0.9rem;
  min-height: 25px;
  padding: 4px 10px;
  border-radius: 10px;
}
.profile-badge-square {
  width: 25px;
  height: 25px;
  padding: 0;
  border-radius: 8px;
  font-size: 0.9rem;
}
.profile-badge-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.bg-soft { background: #f8fafc; }

/* User public profile */
.profile-hero {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}
.profile-hero.rtl { direction: rtl; justify-content: flex-start; }
.profile-hero:not(.rtl) { direction: ltr; justify-content: flex-start; }
.profile-hero .badges { width: 100%; justify-content: flex-start; }
.profile-avatar-stack { min-width: 140px; text-align: center; }
.profile-basic-card {
  background: color-mix(in srgb, var(--auth-primary) 10%, var(--auth-card));
  border-color: var(--auth-border);
  color: var(--auth-ink);
}
.profile-basic-card.card {
  border-radius: 22px;
}
.profile-basic-card.card {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.profile-basic-card .card-body {
  background: transparent;
}
.profile-basic-card .profile-avatar-frame {
  background: var(--auth-card);
  border-color: var(--auth-border);
}
.profile-basic-card .profile-nickname-row span {
  color: var(--auth-ink);
}
.profile-basic-card .text-muted {
  color: color-mix(in srgb, var(--auth-ink) 60%, transparent);
}
.profile-basic-card .profile-badge-pill,
.profile-basic-card .profile-badge-square {
  background: color-mix(in srgb, var(--auth-primary) 10%, var(--auth-card)) !important;
  color: var(--auth-ink) !important;
  border-color: var(--auth-border) !important;
}
.profile-basic-card .badge.bg-light {
  background: color-mix(in srgb, var(--auth-primary) 10%, var(--auth-card)) !important;
  color: var(--auth-ink) !important;
  border-color: var(--auth-border) !important;
}
.profile-basic-card .profile-avatar-initials {
  background: color-mix(in srgb, var(--auth-primary) 8%, var(--auth-card)) !important;
  color: var(--auth-ink) !important;
}
.profile-nickname-row { direction: ltr; unicode-bidi: plaintext; }
.profile-edit-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  padding: 0;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
}
.profile-edit-btn:hover { background: rgba(255,255,255,0.12); }
.profile-edit-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}
.profile-badge-icon-only {
  justify-content: center;
  padding-inline: 8px !important;
}
.profile-badge-icon,
.profile-email-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.profile-page-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: linear-gradient(120deg, var(--nav-start, var(--primary, #701a1a)) 0%, var(--nav-end, var(--secondary, #b21f4b)) 100%);
}
.profile-page-header__container {
  max-width: 100%;
  padding-inline: 24px;
}
.profile-page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  min-height: 56px;
  flex-wrap: nowrap;
  direction: ltr;
}
:dir(rtl) .profile-page-header__inner { direction: rtl; }
.profile-page-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-inverse, #fff);
  font-weight: 600;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.profile-page-header__btn--static {
  font-size: 16px;
  font-weight: 800;
}
.profile-page-header__user { cursor: pointer; }
.profile-page-header__btn--static { user-select: none; }
.profile-page-header__user {
  gap: 8px;
  background: linear-gradient(120deg, var(--nav-start, var(--primary, #701a1a)) 0%, var(--nav-end, var(--secondary, #b21f4b)) 100%);
  border-color: rgba(255,255,255,0.22);
}
.profile-page-header__user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.22);
  flex: 0 0 auto;
}
.profile-page-header__user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-page-header__user-avatar-fallback {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-inverse, #fff);
}
.profile-page-header__tools {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.profile-page-header__nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-page-header__nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  padding: 0;
  scrollbar-width: none;
}
.profile-page-header__nav-links::-webkit-scrollbar { height: 0; }
.profile-page-header__nav-link { white-space: nowrap; }
.profile-page-header__nav-form { margin: 0; }
.profile-page-header__nav .dropdown { position: relative; }
.profile-page-header__nav .dropdown-menu { position: absolute; z-index: 1055; }
.profile-page-header__nav .dropdown-menu.show { display: block; }
.profile-tools-manage-card {
  background: var(--bg-card, #fff);
  border-color: var(--border-default, #e5e7eb);
}
.profile-tools-manage-card .table {
  color: var(--text-primary, #111827);
}
.profile-tools-manage-table {
  font-size: 0.72rem;
}
.profile-tools-manage-table thead th,
.profile-tools-manage-table tbody td {
  padding: 0.5rem 0.6rem;
  vertical-align: middle;
}
.profile-tools-manage-card .form-check-label {
  font-size: 0.8rem;
}
.profile-tools-manage-card .form-control,
.profile-tools-manage-card .form-select {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  min-height: 2rem;
}
.profile-tools-manage-card .form-check-input {
  width: 1.1rem;
  height: 0.65rem;
}
.profile-tools-manage-card .form-check-input::before {
  width: 0.5rem;
  height: 0.5rem;
}
.profile-tools-manage-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}
.profile-tools-manage-card .icon-preview {
  width: 42px;
  height: 42px;
  padding: 0.35rem;
}
.profile-tools-manage-table thead th {
  background: var(--bg-section, #f8fafc);
  color: var(--text-primary, #111827);
  border-color: var(--border-muted, #e5e7eb);
  white-space: nowrap;
}
.profile-tools-manage-table thead th.profile-tools-head--wrap {
  white-space: normal;
  line-height: 1.2;
}
.profile-tools-manage-table {
  table-layout: fixed;
  width: 100%;
}
.profile-tools-manage-table .profile-tools-col--order {
  width: 48px;
}
.profile-tools-manage-table .profile-tools-col--icon {
  width: 60px;
}
.profile-tools-manage-table .profile-tools-col--tool {
  width: 140px;
}
.profile-tools-manage-table .profile-tools-col--execution {
  width: 110px;
}
.profile-tools-manage-table .profile-tools-col--activation,
.profile-tools-manage-table .profile-tools-col--comments,
.profile-tools-manage-table .profile-tools-col--ratings,
.profile-tools-manage-table .profile-tools-col--home-show {
  width: 70px;
}
.profile-tools-manage-table .profile-tools-col--visibility,
.profile-tools-manage-table .profile-tools-col--team {
  width: 120px;
}
.profile-tools-manage-table .profile-tools-col--home-count {
  width: 90px;
}
.profile-tools-col--home-count .form-control {
  font-size: 0.7rem;
  padding: 0.15rem 0.25rem;
  min-height: 1.4rem;
  width: 3.1rem;
}
.profile-tools-home-limit {
}
.profile-tools-manage-table tbody td {
  border-color: var(--border-muted, #e5e7eb);
}
.profile-tools-manage-badge {
  background: var(--bg-section, #f3f4f6);
  color: var(--text-primary, #111827);
  border: 1px solid var(--border-muted, #e5e7eb);
  font-weight: 600;
}
.profile-tools-manage-card .form-check-input:checked {
  background-color: var(--primary, #6366f1);
  border-color: var(--primary, #6366f1);
}
.profile-tools-manage-card .form-check-input:focus {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}
.profile-tools-manage-card .icon-preview {
  background: var(--bg-card, #fff);
  border-color: var(--border-muted, #e5e7eb);
}
.shared-tool-card__title {
  color: var(--text-primary, #111827);
}
.shared-tool-card__title-sep {
  color: var(--text-primary, #111827);
}
.shared-tool-card__title-team {
  color: var(--primary, #6366f1);
  text-decoration: none;
}
.shared-tool-card__title-team:hover,
.shared-tool-card__title-team:focus {
  color: var(--primary, #6366f1);
  text-decoration: none;
}
.shared-tool-card__divider {
  height: 1px;
  background: var(--border-muted, #e5e7eb);
  margin: 8px 0 10px;
}
.card {
  border-radius: 24px;
  --bs-card-border-radius: 24px;
  overflow: hidden;
}
.shared-tool-card {
  border: 1px solid var(--border-muted, #e5e7eb);
}
.shared-tools-shell {
  padding: 6px 0 24px;
}
.shared-tools-shell[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .shared-tools-layout {
  flex-direction: row-reverse !important;
}
html[dir="rtl"] .shared-tools-layout .profile-tool-sidebar-col {
  order: 2 !important;
}
html[dir="rtl"] .shared-tools-layout .profile-tool-content-col {
  order: 1 !important;
}
.shared-tools-shell {
  margin-top: calc(var(--spacing-unit, 12px) * 6);
}
.shared-tools-sidebar-col {
  margin-top: calc(var(--spacing-unit, 12px) * 6);
}
.shared-tools-hero {
  background: linear-gradient(135deg, rgba(248, 240, 244, 0.9), rgba(255, 255, 255, 0.9));
}
.shared-tools-title {
  text-align: start;
}
.shared-tools-sidebar__list {
  display: grid;
  gap: 12px;
}
.shared-tools-sidebar__item {
  text-decoration: none;
  border: 1px solid var(--border-muted, #e5e7eb);
}
.shared-tools-sidebar__item:hover {
  border-color: var(--primary, #6366f1);
}
.shared-tools-sidebar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.shared-tools-sidebar__title-link {
  text-decoration: none;
  color: inherit;
}
.shared-tools-sidebar__toggle {
  padding: 6px;
  border: 1px solid var(--border-muted, #e5e7eb);
  border-radius: 10px;
  background: var(--bg-card, #fff);
  line-height: 1;
}
.shared-tools-sidebar__chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted, #6b7280);
  border-bottom: 2px solid var(--text-muted, #6b7280);
  transform: rotate(45deg);
}
.shared-tools-sidebar__toggle[aria-expanded="true"] .shared-tools-sidebar__chevron {
  transform: rotate(-135deg);
}
.shared-tools-sidebar__submenu {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.shared-tools-sidebar__submenu-link {
  display: block;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--bg-section, #f3f4f6);
  color: var(--text-primary, #111827);
  text-decoration: none;
}
.shared-tools-sidebar__submenu-link:hover {
  color: var(--primary, #6366f1);
}
.shared-tools-sidebar__title {
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin-bottom: 4px;
}
.shared-tools-sidebar__meta {
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
}
.shared-tools-sidebar__note {
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
}
.shared-tool-card__view-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary, #6366f1);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.shared-tool-card__view-link:hover {
  color: var(--primary, #6366f1);
}
.shared-tool-card__meta {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text-muted, #6b7280);
}
.shared-tool-card__meta-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.shared-tool-card__meta-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  justify-content: center;
}
.shared-tool-card__meta-label {
  color: var(--primary, #6366f1);
}
.shared-tool-card__meta-value {
  color: var(--text-muted, #6b7280);
  text-decoration: none;
}
.shared-tool-card__meta-value:hover,
.shared-tool-card__meta-value:focus {
  color: var(--text-muted, #6b7280);
  text-decoration: none;
}
@media (max-width: 575.98px) {
  .shared-tool-card__meta-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}
.shared-tool-card__result-link {
  color: var(--primary, #6366f1);
}
.shared-tool-card__result-link:hover {
  color: var(--primary, #6366f1);
}
.profile-user-nav-menu {
  direction: inherit;
  text-align: start;
}
.profile-user-nav-menu[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
.profile-user-nav-menu[dir="rtl"] .dropdown-item {
  text-align: right;
}
.profile-user-nav-menu[dir="ltr"] {
  direction: ltr;
  text-align: left;
}
.profile-user-nav-menu[dir="ltr"] .dropdown-item {
  text-align: left;
}
.profile-page-header__tools .tool-admin-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  padding: 0;
}
.profile-page-header__tools .tool-admin-toolbar::-webkit-scrollbar { height: 4px; }
.profile-page-header__tools .tool-admin-toolbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 999px; }
.profile-page-header__tools .btn.btn-outline-secondary {
  height: 34px;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255,255,255,0.14) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  color: var(--text-inverse, #fff) !important;
}
.profile-page-header__tools .tool-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 0;
}
.profile-page-header__tools .btn.btn-outline-secondary:hover,
.profile-page-header__tools .btn.btn-outline-secondary:focus {
  background: rgba(255,255,255,0.20) !important;
  border-color: rgba(255,255,255,0.28) !important;
  color: var(--text-inverse, #fff) !important;
}
.profile-page-header__tools .btn.btn-outline-secondary:focus-visible {
  outline: 2px solid rgba(255,255,255,0.40);
  outline-offset: 2px;
}
.signature-copyright {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  vertical-align: -0.12em;
  transform: none;
  margin-inline-start: 3px;
  margin-inline-end: 0;
}
.signature-copyright--brand {
  margin-inline-start: 0;
  margin-inline-end: 4px;
}
.signature-brand-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.profile-page-footer__legal .signature-brand-link {
  color: var(--nav-start, var(--primary, #4b5563));
}
.signature-brand-link:hover,
.signature-brand-link:focus {
  text-decoration: underline;
}
.profile-page-header__btn:hover { background: rgba(255,255,255,0.20); color: var(--text-inverse, #fff); }
.profile-page-header__lang { margin: 0; }
.profile-page-header__theme { margin: 0; }
.profile-page-header__auth { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.profile-page-header__auth-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border-radius: 12px;
  padding: 0 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 14px;
}
.profile-page-header__auth-btn--secondary {
  background: rgba(255,255,255,0.14);
  color: var(--text-inverse, #fff);
}
.profile-page-header__auth-btn--secondary:hover { background: rgba(255,255,255,0.20); color: var(--text-inverse, #fff); }
.profile-page-header__auth-btn--primary {
  background: var(--button-bg, #be123c);
  border-color: var(--button-bg, #be123c);
  color: var(--button-text, #fff);
}
.profile-page-header__auth-btn--primary:hover {
  background: var(--button-hover, var(--button-bg, #be123c));
  border-color: var(--button-hover, var(--button-bg, #be123c));
  color: var(--button-text, #fff);
}
.profile-tool-sidebar { position: static; }
.profile-tool-sidebar-stack {
  position: sticky;
  top: 0;
  z-index: 3;
}
.profile-tool-sidebar.profile-tool-sidebar__shared {
  position: static;
  top: auto;
  z-index: 1;
}
.profile-tool-sidebar-col { display: none; }
.profile-tool-sidebar-toggle { display: block; }
.profile-tool-sidebar .card {
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border-color, #e5e7eb) 70%, transparent);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--card-background, #ffffff) 94%, var(--color-primary, #8d1530) 6%),
      var(--card-background, #ffffff));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.profile-tool-sidebar .card-body { padding: 18px; }
.profile-tool-sidebar .accordion-item {
  border-radius: 14px;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--border-color, #e5e7eb) 70%, transparent);
  background: color-mix(in srgb, var(--card-background, #ffffff) 96%, var(--color-primary, #8d1530) 4%);
}
.profile-tool-sidebar .accordion-item + .accordion-item { margin-top: 12px; }
.profile-tool-sidebar .accordion-button {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: start;
  background: transparent;
  color: var(--text-color, #0f172a);
  border: 0;
  box-shadow: none;
}
.profile-tool-sidebar .accordion-button:not(.collapsed) {
  background: color-mix(in srgb, var(--color-primary, #8d1530) 10%, #fff);
  color: var(--color-primary, #8d1530);
}
.profile-tool-sidebar .accordion-button:focus {
  border-color: transparent;
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-primary, #8d1530) 22%, transparent);
}
.profile-tool-sidebar .accordion-body { padding: 10px 14px 14px; }
.profile-tool-sidebar .accordion-collapse { overflow: visible; }
.profile-tool-accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.profile-tool-sidebar[dir="rtl"] .profile-tool-accordion-header { flex-direction: row-reverse; }
.profile-tool-accordion-header .accordion-button {
  width: 38px;
  max-width: 38px;
  flex: 0 0 38px;
  min-width: 38px;
  padding: 6px 8px;
  justify-content: center;
  border-radius: 12px;
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--border-color, #e5e7eb) 40%, #fff);
}
.profile-tool-accordion-header .accordion-button::after {
  margin-left: 0;
  margin-right: 0;
}
.profile-tool-heading-link {
  flex: 1;
  font-weight: 700;
  color: var(--text-color, #0f172a);
  text-decoration: none;
  text-align: start;
  font-size: 0.98rem;
  position: relative;
  z-index: 1;
}
.profile-tool-heading-link { line-height: 1.4; }
.profile-tool-heading-link:hover,
.profile-tool-heading-link:focus {
  text-decoration: none;
  color: var(--text-color, #0f172a);
}
.profile-tool-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-tool-link {
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text-color, #0f172a);
  text-decoration: none;
  text-align: start;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--card-background, #ffffff) 92%, var(--border-color, #e5e7eb) 8%);
}
.profile-tool-link:hover,
.profile-tool-link:focus {
  text-decoration: none;
  background: color-mix(in srgb, var(--color-primary, #8d1530) 12%, #fff);
  border-color: color-mix(in srgb, var(--color-primary, #8d1530) 24%, transparent);
}
.profile-tool-sub-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-inline-start: 8px;
}
.profile-tool-link--sub {
  font-size: 0.92rem;
  padding: 6px 10px;
  border-radius: 10px;
}
.profile-sidebar-quicklinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.profile-tool-sidebar__card {
  margin-bottom: 12px;
}

.profile-tool-sidebar .profile-tool-sidebar__card:last-child {
  margin-bottom: 0;
}
.profile-sidebar-quicklinks__collapse {
  margin-top: 8px;
}
.profile-sidebar-quicklinks__toggle {
  width: 100%;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px;
  font-weight: 700;
  color: var(--text-color, #0f172a);
  font-size: 1rem;
}
.profile-sidebar-quicklinks__toggle:focus {
  outline: 2px solid color-mix(in srgb, var(--color-primary, #8d1530) 24%, transparent);
  outline-offset: 2px;
  border-radius: 8px;
}
.profile-sidebar-quicklinks__toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--border-color, #e5e7eb) 35%, #fff);
  position: relative;
  flex: 0 0 auto;
}
.profile-sidebar-quicklinks__toggle-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  color: var(--text-color, #0f172a);
}
.profile-sidebar-quicklinks__toggle:not(.collapsed) .profile-sidebar-quicklinks__toggle-icon::before {
  transform: rotate(-135deg);
}
.profile-sidebar-quicklinks__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-background, #ffffff) 94%, var(--border-color, #e5e7eb) 6%);
}
.profile-sidebar-quicklinks__label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-color, #0f172a);
}
.profile-sidebar-quicklinks__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-sidebar-quicklinks__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--card-background, #ffffff) 92%, var(--border-color, #e5e7eb) 8%);
  color: var(--text-color, #0f172a);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.profile-sidebar-quicklinks__link:hover,
.profile-sidebar-quicklinks__link:focus {
  text-decoration: none;
  background: color-mix(in srgb, var(--color-primary, #8d1530) 12%, #fff);
  border-color: color-mix(in srgb, var(--color-primary, #8d1530) 24%, transparent);
}
.profile-sidebar-quicklinks__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-primary, #8d1530);
  color: var(--text-inverse, #fff);
  font-size: 0.72rem;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}
.profile-tool-sidebar[dir="rtl"] .accordion-button,
.profile-tool-sidebar[dir="rtl"] .profile-tool-link {
  text-align: right;
}
.profile-tool-sidebar[dir="rtl"] .profile-tool-heading-link { text-align: right; }
.profile-tool-sidebar[dir="ltr"] .profile-tool-heading-link { text-align: left; }
.profile-tool-sidebar[dir="ltr"] .accordion-button,
.profile-tool-sidebar[dir="ltr"] .profile-tool-link {
  text-align: left;
}
.profile-tool-sidebar[dir="rtl"] .accordion-button::after {
  margin-left: 0;
  margin-right: auto;
}
.profile-tool-empty {
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--border-color, #e5e7eb) 70%, transparent);
  background: color-mix(in srgb, var(--card-background, #ffffff) 88%, transparent);
}
.profile-home-feed {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border-color, #e5e7eb) 70%, transparent);
  background: color-mix(in srgb, var(--card-background, #ffffff) 94%, transparent);
  padding: 16px;
}
.profile-home-feed-table {
  margin-bottom: 0;
}
.profile-home-feed-table thead th {
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
  background: var(--bg-overlay, #f1f5f9);
  border-bottom: 1px solid color-mix(in srgb, var(--border-color, #e5e7eb) 85%, transparent);
}
.profile-home-feed-table tbody td {
  vertical-align: middle;
}
.profile-home-feed__col--visits,
.profile-home-feed__col--comments {
  width: 90px;
}
.profile-home-feed__col--visibility {
  width: 80px;
}
.profile-home-feed__col--date {
  width: 130px;
}
.profile-home-feed__col--last-comment {
  width: 170px;
}
.profile-home-feed__title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-home-feed__title {
  color: var(--text-color, #0f172a);
  font-weight: 600;
  text-decoration: none;
}
.profile-home-feed__title,
.profile-home-feed__primary,
.profile-home-feed__last-commenter {
  font-size: 1rem;
  line-height: 1.4;
}
.profile-home-feed__primary {
  font-weight: 600;
}
.profile-home-feed__title:hover,
.profile-home-feed__title:focus {
  text-decoration: underline;
}
.profile-home-feed__excerpt {
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-home-feed__meta {
  margin-top: 2px;
}
.profile-home-feed__group-link {
  color: var(--color-primary, #9f1239);
  font-weight: 600;
  text-decoration: none;
}
.profile-home-feed__group-link:hover,
.profile-home-feed__group-link:focus {
  text-decoration: underline;
}
.profile-home-feed__tool .badge {
  font-weight: 600;
}
.profile-home-feed__new {
  font-size: 0.75rem;
}
.profile-home-feed__last-comment {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  text-align: center;
  unicode-bidi: isolate;
}
.profile-home-feed__last-commenter-link {
  color: var(--text-color, #0f172a);
  text-decoration: none;
  font-weight: 600;
}
.profile-home-feed__last-commenter-link:hover,
.profile-home-feed__last-commenter-link:focus {
  text-decoration: underline;
}
.profile-home-feed__separator {
  color: var(--text-muted, #6b7280);
}
.profile-home-feed__last-comment-date {
  justify-content: center;
  white-space: nowrap;
}
.profile-home-feed-group + .profile-home-feed-group {
  border-top: 1px solid color-mix(in srgb, var(--border-color, #e5e7eb) 70%, transparent);
  padding-top: 16px;
}
@media (max-width: 992px) {
  .profile-tool-sidebar {
    position: static;
    top: auto;
  }
}
@media (min-width: 992px) {
  .profile-tool-sidebar-col { display: block; }
  .profile-tool-sidebar-toggle { display: none; }
  .profile-tool-sidebar-col {
    flex: 0 0 var(--profile-tool-sidebar-width, 240px);
    max-width: var(--profile-tool-sidebar-width, 240px);
  }
  .profile-tool-content-col.col-lg-9,
  .profile-tool-content-col.col-lg-10,
  .profile-tool-content-col.col-lg-12 {
    flex: 1 1 0;
    max-width: calc(100% - var(--profile-tool-sidebar-width, 240px));
  }
}
.profile-page-header__controls { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.profile-page-header__select--theme { min-width: 110px; }
.profile-page-header__select {
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.14);
  color: var(--text-inverse, #fff);
  padding: 0 10px;
  font-weight: 600;
  font-size: 14px;
}
.profile-page-header__select option { color: #111; }

@media (max-width: 992px) {
  .profile-page-header .profile-page-header__inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
  }
  .profile-page-header .profile-page-header__user {
    order: 1;
    padding: 0 8px;
  }
  .profile-page-header .profile-page-header__user-name {
    display: none;
  }
  .profile-page-header .profile-page-header__controls {
    order: 2;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }
  .profile-page-header .profile-page-header__controls::-webkit-scrollbar { height: 0; }
  .profile-page-header .profile-page-header__controls > * { flex: 0 0 auto; }

  .profile-page-header .profile-page-header__tools {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }
  .profile-page-header .profile-page-header__nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    justify-content: flex-start;
  }
  .profile-page-header .tool-admin-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .profile-page-header .tool-admin-toolbar::-webkit-scrollbar { height: 0; }

  .profile-page-header .profile-page-header__select { min-width: 78px; }
  .profile-page-header .profile-page-header__select--theme { min-width: 86px; }
}

.profile-page-footer {
  margin-top: 24px;
  background: transparent;
  color: var(--text-color, #0f172a);
  position: relative;
  z-index: 30;
}
.profile-page-footer__legal { background: transparent; }
.profile-page-footer__notice { opacity: 0.95; color: var(--text-color, #0f172a); }
.profile-page-footer__links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.profile-page-footer__link {
  --footer-pill: var(--nav-start, #4b5563);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--footer-pill) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--footer-pill) 28%, transparent);
  color: var(--footer-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.profile-page-footer__link:hover,
.profile-page-footer__link:focus {
  background: var(--footer-pill);
  border-color: var(--footer-pill);
  color: var(--text-inverse, #fff);
  text-decoration: underline;
}
.profile-page-footer__link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--footer-pill) 45%, transparent);
  outline-offset: 2px;
}
.profile-page-footer__bar {
  background: linear-gradient(120deg, var(--nav-start, var(--primary, #701a1a)) 0%, var(--nav-end, var(--secondary, #b21f4b)) 100%);
  color: var(--text-inverse, #fff);
}
.profile-page-footer__copyright {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.95;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text-inverse, #fff);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Tool admin card dropdowns */
.tool-admin-card { overflow: visible; position: relative; z-index: 20; }
.tool-admin-card .card-body { overflow: visible; }
.tool-admin-card .dropdown { position: relative; overflow: visible; }
.tool-admin-toolbar { justify-content: flex-start; }
.tool-admin-card .btn.btn-outline-secondary {
  background: rgba(255,255,255,0.14) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  color: var(--text-inverse, #fff) !important;
}
.tool-admin-card .btn.btn-outline-secondary:hover,
.tool-admin-card .btn.btn-outline-secondary:focus {
  background: rgba(255,255,255,0.20) !important;
  border-color: rgba(255,255,255,0.28) !important;
  color: var(--text-inverse, #fff) !important;
}
.tool-admin-card .btn.btn-outline-secondary:focus-visible {
  outline: 2px solid rgba(255,255,255,0.40);
  outline-offset: 2px;
}
.tool-admin-card .dropdown-menu {
  z-index: 1050;
  min-width: 100%;
  width: 100%;
  top: calc(100% + 2px);
  left: 0;
  border-radius: 12px;
}
.tool-admin-dropdown-menu {
  border-radius: 12px;
}
.profile-user-dropdown-menu {
  max-width: 90vw;
}
.tool-admin-dropdown-menu.show {
  display: block;
}
:root .profile-user-dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 8px 12px;
  line-height: 1.1;
  white-space: nowrap;
}
.tool-admin-dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 8px 12px;
  line-height: 1.1;
  white-space: nowrap;
}
.tool-admin-card .dropdown-menu.show { display: block; position: absolute; }
:dir(rtl) .tool-admin-card .dropdown-menu {
  left: auto;
  right: 0;
  text-align: right;
}
:dir(rtl) .tool-admin-card .dropdown-menu .dropdown-item { text-align: right; }
:dir(rtl) .tool-admin-dropdown-menu .dropdown-item { text-align: right; }

/* Admin forms: full-width vertical layouts */
.settings-stack,
.settings-narrow,
.page-form-wrapper {
  max-width: 100% !important;
  width: 100% !important;
}
.settings-stack {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-block {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

/* Release notes admin: auto direction based on content */
.release-notes-admin {
  direction: inherit;
  text-align: inherit;
}
.release-notes-admin[dir="rtl"],
.release-notes-admin:dir(rtl) {
  direction: rtl;
  text-align: right;
}
.release-notes-admin[dir="ltr"],
.release-notes-admin:dir(ltr) {
  direction: ltr;
  text-align: left;
}
.release-notes-admin[dir="rtl"] .nav.nav-pills,
.release-notes-admin:dir(rtl) .nav.nav-pills {
  flex-direction: row;
  justify-content: flex-start;
}
.release-notes-admin .form-control,
.release-notes-admin .form-select {
  text-align: start;
}
.release-notes-admin[dir="rtl"] .settings-block .row {
  direction: rtl;
}
.release-notes-admin[dir="rtl"] .settings-block .col-form-label,
.release-notes-admin[dir="rtl"] .settings-block .form-label,
.release-notes-admin[dir="rtl"] .form-control,
.release-notes-admin[dir="rtl"] .form-select {
  text-align: right !important;
}

/* Release notes: avoid narrow create pane */
body[data-admin-theme="1"] .release-create-pane .settings-stack,
body[data-admin-theme="1"] .release-create-pane .settings-narrow {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

body[data-admin-theme="1"] .page-form-wrapper .form-control,
body[data-admin-theme="1"] .page-form-wrapper .form-control-sm,
body[data-admin-theme="1"] .page-form-wrapper .form-select,
body[data-admin-theme="1"] .page-form-wrapper textarea {
  text-align: start !important;
  direction: inherit !important;
}

body[data-admin-theme="1"] .page-form-wrapper input[name="title"],
body[data-admin-theme="1"] .page-form-wrapper input[name="slug"],
body[data-admin-theme="1"] .page-form-wrapper select[name="status"],
body[data-admin-theme="1"] .page-form-wrapper input[name="sort_order"] {
  max-width: 520px;
  width: 100%;
  margin-inline-end: auto;
}

:dir(rtl) body[data-admin-theme="1"] .page-form-wrapper .row {
  direction: rtl;
}

/* Site static pages */
.site-page-title {
  font-family: var(--font-family, 'Cairo'), sans-serif;
  color: var(--color-primary, var(--text-primary, #0f172a));
  font-weight: 700;
}
.page-content {
  color: var(--text-secondary, #1f2937);
  line-height: var(--line-height, 1.6);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.page-content [style] {
  outline: none !important;
}


/* resources/views/partials/date-hint-styles.blade.php */
.date-hint-field {
    position: relative;
  }
  .date-hint-field::after {
    content: attr(data-hint);
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
  }
  .date-hint-field.is-focused::after {
    content: attr(data-hint-focus);
  }
  html[dir="rtl"] .date-hint-field::after {
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
  }
  html[dir="rtl"] .date-hint-input {
    direction: ltr;
    text-align: right;
  }
  .date-hint-field:not(.is-filled):not(.is-typing) .date-hint-input {
    color: transparent;
  }
  .date-hint-field:not(.is-filled):not(.is-typing) .date-hint-input::-webkit-datetime-edit,
  .date-hint-field:not(.is-filled):not(.is-typing) .date-hint-input::-webkit-datetime-edit-text,
  .date-hint-field:not(.is-filled):not(.is-typing) .date-hint-input::-webkit-datetime-edit-month-field,
  .date-hint-field:not(.is-filled):not(.is-typing) .date-hint-input::-webkit-datetime-edit-day-field,
  .date-hint-field:not(.is-filled):not(.is-typing) .date-hint-input::-webkit-datetime-edit-year-field {
    color: transparent;
  }
  .date-hint-field.is-filled::after {
    opacity: 0;
  }
  .date-hint-field.is-typing::after {
    opacity: 0;
  }


/* resources/views/partials/country-select-styles.blade.php */
.country-select { position: relative; }
  .country-select__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: start;
  }
  .country-select__toggle::after {
    content: '▾';
    font-size: 0.85rem;
    opacity: 0.7;
  }
  .country-select__value.is-placeholder {
    color: var(--muted-text, rgba(15, 23, 42, 0.55));
  }
  .country-select__menu {
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% + 6px);
    width: 100%;
    background: var(--card-background, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    display: none;
    z-index: 20;
    overflow: hidden;
  }
  .country-select__menu.is-open { display: block; }
  .country-select__search-wrap { padding: 10px 10px 0; }
  .country-select__list {
    max-height: 260px;
    overflow-y: auto;
    padding: 8px 0 12px;
  }
  .country-select__group-label {
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted-text, rgba(15, 23, 42, 0.6));
  }
  .country-select__option {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 8px 14px;
    text-align: start;
    cursor: pointer;
  }
  .country-select__option:hover {
    background: color-mix(in srgb, var(--color-primary, #7c3aed) 10%, transparent);
  }
  .country-select__option[aria-selected='true'] {
    background: color-mix(in srgb, var(--color-primary, #7c3aed) 18%, transparent);
    font-weight: 600;
  }


/* resources/views/site/home.blade.php */
.explore-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-default, #e5e7eb);
    border-radius: 12px;
  }

  .home-banner {
    border-radius: 16px;
    border: 1px solid var(--border-default, #e5e7eb);
    color: var(--text-inverse, #fff);
    background: linear-gradient(135deg, var(--primary, #4b5563), var(--accent, #be123c));
  }
  .home-banner h3,
  .home-banner p,
  .home-banner a {
    color: var(--text-inverse, #fff);
  }

  .home-progress {
    --progress-value: 0%;
  }
  .home-progress.progress-sm { height: 8px; }
  .home-progress .progress-bar {
    background: var(--accent, #be123c);
    width: var(--progress-value, 0%);
  }

  .home-ticker {
    background: var(--secondary, #8d1530);
    color: var(--text-inverse, #fff) !important;
    border: 1px solid var(--border_default, #e5e7eb);
  }
  .home-ticker .ticker-body {
    color: var(--text-inverse, #fff) !important;
    opacity: 0.8;
  }
  .home-ticker strong,
  .home-ticker span,
  .home-ticker a {
    color: var(--text-inverse, #fff) !important;
  }

  .home-link-box {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-default, #e5e7eb);
    color: var(--text-primary, #0f172a);
  }
  .home-link-box p { color: var(--text-muted, #6b7280); }

  .btn-link,
  .home-link-box a {
    color: var(--accent, #be123c) !important;
  }
  .btn-link:hover,
  .home-link-box a:hover {
    color: var(--secondary, #8d1530) !important;
  }


/* resources/views/site/landing.blade.php */
.home-hero {
    background: linear-gradient(135deg, var(--bg-section, #f5f7fa), var(--bg-card, #fff));
    background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--nav-start, #4b5563) 12%, #ffffff),
      color-mix(in srgb, var(--nav-end, #8d1530) 10%, #ffffff)
    );
    border: 1px solid var(--border-muted, #f1f5f9);
    border-radius: 16px;
    padding: 28px;
    color: var(--text-primary, #0f172a);
  }
  .home-hero h1,
  .home-hero h2,
  .home-feature h2 {
    color: color-mix(in srgb, var(--nav-end, #8d1530) 55%, var(--text-primary, #0f172a));
    font-weight: 800;
  }
  .home-hero .text-muted { color: var(--text-secondary, #1f2937) !important; }
  .home-hero .stat-label { color: var(--text-muted, #6b7280); }
	  .home-hero .hero-actions .btn {
	    display: inline-flex;
	    align-items: center;
	    justify-content: center;
	    height: 28px;
	    padding: 0 12px;
	    border-radius: 12px;
	    font-weight: 800;
	    font-size: 14px;
	    line-height: 1;
	    white-space: nowrap;
	  }
	  .home-hero .hero-actions .btn-primary {
	    background: linear-gradient(120deg, var(--nav-start, #4b5563) 0%, var(--nav-end, #8d1530) 100%);
	    border: 1px solid rgba(0,0,0,0.10);
	    color: var(--text-inverse, #fff);
	  }
	  .home-hero .hero-actions .btn-primary:hover,
	  .home-hero .hero-actions .btn-primary:focus {
	    filter: brightness(1.02);
	    color: var(--text-inverse, #fff);
	  }
	  .home-hero .hero-actions .btn-outline-primary {
	    color: var(--nav-end, #8d1530);
	    border-color: rgba(0,0,0,0.14);
	    background: transparent;
	  }
	  .home-hero .hero-actions .btn-outline-primary:hover,
	  .home-hero .hero-actions .btn-outline-primary:focus {
	    color: var(--text-inverse, #fff);
	    border-color: rgba(0,0,0,0.10);
	    background: linear-gradient(120deg, var(--nav-start, #4b5563) 0%, var(--nav-end, #8d1530) 100%);
	  }
	  .home-hero .hero-actions .btn-outline-secondary {
	    border-color: rgba(0,0,0,0.14);
	    color: var(--text-primary, #0f172a);
	  }
  .home-hero .hero-kicker {
    font-weight: 800;
    color: var(--accent, var(--accent-color, #be123c));
    letter-spacing: 0.2px;
  }
  .home-membership-title {
    font-size: 1.45rem;
  }

  .home-feature {
    border-radius: 16px;
    border: 1px solid var(--border-default, #e5e7eb);
    background: color-mix(in srgb, var(--nav-start, #4b5563) 6%, #ffffff);
  }
	  .home-feature__icon {
	    width: 40px;
	    height: 40px;
	    border-radius: 12px;
	    display: inline-flex;
	    align-items: center;
	    justify-content: center;
	    color: var(--text-inverse, #fff);
	    background:
	      linear-gradient(rgba(255,255,255,0.14), rgba(255,255,255,0.14)),
	      linear-gradient(120deg, var(--nav-start, #4b5563) 0%, var(--nav-end, #8d1530) 100%);
	    border: 1px solid rgba(255,255,255,0.22);
	  }
	  .home-feature__icon svg {
	    width: 22px;
	    height: 22px;
	    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }
  .home-feature__bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    color: var(--text-muted, #6b7280);
    font-size: 18px;
    line-height: 1;
  }


/* resources/views/layouts/header-styles.blade.php */
.header-top-line {
    direction: rtl;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    height: 60px;
    background: var(--bg-card, #fafafa);
    border-bottom: 1px solid var(--border-default, #e5e5e5);
  }
  .header-brand {
    font-weight: 700;
    color: var(--accent-color, #be123c);
    font-size: 30px;
  }
  .header-banner {
    background: var(--bg-card, #f1f5f9);
    border: 1px dashed var(--border-default, #d4d4d8);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    color: #6b7280;
    justify-self: center;
    width: 100%;
  }
  .header-date {
    color: #374151;
    font-weight: 600;
    justify-self: end;
  }

  .header-main-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px 20px;
    min-height: 54px;
    background: linear-gradient(120deg, var(--nav-start, var(--primary, #701a1a)) 0%, var(--nav-end, var(--secondary, #b21f4b)) 100%);
    gap: 12px;
  }
  .header-site-brand {
    color: var(--text-inverse, #fff);
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    white-space: nowrap;
  }
  .header-site-brand:hover,
  .header-site-brand:focus {
    color: var(--text-inverse, #fff);
    opacity: 0.9;
    text-decoration: none;
  }
  .header-main-line .nav-link {
    color: var(--text-inverse, #fff);
    font-weight: 600;
  }
  .header-main-line .theme-nav-link {
    color: var(--text-inverse, #fff);
  }
  .header-main-line .theme-nav-link:hover,
  .header-main-line .theme-nav-link:focus {
    color: var(--accent-color, #be123c);
    text-decoration: none;
  }
  .header-admin-left {
    min-width: 0;
    flex: 1 1 auto;
  }
  .header-admin-line .header-controls {
    flex: 0 0 auto;
  }
  .header-admin-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible;
    white-space: nowrap;
  }
  .header-admin-nav .nav-link {
    height: 28px;
    padding: 0 10px;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    color: var(--text-inverse, #fff);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-admin-nav .nav-link.is-active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.45);
  }
  .header-admin-nav::-webkit-scrollbar {
    height: 6px;
  }
  .header-admin-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.35);
    border-radius: 999px;
  }
  @media (max-width: 992px) {
    .header-admin-nav {
      overflow-x: auto;
      overflow-y: visible;
      -webkit-overflow-scrolling: touch;
    }
  }
  .header-main-line .dropdown-menu {
    z-index: 9999;
  }
  .header-main-line form {
    margin: 0;
    display: inline-flex;
    align-items: center;
  }
  .header-main-line form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    line-height: 1.2;
  }
  .header-search-nav-item {
    position: relative;
  }
  .header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    line-height: 1;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    cursor: pointer;
  }
  .header-search-toggle:hover,
  .header-search-toggle:focus {
    border-color: rgba(255,255,255,0.55);
    color: var(--text-inverse, #fff);
    text-decoration: none;
  }
  .header-search-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 280px;
    max-width: min(90vw, 420px);
    background: var(--card-background, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.18);
    padding: 10px;
    z-index: 10000;
  }
  [dir="rtl"] .header-search-popover {
    right: auto;
    left: 0;
  }
  .header-search-popover__form input {
    width: 100%;
    height: 42px;
    border-radius: 12px;
  }
  .header-controls .profile-page-header__select {
    height: 28px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.10);
    color: var(--text-inverse, #fff);
    padding: 0 8px;
    min-width: 88px;
  }
  .header-controls .profile-page-header__select option {
    color: #111827;
  }
.header-controls .profile-page-header__user {
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  padding-top: 0;
  padding-bottom: 0;
  height: 30px;
  line-height: 1;
}
.header-controls .profile-page-header__user-name {
  font-size: 14px;
  line-height: 1;
}
.header-controls .profile-page-header__user-avatar {
  width: 26px;
  height: 26px;
}
  .header-controls .profile-page-header__user:hover,
  .header-controls .profile-page-header__user:focus {
    background: rgba(255,255,255,0.20);
  }
.header-controls .header-user-toggle {
  transform: translateY(1px);
}
.header-user-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(120deg, var(--nav-start, var(--primary, #701a1a)) 0%, var(--nav-end, var(--secondary, #b21f4b)) 100%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  overflow: hidden;
  height: 30px;
}
.header-user-toggle--avatar {
  margin-left: 0;
  border: 0;
  background: transparent;
  color: #fff;
  height: 30px;
  width: 30px;
  padding: 0;
}
html[dir="rtl"] .header-user-toggle--avatar {
  margin-right: 0;
}
.header-controls .profile-page-header__user {
  border: 0;
  background: transparent;
  border-radius: 0;
}
html[dir="rtl"] .header-controls .profile-page-header__user {
  border-radius: 0;
}
.header-user-counts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-user-counts__btn {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  text-decoration: none;
  line-height: 1;
}
.header-user-counts__btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.header-user-counts__btn:hover,
.header-user-counts__btn:focus {
  text-decoration: none;
  background: rgba(255,255,255,0.28);
}
.header-user-counts__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary, #8d1530);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
  .header-main-line .header-nav-btn {
    height: 28px;
    padding: 0 10px;
    line-height: 1;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .user-inline-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
    direction: rtl;
    text-align: right;
  }
  .main-user-inline {
    display: flex;
    align-items: center;
    margin-left: auto;
    max-width: 100%;
  }
.user-inline-bar .user-inline-username {
  color: var(--nav-start, var(--primary, #701a1a));
  font-weight: 700;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  padding: 4px 8px;
}
.user-inline-divider {
  color: var(--border-default, #d1d5db);
}
.user-inline-link {
  color: var(--text-primary, #1f2937) !important;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 8px;
  display: inline-block;
  background: transparent;
}
  .user-inline-link:hover,
  .user-inline-link:focus {
    color: var(--accent-color, #be123c);
    background: rgba(190,18,60,0.08);
    border-radius: 12px;
    text-decoration: none;
  }
  .user-inline-form {
    display: inline;
  }
  .user-menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  .user-display {
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    height: 28px;
    line-height: 1;
    padding: 0 10px;
  }
  .user-display:focus { outline: none; }
  .user-display .welcome-text { color: #fff; }
  .user-display .user-name { color: #F7D27B; }
  .user-display .arrow-icon { color: #fff; font-size: 13px; }
  .user-display.user-display--inline {
    color: var(--nav-start, #701a1a);
  }
  .user-display.user-display--inline .welcome-text,
  .user-display.user-display--inline .arrow-icon {
    color: var(--nav-start, #701a1a);
  }
  .user-display.user-display--inline .user-name {
    color: var(--accent-color, #be123c);
  }
  .user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2d2d2d;
    padding: 10px;
    border-radius: 8px;
    width: 180px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
  }
  .user-dropdown-menu .dropdown-item,
  .user-dropdown-menu form button {
    color: #f5f5f5;
    background: transparent;
    width: 100%;
    text-align: right;
    padding: 6px 8px;
  }
  .user-menu-wrapper:hover .user-dropdown-menu,
  .user-menu-wrapper:focus-within .user-dropdown-menu {
    display: flex;
  }

.header-user-line {
  padding: 2px 20px 0 20px;
  margin-top: 0;
  margin-bottom: 0;
}
.header-user-line .user-line,
.header-user-line .user-line-inner {
  width: 100%;
  border-radius: 10px;
  background: #f6f7fb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 6px 10px;
}

  @media (max-width: 992px) {
    .header-top-line {
      grid-template-columns: 1fr auto;
      grid-auto-rows: auto;
      height: auto;
      padding: 10px;
    }
    .header-banner { grid-column: 1 / -1; }
    .header-main-line {
      flex-direction: column;
      height: auto;
      padding: 10px;
      gap: 8px;
    }
    .header-controls {
      width: 100%;
      justify-content: flex-start;
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      gap: 8px;
    }
    .header-controls::-webkit-scrollbar { height: 0; }
    .header-controls > * { flex: 0 0 auto; }
    .header-controls .header-user-toggle .profile-page-header__user-name { display: none; }
    .header-controls .header-user-toggle { padding: 0 8px; }
    .header-controls .profile-page-header__select { min-width: 78px; }
    .header-controls .profile-page-header__select--theme { min-width: 86px; }

    .header-main-line .main-nav {
      width: 100%;
      flex-wrap: wrap;
      gap: 10px;
    }
    .header-main-line .nav {
      width: 100%;
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 2px;
    }
    .header-main-line .nav::-webkit-scrollbar { height: 0; }
    .header-search-popover {
      right: 0;
      left: 0;
      min-width: unset;
      max-width: unset;
      width: 100%;
    }
  }


/* resources/views/layouts/site-footer.blade.php */
.site-page-footer {
    margin-top: 10px;
    --footer-legal-gap: 12px;
  }
  .site-page-footer .profile-page-footer__legal .container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  .site-page-footer .profile-page-footer__links {
    margin-top: var(--footer-legal-gap);
  }
  .site-page-footer .recaptcha-footer-notice {
    margin-top: var(--footer-legal-gap);
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--text-color, #0f172a) 60%, transparent);
  }
  .site-page-footer .recaptcha-footer-notice a {
    color: var(--link-color, var(--text-color, #0f172a));
    text-decoration: none;
  }
  .site-page-footer .recaptcha-footer-notice a:hover {
    text-decoration: underline;
  }
  @if($recaptchaNoticeEnabled)
  .grecaptcha-badge {
    visibility: hidden !important;
  }
  @endif


/* resources/views/admin/site-tools.blade.php */
.site-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .site-tools-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
  }
  @media (max-width: 991px) {
    .site-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 575px) {
    .site-tools-grid { grid-template-columns: 1fr; }
  }


/* resources/views/admin/text-editor-settings.blade.php */
.settings-stack {
            max-width: 900px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 16px;
            width: 100%;
        }

        .settings-block {
            padding: 16px;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            background: #fff
        }

        .mode-tabs .btn {
            border: 1px solid #cbd5e1;
            border-radius: 0;
            background: #f8fafc;
            color: #1f2937;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .mode-tabs .btn:first-child {
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        .mode-tabs .btn:last-child {
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }

        .mode-tabs .btn.active {
            background: #4b5563;
            color: #fff;
        }

        .mode-tabs .btn:not(.active):hover {
            background: #e5e7eb;
        }

        .preview-output {
            margin-top: 12px;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            padding: 12px;
            background: #f9fafb;
            min-height: 120px;
        }

        .editor-icon {
            display: inline-flex;
            width: 40px;
            height: 40px;
            align-items: center;
            justify-content: center;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background: #f8fafc
        }

        .editor-icon svg {
            width: 22px;
            height: 22px;
            fill: currentColor
        }


/* resources/views/admin/design-settings.blade.php */
.settings-stack {
    max-width: 720px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-block {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .settings-block h5 { font-weight: 700; }
  .form-label { font-weight: 600; }
  .settings-block .form-control,
  .settings-block .form-select {
    text-align: center;
  }
  .settings-block .form-control::placeholder { text-align: center; }


/* resources/views/admin/navigation-manager.blade.php */
.nav-tab {
	    min-width: 200px;
	    border-radius: 10px;
	    background: #f8fafc;
	    border: 1px solid #e9ecef;
	  }
  .nav-tab.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
  }
  .nav-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
  }
	  .nav-card h5 { margin: 0; }
	  .icon-picker-modal {
	    position: fixed;
	    inset: 0;
	    z-index: 10550;
	    display: none;
	  }
	  .icon-picker-modal.is-open { display: block; }
	  .icon-picker-backdrop {
	    position: absolute;
	    inset: 0;
	    background: rgba(0,0,0,0.55);
	  }
	  .icon-picker-body {
	    position: relative;
	    margin: 8vh auto;
	    max-width: 720px;
	    width: min(92vw, 720px);
	    background: var(--card-background, #fff);
	    border: 1px solid var(--border-color, #e5e7eb);
	    border-radius: 16px;
	    padding: 14px;
	    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
	  }
	  .icon-picker-grid {
	    display: grid;
	    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	    gap: 10px;
	    max-height: 46vh;
	    overflow: auto;
	    padding: 8px 2px;
	  }
	  .icon-picker-item {
	    border: 1px solid var(--border-color, #e5e7eb);
	    border-radius: 12px;
	    padding: 10px 6px;
	    background: var(--page-background, #f8fafc);
	    display: flex;
	    flex-direction: column;
	    align-items: center;
	    gap: 6px;
	    cursor: pointer;
	    min-height: 64px;
	  }
	  .icon-picker-item:hover { border-color: var(--nav-end, #8d1530); }
	  .icon-picker-item i { font-size: 22px; }
	  .icon-picker-item small { font-size: 11px; color: #6b7280; }


/* resources/views/admin/dashboard.blade.php */
.dashboard-grid-row {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 12px;
      align-items: stretch;
    }
    .dashboard-grid-title {
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      background: #f8f9fa;
      border: 1px solid #e9ecef;
      border-radius: 10px;
      min-height: 100%;
    }
    .dashboard-grid-card {
      border: 1px solid #e9ecef;
      border-radius: 10px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background: #fff;
    }
    .dashboard-grid-card.placeholder {
      background: #f5f6f7;
      color: #adb5bd;
    }
    @media (max-width: 991px) {
      .dashboard-grid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 575px) {
      .dashboard-grid-row { grid-template-columns: 1fr; }
    }


/* resources/views/admin/settings.blade.php */
.settings-stack {
    max-width: 720px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-block {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .settings-block h5 { font-weight: 700; }
  .form-label { font-weight: 600; }
  .settings-stack .form-control,
  .settings-stack .form-control-sm {
    text-align: center;
  }
  .settings-stack .form-control::placeholder,
  .settings-stack .form-control-sm::placeholder { text-align: center; }

/* Theme foundation */
:root[data-theme-mode="dark"],
body[data-theme-mode="dark"] {
  color-scheme: dark;
}

body {
  font-family: var(--font-family, 'Cairo'), sans-serif;
  font-size: var(--font-size-base, 16px);
  line-height: var(--line-height, 1.6);
  background-color: var(--page-background, #f8fafc);
  color: var(--text-primary, #0f172a);
}

.card,
.border {
  background-color: var(--card-background, #ffffff);
  border-radius: var(--border-radius, 8px);
  border-color: var(--border-color, #e5e7eb);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  background: var(--page-background, #f8fafc);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 180ms ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.site-header + .container {
  margin-top: calc(var(--spacing-unit, 12px) * 6);
}

body {
  --site-header-height: 80px;
  padding-top: var(--site-header-height);
  transition: padding-top 180ms ease;
}

@media (max-width: 992px) {
  body {
    --site-header-height: 140px;
  }
}

body.site-header-hidden {
  padding-top: 0 !important;
}

body.profile-shell {
  padding-top: var(--site-header-height) !important;
}

body.profile-shell .site-header {
  display: block !important;
}

body.profile-shell .site-header + .container {
  margin-top: calc(var(--spacing-unit, 12px) * 8);
}
body.profile-shell .auth-register-shell {
  margin-top: calc(var(--spacing-unit, 12px) * 8) !important;
}

.profile-shell-disclaimer {
  margin-top: 10px;
  text-align: center;
  color: #8d1530;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Layout normalization */
body > .container > * + *,
main > .container.page-layout > * + *,
main > .container-fluid.page-layout > * + * {
  margin-top: var(--spacing-unit, 12px);
}

body > .container .row,
main > .container.page-layout .row,
main > .container-fluid.page-layout .row {
  row-gap: var(--spacing-unit, 12px);
}

.row > [class*="col-"] {
  align-self: stretch;
}

/* استثناء لوحة التحكم */
.admin-theme main > .container,
.admin-theme main > .container-fluid {
  display: block;
}

/* استثناء أي container داخل card */
.card .container,
.card .container-fluid {
  display: block;
}

/* استثناء footer */
footer,
main footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  background-color: var(--footer-bg, var(--nav-start));
}

.row {
  --bs-gutter-y: 1.25rem;
}

html[dir="rtl"] .user-menu-wrapper .dropdown-menu {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 0.4rem);
  min-width: 16rem;
  transform: none;
  transform-origin: top left;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .user-menu-wrapper .dropdown-item {
  text-align: right;
}

html[dir="rtl"] .user-menu-wrapper .dropdown-menu.show {
  display: block;
}

.portal-embed .site-header,
.portal-embed footer {
  display: none !important;
}

.portal-embed {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
}

body.portal-embed {
  display: block !important;
  padding-top: 0 !important;
  margin: 0 !important;
}

main > footer {
  align-self: stretch;
}


footer > .container,
footer > .container-fluid {
  max-width: var(--bs-container-max-width);
  margin-inline: auto;
}

a { color: var(--link-color, #be123c); }
a:hover { color: var(--link-hover, #8d1530); }

.btn-primary {
  background: var(--button-bg, #be123c);
  border-color: var(--button-bg, #be123c);
  color: var(--button-text, #ffffff);
}

.btn-primary:hover {
  background: var(--button-hover, var(--button-bg, #be123c));
  border-color: var(--button-hover, var(--button-bg, #be123c));
}

.btn-secondary {
  background: var(--button-secondary, #2f343a);
  border-color: var(--button-secondary, #2f343a);
  color: var(--button-secondary-text, #ffffff);
}

.btn-secondary:hover {
  background: var(--button-secondary-hover, var(--button-secondary, #2f343a));
  border-color: var(--button-secondary-hover, var(--button-secondary, #2f343a));
  color: var(--button-secondary-text, #ffffff);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--button-secondary, #2f343a);
  border-color: var(--button-secondary, #2f343a);
}

.btn-outline-secondary:hover {
  background: transparent;
  color: var(--button-secondary, #2f343a);
  border-color: var(--button-secondary, #2f343a);
}

.alert-success {
  background: var(--success-color, #c8edd4);
  border-color: var(--success-color, #c8edd4);
  color: var(--text-primary, #0f172a);
}

.alert-warning {
  background: var(--warning-color, #f5d9a7);
  border-color: var(--warning-color, #f5d9a7);
  color: var(--text-primary, #0f172a);
}

.alert-danger {
  background: var(--danger-color, #dca7ad);
  border-color: var(--danger-color, #dca7ad);
  color: var(--text-primary, #0f172a);
}

.alert-info {
  background: var(--info-color, #a7c5d9);
  border-color: var(--info-color, #a7c5d9);
  color: var(--text-primary, #0f172a);
}

body[data-recaptcha-v3="1"] .grecaptcha-badge {
  visibility: hidden !important;
}

/* Admin theme tokens */
body[data-admin-theme="1"] {
  --bs-body-font-family: var(--font-family, 'Cairo'), sans-serif;
  --bs-body-color: var(--text-primary, #0f172a);
  --bs-body-bg: var(--page-background, #f8fafc);
  --bs-link-color: var(--link-color, #be123c);
  --bs-link-hover-color: var(--link-hover, #8d1530);
  --bs-primary: var(--primary, #4b5563);
  --bs-secondary: var(--secondary, #8d1530);
  --bs-success: var(--success-color, #16a34a);
  --bs-warning: var(--warning-color, #f59e0b);
  --bs-danger: var(--danger-color, #ef4444);
  --bs-info: var(--info-color, #0ea5e9);
  --bs-border-color: var(--border-color, #e5e7eb);
  --bs-border-radius: var(--border-radius, 8px);
  --bs-border-radius-sm: calc(var(--border-radius, 8px) - 2px);
  --bs-border-radius-lg: calc(var(--border-radius, 8px) + 4px);
  --bs-secondary-color: var(--text-muted, #6b7280);
  --bs-tertiary-bg: var(--bg-section, #f8fafc);
  --bs-emphasis-color: var(--text-primary, #0f172a);
  --bs-table-color: var(--text-primary, #0f172a);
  --bs-table-border-color: var(--border-color, #e5e7eb);
  --bs-table-bg: transparent;
  font-family: var(--font-family, 'Cairo'), sans-serif !important;
}

.admin-theme {
  --bs-primary: var(--primary, #4b5563);
  --bs-secondary: var(--secondary, #8d1530);
  --bs-success: var(--success-color, #16a34a);
  --bs-warning: var(--warning-color, #f59e0b);
  --bs-danger: var(--danger-color, #ef4444);
  --bs-info: var(--info-color, #0ea5e9);
}

body[data-admin-theme="1"] .btn,
body[data-admin-theme="1"] .form-control,
body[data-admin-theme="1"] .form-select,
body[data-admin-theme="1"] .input-group-text,
body[data-admin-theme="1"] .dropdown-menu,
body[data-admin-theme="1"] .nav-pills .nav-link {
  border-radius: var(--border-radius, 8px);
}

body[data-admin-theme="1"] .badge.bg-light {
  background-color: var(--bg-overlay, #f1f5f9) !important;
  color: var(--text-primary, #0f172a) !important;
}

body[data-admin-theme="1"] .btn-primary {
  --bs-btn-bg: var(--button-bg, #be123c);
  --bs-btn-border-color: var(--button-bg, #be123c);
  --bs-btn-hover-bg: var(--button-hover, var(--button-bg, #be123c));
  --bs-btn-hover-border-color: var(--button-hover, var(--button-bg, #be123c));
  --bs-btn-active-bg: var(--button-hover, var(--button-bg, #be123c));
  --bs-btn-active-border-color: var(--button-hover, var(--button-bg, #be123c));
  --bs-btn-color: var(--button-text, #fff);
  --bs-btn-hover-color: var(--button-text, #fff);
  --bs-btn-active-color: var(--button-text, #fff);
  background: var(--button-bg, #be123c);
  border-color: var(--button-bg, #be123c);
  color: var(--button-text, #fff);
}

body[data-admin-theme="1"] .btn-primary:hover,
body[data-admin-theme="1"] .btn-primary:focus {
  background: var(--button-hover, var(--button-bg, #be123c));
  border-color: var(--button-hover, var(--button-bg, #be123c));
  color: var(--button-text, #fff);
}

body[data-admin-theme="1"] .btn-secondary {
  --bs-btn-bg: var(--button-secondary, #2f343a);
  --bs-btn-border-color: var(--button-secondary, #2f343a);
  --bs-btn-hover-bg: var(--button-secondary-hover, var(--button-secondary, #2f343a));
  --bs-btn-hover-border-color: var(--button-secondary-hover, var(--button-secondary, #2f343a));
  --bs-btn-active-bg: var(--button-secondary-hover, var(--button-secondary, #2f343a));
  --bs-btn-active-border-color: var(--button-secondary-hover, var(--button-secondary, #2f343a));
  --bs-btn-color: var(--button-secondary-text, #fff);
  --bs-btn-hover-color: var(--button-secondary-text, #fff);
  --bs-btn-active-color: var(--button-secondary-text, #fff);
  background: var(--button-secondary, #2f343a);
  border-color: var(--button-secondary, #2f343a);
  color: var(--button-secondary-text, #fff);
}

body[data-admin-theme="1"] .btn-secondary:hover,
body[data-admin-theme="1"] .btn-secondary:focus {
  background: var(--button-secondary-hover, var(--button-secondary, #2f343a));
  border-color: var(--button-secondary-hover, var(--button-secondary, #2f343a));
  color: var(--button-secondary-text, #fff);
}

body[data-admin-theme="1"] .btn-outline-primary {
  --bs-btn-color: var(--button-bg, #be123c);
  --bs-btn-border-color: var(--button-bg, #be123c);
  --bs-btn-hover-bg: var(--button-bg, #be123c);
  --bs-btn-hover-border-color: var(--button-bg, #be123c);
  --bs-btn-hover-color: var(--button-text, #fff);
  --bs-btn-active-bg: var(--button-bg, #be123c);
  --bs-btn-active-border-color: var(--button-bg, #be123c);
  --bs-btn-active-color: var(--button-text, #fff);
  color: var(--button-bg, #be123c);
  border-color: var(--button-bg, #be123c);
}

body[data-admin-theme="1"] .btn-outline-primary:hover,
body[data-admin-theme="1"] .btn-outline-primary:focus {
  background: var(--button-bg, #be123c);
  border-color: var(--button-bg, #be123c);
  color: var(--button-text, #fff);
}

body[data-admin-theme="1"] .btn-outline-secondary {
  --bs-btn-color: var(--button-secondary, #2f343a);
  --bs-btn-border-color: var(--button-secondary, #2f343a);
  --bs-btn-hover-bg: var(--button-secondary, #2f343a);
  --bs-btn-hover-border-color: var(--button-secondary, #2f343a);
  --bs-btn-hover-color: var(--button-secondary-text, #fff);
  --bs-btn-active-bg: var(--button-secondary, #2f343a);
  --bs-btn-active-border-color: var(--button-secondary, #2f343a);
  --bs-btn-active-color: var(--button-secondary-text, #fff);
  color: var(--button-secondary, #2f343a);
  border-color: var(--button-secondary, #2f343a);
}

body[data-admin-theme="1"] .btn-outline-secondary:hover,
body[data-admin-theme="1"] .btn-outline-secondary:focus {
  background: var(--button-secondary, #2f343a);
  border-color: var(--button-secondary, #2f343a);
  color: var(--button-secondary-text, #fff);
}

body[data-admin-theme="1"] .badge.bg-success {
  background: var(--success-color, #16a34a) !important;
  color: var(--text-primary, #0f172a) !important;
}

body[data-admin-theme="1"] .badge.bg-danger {
  background: var(--danger-color, #ef4444) !important;
  color: var(--text-primary, #0f172a) !important;
}

body[data-admin-theme="1"] .badge.bg-warning {
  background: var(--warning-color, #f59e0b) !important;
  color: var(--text-primary, #0f172a) !important;
}

body[data-admin-theme="1"] .badge.bg-info {
  background: var(--info-color, #0ea5e9) !important;
  color: var(--text-primary, #0f172a) !important;
}

body[data-admin-theme="1"] .settings-block,
body[data-admin-theme="1"] .soft-card,
body[data-admin-theme="1"] .tab-pane-card,
body[data-admin-theme="1"] .embed-wrapper,
body[data-admin-theme="1"] .preview-output,
body[data-admin-theme="1"] .editor-icon,
body[data-admin-theme="1"] .stat-card {
  border-color: var(--border-color, #e5e7eb);
  background: var(--card-background, #fff);
  border-radius: var(--border-radius, 8px);
}

body[data-admin-theme="1"] .release-tab,
body[data-admin-theme="1"] .page-tab,
body[data-admin-theme="1"] .visual-tab,
body[data-admin-theme="1"] .terms-tab,
body[data-admin-theme="1"] .cat-tab-tile,
body[data-admin-theme="1"] .users-tab,
body[data-admin-theme="1"] .mail-tab,
body[data-admin-theme="1"] .nav-tab {
  background: var(--bg-section, #f8fafc);
  border-color: var(--border-color, #e5e7eb);
  color: var(--text-primary, #0f172a);
  border-radius: var(--border-radius, 8px);
}

body[data-admin-theme="1"] .release-tab:hover:not(.active),
body[data-admin-theme="1"] .page-tab:hover:not(.active),
body[data-admin-theme="1"] .visual-tab:hover:not(.active),
body[data-admin-theme="1"] .terms-tab:hover:not(.active),
body[data-admin-theme="1"] .cat-tab-tile:hover:not(.active),
body[data-admin-theme="1"] .users-tab:hover:not(.active),
body[data-admin-theme="1"] .mail-tab:hover:not(.active),
body[data-admin-theme="1"] .nav-tab:hover:not(.active) {
  background: var(--bg-overlay, #f1f5f9);
  border-color: var(--border-muted, #f1f5f9);
}

body[data-admin-theme="1"] .release-tab.active,
body[data-admin-theme="1"] .page-tab.active,
body[data-admin-theme="1"] .visual-tab.active,
body[data-admin-theme="1"] .terms-tab.active,
body[data-admin-theme="1"] .cat-tab-tile.active,
body[data-admin-theme="1"] .users-tab.active,
body[data-admin-theme="1"] .mail-tab.active,
body[data-admin-theme="1"] .nav-tab.active {
  background: var(--button-bg, #be123c);
  border-color: var(--button-bg, #be123c);
  color: var(--button-text, #fff);
}

body[data-admin-theme="1"] .release-tab.active .badge,
body[data-admin-theme="1"] .page-tab.active .badge,
body[data-admin-theme="1"] .visual-tab.active .badge,
body[data-admin-theme="1"] .terms-tab.active .badge,
body[data-admin-theme="1"] .cat-tab-tile.active .badge,
body[data-admin-theme="1"] .users-tab.active .badge,
body[data-admin-theme="1"] .mail-tab.active .badge {
  background: var(--secondary, #1f2937) !important;
  color: var(--button-secondary-text, #fff) !important;
}

body[data-admin-theme="1"] .mode-tabs .btn {
  border-color: var(--border-color, #e5e7eb);
  background: var(--bg-section, #f8fafc);
  color: var(--text-primary, #0f172a);
}

body[data-admin-theme="1"] .mode-tabs .btn.active {
  background: var(--primary, #4b5563);
  border-color: var(--primary, #4b5563);
  color: var(--button-text, #fff);
}

body[data-admin-theme="1"] .mode-tabs .btn:not(.active):hover {
  background: var(--bg-overlay, #f1f5f9);
  border-color: var(--border-muted, #f1f5f9);
}

body[data-admin-theme="1"] .page-table thead th {
  color: var(--text-muted, #6b7280);
  border-bottom-color: var(--border-color, #e5e7eb);
}

body[data-admin-theme="1"] .page-table tbody tr {
  border-bottom-color: var(--border-muted, #f1f5f9);
}

body[data-admin-theme="1"] .page-title,
body[data-admin-theme="1"] .page-slug,
body[data-admin-theme="1"] .stat-card .stat-value,
body[data-admin-theme="1"] .detail-item .value {
  color: var(--text-primary, #0f172a);
}

body[data-admin-theme="1"] .page-meta {
  color: var(--text-muted, #6b7280);
}

body[data-admin-theme="1"] #preview-primary {
  color: var(--text-primary, #0f172a) !important;
}

body[data-admin-theme="1"] #preview-secondary {
  color: var(--text-secondary, #1f2937) !important;
}

body[data-admin-theme="1"] #preview-button {
  background: var(--button-bg, #be123c) !important;
  border-color: var(--button-bg, #be123c) !important;
  color: var(--button-text, #fff) !important;
}

body[data-admin-theme="1"] .nav.nav-pills .nav-link {
  color: var(--text-primary, #0f172a) !important;
  background: var(--bg-section, #f8fafc) !important;
  border-color: var(--border-color, #e5e7eb) !important;
  border-radius: var(--border-radius, 8px);
}

body[data-admin-theme="1"] .nav.nav-pills .nav-link.active {
  background: var(--button-bg, #be123c) !important;
  border-color: var(--button-bg, #be123c) !important;
  color: var(--button-text, #fff) !important;
}

body[data-admin-theme="1"] .nav.nav-pills .nav-link:hover:not(.active) {
  background: var(--bg-overlay, #f1f5f9) !important;
  border-color: var(--border-muted, #f1f5f9) !important;
}

body[data-admin-theme="1"] .heading-xl {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

body[data-admin-theme="1"] .heading-lg {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}

body[data-admin-theme="1"] .heading-md {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary, #1f2937);
}

/* Theme previews and swatches */
.swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-color, #e5e7eb);
  background: var(--bg-overlay, #f1f5f9);
}

.font-edit-row.show {
  display: table-row;
}

.theme-preview {
  background: var(--bg-section, #f8fafc);
  border: 1px solid var(--border-color, #e5e7eb);
}

.preview-heading {
  font-size: var(--font-size-h2, 28px);
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.preview-body {
  color: var(--text-secondary, #1f2937);
}

.preview-btn,
.preview-btn-secondary,
.preview-btn-accent,
.preview-btn-outline {
  border-radius: var(--border-radius, 8px);
  padding: 6px 14px;
  font-weight: 600;
}

.preview-btn {
  background: var(--button-bg, #be123c);
  border: 1px solid var(--button-bg, #be123c);
  color: var(--button-text, #fff);
}

.preview-btn-secondary {
  background: var(--button-secondary, #2f343a);
  border: 1px solid var(--button-secondary, #2f343a);
  color: var(--button-secondary-text, #fff);
}

.preview-btn-accent {
  background: var(--accent-color, #be123c);
  border: 1px solid var(--accent-color, #be123c);
  color: var(--text-inverse, #fff);
}

.preview-btn-outline {
  background: transparent;
  border: 1px solid var(--button-secondary, #2f343a);
  color: var(--button-secondary, #2f343a);
}

.preview-link {
  color: var(--link-color, #be123c);
  text-decoration: none;
}

.preview-link:hover {
  color: var(--link-hover, #8d1530);
  text-decoration: underline;
}

.preview-alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.preview-alert-success {
  background: var(--success-color, #c8edd4);
  color: var(--text-primary, #0f172a);
}

.preview-alert-warning {
  background: var(--warning-color, #f5d9a7);
  color: var(--text-primary, #0f172a);
}

.preview-alert-danger {
  background: var(--danger-color, #dca7ad);
  color: var(--text-primary, #0f172a);
}

.preview-alert-info {
  background: var(--info-color, #a7c5d9);
  color: var(--text-primary, #0f172a);
}

.preview-alert-empty {
  background: var(--card-background, #ffffff);
  color: var(--text-muted, #6b7280);
}

.preview-input {
  border-color: var(--border-color, #e5e7eb);
  background: var(--card-background, #ffffff);
  color: var(--text-primary, #0f172a);
}

/* Surfaces */
.surface,
.card,
.admin-card,
.tool-box,
.widget {
  background: var(--card-background, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--border-radius, 8px);
}

.surface-muted {
  background: var(--bg-section, #f8fafc);
  border: 1px solid var(--border-muted, #f1f5f9);
}

.surface-elevated,
.card.shadow,
.card.shadow-sm {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.card-header,
.card-footer {
  background: transparent;
}

.text-muted {
  color: var(--text-muted, #6b7280) !important;
}

.bg-white {
  background-color: var(--card-background, #ffffff) !important;
}

.widget,
.tool-box,
.admin-card,
.settings-block,
.soft-card,
.tab-pane-card,
.embed-wrapper,
.preview-output,
.stat-card {
  background: var(--card-background, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--border-radius, 8px);
}

.theme-preview-scope h1 {
  font-size: var(--theme-preview-h1, var(--font-size-h1, 32px));
}

.theme-preview-scope h2 {
  font-size: var(--theme-preview-h2, var(--font-size-h2, 28px));
}

.theme-preview-scope h3 {
  font-size: var(--theme-preview-h3, var(--font-size-h3, 24px));
}

/* Theme demo page */
.theme-demo-scope {
  background: var(--bg-page, #ffffff);
  color: var(--text-primary, #0f172a);
  font-family: var(--font-family, 'Cairo'), sans-serif;
  font-size: var(--font-size-base, 16px);
  line-height: var(--line-height, 1.6);
}

.theme-demo-scope .demo-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-default, #e5e7eb);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.theme-demo-scope .demo-section {
  background: var(--bg-section, #f8fafc);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-muted, #f1f5f9);
}

.theme-demo-scope .demo-btn,
.theme-demo-scope .demo-btn-secondary,
.theme-demo-scope .demo-btn-accent,
.theme-demo-scope .demo-btn-outline {
  border-radius: 8px;
  padding: 8px 14px;
  border: none;
}

.theme-demo-scope .demo-btn {
  background: var(--demo-btn-primary, var(--accent, var(--accent-color, #be123c)));
  color: var(--text-inverse, #fff);
}

.theme-demo-scope .demo-btn-secondary {
  background: var(--demo-btn-secondary, #2f343a);
  color: var(--text-inverse, #fff);
}

.theme-demo-scope .demo-btn-accent {
  background: var(--demo-btn-accent, var(--accent, var(--accent-color, #be123c)));
  color: var(--text-inverse, #fff);
}

.theme-demo-scope .demo-btn-outline {
  background: transparent;
  color: var(--demo-btn-outline, #2f343a);
  border: 1px solid var(--demo-btn-outline, #2f343a);
}

.theme-demo-scope .demo-link {
  color: var(--accent, var(--link-color, #be123c));
}

.theme-demo-scope .demo-alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.theme-demo-scope .demo-alert-success {
  background: var(--state-success, #dcfce7);
  color: var(--text-primary, #0f172a);
}

.theme-demo-scope .demo-alert-warning {
  background: var(--state-warning, #fef3c7);
  color: var(--text-primary, #0f172a);
}

.theme-demo-scope .demo-alert-danger {
  background: var(--state-danger, #fee2e2);
  color: var(--text-primary, #0f172a);
}

.theme-demo-scope .demo-alert-info {
  background: var(--state-info, #e0f2fe);
  color: var(--text-primary, #0f172a);
}

.theme-demo-scope .demo-alert-empty {
  background: var(--bg-card, #ffffff);
  color: var(--text-muted, #6b7280);
  border: 1px dashed var(--border-default, #e5e7eb);
}

.theme-demo-scope hr {
  border-color: var(--divider, #e2e8f0);
}

.theme-demo-scope .demo-heading-page {
  font-size: var(--demo-heading-page-size, var(--font-size-h1, 32px));
  font-weight: var(--demo-heading-page-weight, 700);
  color: var(--demo-heading-page-color, var(--text-primary, #0f172a));
}

.theme-demo-scope .demo-text-body {
  font-size: var(--demo-text-body-size, var(--font-size-base, 16px));
  font-weight: var(--demo-text-body-weight, 400);
  color: var(--demo-text-body-color, var(--text-secondary, #1f2937));
}

.theme-demo-scope .demo-heading-section {
  font-size: var(--demo-heading-section-size, var(--font-size-h2, 28px));
  font-weight: var(--demo-heading-section-weight, 600);
  color: var(--demo-heading-section-color, var(--text-primary, #0f172a));
}

.theme-demo-scope .demo-heading-subsection {
  font-size: var(--demo-heading-subsection-size, var(--font-size-h3, 24px));
  font-weight: var(--demo-heading-subsection-weight, 600);
  color: var(--demo-heading-subsection-color, var(--text-primary, #0f172a));
}

.theme-demo-scope .demo-text-body-lg {
  font-size: var(--demo-text-body-lg-size, calc(var(--font-size-base, 16px) + 2px));
  font-weight: var(--demo-text-body-lg-weight, 500);
  color: var(--demo-text-body-lg-color, var(--text-secondary, #1f2937));
}

.theme-demo-scope .demo-text-muted {
  font-size: var(--demo-text-muted-size, var(--font-size-base, 16px));
  font-weight: var(--demo-text-muted-weight, 400);
  color: var(--demo-text-muted-color, var(--text-muted, #6b7280));
}

.theme-demo-scope .demo-text-small {
  font-size: var(--demo-text-small-size, 14px);
  font-weight: var(--demo-text-small-weight, 400);
  color: var(--demo-text-small-color, var(--text-muted, #6b7280));
}

.theme-demo-scope .demo-text-quote {
  font-size: var(--demo-text-quote-size, var(--font-size-base, 16px));
  font-weight: var(--demo-text-quote-weight, 500);
  color: var(--demo-text-quote-color, var(--text-primary, #0f172a));
}

.theme-demo-scope .demo-action-primary {
  font-size: var(--demo-action-primary-size, var(--font-size-base, 16px));
  font-weight: var(--demo-action-primary-weight, 600);
  color: var(--demo-action-primary-color, var(--text-inverse, #fff));
}

.theme-demo-scope .demo-action-secondary {
  font-size: var(--demo-action-secondary-size, var(--font-size-base, 16px));
  font-weight: var(--demo-action-secondary-weight, 600);
  color: var(--demo-action-secondary-color, var(--text-inverse, #fff));
}

.theme-demo-scope .demo-action-link {
  font-size: var(--demo-action-link-size, var(--font-size-base, 16px));
  font-weight: var(--demo-action-link-weight, 500);
  color: var(--demo-action-link-color, var(--accent, var(--link-color, #be123c)));
}

.theme-demo-scope .demo-action-link-muted {
  font-size: var(--demo-action-link-muted-size, var(--font-size-base, 16px));
  font-weight: var(--demo-action-link-muted-weight, 500);
  color: var(--demo-action-link-muted-color, var(--text-muted, #6b7280));
}

.theme-demo-scope .demo-state-success {
  font-size: var(--demo-state-success-size, var(--font-size-base, 16px));
  font-weight: var(--demo-state-success-weight, 500);
  color: var(--demo-state-success-color, var(--text-primary, #0f172a));
}

.theme-demo-scope .demo-state-warning {
  font-size: var(--demo-state-warning-size, var(--font-size-base, 16px));
  font-weight: var(--demo-state-warning-weight, 500);
  color: var(--demo-state-warning-color, var(--text-primary, #0f172a));
}

.theme-demo-scope .demo-state-danger {
  font-size: var(--demo-state-danger-size, var(--font-size-base, 16px));
  font-weight: var(--demo-state-danger-weight, 500);
  color: var(--demo-state-danger-color, var(--text-primary, #0f172a));
}

.theme-demo-scope .demo-state-info {
  font-size: var(--demo-state-info-size, var(--font-size-base, 16px));
  font-weight: var(--demo-state-info-weight, 500);
  color: var(--demo-state-info-color, var(--text-primary, #0f172a));
}

.theme-demo-scope .demo-state-empty {
  font-size: var(--demo-state-empty-size, var(--font-size-base, 16px));
  font-weight: var(--demo-state-empty-weight, 500);
  color: var(--demo-state-empty-color, var(--text-muted, #6b7280));
}

.theme-demo-scope .demo-ui-label {
  font-size: var(--demo-ui-label-size, 14px);
  font-weight: var(--demo-ui-label-weight, 600);
  color: var(--demo-ui-label-color, var(--text-primary, #0f172a));
}

.theme-demo-scope .demo-ui-placeholder {
  font-size: var(--demo-ui-placeholder-size, var(--font-size-base, 16px));
  font-weight: var(--demo-ui-placeholder-weight, 400);
  color: var(--demo-ui-placeholder-color, var(--text-muted, #6b7280));
  border: 1px solid var(--border-default, #e5e7eb);
  background: var(--bg-card, #ffffff);
}

.theme-demo-scope .demo-ui-helper {
  font-size: var(--demo-ui-helper-size, 13px);
  font-weight: var(--demo-ui-helper-weight, 400);
  color: var(--demo-ui-helper-color, var(--text-muted, #6b7280));
}

.theme-demo-scope .demo-ui-badge {
  font-size: var(--demo-ui-badge-size, 12px);
  font-weight: var(--demo-ui-badge-weight, 600);
  color: var(--demo-ui-badge-color, var(--text-inverse, #fff));
}

.theme-demo-scope .demo-ui-table-header {
  font-size: var(--demo-ui-table-header-size, 14px);
  font-weight: var(--demo-ui-table-header-weight, 600);
  color: var(--demo-ui-table-header-color, var(--text-primary, #0f172a));
}

.theme-demo-scope .demo-ui-table-cell {
  font-size: var(--demo-ui-table-cell-size, 14px);
  font-weight: var(--demo-ui-table-cell-weight, 400);
  color: var(--demo-ui-table-cell-color, var(--text-secondary, #1f2937));
}

.theme-demo-scope .demo-ui-nav {
  font-size: var(--demo-ui-nav-size, 14px);
  font-weight: var(--demo-ui-nav-weight, 500);
  color: var(--demo-ui-nav-color, var(--text-secondary, #1f2937));
}

.theme-demo-scope .demo-ui-footer {
  font-size: var(--demo-ui-footer-size, 13px);
  font-weight: var(--demo-ui-footer-weight, 500);
  color: var(--demo-ui-footer-color, var(--text-muted, #6b7280));
}


/* resources/views/user/partials/profile-home-footer.blade.php */
.profile-page-footer.user-page-footer {
    --footer-legal-gap: 12px;
  }
  .profile-page-footer.user-page-footer .profile-page-footer__links {
    margin-top: var(--footer-legal-gap);
  }
  .profile-page-footer.user-page-footer .recaptcha-footer-notice {
    margin-top: var(--footer-legal-gap);
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--text-color, #0f172a) 60%, transparent);
  }
  .profile-page-footer.user-page-footer .recaptcha-footer-notice a {
    color: var(--link-color, var(--text-color, #0f172a));
    text-decoration: none;
  }
  .profile-page-footer.user-page-footer .recaptcha-footer-notice a:hover {
    text-decoration: underline;
  }
  @if($recaptchaNoticeEnabled)
  .grecaptcha-badge {
    visibility: hidden !important;
  }
  @endif


/* resources/views/site/tools/terms/show.blade.php */
.content-style h2,.content-style h3,.content-style h4{margin-top:1.5rem;font-weight:600}
  .content-style p{margin-bottom:1rem;line-height:1.8}
  .content-style ul{padding-right:1.25rem;margin-bottom:1rem}


/* resources/views/site/tools/release-notes/index.blade.php */
.content-style h3,.content-style h4{margin-top:1rem;font-weight:600;}
  .content-style ul{padding-right:1.2rem;}
  .content-style p{margin-bottom:0.75rem;line-height:1.7;}


/* resources/views/user/teams/create.blade.php */
.group-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.form-section {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--card-background);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.section-title {
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
}


/* resources/views/user/teams/edit.blade.php */
.group-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.form-section {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--card-background);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.section-title {
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
}


/* resources/views/user/tools/projects/show.blade.php */
.project-progress { --progress-value: 0%; height: 8px; }
  .project-progress .progress-bar { width: var(--progress-value, 0%); }


/* resources/views/user/tools/projects/index.blade.php */
.project-cover { height: 160px; object-fit: cover; }
  .project-progress { --progress-value: 0%; }
  .project-progress.progress-sm { height: 6px; }
  .project-progress .progress-bar { width: var(--progress-value, 0%); }


/* resources/views/admin/banners/create.blade.php */
.banner-create-wrapper {
    max-width: 840px;
    margin: 0 0 24px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .banner-create-title {
    width: 100%;
    text-align: right !important;
    margin: 0;
  }
  .settings-stack {
    max-width: 720px;
    width: 100%;
    margin: 0 0 24px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-narrow { max-width: 720px; width: 100%; }
  .settings-block {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .settings-block h5 { font-weight: 700; text-align: right; }
  .settings-stack .form-control,
  .settings-stack .form-control-sm {
    text-align: center;
  }
  .settings-stack .form-control::placeholder,
  .settings-stack .form-control-sm::placeholder { text-align: center; }
  .banner-preview {
    background-size: cover;
    background-position: center;
    color: #111827;
  }
  .banner-overlay {
    max-width: 420px;
    backdrop-filter: blur(1px);
  }
</style>
<style>
  .banner-create-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }


/* resources/views/admin/terms/create.blade.php */
.terms-create-wrapper {
    max-width: 840px;
    margin: 0 0 24px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .terms-create-title {
    align-self: flex-end;
    text-align: right !important;
    width: 100%;
  }
  .settings-stack {
    max-width: 720px;
    width: 100%;
    margin: 0 0 24px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-narrow { max-width: 720px; width: 100%; }
  .settings-block {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .settings-block h5 { font-weight: 700; text-align: right; }
  .settings-stack .form-control,
  .settings-stack .form-control-sm {
    text-align: center;
  }
  .settings-stack .form-control::placeholder,
  .settings-stack .form-control-sm::placeholder { text-align: center; }
  /* Force the rich text editor to use RTL direction and alignment */
  .ql-editor { direction: rtl; text-align: right; }
  .ql-editor.ql-blank::before { right: 0; left: auto; }
  .ql-toolbar .ql-formats { margin-left: 0; margin-right: 8px; }


/* resources/views/admin/terms/index.blade.php */
.terms-tab {
    min-width: 230px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e9ecef;
    text-align: start;
    padding: 10px 12px;
    transition: all .2s ease;
  }
  .terms-tab.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
  }
  .terms-tab.active .badge { background: #1f2937 !important; color: #fff !important; }
  .terms-tab:hover:not(.active) { background: #eef2f7; border-color: #d0d7df; }
  .settings-stack {
    max-width: 720px;
    width: 100%;
    margin: 0 0 24px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-narrow { max-width: 720px; width: 100%; }
  .settings-block {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .settings-block h5 { font-weight: 700; text-align: right; }
  .settings-stack .form-control,
  .settings-stack .form-control-sm { text-align: center; }
  .settings-stack .form-control::placeholder,
  .settings-stack .form-control-sm::placeholder { text-align: center; }
  .ql-editor { direction: rtl; text-align: right; }
  .ql-editor.ql-blank::before { right: 0; left: auto; }
  .ql-toolbar .ql-formats { margin-left: 0; margin-right: 8px; }


/* resources/views/admin/visual-assets/index.blade.php */
.visual-tab {
    min-width: 200px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e9ecef;
    text-align: start;
    padding: 10px 12px;
    transition: all .2s ease;
  }
  .visual-tab.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
  }
  .visual-tab.active .badge { background: #1f2937 !important; color: #fff !important; }
  .visual-tab:hover:not(.active) { background: #eef2f7; border-color: #d0d7df; }
  .nav.nav-pills .nav-link {
    color: #111827 !important;
    border: 1px solid #e5e7eb;
    margin-left: 6px;
    border-radius: 10px;
    background: #f8fafc;
    opacity: 1 !important;
    font-weight: 700;
  }
  .nav.nav-pills .nav-link.active {
    color: #fff !important;
    background: #0f172a;
    border-color: #0f172a;
  }
  .nav.nav-pills .nav-link:hover:not(.active) {
    background: #eef2f7;
    border-color: #d0d7df;
  }
  .asset-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
  }
  .asset-select {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  }
  .asset-select .form-check-input { cursor: pointer; }
  .asset-img {
    width: 100%;
    padding-top: 70%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .asset-preview {
    display: block;
    margin: 0 auto;
  }
  .asset-img--icon,
  .asset-img--avatar {
    padding-top: 0;
    height: 140px;
    background: #f8fafc;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .asset-preview--icon {
    display: none;
  }
  .asset-img--avatar {
    height: 160px;
  }
  .asset-preview--avatar {
    display: none;
  }
  .asset-img--cover {
    padding-top: 0;
    height: 140px;
    background: #f8fafc;
  }
  .asset-preview--cover {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
  }
  .asset-overlay {
    position: absolute;
    inset: 0;
    border-radius: 12px;
  }
  .asset-overlay.tint {
    background: var(--color-primary, #4b5563);
    mix-blend-mode: multiply;
    opacity: 0.45;
  }
  .asset-overlay.overlay {
    background: var(--color-primary, #4b5563);
  }
  .pagination svg {
    width: 16px;
    height: 16px;
  }


/* resources/views/admin/static-pages/index.blade.php */
.d-none { display: none !important; }
  .page-tabs {
    width: 100%;
    justify-content: flex-start;
  }
  .page-tab {
    min-width: 230px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e9ecef;
    text-align: start;
    padding: 10px 12px;
    transition: all .2s ease;
  }
  .page-tab.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
  }
  .page-tab.active .badge {
    background: #1f2937 !important;
    color: #fff !important;
  }
  .page-tab:hover:not(.active) {
    background: #eef2f7;
    border-color: #d0d7df;
  }
  .page-table thead th {
    font-size: 0.85rem;
    color: #64748b;
    border-bottom: 1px solid #e5e7eb;
  }
  .page-table tbody tr {
    border-bottom: 1px solid #eef2f7;
  }
  .page-table tbody tr:last-child {
    border-bottom: none;
  }
  .page-title {
    font-weight: 700;
    color: #0f172a;
  }
  .page-meta {
    font-size: 0.8rem;
  }
  .page-slug {
    font-family: var(--font-family, 'Cairo'), sans-serif;
    font-weight: 600;
    color: #0f172a;
    direction: ltr;
    unicode-bidi: plaintext;
  }
  .status-pill {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
    text-transform: none;
  }
  .page-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
  }
  .page-actions form {
    margin: 0;
  }
  .page-actions .btn {
    min-height: 36px;
    min-width: 84px;
    padding: 6px 14px;
    border-radius: 10px;
    white-space: nowrap;
  }


/* resources/views/admin/static-pages/_form.blade.php */
.page-form-wrapper {
    max-width: 840px;
    margin: 0 0 24px auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }
  .page-form-wrapper > * { width: 100%; }
  .page-form-title {
    text-align: right !important;
    width: 100%;
    margin: 0 0 12px 0;
    align-self: stretch;
    direction: rtl;
    padding-right: 6px;
  }
  .settings-stack {
    max-width: 720px;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-narrow { max-width: 720px; width: 100%; }
  .settings-block {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .settings-stack .form-control,
  .settings-stack .form-control-sm { text-align: center; }
  .settings-stack .form-control::placeholder,
  .settings-stack .form-control-sm::placeholder { text-align: center; }
  .ql-editor { direction: rtl; text-align: right; }
  .ql-editor.ql-blank::before { right: 0; left: auto; }
  .ql-toolbar { direction: rtl; text-align: right; }
  .ql-toolbar .ql-formats { margin-left: 0; margin-right: 8px; }


/* resources/views/admin/static-pages/_form.blade.php */
:root { ${rootVars} }
      body {
        margin: 0;
        padding: 24px;
        background: var(--page-background, #f8fafc);
        color: var(--text-primary, #0f172a);
        font-family: ${bodyFont};
      }
      .preview-card {
        max-width: 980px;
        margin: 0 auto;
        background: var(--card-background, #ffffff);
        border: 1px solid var(--border-color, #e5e7eb);
        border-radius: 12px;
        padding: 20px;
      }
      .preview-title {
        margin: 0 0 12px;
        font-size: 1.6rem;
        text-align: ${contentAlign};
      }
      .preview-content {
        line-height: 1.8;
        direction: ${docDir};
        text-align: ${contentAlign};
      }
      .preview-empty {
        color: var(--text-muted, #6b7280);
      }


/* resources/views/admin/mail-templates/index.blade.php */
.mail-tab {
      min-width: 220px;
      border-radius: 12px;
      background: #f8fafc;
      border: 1px solid #e9ecef;
      text-align: start;
      padding: 10px 12px;
      transition: all .2s ease;
    }
    .mail-tab.active {
      background: #0f172a;
      color: #fff;
      border-color: #0f172a;
    }


/* resources/views/admin/languages/index.blade.php */
textarea.form-control-sm { min-height: 68px; }
  table thead th { white-space: nowrap; }


/* resources/views/admin/sections/_create_form.blade.php */
.tool-scaffold-form { max-width: 880px; margin: 0 auto; }
  .tool-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  }
  .tool-card-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
  }
  .tool-scaffold-form .form-label { font-weight: 600; color: #4b5563; }
  .tool-scaffold-form .form-control,
  .tool-scaffold-form .form-select { border-radius: 10px; }
  .input-group-labeled { display: flex; flex-direction: column; gap: 8px; }
  .input-group-labeled.horizontal {
    display: grid;
    grid-template-columns: minmax(160px, 26%) 1fr;
    align-items: center;
    gap: 12px;
  }
  .input-group-labeled.horizontal > label { margin: 0; text-align: right; }
  .input-group-labeled.horizontal > .form-control,
  .input-group-labeled.horizontal > .form-select,
  .input-group-labeled.horizontal > textarea { width: 100%; }
  .input-group-labeled.stacked > label { width: 100%; }
  .input-group-labeled.stacked > .form-control,
  .input-group-labeled.stacked > .form-select,
  .input-group-labeled.stacked > textarea { width: 100%; }
  @media (max-width: 768px) {
    .input-group-labeled.horizontal {
      grid-template-columns: 1fr;
    }
    .input-group-labeled.horizontal > label { text-align: right; }
  }


/* resources/views/admin/sections/_table.blade.php */
.tool-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  }
  .tool-summary .tool-name { font-size: 1.05rem; }
  .tool-icon {
    width: 42px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
  }
  .tool-icon img { width: 100%; height: 100%; object-fit: contain; }
  .badge-soft {
    background: #f3f4f6;
    color: #374151;
    border-radius: 10px;
    padding: 4px 8px;
  }
  .answer-soft { font-weight: 700; }
  .basic-form, .settings-form, .pages-form { animation: fadeIn 0.2s ease; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .icon-library-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1080;
  }
  .icon-library-modal.d-none { display: none; }
  .icon-library-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
  }
  .icon-library-body {
    position: relative;
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    width: min(720px, 90vw);
    max-height: 80vh;
    overflow: auto;
  }
  .icon-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 10px;
  }
  .icon-library-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    padding: 8px;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .icon-library-item:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  }
  .icon-library-item span:last-child {
    font-size: 12px;
    color: #374151;
    word-break: break-word;
    text-align: center;
  }
  .icon-box {
    width: 48px;
    height: 48px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
  }
  .icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  .icon-option {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .icon-option:hover { border-color: #94a3b8; box-shadow: 0 4px 12px rgba(0,0,0,0.07); }
  @media (max-width: 768px) {
    .tool-summary { flex-direction: column; align-items: flex-start !important; }
    .tool-icon { margin-bottom: 6px; }
  }


/* resources/views/admin/users/index.blade.php */
.page-hero { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
  .stat-card {
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15,23,42,0.05);
  }
  .stat-card .stat-label { display:block; color:#6b7280; font-size:13px; margin-bottom:6px; }
  .stat-card .stat-value { font-size:22px; font-weight:800; color:#0f172a; }
  .stat-card.tone-primary { border-color:#e0e7ff; }
  .stat-card.tone-success { border-color:#dcfce7; }
  .stat-card.tone-warning { border-color:#fef9c3; }
  .stat-card.tone-danger { border-color:#fee2e2; }
  .stat-card.tone-secondary { border-color:#e5e7eb; }
  .soft-card { border:1px solid #e5e7eb; border-radius:14px; box-shadow:0 6px 18px rgba(15,23,42,0.05); }
  .status-pill { text-transform: none; font-weight:700; }
  .users-tab {
    min-width: 160px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e9ecef;
    text-align: start;
    padding: 10px 12px;
    transition: all .2s ease;
  }
  .users-tab.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
  }
  .tab-pane-card { border-radius:14px; }
  .embed-wrapper { border:1px solid #e5e7eb; border-radius:14px; overflow:hidden; box-shadow:0 6px 18px rgba(15,23,42,0.05); }
  .embed-wrapper iframe { width:100%; min-height: 1400px; border:0; background:#f8fafc; }


/* resources/views/admin/release-notes/create.blade.php */
.release-create-wrapper {
    max-width: 840px;
    margin: 0 0 24px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .release-create-title {
    align-self: flex-end;
    text-align: right !important;
    width: 100%;
  }
  .settings-stack {
    max-width: 720px;
    width: 100%;
    margin: 0 0 24px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-narrow { max-width: 720px; width: 100%; }
  .settings-block {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .ql-editor { direction: rtl; text-align: right; }
  .ql-editor.ql-blank::before { right: 0; left: auto; }
  .ql-toolbar .ql-formats { margin-left: 0; margin-right: 8px; }


/* resources/views/admin/release-notes/create.blade.php */
:root { ${rootVars} }
      body {
        margin: 0;
        padding: 24px;
        background: var(--page-background, #f8fafc);
        color: var(--text-primary, #0f172a);
        font-family: ${bodyFont};
      }
      .preview-card {
        max-width: 980px;
        margin: 0 auto;
        background: var(--card-background, #ffffff);
        border: 1px solid var(--border-color, #e5e7eb);
        border-radius: 12px;
        padding: 20px;
      }
      .preview-title {
        margin: 0 0 8px;
        font-size: 1.6rem;
        text-align: ${contentAlign};
      }
      .preview-summary {
        margin: 0 0 12px;
        color: var(--text-muted, #6b7280);
        text-align: ${contentAlign};
      }
      .preview-content {
        line-height: 1.8;
        direction: ${docDir};
        text-align: ${contentAlign};
      }
      .preview-empty {
        color: var(--text-muted, #6b7280);
      }


/* resources/views/admin/release-notes/index.blade.php */
.release-tab {
    min-width: 230px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e9ecef;
    text-align: start;
    padding: 10px 12px;
    transition: all .2s ease;
  }
  .release-tab.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
  }
  .release-tab.active .badge {
    background: #1f2937 !important;
    color: #fff !important;
  }
  .release-tab:hover:not(.active) {
    background: #eef2f7;
    border-color: #d0d7df;
  }
  .settings-stack {
    max-width: 720px;
    width: 100%;
    margin: 0 0 24px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-narrow { max-width: 720px; width: 100%; }
  .settings-block {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .ql-editor { direction: rtl; text-align: right; }
  .ql-editor.ql-blank::before { right: 0; left: auto; }
  .ql-toolbar .ql-formats { margin-left: 0; margin-right: 8px; }


/* resources/views/admin/release-notes/index.blade.php */
:root { ${rootVars} }
      body {
        margin: 0;
        padding: 24px;
        background: var(--page-background, #f8fafc);
        color: var(--text-primary, #0f172a);
        font-family: ${bodyFont};
      }
      .preview-card {
        max-width: 980px;
        margin: 0 auto;
        background: var(--card-background, #ffffff);
        border: 1px solid var(--border-color, #e5e7eb);
        border-radius: 12px;
        padding: 20px;
      }
      .preview-title {
        margin: 0 0 8px;
        font-size: 1.6rem;
        text-align: ${contentAlign};
      }
      .preview-summary {
        margin: 0 0 12px;
        color: var(--text-muted, #6b7280);
        text-align: ${contentAlign};
      }
      .preview-content {
        line-height: 1.8;
        direction: ${docDir};
        text-align: ${contentAlign};
      }
      .preview-empty {
        color: var(--text-muted, #6b7280);
      }


/* resources/views/admin/categories/admin/create.blade.php */
.settings-stack {
    max-width: 720px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-block {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .settings-block h5 { font-weight: 700; }
  .form-label { font-weight: 600; }
  .settings-stack .form-control,
  .settings-stack .form-control-sm,
  .settings-stack .form-select { text-align: center; }
  .settings-stack .form-control::placeholder,
  .settings-stack .form-control-sm::placeholder { text-align: center; }


/* resources/views/admin/categories/admin/index.blade.php */
.cat-tab-tile {
    min-width: 220px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e9ecef;
    text-align: start;
    padding: 10px 12px;
    transition: all .2s ease;
  }
  .cat-tab-tile.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
  }
  .cat-tab-tile.active .badge {
    background: #1f2937 !important;
    color: #fff !important;
  }
  .cat-tab-tile:hover:not(.active) {
    background: #eef2f7;
    border-color: #d0d7df;
  }


/* resources/views/admin/categories/admin/edit.blade.php */
.settings-stack {
    max-width: 720px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .settings-block {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .settings-block h5 { font-weight: 700; }
  .form-label { font-weight: 600; }
  .settings-stack .form-control,
  .settings-stack .form-control-sm,
  .settings-stack .form-select { text-align: center; }
  .settings-stack .form-control::placeholder,
  .settings-stack .form-control-sm::placeholder { text-align: center; }
.shared-tool-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-inline-start: 3px solid var(--accent-color);
  background: color-mix(in srgb, var(--accent-color) 12%, var(--bg-overlay));
  border-radius: 8px;
}

.shared-tool-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color) 18%, var(--card-background));
  padding: 2px 8px;
  border-radius: 999px;
}

.shared-tool-text {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Project ideas: comments inside the main idea card */
.content-comment-card {
  /* Slightly darker than the base card, derived from theme primary color */
  background: color-mix(in srgb, var(--color-primary, #8d1530) 6%, #fff);
  border-color: color-mix(in srgb, var(--color-primary, #8d1530) 16%, #e5e7eb);
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

/* Article typography defaults (only when editor hasn't set sizes inline) */
.article-excerpt {
  font-size: 15px;
}

.article-content-body {
  font-size: 17px;
}

.article-meta-line {
  font-size: 16px;
  color: var(--text-color, #111827);
}

.article-meta-value {
  color: var(--color-primary);
}

.article-thumb-wrap {
  float: left;
  width: 300px;
  max-width: 100%;
  margin: 4px 24px 12px 0;
}

[dir="rtl"] .article-thumb-wrap {
  float: right;
  margin: 4px 0 12px 24px;
}

.article-thumb-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.article-content-body::after {
  content: "";
  display: block;
  clear: both;
}

.link-form-compact .card-body {
  padding: 1rem;
}

.link-form-compact .form-label {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.link-form-compact .form-control,
.link-form-compact .form-select {
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
}

.link-form-compact textarea.form-control {
  min-height: 2.4rem;
  resize: none;
}

.link-form-inline .card-body {
  overflow-x: auto;
}

.link-form-inline__fields {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 980px;
}

.link-form-inline__field {
  flex: 0 0 auto;
}

.link-form-inline__field--title { width: 120px; }
.link-form-inline__field--url { width: 150px; }
.link-form-inline__field--desc { width: 195px; }
.link-form-inline__field--category { width: 120px; }
.link-form-inline__field--visibility { width: 180px; }
.link-form-inline__field--pinned {
  width: 120px;
  display: flex;
  align-items: center;
  padding-top: 1.75rem;
}

.link-form-inline .form-label {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.link-form-inline .form-control,
.link-form-inline .form-select {
  padding: 0.25rem 0.55rem;
  font-size: 0.88rem;
}

.link-form-inline textarea.form-control {
  height: calc(1.5em + 0.5rem + 2px);
  min-height: calc(1.5em + 0.5rem + 2px);
  max-height: calc(1.5em + 0.5rem + 2px);
  line-height: 1.2;
}

.link-form-inline .form-text {
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.link-form-inline .mb-3 {
  margin-bottom: 0 !important;
}

.comment-action-btn {
  min-width: 72px;
}

.comment-thread-children {
  margin-inline-start: 0;
}

.comment-thread-card {
  border-color: color-mix(in srgb, var(--color-primary, #8d1530) 10%, #e5e7eb);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.comment-thread-reply {
  border-inline-start: 4px solid color-mix(in srgb, var(--color-primary, #8d1530) 45%, #e5e7eb);
  background: color-mix(in srgb, var(--color-primary, #8d1530) 5%, #fff);
}

.comment-thread-level-1 { margin-inline-start: 2rem; }
.comment-thread-level-2 { margin-inline-start: 3.5rem; }
.comment-thread-level-3 { margin-inline-start: 5rem; }

.comment-reply-meta {
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
}

.comment-reply-link {
  color: var(--color-primary, #8d1530);
  text-decoration: none;
}

.comment-reply-link:hover,
.comment-reply-link:focus {
  text-decoration: underline;
}

.notification-action-btn {
  min-width: 110px;
}

.notification-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f1c40f;
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 700;
  margin-inline-start: 6px;
}
.message-select-box {
  background-color: #fff;
}
.profile-tool-links--compact .profile-tool-link {
  padding-block: 2px;
  gap: 8px;
}
.profile-tool-link__bullet {
  display: inline-block;
  min-width: 10px;
  color: var(--text-muted, #6b7280);
}
.profile-tool-sidebar__follows-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card {
  border-radius: 24px !important;
  --bs-card-border-radius: 24px;
  overflow: hidden;
}
.card > .card-body,
.card > .card-header,
.card > .card-footer {
  border-radius: 24px !important;
}

.research-export {
  color: #111827;
  font-family: var(--font-family, "Tahoma", sans-serif);
  font-size: 14px;
  line-height: 1.8;
}

.research-export__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 18px;
}

.research-export__cover {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 22px 18px;
  margin-bottom: 22px;
}

.research-export__cover-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.research-export__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
  color: #111827;
}

.research-export__subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: #374151;
}

.research-export__date {
  margin-top: 12px;
  font-size: 12px;
  color: #6b7280;
}

.research-export__section {
  margin-bottom: 22px;
  page-break-inside: avoid;
}

.research-export__section-title {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e5e7eb;
  font-size: 20px;
  color: #0f172a;
}

.research-export__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.research-export__meta-label {
  font-weight: 700;
  color: #111827;
}

.research-export__toc {
  margin: 0;
  padding-inline-start: 22px;
}

.research-export__block {
  margin-bottom: 14px;
}

.research-export__block-title {
  margin: 0 0 6px;
  font-size: 16px;
  color: #111827;
}

.research-export__meta-inline {
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 12px;
}

.research-export__content p {
  margin: 0 0 8px;
}

.research-export__list {
  margin: 0;
  padding-inline-start: 22px;
}

.research-export__ref-title {
  font-weight: 700;
}

.research-export__ref-url,
.research-export__task-meta {
  color: #6b7280;
}

.research-export__empty {
  color: #6b7280;
}

/* Research show layout harmonization */
.research-work-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 992px) {
  .research-card--reference,
  .research-card--task,
  .research-card--notes {
    min-height: 34rem;
  }
}

.concept-order-dashboard .eplats-card {
  border-radius: 18px;
}

.concept-order-summary-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  justify-content: center;
}

.concept-order-summary-scroller::-webkit-scrollbar {
  display: none;
}

.concept-order-summary-card {
  flex: 0 0 180px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-default, #e5e7eb);
  border-radius: 14px;
  padding: 12px 14px;
}

.concept-order-summary-value {
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.concept-order-history-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.concept-order-history-scroller::-webkit-scrollbar {
  display: none;
}

.concept-order-history-card {
  flex: 0 0 280px;
  max-width: 100%;
  background: color-mix(in srgb, var(--bg-card, #fff) 94%, #f8fafc);
  border: 1px solid var(--border-default, #e5e7eb);
  border-radius: 14px;
  padding: 12px;
}

.concept-order-form-wrap {
  background: color-mix(in srgb, var(--bg-card, #fff) 96%, #f8fafc);
  border: 1px solid var(--border-default, #e5e7eb);
  border-radius: 12px;
  padding: 10px;
}

.concept-order-table th,
.concept-order-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.concept-order-table .collapse > td {
  white-space: normal;
}

.concept-order-date-value {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.concept-order-monthly-due-col .form-label {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .concept-order-summary-scroller {
    justify-content: flex-start;
  }

  .concept-order-summary-card {
    flex-basis: 160px;
  }

  .concept-order-history-card {
    flex-basis: 240px;
  }
}

.article-list-card {
  border: 1px solid color-mix(in srgb, var(--border-color, #e5e7eb) 88%, #fff);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-list-card:hover,
.article-list-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1) !important;
}

.article-list-card__body {
  padding: 1.15rem;
}

.article-list-card__title {
  font-weight: 700;
  line-height: 1.35;
}

.article-list-card__title-link {
  color: var(--text-color, #0f172a);
  text-decoration: none;
}

.article-list-card__title-link:hover,
.article-list-card__title-link:focus {
  color: var(--color-primary, #9f1239);
  text-decoration: none;
}

.article-list-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.88rem;
}

.article-list-card__meta-separator {
  opacity: 0.75;
}

.article-list-card__excerpt {
  line-height: 1.8;
}

.article-list-card__excerpt-link {
  text-decoration: none;
  display: block;
}

.article-list-card__excerpt-link:hover,
.article-list-card__excerpt-link:focus {
  color: var(--text-color, #0f172a);
  text-decoration: none;
}

.article-list-card__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
}

.article-list-card__stat-pill {
  background: color-mix(in srgb, var(--color-primary, #9f1239) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--color-primary, #9f1239) 22%, #fff);
  border-radius: 999px;
  padding: 0.2rem 0.34rem;
  font-weight: 600;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  white-space: nowrap;
  width: 100%;
  min-width: 0;
}

.article-list-card__stat-label {
  color: var(--text-color, #111827);
}

.article-list-card__stat-value {
  color: var(--color-primary, #9f1239);
}

.article-show-stats {
  width: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-inline: 0;
}

.article-show-stats .article-list-card__stat-pill {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}

.cv-header-media {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.cv-header-stats {
  justify-content: center;
}

.cms-page-header {
  padding: 8px 0 2px;
}

.cms-section__head {
  border-bottom: 1px solid color-mix(in srgb, var(--border-default, #e5e7eb) 72%, #fff);
  padding-bottom: 10px;
}

.cms-hero-card {
  border: 1px solid color-mix(in srgb, var(--color-primary, #8d1530) 24%, #fff);
  background: linear-gradient(160deg, color-mix(in srgb, var(--color-primary, #8d1530) 12%, #fff), #fff);
}

.cms-list-featured {
  border: 1px solid color-mix(in srgb, var(--border-default, #e5e7eb) 84%, #fff);
}

.cms-flow-grid .card-img-top {
  max-height: 260px;
  object-fit: cover;
}

.cms-flow-card {
  border: 1px solid color-mix(in srgb, var(--border-default, #e5e7eb) 84%, #fff);
}

.cms-flow-card--featured {
  background: color-mix(in srgb, var(--bg-card, #fff) 92%, #f8fafc);
}

.cms-empty {
  border-style: dashed;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--border-default, #e5e7eb) 76%, #fff);
}

@media (max-width: 991.98px) {
  .cms-flow-grid .card-img-top {
    max-height: 220px;
  }
}

.newsroom-home__top {
  border-bottom: 2px solid color-mix(in srgb, var(--border-default, #e5e7eb) 72%, #fff);
  padding-bottom: 12px;
}

.newsroom-home__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-color, #0f172a);
}

.newsroom-home__desc {
  color: var(--text-muted, #6b7280);
}

.newsroom-panel {
  border: 1px solid color-mix(in srgb, var(--border-default, #e5e7eb) 80%, #fff);
  border-radius: 14px;
  background: var(--bg-card, #fff);
  padding: 14px;
  height: fit-content;
}

.newsroom-panel--lead {
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-primary, #8d1530) 8%, #fff), #fff);
}

.newsroom-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--border-default, #e5e7eb) 75%, #fff);
  padding-bottom: 8px;
}

.newsroom-panel__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-color, #0f172a);
}

.newsroom-panel__subtitle {
  margin: 0 0 10px;
  color: var(--text-muted, #6b7280);
  font-size: .95rem;
}

.newsroom-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.newsroom-bullets__item {
  border-bottom: 1px dashed color-mix(in srgb, var(--border-default, #e5e7eb) 76%, #fff);
  padding-bottom: 10px;
}

.newsroom-bullets__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.newsroom-articles-list,
.newsroom-pulses {
  display: grid;
  gap: 10px;
}

.newsroom-article,
.newsroom-pulse {
  border-bottom: 1px dashed color-mix(in srgb, var(--border-default, #e5e7eb) 76%, #fff);
  padding-bottom: 10px;
}

.newsroom-article:last-child,
.newsroom-pulse:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.newsroom-article__title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 800;
}

.newsroom-article--lead .newsroom-article__title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.newsroom-article__excerpt,
.newsroom-pulse__text {
  color: var(--text-muted, #6b7280);
  margin-bottom: 6px;
}

.newsroom-link {
  color: var(--text-color, #0f172a);
  text-decoration: none;
}

.newsroom-link:hover,
.newsroom-link:focus {
  color: var(--color-primary, #8d1530);
}

.newsroom-readmore,
.newsroom-more {
  color: var(--color-primary, #8d1530);
  font-weight: 700;
  text-decoration: none;
}

.newsroom-readmore:hover,
.newsroom-readmore:focus,
.newsroom-more:hover,
.newsroom-more:focus {
  text-decoration: underline;
}

.newsroom-more {
  display: inline-block;
  margin-top: 10px;
}

.newsroom-empty {
  color: var(--text-muted, #6b7280);
}

.newsroom-poll__question {
  color: var(--text-muted, #6b7280);
  margin-bottom: 10px;
}

.newsroom-poll-results {
  display: grid;
  gap: 8px;
}

.newsroom-poll-results__item {
  border-top: 1px dashed color-mix(in srgb, var(--border-default, #e5e7eb) 76%, #fff);
  padding-top: 8px;
}

.newsroom-pulse__meta {
  margin-bottom: 8px;
}

.newsroom-pulse-sections {
  display: grid;
  gap: 12px;
}

.newsroom-pulse-group {
  border-top: 1px dashed color-mix(in srgb, var(--border-default, #e5e7eb) 76%, #fff);
  padding-top: 10px;
}

.newsroom-pulse-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.newsroom-pulse-group__head {
  margin-bottom: 8px;
}

.newsroom-pulses--group .newsroom-pulse:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.newsroom-pulse-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.newsroom-pulse-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border-default, #e5e7eb) 78%, #fff);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.newsroom-pulse-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newsroom-pulse-user__avatar-fallback {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text-muted, #6b7280);
}

.newsroom-pulse-user__names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.newsroom-pulse-user__name {
  font-weight: 800;
  color: var(--text-color, #0f172a);
  text-decoration: none;
}

.newsroom-pulse-user__name:hover,
.newsroom-pulse-user__name:focus {
  color: var(--color-primary, #8d1530);
}

.newsroom-pulse-user__handle {
  color: var(--text-muted, #6b7280);
  font-size: .9rem;
}

.newsroom-pulse__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.newsroom-pulse__likes {
  color: var(--text-muted, #6b7280);
  font-size: .9rem;
}

.newsroom-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .8rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--color-primary, #8d1530) 14%, #fff);
  color: var(--color-primary, #8d1530);
}

@media (max-width: 991.98px) {
  .newsroom-home {
    padding-top: 1rem;
  }

  .newsroom-panel {
    padding: 12px;
  }

  .newsroom-panel__title {
    font-size: 1.15rem;
  }
}
