:root {
    /* Color Palette - Volcanic Fire Theme */
    --bg-dark: #080808;
    --bg-card: #141111;
    --bg-card-hover: #1f1a1a;
    
    --primary: #ffd60a; /* vivid yellow */
    --primary-hover: #ffec19;
    --secondary: #d90429; /* deep red */
    
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    
    --accent: #ef233c;
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Effects */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(255, 214, 10, 0.15);
}

@font-face {
    font-family: 'DCC Sharp';
    src: url('./dcc_sharp.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@keyframes intenseGlow {
    0% { 
        text-shadow: 0 0 10px var(--primary), 0 0 20px rgba(255, 214, 10, 0.4), 4px 4px 0px #000; 
        transform: scale(1); 
    }
    50% { 
        text-shadow: 0 0 25px var(--primary), 0 0 45px #fff, 6px 6px 0px #000; 
        transform: scale(1.03); 
    }
    100% { 
        text-shadow: 0 0 10px var(--primary), 0 0 20px rgba(255, 214, 10, 0.4), 4px 4px 0px #000; 
        transform: scale(1); 
    }
}

#hero-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    display: none;
}

.logo-text-block-hover { 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer; 
    perspective: 1000px;
    display: inline-block;
    padding: 20px;
    margin: -20px;
}

.logo-text-block-hover:hover {
    transform: scale(1.08) rotateX(8deg) rotateY(-8deg);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8));
}

.logo-text-block-hover:hover .text-trail {
    animation: intenseGlow 2s infinite alternate ease-in-out;
    color: #fff !important;
}

.logo-text-block-hover:hover .text-running {
    animation: intenseGlow 1.5s infinite alternate ease-in-out;
    filter: brightness(1.2) contrast(1.2);
}


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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(8, 8, 8, 0.85), rgba(8, 8, 8, 0.85)), url('fundo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.highlight {
    color: var(--primary);
}

/* --- Sub-Components --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(255, 214, 10, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 214, 10, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: var(--countdown-height, 0px);
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0;
    background: rgba(8, 8, 8, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-skull {
    width: 36px;
    height: 42px;
    object-fit: contain;
    margin-right: -2px;
    margin-bottom: -4px;
    filter: drop-shadow(0 0 5px rgba(255, 214, 10, 0.4));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all var(--transition-fast);
}

/* Main Content Area */
main {
    min-height: 80vh;
    padding-top: 80px; /* Offset for fixed navbar */
}

/* Sections Base */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    animation: fadeIn var(--transition-smooth) forwards;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.btn.disabled, .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(1);
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #000 url('fundo.png') center/cover no-repeat;
    margin-top: -80px; /* pull up under navbar */
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(8,8,8,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Custom Text Logo matching Image */
.hero-custom-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    transform: rotate(-2deg);
    user-select: none;
}

.logo-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skull-svg {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 0 15px rgba(255, 214, 10, 0.4));
    transform: rotate(-5deg);
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 0.8;
    transform: rotate(-3deg);
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.9));
    position: relative;
    padding-bottom: 2rem;
    margin-top: 7rem; /* Shifted down more */
}

.text-trail {
    font-family: 'Road Rage', sans-serif !important;
    font-size: clamp(2rem, 12vw, 11rem) !important;
    color: #ffffff !important;
    letter-spacing: -3px;
    text-shadow: 3px 3px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000;
    z-index: 1;
    position: relative;
    margin-bottom: clamp(-15px, -6vw, -70px);
    text-transform: uppercase;
    display: block;
    transform: rotate(-2deg);
    transition: all 0.4s ease;
}

.text-running {
    font-family: 'Road Rage', sans-serif !important;
    font-size: clamp(2rem, 12vw, 11rem) !important;
    color: #ffd60a !important;
    letter-spacing: -3px;
    text-shadow: 4px 4px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000, 0 8px 15px rgba(0,0,0,0.6);
    z-index: 10;
    position: relative;
    display: block;
    text-transform: uppercase;
    transform: rotate(-3deg);
    line-height: 1;
    transition: all 0.4s ease;
}

.text-insano {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.8rem, 10vw, 7rem);
    color: var(--primary);
    margin-top: clamp(-15px, -5vw, -45px);
    margin-left: clamp(10px, 8vw, 80px);
    text-shadow: 3px 3px 0px #080808, 0 0 20px rgba(255, 214, 10, 0.3);
    transform: rotate(-6deg);
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e9ecef;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- Dual Layout (Home) --- */
.home-dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 3rem;
    align-items: flex-start;
}

