:root {
    color-scheme: dark;
    --page-bg-top: #1a1e28;
    --page-bg: #111217;
    --card-bg: #12141b;
    --card-stroke: #272c38;
    --text-main: #f7f9ff;
    --text-muted: #aeb4c3;
    --surface-bg: #f3f4f7;
    --surface-border: #d9dde7;
    --surface-soft-bg: #ffffff;
    --surface-soft-border: #d9dde7;
    --surface-text: #171c28;
    --surface-arrow: #5c6576;
    --surface-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
    --support-panel-text: #111827;
    --support-panel-muted: #374151;
    --support-pay-bg: hsl(106.7, 76.3%, 57.1%);
    --support-pay-text: #0b1406;
    --badge-bg-1: #2f8dff;
    --badge-bg-2: #75eb47;
    --badge-bg-3: #ab58f0;
    --badge-bg-4: #f8ae2d;
    --notice-bg: rgba(50, 243, 95, 0.15);
    --notice-border: rgba(50, 243, 95, 0.45);
    --notice-text: #95ffb0;
    --flag-color: #8e93a1;
    --flag-hover: #cfd4de;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: radial-gradient(circle at top, var(--page-bg-top), var(--page-bg));
    color: var(--text-main);
    font-family: "Sofia Sans Semi Condensed", "Avenir Next", "Segoe UI", sans-serif;
    padding: 0.9rem;
}

body.share-dialog-open {
    overflow: hidden;
}

.profile-share-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(6, 7, 11, 0.62);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.profile-share-overlay[hidden] {
    display: none !important;
}

.profile-share-dialog {
    width: min(100%, 530px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #171c28;
    color: var(--text-main);
    padding: 1rem;
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.4);
}

.profile-share-dialog h2 {
    margin: 0;
    font-size: 1.32rem;
    line-height: 1.15;
}

.profile-share-help {
    margin: 0.6rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.profile-share-field {
    margin-top: 0.78rem;
}

.profile-share-field label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.profile-share-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
}

.profile-share-input-row input {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(11, 14, 22, 0.72);
    color: var(--text-main);
    font: inherit;
    font-size: 0.9rem;
    padding: 0.52rem 0.6rem;
}

.profile-share-input-row button,
.profile-share-ok {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.65rem;
    background: rgba(236, 240, 247, 0.12);
    color: #f7f9ff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.72rem;
    cursor: pointer;
}

.profile-share-input-row button:hover,
.profile-share-ok:hover {
    filter: brightness(1.12);
}

.profile-share-actions {
    margin-top: 0.95rem;
    display: flex;
    justify-content: flex-end;
}

.profile-share-ok {
    border-color: rgba(50, 243, 95, 0.56);
    background: rgba(50, 243, 95, 0.18);
}

.profile-shell {
    width: min(100%, 430px);
}

.profile-card {
    min-height: calc(100vh - 1.8rem);
    border-radius: 2.1rem;
    border: 1px solid var(--card-stroke);
    background: var(--card-bg);
    padding: 2rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.profile-card-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.profile-card-tool,
.profile-card-tool-spacer {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
}

.profile-card-tool {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #f7f9ff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.profile-card-tool:hover {
    filter: brightness(1.08);
}

.profile-card-tool svg {
    width: 1.12rem;
    height: 1.12rem;
}

.profile-card-tool-spacer {
    display: block;
}

.notice {
    margin: 0 0 1.1rem;
    border: 1px solid var(--notice-border);
    background: var(--notice-bg);
    color: var(--notice-text);
    border-radius: 0.9rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
}

.profile-head {
    text-align: center;
    margin: 0;
    padding-top: 0.1rem;
}

.profile-avatar,
.profile-avatar-placeholder {
    width: 112px;
    height: 112px;
    border-radius: 999px;
    display: block;
    margin: 0 auto 1.2rem;
}

.profile-avatar-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.profile-avatar {
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.04);
}

.profile-avatar-placeholder {
    border: 1px dashed var(--card-stroke);
}

.profile-head h1 {
    margin: 0;
    font-size: clamp(2rem, 8.3vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.profile-title-link {
    color: inherit;
    text-decoration: none;
}

.profile-subtitle {
    margin: 1em auto;
    color: var(--text-muted);
    font-size: 135%;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0 0.3em;
    display: grid;
    gap: 0.52em;
}

.profile-link {
    text-decoration: none;
    color: var(--surface-text);
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow);
    border-radius: 0.95rem;
    padding: 0.5rem 0.72rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: "Sofia Sans Semi Condensed", "Avenir Next", "Segoe UI", sans-serif;
}

.profile-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.22);
}

