:root {
    --bg-color: #0b0b0b;
    --container-bg: rgba(20, 20, 20, 0.8);
    --accent-color: #e082b2;
    --accent-hover: #c46a9a;
    --text-main: #ffffff;
    --text-dim: #c8c8c8;
    --font-family: 'Montserrat', sans-serif;
    --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bg-horizontal.jpeg');
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

[hidden] {
    display: none !important;
}

/* Background for mobile/vertical screens */
@media (max-aspect-ratio: 13/19), (max-width: 768px) {
    body {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bg-vertical.jpeg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Cascade Delays */
.profile-section.animate-in { animation-delay: 0.05s; }
.links-container .link-card:nth-child(1) { animation-delay: 0.1s; }
.links-container .link-card:nth-child(2) { animation-delay: 0.15s; }
.links-container .link-card:nth-child(3) { animation-delay: 0.2s; }

/* Blur State */
.blurred {
    filter: blur(20px);
    pointer-events: none;
    user-select: none;
    opacity: 0.1;
}

/* Age Confirmation State */
html.age-confirmed #age-gate {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.age-confirmed #main-content {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    user-select: auto;
}

/* Age Gate Modal */
#age-gate {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    align-items: safe center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.modal-content {
    width: 100%;
    background: #151515;
    border: 1px solid var(--accent-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(224, 130, 178, 0.2);
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-content p {
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dim);
}

.gate-privacy {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-gate {
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dim);
    border: 2px solid #666;
}

.btn-secondary:hover {
    color: var(--text-main);
    border-color: var(--text-dim);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

/* Main Content */
#main-content {
    width: 100%;
    max-width: 500px;
    padding: 60px 20px;
    text-align: center;
    transition: filter 0.8s ease, opacity 0.8s ease;
}

.profile-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(224, 130, 178, 0.3);
    transition: var(--transition);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(224, 130, 178, 0.2);
}

.bio {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.4;
}

/* Links List */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.link-card {
    background-color: var(--container-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    text-decoration: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.link-card > i:first-child {
    position: absolute;
    left: 20px;
    font-size: 1.3rem;
    opacity: 0.9;
}

.custom-icon {
    display: flex;
    align-items: center;
}

.link-card .fa-chevron-right {
    position: absolute;
    right: 20px;
    font-size: 0.8rem;
    opacity: 0.4;
    transition: var(--transition);
}

.link-card:hover {
    border-color: var(--accent-color);
    transform: scale(1.02) translateY(-2px);
    background-color: rgba(224, 130, 178, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.link-card:hover .fa-chevron-right,
.link-card:focus-visible .fa-chevron-right {
    opacity: 1;
    transform: translateX(3px);
}

/* Featured Link */
.link-featured {
    border: 1px solid var(--accent-color);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(224, 130, 178, 0.15), transparent);
    transition: 0.5s;
}

.link-card:hover::before,
.link-card:focus-visible::before {
    left: 100%;
}

/* Custom Hover & Brand Styles */
#link-onlyfans > i:first-child {
    color: #00aff0;
}

#link-onlyfans:hover {
    border-color: #00aff0;
    background-color: rgba(0, 175, 240, 0.08);
    box-shadow: 0 10px 30px rgba(0, 175, 240, 0.15);
}

#link-onlyfans::before {
    background: linear-gradient(90deg, transparent, rgba(0, 175, 240, 0.2), transparent);
}

#link-privacy > i:first-child {
    color: #ff0037;
}

#link-privacy:hover {
    border-color: #ff0037;
    background-color: rgba(255, 0, 55, 0.08);
    box-shadow: 0 10px 30px rgba(255, 0, 55, 0.15);
}

#link-privacy::before {
    background: linear-gradient(90deg, transparent, rgba(255, 0, 55, 0.2), transparent);
}

#link-email > i:first-child {
    color: var(--accent-color);
}

#link-email:hover {
    border-color: var(--accent-color);
    background-color: rgba(224, 130, 178, 0.08);
    box-shadow: 0 10px 30px rgba(224, 130, 178, 0.15);
}

#link-email::before {
    background: linear-gradient(90deg, transparent, rgba(224, 130, 178, 0.2), transparent);
}

/* Analytics Consent */
.analytics-consent {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 900;
    width: min(620px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    background: #151515;
    border: 1px solid var(--accent-color);
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.analytics-consent__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
}

.analytics-consent__close:hover {
    color: var(--text-main);
}

.analytics-consent__content {
    text-align: left;
}

.analytics-consent h2 {
    margin-bottom: 6px;
    color: var(--accent-color);
    font-size: 1rem;
}

.analytics-consent p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.4;
}

.analytics-consent .analytics-consent__status {
    margin-top: 8px;
    color: var(--text-main);
    font-weight: 700;
}

.analytics-consent a,
footer a,
.footer-link-button,
.document-page a {
    color: var(--accent-color);
}

.analytics-consent a {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.8rem;
}

.analytics-consent__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.analytics-consent__actions .btn-gate {
    padding: 11px 14px;
    font-size: 0.75rem;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
}

footer a,
.footer-link-button {
    display: inline-block;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 14px;
}

.footer-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

/* Standalone documents */
.document-body {
    padding: 24px 0;
}

.document-page {
    width: min(720px, calc(100% - 32px));
    margin: auto;
    padding: clamp(24px, 5vw, 48px);
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    line-height: 1.65;
}

.document-page h1,
.document-page h2 {
    color: var(--accent-color);
}

.document-page h1 {
    margin-bottom: 12px;
    line-height: 1.2;
}

.document-page h2 {
    margin-top: 28px;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.document-page p,
.document-page ul {
    color: var(--text-dim);
}

.document-page ul {
    padding-left: 22px;
}

.document-page .document-meta {
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.document-page .document-back {
    display: inline-block;
    margin-top: 28px;
}

/* Responsive */
@media (max-width: 600px) {
    .analytics-consent {
        display: block;
    }

    .analytics-consent__actions {
        margin-top: 14px;
    }
}

@media (max-width: 480px) {
    .title { font-size: 2rem; }
    .profile-pic { width: 115px; height: 110px; }
    .modal-content { padding: 30px 20px; }
    .link-card { padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
