@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&family=Exo+2:wght@300;400;600&display=swap');

:root {
    --m-red: #e23636;
    --m-red-dark: #b01c1c;
    --m-gold: #ffc700;
    --m-blue: #00d2ff;
    --bg-dark: #0a0812;
    --bg-card: rgba(226, 54, 54, 0.07);
    --border: rgba(226, 54, 54, 0.24);
    --text-main: #f8f6f6;
    --text-dim: rgba(248, 246, 246, 0.65);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default !important;
}

a,
button,
.clickable {
    cursor: pointer !important;
}

a {
    text-decoration: none;
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

#cursor,
#cursor-outline {
    display: none !important;
}

/* Global Backgrounds */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 25%, rgba(4, 3, 8, 0.88) 100%);
    pointer-events: none;
    z-index: 10;
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(at 15% 15%, rgba(226, 54, 54, 0.28) 0, transparent 55%),
        radial-gradient(at 85% 18%, rgba(138, 43, 226, 0.20) 0, transparent 50%),
        radial-gradient(at 75% 85%, rgba(255, 199, 0, 0.16) 0, transparent 50%),
        radial-gradient(at 10% 80%, rgba(0, 210, 255, 0.16) 0, transparent 50%),
        radial-gradient(at 50% 50%, rgba(226, 54, 54, 0.10) 0, transparent 65%);
    z-index: -1;
    opacity: 0.85;
    animation: bgPulse 10s ease-in-out infinite alternate;
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 15%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 40%, rgba(255, 199, 0, 0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 60%, rgba(0, 210, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 35%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 75%, rgba(226, 54, 54, 0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 45% 85%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 65% 10%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 80%, rgba(255, 199, 0, 0.3) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

@keyframes bgPulse {
    0% {
        opacity: 0.75;
        transform: scale(1);
    }

    100% {
        opacity: 0.95;
        transform: scale(1.06);
    }
}

/* Header Typography Group */
.logo,
.navbar-brand,
.section-header h2,
.footer-logo,
.hero h1,
.hero-preview h3,
.db-card h3,
.party-title,
.timeline-year,
.submit-btn,
.mission-content h3,
.main-title,
.hero-name-display,
.assemble-btn,
.villain-card h3 {
    font-family: 'Orbitron', sans-serif;
}

/* Secondary Subtitle / Label Group */
.nav-links a,
.navbar-nav .nav-link,
.section-header p,
.footer-links a,
.copyright,
.creator,
.hero-subtitle,
.cta-btn,
.fun-btn,
.hero-preview span,
.tech-label,
.back-btn,
.item-info span,
.timeline-content h3,
.warning-text,
.mission-status,
.card-header-badge,
.detail-label,
.detail-value,
.threat-level {
    font-family: 'Rajdhani', sans-serif;
}

/* Navigation Bar */
.custom-navbar {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 14px 5% !important;
    z-index: 1050;
}

.logo,
.navbar-brand {
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: 4px;
    color: var(--text-main) !important;
}

.logo span,
.navbar-brand span {
    color: var(--m-red);
}

.nav-links,
.navbar-nav {
    display: flex;
    gap: 15px;
    list-style: none;
    margin-bottom: 0;
}

.nav-links a,
.navbar-nav .nav-link {
    color: var(--text-dim) !important;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: 0.3s;
    text-transform: uppercase;
    padding: 6px 12px !important;
}

.nav-links a:hover,
.nav-links a.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--m-gold) !important;
    text-shadow: 0 0 12px rgba(255, 199, 0, 0.7);
}

.navbar-toggler {
    border-color: var(--border) !important;
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 10px var(--m-red) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28226, 54, 54, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(8, 9, 12, 0.98);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 20px;
        margin-top: 12px;
        backdrop-filter: blur(25px);
    }

    .navbar-nav {
        gap: 8px;
    }
}

/* Page Grid Containers */
.db-container,
.gallery-container,
.join-form-container,
.mission-grid,
.villain-grid {
    padding: 10px 0 35px;
}

/* Section Header */
.section-header {
    margin-bottom: 25px;
    text-align: center;
    padding-top: 75px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--m-red);
    line-height: 1.05;
    text-shadow: 0 0 30px rgba(226, 54, 54, 0.4);
}

.section-header p {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 35px 5% 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    background: rgba(0, 0, 0, 0.85);
    margin-top: 45px;
}

.footer-logo {
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: 8px;
    margin-bottom: 12px;
    color: var(--m-red);
    text-shadow: 0 0 20px rgba(226, 54, 54, 0.5);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

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

.copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.creator {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--m-gold);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 199, 0, 0.4);
}

