.mfk-share {
    position: fixed;
    right: 18px;
    top: 40%;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1900;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mfk-share-toggle {
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    background: #4f46e5;
    color: white;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.2);
}

.mfk-share-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(240px, 84vw);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: none;
}

.mfk-share.open .mfk-share-card {
    display: flex;
}

.mfk-share-title {
    font-weight: 700;
    color: #4f46e5;
    font-size: 0.9rem;
}

.mfk-share-subtitle {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.4;
}

.mfk-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mfk-share-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    background: #eef2ff;
    color: #4338ca;
    transition: transform 0.2s ease, background 0.2s ease;
}

.mfk-share-btn:hover {
    background: #e0e7ff;
    transform: translateY(-1px);
}

.mfk-share-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mfk-share-inline .mfk-share-btn {
    font-size: 0.85rem;
    padding: 8px 14px;
}

@media (max-width: 768px) {
    .mfk-share {
        position: static;
        transform: none;
        margin: 12px auto 0;
        align-items: center;
    }

    .mfk-share-card {
        width: min(220px, 86vw);
    }
}

@media (prefers-color-scheme: dark) {
    .mfk-share-card {
        background: rgba(15, 23, 42, 0.94);
        border-color: rgba(148, 163, 184, 0.35);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.6);
    }

    .mfk-share-title {
        color: #c7d2fe;
    }

    .mfk-share-subtitle {
        color: #cbd5f5;
    }

    .mfk-share-btn {
        background: rgba(79, 70, 229, 0.25);
        color: #e0e7ff;
    }

    .mfk-share-btn:hover {
        background: rgba(79, 70, 229, 0.35);
    }

    .mfk-share-toggle {
        background: rgba(79, 70, 229, 0.8);
        color: #e0e7ff;
    }
}

@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .mfk-share-card {
        background: rgba(30, 41, 59, 0.96);
    }
}
