:root {
    --bg-color: #07070A;
    --card-bg: rgba(18, 19, 24, 0.76);
    --card-border: rgba(98, 101, 112, 0.36);
    --card-hover: rgba(26, 27, 34, 0.88);
    --text-main: #FFFFFF;
    --text-muted: #A09EAB;
    --accent-pink: #FF6B9E;
    --accent-purple: #9D6BFF;
    --cta-gradient: radial-gradient(circle at 18% 10%, rgba(255, 147, 205, 0.42) 0, transparent 34%),
        linear-gradient(135deg, #2C0920 0%, #771846 43%, #4D1D9B 100%);
    --cta-badge-gradient: linear-gradient(135deg, #8B164F 0%, #D42A7A 48%, #6C2CE0 100%);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 50% 4%, rgba(255, 107, 158, 0.08) 0, transparent 30%),
        radial-gradient(circle at 50% 44%, rgba(157, 107, 255, 0.055) 0, transparent 38%),
        linear-gradient(180deg, #0D0D12 0%, #050507 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.background-blobs {
    display: none;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob.pink {
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--accent-pink);
}

.blob.purple {
    bottom: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: var(--accent-purple);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* Layout */
.container {
    width: 100%;
    max-width: 480px; /* Mobile optimal width */
    padding: 38px 24px 42px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header */
.profile-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-container {
    position: relative;
    width: 112px;
    height: 112px;
    margin-bottom: 8px;
    display: grid;
    place-items: center;
}

.avatar-container::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 158, 0.75), rgba(157, 107, 255, 0.72));
    filter: blur(6px);
    opacity: 0.68;
    z-index: -1;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%; /* Фокус на лицо */
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 26px rgba(255, 74, 169, 0.24), 0 0 44px rgba(124, 77, 255, 0.18);
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background-color: #00FF85;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 10px rgba(0, 255, 133, 0.5);
}

.name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.bio {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 300px;
    font-weight: 300;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.links-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 17px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.link-card:hover, .link-card:active {
    background: var(--card-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.link-content i {
    font-size: 25px;
    color: var(--text-main);
}

.link-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-title {
    font-size: 15px;
    font-weight: 600;
}

.link-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 300;
}

.ph-caret-right {
    color: var(--text-muted);
}

/* CTA Link (The Money Link) */
.cta-wrapper {
    margin-top: 14px;
    position: relative;
    animation: pulse-subtle 3s infinite;
}

.cta-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--cta-badge-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 18px rgba(255, 57, 154, 0.58), 0 0 24px rgba(141, 65, 255, 0.34);
}

.cta-link {
    min-height: 78px;
    padding: 18px 20px;
    background: var(--cta-gradient);
    border: 1px solid rgba(255, 115, 189, 0.48);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 24px rgba(255, 49, 151, 0.44),
        0 0 58px rgba(150, 73, 255, 0.34),
        0 18px 42px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cta-bg-fx {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: shine 4s infinite;
}

.cta-link .link-content i {
    color: #FF8BD0;
    font-size: 31px;
    text-shadow: 0 0 18px rgba(255, 115, 198, 0.72);
}

.cta-link .link-title {
    color: #FFF;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.cta-link .link-subtitle {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 400;
}

.cta-link:hover, .cta-link:active {
    border-color: rgba(255, 150, 215, 0.72);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 32px rgba(255, 49, 151, 0.6),
        0 0 78px rgba(150, 73, 255, 0.44),
        0 20px 48px rgba(0, 0, 0, 0.56),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Footer */
.trust-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.trust-note {
    max-width: 360px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 30px;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 24px;
    transition: color 0.2s;
    min-width: 36px;
    min-height: 36px;
    display: inline-grid;
    place-items: center;
}

.social-icons a:hover {
    color: var(--text-main);
}

.legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--text-main);
}

.copyright {
    font-size: 11px;
    color: rgba(160, 158, 171, 0.5);
}

.link-card:focus-visible,
.social-icons a:focus-visible,
.legal-links a:focus-visible,
.modal-close:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 3px;
}

.legal-modal[hidden] {
    display: none;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 24px;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
}

.legal-modal-panel {
    position: relative;
    width: min(100%, 420px);
    max-height: min(520px, calc(100vh - 48px));
    overflow: auto;
    padding: 28px;
    background: rgba(18, 17, 25, 0.96);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    color: var(--text-main);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.legal-modal-panel:focus {
    outline: none;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.legal-modal-panel h2 {
    padding-right: 36px;
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 14px;
}

.legal-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-modal-body p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

.legal-page-body {
    align-items: flex-start;
}

.legal-page {
    width: 100%;
    max-width: 760px;
    padding: 48px 24px;
    margin: 0 auto;
}

.legal-page-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    width: fit-content;
}

.back-link:hover {
    color: var(--text-main);
}

.legal-page h1 {
    font-size: 30px;
    line-height: 1.2;
}

.legal-page .updated {
    color: var(--text-muted);
    font-size: 13px;
}

.legal-document {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(10px);
}

.legal-document h2 {
    font-size: 17px;
    margin-top: 8px;
}

.legal-document p,
.legal-document li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.legal-document ul {
    padding-left: 18px;
}

/* Animations */
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

@keyframes pulse-subtle {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Fade in entrance */
.container > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.container > *:nth-child(1) { animation-delay: 0.1s; }
.container > *:nth-child(2) { animation-delay: 0.2s; }
.container > *:nth-child(3) { animation-delay: 0.4s; }

@keyframes fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
