/* Back to Top */
#topcontrol .backtotop {
    position: fixed;
    right: 18px;
    bottom: 10px;
    width: 45px;
    height: 45px;
    background: #000000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

#topcontrol .backtotop:hover {
    background: #a99988;
}

#topcontrol .backtotop svg {
    stroke: #fff;
}

/* ====================================================
   Support Widget / Contact Panel
   ==================================================== */
.support-widget {
    position: fixed;
    bottom: 80px;
    right: 15px;
    z-index: 99;
}

.trigger-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-3);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 167, 84, 0.4);
    transition: transform 0.2s;
}

.trigger-btn:hover {
    transform: scale(1.05);
}

.trigger-btn .icon-bvc-member img {
    /* width: 34px;
    height: 34px; */
    border-radius: 50%;
    object-fit: cover;
}

.trigger-btn .icon-close-main {
    display: none;
    width: 22px;
    height: 22px;
    fill: #fff;
}

.trigger-btn.active .icon-bvc-member {
    display: none;
}

.trigger-btn.active .icon-close-main {
    display: block;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-3);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.contact-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 20px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 999;
}

.contact-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 14px 0;
    background: transparent;
    color: #0f172a;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-info {
    flex: 1;
}

.panel-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
}

.panel-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    line-height: 1.2;
}

.panel-info span {
    font-size: 13px;
    color: #22c55e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    flex-shrink: 0;
}

.close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.panel-greeting {
    padding: 0;
    font-size: 14px;
    color: #475569;
    margin: 0 0 16px 0;
    border-bottom: none;
    line-height: 1.5;
    font-weight: 400;
}

.contact-list {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none !important;
    background: #edf5fd;
    border: 1px solid #d0e4ff;
    color: #0f172a !important;
    transition: all 0.2s ease;
    gap: 12px;
    margin-bottom: 10px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    background: #e2f0fe;
    border-color: #3b82f6;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.contact-item .icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
}

.contact-item .icon-wrap img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
}

.contact-text {
    flex: 1;
}

.contact-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: block;
    line-height: 1.25;
}

.contact-text p {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.3;
    font-weight: 400;
}

.contact-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.contact-item:hover .contact-arrow {
    color: #475569;
    transform: translateX(2px);
}

.icon-bvc-member svg {
    width: 30px;
    height: 30px;
    fill: #FFF;
}

.icon-headset {
    fill: #3b82f6;
    width: 38px;
    height: 38px;
}

@media (max-width: 575px) {
    .contact-panel {
        width: 300px;
    }
}

/* ====================================================
   COMPLEX FOOTER
   ==================================================== */
.footer {
    background-color: #000000;
    color: #ffffff;
    width: 100%;
    position: relative;
    font-family: inherit;
}

/* --- Top Banner (if enabled) --- */
.footer__top-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #262626;
    gap: 20px;
}

.footer__app-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.footer__app-title em {
    font-style: italic;
    font-weight: 600;
}

.footer__app-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.footer__qrcode {
    width: 64px;
    height: 64px;
}

.footer__qrcode svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Main Bottom Banner Container --- */
.footer__bottom-banner {
    padding: 60px 0 30px 0;
}

/* --- Brand Logo & Social Row --- */
.footer__brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 24px 0;
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid #4c4c4c;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.footer__logo img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.footer__social-group {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer__social-group h2,
.footer__social-group h3,
.footer__social-group h4,
.footer__social-group p,
.footer__follow-label {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    /* letter-spacing: 0.5px; */
    line-height: 1.2;
}

.footer__social-group ul,
.footer__social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer__social-group ul li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__social-group ul li a,
.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    transition: all 0.25s ease;
    text-decoration: none !important;
    color: #ffffff !important;
}

.footer__social-group ul li a:hover,
.footer__social-link:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.footer__social-group ul li img,
.footer__social-group img.image,
.footer__social-link img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
    display: block;
    transition: filter 0.25s ease;
}

.footer__social-group ul li a:hover img,
.footer__social-link:hover img {
    filter: brightness(0) !important;
}

