/* === REFINED SHARE MODAL (Premium Centered Card) === */
.modal-drag-handle {
    width: 40px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    margin: -10px auto 25px auto;
    display: none;
}

.share-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 1.3rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.share-modal-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.share-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    text-align: left;
}

.share-product-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-product-name {
    display: block;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.share-producer-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-producer-name {
    color: #888;
    font-size: 0.9rem;
}

.share-verified-icon {
    color: #3b82f6;
    font-size: 0.8rem;
}

.share-links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.share-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.share-field-group label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.share-input-wrapper {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 2px 16px;
    height: 48px;
}

.share-input-wrapper i {
    color: #444;
    font-size: 1.2rem;
    margin-right: 12px;
}

.share-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    width: 0;
}

.share-input-wrapper button {
    border: none;
    background: none;
    color: #3b82f6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.share-input-wrapper button:hover {
    transform: scale(1.15);
}

.share-social-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 10px;
}

.social-share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #aaa;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.social-icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
    color: #fff;
}

.social-share-item:hover .social-icon-circle {
    transform: translateY(-4px);
    background: #333;
    border-color: rgba(255, 255, 255, 0.2);
}

.share-input-wrapper-v2 {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 2px 16px;
    height: 52px;
}

.share-input-wrapper-v2 input {
    flex: 1;
    background: transparent;
    border: none;
    color: #777;
    font-size: 0.9rem;
    outline: none;
    width: 0;
    font-family: inherit;
    text-overflow: ellipsis;
}

.share-input-wrapper-v2 button {
    border: none;
    background: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
    opacity: 0.6;
}

.share-input-wrapper-v2 button:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Always centered floating card (all screen sizes) */
.share-modal-backdrop {
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.share-modal-backdrop.bottom-sheet-layout {
    align-items: flex-end;
}

.share-modal-content {
    width: 440px !important;
    max-width: calc(100vw - 32px) !important;
    border-radius: 20px !important;
    padding: 28px 24px 32px !important;
    position: relative;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease !important;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.share-modal-backdrop.active .share-modal-content {
    transform: scale(1);
    opacity: 1 !important;
}

.share-modal-backdrop.closing .share-modal-content {
    transform: scale(0.9);
    opacity: 0 !important;
}

.modal-pull-bar {
    display: none !important;
}

@media (max-width: 480px) {
    .share-modal-content {
        width: 320px !important;
        padding: 24px 16px 28px !important;
    }
}