body {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex-grow: 1;
}
.navbar {
    background: linear-gradient(135deg, #43506C 0%, #3D619B 100%) !important;
    box-shadow: 0 4px 20px rgba(67, 80, 108, 0.3);
    z-index: 1030;
    transition: transform 0.3s ease;
}

.navbar-hidden {
    transform: translateY(-100%);
}
.navbar-brand {
    font-weight: 700;
    color: white !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}
.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}
.navbar-brand:hover {
    color: #E9E9EB !important;
}
.nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
}
.nav-link:hover {
    color: #E9E9EB !important;
}
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary {
    background: linear-gradient(135deg, #43506C 0%, #3D619B 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-primary {
    border: 2px solid #43506C;
    color: #43506C;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.form-control {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: #43506C;
    box-shadow: 0 0 0 0.2rem rgba(67, 80, 108, 0.25);
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}
.heart-pulse {
    animation: heartbeat 1.2s ease-in-out infinite;
    display: inline-block;
}
.nav-pills .nav-link {
    border-radius: 10px;
    border: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}
.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #43506C 0%, #3D619B 100%);
    color: white;
}
#pricingTabs .nav-link {
    color: #43506C !important;
    background: #f8f9fa !important;
}
#pricingTabs .nav-link.active {
    background: linear-gradient(135deg, #43506C 0%, #3D619B 100%) !important;
    color: white !important;
}
.btn-custom {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}
.btn-success-custom {
    background: linear-gradient(135deg, #43506C 0%, #3D619B 100%);
    color: white;
}
.btn-secondary-custom {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}
.btn-danger-custom {
    background: linear-gradient(135deg, #EF4B4C 0%, #dc2626 100%);
    color: white;
}
.btn-warning-custom {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}
.btn-outline-custom {
    border: 2px solid #43506C;
    color: #43506C;
    background: transparent;
}
.badge {
    border-radius: 20px;
    padding: 8px 15px;
}
.table {
    border-radius: 10px;
    overflow: hidden;
}
.table thead {
    background: linear-gradient(135deg, #43506C 0%, #3D619B 100%);
    color: white;
}
.list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
#notifications-list .list-group-item {
    transform: none !important;
    margin-bottom: 0;
    box-shadow: none;
}
#feedback-list .list-group-item {
    transform: none !important;
    margin-bottom: 0;
    box-shadow: none;
}

/* ===== Custom Dashboard Tour ===== */
.app-tour-spotlight {
    position: fixed;
    z-index: 100000;
    border-radius: 14px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.62);
    border: 2px solid #43506C;
    pointer-events: none;
    transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease, opacity 0.2s ease;
    opacity: 0;
}

.app-tour-spotlight.is-visible {
    opacity: 1;
}

.app-tour-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.app-tour-backdrop.is-visible {
    opacity: 1;
}

.app-tour-backdrop.is-dim {
    background: rgba(15, 23, 42, 0.62);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.app-tour-card {
    position: fixed;
    z-index: 100001;
    width: min(420px, calc(100vw - 32px));
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-tour-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-tour-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #43506C 0%, #3D619B 100%);
    color: #ffffff;
}

.app-tour-card__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.app-tour-card__title {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.app-tour-card__close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}


.app-tour-card__body {
    padding: 18px 20px 6px;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.55;
}

.app-tour-card__body p {
    margin: 0 0 12px;
}

.app-tour-card__body a {
    color: #43506C;
    text-decoration: none;
    font-weight: 500;
}


.app-tour-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-tour-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    color: #475569;
}

.app-tour-list li::before {
    content: '\F26E';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 1px;
    color: #43506C;
    font-size: 0.95rem;
}

.app-tour-card__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px 18px;
}

.app-tour-progress-row {
    display: flex;
    justify-content: center;
}

.app-tour-progress {
    display: flex;
    gap: 6px;
    align-items: center;
}

.app-tour-actions-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.app-tour-actions__left,
.app-tour-actions__right {
    flex: 1;
    display: flex;
}

.app-tour-actions__left {
    justify-content: flex-start;
}

.app-tour-actions__right {
    justify-content: flex-end;
}

.app-tour-progress span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.2s ease, transform 0.2s ease;
}

@media (max-width: 520px) {
    .app-tour-actions-row {
        flex-direction: column;
        gap: 8px;
    }

    .app-tour-actions__left,
    .app-tour-actions__right {
        width: 100%;
        justify-content: center;
    }
}

.app-tour-progress span.is-active {
    background: #43506C;
    transform: scale(1.25);
}

