/* Sobrescrever variável do Bootstrap para mudar background de #040404 para #000 */
[data-bs-theme="dark"] {
    --bs-body-bg: #000 !important;
    --bs-body-bg-rgb: 0, 0, 0 !important;
}

body[data-bs-theme="dark"] {
    --bs-body-bg: #000 !important;
    --bs-body-bg-rgb: 0, 0, 0 !important;
}

/* ---- Registration Page ---- */
.reg-container {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 100px;
}

.reg-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reg-header__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Label com ícone inline */
.cfg-form-field label i {
    margin-right: 0.35rem;
    opacity: 0.5;
    font-size: 0.7rem;
}

/* Password reveal button */
.reg-password-wrapper {
    position: relative;
}

.reg-password-wrapper .form-control {
    padding-right: 2.5rem;
}

.reg-reveal-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
}

.reg-reveal-btn:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer: termos + botão */
.reg-footer {
    text-align: center;
    margin-top: 2rem;
}

.reg-terms {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.reg-terms a {
    color: #03DDC2;
}

.reg-submit {
    padding: 0.75rem 2.5rem;
    font-size: 0.95rem;
}

.reg-login-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1rem;
}

.reg-login-link a {
    color: #03DDC2;
}

/* ---- intlTelInput ---- */
.iti {
    width: 100%;
}

.iti .iti__country-container {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

.iti .iti__dropdown-content {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

.iti .iti__country-container .iti__selected-country {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

.iti__country-list {
    background-color: #1D1B20;
}

/* ---- Botão voltar ---- */
.btn-back-header {
    background: transparent;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-back-header svg {
    height: 28px;
    width: 28px;
    fill: transparent;
    stroke: #03DDC2;
    transition: all 0.3s ease;
}

.btn-back-header:hover svg,
.btn-back-header:focus svg {
    fill: #03DDC2;
    stroke: #000;
    transform: scale(1.1);
}

.btn-back-header:hover {
    background: rgba(3, 221, 196, 0.1);
    border-radius: 8px;
}

/* ---- input-group (cupom) ---- */
.input-group-text {
    background-color: transparent;
    border: none;
}

.input-group {
    flex-wrap: unset;
}

/* ---- Upload de foto ---- */
.image-exercise {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.image-exercise:hover {
    opacity: 1;
}

.image-exercise img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Plan cards (pln-card) - Selected state para cadastro ---- */
.pln-card.plan-card-item {
    cursor: pointer;
}

.pln-card.plan-card-item.selected {
    border: 2px solid rgba(3, 221, 194, 0.5);
    box-shadow: 0 0 15px rgba(3, 221, 194, 0.15), 0 4px 16px rgba(3, 221, 194, 0.1);
    background: rgba(3, 221, 194, 0.06);
    animation: selectedGlow 3s ease-in-out infinite;
}

.pln-card.plan-card-item.selected:hover {
    border-color: rgba(3, 221, 194, 0.7);
    box-shadow: 0 0 20px rgba(3, 221, 194, 0.25), 0 8px 25px rgba(3, 221, 194, 0.15);
}

.pln-card.plan-card-item.selected::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #03DDC2;
    font-size: 1.2rem;
    z-index: 10;
    animation: checkmarkPop 0.3s ease;
    text-shadow: 0 0 8px rgba(3, 221, 196, 0.6);
}

@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes selectedGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(3, 221, 194, 0.15), 0 4px 16px rgba(3, 221, 194, 0.1); }
    50% { box-shadow: 0 0 20px rgba(3, 221, 194, 0.2), 0 6px 20px rgba(3, 221, 194, 0.15); }
}

/* ---- Discount badge (cupom aplicado nos cards) ---- */
.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3cfea5 0%, #03ddc4 100%);
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(3, 221, 196, 0.4);
    animation: badgePop 0.3s ease;
    vertical-align: middle;
    line-height: 1.2;
}

@keyframes badgePop {
    0% { transform: scale(0) rotate(-10deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ---- Seção de cupom - Versão Minimalista ---- */
.coupon-section.coupon-style-minimal {
    margin-top: 0;
    padding: 1rem 1.25rem;
    padding-top: 1.5rem !important;
    background: rgba(29, 27, 32, 0.4);
    border: 1.5px solid rgba(3, 221, 196, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(3, 221, 196, 0.08);
    overflow: visible !important;
    position: relative !important;
}

.coupon-label {
    display: block;
    color: #03DDC2;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.coupon-label i {
    color: #03DDC2;
    font-size: 1rem;
}

.coupon-input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(3, 221, 196, 0.15);
    transition: all 0.3s ease;
}

.coupon-input-group:focus-within {
    box-shadow: 0 2px 12px rgba(3, 221, 196, 0.3);
    transform: translateY(-1px);
}

.coupon-icon {
    background: rgba(3, 221, 196, 0.15) !important;
    border: none !important;
    color: #03DDC2 !important;
    padding: 0.6rem 0.9rem !important;
}

.coupon-icon i {
    font-size: 1rem;
    color: #03DDC2;
}

.coupon-input {
    background: rgba(29, 27, 32, 0.7) !important;
    border: 1.5px solid rgba(3, 221, 196, 0.25) !important;
    color: #fff !important;
    padding: 0.6rem 0.9rem !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

.coupon-input:focus {
    background: rgba(29, 27, 32, 0.85) !important;
    border-color: #03DDC2 !important;
    box-shadow: 0 0 0 0.15rem rgba(3, 221, 196, 0.2) !important;
    outline: none !important;
}

.coupon-input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

#couponMessage {
    text-align: left;
    font-weight: 500;
    min-height: 1.2rem;
}

#couponMessage small {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
}

/* Badge flutuante do cupom */
.coupon-section.coupon-style-minimal #couponBadge,
#couponBadge {
    position: absolute !important;
    top: -12px !important;
    right: 12px !important;
    z-index: 1000 !important;
    animation: badgeFloat 2s ease-in-out infinite !important;
    transform: translateY(0) !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

#couponBadge.bg-success {
    background: linear-gradient(135deg, #3cfea5 0%, #03ddc4 100%) !important;
    color: #000 !important;
}

#couponBadge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: #fff !important;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

#couponMessage .text-success {
    background: rgba(60, 254, 165, 0.12);
    color: #3CFEA5 !important;
    border: 1px solid rgba(60, 254, 165, 0.25);
}

#couponMessage .text-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

/* ---- Responsividade ---- */
@media (max-width: 768px) {
    .reg-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .discount-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}
