:root {
    --primary-color: #ff69b4; /* Hot Pink */
    --secondary-color: #9370db; /* Medium Purple */
    --accent-color: #ff1493; /* Deep Pink */
    --text-light: #ffffff;
    --text-dark: #2d0a1f;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(147, 112, 219, 0.3);
    --transition-speed: 0.3s;

    /* Consumed by egotrip-profile-core.css */
    --eg-accent: #ff1493;
    --eg-share-icon-color: #fff;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #000;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background
   Oversized and drifted via transform so the motion stays on the compositor;
   animating background-position instead repaints the whole viewport each frame. */
.bg-animated {
    position: fixed;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    z-index: -1;
    background: linear-gradient(135deg, #1a0011 0%, #3a0ca3 50%, #f72585 100%);
    will-change: transform;
    animation: gradientShift 18s ease-in-out infinite alternate;
}

.bg-animated::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 105, 180, 0.4) 0%, transparent 60%);
}

@keyframes gradientShift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-7%, -5%, 0) scale(1.1); }
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Avatar */
.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    width: 100%;
}

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 105, 180, 0.6);
    padding: 3px;
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.5);
    background-color: var(--glass-bg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.username {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.verified-badge {
    color: #00d2ff;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.5));
}

.bio {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Links Section */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Glassmorphism Buttons */
.link-btn {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.link-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--glass-shadow);
}

.link-btn:hover::before {
    left: 100%;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    z-index: 2;
}

.btn-content i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.custom-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.arrow-icon {
    font-size: 1rem;
    opacity: 0.7;
    transition: transform var(--transition-speed) ease;
}

.link-btn:hover .arrow-icon {
    transform: translateX(5px);
    opacity: 1;
}

/* Special Button Highlights */
.highlight {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.4), rgba(255, 105, 180, 0.2));
    border-color: rgba(255, 105, 180, 0.5);
    animation: pulseGlow 2s infinite;
}

.highlight .btn-content {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 105, 180, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0); }
}

.highlight-alt {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.4), rgba(138, 43, 226, 0.2));
    border-color: rgba(147, 112, 219, 0.5);
}

.tip-btn {
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
}
.tip-icon {
    color: var(--primary-color);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Footer */
.footer-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 800;
    cursor: pointer;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
    transition: all var(--transition-speed) ease;
}

.footer-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: #fff;
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
}

.footer-links {
    margin-top: 1.5rem;
    opacity: 0.8;
}

.footer-links a {
    color: var(--text-light);
    font-weight: 400;
}
.footer-links a:hover {
    color: var(--primary-color);
}

/* ── Share & cookie chrome ───────────────────────────────
   egotrip-profile-core.js injects this markup with a light default theme;
   these rules bring it in line with the glass/neon look of the page. */
.eg-share-button {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
}

.eg-share-button:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.55);
}

.eg-share-modal {
    background: rgba(26, 0, 17, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eg-share-modal-content {
    background: linear-gradient(160deg, #2d0a28, #1a0011);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(255, 105, 180, 0.12);
}

.eg-share-modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 105, 180, 0.18);
}

.eg-share-modal-header h3 {
    color: var(--text-light);
}

.eg-share-modal-close {
    color: rgba(255, 255, 255, 0.65);
}

.eg-share-modal-close:hover {
    background: rgba(255, 105, 180, 0.18);
    color: var(--primary-color);
}

.eg-share-preview {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.16), rgba(147, 112, 219, 0.1));
    border: 1px solid rgba(255, 105, 180, 0.18);
    border-radius: 14px;
}

.eg-share-preview-avatar {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 24px rgba(255, 105, 180, 0.45);
}

.eg-share-preview-handle {
    color: #ffc4e2;
}

.eg-share-option {
    color: var(--text-light);
}

.eg-share-option-icon.twitter {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-notice {
    background: rgba(26, 0, 17, 0.96);
    color: var(--text-light);
    border-top: 1px solid rgba(255, 105, 180, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cookie-notice a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-notice button.eg-cookie-reject {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.cookie-notice button.eg-cookie-close {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Age gate ───────────────────────────────────────────── */
.eg-age-modal {
    background: rgba(26, 0, 17, 0.88);
}

.eg-age-modal-content {
    background: linear-gradient(160deg, #2d0a28, #1a0011);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.eg-age-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 24px rgba(255, 105, 180, 0.45);
}

.eg-age-confirm {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.eg-age-cancel {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.75);
}

.eg-age-badge {
    margin-left: auto;
    background: rgba(26, 0, 17, 0.6);
    border-color: rgba(255, 105, 180, 0.5);
}

/* El boton ya tiene la flecha al final: el distintivo va antes */
.link-btn .eg-age-badge {
    order: 2;
    margin-right: 10px;
}

.link-btn .arrow-icon {
    order: 3;
}

@media (prefers-reduced-motion: reduce) {

    .bg-animated,
    .container,
    .avatar,
    .highlight,
    .tip-icon {
        animation: none !important;
    }

    .link-btn,
    .link-btn::before,
    .arrow-icon,
    .footer-button {
        transition: none !important;
    }
}
