.demo-page {
    color-scheme: light;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: #10214c;
    background: #eaf3fc;
}
.demo-page *, .demo-page *::before, .demo-page *::after { box-sizing: border-box; }
.demo-page body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 14% 77%,#caf7df,transparent 49%), radial-gradient(ellipse at 88% 28%,#cbe6fe,transparent 48%), #eef6fc; }
.demo-page :is(button,input) { font: inherit; }
.demo-page button { cursor: pointer; }
.demo-page a { color: inherit; text-decoration: none; }
:is(.demo-page,.demo-phone) :focus-visible { outline: 3px solid #1159dc; outline-offset: 3px; }
.demo-topbar {
    width: min(100% - 32px, 480px);
    margin: 0 auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: .82rem;
}
.demo-topbar a, .demo-topbar button {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid #c9dbed;
    border-radius: 999px;
    color: #17406d;
    background: #ffffffa5;
    font-size: .78rem;
    font-weight: 800;
}
.demo-topbar a:hover, .demo-topbar button:hover { background: #fff; }
.demo-stage { display: grid; justify-items: center; gap: 14px; padding: 15px 16px 23px; }
.demo-phone {
    position: relative;
    width: min(100%, 352px);
    padding: 8px;
    border-radius: 42px;
    background: linear-gradient(155deg,#243e67,#081b33 60%,#20395d);
    box-shadow: 0 20px 52px #254e7848, 0 1px 0 #6683aa inset;
}
.demo-phone::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 50%;
    width: 31%;
    height: 16px;
    translate: -50% 0;
    border-radius: 0 0 14px 14px;
    background: #0d213b;
}
.demo-screen {
    padding: 31px clamp(12px,4vw,23px) 21px;
    border-radius: 34px;
    color: #10214c;
    background:
        radial-gradient(ellipse at 100% 57%,#dceeff,#f1f7fd 46%,transparent 72%),
        linear-gradient(140deg,#fff,#edf6ff);
}
.demo-profile { text-align: center; }
.demo-avatar {
    width: 84px;
    height: 84px;
    padding: 10px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%,#effff0,#d5f5f5 70%,#d9edff);
}
.demo-avatar img { width: 100%; height: 100%; object-fit: contain; }
.demo-profile h1 { margin: 0; font-size: 1.36rem; font-weight: 800; letter-spacing: -.045em; }
.demo-profile p { margin: 6px 0 0; color: #26385d; font-size: .9rem; line-height: 1.4; font-weight: 600; }
.demo-socials { display: flex; justify-content: center; gap: clamp(6px,2vw,9px); margin: 17px 0 19px; }
.demo-social {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #2461cb;
    box-shadow: 0 3px 8px #17487524;
    transition: transform .15s ease;
}
.demo-social svg, .demo-link-icon svg { display: block; width: 100%; height: 100%; }
.demo-social:hover, .demo-profile-link:hover, .demo-follow:hover { transform: translateY(-2px); }
.demo-social--youtube { background: #e90018; }
.demo-social--instagram { background: linear-gradient(32deg,#ffaa21 7%,#eb0b78 50%,#8236fa 94%); }
.demo-social--tiktok { background: #101525; }
.demo-social--telegram { background: #0587dd; padding: 0; color: #fff; }
.demo-social--telegram svg { color: #0587dd; border-radius: 50%; background: white; }
.demo-social--whatsapp { background: #00863e; }
.demo-profile-links { display: grid; gap: 10px; }
.demo-profile-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 11px;
    border: 1px solid #e2eaf5;
    border-radius: 14px;
    background: #fff;
    color: #10214c;
    text-align: left;
    font-size: .9rem;
    font-weight: 800;
    box-shadow: 0 3px 9px #3260a51a;
    transition: transform .15s ease;
}
.demo-link-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    padding: 8px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(140deg,#297dff,#0845d7);
}
.demo-link-icon--green { background: linear-gradient(145deg,#009881,#006bc6); }
.demo-chevron { color: #526d9f; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.demo-follow, .demo-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .35em;
    border: none;
    border-radius: 14px;
    background: linear-gradient(104deg,#008449,#006b45);
    color: #fff;
    font-size: .93rem;
    font-weight: 800;
}
.demo-follow { width: 100%; min-height: 51px; margin-top: 14px; transition: transform .15s ease; }
.demo-follow[aria-pressed="true"] { background: #075f53; }
.demo-heart { font-size: .93em; }
.demo-start { color: #17406d; font-size: .82rem; font-weight: 800; padding: 4px 8px; }
.demo-start:hover { text-decoration: underline; }
.demo-preview .demo-screen { max-height: 590px; overflow-y: auto; scrollbar-width: thin; }
.demo-preview .demo-profile h1 { overflow-wrap: anywhere; }
.demo-preview .demo-social { width: 34px; height: 34px; padding: 7px; }
.demo-preview .demo-social--telegram { padding: 0; }
.demo-preview .demo-profile-link > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.demo-profile .demo-avatar img { border-radius: 50%; object-fit: cover; }
.demo-profile-handle { display: block; color: #425a7b; font-size: .8rem; }
.demo-dialog {
    width: min(100% - 32px,420px);
    border: 1px solid #d7e6f4;
    border-radius: 23px;
    color: #10214c;
    padding: 23px;
    box-shadow: 0 20px 75px #10274c66;
}
.demo-dialog::backdrop { background: #142d579c; }
.demo-dialog h2 { margin: 0 36px 12px 0; font-size: 1.25rem; font-weight: 800; }
.demo-dialog p { color: #345177; font-size: .9rem; line-height: 1.55; }
.demo-close {
    position: absolute;
    right: 13px;
    top: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #17315c;
    background: #e8f2ff;
    font-size: 1.35rem;
    line-height: 1;
}
.demo-product { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border-radius: 14px; background: #edf6ff; }
.demo-product .demo-link-icon { flex: none; }
.demo-product p { margin: 4px 0 0; }
.demo-primary { padding: .68em 1em; min-height: 42px; }
.demo-dialog label { display: block; font-size: .82rem; font-weight: 700; }
.demo-dialog input { display: block; width: 100%; margin: 6px 0 11px; padding: 10px; border: 1px solid #b3c9e6; border-radius: 10px; color: #17315c; background: #f7fbff; font-size: .84rem; }
#demo-copy-status:empty { display: none; }
@media (max-width: 380px) {
    .demo-topbar { padding-top: 12px; }
    .demo-stage { padding: 12px 13px 17px; }
    .demo-screen { padding-top: 28px; }
    .demo-social { width: 37px; height: 37px; }
}
@media (prefers-reduced-motion: reduce) {
    :is(.demo-page,.demo-phone) *, :is(.demo-page,.demo-phone) *::before, :is(.demo-page,.demo-phone) *::after { transition: none !important; }
}
