.landing-shell {
  padding: 0;
}

.hero {
  min-height: calc(100vh - 56px);
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.9) 0%, rgba(42, 45, 121, 0.78) 46%, rgba(5, 198, 200, 0.2) 100%),
    url("../img/bitsecure-hero.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 720px;
}

.hero__eyebrow {
  color: #6ee7f9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin: 0.65rem 0 1.25rem;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  max-width: 610px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  max-width: 680px;
}

.hero__metric {
  border-left: 1px solid rgba(110, 231, 249, 0.55);
  padding-left: 1rem;
}

.hero__metric strong {
  display: block;
  font-size: 1.45rem;
}

.section-band {
  padding: 5rem 0;
}

.section-band--muted {
  background: #f4f7fb;
}

.plans-hero {
  background: #f1f1f1;
  padding: 5rem 0 3rem;
}

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

.service-tile,
.plan-card {
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  padding: 1.25rem;
  height: 100%;
  background: #fff;
}

.service-tile h3,
.plan-card h3 {
  font-size: 1.05rem;
}

.plan-card__price {
  font-size: 2rem;
  font-weight: 700;
}

.plan-card__price small {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 400;
}

.plan-card--featured {
  box-shadow: 0 12px 30px rgba(21, 35, 65, 0.08);
}

.plan-list {
  margin: 0;
  padding-left: 1.1rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.app-page {
  background: #f1f1f1;
  min-height: calc(100vh - 56px);
  max-width: none;
  padding: 0;
}

.app-page > .app-shell {
  padding: 2rem 2rem 3rem;
}

.navbar.bg-dark {
  background: #050505 !important;
  min-height: 72px;
}

.navbar .navbar-brand {
  font-weight: 800;
  letter-spacing: 0;
}

.app-sidebar {
  position: sticky;
  top: 2rem;
  border: 0;
  border-radius: 0;
  min-height: calc(100vh - 120px);
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, #e7e8f7 0%, #cfe1f4 100%);
  box-shadow: 0 12px 30px rgba(21, 35, 65, 0.08);
}

.app-sidebar__brand {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.app-sidebar__mark {
  align-items: center;
  background: #443a99;
  border-radius: 14px;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.app-sidebar__name {
  color: #3e348e;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.app-sidebar__role {
  color: #687394;
  font-size: 0.82rem;
}

.app-sidebar__profile {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.app-sidebar__avatar {
  align-items: center;
  background: #fff;
  border: 2px solid rgba(68, 58, 153, 0.18);
  border-radius: 50%;
  color: #3e348e;
  display: flex;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.app-sidebar__section + .app-sidebar__section {
  border-top: 1px solid rgba(68, 58, 153, 0.16);
  margin-top: 1rem;
  padding-top: 1rem;
}

.app-sidebar__label {
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.app-sidebar__link {
  border-radius: 6px;
  color: #152642;
  font-weight: 700;
  padding: 0.72rem 0.7rem;
}

.app-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #3f45f4;
}

.app-sidebar__static {
  display: block;
  font-weight: 600;
}

.app-sidebar__mini {
  background: rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.7rem;
}

.app-main {
  min-width: 0;
}

.content-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(20, 23, 31, 0.03);
  padding: 1.25rem;
}

.content-card.p-0 {
  padding: 0 !important;
}

.form-card {
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(21, 35, 65, 0.10);
  overflow: hidden;
}

.form-card__header {
  background: linear-gradient(135deg, #4353ff 0%, #05c6c8 100%);
  color: #fff;
  padding: 1.35rem 1.5rem;
}

.form-card__header h1,
.form-card__header h2,
.form-card__header h3 {
  color: #fff;
  margin: 0;
}

.form-card__header p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0.35rem 0 0;
}

.form-card__body {
  padding: 1.5rem;
}

.form-card__footer {
  align-items: center;
  background: #f8fafc;
  border-top: 1px solid #e8eef6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.form-card .form-label,
.form-card label {
  color: #152642;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.form-card .form-control,
.form-card .form-select {
  border-color: #cfd8e6;
  border-radius: 8px;
  min-height: 46px;
}

.form-card textarea.form-control {
  min-height: 124px;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: #4353ff;
  box-shadow: 0 0 0 0.22rem rgba(67, 83, 255, 0.14);
}

.form-card .form-text {
  color: #687394;
}

.form-card .errorlist {
  color: #b02a37;
  font-size: 0.875rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.form-section-card {
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 35, 65, 0.06);
  height: 100%;
  padding: 1.2rem;
}

.form-section-card h2 {
  color: #152642;
  font-size: 1rem;
  font-weight: 800;
}

.form-card ul[id^="id_"],
.form-section-card ul[id^="id_"] {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.form-section-card ul[id^="id_has_"],
.form-section-card #id_uses_cookies {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-card ul[id^="id_"] label,
.form-section-card ul[id^="id_"] label {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  display: flex;
  font-weight: 700;
  gap: 0.55rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
}

.form-card ul[id^="id_"] input,
.form-section-card ul[id^="id_"] input {
  appearance: auto;
  flex: 0 0 auto;
  margin: 0;
}

.gdpr-form-field {
  margin-bottom: 1rem;
}

.gdpr-form-field > .form-label {
  line-height: 1.25;
}

.form-card .form-check,
.form-section-card .form-check {
  background: #f8fafc;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  padding: 0.75rem 0.85rem 0.75rem 2.35rem;
}

.form-aside-card {
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(21, 35, 65, 0.07);
  padding: 1.25rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e0e6f0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(24, 31, 55, 0.06);
  min-height: 150px;
  padding: 1rem;
  position: relative;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.feature-card:hover {
  border-color: #4353ff;
  box-shadow: 0 14px 30px rgba(67, 83, 255, 0.12);
  transform: translateY(-1px);
}

.feature-card.is-locked {
  background: #fbfcff;
  border-style: dashed;
}

.feature-card.is-locked::after {
  background: rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

.feature-card.is-locked > * {
  position: relative;
  z-index: 1;
}

.feature-card__icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 50%;
  color: #3343d8;
  display: flex;
  flex: 0 0 36px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.notification-board {
  background: #fff;
  border: 1px solid #e4e7ef;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(24, 31, 55, 0.13);
  overflow: hidden;
}

.notification-hero {
  background: linear-gradient(135deg, #9a62e8 0%, #ff8a63 100%);
  color: #fff;
  min-height: 260px;
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  text-align: center;
}

.notification-hero::after {
  background: #fff;
  bottom: -1px;
  clip-path: polygon(0 48%, 50% 72%, 100% 48%, 100% 100%, 0 100%);
  content: "";
  height: 110px;
  left: 0;
  position: absolute;
  right: 0;
}

.notification-hero h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.notification-hero p,
.notification-hero strong {
  color: #1f2430;
  display: block;
  position: relative;
  z-index: 2;
}

.notification-hero strong {
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

.notification-hero__close {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  position: absolute;
  right: 18px;
  top: 12px;
}

.notification-envelope {
  background: linear-gradient(135deg, #ffe28a 0%, #f2bd56 100%);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(70, 47, 30, 0.20);
  height: 110px;
  margin: 0 auto 1rem;
  position: relative;
  width: 148px;
  z-index: 2;
}

.notification-envelope::before,
.notification-envelope::after {
  border-bottom: 55px solid #f5cd70;
  border-left: 74px solid transparent;
  border-right: 74px solid transparent;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
}

.notification-envelope::after {
  border-bottom-color: #eab551;
  opacity: 0.55;
  transform: scaleX(-1);
}

.notification-envelope__paper {
  align-items: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(20, 31, 55, 0.14);
  color: #f06d4f;
  display: flex;
  font-size: 3rem;
  font-weight: 800;
  height: 88px;
  justify-content: center;
  left: 28px;
  position: absolute;
  top: -34px;
  width: 92px;
}

.notification-list {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.notification-card,
.dashboard-notification {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e4e7ef;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
}

.notification-card {
  padding: 1rem;
}

.notification-card--unread,
.dashboard-notification--unread {
  border-color: #ff9b71;
  box-shadow: 0 10px 26px rgba(255, 138, 99, 0.16);
}

.notification-card__icon,
.dashboard-notification__icon {
  align-items: center;
  background: #fff0e9;
  border-radius: 50%;
  color: #f06d4f;
  display: flex;
  flex: 0 0 38px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.notification-card__content {
  flex: 1 1 auto;
}

.notification-card__title {
  color: #1f2430;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.notification-card__message {
  color: #566175;
  font-size: 0.92rem;
}

.notification-card__date {
  color: #8791a3;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.notification-card__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.notification-empty {
  color: #8791a3;
  padding: 1rem;
  text-align: center;
}

.notification-pagination {
  align-items: center;
  border-top: 1px solid #edf0f5;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.dashboard-notification-list {
  display: grid;
  gap: 0.75rem;
}

.dashboard-notification {
  padding: 0.85rem;
}

.metric-card {
  border: 0;
  border-radius: 4px;
  color: #fff;
  height: 100%;
  min-height: 136px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.metric-card .text-muted,
.metric-card .small {
  color: rgba(255, 255, 255, 0.85) !important;
}

.metric-card .h5 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.metric-card::after {
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  content: "";
  display: flex;
  height: 58px;
  position: absolute;
  right: 20px;
  top: 30px;
  width: 58px;
}

.metric-card--blue {
  background: linear-gradient(135deg, #4353ff 0%, #3545ec 100%);
}

.metric-card--pink {
  background: linear-gradient(135deg, #ff39a8 0%, #f22595 100%);
}

.metric-card--teal {
  background: linear-gradient(135deg, #09c7c7 0%, #00b6b6 100%);
}

.btn-primary,
.app-btn.btn-primary {
  background: #4353ff;
  border-color: #4353ff;
  font-weight: 700;
}

.btn-outline-primary {
  border-color: #4353ff;
  color: #4353ff;
  font-weight: 700;
}

.btn-outline-primary:hover {
  background: #4353ff;
  border-color: #4353ff;
}

.badge.text-bg-danger {
  background: #ff39a8 !important;
}

.badge.text-bg-warning {
  background: #ffa72b !important;
  color: #fff !important;
}

.badge.text-bg-success {
  background: #05c6c8 !important;
}

.table {
  --bs-table-bg: #fff;
}

.table thead th {
  color: #111827;
  font-weight: 800;
}

.global-toast-container {
  z-index: 1080;
}

.app-messages {
  max-width: 980px;
}

.app-message {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #dfe7f1;
  border-left: 6px solid #4353ff;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(21, 35, 65, 0.10);
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
  padding: 1rem 1.1rem;
}

.app-message__icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 50%;
  color: #3343d8;
  display: flex;
  flex: 0 0 34px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.app-message__title {
  color: #152642;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.app-message__body {
  color: #46566f;
}

.app-message--success {
  border-left-color: #198754;
}

.app-message--success .app-message__icon {
  background: #e8f6ee;
  color: #146c43;
}

.app-message--warning {
  border-left-color: #f0ad1f;
}

.app-message--warning .app-message__icon {
  background: #fff4d8;
  color: #916500;
}

.app-message--error,
.app-message--danger {
  border-left-color: #dc3545;
}

.app-message--error .app-message__icon,
.app-message--danger .app-message__icon {
  background: #fdecef;
  color: #b02a37;
}

.ai-feature-card {
  border-color: #b7c1ff;
  box-shadow: 0 14px 30px rgba(67, 83, 255, 0.10);
  position: relative;
}

.ai-feature-card::before {
  background: linear-gradient(180deg, #4353ff 0%, #05c6c8 100%);
  border-radius: 8px 0 0 8px;
  bottom: -1px;
  content: "";
  left: -1px;
  position: absolute;
  top: -1px;
  width: 6px;
}

.ai-feature-card.is-locked {
  background: #fbfcff;
}

.workflow-steps {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-step {
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 6px;
  padding: 0.9rem;
}

.workflow-step.is-active {
  border-color: #4353ff;
  box-shadow: 0 8px 22px rgba(67, 83, 255, 0.12);
}

.maintenance-page {
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.92), rgba(18, 30, 52, 0.88)),
    url("../img/bitsecure-hero.png") center / cover no-repeat;
  color: #fff;
  min-height: 100vh;
}

.maintenance-shell {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 2rem;
}

.maintenance-panel {
  max-width: 640px;
}

.maintenance-brand {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.maintenance-kicker {
  color: #6ee7f9;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.maintenance-panel h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.maintenance-panel p:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  max-width: 560px;
}

@media (max-width: 991px) {
  .hero {
    min-height: 760px;
    background-image:
      linear-gradient(180deg, rgba(5, 12, 24, 0.92) 0%, rgba(5, 12, 24, 0.76) 55%, rgba(5, 12, 24, 0.28) 100%),
      url("../img/bitsecure-hero.png");
  }

  .service-grid,
  .hero__metrics {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    min-height: auto;
    position: static;
  }

  .app-page > .app-shell {
    padding: 1rem;
  }

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