:root {
  --bs-body-bg: #f9fbfd;
  --bs-body-color: #2f3b45;
  --bs-primary: #3c8dbc;
  --bs-primary-rgb: 60, 141, 188;
  --bs-link-color: #3c8dbc;
  --bs-link-hover-color: #2c6d92;
  --bs-border-color: #dee6ee;
  --app-sidebar-bg: #f8fbff;
  --app-sidebar-border: #dbe8f4;
  --app-sidebar-text: #5d788c;
  --app-sidebar-active: #eaf3fb;
  --app-sidebar-brand: #28485d;
  --app-panel-bg: #ffffff;
  --app-panel-border: #dfe5eb;
  --app-muted: #7b8794;
  --app-admin-sidebar-bg: #f7fbff;
  --app-admin-sidebar-border: #d7e7f5;
  --app-admin-sidebar-text: #58758a;
  --app-admin-sidebar-active: #e7f1fa;
  --app-admin-sidebar-brand: #274a61;
  --app-sidebar-width: 16.85rem;
  --app-layout-max-width: 1280px;
}

html,
body {
  min-height: 100%;
}

body {
  background: #f9fbfd;
  color: var(--bs-body-color);
  font-size: 0.95rem;
}

body > .container,
body > .container-fluid,
.site-topbar > .container {
  max-width: var(--app-layout-max-width);
}

body > .container-fluid.py-3.py-lg-4 {
  padding-top: 0.75rem !important;
}

@media (min-width: 992px) {
  body > .container-fluid.py-3.py-lg-4 {
    padding-top: 0.75rem !important;
  }
}

.landing-hero {
  position: relative;
}

.landing-surface {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #dce6ee;
  border-radius: 0.9rem;
  box-shadow: 0 18px 42px rgba(32, 52, 68, 0.08);
  padding: 1.6rem;
}

.landing-surface--hero {
  background:
    radial-gradient(circle at top right, rgba(96, 167, 214, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.landing-eyebrow {
  color: #6d8496;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.landing-title {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.2vw, 3.65rem);
  line-height: 1.04;
  color: #193247;
  max-width: 12ch;
}

.landing-lead {
  margin: 0 0 1.5rem;
  color: #5b707f;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 38rem;
}

.landing-grid {
  display: grid;
  gap: 1rem;
}

.landing-stat,
.landing-note,
.landing-step,
.public-page__section {
  background: #ffffff;
  border: 1px solid #dde7ef;
  border-radius: 0.8rem;
  padding: 1.15rem 1.2rem;
}

.landing-stat__value {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #193247;
}

.landing-stat__text,
.landing-note ul,
.landing-step p,
.landing-card-text,
.public-page__lead,
.public-page__section p,
.landing-section-head p {
  color: #5c7281;
}

.landing-note h2,
.landing-step h3,
.landing-card-title,
.public-page__section h2 {
  margin: 0 0 0.7rem;
  color: #193247;
  font-size: 1.18rem;
}

.landing-note ul,
.landing-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.7;
}

.landing-section-head {
  max-width: 50rem;
  margin-bottom: 1.15rem;
}

.landing-section-head h2,
.public-page__title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.08;
  color: #193247;
}

.landing-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #eef5fb;
  color: #315f7a;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.landing-card-text {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.landing-step__index {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #315f7a;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.home-landing {
  background:
    linear-gradient(180deg, #f5faff 0%, #ffffff 34rem, #f4f6f9 100%);
  --home-heading-offset: 15px;
}

.home-landing > .home-section > .container,
.home-landing > .home-final > .container {
  max-width: 1280px;
}

.home-landing + footer.container {
  max-width: 1280px;
  padding-bottom: 0 !important;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-actions .btn {
  border-radius: 0.5rem;
  font-weight: 700;
}

.home-section,
.home-final {
  padding: 18px 0;
}

.home-section--soft {
  background: #ffffff;
  border-top: 1px solid #e1eaf2;
  border-bottom: 1px solid #e1eaf2;
}

.home-section__head {
  max-width: none;
  margin-bottom: clamp(0.85rem, 1.7vw, 1.25rem);
}

.home-section__head h1,
.home-section__head h2,
.home-final__body h2 {
  margin: 0 0 0.65rem;
  padding-left: var(--home-heading-offset);
  color: #142a3c;
  font-size: clamp(0.95rem, 1.5vw, 1.55rem);
  line-height: 1.08;
  font-weight: 800;
}

.home-section__head h1 {
  font-size: clamp(1.15rem, 1.8vw, 1.85rem);
}

.home-section__head p,
.home-final__body p {
  margin: 0;
  padding-left: var(--home-heading-offset);
  color: #536c7e;
  font-size: 1.05rem;
  line-height: 1.62;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.35rem;
  row-gap: 0.8rem;
}

.home-card,
.home-reason,
.home-step,
.home-final__body {
  background: #ffffff;
  border: 1px solid #dce6ee;
  border-radius: 0.5rem;
  box-shadow: 0 12px 28px rgba(32, 52, 68, 0.06);
}

.home-card {
  padding: 15px;
}

.home-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.home-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  border-radius: 0.5rem;
  background: #eaf3fb;
  color: #315f7a;
  font-size: 1.12rem;
}

.home-card__title,
.home-reason__title,
.home-step__title {
  margin: 0 0 0.55rem;
  color: #173044;
  font-size: 1.12rem;
  line-height: 1.25;
}

.home-card__head .home-card__title {
  margin: 0;
}

.home-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.home-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
  background: #eef5fb;
  color: #315f7a;
  font-size: 0.86rem;
  font-weight: 700;
}

.home-card p,
.home-reason p,
.home-step p {
  margin: 0;
  color: #5c7281;
  line-height: 1.58;
}

.home-list {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: #5c7281;
  line-height: 1.45;
}

.home-list li {
  position: relative;
  padding-left: 1.05rem;
  list-style: none;
}

.home-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: transparent;
  color: #34c759;
  font-weight: 800;
}

.home-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.35rem;
  row-gap: 0.7rem;
}

.home-reason {
  padding: 15px;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.35rem;
  row-gap: 0.7rem;
}

.home-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 15px;
}

.home-step__number {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #315f7a;
  color: #ffffff;
  font-weight: 800;
}

.home-final {
  padding-top: 0;
  padding-bottom: 4px;
}

.home-final__body {
  padding: 15px;
}

.home-final__body p {
  max-width: none;
  margin-bottom: 1.25rem;
}

@media (max-width: 1199.98px) {
  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .home-reasons,
  .home-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .home-actions .btn {
    width: 100%;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }
}

.public-page {
  padding: 2rem;
}

