.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}
.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.close {
    float: right;
    font-size: 22px;
    cursor: pointer;
}

.share-icons {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
    margin: 20px 0;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 10px;
    background: #f3f3f3;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.share-btn i {
    font-size: 26px;
    margin-bottom: 6px;
}

.copy-area {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.copy-area input {
    flex: 1;
    padding: 8px;
}

.copy-button {
    background: #198754;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
}

.copy-message {
    display: none;
    color: green;
    margin-top: 10px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #198754;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s ease;
}

.share-button i {
    font-size: 16px;
}

.share-button:hover {
    background: #157347;
}

.share-button:active {
    transform: scale(0.97);
}