/* Home Page (index.html) */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    background: linear-gradient(180deg, rgba(8, 9, 12, 0.45) 0%, rgba(8, 9, 12, 0.55) 65%, rgba(8, 9, 12, 0.98) 100%), url('Marvel.pics/characters.jpg') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(226, 54, 54, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 14px;
    background: linear-gradient(to bottom, #ffffff 20%, #e23636 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 8px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 40px rgba(226, 54, 54, 0.6));
    animation: heroZoom 2.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

@keyframes heroZoom {
    from {
        transform: scale(1.5);
        opacity: 0;
        filter: blur(20px);
    }

    to {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.35rem);
    letter-spacing: 8px;
    color: var(--m-gold);
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 199, 0, 0.6);
    position: relative;
    z-index: 2;
}

.cta-btn {
    margin-top: 30px;
    padding: 14px 42px;
    border: 1px solid var(--m-red);
    background: rgba(226, 54, 54, 0.25);
    color: #fff;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.4s;
    display: inline-block;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.8s;
    backdrop-filter: blur(10px);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(226, 54, 54, 0.4);
    position: relative;
    z-index: 2;
}

.cta-btn:hover {
    background: var(--m-red);
    box-shadow: 0 0 40px rgba(226, 54, 54, 0.9);
    transform: scale(1.06);
    color: #fff;
}

.hero-preview {
    position: relative;
    height: 360px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.5s;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-preview:hover {
    border-color: var(--m-red);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(226, 54, 54, 0.25);
}

.hero-preview:hover img {
    transform: scale(1.06);
}

.hero-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    text-align: left;
    z-index: 2;
}

.hero-preview h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 2px;
}

.hero-preview span {
    color: var(--m-gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.fun-btn-container {
    text-align: center;
    margin-top: 30px;
}

.fun-btn {
    padding: 10px 28px;
    border: 1px solid var(--m-gold);
    background: rgba(255, 199, 0, 0.08);
    color: var(--m-gold);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.4s;
    display: inline-block;
    backdrop-filter: blur(5px);
    border-radius: 4px;
}

.fun-btn:hover {
    background: var(--m-gold);
    color: #000;
    box-shadow: 0 0 28px rgba(255, 199, 0, 0.5);
    transform: scale(1.06);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Database Page (marvel_database.html) */
.db-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px 22px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.db-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--m-red), transparent);
}

.db-card h3 {
    font-size: 1.15rem;
    margin-bottom: 18px;
    color: var(--m-gold);
}

.tech-item {
    margin-bottom: 16px;
}

.tech-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--m-red);
    width: 0;
    transition: 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--m-red);
}

.db-card.active .progress-fill {
    width: var(--percent);
}

.analysis-box {
    background: rgba(0, 210, 255, 0.04);
    border-color: rgba(0, 210, 255, 0.2);
}

.analysis-box h3 {
    color: var(--m-blue);
}

.radar-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0, 210, 255, 0.2);
    border-radius: 10px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.radar-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(0, 210, 255, 0.3);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* Assemble / Fun Page (marvel_fun.html) */
.action-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-action {
    position: absolute;
    height: 580px;
    z-index: 10;
    opacity: 0;
    transform: translateY(100%) scale(0.5);
    pointer-events: none;
}

.hero-action img {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(226, 54, 54, 0.4));
}

.hero-step {
    animation: heroEntry 12s infinite ease-in-out;
}

@keyframes heroEntry {
    0% {
        transform: translateY(100%) scale(0.5);
        opacity: 0;
    }

    5% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    25% {
        transform: translateY(0) scale(1.1);
        opacity: 1;
    }

    30% {
        transform: translateY(-100%) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translateY(-100%) scale(0.8);
        opacity: 0;
    }
}

.ironman-step {
    animation-delay: 0s;
}

.cap-step {
    animation-delay: 4s;
}

.thor-step {
    animation-delay: 8s;
}

.party-title {
    position: absolute;
    top: 50px;
    width: 100%;
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    color: var(--m-red);
    text-shadow: 0 0 25px rgba(226, 54, 54, 0.7);
    z-index: 5;
    letter-spacing: 6px;
}

.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 10px 22px;
    border: 1px solid var(--border);
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    text-transform: uppercase;
    border-radius: 4px;
}

.back-btn:hover {
    background: var(--m-red);
    color: #fff;
    box-shadow: 0 0 20px rgba(226, 54, 54, 0.5);
}

/* Heroes Page (marvel_heroes.html) */
.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.5s;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

.gallery-item:hover {
    border-color: var(--m-red);
    box-shadow: 0 10px 30px rgba(226, 54, 54, 0.25);
}

.gallery-item:hover img {
    transform: scale(1.1) translateY(-8px);
    filter: drop-shadow(0 15px 30px rgba(226, 54, 54, 0.5));
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
    opacity: 0;
    transition: 0.4s;
    text-align: center;
}

.gallery-item:hover .item-info {
    opacity: 1;
}

