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

.share-modal-backdrop.active { display: flex; }

.share-modal {
    width: min(100%, 400px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    animation: shareModalSlideUp 0.3s ease-out;
}

@keyframes shareModalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.share-modal-header-gradient {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.share-modal-header-content {
    display: flex;
    position: relative;
    align-items: center;
    gap: 12px;
}

.share-header-icon,
.share-field-icon,
.security-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
}

.share-header-icon {
    width: 40px;
    height: 40px;
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    font-size: 22px;
}

.share-header-text { flex: 1; color: #fff; }

.share-header-text h3 {
    margin: 0 0 2px;
    color: inherit;
    font-size: 18px;
    font-weight: 700;
}

.share-header-text p,
.share-description,
.security-title,
.security-text { margin: 0; }

.share-header-text p { font-size: 13px; opacity: 0.95; }

.share-modal-close {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 6px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.share-modal-content { padding: 16px; background: #fff; }

.share-field-group {
    margin-bottom: 14px;
    padding: 12px;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    border-radius: 8px;
}

.share-field-group:last-of-type { margin-bottom: 0; }

.share-field-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.share-field-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    font-size: 18px;
}

.share-field-icon.music-icon { color: #667eea; }
.share-field-icon.post-icon { color: #764ba2; }
.share-field-info { flex: 1; min-width: 0; }

.share-label {
    display: block;
    margin: 0;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 700;
}

.share-description {
    margin-top: 3px;
    color: #7a7a7a;
    font-size: 12px;
}

.share-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    color: #1a1a2e;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: Verdana, sans-serif;
    font-size: 11px;
}

.share-copy-btn,
.share-close-btn { cursor: pointer; font-weight: 600; }

.share-copy-btn {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 0;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
}

.share-security-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: #f0f7f4;
    border-radius: 8px;
}

.security-icon {
    width: 32px;
    height: 32px;
    color: #34a853;
    background: #e8f5e9;
    font-size: 18px;
}

.security-info { flex: 1; }
.security-title { color: #1a1a2e; font-size: 13px; font-weight: 700; }
.security-text { margin-top: 3px; color: #7a7a7a; font-size: 12px; }

.share-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
}

.share-close-btn {
    padding: 8px 20px;
    color: #1a1a2e;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 11px;
}

@media (max-width: 480px) {
    .share-modal-backdrop { padding: 12px; }
    .share-input-wrapper { align-items: stretch; flex-direction: column; }
    .share-copy-btn { justify-content: center; }
}