:root {
    --black: #0A0A0A;
    --panel: #151515;
    --panel-transparent: rgba(21, 21, 21, 0.85);
    --border: #2A2A2A;
    --border-hover: #444;
    --white: #F5F5F4;
    --grey: #9A9A9A;
    --grey-dim: #616161;
    --red: #E31E24;
    --red-dim: #E31E241A;
    --radius: 10px;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background: var(--black);
    color: var(--white);
    font-family: 'Inter', Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-color: var(--black);
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/BGportrait.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.5);
}

@media (min-aspect-ratio: 1/1) {
    .background::before {
        background-image: url('images/BGlandscape.jpg');
    }
}

@media (max-aspect-ratio: 1/1) {
    .background::before {
        background-image: url('images/BGportrait.jpg');
    }
}

.page {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 45px 25px;
    position: relative;
    z-index: 1;
}

.layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.profile-section {
    position: sticky;
    top: 45px;
    text-align: center;
    padding: 0;
    background: transparent;
}

.profile {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--red);
    padding: 3px;
    background: var(--black);
}

h1 {
    font-weight: 700;
    margin: 18px 0 4px;
    font-size: 26px;
    letter-spacing: -.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.bio {
    color: var(--grey);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 auto 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: var(--grey);
    transition: .2s ease;
    text-decoration: none;
}

.social:hover {
    color: var(--white);
    border-color: var(--red);
    background: var(--red-dim);
    transform: translateY(-2px);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

.content {
    min-width: 0;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.faq-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    transition: .2s ease;
    position: relative;
}

.link:hover {
    border-color: var(--red);
    background: rgba(20, 20, 20, 0.7);
    transform: translateX(3px);
    box-shadow: 0 0 30px rgba(227, 30, 36, 0.15);
}

.promo-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--black);
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.link-description {
    color: var(--grey-dim);
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow {
    margin-left: auto;
    color: var(--grey-dim);
    font-size: 19px;
    transition: .2s;
    flex-shrink: 0;
}

.link:hover .arrow {
    color: var(--red);
    transform: translateX(3px);
}

.uid-button {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--red);
    border-radius: var(--radius);
    background: var(--red);
    color: var(--white);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    margin-bottom: 30px;
}

.uid-button:hover {
    background: #C71920;
    box-shadow: 0 0 30px rgba(227, 30, 36, 0.3);
}

.uid-button:active {
    transform: scale(.99);
}

details {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    margin: 8px 0;
    padding: 15px 16px;
    transition: border-color .25s ease;
    overflow: hidden;
}

details:hover {
    border-color: var(--border-hover);
}

details[open] {
    border-color: var(--red);
}

summary {
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    list-style: none;
    outline: none;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    float: right;
    color: var(--grey-dim);
    font-size: 17px;
    transition: transform .25s ease, color .25s ease;
}

details[open] summary::after {
    color: var(--red);
    transform: rotate(45deg);
}

details p {
    color: var(--grey);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease, margin-top .35s ease;
}

details[open] p {
    max-height: 200px;
    opacity: 1;
    margin-top: 11px;
}

footer {
    margin-top: 30px;
    text-align: center;
    color: var(--grey-dim);
    font-size: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 10;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.uid-box {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    padding: 28px 20px 22px;
    text-align: center;
    transform: translateY(20px) scale(.97);
    transition: .25s ease;
    position: relative;
}

.modal.active .uid-box {
    transform: translateY(0) scale(1);
}

.uid-box img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
}

.uid-box h2 {
    margin: 14px 0 18px;
    font-size: 20px;
    font-weight: 700;
}

.region {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    margin: 8px 0;
    background: #0F0F0F;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.region-info {
    text-align: left;
}

.region-name {
    font-size: 13.5px;
    font-weight: 600;
}

.uid {
    color: var(--grey-dim);
    font-size: 12px;
    margin-top: 3px;
}

.copy {
    border: 1px solid var(--border-hover);
    background: transparent;
    color: var(--white);
    padding: 8px 13px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: .2s;
}

.copy:hover {
    background: var(--red);
    border-color: var(--red);
}

.close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    background: #0F0F0F;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.close:hover {
    border-color: var(--red);
    color: var(--red);
}

@media (max-width: 750px) {
    .page {
        padding: 30px 16px;
    }
    .layout {
        display: block;
    }
    .profile-section {
        position: static;
        padding: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 450px) {
    .profile {
        width: 105px;
        height: 105px;
    }
    h1 {
        font-size: 23px;
    }
    .link {
        min-height: 62px;
    }
    .promo-thumbnail {
        width: 32px;
        height: 32px;
    }
    .social {
        width: 42px;
        height: 42px;
    }
    .social-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 360px) {
    .page {
        padding: 20px 10px;
    }
    .profile {
        width: 90px;
        height: 90px;
    }
    h1 {
        font-size: 20px;
    }
}