.column-section {
    min-width: 0;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.column-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.upload-mini-label {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-mini-label:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.challenges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .home-dual-layout {
        grid-template-columns: 1fr 1fr;
    }
    .sidebar-section {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .home-dual-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-section {
        grid-column: span 1;
    }
}

.challenge-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.challenge-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(255, 214, 10, 0.3);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.diff-hard { background: rgba(255, 107, 107, 0.9); color: #fff; }
.diff-med { background: rgba(252, 196, 25, 0.9); color: #000; }
.diff-easy { background: rgba(81, 207, 102, 0.9); color: #000; }

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-content .date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-content .desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.w-100 { width: 100%; }
.mt-4 { margin-top: 1.5rem; }

/* --- Gallery Grid & Upload --- */
.upload-area {
    text-align: center;
    margin-bottom: 3rem;
}

.upload-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.upload-hint {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 220px));
    gap: 1.2rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.delete-photo-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(217, 4, 41, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    z-index: 10;
}

.gallery-item:hover .delete-photo-btn {
    opacity: 1;
    transform: scale(1);
}

.delete-photo-btn:hover {
    background: #ff1e3f;
    transform: scale(1.1) !important;
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* --- Ranking Section --- */
.ranking-container {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.ranking-header {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr;
    padding: 1.5rem 2rem;
    background: rgba(0,0,0,0.2);
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
}

.ranking-item {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr;
    padding: 1.5rem 2rem;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.ranking-item:hover {
    background: var(--bg-card-hover);
}

.ranking-item:last-child { border-bottom: none; }

.pos {
    font-size: 1.5rem;
    font-weight: 800;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.level { color: var(--text-muted); }
.kms { font-weight: 800; color: var(--primary); }

.top-1 { background: rgba(255, 214, 10, 0.05); }

/* --- Profile Section --- */
.profile-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.profile-sidebar h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.profile-sidebar .title { color: var(--primary); font-weight: 600; margin-bottom: 2rem; }

.stats-box {
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
}

.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; margin-top: 0.5rem; }

.profile-main {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.profile-main h3 { margin-bottom: 2rem; font-size: 1.5rem; }


/* --- Forms --- */
.form-section {
    max-width: 800px;
}
.form-wrapper {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

/* --- Challenge Showcase on Inscription --- */
.challenge-showcase {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    animation: fadeInUp 0.5s ease forwards;
}

.showcase-flyer {
    width: 250px;
    height: 350px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.showcase-info {
    flex: 1;
    text-align: left;
}

.showcase-title {
    font-family: 'DCC Sharp', sans-serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.showcase-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.showcase-token {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: #fff;
}

.showcase-token i { color: var(--primary); font-style: normal; }

.showcase-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.2rem 0;
}

@media (max-width: 768px) {
    .challenge-showcase {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 1rem;
    }
    .showcase-flyer {
        width: 100%;
        max-width: 280px;
        height: auto;
    }
    .showcase-info {
        text-align: center;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e9ecef;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd60a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select.form-control option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 2rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkbox-group label { margin-bottom: 0; font-weight: 400; color: var(--text-muted); }

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

/* Admin Dashboard Styles */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tabs .btn {
    flex-shrink: 0;
    min-width: fit-content;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.admin-tabs .btn.active {
    color: var(--primary);
    border: 1px solid var(--primary);
    background: rgba(255, 214, 10, 0.08);
    box-shadow: 0 0 15px rgba(255, 214, 10, 0.1);
}

.admin-tab-content {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.admin-tab-content.active {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
}

#cms-items-list > div {
    transition: all 0.3s ease;
}

#cms-items-list > div:hover {
    background: rgba(255,255,255,0.05) !important;
    transform: translateX(5px);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stats-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.admin-table-wrapper {
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 1rem;
}

table {
    border-collapse: collapse;
}

th, td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

tr:last-child td {
    border-bottom: none;
}

.admin-table-wrapper table thead th {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 2.5rem;
        display: flex;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { 
        right: 0; 
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-container { padding: 1.2rem 1rem; }
    .nav-skull { width: 28px; height: 32px; }
    .logo { font-size: 1.1rem; }

    .logo-text-block-hover { padding: 0; margin: 0; overflow: hidden; }
    .section-container { padding: 3rem 1rem; }

    .hero-title { font-size: 2rem; }
    .hero-cta { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; gap: 0.8rem; }
    .hero-cta .btn { width: 100%; padding: 0.7rem; font-size: 0.9rem; }
    
    .profile-layout { grid-template-columns: 1fr; }
    
    .ranking-header, .ranking-item {
        grid-template-columns: 40px 1fr 1fr;
        font-size: 0.9rem;
    }
    .ranking-header span:nth-child(3), .ranking-item .level { display: none; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ─── Carousel ───────────────────────────────────────────────────────────── */
.carousel-viewport {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-track .challenge-card {
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary);
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* ─── Countdown Bar ──────────────────────────────────────────────────────── */
#countdown-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #ffd60a;
    color: #000;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.countdown-digits {
    font-family: 'Bebas Neue', monospace;
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: #000;
    font-weight: 800;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* --- Photographer Sidebar --- */
.sidebar-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.photog-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    margin-bottom: 0.8rem;
    position: relative;
    overflow: hidden;
}

.photog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.1), transparent);
    transition: 0.5s;
}

.photog-card:hover::before {
    left: 100%;
}

.photog-card:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 214, 10, 0.1);
}

.photog-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s;
}

.photog-card:hover .photog-avatar {
    border-color: var(--primary);
}

.photog-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #f8f9fa !important; /* Force off-white */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.photog-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.photog-info .buy-cta {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 1px;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-mini-label {
    background: var(--primary);
    border: 3px solid var(--bg-main);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.upload-mini-label:hover {
    transform: scale(1.1);
    background: #ffc900;
}

/* ─── Client Login Wall ──────────────────────────────────────────────────── */
.login-wall-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 0, 10, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-wall-box {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 60px rgba(255,51,0,0.2);
    animation: fadeInUp 0.4s ease;
}

@media (max-width: 480px) {
    .login-wall-box {
        padding: 1.5rem;
        border-radius: 14px;
    }
}

/* ─── Murais (Albums) ─────────────────────────────────────────────────── */
.mural-card {
    cursor: pointer;
    border-radius: 8px; /* Sharper corners for aggressive look */
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
    aspect-ratio: 1/1; /* Modern square look */
    border: 1px solid var(--border-color);
}

.mural-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 214, 10, 0.4);
    border-color: var(--primary);
    z-index: 5;
}

.mural-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.8s ease;
}

.mural-card:hover .mural-cover {
    transform: scale(1.1);
}

.mural-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.95) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.mural-overlay h3 {
    margin: 0;
    font-size: 1.6rem;
    text-transform: uppercase;
    font-family: 'DCC Sharp', sans-serif !important;
    color: #fff;
    text-shadow: 2px 2px 0px #000;
    line-height: 1.1;
    letter-spacing: 1px;
}

.mural-overlay span {
    font-size: 0.7rem;
    color: var(--bg-dark);
    background: var(--primary);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 2px;
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.mural-card:hover .mural-overlay span {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary);
}


.video-item {
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ─── Animated Background (Skull with Fire) ──────────────────────────────── */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: #000;
}

.bg-skull {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: url('skull-bg.png') no-repeat center center;
    background-size: contain;
    opacity: 0.3;
    animation: skullFloat 6s ease-in-out infinite;
}

.bg-fire {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(255, 68, 0, 0.4), transparent 70%);
    mix-blend-mode: screen;
    animation: fireFlicker 3s ease-in-out infinite;
}

@keyframes skullFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.05); }
}

@keyframes fireFlicker {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 0.7; transform: scaleY(1.2); }
}

/* ─── Updated Registration Styles ────────────────────────────────────────── */
/* End of file */

/* ─── FAQ FLOATING BALLOON ───────────────────────────────────────────────── */
.faq-floating-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 75px;
    height: 75px;
    background: #000;
    color: var(--primary);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-family: "Bebas Neue", sans-serif;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 214, 10, 0.3), inset 0 0 15px rgba(255, 214, 10, 0.2);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: faq-float 3s ease-in-out infinite, faq-glow 2s ease-in-out infinite alternate;
}

