/* MegaVitrin premium share sheet */
.mv-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.mv-share-sheet.is-open { display: flex; }
.mv-share-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.mv-share-sheet__panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: min(92vh, 760px);
    overflow: auto;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(227, 30, 36, .08), transparent 50%),
        #fff;
    border-radius: 24px 24px 20px 20px;
    padding: 16px 16px 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
    animation: mvShareUp .24s cubic-bezier(.22, .61, .36, 1);
    -webkit-overflow-scrolling: touch;
}
.mv-share-sheet__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}
.mv-share-sheet__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 850;
    color: #111827;
    letter-spacing: -.01em;
}
.mv-share-sheet__brand i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e31e24, #be123c);
    color: #fff;
    font-size: 12px;
}
.mv-share-sheet__label {
    font-size: 13px;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.mv-share-sheet__close {
    border: 0;
    background: #f3f4f6;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    flex-shrink: 0;
}
.mv-share-sheet__preview {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #eef0f3;
    margin-bottom: 12px;
    min-height: 72px;
}
.mv-share-sheet__preview img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    background: #f3f4f6;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}
.mv-share-sheet__preview-body {
    min-width: 0;
    flex: 1;
}
.mv-share-sheet__preview-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 850;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mv-share-sheet__preview-body p {
    margin: 0;
    font-size: 12px;
    font-weight: 650;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mv-share-sheet__caption-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    color: #374151;
}
.mv-share-sheet__caption-label em {
    font-style: normal;
    font-weight: 700;
    color: #9ca3af;
    font-size: 11px;
}
.mv-share-sheet__caption {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 11px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    color: #111827;
    background: #f9fafb;
    resize: vertical;
    min-height: 96px;
    margin-bottom: 8px;
}
.mv-share-sheet__caption:focus {
    outline: none;
    border-color: #fda4af;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, .12);
}
.mv-share-sheet__hint {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin: 0 0 12px;
    line-height: 1.35;
}
.mv-share-sheet__section {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0 0 8px;
}
.mv-share-sheet__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.mv-share-sheet__btn {
    border: 1px solid #eef0f3;
    background: #fafafa;
    border-radius: 16px;
    padding: 12px 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    color: #111827;
    font-size: 11px;
    font-weight: 850;
    transition: .15s ease;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}
.mv-share-sheet__btn small {
    font-size: 9px;
    font-weight: 700;
    color: #9ca3af;
    line-height: 1;
}
.mv-share-sheet__btn:hover,
.mv-share-sheet__btn:active {
    transform: translateY(-2px);
    border-color: #fecaca;
    background: #fff;
}
.mv-share-sheet__btn i {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}
.mv-share-sheet__btn--copy i { background: #111827; }
.mv-share-sheet__btn--wa i { background: #25d366; }
.mv-share-sheet__btn--status i {
    background: linear-gradient(135deg, #25d366, #128c7e);
}
.mv-share-sheet__btn--ig i {
    background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}
.mv-share-sheet__btn--tg i { background: #229ed9; }
.mv-share-sheet__btn--fb i { background: #1877f2; }
.mv-share-sheet__btn--x i { background: #111827; }
.mv-share-sheet__btn--native i { background: #e31e24; }
.mv-share-sheet__url {
    display: flex;
    gap: 8px;
    align-items: center;
}
.mv-share-sheet__url input {
    flex: 1;
    min-width: 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 650;
    color: #374151;
    background: #f9fafb;
}
.mv-share-sheet__url button {
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.mv-share-sheet__url button:hover { background: #e31e24; }

.mv-share-sheet__success {
    text-align: center;
    padding: 18px 8px 8px;
}
.mv-share-sheet__success-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 12px 28px rgba(22, 163, 74, .28);
    animation: mvSharePop .35s ease;
}
.mv-share-sheet__success h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}
.mv-share-sheet__success p {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 650;
    color: #6b7280;
    line-height: 1.45;
}
.mv-share-sheet__success-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
}
.mv-share-sheet__primary,
.mv-share-sheet__ghost {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    font-family: inherit;
}
.mv-share-sheet__primary {
    background: linear-gradient(135deg, #e31e24, #be123c);
    color: #fff;
}
.mv-share-sheet__ghost {
    background: #f3f4f6;
    color: #374151;
}
.mv-share-sheet__url--success input { font-size: 10px; }

@keyframes mvShareUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
@keyframes mvSharePop {
    from { transform: scale(.7); opacity: .4; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 380px) {
    .mv-share-sheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
    .mv-share-sheet { align-items: center; }
    .mv-share-sheet__panel { border-radius: 24px; }
}

.mv-compare-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(120%);
    z-index: 99990;
    width: min(920px, calc(100% - 24px));
    background: #111827;
    color: #fff;
    border-radius: 18px;
    padding: 12px 14px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
    transition: transform .25s ease;
}
.mv-compare-bar.is-open {
    display: flex !important;
    transform: translateX(-50%) translateY(0);
}
.mv-compare-bar[hidden] { display: none !important; }
.mv-compare-bar__items {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
}
.mv-compare-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 6px 8px;
    min-width: 140px;
}
.mv-compare-bar__item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.mv-compare-bar__item span {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}
.mv-compare-bar__item button {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: .7;
}
.mv-compare-bar__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.mv-compare-bar__actions a,
.mv-compare-bar__actions button {
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    color: #111827;
    background: #fff;
}
.mv-compare-bar__actions .is-primary {
    background: #e31e24;
    color: #fff;
}
@media (max-width: 720px) {
    .mv-compare-bar { flex-direction: column; align-items: stretch; }
}
