.share-center-window {
    width: min(620px, calc(100vw - 32px));
    max-width: 620px;
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden;
}

.share-center-window .share-header { padding: 20px 22px 10px; }
.share-center-window .share-header h2 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.share-center-window .line { margin: 0; border-color: var(--border); }
.share-center-window .link-share-content { padding: 0 22px 22px; }

.share-center { padding-top: 12px; }
.share-center-subtitle { margin: 0 0 14px; color: var(--text-muted); text-align: center; font-size: 12px; }
.share-center-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.share-center-action {
    min-height: 92px;
    padding: 12px 8px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--foreground);
    background: #111722;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.share-center-action i { color: #8d77ff; font-size: 22px; }
.share-center-action:hover { border-color: rgba(141,119,255,.45); background: #151c29; transform: translateY(-1px); }
.share-center-action:active { transform: scale(.98); }
.share-center-action:focus-visible { outline: 2px solid var(--primary-alt); outline-offset: 2px; }

.share-center-native {
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    flex-direction: row;
    gap: 10px;
}
.share-center-native i { font-size: 16px; }

.share-center-divider {
    margin: 20px 0 8px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
    font-size: 10px;
    position: relative;
}
.share-center-divider span { padding: 0 10px; background: var(--surface); position: relative; top: -8px; }

.share-center-link-panel,
.share-center-download-panel,
.share-center-nfc-panel { display: none; }
.share-center.is-link-view > .share-center-subtitle,
.share-center.is-link-view > .share-center-grid,
.share-center.is-link-view > .share-center-native,
.share-center.is-link-view > .share-center-divider { display: none; }
.share-center.is-link-view > .share-center-link-panel { display: block; }
.share-center.is-download-view > .share-center-subtitle,
.share-center.is-download-view > .share-center-grid,
.share-center.is-download-view > .share-center-native,
.share-center.is-download-view > .share-center-divider { display: none; }
.share-center.is-download-view > .share-center-download-panel { display: block; }
.share-center.is-nfc-view > .share-center-subtitle,
.share-center.is-nfc-view > .share-center-grid,
.share-center.is-nfc-view > .share-center-native,
.share-center.is-nfc-view > .share-center-divider { display: none; }
.share-center.is-nfc-view > .share-center-nfc-panel { display: block; }
.share-center-link-panel > header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.share-center-download-panel > header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.share-center-download-panel > header div { display: grid; gap: 3px; }
.share-center-download-panel > header strong { font-size: 17px; font-weight: 650; }
.share-center-download-panel > header span { color: var(--text-muted); font-size: 11px; }
.share-center-nfc-panel > header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.share-center-nfc-panel > header div { display: grid; gap: 3px; }
.share-center-nfc-panel > header strong { font-size: 17px; font-weight: 650; }
.share-center-nfc-panel > header span { color: var(--text-muted); font-size: 11px; }
.share-center-link-panel > header div { display: grid; gap: 3px; }
.share-center-link-panel > header strong { font-size: 17px; font-weight: 650; }
.share-center-link-panel > header span { color: var(--text-muted); font-size: 11px; }
.share-center-link-back {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--foreground);
    background: #111722;
    cursor: pointer;
}
.share-center-link-address {
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #111722;
    display: flex;
    align-items: center;
}
.share-center-link-address span {
    overflow: hidden;
    color: var(--foreground);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.share-center-link-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.share-center-link-actions .share-center-action { min-height: 82px; }
.premium-light .share-center-link-back,
.premium-light .share-center-link-address { background: #f6f7fa; }
.share-center-download-list { display: grid; gap: 8px; }
.share-center-download-format {
    min-height: 64px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--foreground);
    background: #111722;
    display: grid;
    grid-template-columns: 30px 1fr 24px;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease;
}
.share-center-download-format:hover { border-color: rgba(141,119,255,.45); background: #151c29; }
.share-center-download-format > i { color: #8d77ff; text-align: center; }
.share-center-download-format > span { display: grid; gap: 3px; }
.share-center-download-format strong { font-size: 13px; }
.share-center-download-format small { color: var(--text-muted); font-size: 10px; }
.share-center-print {
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--foreground);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
}
.share-center-print:hover { background: rgba(255,255,255,.04); }
.premium-light .share-center-download-format { background: #f6f7fa; }
.share-center-nfc-visual {
    min-height: 150px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: radial-gradient(circle at 50% 45%, rgba(116,82,255,.16), transparent 46%), #111722;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
}
.share-center-nfc-phone {
    width: 60px;
    height: 104px;
    border: 2px solid rgba(255,255,255,.55);
    border-radius: 14px;
    color: rgba(255,255,255,.72);
    display: grid;
    place-items: center;
    font-size: 28px;
}
.share-center-nfc-card {
    width: 98px;
    height: 62px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: linear-gradient(135deg, #554cff, #8b48eb);
    box-shadow: 0 16px 36px rgba(77,55,214,.24);
    display: grid;
    place-items: center;
}
.share-center-nfc-card strong { color: #fff; font-size: 25px; font-style: italic; }
.share-center-nfc-waves { display: flex; align-items: center; gap: 3px; }
.share-center-nfc-waves i {
    width: 6px;
    height: 24px;
    border-right: 2px solid #8d77ff;
    border-radius: 50%;
    display: block;
}
.share-center-nfc-waves i:nth-child(2) { height: 38px; }
.share-center-nfc-waves i:nth-child(3) { height: 52px; }
.share-center-nfc-copy { padding: 16px 2px 4px; text-align: center; }
.share-center-nfc-copy > strong { font-size: 15px; }
.share-center-nfc-copy > p { margin: 7px auto 14px; max-width: 440px; color: var(--text-muted); font-size: 11px; line-height: 1.55; }
.share-center-nfc-copy ol { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; text-align: left; }
.share-center-nfc-copy li { color: var(--foreground); font-size: 11px; display: flex; align-items: center; gap: 9px; }
.share-center-nfc-copy li span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #aa98ff;
    background: rgba(141,119,255,.12);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 10px;
}
.share-center-nfc-note { margin: 13px 0 0; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-muted); display: flex; gap: 8px; font-size: 10px; line-height: 1.45; }
.share-center-nfc-note i { color: #8d77ff; margin-top: 2px; }
.premium-light .share-center-nfc-visual { background: radial-gradient(circle at 50% 45%, rgba(116,82,255,.12), transparent 46%), #f6f7fa; }
.premium-light .share-center-nfc-phone { border-color: rgba(17,23,34,.4); color: rgba(17,23,34,.65); }

.premium-light .share-center-action { background: #f6f7fa; }
.premium-light .share-center-action:hover { background: #eef0f5; }
.premium-light .share-center-divider span { background: #fff; }

@media (max-width: 700px) {
    .modal:has(.share-center-window) { align-items: flex-end; }
    .share-center-window {
        width: 100%;
        max-width: none;
        max-height: min(92dvh, 780px) !important;
        margin: 0 !important;
        border-radius: 22px 22px 0 0 !important;
        overflow-y: auto;
    }
    .share-center-window::before {
        content: '';
        width: 38px;
        height: 4px;
        margin: 9px auto 0;
        border-radius: 99px;
        background: rgba(255,255,255,.3);
        display: block;
    }
    .share-center-window .share-header { padding: 12px 18px 8px; }
    .share-center-window .link-share-content { padding: 0 18px calc(24px + env(safe-area-inset-bottom, 0px)); }
    .share-center-grid { grid-template-columns: repeat(2, 1fr); }
    .share-center-action { min-height: 86px; }
    .share-center-link-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .share-center-link-actions .share-center-action { min-height: 78px; padding-inline: 4px; }
}
