.links-term {
    width: min(100% - 32px, 440px);
    padding: 32px 24px 28px;
    position: relative;
}

.card-share-btn,
.contact-modal-close {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.1s;
    padding: 0;
}

.card-share-btn:hover,
.contact-modal-close:hover {
    background: var(--accent);
    color: #000;
}

.card-share-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
}

.card-share-btn svg {
    width: 16px;
    height: 16px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 22px;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 4px 4px 0 #000;
    margin-bottom: 12px;
    background: #dad0f0;
    display: block;
}

.profile-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.profile-bio {
    font-size: 0.92rem;
    color: #ccc;
    line-height: 1.4;
    margin: 0 0 16px 0;
    max-width: 360px;
}


.links-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.links-term .link-card {
    width: 100%;
    padding: 13px 18px;
    background: #F8FED7;
    color: #2b1442;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 var(--accent);
    justify-content: center;
    text-align: center;
}

.links-term .link-card:hover {
    background: #F8FED7;
    color: #2b1442;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--accent);
}

.links-term .link-card:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--accent);
}

.links-term .link-card.terminal-style {
    background: #0d0d10;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.7);
}

.links-term .link-card.terminal-style:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 6px 6px 0 rgba(255, 200, 37, 0.3);
}

.links-separator {
    width: 100%;
    height: 1px;
    background: rgba(255, 200, 37, 0.25);
    margin: 8px 0;
}

.contact-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.contact-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal-box {
    background: #000;
    border: 2px solid var(--accent);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 380px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-modal-close {
    width: 28px;
    height: 28px;
    font-size: 14px;
    font-family: inherit;
}

.contact-email-row {
    background: #111;
    border: 1px solid rgba(255, 200, 37, 0.4);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    font-size: 0.95rem;
    color: #fff;
    user-select: all;
}

.contact-modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-action-btn {
    flex: 1;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-action-btn.copy {
    background: #F8FED7;
    color: #2b1442;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 var(--accent);
}

.modal-action-btn.copy:hover {
    background: #fff;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--accent);
}

.modal-action-btn.mail {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.modal-action-btn.mail:hover {
    background: var(--accent);
    color: #000;
}

.toast-msg {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: var(--accent);
    color: #000;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 #000;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 500px) {
    .links-term {
        padding: 26px 18px 22px;
    }

    .profile-avatar {
        width: 82px;
        height: 82px;
    }

    .links-term .link-card {
        padding: 11px 14px;
        font-size: 0.95rem;
    }

    .contact-modal-buttons {
        flex-direction: column;
    }
}
