:root {
    --color-bg: #070707;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-border: rgba(212, 175, 55, 0.15);
    --color-gold: #d4af37;
    --color-gold-hover: #b5952f;
    --color-text: #f8f8f8;
    --color-text-muted: #aaaaaa;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box !important; 
    max-width: 100%;
}

html {
    overflow-x: hidden !important;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    width: 100%;
}

body.dark-theme {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Strict Parent Boundary Containment System */
div, section, main, header, footer, article, nav, p, span, h1, h2, h3, h4, h5, h6, form, input, button, select, textarea, img, table, tr, td, th {
    max-width: 100%;
    box-sizing: border-box !important;
}

/* Images, Embeds & Videos Never Exceed Parent Boundaries */
img, video, canvas, svg, iframe {
    max-width: 100% !important;
    height: auto;
}

/* Form Inputs & Buttons Safety */
input, select, textarea, button {
    max-width: 100% !important;
    word-wrap: break-word;
}

/* Text Wrapping Guard Against Parent Overflow */
p, h1, h2, h3, h4, h5, h6, span, label, td, th, div {
    overflow-wrap: break-word;
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; margin-bottom: 1rem; }

.gold { color: var(--color-gold); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.pt-0 { padding-top: 0 !important; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Container */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Glassmorphism */
.glass {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
}

/* Buttons */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 30px;
    font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; font-size: 0.9rem; cursor: pointer;
    transition: var(--transition); text-decoration: none; text-align: center; border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--color-gold), #aa7c11); color: #000; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5); background: linear-gradient(135deg, #e3c45a, var(--color-gold)); }
.btn-outline { background: transparent; color: var(--color-gold); border: 2px solid var(--color-gold); }
.btn-outline:hover { background: var(--color-gold); color: #000; }
.btn-block { width: 100%; display: block; }
.btn-large { padding: 15px 40px; font-size: 1rem; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 15px 0; border-radius: 0; border-top: none; border-left: none; border-right: none; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo-img { height: 42px; width: auto; max-width: 50px; object-fit: contain; border-radius: 6px; filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4)); transition: transform 0.3s ease; }
.logo:hover .logo-img { transform: scale(1.08); }
.logo-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-link:hover { color: var(--color-gold); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--color-gold); font-size: 1.5rem; cursor: pointer; }

/* Page Wrapper & Headers (Prevents Fixed Navbar Overlap) */
.page-wrapper {
    padding-top: clamp(90px, 12vh, 120px);
}

.page-header {
    padding-top: clamp(100px, 14vh, 130px);
}

/* Hero Section with Automatic Image Slider & Dark Coating Overlay */
.hero { 
    height: calc(100vh - 80px); 
    min-height: 520px;
    margin-top: 80px;
    display: flex; 
    align-items: flex-end; 
    justify-content: center; 
    text-align: center; 
    position: relative; 
    overflow: hidden;
    background: #070707; 
    padding-bottom: clamp(35px, 6vh, 65px);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s ease-in-out, transform 6s ease-out;
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Coating of Transparent Black Overlay Above Image */
.hero-overlay { 
    position: absolute; 
    top: 2px; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.25) 50%, 
        rgba(7, 7, 7, 0.85) 100%
    );
    z-index: 2;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.hero-content { 
    position: relative; 
    z-index: 3; 
    max-width: 850px; 
    width: 100%;
    padding: 0 20px; 
}

.hero-subtitle { 
    text-transform: uppercase; 
    letter-spacing: 5px; 
    color: var(--color-gold); 
    font-family: var(--font-body); 
    font-size: 1.2rem; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-title { 
    font-size: clamp(2.8rem, 6vw, 5.2rem); 
    line-height: 1.1; 
    margin-bottom: 20px; 
    font-weight: 800;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9); 
}

.hero-tagline { 
    font-size: clamp(1.1rem, 2.5vw, 1.6rem); 
    color: #e0e0e0; 
    margin-bottom: 40px; 
    font-style: italic;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-cta { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap;
}

/* Slider Navigation Dots */
.hero-slider-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 35px;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dots .dot.active,
.hero-slider-dots .dot:hover {
    background: var(--color-gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

@media (max-width: 768px) {
    .hero-slider .desktop-only-slide {
        display: none !important;
    }
    .hero-slider-dots .desktop-only-dot {
        display: none !important;
    }
    .hero-slider .slide[data-mobile-contain="true"] {
        background-size: contain !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }
}

/* Sections */
.section { padding: 100px 0; }
.bg-darker { background-color: #040404; }
.section-title { margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; }
.title-line { height: 3px; width: 60px; background: var(--color-gold); margin: 15px auto 0; border-radius: 2px; }

/* Grid Cards */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.about-card { padding: 40px; text-align: center; transition: var(--transition); }
.hover-lift:hover { transform: translateY(-10px); border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
.gold-icon { font-size: 3rem; color: var(--color-gold); margin-bottom: 20px; }

/* Organizer */
.organizer-content { padding: 60px; border-radius: 20px; position: relative; overflow: hidden; }
.organizer-content::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--color-gold); }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background: var(--color-border); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
.timeline-item { padding: 30px; position: relative; width: 45%; margin-bottom: 30px; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 55%; }
.timeline-date { color: var(--color-gold); font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }

/* Sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.sponsor-logo { padding: 20px; display: flex; justify-content: center; align-items: center; filter: grayscale(100%); transition: var(--transition); }
.sponsor-logo:hover { filter: grayscale(0%); border-color: var(--color-gold); }
.sponsor-logo img { max-width: 100%; height: auto; opacity: 0.7; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px; background: none; border: none; color: #fff; font-size: 1.1rem; font-family: var(--font-body); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; color: var(--color-text-muted); }
.faq-item.active .faq-answer { padding-bottom: 20px; max-height: 200px; }
.faq-item.active .fa-chevron-down { transform: rotate(180deg); transition: 0.3s; }

/* Footer */
.footer { background: #000; padding: 60px 0 20px; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; }
.footer-col a { display: block; color: var(--color-text-muted); text-decoration: none; margin-bottom: 10px; transition: 0.3s;}
.footer-col a:hover { color: var(--color-gold); }
.social-icon { font-size: 1.2rem; margin-top: 15px; display: inline-block !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: var(--color-text-muted); font-size: 0.9rem; }

/* Inner Pages Header */
.page-header { padding: 150px 0 80px; background-size: cover; background-position: center; border-bottom: 1px solid var(--color-border); }
.page-title { font-size: 4rem; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 15px; }
.form-group.wide { grid-column: span 2; }
.form-group label { margin-bottom: 8px; font-size: 0.9rem; color: var(--color-text-muted); }
.glass-input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 10px; color: #fff; font-family: var(--font-body); outline: none; transition: 0.3s; }
.glass-input:focus { border-color: var(--color-gold); background: rgba(255,255,255,0.08); }

/* Leaderboard */
.controls { padding: 20px; margin-bottom: 30px; border-radius: 15px; }
.search-box { display: flex; align-items: center; gap: 10px; width: 60%; }
.search-box input { width: 100%; border: none; background: transparent; padding: 10px; border-bottom: 1px solid var(--color-border); border-radius: 0; }
.search-box input:focus { border-bottom-color: var(--color-gold); }
.leaderboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.contestant-card { border-radius: 16px; overflow: hidden; position: relative; transition: var(--transition); }
.card-img-wrapper { height: 300px; overflow: hidden; position: relative; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.contestant-card:hover .card-img-wrapper img { transform: scale(1.05); }
.rank-badge { position: absolute; top: 15px; left: 15px; background: var(--color-gold); color: #000; width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 800; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.card-content { padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.6)); position: absolute; bottom: 0; width: 100%; }
.card-content h3 { margin-bottom: 5px; font-size: 1.3rem; }
.vote-count { color: var(--color-gold); font-weight: 600; margin-bottom: 15px; }
.card-actions { display: flex; gap: 10px; }
.card-actions .btn { padding: 8px 15px; flex: 1; font-size: 0.8rem; }

/* Profile Page */
.profile-cover { height: 400px; background-size: cover; background-position: center; position: relative; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; }
.profile-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-bg), transparent); }
.profile-info { position: relative; margin-top: -100px; z-index: 10; padding: 40px; }
.profile-avatar { width: 200px; height: 200px; border-radius: 50%; border: 4px solid var(--color-gold); object-fit: cover; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.profile-stats { display: flex; gap: 30px; margin: 20px 0; }
.stat-box { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--color-gold); font-family: var(--font-heading); }
.stat-label { color: var(--color-text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.share-buttons { margin-top: 30px; display: flex; gap: 15px; }
.share-btn { width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; background: rgba(255,255,255,0.1); transition: 0.3s; text-decoration: none; font-size: 1.2rem; }
.share-btn:hover { background: var(--color-gold); color: #000; transform: translateY(-3px); }
.vote-panel { padding: 40px; text-align: center; position: sticky; top: 100px; }

/* Skeleton */
.skeleton-card { height: 350px; background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 16px; }
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Animations */
.fade-in { animation: fadeIn 1s ease forwards; opacity: 0; }
.fade-in-delay { animation: fadeIn 1s ease 0.5s forwards; opacity: 0; }
.slide-up { animation: slideUp 1s ease forwards; opacity: 0; transform: translateY(30px); }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 900px) {
    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 80px; }
    .timeline-item:nth-child(even), .timeline-item:nth-child(odd) { left: 0; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.wide { grid-column: span 1; }
    .mobile-menu-btn { display: block; }
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-bg); border-bottom: 1px solid var(--color-border); flex-direction: column; padding: 20px; display: none; }
    .nav-links.active { display: flex; }
    .controls { flex-direction: column; gap: 15px; }
    .search-box { width: 100%; }
    .profile-info { text-align: center; margin-top: -80px; }
    .profile-avatar { width: 150px; height: 150px; margin: 0 auto 20px; display: block; }
    .profile-stats { justify-content: center; }
    .share-buttons { justify-content: center; }
    .vote-panel { margin-top: 20px; }
}

/* Countdown Timer Widget */
.countdown-widget {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    margin-top: 15px;
    border: 1px solid var(--color-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}
.timer-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 8px;
    font-weight: 600;
}
.timer-boxes {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}
.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}
.time-box span {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
}
.time-box label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

/* Vote Page Contestant Grid */
.contestant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.vote-card {
    position: relative;
    height: 480px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.vote-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-gold);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.25), 0 12px 35px rgba(0, 0, 0, 0.7);
}

.vote-card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: var(--color-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--color-gold);
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.vote-card-overlay {
    position: relative;
    width: 100%;
    padding: 30px 22px 22px;
    background: linear-gradient(to top, 
        rgba(10, 10, 15, 0.96) 0%, 
        rgba(10, 10, 15, 0.85) 60%, 
        rgba(10, 10, 15, 0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vote-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.vote-card-city {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.vote-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Detail View Full-Size Portrait Card */
.cinematic-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: stretch;
    width: 100%;
}

.vote-card-badge-left {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    z-index: 5;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.portrait-detail-card {
    position: relative;
    width: 100%;
    min-height: clamp(520px, 70vh, 720px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #0d0d12;
}

.portrait-detail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

/* Bottom 20% to 30% Compact Overlay */
.portrait-detail-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 32%;
    padding: 16px 20px 18px;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(0, 0, 0, 0.88) 60%, 
        rgba(0, 0, 0, 0.45) 85%, 
        transparent 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
}

.portrait-detail-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.bio-quote-compact {
    font-style: italic;
    color: #dddddd;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #eeeeee;
}

.btn-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--color-gold);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.88rem;
}

.btn-icon-link:hover {
    background: var(--color-gold);
    color: #000000;
    transform: translateY(-2px);
}

/* Modal Redesign & Scroll Safety */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 12, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content-cinematic {
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    width: 100%;
    max-width: 960px;
    border-radius: 28px;
    background: var(--color-bg);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    padding: clamp(20px, 3vw, 35px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .cinematic-grid {
        grid-template-columns: 1fr;
    }
    .portrait-detail-card {
        min-height: clamp(400px, 55vh, 600px);
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }
    .modal-content-cinematic {
        max-height: 95vh;
        border-radius: 20px;
        padding: 18px 14px;
    }
    .portrait-detail-card {
        min-height: 450px;
        border-radius: 20px;
    }
}

/* ==========================================
   Full Screen Processing Overlay Component
   ========================================== */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
    user-select: none;
    animation: fadeInOverlay 0.3s ease forwards;
}

.processing-card {
    max-width: 450px;
    width: 90%;
    padding: 40px 30px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.15);
    animation: scaleInCard 0.3s ease forwards;
}

.processing-card h2 {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 700;
}

.processing-card p {
    color: #e0e0e0;
}

.processing-subtext {
    color: #999999;
    font-size: 0.88rem;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleInCard {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* First Visit Image Popup Modal (13.jpeg) - Borderless Tight Image Wrapper */
.first-visit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px;
    animation: fadeInOverlay 0.3s ease-out forwards;
}

.first-visit-content {
    position: relative;
    display: inline-block;
    max-width: 90vw;
    max-height: 85vh;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 14px;
    animation: scaleInCard 0.3s ease-out forwards;
}

.first-visit-img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.95);
    border: none;
}

.first-visit-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    background: #000000;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.8);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.first-visit-close-btn:hover,
.first-visit-close-btn:active {
    background: var(--color-gold);
    color: #000000;
    transform: scale(1.15) rotate(90deg);
}

@media (max-width: 576px) {
    .first-visit-modal {
        padding: 10px;
    }
    .first-visit-content {
        max-width: 94vw;
        max-height: 88vh;
    }
    .first-visit-img {
        max-width: 94vw;
        max-height: 88vh;
    }
    .first-visit-close-btn {
        top: -10px;
        right: -10px;
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
}

/* Universal Adaptive & Responsive Safety Guards for Mobile First View */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100vw;
    }
    
    .container {
        padding: 0 14px !important;
        max-width: 100% !important;
    }

    .nav-container {
        padding: 0 14px !important;
    }

    .card, .glass, .vote-card, .podium-card, .modal-content, .cinematic-grid {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    table {
        display: block;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px !important;
    }

    .logo-text {
        font-size: 1.15rem !important;
        letter-spacing: 1px !important;
    }

    .logo-img {
        height: 32px !important;
    }

    .btn {
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
    }
}