.profile-support-toggle {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.support-message-panel {
    margin-top: 0.55rem;
    border: 1px solid var(--surface-soft-border);
    border-radius: 0.95rem;
    padding: 0.8rem;
    background: var(--surface-soft-bg);
    box-shadow: var(--surface-shadow);
    display: grid;
    gap: 0.65rem;
    color: var(--support-panel-text);
}

.support-message-panel[hidden] {
    display: none !important;
}

.support-message-panel p {
    margin: 0;
    color: var(--support-panel-text);
    font-size: 0.95rem;
    line-height: 1.35;
}

.support-message-panel .error {
    color: #fca5a5;
    font-size: 0.9rem;
}

.support-message-fee {
    color: var(--support-panel-muted);
}

.support-message-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--support-panel-text);
    font-size: 0.9rem;
    line-height: 1.35;
}

.support-message-consent input {
    margin-top: 0.2rem;
}

.support-message-pay {
    border: 1px solid var(--support-pay-bg);
    border-radius: 0.8rem;
    background: var(--support-pay-bg);
    color: var(--support-pay-text);
    font: inherit;
    font-weight: 700;
    padding: 0.58rem 0.85rem;
    cursor: pointer;
}

.support-message-pay:disabled {
    opacity: 0.7;
    cursor: wait;
}

.profile-link-badge {
    width: 42px;
    height: 42px;
    border-radius: 0.72rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
}

.profile-link-badge svg {
    width: 1.08rem;
    height: 1.08rem;
    color: currentColor;
}

.profile-link-badge-image {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(23, 28, 40, 0.08);
}

.profile-link-badge-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-link-badge-platform {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-link-badge-platform-facebook {
    background: #1877f2;
}

.profile-link-badge-platform-instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 55%, #515bd4 100%);
}

.profile-link-badge-platform-x {
    background: #111111;
}

.profile-link-badge-platform-youtube {
    background: #ff0033;
}

.profile-link-badge-platform-spotify {
    background: #1db954;
}

.profile-link-badge-platform-linkedin {
    background: #0a66c2;
}

.profile-link-badge-platform-chatgpt {
    background: #10a37f;
}

.profile-link-badge-platform-tiktok {
    background: #111111;
}

.profile-link-badge-platform-snapchat {
    background: #fffc00;
    color: #111111;
}

.profile-link-badge-platform-discord {
    background: #5865f2;
}

.profile-link-badge-platform-twitch {
    background: #9146ff;
}

.profile-link-badge-platform-telegram {
    background: #27a5e7;
}

.profile-link-badge-platform-whatsapp {
    background: #25d366;
}

.profile-link-label {
    font-size: clamp(0.98rem, 4vw, 1.32rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.profile-link-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1 1 auto;
}

.support-message-info-icon {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--surface-arrow) 85%, #000000 15%);
    color: color-mix(in srgb, var(--surface-arrow) 90%, #000000 10%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;
    flex: 0 0 auto;
}

.profile-link-arrow {
    margin-left: auto;
    font-size: 1.55rem;
    line-height: 1;
    color: var(--surface-arrow);
    transform: translateY(-1px);
}

.profile-youtube {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1.05rem;
    border: 2px solid var(--surface-border);
    overflow: hidden;
    background: #000;
}

.profile-youtube iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.empty {
    margin: 2rem 0 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 1rem;
}

.profile-foot {
    margin-top: auto;
    padding-top: 2.4rem;
    padding-left: 1em;
    padding-right: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.report-form {
    margin: 0;
}

.flag-button {
    border: 0;
    background: transparent;
    color: var(--flag-color);
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    padding: 0;
    font-size: 80%;
    line-height: 1.3;
}

.flag-button:hover {
    color: var(--flag-hover);
}

.flag-button span {
    text-decoration: none;
}

.flag-button:hover span {
    text-decoration: underline;
}

.flag-button svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
}

.copyright {
    margin: 0;
    color: var(--text-muted);
    font-size: 80%;
    line-height: 1.3;
    text-align: right;
    margin-left: auto;
}

.copyright a {
    color: #8e93a1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.copyright a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    body {
        padding: 0.5rem;
        align-items: center;
    }

    .hero-media {
        display: none;
    }

    .profile-card {
        min-height: 100vh;
        justify-content: space-around;
    }

    .link-list {
        margin: 1.5rem 0 0;
        gap: 0.55em;
    }

    .profile-link {
        padding: 0.45rem 0.68rem;
        flex-direction: row;
        align-items: center;
    }

    .profile-foot {
        margin-top: 0;
        align-items: flex-start;
    }

    .copyright,
    .flag-button {
        color: var(--text-muted);
        font-size: 80%;
        margin-left: auto;
    }

    .profile-share-dialog {
        border-radius: 0.86rem;
        padding: 0.85rem;
    }
}
