@media (max-width: 991px) {
    .mil-banner-panel {
        margin-top: 10px !important;
        margin-bottom: 60px !important;
    }
    .mil-banner-panel .mil-right {
        width: 100% !important;
        margin: 0 !important;
        gap: 10px !important;
    }
    .mil-banner-panel .mil-right .mil-social-frame {
        padding: 15px 20px !important;
        height: auto !important;
        min-height: 60px !important;
    }
    .mil-banner-panel .mil-right .mil-social-icons {
        gap: 15px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .mil-banner-panel .mil-right .mil-social-icons a {
        font-size: 20px !important;
    }
}

@media (max-width: 576px) {
    .mil-banner-panel .mil-right {
        width: 100% !important;
        padding: 0 !important;
    }
    .mil-banner-panel .mil-right .mil-social-frame {
        padding: 10px 15px !important;
    }
    .mil-banner-panel .mil-right .mil-social-icons {
        gap: 12px !important;
    }
    .mil-banner-panel .mil-right .mil-button {
        font-size: 10px !important;
        padding: 0 20px !important;
    }
}

/* Expert Protected Content Styles */
.expert-protected-button {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.expert-protected-button .mil-social-frame {
    height: 60px;
    border-radius: 70px;
    transition: all 0.4s cubic-bezier(0, 0, 0.3642, 1);
}

.expert-protected-button .mil-social-frame:hover {
    transform: scale(1.015);
}

.expert-protected-button.unlocked {
    display: none;
}

.expert-protected {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.expert-protected-visible {
    display: block !important;
    opacity: 1 !important;
    max-height: 200px;
}

/* Protected social icons - inline display */
.protected-social-icon {
    transition: all 0.5s ease;
}

.protected-social-icon.expert-protected-visible,
.protected-icon-separator.expert-protected-visible {
    display: inline-block !important;
    opacity: 1 !important;
    max-height: none;
}

.expert-protected .mil-social-frame {
    height: 60px;
    border-radius: 70px;
    transition: all 0.4s cubic-bezier(0, 0, 0.3642, 1);
}

.expert-protected .mil-social-frame:hover {
    transform: scale(1.015);
}

/* vCard Download Button Styles */
.expert-vcard-download {
    margin-top: 0;
}

#downloadVCardBtn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #000;
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 70px;
    transition: all 0.4s cubic-bezier(0, 0, 0.3642, 1);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media screen and (max-width: 992px) {
    #downloadVCardBtn {
        height: 60px;
    }
}

#downloadVCardBtn:hover {
    transform: scale(1.015);
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

#downloadVCardBtn span {
    display: flex;
    align-items: center;
}


.protected-icons-overlay {
    cursor: pointer;
}

.protected-icons-overlay:hover {
    background: rgba(0, 0, 0, 0.4) !important;
}

/* Access Modal Styles */
.access-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.access-modal-content {
    background-color: #1a1a1a;
    margin: 10px auto;
    padding: 40px;
    border: 1px solid #888;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.mil-banner-personal .mil-banner-content .row {
    overflow: auto;
}

@media (max-width: 768px) {
    .access-modal-content {
        margin: 5% auto 10%;
        padding: 20px;
        width: 95%;
    }
    
    #qrCodeContainer {
        max-width: 280px !important;
        padding: 10px !important;
    }
    
    #qrCodeContainer canvas {
        max-width: 100% !important;
        height: auto !important;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.access-modal h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 24px;
}

.access-modal p {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 14px;
}

.access-modal input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
}

.access-modal input:focus {
    outline: none;
    border-color: rgb(0, 117, 169);
}

.access-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.access-modal button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.access-modal .btn-unlock {
    background-color: rgb(0, 117, 169);
    color: #fff;
}

.access-modal .btn-unlock:hover {
    background-color: rgb(48, 104, 145);
    transform: scale(1.05);
}

.access-modal .btn-cancel {
    background-color: #444;
    color: #fff;
}

.access-modal .btn-cancel:hover {
    background-color: #555;
    transform: scale(1.05);
}

.access-error {
    color: #ff4444;
    font-size: 13px;
    margin-top: -15px;
    margin-bottom: 15px;
    display: none;
}

@media screen and (max-width: 992px) {
    .mil-banner-personal .mil-banner-content .row {
        flex-direction: column-reverse !important;
    }

    .mil-banner-personal .mil-banner-content .mil-banner-panel {
        position: static;
        margin-bottom: 60px;
    }

    .mil-portrait-frame img {
        max-width: 600px;
        margin: 0 auto;
        display: block;
        object-fit: contain;
        -webkit-mask-image: linear-gradient(white 90%, transparent);
        mask-image: linear-gradient(white 90%, transparent);
    }
}