:root {
    --footer-line-color: #c39c3b;
}

/* ==========================================================================
   Luxury Glassmorphism Modal Styles (Shared)
   Targeting: Contact Us Modal, Coupon Modal, Change Password Modal
   ========================================================================== */

/* Backdrop styling - adding heavy premium blur */
#contact-modal.modal, #repass-modal.modal, #getCouponModal.modal {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background-color: rgba(10, 5, 20, 0.6) !important;
}

#contact-modal .modal-dialog, #repass-modal .modal-dialog, #getCouponModal .modal-dialog {
    max-width: 460px;
    margin: 1.75rem auto;
}

#contact-modal .contact-modal-content, 
#repass-modal .repass-modal-content, 
#getCouponModal .coupon-modal-content {
    background: linear-gradient(145deg, #1b0c2b 0%, #0d0617 100%) !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 
                0 0 25px rgba(138, 43, 226, 0.2),
                inset 0 0 15px rgba(195, 156, 59, 0.06) !important;
    position: relative;
    overflow: hidden;
}

/* Footer-matched border */
#contact-modal .contact-modal-content::before,
#repass-modal .repass-modal-content::before,
#getCouponModal .coupon-modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 2px; /* Border thickness */
    background: var(--footer-line-color) !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Header styling */
.contact-modal-header, .repass-modal-header, .coupon-modal-header {
    border-bottom: 1px solid var(--footer-line-color) !important;
    padding: 20px 24px 15px !important;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-modal-title, .repass-modal-title, .coupon-modal-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to right, #FFF288, #FFA319);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-modal-title i, .repass-modal-title i, .coupon-modal-title i {
    color: #FFA319;
    -webkit-text-fill-color: initial;
}

.close-btn {
    background: none;
    border: none;
    color: var(--footer-line-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #FFF288;
    transform: rotate(90deg) scale(1.1);
}

/* Body styling */
.contact-modal-body, .repass-modal-body, .coupon-modal-body {
    padding: 24px !important;
    position: relative;
    z-index: 2;
}

.contact-subtitle, .repass-subtitle, .coupon-subtitle {
    color: var(--footer-line-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
    opacity: 0.9;
}

/* Social Group Header */
.social-group-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin: 15px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--footer-line-color);
}

/* Luxury Option Card styling */
.contact-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--footer-line-color) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--footer-line-color) !important;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.15) !important;
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

/* Avatar styling */
.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
}

.icon-line-main {
    background: linear-gradient(135deg, #06C755 0%, #05B04B 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(6, 199, 85, 0.3);
}

.icon-line-sub {
    background: rgba(5, 176, 75, 0.15);
    color: #06C755;
    border: 1px solid rgba(6, 199, 85, 0.3);
}

.icon-telegram {
    background: rgba(34, 158, 217, 0.15);
    color: #229ED9;
    border: 1px solid rgba(34, 158, 217, 0.3);
}

.icon-facebook {
    background: rgba(24, 119, 242, 0.15);
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.3);
}

/* Pulsating dots for active status */
.pulse-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: #229ed9;
    border: 2px solid #1b0c2b;
    border-radius: 50%;
}

.pulse-glow {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background-color: rgba(34, 158, 217, 0.4);
    border-radius: 50%;
    animation: pulseAnimation 2s infinite;
    pointer-events: none;
}

@keyframes pulseAnimation {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Content details */
.contact-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.contact-card-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-recommend {
    background: var(--footer-line-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-coming-soon {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.contact-username {
    color: var(--footer-line-color);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Luxury Buttons */
.btn-action {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}

.btn-action-gold {
    background: linear-gradient(90deg, #F4DE7B 0%, #c39c3b 50%, #E8C600 100%);
    background-size: 200% auto;
    color: #10061a !important;
    box-shadow: 0 4px 10px rgba(195, 156, 59, 0.3);
    animation: shiningSweep 4s infinite linear;
}

.btn-action-gold:hover {
    background-position: right center;
    box-shadow: 0 6px 15px rgba(195, 156, 59, 0.5);
    transform: scale(1.05);
    color: #10061a !important;
}

.btn-action-outline {
    background: transparent;
    color: #c39c3b !important;
    border: 1px solid var(--footer-line-color);
}

.btn-action-outline:hover {
    background: rgba(195, 156, 59, 0.1);
    border-color: var(--footer-line-color);
    color: #FFF288 !important;
    transform: scale(1.05);
}

/* Locked card for future channels */
.contact-card-muted {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-card-muted:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--footer-line-color) !important;
    box-shadow: none !important;
}

/* Button Muted styling */
.btn-action-muted {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

/* Inputs Styling */
.modal-custom-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--footer-line-color) !important;
    border-radius: 12px !important;
    color: #fff !important;
    height: 46px !important;
    font-size: 0.95rem !important;
    padding: 10px 16px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.modal-custom-input:focus {
    border-color: var(--footer-line-color) !important;
    box-shadow: 0 0 10px rgba(195, 156, 59, 0.3) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.modal-custom-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Form Action Buttons styling */
.modal-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.modal-btn {
    height: 44px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}

.modal-btn-gold {
    background: linear-gradient(90deg, #F4DE7B 0%, #c39c3b 50%, #E8C600 100%);
    background-size: 200% auto;
    color: #10061a !important;
    box-shadow: 0 4px 10px rgba(195, 156, 59, 0.3);
    animation: shiningSweep 4s infinite linear;
    flex: 2;
}

.modal-btn-gold:hover {
    background-position: right center;
    box-shadow: 0 6px 15px rgba(195, 156, 59, 0.5);
    transform: translateY(-2px);
    color: #10061a !important;
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    transform: translateY(-2px);
}

.modal-footer-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 20px;
    text-align: center;
}

.modal-footer-link a {
    color: #FFA319 !important;
    text-decoration: none;
    font-weight: 500;
}

.modal-footer-link a:hover {
    text-decoration: underline;
}

.coupon-img-wrapper {
    filter: drop-shadow(0 0 12px rgba(195, 156, 59, 0.25));
    transition: all 0.3s ease;
}

.coupon-img-wrapper:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 16px rgba(195, 156, 59, 0.4));
}

@keyframes shiningSweep {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- RESPONSIVE MOBILE STYLES --- */
@media screen and (max-width: 576px) {
    #contact-modal .modal-dialog, #repass-modal .modal-dialog, #getCouponModal .modal-dialog {
        margin: 12px !important;
        max-width: calc(100% - 24px) !important;
    }

    .contact-modal-header, .repass-modal-header, .coupon-modal-header {
        padding: 16px 20px 12px !important;
    }

    .contact-modal-title, .repass-modal-title, .coupon-modal-title {
        font-size: 1.1rem !important;
    }

    .contact-modal-body, .repass-modal-body, .coupon-modal-body {
        padding: 16px !important;
    }

    .contact-subtitle, .repass-subtitle, .coupon-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }

    .social-group-title {
        font-size: 0.75rem !important;
        margin: 12px 0 8px !important;
    }

    .contact-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px !important;
        text-align: center !important;
    }

    .contact-info {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: center !important;
    }

    .contact-details {
        align-items: center !important;
    }

    .contact-card-title {
        justify-content: center !important;
        font-size: 0.9rem !important;
    }

    .contact-card-desc {
        font-size: 0.7rem !important;
    }

    .contact-username {
        font-size: 0.75rem !important;
    }

    .btn-action {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }

    .modal-btn {
        font-size: 0.85rem !important;
        padding: 0 16px !important;
        height: 40px !important;
    }
}