.faq-floating-btn:hover {
    transform: scale(1.15) rotate(-10deg);
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 40px var(--primary);
}

.faq-floating-btn .btn-text {
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: var(--primary);
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 900;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.faq-floating-btn .btn-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--primary);
}

.faq-floating-btn:hover .btn-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.faq-popover {
    position: fixed;
    bottom: 130px;
    right: 40px;
    width: min(400px, 90vw);
    max-height: 80vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--primary);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.9);
    z-index: 10000;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 2rem;
}

.faq-popover.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.faq-popover h3 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #fff;
    letter-spacing: 1px;
}

.faq-item {
 margin-bottom: 1.5rem;
 border-bottom: 1px solid rgba(255,255,255,0.05);
 padding-bottom: 1rem;
}

.faq-question {
 font-weight: 700;
 color: var(--primary);
 margin-bottom: 0.5rem;
 cursor: pointer;
 display: flex;
 align-items: center;
 gap: 8px;
}

.faq-answer {
 font-size: 0.9rem;
 color: #adb5bd;
 line-height: 1.5;
}

@keyframes faq-pulse {
 0% { box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.7); }
 70% { box-shadow: 0 0 0 15px rgba(255, 214, 10, 0); }
 100% { box-shadow: 0 0 0 0 rgba(255, 214, 10, 0); }
}

/* --- STORE GLASS VITRINE -------------------------------------------------- */
.store-card-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.store-card-glass::before {
    content: "";
 position: absolute;
 top: -50%;
 left: -50%;
 width: 200%;
 height: 200%;
 background: radial-gradient(circle, rgba(255,214,10,0.05) 0%, transparent 70%);
 opacity: 0;
 transition: opacity 0.4s ease;
 pointer-events: none;
}

.store-card-glass:hover {
 transform: translateY(-10px);
 border-color: var(--primary);
 box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(255,214,10,0.1);
}

.store-card-glass:hover::before {
 opacity: 1;
}

.store-product-img {
 width: 100%;
 aspect-ratio: 1;
 object-fit: contain;
 filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
 transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-card-glass:hover .store-product-img {
 transform: scale(1.1) translateY(-5px);
 filter: drop-shadow(0 20px 30px rgba(0,0,0,0.7));
}

.store-card-glass .btn {
    position: relative;
    z-index: 10;
}

/* --- AVAILABILITY BADGES -------------------------------------------------- */
.store-availability-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.badge-ready {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3) !important;
}

.badge-order {
    background: rgba(255, 214, 10, 0.15);
    color: var(--primary);
    border-color: rgba(255, 214, 10, 0.3) !important;
}

/* --- INSTAGRAM FLOATING BUTTON -------------------------------------------- */
.instagram-floating-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 65px;
    height: 65px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(220, 39, 67, 0.4);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #fff;
}

