:root {
    --share-bg: rgba(6, 10, 16, 0.76);
    --share-border: rgba(72, 240, 219, 0.24);
    --share-text: rgba(244, 248, 255, 0.9);
    --share-soft: rgba(244, 248, 255, 0.54);
    --share-accent: #48f0db;
    --share-accent-alt: #ff6fa8;
    --share-button-bg: rgba(255, 255, 255, 0.03);
    --share-button-border: rgba(255, 255, 255, 0.14);
    --share-button-hover: rgba(72, 240, 219, 0.16);
    --share-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.share-module {
    position: relative;
    display: grid;
    gap: 0.95rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--share-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.01) 100%),
        var(--share-bg);
    box-shadow: var(--share-shadow);
    overflow: hidden;
}

.share-module::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02) 0,
        rgba(255, 255, 255, 0.02) 1px,
        rgba(255, 255, 255, 0) 1px,
        rgba(255, 255, 255, 0) 4px
    );
    opacity: 0.4;
}

.share-module[data-share-variant="sidebar"] {
    gap: 0.8rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.share-module[data-share-variant="sidebar"]::before {
    display: none;
}

.share-head {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.35rem;
}

.share-label {
    font-family: var(--mono, 'IBM Plex Mono', monospace);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--share-accent);
}

.share-copy {
    font-family: var(--sans, 'Zen Kaku Gothic New', sans-serif);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--share-soft);
}

.share-module[data-share-variant="sidebar"] .share-copy {
    font-size: 0.76rem;
    line-height: 1.45;
}

.share-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.share-actions::-webkit-scrollbar {
    display: none;
}

.share-module[data-share-variant="sidebar"] .share-actions {
    gap: 0.55rem;
}

.share-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    appearance: none;
    border: 1px solid var(--share-button-border);
    background: var(--share-button-bg);
    color: var(--share-text);
    width: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.9rem;
    font-family: var(--mono, 'IBM Plex Mono', monospace);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.share-action-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-action-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share-module[data-share-variant="sidebar"] .share-actions {
    justify-content: flex-start;
}

.share-action-label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
}

.share-action-icon,
.share-module[data-share-variant="sidebar"] .share-action-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.share-action:hover,
.share-action:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(72, 240, 219, 0.75);
    background: var(--share-button-hover);
    color: #ffffff;
    outline: none;
}

.share-action[data-share-kind="copy"]:hover,
.share-action[data-share-kind="copy"]:focus-visible {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.1);
}

.share-action[data-share-kind="native"] {
    border-color: rgba(255, 196, 112, 0.42);
}

.share-action[data-share-kind="x"] {
    color: rgba(244, 248, 255, 0.94);
}

.share-action[data-share-kind="line"] {
    color: #82f7b6;
}

.share-action[data-share-kind="facebook"] {
    color: #82b7ff;
}

.share-action[data-share-kind="copy"] {
    color: rgba(244, 248, 255, 0.9);
}

.share-status {
    position: relative;
    z-index: 1;
    min-height: 1.2rem;
    font-family: var(--mono, 'IBM Plex Mono', monospace);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: var(--share-soft);
}

.share-status.is-success {
    color: var(--share-accent);
}

.share-status.is-error {
    color: var(--share-accent-alt);
}

.share-module[data-share-variant="sidebar"] .share-action {
    background: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(34, 31, 32, 0.14) !important;
    color: rgba(34, 31, 32, 0.84) !important;
}

.share-module[data-share-variant="sidebar"] .share-action:hover,
.share-module[data-share-variant="sidebar"] .share-action:focus-visible {
    border-color: rgba(34, 31, 32, 0.24) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: rgba(34, 31, 32, 0.98) !important;
}

.share-module[data-share-variant="sidebar"] .share-action[data-share-kind="copy"]:hover,
.share-module[data-share-variant="sidebar"] .share-action[data-share-kind="copy"]:focus-visible {
    border-color: rgba(34, 31, 32, 0.24) !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.share-module[data-share-variant="sidebar"] .share-action[data-share-kind="x"],
.share-module[data-share-variant="sidebar"] .share-action[data-share-kind="facebook"],
.share-module[data-share-variant="sidebar"] .share-action[data-share-kind="line"],
.share-module[data-share-variant="sidebar"] .share-action[data-share-kind="native"],
.share-module[data-share-variant="sidebar"] .share-action[data-share-kind="copy"] {
    color: rgba(34, 31, 32, 0.84) !important;
}

.footer .share-module {
    margin-bottom: 1.5rem;
}

@media (max-width: 860px) {
    .share-module {
        gap: 0.8rem;
    }
}

@media (max-width: 560px) {
    .share-copy {
        font-size: 0.78rem;
    }
}