.public-page--contacts {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.public-page__lead {
  margin: 0;
  max-width: 42rem;
  line-height: 1.7;
}

.public-page--contacts .public-page__lead {
  max-width: none;
}

.public-page__html h2 {
  margin: 1.6rem 0 0.7rem;
}

.public-page__html h2:first-child {
  margin-top: 0;
}

.public-page__html p,
.public-page__html ul,
.public-page__html ol {
  color: #5c7281;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem 1.2rem;
}

.footer-links a {
  color: #4e6576;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #315f7a;
}

.min-w-0 {
  min-width: 0;
}

.site-topbar {
  background: #ffffff;
  border-bottom: 1px solid #dfe5eb;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.site-navbar {
  min-height: 64px;
}

.brand-link {
  color: #202b33;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-link:hover {
  color: #202b33;
}

.brand-logo {
  display: block;
  width: auto;
  height: 2.65rem;
}

.brand-accent {
  width: 0.65rem;
  height: 1.4rem;
  background: #3c8dbc;
  border-radius: 0.15rem;
  display: inline-block;
}

.navbar .nav-link {
  color: #5b6771;
  font-weight: 500;
}

.navbar .nav-link.active {
  color: #1f2d3d;
}

.page-shell {
  min-height: 100vh;
}

.page-shell--public {
  min-height: auto;
}

.page-shell--public {
  --public-orange: #f27a1a;
  --public-orange-soft: #fff4ed;
  --public-black: #111827;
  --public-text: #1f2933;
  --public-muted: #6e6e73;
  --public-light: #98989d;
  --public-border: #e8e8ed;
  --public-soft: #f9f9fb;
  --public-green: #34c759;
  --public-blue: #007aff;
  --public-purple: #af52de;
  min-height: 100vh;
  background: #ffffff;
  color: var(--public-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page-shell--public .container,
.public-site-header > .container,
.public-footer > .container {
  max-width: 1280px;
  padding-left: 28px;
  padding-right: 28px;
}

.public-site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--public-border);
  box-shadow: none;
}

.public-navbar {
  min-height: 52px;
  padding: 0;
  background: transparent !important;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--public-black);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.public-brand:hover {
  color: var(--public-black);
}

.public-brand__logo {
  display: block;
  width: auto;
  height: 34px;
}

.public-brand__domain {
  color: var(--public-black);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.public-brand__beta {
  align-self: flex-start;
  margin-top: -4px;
  transform: translate(-135%, 30%);
  color: var(--public-orange);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.public-navbar__links {
  gap: 24px;
}

.public-navbar .nav-link {
  padding: 0;
  color: var(--public-muted);
  font-size: 14px;
  font-weight: 500;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
  color: var(--public-black);
}

.public-navbar__login-item {
  margin-left: 16px;
}

.public-navbar__toggle {
  border-color: var(--public-border);
  border-radius: 8px;
  padding: 6px 8px;
}

.public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.public-button--dark {
  background: var(--public-black);
  color: #ffffff;
  border-color: var(--public-black);
}

.public-button--dark:hover {
  background: #333333;
  color: #ffffff;
}

.public-button--light {
  background: #ffffff;
  color: var(--public-text);
  border-color: var(--public-border);
}

.public-button--light:hover {
  background: var(--public-soft);
  color: var(--public-text);
  border-color: #d7d7dd;
}

.public-main {
  background: #ffffff;
}

.home-landing {
  background: #ffffff;
}

.home-hero {
  padding: 24px 0 16px;
}

.home-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.home-hero__text h1 {
  margin: 0;
  color: var(--public-black);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.home-hero__text h1 span {
  color: var(--public-orange);
}

.home-hero__text p {
  margin: 8px 0 0;
  max-width: none;
  color: var(--public-muted);
  font-size: 15px;
  line-height: 1.55;
}

.home-final__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-card {
  min-height: 100%;
  padding: 18px 16px;
  background: #ffffff;
  border: 1px solid var(--public-border);
  border-radius: 14px;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}

.home-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.home-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.home-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 16px;
}

.home-card__icon i {
  line-height: 1;
}

.home-card--1 .home-card__icon {
  background: #fff3e0;
}

.home-card--2 .home-card__icon {
  background: #e3f2fd;
}

.home-card--3 .home-card__icon {
  background: #fce4ec;
}

.home-card--4 .home-card__icon {
  background: #e8f5e9;
}

.home-card__title {
  margin: 0;
  color: var(--public-black);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.home-card__meta {
  display: block;
  margin-bottom: 10px;
}

.home-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--public-orange-soft);
  color: var(--public-orange);
  font-size: 14px;
  font-weight: 700;
}

.home-card p {
  margin: 0 0 10px;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.5;
}

.home-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-list li {
  position: relative;
  padding-left: 18px;
  list-style: none;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.4;
}

.home-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--public-green);
  font-size: 14px;
  font-weight: 800;
}

.home-panel-section {
  padding: 10px 0 6px;
}

.home-panel {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--public-border);
  border-radius: 14px;
}

.home-panel h2,
.home-final h2 {
  margin: 0 0 4px;
  color: var(--public-black);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.home-panel__lead {
  margin: 0 0 16px;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.5;
}

.home-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--public-soft);
  border: 1px solid var(--public-border);
  border-radius: 10px;
}

.home-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
}

.home-benefit__icon i {
  line-height: 1;
}

.home-benefit--1 .home-benefit__icon {
  background: var(--public-black);
}

.home-benefit--2 .home-benefit__icon {
  background: var(--public-blue);
}

.home-benefit--3 .home-benefit__icon {
  background: var(--public-purple);
}

.home-benefit__title {
  margin: 0 0 2px;
  color: var(--public-black);
  font-size: 14px;
  font-weight: 700;
}

.home-benefit p {
  margin: 0;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.home-step {
  display: block;
  grid-template-columns: none;
  padding: 18px 14px;
  background: var(--public-soft);
  border: 1px solid var(--public-border);
  border-radius: 10px;
  text-align: center;
}

.home-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border-radius: 7px;
  background: var(--public-orange);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.home-step__title {
  margin: 0 0 5px;
  color: var(--public-black);
  font-size: 14px;
  font-weight: 700;
}

.home-step p {
  margin: 0;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.45;
}

.home-final {
  padding: 10px 0 12px;
}

.home-final__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--public-border);
}

.home-final h2 span {
  color: var(--public-orange);
}

.home-final p {
  margin: 4px 0 0;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.45;
}

.public-content-page {
  padding: 24px 0 16px;
}

.public-page-hero {
  margin-bottom: 12px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--public-border);
  border-radius: 14px;
}

.public-page-hero h1 {
  margin: 0 0 6px;
  color: var(--public-black);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.public-page-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--public-muted);
  font-size: 15px;
  line-height: 1.55;
}

.public-panel {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--public-border);
  border-radius: 14px;
}