.instagram-floating-btn:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 40px rgba(220, 39, 67, 0.6);
}

.instagram-floating-btn .btn-text {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%) translateX(-20px);
    background: #fff;
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 900;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.instagram-floating-btn .btn-text::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #fff;
}

.instagram-floating-btn:hover .btn-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .instagram-floating-btn {
        width: 55px;
        height: 55px;
        bottom: 25px;
        left: 20px;
    }
    .faq-floating-btn {
        width: 65px;
        height: 65px;
        bottom: 25px;
        right: 20px;
    }
}

/* --- MAINTENANCE PAGE ENHANCEMENTS --- */
body.maintenance-mode .navbar,
body.maintenance-mode .footer,
body.maintenance-mode #countdown-bar,
body.maintenance-mode .faq-floating-btn {
    display: none !important;
}

.maintenance-container {
    background: radial-gradient(circle at center, #1a0202 0%, #000 70%) !important;
    z-index: 99999 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.skull-neon-wrapper {
    position: relative;
    width: clamp(150px, 30vw, 250px);
    height: clamp(150px, 30vw, 250px);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neon-aura {
    position: absolute;
    width: 60%;
    height: 60%;
    background: #ffd60a; /* Amarelo Insanos */
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.6;
    box-shadow: 0 0 80px #ffd60a, 0 0 120px rgba(255, 214, 10, 0.5);
    animation: neonBreath 3s infinite ease-in-out;
    z-index: 1;
}

.floating-skull {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    animation: floatSkull 4s infinite ease-in-out;
    filter: drop-shadow(0 0 15px rgba(255, 214, 10, 0.3));
}

@keyframes floatSkull {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-25px) rotate(2deg); }
}

@keyframes neonBreath {
    0%, 100% { opacity: 0.4; transform: scale(1); filter: blur(50px); }
    50% { opacity: 0.8; transform: scale(1.3); filter: blur(70px); }
}

.maintenance-title-giant {
    font-family: 'Road Rage', cursive !important;
    font-size: clamp(2rem, 8vw, 5.5rem);
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(255, 214, 10, 0.4);
    letter-spacing: 2px;
}

.maintenance-subtitle-premium {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 3vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 6px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 214, 10, 0.3);
}

/* --- ADMIN SWITCH TOGGLE --- */
.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #222;
  transition: .4s;
  border: 2px solid #444;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input:checked + .slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ─── ATHLETE PROFILE (MEU PERFIL) ─── */
.profile-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

#cms-itens-list > div {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

#cms-itens-list > div:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.profile-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.profile-card.confirmed {
    border-left-color: #00ff88;
}

.profile-card.pending {
    border-left: 5px solid var(--primary);
}

.profile-card.transferred {
    border-left: 5px solid var(--text-muted);
    opacity: 0.8;
}

.profile-info {
    flex: 1;
}

.profile-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.status-pago {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.status-pendente {
    background: rgba(255, 214, 10, 0.15);
    color: var(--primary);
}

.status-transferred {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-qr {
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,255,136,0.2);
}

.profile-qr img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .profile-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .profile-qr {
        align-self: center;
        width: 160px;
        height: 160px;
    }
}
/* ─── DIGITAL WALLET (CARTEIRA DIGITAL) ────────────────────────────────── */
.digital-wallet-container {
    margin-bottom: 3rem;
    perspective: 1000px;
}

.digital-wallet-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 1));
    border: 1px solid rgba(255, 214, 10, 0.3);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(255, 214, 10, 0.1);
    font-family: var(--font-sans);
    color: #fff;
    padding: 0;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.digital-wallet-card:hover {
    transform: translateY(-5px) rotateX(2deg);
    border-color: var(--primary);
}

.wallet-header {
    background: linear-gradient(90deg, #ffd60a 0%, #ffc107 100%);
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}

.wallet-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DCC Sharp', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.wallet-logo img {
    height: 30px;
}

.wallet-title {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-size: 1.3rem;
    opacity: 0.8;
}

.wallet-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.wallet-photo-container {
    position: relative;
}

.wallet-photo {
    width: 140px;
    height: 175px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    background: #000;
}

