.starsosh-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.starsosh-inline .starsosh-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-right: 8px;
    white-space: nowrap;
}

.starsosh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    color: #fff;
}

.starsosh-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #fff;
}

.starsosh-btn:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.starsosh-btn--facebook  { background-color: #1877f2; }
.starsosh-btn--twitter   { background-color: #000; }
.starsosh-btn--linkedin  { background-color: #0a66c2; }
.starsosh-btn--whatsapp  { background-color: #25d366; color: #075e54; }
.starsosh-btn--telegram  { background-color: #08c; }
.starsosh-btn--pinterest { background-color: #e60023; }
.starsosh-btn--reddit    { background-color: #ff4500; }
.starsosh-btn--email     { background-color: #6b7280; }

.starsosh-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.starsosh-share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background-color: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.starsosh-share-trigger:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.starsosh-share-trigger:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.starsosh-share-trigger--custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font-size: 0;
    font-weight: inherit;
    white-space: normal;
    cursor: pointer;
    transition: none;
    line-height: 0;
}

.starsosh-share-trigger--custom:hover {
    background: none;
    transform: none;
}

.starsosh-share-trigger--custom .starsosh-custom-icon {
    width: 40px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.starsosh-share-trigger svg,
.starsosh-share-trigger:not(.starsosh-share-trigger--custom) img {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.starsosh-floating-wrapper {
    position: fixed;
    z-index: 99998;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.starsosh-floating-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #2563eb;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.starsosh-floating-toggle:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.starsosh-floating-toggle:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.starsosh-floating-toggle[aria-expanded="true"] {
    background-color: #dc2626;
}

.starsosh-floating-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.starsosh-floating-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 48px;
}

.starsosh-floating-panel.starsosh-visible {
    display: flex;
}

.starsosh-floating-panel .starsosh-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
}

.starsosh-floating-panel .starsosh-btn svg {
    width: 20px;
    height: 20px;
}

.starsosh-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 20px;
}

.starsosh-popup-overlay.starsosh-visible {
    display: flex;
}

.starsosh-popup-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: starsosh-fade-up 0.25s ease-out;
}

.starsosh-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

@keyframes starsosh-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.starsosh-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.starsosh-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.starsosh-popup-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.starsosh-popup-close:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.starsosh-popup-networks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .starsosh-popup-networks {
        grid-template-columns: repeat(2, 1fr);
    }
}

.starsosh-popup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 12px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.starsosh-popup-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.starsosh-popup-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.starsosh-popup-card-icon svg,
.starsosh-popup-card-icon img {
    width: 40px;
    height: 40px;
    display: block;
}

.starsosh-popup-card-icon svg {
    fill: currentColor;
}

.starsosh-popup-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
    .starsosh-btn,
    .starsosh-share-trigger,
    .starsosh-floating-toggle,
    .starsosh-popup-content {
        animation: none;
        transition: none;
    }
}

@media (max-width: 768px) {
.starsosh-floating-wrapper {
        left: 12px;
    }

    .starsosh-floating-toggle {
        width: 42px;
        height: 42px;
    }

    .starsosh-floating-toggle svg {
        width: 18px;
        height: 18px;
    }

    .starsosh-floating-panel {
        padding: 8px;
        bottom: calc(100% + 8px);
    }

    .starsosh-floating-panel .starsosh-btn {
        width: 42px;
        height: 42px;
    }

    .starsosh-popup-content {
        padding: 24px 20px 20px;
        border-radius: 12px;
    }

    .starsosh-popup-card {
        padding: 18px 10px 14px;
        gap: 8px;
    }

    .starsosh-popup-card-icon svg,
    .starsosh-popup-card-icon img {
        width: 32px;
        height: 32px;
    }

    .starsosh-popup-card-label {
        font-size: 12px;
    }
}
