/* Подключаем Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Основные стили */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f3f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Фиксированная шапка */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

/* Смена цвета шапки при скролле */
.scrolled {
    background: rgba(0, 0, 0, 0.85) !important;
    transition: all 0.3s ease-in-out;
}

/* Футер */
footer {
    background: #121212;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    text-align: center;
}

/* Страница логина */
.login-page {
    min-height: 100vh;
    background: url('/images/login-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Карточка логина */
.login-card {
    max-width: 450px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: white;
}

/* Кнопки */
.btn {
    border-radius: 30px;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    filter: brightness(90%);
}

/* Кнопки в шапке */
.navbar .btn {
    padding: 5px 15px;
}

@media (max-width: 575.98px) {
    .navbar .navbar-brand img {
        max-height: 36px !important;
        margin-right: 8px !important;
    }

    .navbar .form-select {
        max-width: 100px;
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .navbar .d-flex.align-items-center.d-lg-none {
        flex-grow: 1;
        justify-content: flex-end;
    }

    .navbar .navbar-toggler {
        padding: 4px 8px;
    }

    .navbar .container {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 575.98px) {
    .navbar .form-select {
        max-width: 100px;
        font-size: 0.85rem;
        padding: 5px 10px;
        margin-right: 8px; /* 👈 вот это добавь */
    }
}

/* Кнопка выхода (Logout) */
.logout-btn {
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Карточки заказов */
.desktop-card {
    width: 100%;
    border-left: 5px solid #007bff;
    transition: background-color 0.3s ease;
    border-radius: 12px;
}

.desktop-card:hover {
    background-color: #eceefd;
}

/* Кнопки заказов */
/*.btn-repeat { background-color: #28a745 !important; color: white !important; }*/
/*.btn-shop { background-color: #007bff !important; color: white !important; }*/
/*.btn-reship { background-color: #fd7e14 !important; color: white !important; }*/
/*.btn-support { background-color: #6c757d !important; color: white !important; }*/

/* Анимация нажатия */
.btn:active {
    transform: scale(0.95);
    transition: 0.1s;
}

/* Убираем обводку у кнопок после клика */
.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Тултипы */
.tooltip {
    font-size: 0.9rem;
}

/* Защита email и телефонов */
.obfuscated-email, .obfuscated-phone {
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

/* Center Turnstile CAPTCHA */
.cf-turnstile {
    display: flex;
    justify-content: center;
    align-items: center;
}


.loyalty-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.loyalty-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Прогресс-бар */
.loyalty-progress {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar-bg {
    height: 12px;
    background: linear-gradient(to right, silver, gold, #e5e4e2, #ffd700);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 12px;
    background: rgba(255, 215, 0, 0.8);
    transition: width 1.5s ease-in-out;
}

/* Медали и статусы */
.loyalty-statuses {
    position: absolute;
    top: -28px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.loyalty-item {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
}

/* Название статуса */
.loyalty-label {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Медаль */
.loyalty-medal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-shadow: 0px 0px 5px rgba(0,0,0,0.3);
    position: relative;
    border: 3px solid white;
}

/* Glow-эффект */
.loyalty-medal.active {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transform: scale(1.2);
}

/* SVG-иконка (Glow) */
.loyalty-medal .glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.5), transparent);
    border-radius: 50%;
    animation: glow-pulse 1.5s infinite alternate;
}

@keyframes glow-pulse {
    from { transform: scale(1); opacity: 0.6; }
    to { transform: scale(1.3); opacity: 1; }
}

/* Цвета медалей */
.silver { background: silver; }
.gold { background: gold; }
.platinum { background: #e5e4e2; }
.vip { background: #ffd700; }

/* Текстовые данные */
.loyalty-discount, .loyalty-coupon, .loyalty-next, .loyalty-needed {
    margin-top: 10px;
    font-size: 1rem;
}

.small-medal {
    width: 32px;
}

.your-status-label {
    font-size: 20px;
}

.coupon-label {
    font-size: 18px;
}

.coupon-code {
    background: #ffe396;
    width: 100%;
    padding: 4px;
    border-radius: 8px;
}

.your-status-sale {
    font-size: 20px;
    color: #ff2626;
    font-weight: 700;
}

.statuses-bar {
    margin: 67px 0;
    max-width: 95%;
}

.statuses-progress  {
    min-width: 97%;

    position: absolute;
    top: calc(50% + 4px);
    left: 50%;
    transform: translate(-50%, -50%);
}

.statuses-progress .status-name {
    font-weight: 400;
    font-size: 16px;
}

.statuses-progress .status-sale {
    top: calc(50% - 7px);
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

.statuses-progress .status-vip .big-medal {
    position: relative;
    top: -10px;
}

.status-money {
    color: #198754;
}

.status-name {
    font-weight: 700;
    font-size: 20px;
}

.status-name.silver {
    background: linear-gradient(104deg, #a8a8a8 22.6%, #959494 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-name.gold {
    background: linear-gradient(104deg, #ffd760 10.1%, #f1b400 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.status-name.platinum {
    background: linear-gradient(102deg, #93f5ef 10.1%, #4bd7cc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.status-name.vip {
    background: linear-gradient(102deg, #ff6565 10.1%, #ff1e1e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


#copy-coupon {
    border: 2px solid #a8a8a8;
    border-radius: 8px;
    font-size: 14px;
    color: #a8a8a8;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s ease;
}

#copy-coupon:hover {
    border: 2px solid #198754;
    color: #198754;
}

.left-to-bonus {
    text-transform: uppercase;
    font-size: 14px;
}

.progressbar {
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    width: 100%;
    height: 16px;
}

.progressbar-line {
    background: #b0b0b0;
    height: 100%;
    border-radius: 12px;
}

.card-loyalty {
    border-radius: 12px;
    min-height: 165px;
}

.big-medal {
    width: 80px;
}

.card-overflow {
    overflow: auto;
}

.icon-help {
    width: 12px;
    cursor: pointer;
    right: -17px;
}

.benefits {
    border: 2px solid #828080;
    border-radius: 12px;
    width: 100%;
    padding: 20px;
}

.benefits-title {
    text-transform: uppercase;
    color: #198754;
    font-size: 20px;
    font-weight: 600;
    position: absolute;
    z-index: 2;
    top: -17px;
    background-color: #f4f3f8;
    padding: 0 5px;
}

.benefits-list {
    grid-template-columns: repeat(3, minmax(200px, 1fr) );
    row-gap: 15px;
    padding: 0 30px;
}

.benefit {
    text-transform: uppercase;
}

.benefit img {
    width: 26px;
}

@media screen and (max-width: 991px) {
    .benefits-list {
        grid-template-columns: repeat(2, minmax(200px, 1fr) );
    }
}

@media screen and (max-width: 768px) {
    .benefits-list {
        grid-template-columns: 1fr;
    }

    .big-medal {
        width: 55px;
    }

    .statuses-progress .status-sale {
        font-size: 12px;
    }

    .statuses-progress .status-name {
        font-size: 14px;
    }

    .benefits-list {
        padding: 0 10px;
        font-size: 14px;
    }

    .status-money {
        font-size: 14px;
    }

    .statuses-bar {
        margin: 50px 0;
    }
}

.text-silver { color: #a7a7a7; }
.text-gold { color: #ffcb3c; }
.text-platinum { color: #5cd4ca; }
.text-vip { color: #ff2626; }

.status-silver .status-sale {
    color: #2c2c2c;
}

.status-gold .status-sale {
    color: #b08100;
}

.status-platinum .status-sale {
    color: #008e82;
}

.status-vip .status-sale {
    color: #f00;
}


.status-silver .progressbar-line {
    background: #b0b0b0;
}

.status-gold .progressbar-line {
    background: #ffee78;
}

.status-platinum .progressbar-line {
    background: #a6f6f1;
}

.status-vip .progressbar-line {
    background: #ff6565;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.top-status-icon {
    width: 18px;
}

@keyframes pop {
  0%   { transform: scale(1); opacity: 0.8; }
  50%  { transform: scale(1.6); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.confetti-icon {
  display: inline-block;
  font-size: 1.6em;
  animation: pop 1s ease-in-out 0s 5 forwards;
}

/* Покрасить поле в красный */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.5s;
}

.checkmark-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkmark {
  width: 100px;
  height: 100px;
  stroke: #28a745;
  stroke-width: 4;
  stroke-miterlimit: 10;
  animation: scaleCheck 0.3s ease-in-out forwards;
}

@keyframes scaleCheck {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.checkmark__circle {
  stroke: #28a745;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: drawCircle 0.6s ease-out forwards;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

.checkmark__check {
  stroke: #28a745;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.3s ease-out 0.6s forwards;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}