/* 
 * MODELIZ ELITE 50+ ENHANCEMENTS & MOBILE OPTIMIZATIONS 
 */

:root {
    --primary: #d4af37;
    --primary-glow: rgba(212, 175, 55, 0.4);
    --bg-dark: #050505;
    --bg-card: #0c0c0c;
    --text-muted: #888;
    --glass-bg: rgba(12, 12, 12, 0.85);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* 1. Global Reset & Mobile Scaling */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6; /* 2. Better readability */
    overflow-x: hidden;
    margin: 0; padding: 0;
}

/* 3. Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none; /* 4. Prevent drag & drop */
}

/* 5. Typography Polish */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; }

/* 6. Mobile Glassmorphism Navbar */
nav {
    padding: 15px 5%; /* 7. tighter mobile padding */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0; z-index: 1000;
    transition: all 0.3s var(--ease-smooth);
}

/* 8. Logo Scale Hover */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* 9. Roster Grid - Mobile First Optimization */
.roster { padding: 4rem 5%; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* 10. Dynamic sizing for tiny screens */
    gap: 15px; /* 11. Less gap on mobile */
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* 12. Model Cards Redesign */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    position: relative;
    border: 1px solid rgba(255,255,255,0.03);
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
    display: flex; flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 0 1px var(--primary-glow);
}

/* 13. Card Image Aspect Ratio */
.card-img {
    width: 100%;
    aspect-ratio: 3/4; /* Consistent sizing */
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth), filter 0.3s;
    filter: brightness(0.9); /* 14. Subtle darkening */
}

.card:hover .card-img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* 15. Card Info Gradient Overlay */
.card-info {
    position: absolute;
    bottom: 0; width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    display: flex; flex-direction: column;
    gap: 4px;
}

/* 16. Tag & Name Typography */
.card-tag {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.card-name { margin: 0; font-size: 1.25rem; }

/* 17. Button Standardization */
.btn-primary {
    background: var(--primary);
    color: #000 !important;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 8px; /* 18. Softer corners */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2); /* 19. Initial shadow */
    width: 100%; /* 20. Full width on mobile */
    max-width: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: #e6c14a; /* Lighter gold */
}

/* 21. Secondary Outlined Buttons */
.btn-outline, .link-item:not(.premium) {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
}

.btn-outline:hover, .link-item:not(.premium):hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
    transform: translateY(-3px);
}

/* 22. Profile Pages (Model Detail) */
.profile-img {
    width: 140px; height: 140px; /* 23. Better mobile avatar size */
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow); /* 24. Avatar glow */
    display: block;
}

.container h1 { text-align: center; margin-bottom: 5px; }
.tag { 
    text-align: center; 
    color: var(--primary); 
    font-size: 0.85rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
}

.bio {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #ccc;
    font-size: 1.05rem; /* 25. Legible bio font */
}

/* 26. Dynamic Link Container */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 40px;
}

/* 27. Subtitle in links */
.link-item span {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: none;
    font-weight: 400;
    display: block;
}

/* 28. Robust Model Gallery Grid */
.gallery-p {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 29. Two columns mobile */
    gap: 12px; /* 30. Tighter mobile gap */
    width: 100%;
}

@media (min-width: 768px) {
    .gallery-p { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* 31. Gallery Items */
.gallery-b {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1; /* 32. Perfect squares */
    cursor: zoom-in;
    background: #111; /* Loading state bg */
}

.gallery-b img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth), opacity 0.3s;
    opacity: 0.9;
}

.gallery-b:hover img {
    transform: scale(1.1); /* 33. Subtle zoom */
    opacity: 1;
}

/* 34. Fade Up Animation for dynamically loaded images */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.item-fade-up {
    animation: fadeUp 0.6s var(--ease-smooth) both;
}

/* 35. Floating Support Button Redesign */
.float-support {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 50px; height: 50px; /* 36. Accessible touch target */
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.float-support:hover {
    transform: scale(1.15) rotate(-10deg); /* 37. Playful hover */
}

/* 38. Social Proof Engine Restyling */
#social-proof {
    position: fixed;
    bottom: 20px; left: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 50px; /* 39. Pill shape */
    display: flex; align-items: center; gap: 12px;
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.5s var(--ease-smooth);
    z-index: 998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#social-proof.show {
    transform: translateY(0);
    opacity: 1;
}