.app-tour-btn {
    border: none;
    border-radius: 24px;
    padding: 9px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-tour-btn--ghost {
    background: transparent;
    color: #64748b;
}


.app-tour-btn--primary {
    background: linear-gradient(135deg, #43506C 0%, #3D619B 100%);
    color: #ffffff;
}


.app-tour-card--centered {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.app-tour-card--centered.is-visible {
    transform: translate(-50%, -50%) !important;
}

.app-tour-card--centered .app-tour-card__body {
    text-align: center;
    padding-top: 22px;
}

.app-tour-card--centered .app-tour-list {
    display: inline-block;
    text-align: left;
}

@media (max-width: 575px) {
    .app-tour-card {
        width: calc(100vw - 24px);
    }
}

/* Tour suggestion alert */
#tour-suggestion {
    border-left: 4px solid #43506C;
    background: linear-gradient(135deg, #E9E9EB 0%, #d9d9d9 100%);
}

.text-custom-primary {
    color: #43506C !important;
}
.text-custom-secondary {
    color: #3D619B !important;
}
.text-custom-danger {
    color: #EF4B4C !important;
}
.bg-custom-primary {
    background-color: #43506C !important;
}
.bg-custom-secondary {
    background-color: #3D619B !important;
}
.bg-custom-primary-light {
    background-color: rgba(67, 80, 108, 0.1) !important;
}
.alert-custom-primary {
    background-color: #43506C;
    border-color: #43506C;
    color: white;
}
.alert-custom-danger {
    background-color: #EF4B4C;
    border-color: #EF4B4C;
    color: white;
}
.alert-custom-secondary {
    background-color: #3D619B;
    border-color: #3D619B;
    color: white;
}

/* Notification Bell Button */
.button {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition-duration: .3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.13);
  border: none;
}

.button:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.button:hover .bell {
  animation: bellRing 0.9s both;
}

.bell {
  width: 16px;
}

.bell path {
  fill: white;
}



/* bell ringing animation keyframes*/
@keyframes bellRing {
  0%,
  100% {
    transform-origin: top;
  }

  15% {
    transform: rotateZ(10deg);
  }

  30% {
    transform: rotateZ(-10deg);
  }

  45% {
    transform: rotateZ(5deg);
  }

  60% {
    transform: rotateZ(-5deg);
  }

  75% {
    transform: rotateZ(2deg);
  }
}


/* Logout button glitch effect */
.logout-btn {
  padding: 8px 16px;
  font-size: 0.95rem;
  border: none;
  border-radius: 5px;
  color: white;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn::after {
  --move1: inset(50% 50% 50% 50%);
  --move2: inset(31% 0 40% 0);
  --move3: inset(39% 0 15% 0);
  --move4: inset(45% 0 40% 0);
  --move5: inset(45% 0 6% 0);
  --move6: inset(14% 0 61% 0);
  clip-path: var(--move1);
  content: 'Выйти';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  pointer-events: none;
}

.logout-btn:hover::after {
  animation: glitch_logout 1s;
  animation-timing-function: steps(2, end);
  text-shadow: -2px -2px 0px #43506C, 2px 2px 0px #3D619B;
  background-color: transparent;
  border: 2px solid #EF4B4C;
}

.logout-btn:hover {
  text-shadow: -1px -1px 0px #43506C, 1px 1px 0px #3D619B;
  border: 1px solid #EF4B4C;
  box-shadow: 0px 5px 15px rgba(239, 75, 76, 0.3);
}

@keyframes glitch_logout {
  0% {
    clip-path: var(--move1);
    transform: translate(0px, -5px);
  }

  10% {
    clip-path: var(--move2);
    transform: translate(-5px, 5px);
  }

  20% {
    clip-path: var(--move3);
    transform: translate(5px, 0px);
  }

  30% {
    clip-path: var(--move4);
    transform: translate(-5px, 5px);
  }

  40% {
    clip-path: var(--move5);
    transform: translate(5px, -5px);
  }

  50% {
    clip-path: var(--move6);
    transform: translate(-5px, 5px);
  }

  60% {
    clip-path: var(--move1);
    transform: translate(5px, -5px);
  }

  70% {
    clip-path: var(--move3);
    transform: translate(-5px, 5px);
  }

  80% {
    clip-path: var(--move2);
    transform: translate(5px, -5px);
  }

  90% {
    clip-path: var(--move4);
    transform: translate(-5px, 5px);
  }

  100% {
    clip-path: var(--move1);
    transform: translate(0);
  }
}

/* Package Cards */
.package-card {
    cursor: pointer;
    border-radius: 16px !important;
    transition: all 0.35s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #43506C 0%, #3D619B 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.package-card.selected {
    box-shadow: 0 0 0 2px #3D619B, 0 18px 40px rgba(67, 80, 108, 0.22) !important;
}

/* Promo Apply Card */
.promo-apply-card {
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f7f8fb 0%, #eef3ff 100%);
    border: 1px solid rgba(67, 80, 108, 0.08);
    box-shadow: 0 20px 40px rgba(67, 80, 108, 0.08);
}

.promo-apply-card__input-group {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.promo-apply-card__input-group .form-control {
    border-radius: 16px;
    border: 2px solid rgba(61, 97, 155, 0.15);
    background: #fff;
    padding: 10px 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.promo-apply-card__input-group .form-control:focus {
    border-color: #3D619B;
    box-shadow: 0 0 0 0.2rem rgba(61, 97, 155, 0.15);
}

.promo-apply-card__input-group button {
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 20px;
    flex: 0 0 160px;
    min-height: 48px;
}

@media (max-width: 576px) {
    .promo-apply-card__input-group {
        flex-wrap: wrap;
    }
    .promo-apply-card__input-group .form-control {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .promo-apply-card__input-group button {
        width: 100%;
    }
}