/* --- Navigation & Newsletter Grid --- */
.footer__grid {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.5fr 1.9fr;
    gap: 36px 36px;
    padding: 10px 0 36px;
    border-bottom: 1px solid #4c4c4c;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__col h2,
.footer__col h3,
.footer__col h4,
.footer__col-heading {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    line-height: 1.35;
    color: #ffffff;
    /* letter-spacing: 0.5px; */
}

.footer__col ul,
.footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col ul li {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.6;
}

.footer__col ul li strong {
    color: #ffffff;
    font-weight: 600;
}

.footer__col ul li a,
.footer__menu li a {
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer__col ul li a:hover,
.footer__menu li a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Newsletter Column --- */
.footer__col--newsletter {
    display: flex;
    flex-direction: column;
}

.footer__newsletter-form {
    margin-bottom: 14px;
}

.footer__input-wrap {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.footer__input {
    flex: 1;
    min-width: 0;
    background-color: #141414;
    border: 1px solid #333333;
    border-right: none;
    border-radius: 2px 0 0 2px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0 14px;
    height: 42px;
    transition: border-color 0.2s, background-color 0.2s;
}

.footer__input::placeholder {
    color: #737373;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.3px;
}

.footer__input:focus {
    outline: none;
    border-color: #666666;
    background-color: #1a1a1a;
}

.footer__submit-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 0 2px 2px 0;
    padding: 0 18px;
    height: 42px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer__submit-btn:hover {
    background-color: #e4e4e7;
}

.footer__submit-btn:active {
    background-color: #d4d4d8;
}

.footer__disclaimer,
.footer__disclaimer p {
    font-size: 13px;
    line-height: 1.6;
    color: #71717a;
    margin: 0;
    text-transform: none;
}

.footer__disclaimer a {
    color: #a1a1aa !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.footer__disclaimer a:hover {
    color: #ffffff !important;
}

/* --- Bottom Bar / Legal Links --- */
.footer__bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4c4c4c;
    padding: 20px 0;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer__bottom-bar ul,
.footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__bottom-bar ul li,
.footer__legal-links li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__bottom-bar ul li a,
.footer__legal-links li a {
    color: #888888 !important;
    font-size: 15px;
    text-decoration: none !important;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer__bottom-bar ul li a:hover,
.footer__legal-links li a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/* --- Affiliate / Copyright Disclaimer --- */
.footer__copyright {
    padding: 4px 0 30px 0;
}

.footer__copyright-text,
.footer__copyright-text p {
    font-size: 15px;
    line-height: 1.65;
    color: #71717a;
    margin: 0;
    text-transform: none;
}

.footer__copyright-text strong {
    color: #d4d4d8;
    font-weight: 600;
}

/* ====================================================
   RESPONSIVE BREAKPOINTS
   ==================================================== */
@media (max-width: 1200px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr 1.5fr;
        gap: 32px 20px;
    }

    .footer__col--newsletter {
        grid-column: 1 / -1;
        max-width: 540px;
    }
}

@media (max-width: 991px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .footer__col--newsletter {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .footer__bottom-banner {
        padding: 36px 0;
    }

    .footer__top-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 20px 0;
    }

    .footer__app-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .footer__brand-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 20px 0;
        gap: 16px;
        margin-bottom: 20px;
    }

    .footer__social-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 16px;
        padding-bottom: 24px;
    }

    .footer__col:nth-child(3),
    .footer__col--newsletter {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer__bottom-bar {
        padding: 16px 0;
    }

    .footer__bottom-bar ul {
        gap: 10px 16px;
    }
}

@media (max-width: 480px) {
    .footer__app-title {
        font-size: 18px;
    }

    .footer__input-wrap {
        /* flex-direction: column; */
        /* gap: 8px; */
    }

    .footer__input {
        border-right: 1px solid #333333;
        border-radius: 2px;
        width: 100%;
    }

    .footer__submit-btn {
        /* border-radius: 2px; */
        /* width: 100%; */
    }
}