.public-panel h2,
.public-page__html h2 {
  margin: 0 0 12px;
  color: var(--public-black);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.public-panel h1 {
  margin: 0 0 8px;
  color: var(--public-black);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.public-panel__lead {
  margin: 0 0 18px;
  max-width: none;
  color: var(--public-muted);
  font-size: 15px;
  line-height: 1.55;
}

.public-page__html h2:not(:first-child) {
  margin-top: 22px;
}

.public-page__html p,
.public-page__html ul,
.public-page__html ol {
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.6;
}

.public-contact-panel .form-label {
  color: var(--public-black);
  font-size: 14px;
  font-weight: 700;
}

.public-contact-panel .form-control {
  border-color: var(--public-border);
  border-radius: 10px;
  font-size: 14px;
}

.public-contact-panel .btn-primary {
  min-height: 40px;
  border: 0;
  border-radius: 8px !important;
  background: var(--public-black);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.public-footer {
  background: #ffffff;
}

.public-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border-top: 1px solid var(--public-border);
}

.public-footer span,
.public-footer a {
  color: var(--public-light);
  font-size: 14px;
  text-decoration: none;
}

.public-footer a:hover {
  color: var(--public-muted);
}

.public-footer__links {
  display: flex;
  gap: 18px;
}

.cookie-consent {
  position: fixed;
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 1085;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(calc(100% - 32px), 680px);
  padding: 14px 16px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(18, 30, 41, 0.16);
  color: #1a1a1a;
  transform: translateX(-50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(12px);
}

.cookie-consent.is-hiding {
  opacity: 0;
  transform: translate(-50%, 12px);
}

.cookie-consent__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--public-orange-soft, #eef5fb);
  color: var(--public-orange, #315f7a);
  font-size: 18px;
}

.cookie-consent__body {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-consent__title {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.cookie-consent__text {
  color: var(--public-muted, #5c7281);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent__text a {
  color: var(--public-orange, #315f7a);
  font-weight: 700;
  text-decoration: none;
}

.cookie-consent__text a:hover {
  text-decoration: underline;
}

.cookie-consent__button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--public-black, #1a1a1a);
  border-radius: 8px;
  background: var(--public-black, #1a1a1a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cookie-consent__button:hover {
  background: #333333;
  border-color: #333333;
}

@media (max-width: 960px) {
  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero__row,
  .home-final__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-final__actions {
    width: 100%;
  }

  .home-final__actions .public-button {
    flex: 1 1 0;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .public-navbar {
    padding: 8px 0;
  }

  .public-navbar__links {
    gap: 0;
    padding: 16px 0 4px;
  }

  .public-navbar .nav-link {
    padding: 10px 0;
  }

  .public-navbar__login-item {
    margin-left: 0;
    padding-top: 8px;
  }

  .public-navbar__login {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .page-shell--public .container,
  .public-site-header > .container,
  .public-footer > .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-hero__text h1,
  .public-page-hero h1,
  .public-panel h1 {
    font-size: 26px;
  }

  .home-final__actions {
    flex-direction: column;
  }

  .home-final__actions .public-button {
    width: 100%;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .home-benefit,
  .public-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-footer__inner {
    gap: 10px;
    padding: 12px 0;
  }

  .public-footer__links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .cookie-consent {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 24px);
    padding: 14px;
    border-radius: 12px;
  }

  .cookie-consent__button {
    width: 100%;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #1f2d3d;
}

.hero-lead {
  max-width: 44rem;
  color: #5e6c78;
  font-size: 1.05rem;
}

.hero-panel,
.auth-panel-card,
.dashboard-content-card,
.section-card,
.footer-panel {
  background: var(--app-panel-bg);
  border: 1px solid var(--app-panel-border) !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.dashboard-content-card > .card-body {
  padding: 0.75rem 1rem !important;
}

.metric-card {
  min-height: 100%;
}

.dashboard-metric-card .card-body {
  display: flex;
  flex-direction: column;
}

.dashboard-metric-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-overview-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.85rem;
}

.admin-overview-metrics__item {
  min-width: 0;
}

.admin-overview-list-title {
  font-size: 1.12rem !important;
  line-height: 1.25;
}

.admin-overview-page .row.g-4 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.admin-overview-page .dashboard-metric-card .card-body {
  padding: 0.85rem 0.95rem !important;
}

.admin-overview-page .dashboard-metric-card__head {
  margin-bottom: 0.45rem;
}

.admin-overview-page .dashboard-metric-card .display-6 {
  margin-bottom: 0.35rem !important;
  font-size: clamp(1.45rem, 1.9vw, 1.9rem);
}

.admin-overview-page .dashboard-metric-card .text-secondary {
  font-size: 0.88rem;
  line-height: 1.35;
}

.admin-overview-page .dashboard-metric-link {
  font-size: 1.05rem;
}

.admin-overview-page .dashboard-content-card .d-grid.gap-3 {
  gap: 0.65rem !important;
}

.admin-overview-page .dashboard-content-card .border.p-3,
.admin-overview-page .dashboard-content-card a.border.p-3 {
  padding: 0.75rem !important;
}

.api-cron-page,
.api-cron-page .card,
.api-cron-page .accordion,
.api-cron-page .accordion-item,
.api-cron-page .accordion-body,
.api-cron-page .row > * {
  min-width: 0;
}

.api-cron-page code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.api-cron-code-block {
  max-width: 100%;
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  background-color: #fff;
}

.openai-settings-card-body {
  padding: 15px !important;
}

.openai-settings-card-body .accordion-body {
  padding: 15px !important;
}

.openai-settings-list {
  padding: 15px !important;
}

.openai-settings-list .form-label {
  margin-bottom: 6px;
}

.openai-settings-list .form-control,
.openai-settings-list .form-select {
  min-height: 48px;
  padding: 10px 14px;
}

.openai-settings-list .form-check {
  margin-bottom: 0;
}

.openai-key-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(18rem, 3fr) 7rem 3.25rem;
  gap: 15px;
  align-items: end;
  max-width: 100%;
}

.openai-key-row > * {
  min-width: 0;
}

.openai-proxy-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(28rem, 3fr) 7rem 3.25rem;
  gap: 15px;
  align-items: end;
  max-width: 100%;
}

.openai-proxy-row > * {
  min-width: 0;
}

.openai-proxy-row__status {
  grid-column: auto;
}

.openai-proxy-row__actions {
  grid-column: auto;
}

@media (max-width: 1199.98px) {
  .openai-key-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .openai-proxy-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .openai-proxy-row__url {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .openai-key-row,
  .openai-proxy-row {
    grid-template-columns: 1fr;
  }
}

.dashboard-metric-link {
  color: #2f7ec0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  flex: 0 0 auto;
}

.dashboard-metric-link:hover {
  color: #1d69aa;
}

.account-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.account-section-link i {
  color: #5b7890;
  font-size: 1.05rem;
  line-height: 1;
}

.finance-topup-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.35fr) minmax(32rem, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.finance-topup-layout__form {
  min-width: 0;
}

.finance-topup-layout__amount-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.7fr);
  gap: 0.75rem;
  align-items: center;
}

.finance-topup-layout__amount-controls .btn {
  width: 100%;
  min-height: 2.55rem;
  padding-top: 0.48rem;
  padding-bottom: 0.48rem;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.payment-method-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.9rem;
  padding: 0.25rem 0.85rem;
  border: 1px solid #d7e1ea;
  border-radius: 0.5rem;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.payment-method-option:hover {
  border-color: #9db9cd;
  box-shadow: 0 0.35rem 1rem rgba(40, 72, 93, 0.08);
}

.payment-method-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-option:has(.payment-method-option__input:checked) {
  border-color: #3c8dbc;
  background: #f5fbff;
  box-shadow: inset 0 0 0 1px rgba(60, 141, 188, 0.25);
}

.payment-method-option__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #eef5fa;
  color: #2f6f95;
  flex: 0 0 auto;
  font-size: 1rem;
}

.payment-method-option__body {
  min-width: 0;
}

.payment-method-option__title,
.payment-method-option__description {
  display: block;
}

.payment-method-option__title {
  color: #1f2d3d;
  font-weight: 700;
  line-height: 1.15;
}

.payment-method-option__description {
  color: #667481;
  font-size: 0.88rem;
  line-height: 1.15;
}

.payment-admin-method {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
}

.payment-admin-method .form-check-input {
  flex: 0 0 auto;
}

.payment-admin-method__label {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
  white-space: nowrap;
}

.payment-admin-method__title,
.payment-admin-method__description {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-admin-method__description {
  line-height: 1;
}

@media (max-width: 767.98px) {
  .finance-topup-layout {
    grid-template-columns: 1fr;
  }

  .finance-topup-layout__amount-controls {
    grid-template-columns: 1fr;
  }

  .payment-method-grid {
    grid-template-columns: 1fr;
  }
}

.page-shell--centered,
.public-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.5rem;
  background:
    radial-gradient(circle at top left, rgba(102, 177, 228, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(60, 141, 188, 0.12), transparent 24%),
    #f4f6f9;
}

.public-auth-container {
  width: 100%;
  max-width: 34rem;
}

.public-auth-container--wide {
  max-width: 30.5rem;
}

.public-auth-card {
  border: 1px solid #d9e5ef !important;
  border-radius: 1rem !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 24px 56px rgba(41, 74, 97, 0.12) !important;
}

.public-auth-card .card-body {
  padding: 0.75rem !important;
}

@media (min-width: 992px) {
  .public-auth-card .card-body {
    padding: 1.5rem !important;
  }
}

.public-auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.public-auth-eyebrow {
  color: #7c92a4;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.65rem;
}

.public-auth-title {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  line-height: 1.08;
  color: #1f2d3d;
  text-align: center;
  margin-bottom: 0.75rem;
}

.public-auth-subtitle {
  max-width: 28rem;
  margin: 0 auto 1.75rem;
  color: #6b7a86;
  font-size: 1rem;
  text-align: center;
}

.public-auth-form-title {
  margin: 0 0 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2d3d;
  text-align: center;
}

.public-auth-actions {
  display: grid;
  gap: 0.75rem;
}

.public-auth-agreement {
  margin: -0.1rem 0 0.1rem;
  color: #5d6c78;
  font-size: 0.9rem;
  line-height: 1.35;
}

.public-auth-agreement .form-check-input {
  margin-top: 0.18rem;
}

.public-auth-agreement a {
  color: #315f7a;
  font-weight: 700;
  text-decoration: none;
}

.public-auth-agreement a:hover {
  text-decoration: underline;
}

.public-auth-message {
  border: 1px solid #d9e5ef;
  border-radius: 0.95rem;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.public-auth-message--success {
  border-color: #d7e8dd;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf8 100%);
}

.public-auth-message--loading {
  border-color: #dce5f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  text-align: center;
}

.public-auth-message__title {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2d3d;
}

.public-auth-message__text {
  margin: 0 0 0.85rem;
  color: #5d6c78;
  line-height: 1.65;
}

.public-auth-message__text:last-of-type {
  margin-bottom: 0;
}

.public-auth-message__email {
  color: #2c4467;
  font-weight: 600;
  word-break: break-word;
}

.public-auth-message__loader {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(60, 141, 188, 0.16);
  border-top-color: #3c8dbc;
  border-radius: 999px;
  animation: public-auth-spin 0.8s linear infinite;
}

@keyframes public-auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-activation-title {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.08;
}

.content-header-panel {
  background: #ffffff;
  border: 1px solid #dfe5eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.content-header-panel__eyebrow {
  color: #8a97a3;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.content-header-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2d3d;
}

.content-header-panel__subtitle {
  color: #667481;
  max-width: 52rem;
}

.content-header-panel--admin {
  width: 100%;
  padding: 0.75rem 1rem;
}

.content-header-panel--admin .content-header-panel__title {
  margin: 0 0 0.15rem;
  font-size: 1.45rem;
}

.content-header-panel--admin .content-header-panel__subtitle {
  max-width: none;
  font-size: 0.92rem;
  line-height: 1.35;
}

.app-mobile-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.8rem;
  margin: 0 0 0.7rem;
  border: 1px solid #c8d7e4;
  border-radius: 0.45rem;
  background: #ffffff;
  color: #28485d;
  font-weight: 700;
}

.app-mobile-menu-button i {
  font-size: 1.15rem;
  line-height: 1;
}

.app-sidebar-mobile-backdrop {
  display: none;
}

.admin-toggle-card {
  overflow: hidden;
}

.admin-toggle-card__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #1f2d3d;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-toggle-card__header:hover {
  background: rgba(59, 122, 168, 0.05);
}

.admin-toggle-card__header:focus-visible {
  outline: 0;
  background: rgba(59, 122, 168, 0.08);
  box-shadow: inset 0 0 0 2px rgba(59, 122, 168, 0.18);
}

.admin-toggle-card__header.is-open {
  border-bottom-color: rgba(47, 93, 122, 0.1);
}

.admin-toggle-card__header--danger:hover,
.admin-toggle-card__header--danger:focus-visible {
  background: rgba(176, 42, 55, 0.05);
}

.admin-toggle-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.admin-toggle-card__icon {
  flex: 0 0 auto;
  font-size: 0.95rem;
  color: #6f8090;
  transition: transform 0.18s ease, color 0.15s ease;
}

.admin-toggle-card__header.is-open .admin-toggle-card__icon {
  transform: rotate(180deg);
  color: #3b7aa8;
}

.admin-toggle-card__collapse {
  background: transparent;
}

.admin-toggle-card__collapse > div {
  padding: 0.75rem 1rem !important;
}

.app-sidebar {
  min-height: calc(100vh - 1rem);
  background: var(--app-sidebar-bg);
  border: 1px solid var(--app-sidebar-border);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

@media (min-width: 992px) {
  .app-sidebar-col {
    min-height: 1px;
  }

  .app-sidebar {
    position: fixed;
    top: 0.5rem;
    width: calc(var(--app-sidebar-width) - var(--bs-gutter-x, 1.5rem));
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: contain;
  }
}

.app-sidebar-col {
  flex: 0 0 var(--app-sidebar-width);
  width: var(--app-sidebar-width);
  max-width: var(--app-sidebar-width);
}

.app-main-col {
  flex: 1 1 0%;
  width: 0;
  max-width: none;
  min-width: 0;
  --app-section-gap: 0.75rem;
}

.app-sidebar__body {
  padding: 1rem;
}

.app-sidebar__brand {
  padding: 0.2rem 0.25rem 0.9rem;
  border-bottom: 1px solid rgba(47, 93, 122, 0.12);
  margin-bottom: 1rem;
}

.app-sidebar__brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-sidebar__brand--admin {
  padding-top: 0.1rem;
}

.app-sidebar__toggle {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8d7e4;
  border-radius: 0.6rem;
  background: #ffffff;
  color: #466177;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-sidebar__toggle:hover {
  background: #eef5fb;
  border-color: #bdd0e0;
  color: #17384e;
}

.app-sidebar__toggle i {
  font-size: 1rem;
  line-height: 1;
}

.app-sidebar .brand-link {
  color: var(--app-sidebar-brand);
}

.app-sidebar .brand-link:hover {
  color: var(--app-sidebar-brand);
}

.app-sidebar .brand-accent {
  display: none;
}

.app-sidebar .brand-logo {
  height: 2.9rem;
}

.public-auth-brand .brand-logo {
  height: 3.35rem;
}

.app-sidebar__section {
  color: #7793a9;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.app-sidebar__meta {
  color: #6b8498;
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
  word-break: break-word;
}

.app-sidebar__profile {
  background: #ffffff;
  border: 1px solid rgba(120, 154, 180, 0.16);
  border-radius: 0.75rem;
  padding: 0.8rem 0.85rem;
  margin-bottom: 1rem;
}

.app-sidebar__profile-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-sidebar__profile-info {
  min-width: 0;
  flex: 1 1 auto;
}

.app-sidebar__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(120, 154, 180, 0.2);
  flex: 0 0 auto;
}

.app-sidebar__user-name {
  color: #17384e;
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__balance-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.app-sidebar__balance {
  color: #17384e;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.app-sidebar__topup {
  display: inline-block;
  color: #2f7ec0;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.app-sidebar__topup:hover {
  color: #1d69aa;
}

.app-sidebar__meta--admin {
  margin-top: 0.45rem;
}

.app-sidebar__link {
  color: var(--app-sidebar-text);
  border-radius: 0.35rem !important;
  padding: 0.72rem 0.9rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.app-sidebar__link:hover {
  color: #21455d;
  background: rgba(95, 168, 220, 0.12);
}

.app-sidebar__link.active {
  background: var(--app-sidebar-active);
  color: #17384e;
  border-left: 3px solid #5fa8dc;
  padding-left: calc(0.9rem - 3px);
}

.app-sidebar__group {
  display: grid;
  gap: 0.25rem;
  border-radius: 0.45rem;
}

.app-sidebar__group.is-open {
  background: rgba(231, 241, 250, 0.62);
}

html.app-sidebar-group-account-services-closed [data-app-sidebar-group="account.services"].app-sidebar__group,
html.app-sidebar-group-admin-services-closed [data-app-sidebar-group="admin.services"].app-sidebar__group {
  background: transparent;
}

html.app-sidebar-group-account-services-closed [data-app-sidebar-group="account.services"] > .collapse,
html.app-sidebar-group-admin-services-closed [data-app-sidebar-group="admin.services"] > .collapse {
  display: none !important;
}

html.app-sidebar-group-account-services-closed [data-app-sidebar-group="account.services"] .app-sidebar__chevron,
html.app-sidebar-group-admin-services-closed [data-app-sidebar-group="admin.services"] .app-sidebar__chevron {
  transform: rotate(45deg);
}

.app-sidebar__group.is-open .app-sidebar__group-toggle {
  background: transparent;
}

.app-sidebar__group-toggle {
  width: 100%;
  border: 0;
}

.app-sidebar__chevron {
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 0.58rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  opacity: 0.75;
}

.app-sidebar__group-toggle[aria-expanded="true"] .app-sidebar__chevron {
  transform: rotate(225deg);
}

.app-sidebar__submenu {
  display: grid;
  gap: 0.15rem;
  padding: 0.15rem 0 0.2rem 0;
}

.app-sidebar__sublink {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.35rem;
  color: #536574;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.app-sidebar__sublink-icon {
  width: 1.2rem;
  flex: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b7890;
  font-size: 0.95rem;
}

.app-sidebar__sublink-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__sublink:hover,
.app-sidebar__sublink.active {
  background: #eef6fc;
  color: #1f5f86;
}

.app-sidebar__sublink.active {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 3px 0 0 #5fa8dc;
  color: #17384e;
}

.app-sidebar__sublink:hover .app-sidebar__sublink-icon,
.app-sidebar__sublink.active .app-sidebar__sublink-icon {
  color: #1f5f86;
}

.app-sidebar__sublink.active .app-sidebar__sublink-icon {
  color: #17384e;
}

.app-sidebar__link-main {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.app-sidebar__link-row {
  position: relative;
}

.app-sidebar__link-icon {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.app-sidebar__link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__badge {
  flex: 0 0 auto;
}

.app-sidebar__footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(47, 93, 122, 0.12);
}

.app-sidebar__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.app-sidebar__logout i {
  line-height: 1;
}

.app-sidebar .btn-outline-secondary {
  border-color: #c8d7e4;
  color: #466177;
}

.app-sidebar .btn-outline-secondary:hover {
  background: #eef5fb;
  color: #17384e;
  border-color: #bdd0e0;
}

.app-sidebar--admin {
  background: var(--app-admin-sidebar-bg);
  border-color: var(--app-admin-sidebar-border);
}

.app-sidebar--admin .app-sidebar__section {
  color: #6f8da3;
}

.app-sidebar--admin .app-sidebar__meta {
  color: var(--app-admin-sidebar-text);
}

.app-sidebar--admin .app-sidebar__meta--admin {
  color: #35566e;
}

.app-sidebar--admin .app-sidebar__brand,
.app-sidebar--admin .app-sidebar__footer {
  border-color: rgba(47, 93, 122, 0.12);
}

.app-sidebar--admin .brand-link,
.app-sidebar--admin .brand-link:hover {
  color: var(--app-admin-sidebar-brand);
}

.app-sidebar--admin .brand-accent {
  background: #5fa8dc;
}

.app-sidebar--admin .app-sidebar__link {
  color: var(--app-admin-sidebar-text);
}

.app-sidebar--admin .app-sidebar__link:hover {
  color: #23445c;
  background: rgba(95, 168, 220, 0.12);
}

.app-sidebar--admin .app-sidebar__link.active {
  color: #17384e;
  background: var(--app-admin-sidebar-active);
  border-left-color: #5fa8dc;
}

.app-sidebar--admin .app-sidebar__group.is-open {
  background: rgba(231, 241, 250, 0.7);
}

.app-sidebar--admin .btn-outline-secondary {
  color: #466177;
  border-color: #c8d7e4;
}

.app-sidebar--admin .btn-outline-secondary:hover {
  color: #17384e;
  background: #eef5fb;
  border-color: #bdd0e0;
}

body.app-sidebar-collapsed .app-sidebar-col {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  max-width: 5.5rem;
}

@media (min-width: 992px) {
  body.app-sidebar-collapsed .app-sidebar {
    width: calc(5.5rem - var(--bs-gutter-x, 1.5rem));
  }
}

body.app-sidebar-collapsed .app-sidebar__profile-info,
body.app-sidebar-collapsed .app-sidebar__section,
body.app-sidebar-collapsed .app-sidebar__meta--admin,
body.app-sidebar-collapsed .app-sidebar__link-label,
body.app-sidebar-collapsed .app-sidebar__chevron,
body.app-sidebar-collapsed .app-sidebar__sublink-label,
body.app-sidebar-collapsed .app-sidebar__logout-label,
body.app-sidebar-collapsed .app-sidebar .brand-link span:last-child {
  display: none;
}

body.app-sidebar-collapsed .app-sidebar__brand-row {
  justify-content: center;
}

body.app-sidebar-collapsed .app-sidebar__brand .brand-link {
  display: none !important;
}

body.app-sidebar-collapsed .app-sidebar__toggle {
  width: 2.4rem;
  height: 2.4rem;
  transform: translateX(-0.18rem);
}

body.app-sidebar-collapsed .app-sidebar__profile {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

body.app-sidebar-collapsed .app-sidebar__profile-row,
body.app-sidebar-collapsed .app-sidebar__balance-row {
  justify-content: center;
}

body.app-sidebar-collapsed .app-sidebar__avatar {
  width: 3rem;
  height: 3rem;
}

body.app-sidebar-collapsed .app-sidebar__link {
  padding: 0;
}

body.app-sidebar-collapsed .app-sidebar__link.active {
  border-left: 0;
  padding: 0;
}

body.app-sidebar-collapsed .app-sidebar__group > .collapse {
  display: block;
  height: auto !important;
  visibility: visible;
}

body.app-sidebar-collapsed .app-sidebar__submenu {
  display: grid;
  gap: 0.35rem;
  padding: 0.25rem 0 0;
}

body.app-sidebar-collapsed .app-sidebar__sublink {
  justify-content: center;
  min-height: 2.75rem;
  padding: 0;
}

body.app-sidebar-collapsed .app-sidebar__sublink-icon {
  width: 1.2rem;
  flex-basis: 1.2rem;
}

body.app-sidebar-collapsed .app-sidebar__link-main {
  justify-content: center;
  width: auto;
}

body.app-sidebar-collapsed .app-sidebar__logout {
  min-width: 0;
  padding: 0;
}

body.app-sidebar-collapsed .app-sidebar__link-row {
  justify-content: center !important;
  width: 100%;
  min-height: 2.75rem;
}

body.app-sidebar-collapsed .app-sidebar__badge {
  position: absolute;
  top: -0.15rem;
  right: -0.2rem;
  min-width: 1.25rem;
  padding: 0.2rem 0.38rem;
  font-size: 0.68rem;
  line-height: 1;
  box-shadow: 0 0 0 2px #f8fbff;
}

body.app-sidebar-collapsed .app-sidebar--admin .app-sidebar__badge {
  box-shadow: 0 0 0 2px #f7fbff;
}

.card,
.alert,
.form-control,
.form-select,
.btn,
.list-group-item,
.badge,
.rounded-4,
.rounded-pill {
  border-radius: 0.45rem !important;
}

.btn {
  font-weight: 600;
}

.btn-primary {
  border-color: #3c8dbc;
  background: #3c8dbc;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: #2c6d92;
  background: #2c6d92;
}

.btn-outline-secondary {
  border-color: #c9d3dc;
  color: #4f5d68;
}

.btn-outline-secondary:hover {
  background: #eef3f7;
  border-color: #c0cad3;
  color: #24323c;
}

.form-control,
.form-select {
  min-height: 42px;
  border-color: #d7e0e8;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(60, 141, 188, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(60, 141, 188, 0.12);
}

.app-main-col .p-4,
.app-main-col .p-lg-5 {
  padding: 1rem !important;
}

.app-main-col .form-control-lg,
.app-main-col .form-select-lg {
  min-height: 2.55rem;
  padding: 0.48rem 0.75rem;
  font-size: 0.92rem;
}

.app-main-col .btn-lg {
  min-height: 2.55rem;
  padding: 0.48rem 1rem;
  font-size: 0.94rem;
}

.app-main-col .btn.py-3 {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

.app-main-col h2.h4,
.app-main-col .h4 {
  font-size: 1.12rem;
  line-height: 1.25;
}

.app-main-col .h3 {
  font-size: 1.28rem;
  line-height: 1.22;
}

.app-main-col .display-6 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.08;
}

.app-main-col .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: #586b7a;
}

.app-main-col > .content-header-panel.mb-4,
.app-main-col .card.dashboard-content-card.mb-4,
.app-main-col .alert.mb-4,
.app-main-col .accordion.mb-4,
.app-main-col .row.mb-4,
.app-main-col form.mb-4,
.app-main-col .ticket-thread.mb-4,
.app-main-col .ticket-toolbar.mb-4 {
  margin-bottom: var(--app-section-gap) !important;
}

.app-main-col .row.g-4 {
  --bs-gutter-y: var(--app-section-gap);
}

.app-main-col .mt-4:is(.card, .alert, .accordion, .collapse, .d-flex),
.app-main-col .card.dashboard-content-card.mt-4 {
  margin-top: var(--app-section-gap) !important;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: rgba(112, 88, 166, 0.5) !important;
  opacity: 1;
}

.app-select {
  position: relative;
}

.app-select__trigger {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid #d7e0e8;
  border-radius: 0.45rem;
  background: #ffffff;
  color: #2f3b45;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-select__trigger:hover:not(:disabled) {
  border-color: #c7d4df;
}

.app-select__trigger:focus-visible {
  outline: 0;
  border-color: rgba(60, 141, 188, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(60, 141, 188, 0.12);
}

.app-select__trigger:disabled {
  background: #eef2f5;
  color: #6e7c88;
  cursor: not-allowed;
}

.app-select__arrow {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 0.72rem;
  border-right: 2px solid #6f7f8c;
  border-bottom: 2px solid #6f7f8c;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: 60% 60%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.app-select.is-open .app-select__arrow {
  transform: rotate(225deg) translateY(-2px);
}

.app-select__trigger:hover:not(:disabled) .app-select__arrow {
  border-color: #3c8dbc;
}

.app-select__menu {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 25;
  background: #ffffff;
  border: 1px solid #d7e0e8;
  border-top: 0;
  border-radius: 0 0 0.85rem 0.85rem;
  box-shadow: 0 16px 32px rgba(31, 45, 61, 0.08);
  overflow: hidden;
  max-height: 18rem;
  overflow-y: auto;
}

.app-select.is-open .app-select__menu {
  display: block;
}

.app-select__option {
  width: 100%;
  display: block;
  padding: 0.72rem 0.95rem;
  border: 0;
  background: #ffffff;
  color: #2f3b45;
  text-align: left;
}

.app-select__option:hover,
.app-select__option.is-selected {
  background: #eef6fc;
}

.table {
  --bs-table-bg: transparent;
}

.table thead th {
  color: #6c7a86;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-bottom-width: 1px;
}

.table td,
.table th {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.list-group-item {
  background: #ffffff;
  border-color: #e3e9ef !important;
}

.list-group-item.active {
  background: #3c8dbc;
  border-color: #3c8dbc !important;
}

.text-secondary,
.text-body-secondary {
  color: #6e7c88 !important;
}

.alert {
  box-shadow: none;
}

.app-toast-container {
  z-index: 1085;
}

.app-toast {
  transform: translateX(28px);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.app-toast.show {
  transform: translateX(0);
}

.news-cover-thumb {
  max-width: 500px;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-position: center center;
  cursor: zoom-in;
}

.news-cover-frame {
  border: 1px solid #e3e9ef;
  border-radius: 0.75rem;
  background: #f8fbfe;
  padding: 0.9rem;
}

.copy-field {
  position: relative;
}

.copy-field__value {
  padding-right: 3.25rem;
}

.copy-field__button {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  color: #2f7ec0;
  font-size: 1.1rem;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
  box-shadow: none;
}

.copy-field__button:hover {
  color: #1d69aa;
}

.copy-field--textarea {
  position: relative;
}

.copy-field__textarea {
  min-height: 10.5rem;
  padding-right: 3.25rem;
  resize: vertical;
}

.copy-field__button--textarea {
  top: 0.9rem;
  transform: none;
}

.service-order-card-meta {
  font-size: 1rem;
  line-height: 1.35;
}

.create-ad-result-card {
  background: #ffffff;
}

.create-ad-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f8fbfe;
  border-color: #dde6ee !important;
}

.create-ad-result-layout {
  display: grid;
  grid-template-columns: 14.75rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: flex-start;
}

.create-ad-result-meta-row {
  display: grid;
  grid-template-columns: 14.75rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: end;
}

.create-ad-result-meta-label {
  min-width: 0;
}

.create-ad-result-media {
  display: grid;
  gap: 0.85rem;
}

.create-ad-result-media-actions {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}

.create-ad-result-placeholder {
  width: 14.75rem;
  height: 14.75rem;
  border-radius: 0.9rem;
  border: 1px dashed #cdd8e3;
  background: linear-gradient(180deg, #f8fbfe 0%, #eef4f9 100%);
  color: #5d6b78;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 1rem;
}

.create-ad-result-placeholder__icon {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.create-ad-result-placeholder__text {
  font-size: 0.92rem;
  line-height: 1.4;
}

.create-ad-result-action-button {
  flex: 0 0 auto;
  width: 3rem;
  min-width: 3rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.create-image-result-header .create-ad-result-action-button {
  display: none;
  margin-left: auto;
}

.create-image-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 1rem;
  align-items: start;
}

.create-image-result-grid > .text-secondary {
  grid-column: 1 / -1;
  width: 100%;
}

.create-video-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  align-items: start;
}

.create-video-result-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.create-video-inline-choice {
  min-height: 2.5rem;
}

.format-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  align-items: center;
}

.format-choice-grid .form-check {
  min-width: 0;
  display: grid !important;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.format-choice-preview {
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e2ec;
  border-radius: 0.45rem;
  background: #f8fbfe;
}

.format-choice-preview__shape {
  display: block;
  width: 1.02rem;
  height: 1.02rem;
  border-radius: 0.22rem;
  background: linear-gradient(135deg, #315f7a, #5fa8dc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.format-choice-preview.is-landscape .format-choice-preview__shape {
  width: 1.24rem;
  height: 0.76rem;
}

.format-choice-preview.is-portrait .format-choice-preview__shape {
  width: 0.76rem;
  height: 1.24rem;
}

.form-check-input:checked ~ .format-choice-preview {
  border-color: #2b78e4;
  background: #eef6ff;
}

@media (max-width: 575.98px) {
  .format-choice-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.6rem !important;
  }

  .format-choice-grid .form-check {
    width: 100%;
    margin: 0;
    grid-template-columns: 1.15rem 2rem minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid #e3ebf3;
    border-radius: 0.45rem;
    background: #ffffff;
  }

  .format-choice-grid .form-check > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .format-choice-preview {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
  }
}

.create-video-reference-grid {
  max-width: 12rem;
}

.services-spoiler-toggle::after {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: 0.55rem;
  border-right: 0.12rem solid currentColor;
  border-bottom: 0.12rem solid currentColor;
  transform: rotate(45deg) translateY(-0.12rem);
  transition: transform 0.18s ease;
  vertical-align: middle;
}

.services-spoiler-toggle.collapsed::after {
  transform: rotate(-45deg);
}

.create-video-result-grid > .text-secondary {
  grid-column: 1 / -1;
  width: 100%;
}

.create-video-preview-button {
  display: flex;
  width: 100%;
  aspect-ratio: var(--create-video-ratio, 9 / 16);
  padding: 0;
  border: 0;
  border-radius: 0.9rem;
  background: #f8fbfe;
  overflow: hidden;
  cursor: zoom-in;
}

.create-video-preview-button video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#createVideoPreviewModal .modal-dialog,
#adminCreateVideoPreviewModal .modal-dialog {
  max-width: min(96vw, 1140px);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#createVideoPreviewModal .modal-content,
#adminCreateVideoPreviewModal .modal-content {
  max-height: calc(100dvh - 2rem);
}

#createVideoPreviewModal .modal-body,
#adminCreateVideoPreviewModal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

#createVideoPreviewModal .btn-close,
#adminCreateVideoPreviewModal .btn-close {
  z-index: 3;
  pointer-events: auto;
}

#createVideoPreviewMedia,
#adminCreateVideoPreviewMedia {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 4rem);
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.create-image-result-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.create-image-result-card .create-image-result-header {
  margin-bottom: 0 !important;
}

.create-image-result-card .create-ad-result-image-button,
.create-image-result-card .create-ad-result-image {
  width: 100%;
}

.create-image-result-card .create-ad-result-image {
  height: 100%;
  aspect-ratio: auto;
}

.create-image-result-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
}

.create-image-result-actions .create-ad-result-action-button:last-child {
  margin-left: auto;
}

.create-image-regeneration-form {
  display: grid;
  gap: 0.65rem;
}

.create-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 1.7rem;
  line-height: 1;
}

.create-gallery-nav--prev {
  left: 1rem;
}

.create-gallery-nav--next {
  right: 1rem;
}

#createAdPreviewModal .modal-dialog,
#createImagePreviewModal .modal-dialog {
  max-width: min(96vw, 1140px);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#createAdPreviewModal .modal-content,
#createImagePreviewModal .modal-content {
  max-height: calc(100dvh - 2rem);
}

#createAdPreviewModal .modal-body,
#createImagePreviewModal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

#createAdPreviewImage,
#createImagePreviewImage {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 4rem);
  object-fit: contain;
}

.create-ad-result-image-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14.75rem;
  max-width: 100%;
  aspect-ratio: var(--create-result-ratio, 1 / 1);
  padding: 0;
  border: 0;
  border-radius: 0.9rem;
  background: #f8fbfe;
  cursor: zoom-in;
  overflow: hidden;
}

.create-ad-result-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0.9rem;
  background: transparent;
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
  will-change: opacity, transform;
}

.create-ad-result-image.is-loading {
  opacity: 0;
  transform: translateY(8px);
  filter: saturate(0.9);
}

.create-ad-result-image.is-loaded {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

.create-image-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}

.create-image-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  border: 1px solid #dce6ef;
  border-radius: 0.45rem;
  background: #f8fbfe;
  overflow: hidden;
  cursor: zoom-in;
}

.create-image-thumb-item {
  position: relative;
}

.create-image-thumb-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(220, 53, 69, 0.45);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: #dc3545;
  font-size: 1.15rem;
  line-height: 1;
  z-index: 2;
}

.create-image-thumb-remove:hover {
  background: #dc3545;
  color: #ffffff;
}

.create-image-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.create-ad-result-content {
  flex: 1 1 auto;
  min-width: 0;
}

.file-reset-group {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.file-reset-group .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.file-reset-button {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 0 0.75rem;
  font-size: 1rem;
  line-height: 1;
}

.ticket-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.ticket-list-item {
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ticket-list-item .fw-semibold {
  color: #1f2d3d;
}

.ticket-list-item:hover {
  box-shadow: 0 4px 14px rgba(31, 45, 61, 0.05);
}

.ticket-list-item.ticket-list-item--active {
  background: #edf5fd;
  border-color: #cfe1f1 !important;
}

.ticket-list-item.ticket-list-item--success {
  background: #f4fcf7;
  border-color: #d8efe0 !important;
}

.ticket-list-item.ticket-list-item--danger {
  background: #fff6f7;
  border-color: #f4d5d9 !important;
}

.ticket-list-item.ticket-list-item--secondary {
  background: #f7f9fb;
  border-color: #e2e8ee !important;
}

.ticket-list-item.active {
  background: #edf5fd !important;
  border-color: #bad5eb !important;
  color: #17384e !important;
}

.ticket-list-item.active .fw-semibold,
.ticket-list-item.active .small,
.ticket-list-item.active .text-secondary {
  color: #17384e !important;
}

.ticket-list-status {
  display: inline-block;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  background: transparent;
  border: 0;
}

.ticket-list-status--active {
  color: #2f7ec0;
}

.ticket-list-status--success {
  color: #1f8b4c;
}

.ticket-list-status--danger {
  color: #c23a4a;
}

.ticket-list-status--secondary {
  color: #6b7782;
}

.ticket-toolbar {
  flex-wrap: nowrap;
}

.ticket-toolbar__title {
  flex: 1 1 auto;
  min-width: 0;
}

.ticket-toolbar__controls {
  flex-wrap: nowrap;
}

.ticket-toolbar .form-select,
.ticket-toolbar .btn {
  min-height: 34px;
}

.ticket-toolbar .form-select {
  min-width: 11.5rem;
}

.ticket-thread {
  max-height: min(54vh, calc(100vh - 22rem));
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
  scrollbar-gutter: stable;
}

.ticket-thread .rounded-4 {
  flex: 0 0 auto;
}

.ticket-message {
  display: flex;
}

.ticket-message--incoming {
  justify-content: flex-start;
}

.ticket-message--outgoing {
  justify-content: flex-end;
}

.ticket-message__bubble {
  max-width: min(78%, 42rem);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.ticket-message--incoming .ticket-message__bubble {
  background: #ffffff;
  border: 1px solid #e3e9ef;
}

.ticket-message--outgoing .ticket-message__bubble {
  background: #e9f4fc;
  border: 1px solid #cde2f2;
}

.ticket-message__author {
  font-weight: 700;
  color: #1f2d3d;
}

.ticket-message__text {
  color: #31414d;
  white-space: normal;
  word-break: break-word;
}

.ticket-message__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.ticket-attachment-thumb {
  width: 5.5rem;
  height: 5.5rem;
  padding: 0;
  border: 1px solid #d7e4ef;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #ffffff;
  cursor: zoom-in;
}

.ticket-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#ticketPreviewModal .modal-dialog {
  max-width: min(96vw, 1140px);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#ticketPreviewModal .modal-content {
  max-height: calc(100dvh - 2rem);
}

#ticketPreviewModal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

#ticketPreviewImage {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 4rem);
  object-fit: contain;
}

.ticket-attachment-file {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid #d7e4ef;
  background: #ffffff;
  color: #2f6f9d;
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.ticket-attachment-file:hover {
  color: #24587d;
  border-color: #c3d8e8;
}

.ticket-message__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ticket-message__time {
  font-size: 0.78rem;
  color: #7a8894;
}

.ticket-reply-actions__status {
  flex: 0 0 30%;
  max-width: 30%;
}

.ticket-reply-actions__submit {
  flex: 0 0 70%;
  max-width: 70%;
}

.ticket-compose-hidden {
  display: none !important;
}

.news-accordion .accordion-item {
  border-color: #e3e9ef !important;
}

.news-accordion .accordion-button {
  background: #ffffff;
  color: #1f2d3d;
  font-weight: 600;
  box-shadow: none;
}

.news-accordion .accordion-button:not(.collapsed) {
  background: #f8fbfe;
  color: #1f2d3d;
}

.news-accordion .accordion-body {
  background: #ffffff;
}

.faq-question-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding-right: 1rem;
}

.faq-question-row__text {
  min-width: 0;
  flex: 1 1 auto;
}

.faq-question-row__badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.faq-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.faq-gallery__button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.faq-gallery__thumb {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  display: block;
  border-radius: 0.9rem;
}

.settings-avatar-preview {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #d7e0e8;
  flex: 0 0 auto;
  margin-top: 1.45rem;
}

.settings-avatar-upload {
  min-width: 0;
  flex: 1 1 0;
}

.account-settings-card-body {
  padding: 1rem !important;
}

.account-settings-page .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: #586b7a;
}

.account-settings-page .form-control {
  min-height: 2.55rem;
  padding-top: 0.48rem;
  padding-bottom: 0.48rem;
  font-size: 0.92rem;
}

.account-settings-page form {
  gap: 0.85rem !important;
}

.account-delete-link {
  color: #dc3545;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.account-delete-link:hover {
  color: #b02a37;
  text-decoration: underline;
}

@media (min-width: 992px) {
  .account-settings-card-body {
    padding: 1.05rem 1.15rem !important;
  }
}

.openai-key-delete-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topup-bonus-delete-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
}

.openai-key-limit-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  min-width: 0;
}

.session-log-list {
  max-height: 16.5rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.user-session-card__body {
  padding: 0.75rem 1rem;
}

.blocked-domains-list {
  max-height: 20rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.session-log-accordion .accordion-item {
  border-color: #e3e9ef !important;
}

.session-log-accordion .accordion-button {
  background: #ffffff;
  color: #1f2d3d;
  box-shadow: none;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.session-log-accordion .accordion-button:not(.collapsed) {
  background: #f8fbfe;
  color: #1f2d3d;
}

.session-log-item__toggle {
  min-height: 3.15rem;
}

.session-log-item__summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.88rem;
}

.session-log-item__summary-time {
  font-weight: 700;
  flex: 0 0 auto;
}

.session-log-item__summary-divider {
  color: #9aa8b3;
  flex: 0 0 auto;
}

@media (min-width: 992px) {
  .dashboard-content-card > .card-body {
    padding: 0.85rem 1rem !important;
  }

  .admin-toggle-card__collapse > div {
    padding: 0.85rem 1rem !important;
  }

  .user-session-card__body {
    padding: 0.85rem 1rem;
  }
}

.antifraud-accordion .accordion-button {
  background: #ffffff;
  color: #1f2d3d;
  box-shadow: none;
}

.antifraud-accordion .accordion-button:not(.collapsed) {
  background: #f8fbfe;
  color: #1f2d3d;
}

.antifraud-group__toggle {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.antifraud-group__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-right: 1rem;
}

.antifraud-group__title {
  font-weight: 700;
}

.antifraud-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.antifraud-filters__item {
  flex: 1 1 11rem;
  min-width: 0;
}

.antifraud-filters__item--search {
  flex: 1.8 1 18rem;
}

.antifraud-filters__item--button {
  flex: 0.9 1 9rem;
}

.antifraud-metric-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #2f7ec0;
  font-weight: 600;
}

.antifraud-metric-toggle:hover {
  color: #1d69aa;
}

.antifraud-metric-toggle__arrow {
  font-size: 0.9rem;
  line-height: 1;
}

@media (max-width: 991.98px) {
  body > .container-fluid.py-3.py-lg-4 {
    padding: 0.5rem !important;
  }

  body.app-sidebar-mobile-open {
    overflow: hidden;
  }

  .app-mobile-menu-button {
    display: inline-flex;
  }

  .app-sidebar-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: block;
    border: 0;
    background: rgba(15, 31, 45, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  body.app-sidebar-mobile-open .app-sidebar-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .app-sidebar-col {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 1045;
    flex: 0 0 min(84vw, 20rem);
    width: min(84vw, 20rem);
    max-width: min(84vw, 20rem);
    padding: 0;
    margin: 0 !important;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  body.app-sidebar-mobile-open .app-sidebar-col {
    transform: translateX(0);
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 20rem);
    min-height: 100vh;
    max-height: 100vh;
    margin: 0 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: 0;
    border-radius: 0 0.65rem 0.65rem 0;
    box-shadow: 0 20px 50px rgba(16, 31, 45, 0.24);
  }

  .app-main-col {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .content-header-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title menu"
      "subtitle subtitle";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    margin-bottom: 0.6rem !important;
    padding: 0.75rem;
  }

  .content-header-panel .app-mobile-menu-button {
    grid-area: menu;
    margin: 0;
    justify-self: end;
  }

  .content-header-panel__title {
    grid-area: title;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.22rem;
    line-height: 1.15;
  }

  .content-header-panel__subtitle {
    grid-area: subtitle;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .dashboard-content-card > .card-body,
  .section-card,
  .card-body.p-4,
  .card-body.p-lg-5 {
    padding: 0.75rem !important;
  }

  .app-main-col .row.g-3,
  .app-main-col .row.g-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .app-main-col .table-responsive {
    margin-right: -0.75rem;
    margin-left: -0.75rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  body.app-sidebar-collapsed .app-sidebar-col {
    flex: 0 0 min(84vw, 20rem);
    width: min(84vw, 20rem);
    max-width: min(84vw, 20rem);
  }

  body.app-sidebar-collapsed .app-sidebar {
    min-height: 100vh;
  }

  body.app-sidebar-collapsed .app-sidebar__body {
    padding: 0.85rem;
  }

  body.app-sidebar-collapsed .app-sidebar__profile,
  body.app-sidebar-collapsed .app-sidebar__nav,
  body.app-sidebar-collapsed .app-sidebar__footer {
    display: block;
  }

  body.app-sidebar-collapsed .app-sidebar__brand {
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(47, 93, 122, 0.12);
  }

  body.app-sidebar-collapsed .app-sidebar__brand .brand-link {
    display: inline-flex !important;
  }

  body.app-sidebar-collapsed .app-sidebar__brand-row {
    justify-content: space-between;
  }

  .app-sidebar__toggle {
    width: 2.35rem;
    height: 2.35rem;
  }

  .dashboard-content-card .card-body > .d-flex.justify-content-between.align-items-center.gap-3.mb-3 {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .dashboard-content-card .card-body > .d-flex.justify-content-between.align-items-center.gap-3.mb-3 > .d-flex {
    width: 100%;
    align-items: stretch !important;
    justify-content: space-between;
  }

  .app-per-page-selector {
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-per-page-selector label {
    white-space: normal !important;
  }

  .app-per-page-selector .form-select {
    width: auto;
    min-width: 4.75rem;
  }

  .list-group-item .d-flex.justify-content-between.align-items-start {
    align-items: flex-start !important;
  }

  .list-group-item .badge {
    flex: 0 0 auto;
    max-width: 45%;
    white-space: normal;
    text-align: center;
  }

  .app-main-col form .rounded-4.border.p-3.d-flex.justify-content-between.align-items-center.gap-3 {
    align-items: stretch !important;
    flex-direction: column;
    padding: 0.75rem !important;
  }

  .app-main-col form .rounded-4.border.p-3.d-flex.justify-content-between.align-items-center.gap-3 > .d-flex {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
  }

  .app-main-col form .rounded-4.border.p-3.d-flex.justify-content-between.align-items-center.gap-3 .btn {
    width: 100%;
    min-height: 2.7rem;
    white-space: normal;
  }

  .app-main-col form > .d-flex.flex-wrap.gap-2 .btn {
    flex: 1 1 100%;
    width: 100%;
    min-height: 2.7rem;
    white-space: normal;
  }

  .ticket-thread {
    max-height: none;
    overflow: visible;
  }

  .ticket-reply-actions__status,
  .ticket-reply-actions__submit {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ticket-toolbar,
  .ticket-toolbar__controls {
    flex-wrap: wrap;
  }

  .ticket-list-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-reset-group {
    align-items: stretch;
  }

  .create-ad-results-toolbar,
  .create-ad-result-media-actions {
    flex-wrap: wrap;
  }

  .create-ad-result-layout {
    display: block;
  }

  .create-ad-result-meta-row {
    display: block;
  }

  .create-ad-result-meta-label:first-child {
    margin-bottom: 0.5rem;
  }

  .create-ad-result-media {
    width: 14.75rem;
    margin-bottom: 1rem;
  }

  .create-ad-result-action-button {
    width: 3rem;
    min-width: 3rem;
  }

  .session-log-list {
    max-height: none;
    overflow: visible;
  }

  .session-log-item__summary {
    display: block;
    white-space: normal;
  }

  .antifraud-group__summary {
    display: block;
  }

  .page-shell--centered,
  .public-auth-page {
    padding: 1.5rem 0.75rem;
  }
}

@media (min-width: 1200px) {
  .antifraud-filters {
    flex-wrap: nowrap;
  }
}