.item-info h3 {
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

.item-info span {
    color: var(--m-gold);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* History Page (marvel_history.html) */
.timeline {
    padding: 15px 0 40px;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 2px;
    height: calc(100% - 50px);
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 35px;
    position: relative;
    width: 50%;
    padding: 0 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--m-red);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px var(--m-red);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -7px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -7px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px 22px;
    border-radius: 12px;
    transition: 0.3s;
}

.timeline-content:hover {
    border-color: var(--m-red);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(226, 54, 54, 0.15);
}

.timeline-year {
    font-size: 1.1rem;
    color: var(--m-gold);
    margin-bottom: 4px;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 10px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 13px !important;
        right: auto !important;
    }
}

/* Recruitment Page (marvel_join.html) */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px 28px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--m-red), var(--m-gold), var(--m-red), transparent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label,
.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--m-gold);
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--border) !important;
    padding: 12px 16px;
    border-radius: 8px;
    color: #ffffff !important;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.85) !important;
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--m-red) !important;
    background: rgba(226, 54, 54, 0.08) !important;
    outline: none;
    box-shadow: 0 0 18px rgba(226, 54, 54, 0.3) !important;
    color: #ffffff !important;
}

.form-select option {
    background: #0a0812;
    color: #ffffff;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--m-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.4s;
    text-transform: uppercase;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--m-red-dark);
    box-shadow: 0 0 30px rgba(226, 54, 54, 0.7);
    transform: scale(1.01);
    color: #fff;
}

.warning-text {
    margin-top: 16px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0;
}

/* Missions Page (marvel_missions.html) */
.mission-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 22px 20px;
    border-radius: 14px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: 0.5s;
    height: 100%;
}

.mission-card:hover {
    border-color: var(--m-blue);
    transform: translateY(-5px);
    background: rgba(0, 210, 255, 0.04);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
}

.mission-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 200, 100, 0.1);
    color: #00cc66;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
}

.mission-content h3 {
    font-size: 1.15rem;
    margin: 6px 0 4px;
    color: var(--m-blue);
}

.mission-content p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
}

/* Recruitment Success Page (marvel_success.html) */
.success-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 50px 20px 30px;
    text-align: center;
}

.main-title {
    font-size: clamp(1.5rem, 4.5vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    opacity: 0;
    animation: textReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    text-shadow: 0 0 35px rgba(226, 54, 54, 0.6);
    letter-spacing: 2px;
}

.main-title span {
    display: block;
    margin-top: 4px;
    font-size: clamp(1.3rem, 4vw, 2.5rem);
    background: linear-gradient(180deg, #ffffff 20%, #ff3b3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(40px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.member-card {
    margin-top: 25px;
    width: 90%;
    max-width: 520px;
    background: rgba(12, 10, 22, 0.85);
    border: 1.5px solid var(--m-gold);
    border-radius: 16px;
    padding: 25px 22px;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 199, 0, 0.25);
    opacity: 0;
    animation: cardReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.card-header-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--m-blue);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 210, 255, 0.25);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.hero-name-display {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 900;
    color: var(--m-gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 199, 0, 0.6);
    margin-bottom: 8px;
}

.hero-details-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 8px;
    background: rgba(226, 54, 54, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(226, 54, 54, 0.2);
}

.detail-item {
    text-align: center;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.assemble-btn {
    margin-top: 22px;
    display: inline-block;
    padding: 12px 32px;
    background: var(--m-red);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    border-radius: 30px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(226, 54, 54, 0.7);
    transition: 0.4s;
    cursor: pointer !important;
}

.assemble-btn:hover {
    background: var(--m-gold);
    color: #000000 !important;
    box-shadow: 0 0 35px rgba(255, 199, 0, 0.8);
    transform: scale(1.05);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--m-red);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-120px) scale(0);
        opacity: 0;
    }
}

/* Villains Page (marvel_villains.html) */
.villain-card {
    background: rgba(204, 0, 0, 0.04);
    border: 1px solid rgba(204, 0, 0, 0.2);
    padding: 22px 18px;
    border-radius: 14px;
    text-align: center;
    transition: 0.5s;
    height: 100%;
}

.villain-card:hover {
    border-color: #cc0000;
    box-shadow: 0 0 35px rgba(204, 0, 0, 0.25);
    transform: translateY(-8px);
}

.villain-card h3 {
    font-size: 1.25rem;
    color: #cc0000;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.threat-level {
    font-weight: 700;
    font-size: 0.75rem;
    color: #ffaa00;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
}

.villain-card p {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.villain-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(204, 0, 0, 0.45));
    transition: 0.5s;
    transform: scale(1.02);
}

.villain-card:hover img {
    transform: scale(1.08) translateY(-6px);
    filter: drop-shadow(0 0 35px rgba(204, 0, 0, 0.8));
}