.wallet-chip {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #d4af37, #f9f295, #b8860b);
    border-radius: 6px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.wallet-field {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-size: 0.65rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.field-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
}

.wallet-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wallet-footer {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-qr-mini {
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    width: 60px;
    height: 60px;
}

.wallet-id {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.wallet-stamp {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%) rotate(-15deg);
    opacity: 0.03;
    width: 250px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 480px) {
    .wallet-body {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .wallet-photo-container {
        margin: 0 auto;
    }
    .wallet-row {
        justify-content: center;
    }
    .wallet-info {
        align-items: center;
    }
}
/* ─── PRINT STYLES ─────────────────────────────────────────────────────── */
@media print {
    /* Hide everything except the wallet */
    body * {
        visibility: hidden;
    }
    .digital-wallet-container, .digital-wallet-container * {
        visibility: visible;
    }
    .digital-wallet-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .digital-wallet-card {
        border-color: #000 !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .wallet-actions {
        display: none !important;
    }
    
    /* Clean up for printing */
    .navbar, .footer, #profile-search-section, .athlete-dashboard, h2, .section-subtitle, .faq-floating-btn {
        display: none !important;
    }
    
    @page {
        margin: 0.5cm;
        size: auto;
    }
}

/* Checkpoint System & Scan UI */
#scan-container {
    background: linear-gradient(135deg, #111 0%, #080808 100%);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

#scan-container::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,214,10,0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.success-animation {
    animation: successPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #222;
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Premium Shadows & Utilities */
:root {
    --shadow-premium: 0 20px 50px rgba(0,0,0,0.6);
}

.cp-mapping-select {
    background: #1a1a1a !important;
    border-color: #333 !important;
    color: #fff !important;
}

.cp-mapping-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px rgba(255, 214, 10, 0.2);
}

/* --- Race Timer & Timeline Styles --- */
#race-timer-display {
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
}

.timeline-item.active {
    border-left-color: var(--primary);
}

.timeline-item.active::before {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.race-timer-mini {
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 5px var(--primary);
}

@keyframes pulse-timer {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.active-timer {
    animation: pulse-timer 1s infinite alternate;
}


/* --- Race Timer & Timeline --- */
.race-timer-card {
    background: #000;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--primary);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(255, 214, 10, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.race-timer-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent 45%, rgba(255,214,10,0.05) 50%, transparent 55%);
    background-size: 200% 200%;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { background-position: -200% -200%; }
    100% { background-position: 200% 200%; }
}

.race-timer-label {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.race-timer-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px var(--primary), 0 0 5px #fff;
    letter-spacing: 2px;
}

.checkpoint-timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: -1.5rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-item.reached .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-dot::after {
    content: '✓';
    font-size: 10px;
    color: #000;
    font-weight: bold;
    display: none;
}

.timeline-item.reached .timeline-dot::after {
    display: block;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-title {
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- New Ranking UI --- */
.ranking-tabs .btn {
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    min-width: 120px;
}

.ranking-tabs .btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 214, 10, 0.3);
}

.ranking-item:hover {
    transform: translateX(10px);
    background: rgba(255, 214, 10, 0.08) !important;
}

@media (max-width: 600px) {
    .ranking-header, .ranking-item {
        grid-template-columns: 40px 1fr 60px 80px !important;
        padding: 1rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
    .ranking-item div div:first-child {
        font-size: 0.95rem !important;
    }
}

/* 🎡 ROLETA INSANA 🎡 */
.roulette-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: #0a0a0a;
    border-radius: 20px;
    border: 1px solid #1a1a1a;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.roulette-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.roulette-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2rem auto;
    border-radius: 50%;
    border: 10px solid #151515;
    box-shadow: 0 0 30px rgba(0,0,0,0.8), 0 0 15px rgba(255,214,10,0.1);
    background: #111;
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.15, 0, 0.15, 1);
}

.roulette-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.roulette-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    color: #fff;
    padding-top: 30px;
    box-sizing: border-box;
    clip-path: polygon(50% 50%, 0% 0%, 100% 0%);
}

.roulette-segment span {
    transform: rotate(0deg);
    display: inline-block;
    max-width: 80px;
    line-height: 1.2;
}

.roulette-indicator {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 100;
    filter: drop-shadow(0 4px 5px rgba(0,0,0,0.5));
}

.roulette-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: #000;
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255,214,10,0.4);
}

.roulette-center img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px var(--primary));
}

.spin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255,214,10,0.2);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255,214,10,0.3);
}

.spin-btn:active:not(:disabled) {
    transform: translateY(0);
}

