* {
    box-sizing: border-box;
}

.eg-profile-card {
    position: relative;
}

.eg-share-button,
.share-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--eg-share-icon-color, #333);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.eg-share-host {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
}

.eg-share-host .eg-share-button {
    position: static;
}

.eg-share-button:hover,
.share-button:hover {
    transform: scale(1.08);
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.eg-share-button i,
.share-button i {
    font-size: 20px;
}

.eg-share-modal,
.share-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.eg-share-modal.show,
.share-modal.show {
    display: flex;
}

.eg-share-modal-content,
.share-modal-content {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    color: #222;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
    animation: egSlideUp 0.25s ease;
}

@keyframes egSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eg-share-modal-header,
.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.eg-share-modal-header h3,
.share-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.eg-share-modal-close,
.share-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.eg-share-modal-close:hover,
.share-modal-close:hover {
    background: #eaeaea;
}

.eg-share-modal-body {
    padding: 22px;
}

.eg-share-preview {
    background: #333;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 24px;
}

.eg-share-preview-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
    display: block;
}

.eg-share-preview-name {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
}

.eg-share-preview-handle {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.95rem;
    margin: 4px 0 0;
}

.eg-share-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.eg-share-option,
.share-option {
    color: #222;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.eg-share-option:hover,
.share-option:hover {
    transform: translateY(-3px);
}

.eg-share-option-icon,
.share-option-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 23px;
}

.eg-share-option-icon img,
.share-option-icon img,
.icon-x {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.eg-share-option-icon.copy,
.share-option-icon.copy {
    background: #6c757d;
}

.eg-share-option-icon.whatsapp,
.share-option-icon.whatsapp {
    background: #25d366;
}

.eg-share-option-icon.facebook,
.share-option-icon.facebook {
    background: #1877f2;
}

.eg-share-option-icon.twitter,
.share-option-icon.twitter {
    background: #000;
}

.eg-share-option-icon.telegram,
.share-option-icon.telegram {
    background: #0088cc;
}

.eg-share-option-icon.linkedin,
.share-option-icon.linkedin {
    background: #0077b5;
}

.eg-share-option-icon.messenger,
.share-option-icon.messenger {
    background: #0084ff;
}

.eg-share-option-icon.email,
.share-option-icon.email {
    background: #ea4335;
}

.eg-cookie-notice,
.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.eg-cookie-notice.show,
.cookie-notice.show {
    display: block;
}

.eg-cookie-notice-content,
.cookie-notice-content {
    max-width: 800px;
    margin: 0 auto;
}

.eg-cookie-notice button,
.cookie-notice button {
    margin: 10px 5px 0;
    padding: 10px 24px;
    border: 0;
    border-radius: 6px;
    background: var(--eg-accent, #602e88);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.eg-footer-links,
.footer-links,
.footer-standard-links {
    margin-top: 20px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
}

.eg-footer-links a,
.footer-links a,
.footer-standard-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.eg-footer-links a:hover,
.footer-links a:hover,
.footer-standard-links a:hover {
    opacity: 1;
}

@media (max-width: 420px) {
    .eg-share-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