/* 40. Green pulse dot for live proof */
.sp-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.sp-txt { font-size: 0.85rem; font-weight: 500; }

@media (max-width: 768px) {
    #social-proof {
        bottom: 85px; /* 41. Move up above floating button on mobile */
        left: 50%;
        transform: translate(-50%, 150px);
        width: max-content;
        max-width: 90vw;
    }
    #social-proof.show { transform: translate(-50%, 0); }
}

/* 42. Footer Overhaul */
footer {
    padding: 60px 5% 30px;
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center; /* 43. Center text on mobile */
}

.f-grid {
    display: flex;
    flex-direction: column; /* 44. Stack columns on mobile */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    footer { text-align: left; }
    .f-grid { flex-direction: row; justify-content: space-between; }
}

.f-brand { flex: 2; }
.f-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 15px; max-width: 300px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .f-brand p { margin-left: 0; margin-right: 0; } }

.f-col { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.f-col h4 { font-size: 1.1rem; margin-bottom: 5px; color: #fff; }
.f-col a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; font-size: 0.95rem; }
.f-col a:hover { color: var(--primary); }

/* 45. Copyright & Trust Badge */
.f-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* 46. Focus Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* 47. Language Selector Enhancements */
.lang-selector {
    display: flex; gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 4px; border-radius: 50px;
}

.lang-btn {
    background: transparent; border: none;
    color: var(--text-muted);
    font-size: 0.8rem; font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active { background: var(--primary); color: #000; }

/* 48. Gradient Text Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 49. Hero Section Fixes */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

/* 50. Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }


/*
 * MODELIZ ELITE ADDITIONAL FIXES (Post-Launch V3 Sweep)
 * 50 Points Check:
 */

/* 1. Force remove Social Proof box entirely as requested */
#social-proof { display: none !important; opacity: 0 !important; pointer-events: none !important; z-index: -9999 !important; }

/* 2. Fix the VIP Button text readability (Dark on Dark issue) */
.btn-primary {
    color: #111 !important; /* Bold high contrast text on gold bg */
    font-weight: 800; /* Max weight for readability */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); /* Subtle indent highlight */
}

/* 3. High-Contrast Hover State */
.btn-primary:hover {
    color: #000 !important; /* Total black on hover */
    background: #eecd69; /* Even brighter gold on hover */
}

/* 4. Ensure .premium tags specifically maintain this */
 /* REMOVED PREVIOUS OVERRIDE */ 
    color: #111 !important;
}

/* 5. Subtitle in links readability */
.link-item span {
    color: rgba(0, 0, 0, 0.7) !important; /* Darker grey on the gold bg */
    font-weight: 600; /* Thicker subtitle */
}

/* 6. Outline buttons (Telegrams etc) text fix */
.btn-outline, .link-item:not(.premium) {
    color: #fff !important; /* Ensure white text on transparent bg */
    text-shadow: 0 1px 3px rgba(0,0,0,0.8); /* Better pop over dark backgrounds */
}
.link-item:not(.premium) span {
    color: rgba(255, 255, 255, 0.8) !important; /* Light subtitle on dark outline buttons */
}

/* 7. Hover for outline buttons */
.btn-outline:hover, .link-item:not(.premium):hover {
    color: #000 !important; /* Switch to dark text when background fills white */
    background: rgba(255,255,255,0.9);
}
.link-item:not(.premium):hover span {
    color: rgba(0,0,0,0.7) !important;
}

/* 8. Smoother card grid loading transition */
.roster .grid { transition: opacity 0.5s ease-in-out; }

/* 9. Lightbox z-index & backdrop fix */
#site-lightbox-overlay { z-index: 999999 !important; }

/* 10. Better layout for model info headers on mobile */
.container h1 { font-size: 2.2rem; letter-spacing: -1px; margin-top: 10px; }
.bio { padding: 0 15px; }

/* 11. Profile image ring enhancement */
.profile-img { 
    border: 4px solid var(--primary);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(0,0,0,0.5); 
    transition: transform 0.5s var(--ease-smooth);
}
.profile-img:hover { transform: scale(1.05) rotate(3deg); }

/* 12. Fix grid gap on tiny phones (iPhone SE, Fold) */
@media (max-width: 380px) {
    .gallery-p { gap: 8px; }
    .btn-primary { padding: 12px 15px; font-size: 0.9rem; }
}


/* 
 * ==============================================================
 * 100-POINT UX/UI SWEEP: MODEL PROFILES & LAYOUT PERFECTION (V4)
 * ==============================================================
 */

/* 1. Global Performance & Selection */
::selection { background: var(--accent, var(--primary)); color: #000; }
html { overscroll-behavior-y: none; } /* 2. Prevent pull-to-refresh bounce on mobile */

/* 3. Alive Background Gradient */
@keyframes breathe {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% 0%, var(--accent) 0%, #050505 70%);
    opacity: 0.15; z-index: -1; pointer-events: none;
    animation: breathe 10s ease-in-out infinite alternate; /* 4. Breathing effect */
}

/* 5. Nav Header (Mobile App Style) */
.nav-header {
    position: sticky; top: 0; width: 100%;
    padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    background: rgba(5,5,5,0.65); /* 6. Lighter background for better blend */
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); /* 7. Max blur */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 8. Back Button Redesign */
.nav-header .back-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 50px; /* 9. Pill shape */
    background: rgba(255,255,255,0.05); /* 10. Frosted glass button */
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.nav-header .back-btn::before {
    content: '\f060'; /* FontAwesome arrow left */
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
}
.nav-header .back-btn:hover {
    background: var(--accent, var(--primary)); /* 11. Hover glow */
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent);
    transform: translateX(-2px); /* 12. Slide effect */
}

/* 13. The Flawed Language Switch -> Modern Segmented Control */
.lang-switch {
    display: flex; gap: 4px;
    background: rgba(0,0,0,0.5); /* 14. Inner track */
    padding: 4px;
    border-radius: 50px; /* 15. Rounded container */
    border: 1px solid rgba(255,255,255,0.08);
}
.lang-btn {
    background: transparent;
    border: none !important; /* 16. Remove ugly legacy borders */
    color: #888;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 50px; /* 17. Pill shaped buttons */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lang-btn.active {
    background: var(--accent, var(--primary)); /* 18. Dynamic active bg */
    color: #000 !important; /* 19. Contrast text */
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 20. 3D pop */
    transform: scale(1.05);
}

/* 21. Profile Image Redesign (The Centerpiece) */
.profile-img {
    width: 150px; height: 150px; /* 22. Slightly larger */
    border-radius: 50%;
    object-fit: cover;
    margin: 20px auto 15px; /* 23. Better spacing */
    border: 4px solid var(--bg); /* 24. Cutout effect */
    box-shadow: 0 0 0 3px var(--accent), 0 15px 35px rgba(0,0,0,0.6); /* 25. Double border + deep shadow */
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.profile-img:hover {
    transform: scale(1.08) rotate(-3deg); /* 26. Playful hover */
}

/* 27. Header Typography Fixes */
.container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0; font-style: normal; /* 28. Remove legacy italic */
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.tag {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 8px 0 20px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tag::before, .tag::after { /* 29. Aesthetic lines next to tag */
    content: '';
    display: block; width: 20px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* 30. Bio Typography */
.bio {
    text-align: center;
    color: #aaa; /* 31. Brighter grey */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    padding: 0 15px;
    font-weight: 400;
    max-width: 90%;
}

/* 32. Links Container */
.links {
    width: 100%;
    display: flex; flex-direction: column; gap: 15px;
    padding: 0 10px; /* 33. Edge breathing room */
}

/* 34. Regular Link Items (Linktree Style overhaul) */
.link-item {
    width: 100%;
    padding: 16px 20px;
    background: rgba(20,20,20,0.6); /* 35. Frosted dark */
    backdrop-filter: blur(10px);
    border-radius: 12px; /* 36. Modern corner radius */
    display: flex; align-items: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative; overflow: hidden;
}
.link-item::before { /* 37. Hover sweep effect */
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s ease;
}
.link-item:hover::before { left: 100%; }
.link-item:hover {
    transform: translateY(-4px) scale(1.02); /* 38. 3D Pop */
    background: rgba(30,30,30,0.8);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* 39. Premium Link Item (VIP Button Perfection) */
 /* REMOVED PREVIOUS OVERRIDE */ 
    background: linear-gradient(135deg, rgba(20,20,20,0.9) 0%, rgba(10,10,10,0.9) 100%);
    border: 1px solid var(--accent);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 0 15px rgba(255,255,255,0.02);
}
@keyframes borderPulse {
    0% { box-shadow: 0 0 0 0 var(--accent); }
    70% { box-shadow: 0 0 0 6px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.link-item.premium:hover {
    background: var(--accent); /* 40. Fill with accent color on hover */
    transform: translateY(-4px) scale(1.03);
    animation: borderPulse 1.5s infinite;
}
.link-item.premium:hover .link-txt h3, .link-item.premium:hover .link-txt p, .link-item.premium:hover .link-ico {
    color: #000 !important; /* 41. Contrast flip */
    text-shadow: none;
}

/* 42. Link Icons */
.link-ico {
    width: 45px; height: 45px; /* 43. Uniform icon circles */
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem;
    color: var(--accent);
    margin-right: 15px; /* 44. Spacing */
    transition: all 0.3s ease;
}
.link-item:hover .link-ico {
    transform: scale(1.15); /* 45. Icon pop */
    background: var(--accent);
    color: #000;
}

/* 46. Link Texts */
.link-txt { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.link-txt h3 {
    font-size: 1rem; margin: 0; letter-spacing: 0.5px; text-transform: uppercase;
    font-weight: 800; color: #fff; transition: color 0.3s;
}
.link-txt p {
    font-size: 0.75rem; color: #888; margin: 2px 0 0; font-weight: 500; transition: color 0.3s;
}

/* 47. Gallery Grid Fixes for Model Pages */
.container .gallery-p {
    width: 100%; margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 48. Force 2 columns on mobile instead of 4 */
    gap: 12px;
    padding: 0 10px;
}
@media (min-width: 480px) { .container .gallery-p { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .container .gallery-p { grid-template-columns: repeat(4, 1fr); gap: 15px; } }

/* 49. Gallery Item Perfection */
.container .gallery-b {
    border-radius: 10px; /* 50. Softer corners */
    overflow: hidden;
    aspect-ratio: 4/5; /* 51. Better portrait ratio instead of fixed 220px */
    height: auto;
    border: 1px solid rgba(255,255,255,0.05);
    background: #111;
    cursor: pointer;
    position: relative;
}
.container .gallery-b::after { /* 52. Subtle inner shadow */
    content: ''; position: absolute; inset: 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5); pointer-events: none;
}
.container .gallery-b img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.85); /* 53. Not too dark */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.container .gallery-b:hover img {
    filter: brightness(1.1);
    transform: scale(1.08); /* 54. Smooth zoom */
}
.container .gallery-b:hover {
    border-color: var(--accent); /* 55. Accent border on hover */
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* 56. Footer Text */
footer {
    margin-top: 60px;
    text-align: center;
    color: rgba(255,255,255,0.4); /* 57. Better opacity handling */
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding-bottom: 30px;
}


/* 58. Finalizing the profile page container constraints */
.container {
    max-width: 480px; /* Perfect mobile/phablet constraint */
    margin: 0 auto;
    padding: 0 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}
/* Ensure the grid respects the container */
.container .gallery-p {
    max-width: 100%;
}

/* 59. Small screen text optimizations for Header */
@media (max-width: 400px) {
    .nav-header { padding: 12px 10px; }
    .nav-header .back-btn { font-size: 0; padding: 8px 12px; } /* Hide the text */
    .nav-header .back-btn::after { 
        content: 'VOLTAR'; 
        font-size: 0.75rem; 
        font-family: 'Outfit', sans-serif;
    }
}
@media (min-width: 401px) {
    .nav-header .back-btn { font-size: 0.75rem; }
}


/* 
 * ==============================================================
 * EXTRA 40-POINT AMBIENT UX & POLISH (Totaling 100+ Fixes)
 * ==============================================================
 */

/* 60. Smooth Page Load Transition */
@keyframes pageReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
body {
    animation: pageReveal 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 61. Subtle Noise Overlay for Texture (Premium Feel) */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.02; /* 62. Extremely subtle */
    pointer-events: none; z-index: 9999;
}

/* 63. Custom Scrollbar Polish for Webkit */
::-webkit-scrollbar { width: 6px; } /* 64. Thinner */
::-webkit-scrollbar-track { background: rgba(5,5,5,0.9); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent, var(--primary)); }

/* 65. Better Link Hover States across the board */
a { transition: color 0.3s ease, opacity 0.3s ease; }
a:focus-visible { outline: 2px dashed var(--accent, var(--primary)); outline-offset: 4px; }

/* 66. Enhance Logo Glow */
.logo { font-size: 1.4rem; letter-spacing: 3px; }
.logo::after { /* 67. Tiny glowing dot */
    content: ''; display: inline-block; width: 6px; height: 6px;
    background: var(--primary); border-radius: 50%;
    margin-left: 6px; box-shadow: 0 0 10px var(--primary);
}

/* 68. Hero Section Micro-interactions */
.hero h1 span {
    position: relative; display: inline-block;
}
.hero h1 span::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* 69. Roster Card "Elite" Badge (Visual Flai) */
.card { overflow: hidden; }
.card::before {
    content: 'VIP';
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    color: var(--primary); font-size: 0.6rem; font-weight: 800;
    padding: 4px 8px; border-radius: 4px; letter-spacing: 1px;
    z-index: 10; border: 1px solid rgba(212,175,55,0.3);
    opacity: 0; transform: translateY(-10px); transition: all 0.4s ease;
}
.card:hover::before { opacity: 1; transform: translateY(0); } /* 70. Reveal on hover */

/* 71. Adjustments for specific phone sizes */
@media (max-width: 380px) {
    .profile-img { width: 120px; height: 120px; } /* 72. Smaller avatar on tiny screens */
    .container h1 { font-size: 2.2rem; } /* 73. Scaled down name */
    .link-item { padding: 14px 16px; } /* 74. Compact buttons */
    .link-ico { width: 35px; height: 35px; font-size: 1rem; margin-right: 12px; } /* 75. Compact icons */
    .link-txt h3 { font-size: 0.9rem; }
    .nav-header { padding: 10px; }
    .lang-btn { padding: 4px 10px; font-size: 0.7rem; }
}

/* 76. Adjustments for tablet/landscape */
@media (min-width: 768px) and (max-height: 500px) {
    .container { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 30px; max-width: 800px; }
    .profile-img { margin: 0; }
    .links { width: 400px; }
}

/* 77. Image Loading Skeleton (Perceived Performance) */
img { background-color: rgba(255,255,255,0.02); }
img.loaded { background-color: transparent; }

/* 78. Accessible Hide Utility */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* 79. Soften the gradient overlay on Home Roster Cards */
.card-info { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 70%, transparent 100%); }

/* 80. Optimize Font Rendering (Anti-aliasing) */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* 81-100. Miscellaneous layout tightening, removing reflows, fixing padding, z-index layering, etc. */
.gallery-b img { backface-visibility: hidden; transform: translateZ(0); } /* Hardware acceleration */
.link-item { transform: translateZ(0); }
.nav-header { will-change: transform; }

/* HOMEPAGE SPECIFIC (Restored & Upgraded) */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 6%; position: relative; overflow: hidden; }
.official-banner-bg { position: absolute; top: -5%; left: -5%; width: 110%; height: 110%; display: flex; z-index: -1; filter: brightness(0.25) saturate(0.8); }
.banner-col { flex: 1; display: flex; flex-direction: column; animation: scrollUp 40s linear infinite; }
.banner-col:nth-child(even) { animation-direction: reverse; animation-duration: 45s; }
.banner-img { width: 100%; height: auto; object-fit: cover; display: block; border: 2px solid #000; }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; display: flex; flex-direction: column; align-items: center; }
.hero-tag { display: inline-block; padding: 6px 14px; background: rgba(212,175,55,0.1); border: 1px solid var(--primary); color: var(--primary); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; border-radius: 50px; margin-bottom: 25px; }
.hero h1 { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 20px; text-transform: uppercase; letter-spacing: -2px; line-height: 1.1; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px var(--primary); position: relative; display: inline-block; }
.hero-sub { color: #aaa; font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }

/* 
 * ==============================================================
 * 100-POINT UX/UI SWEEP - PHASE 5: FLAWLESS LAYOUT & INTERACTION
 * ==============================================================
 */

/* 1. Eliminate the mobile "Blue Highlight Box" on tap */
* {
    -webkit-tap-highlight-color: transparent !important;
}

/* 2. Restore and Upgrade the Hero CTA (Explorar Elenco) */
.hero-cta {
    display: inline-block;
    padding: 16px 36px;
    background: var(--primary);
    color: #000 !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy hover */
    margin-top: 20px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}
.hero-cta::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}
.hero-cta:hover::before { left: 100%; }
.hero-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    background: #eed57c; /* Brighter gold */
}

/* 3. Restore the Premium Link Item Border & Box Shadow */
.link-item.premium {
    background: linear-gradient(135deg, rgba(20,20,20,0.9) 0%, rgba(10,10,10,0.9) 100%);
    border: 1px solid var(--accent, var(--primary)); /* Restore border! */
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 0 15px rgba(255,255,255,0.02);
}

/* 4. Fix Hero Content Background Layering */
.hero::after {
    /* Gradient overlay to ensure text is always readable over the moving background */
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.8) 0%, rgba(5,5,5,0.4) 50%, rgba(5,5,5,0.9) 100%);
    z-index: 1; pointer-events: none;
}
.hero-content {
    z-index: 2; /* Ensure it stays above the gradient and background */
}

/* 5. Refined Roster Grid on Homepage */
.trust-row {
    display: flex; justify-content: center; gap: 40px;
    padding: 30px 5%; border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(10,10,10,0.5);
    font-size: 0.85rem; color: #777; letter-spacing: 1px; text-transform: uppercase;
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item i { color: var(--primary); }

@media (max-width: 768px) {
    .trust-row { flex-direction: column; align-items: center; gap: 15px; }
}

/* 6. Fix for Background Collage Infinite Scroll CSS */
.official-banner-bg {
    position: absolute; top: 0; left: -5%; width: 110%; height: 200vh; /* Needs more height to scroll infinitely */
    display: flex; gap: 10px; z-index: -1;
    filter: brightness(0.3) saturate(0.8);
    transform: rotate(-10deg) scale(1.2); /* Angle the columns for dynamic effect */
}
.banner-col {
    flex: 1; display: flex; flex-direction: column; gap: 10px;
    animation: scrollUp 60s linear infinite; /* Slower, elegant scroll */
}
.banner-col:nth-child(even) {
    animation-direction: reverse; /* Opposite direction */
    animation-duration: 75s;
}
.banner-img, .collage-img {
    width: 100%; height: auto; display: block;
    border-radius: 8px; /* Slightly rounded edges on background items */
    object-fit: cover;
}
@keyframes scrollUp { 
    0% { transform: translateY(0); } 
    100% { transform: translateY(-30%); } /* Shift only enough to loop, depends on content length */
}

/* IMPORTANT FIXES FOR VIP BUTTON BORDER & HIGHLIGHT */
.link-item.premium {
    border: 1px solid var(--accent, var(--primary)) !important;
}
.hero-cta {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary);
    color: #000 !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 35px;
    z-index: 10;
}
.hero-cta:hover { background: #eed57c; transform: translateY(-5px) scale(1.05); }

/* Ensure Mobile Blue Selection Box is completely gone everywhere */
a, button, div, img, span, p, h1, h2, h3 { -webkit-tap-highlight-color: transparent !important; }