.spin-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.points-badge {
    background: rgba(255,214,10,0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    border: 1px solid rgba(255,214,10,0.2);
    display: inline-block;
    margin-bottom: 1rem;
}

.roulette-locked {
    filter: grayscale(1);
    opacity: 0.6;
    pointer-events: none;
}

.prize-history {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.prize-item {
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    border-left: 3px solid var(--primary);
}

.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Roleta Insana */
.roulette-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    border-radius: 50%;
    border: 8px solid #333;
    box-shadow: 0 0 20px rgba(255,214,10,0.5), inset 0 0 10px rgba(0,0,0,0.5);
    overflow: hidden;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 4s cubic-bezier(0.1, 0.7, 0.3, 1);
    transform: rotate(0deg);
}

.roulette-pin {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    background: #ff3300;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.roulette-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #222;
    border-radius: 50%;
    border: 4px solid var(--primary);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roulette-center img {
    width: 30px;
    height: 30px;
}

.roulette-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roulette-segment-text {
    position: absolute;
    transform-origin: center;
    width: 150px;
    text-align: right;
    padding-right: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
}

/* --- DESIGN SYSTEM: NEO-INSANO GLASS --- */
:root {
    --glass-bg: rgba(20, 18, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 15px rgba(255, 214, 10, 0.3);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    opacity: 0.7;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(255, 214, 10, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 214, 10, 0.1);
}

.stat-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.stat-pill:hover {
    background: rgba(255, 214, 10, 0.05);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Side Decorations for Profile */
.insane-side-bars {
    position: relative;
    padding: 0 30px;
}

.insane-side-bars::before,
.insane-side-bars::after {
    content: '';
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--primary) 0,
        var(--primary) 20px,
        transparent 20px,
        transparent 40px
    );
    opacity: 0.3;
    z-index: 0;
}

.insane-side-bars::before { left: 10px; }
.insane-side-bars::after { right: 10px; }

@media (max-width: 768px) {
    .insane-side-bars { padding: 0 15px; }
    .insane-side-bars::before, .insane-side-bars::after { display: none; }
}

.stat-pill h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-pill .value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: var(--neon-glow);
    letter-spacing: 2px;
}

/* Digital Passport Premium */
.passport-container {
    perspective: 1000px;
    margin-bottom: 3rem;
}

.digital-passport-v2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.passport-header {
    background: var(--primary);
    color: #000;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.passport-header h3 {
    font-family: 'Bebas Neue';
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.passport-body {
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.passport-photo-area {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    padding: 5px;
    background: #000;
}

.passport-photo-area img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.passport-info {
    flex: 1;
}

.passport-info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.passport-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ffd60a 0%, #b89b00 100%);
    border-radius: 6px;
    margin-bottom: 1rem;
    position: relative;
}

/* Responsividade do Passaporte */
@media (max-width: 600px) {
    .passport-body {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }

    .passport-photo-area {
        width: 100px;
        height: 100px;
        margin: 0 auto;
        flex-shrink: 0; /* Evita achatamento no Safari do iPhone */
    }

    .passport-info h2 {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .passport-info {
        width: 100%;
        text-align: left;
    }

    .passport-info .info-grid {
        grid-template-columns: 1fr 1fr !important;
        text-align: center;
    }

    .passport-info .contact-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap;
        width: 100%;
        gap: 4px;
    }
    
    .passport-info .contact-row span:last-child {
        font-size: 0.9rem;
        word-break: break-all;
        text-align: right;
    }

    .profile-dashboard-header {
        padding: 2rem 1rem !important;
    }

    .profile-dashboard-header h2 {
        font-size: 2.5rem !important;
    }
}


/* Timer & Progress */
.timer-glass {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 214, 10, 0.15);
}

.timer-display-v2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;
    color: var(--primary);
    letter-spacing: 5px;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(255, 214, 10, 0.4);
}

.btn-insane {
    background: var(--primary);
    color: #000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    padding: 10px 25px;
    border: none;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-insane:hover {
    transform: scale(1.05) translateX(5px);
    box-shadow: 0 0 25px var(--primary);
}

/* Roleta Button Upgrade */
.btn-roulette-neon {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-family: 'Bebas Neue';
    font-size: 1.2rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
}

.btn-roulette-neon:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px var(--primary);
    transform: translateY(-2px);
}
/* --- GPS & Map Live Tracking --- */
.gps-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.gps-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.gps-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Bebas Neue', sans-serif;
}

.gps-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

#race-map {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    background: #000;
}

.gps-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    background: #888;
}

.gps-status-dot.active {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 1.5s infinite;
}

@media (max-width: 480px) {
    #race-map { height: 200px; }
}

/* ═══════════════════════════════════════════════════════════
   📸 PORTAL DE FOTOS – photos_portal.js
   ═══════════════════════════════════════════════════════════ */

/* ── Wrapper geral ── */
.pp-wrap { padding: 0 0 6rem; }

/* ── Caixa de busca ── */
.pp-search-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}
.pp-title {
    font-family: 'Road Rage', cursive;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.pp-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.pp-input-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.pp-bib-field {
    max-width: 180px;
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 4px;
    font-weight: 700;
}
.pp-btn-search { min-width: 120px; }
.pp-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 1.2em;
}
.pp-loading { color: var(--primary); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── Grade de fotos ── */
.pp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

/* ── Item de foto ── */
.pp-photo-item {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid transparent;
    transition: border-color .2s, transform .2s;
    cursor: pointer;
}
.pp-photo-item:hover { transform: translateY(-4px); }
.pp-photo-item.pp-selected { border-color: var(--primary); }

.pp-photo-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.pp-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter .3s;
}
.pp-photo-item:hover .pp-photo-thumb img { filter: brightness(1.1); }

/* ── Marca d'água de caveiras ── */
.pp-watermark {
    position: absolute;
    inset: 0;
    background-image: url('skull-logo.png');
    background-size: 80px;
    background-repeat: repeat;
    opacity: .13;
    mix-blend-mode: screen;
    pointer-events: none;
    transform: rotate(-20deg) scale(1.2);
}

/* ── Badge de selecionado ── */
.pp-select-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    font-weight: 900;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255,214,10,.6);
}

.pp-photo-footer {
    padding: 0.75rem;
    display: flex;
    justify-content: center;
}
.pp-btn-select {
    width: 100%;
    background: rgba(255,214,10,.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background .2s;
}
.pp-btn-select:hover { background: var(--primary); color: #000; }

/* ── Vazio ── */
.pp-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}
.pp-empty span { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ── Carrinho flutuante ── */
.pp-cart-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(15,15,15,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 2px solid var(--primary);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 9000;
    box-shadow: 0 -4px 30px rgba(255,214,10,.2);
    animation: slideUp .3s ease;
}
@keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }

.pp-cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pp-cart-info span { color: var(--text-muted); font-size: 0.85rem; }
.pp-cart-info strong { font-size: 1.3rem; color: var(--primary); }
.pp-checkout-btn { min-width: 180px; }

/* ═══════════════════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════════════════ */
.pp-admin-wrap { display: flex; flex-direction: column; gap: 2rem; }
.pp-admin-title { font-size: 1.8rem; margin: 0 0 .5rem; }

.pp-admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
}
.pp-admin-card h4 { margin: 0 0 1rem; color: var(--primary); }

.pp-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pp-combo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

/* Upload */
.pp-upload-queue { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.pp-upload-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,.04);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}
.pp-upload-name { flex: 1; font-size: 0.85rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-progress-bar { flex: 0 0 120px; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.pp-progress-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width .2s; }
.pp-upload-pct { font-size: 0.8rem; width: 40px; text-align: right; color: var(--text-muted); }

/* Grade Admin */
.pp-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.pp-admin-item {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.pp-admin-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.pp-admin-item-body {
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.pp-bib-tag-input { flex: 1; font-size: 0.8rem; padding: 0.4rem 0.6rem; }
.pp-btn-delete {
    padding: 0.4rem 0.6rem;
    background: rgba(231,76,60,.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.pp-btn-delete:hover { background: #e74c3c; color: #fff; }

@media (max-width: 600px) {
    .pp-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .pp-cart-bar { flex-direction: column; text-align: center; }
    .pp-input-row { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════════════════
   📸 PORTAL DE FOTOS – photos_portal.js
   ═══════════════════════════════════════════════════════════ */
.pp-wrap { padding: 0 0 6rem; }

.pp-search-box { text-align:center; max-width:600px; margin:0 auto 3rem; padding:2.5rem; background:rgba(255,255,255,.03); border:1px solid var(--border-color); border-radius:20px; }
.pp-title { font-family:'Road Rage',cursive; font-size:3rem; margin-bottom:.5rem; }
.pp-subtitle { color:var(--text-muted); margin-bottom:1.5rem; font-size:.95rem; }
.pp-input-row { display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; }
.pp-bib-field { max-width:180px; text-align:center; font-size:1.4rem; letter-spacing:4px; font-weight:700; }
.pp-divider { display:flex; align-items:center; gap:1rem; margin:1.25rem 0; color:var(--text-muted); font-size:.85rem; }
.pp-divider::before,.pp-divider::after { content:''; flex:1; height:1px; background:var(--border-color); }
.pp-status { margin-top:.75rem; font-size:.9rem; color:var(--text-muted); min-height:1.2em; }
.pp-loading { color:var(--primary); animation:ppPulse 1s infinite; }
@keyframes ppPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Botão face */
.pp-face-btn { background:linear-gradient(135deg,#7c3aed,#c084fc); color:#fff; border:none; border-radius:50px; padding:.85rem 2rem; font-size:1rem; font-weight:700; cursor:pointer; letter-spacing:.5px; box-shadow:0 4px 20px rgba(192,132,252,.35); transition:transform .2s,box-shadow .2s; width:100%; max-width:340px; }
.pp-face-btn:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(192,132,252,.5); }

/* Grade */
.pp-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1.25rem; }
.pp-photo-item { border-radius:14px; overflow:hidden; background:var(--bg-card); border:2px solid transparent; transition:border-color .2s,transform .2s; }
.pp-photo-item:hover { transform:translateY(-4px); }
.pp-photo-item.pp-selected { border-color:var(--primary); }
.pp-photo-thumb { position:relative; aspect-ratio:4/3; overflow:hidden; }
.pp-photo-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.pp-watermark { position:absolute; inset:0; background-image:url('skull-logo.png'); background-size:80px; background-repeat:repeat; opacity:.12; mix-blend-mode:screen; pointer-events:none; transform:rotate(-20deg) scale(1.2); }
.pp-select-badge { position:absolute; top:10px; right:10px; width:32px; height:32px; border-radius:50%; background:var(--primary); color:#000; font-weight:900; font-size:1rem; display:flex; align-items:center; justify-content:center; box-shadow:0 0 10px rgba(255,214,10,.6); }
.pp-confidence { position:absolute; bottom:0; left:0; right:0; background:rgba(0,0,0,.7); color:#00ff88; font-size:.75rem; font-weight:700; text-align:center; padding:.3rem; letter-spacing:.5px; }
.pp-photo-footer { padding:.75rem; display:flex; justify-content:center; }
.pp-btn-select { width:100%; background:rgba(255,214,10,.1); border:1px solid var(--primary); color:var(--primary); border-radius:8px; padding:.5rem; font-size:.85rem; cursor:pointer; transition:background .2s; }
.pp-btn-select:hover { background:var(--primary); color:#000; }
.pp-empty { grid-column:1/-1; text-align:center; padding:4rem; color:var(--text-muted); }
.pp-empty span { font-size:3rem; display:block; margin-bottom:1rem; }

/* Carrinho */
.pp-cart-bar { position:fixed; bottom:0; left:0; right:0; background:rgba(15,15,15,.97); backdrop-filter:blur(16px); border-top:2px solid var(--primary); padding:1rem 2rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; z-index:9000; box-shadow:0 -4px 30px rgba(255,214,10,.2); animation:ppSlideUp .3s ease; }
@keyframes ppSlideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.pp-cart-info { display:flex; flex-direction:column; gap:2px; }
.pp-cart-info span { color:var(--text-muted); font-size:.85rem; }
.pp-cart-info strong { font-size:1.3rem; color:var(--primary); }

/* ── MODAL FACIAL ─────────────────────────────────────────── */
.pp-face-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.92); backdrop-filter:blur(10px); z-index:10000; align-items:center; justify-content:center; padding:1rem; opacity:0; transition:opacity .3s; }
.pp-face-modal--open { opacity:1; }
.pp-face-inner { background:#0e0e0e; border:1px solid rgba(192,132,252,.3); border-radius:24px; padding:2rem; max-width:520px; width:100%; position:relative; box-shadow:0 0 60px rgba(192,132,252,.2); text-align:center; }
.pp-face-close { position:absolute; top:1rem; right:1rem; background:rgba(255,255,255,.08); border:none; color:#fff; width:36px; height:36px; border-radius:50%; font-size:1.1rem; cursor:pointer; transition:background .2s; }
.pp-face-close:hover { background:rgba(255,255,255,.18); }
.pp-face-title { font-family:'Bebas Neue',sans-serif; font-size:2rem; margin:.5rem 0 .25rem; }
.pp-face-sub { color:var(--text-muted); font-size:.9rem; margin-bottom:1.25rem; min-height:2.5em; }

/* Câmera */
.pp-cam-wrap { position:relative; border-radius:16px; overflow:hidden; background:#000; aspect-ratio:4/3; max-width:400px; margin:0 auto; border:2px solid rgba(192,132,252,.4); box-shadow:0 0 30px rgba(192,132,252,.15); }
.pp-cam-wrap video { width:100%; height:100%; object-fit:cover; display:block; transform:scaleX(-1); }
.pp-cam-wrap canvas { position:absolute; inset:0; width:100%; height:100%; transform:scaleX(-1); }

/* Barra de progresso face */
.pp-face-prog-bar { height:6px; background:rgba(255,255,255,.1); border-radius:3px; overflow:hidden; }
.pp-face-prog-fill { height:100%; background:linear-gradient(90deg,#7c3aed,#c084fc); border-radius:3px; transition:width .2s; }

.pp-face-scan-btn { margin-top:1.5rem; width:100%; max-width:280px; background:linear-gradient(135deg,#7c3aed,#c084fc); border:none; border-radius:50px; font-size:1rem; font-weight:700; letter-spacing:.5px; box-shadow:0 4px 20px rgba(192,132,252,.4); transition:transform .2s,opacity .2s; }
.pp-face-scan-btn:hover:not(:disabled) { transform:translateY(-2px); }
.pp-face-scan-btn:disabled { opacity:.5; cursor:not-allowed; }

/* ── ADMIN ────────────────────────────────────────────────── */
.pp-admin-wrap { display:flex; flex-direction:column; gap:2rem; }
.pp-admin-title { font-size:1.8rem; margin:0 0 .5rem; }
.pp-admin-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:16px; padding:1.75rem; }
.pp-admin-card h4 { margin:0 0 1rem; color:var(--primary); }
.pp-price-row { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.pp-combo-row { display:flex; align-items:center; gap:.75rem; margin-bottom:.5rem; flex-wrap:wrap; }
.pp-upload-queue { margin-top:1rem; display:flex; flex-direction:column; gap:.5rem; }
.pp-upload-row { display:flex; align-items:center; gap:.75rem; background:rgba(255,255,255,.04); padding:.5rem .75rem; border-radius:8px; }
.pp-upload-name { flex:1; font-size:.85rem; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pp-progress-bar { flex:0 0 100px; height:6px; background:rgba(255,255,255,.1); border-radius:3px; overflow:hidden; }
.pp-progress-fill { height:100%; background:var(--primary); border-radius:3px; transition:width .2s; }
.pp-upload-pct { font-size:.8rem; width:80px; text-align:right; color:var(--text-muted); }
.pp-admin-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1rem; }
.pp-admin-item { background:rgba(255,255,255,.03); border:1px solid var(--border-color); border-radius:12px; overflow:hidden; position:relative; }
.pp-admin-item img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.pp-admin-item-body { padding:.75rem; display:flex; gap:.5rem; align-items:center; }
.pp-bib-tag-input { flex:1; font-size:.8rem; padding:.4rem .6rem; }
.pp-btn-delete { padding:.4rem .6rem; background:rgba(231,76,60,.1); border:1px solid #e74c3c; color:#e74c3c; border-radius:6px; cursor:pointer; flex-shrink:0; }
.pp-btn-delete:hover { background:#e74c3c; color:#fff; }
.pp-face-count { position:absolute; top:6px; left:6px; font-size:.7rem; font-weight:700; padding:.2rem .5rem; border-radius:20px; background:rgba(0,255,136,.15); color:#00ff88; border:1px solid rgba(0,255,136,.3); }
.pp-face-none { background:rgba(255,193,7,.1); color:#ffc107; border-color:rgba(255,193,7,.3); }

@media(max-width:600px){
    .pp-grid{grid-template-columns:1fr 1fr;gap:.75rem}
    .pp-cart-bar{flex-direction:column;text-align:center}
    .pp-input-row{flex-direction:column;align-items:center}
}
@keyframes pulseSuccess {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}
