/* =================================
   MEDIEVAL THEME - STRIFE OVER DRAGON
   ================================= */

:root {
    /* Color Palette - Medieval Theme */
    --primary-gold: #D4AF37;
    --dark-gold: #B8941F;
    --light-gold: #F4E4B8;
    --deep-brown: #2C1810;
    --dark-brown: #3E2723;
    --medium-brown: #5D4037;
    --parchment: #F4E8D8;
    --dark-parchment: #E8D5B7;
    --blood-red: #8B0000;
    --steel-gray: #6B7280;
    --stone-gray: #4B5563;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.5);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography */
    --font-primary: 'Cinzel', serif;
    --font-secondary: 'Libre Baskerville', serif;
}

/* =================================
   RESET & BASE
   ================================= */

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

body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, #1a1410 0%, #2C1810 50%, #1a1410 100%);
    color: var(--parchment);
    line-height: 1.6;
    min-height: 100vh;
    background-attachment: fixed;
}

/* Parchment texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

/* =================================
   HEADER
   ================================= */

.medieval-header {
    background: linear-gradient(180deg, var(--deep-brown) 0%, var(--dark-brown) 100%);
    border-bottom: 4px solid var(--primary-gold);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo h1 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 0.25rem;
}

.subtitle {
    font-size: 0.875rem;
    color: var(--light-gold);
    font-style: italic;
}

.main-nav {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-link {
    padding: 0.5rem 1rem;
    background: var(--medium-brown);
    color: var(--light-gold);
    text-decoration: none;
    border: 2px solid var(--dark-gold);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.nav-link:hover {
    background: var(--dark-gold);
    color: var(--deep-brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =================================
   MAIN CONTENT
   ================================= */

.main-content {
    padding: var(--spacing-xl) 0;
}

/* Event Info Section */
.event-info {
    margin-bottom: var(--spacing-xl);
}

.info-card {
    background: linear-gradient(135deg, var(--medium-brown) 0%, var(--dark-brown) 100%);
    border: 3px solid var(--primary-gold);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.info-card h2 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.info-item {
    background: rgba(0,0,0,0.3);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--primary-gold);
}

.info-item h3 {
    font-family: var(--font-primary);
    color: var(--light-gold);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.info-item p {
    line-height: 1.8;
    color: var(--parchment);
}

/* Tool Selection Cards */
.tool-selection-cards {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.tool-card {
    background: linear-gradient(135deg, var(--medium-brown) 0%, var(--dark-brown) 100%);
    border: 3px solid var(--steel-gray);
    border-radius: 12px;
    padding: var(--spacing-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent);
    pointer-events: none;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.tool-card.active {
    border-color: var(--primary-gold);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* F2P Card — inactive: dark, same as premium */
.f2p-card {
    background: linear-gradient(135deg, #3D2F1F 0%, #1F1710 100%);
    border-color: #6B5544;
}

.f2p-card:hover {
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

/* F2P Card — active: golden */
.f2p-card.active {
    background: linear-gradient(135deg, #D4AF37 0%, #B8930A 100%);
    border-color: var(--primary-gold);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.f2p-card.active .tool-card-title {
    color: #3D2817;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.f2p-card.active .tool-card-desc {
    color: #3D2817;
    font-weight: 600;
}

.f2p-card.active .feature-item {
    color: #3D2817;
    font-weight: 600;
}

/* Premium Card — inactive: dark */
.premium-card {
    background: linear-gradient(135deg, #3D2F1F 0%, #1F1710 100%);
    border-color: #6B5544;
    position: relative;
}

.premium-card:hover {
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
}

.premium-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        #FFD700, #FFA500, #FFD700, #FFA500, #FFD700, #FFA500
    );
    background-size: 400% 400%;
    animation: premium-glow 3s ease infinite;
    border-radius: 12px;
    z-index: -1;
    opacity: 0.6;
}

.premium-card:hover::after {
    opacity: 0.9;
}

/* Premium Card — active: golden */
.premium-card.active {
    background: linear-gradient(135deg, #D4AF37 0%, #B8930A 100%);
    border-color: #FFD700;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.premium-card.active .tool-card-title {
    color: #3D2817 !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.premium-card.active .tool-card-desc {
    color: rgba(0, 0, 0, 0.7) !important;
    font-weight: 600;
}

.premium-card.active .feature-item {
    color: rgba(0, 0, 0, 0.8) !important;
    font-weight: 600;
}

@keyframes premium-glow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Tool Card Badge */
.tool-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    margin-bottom: var(--spacing-md);
}

.f2p-card .tool-card-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--deep-brown);
}

.premium-card .tool-card-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--deep-brown);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: pulse-gold 2s infinite;
}

.badge-icon {
    font-size: 1.25rem;
}

/* Tool Card Content */
.tool-card-title {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.premium-card .tool-card-title {
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.tool-card-desc {
    color: var(--dark-parchment);
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
}

.f2p-card:not(.active) .tool-card-desc {
    color: #C0A080;
}

.premium-card .tool-card-desc {
    color: #C0A080;
}

/* Tool Card Features */
.tool-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--parchment);
    font-size: 0.9rem;
}

.f2p-card:not(.active) .feature-item {
    color: #B8986F;
}

.premium-card .feature-item {
    color: #B8986F;
}

/* Tool Tabs */
.tool-tabs {
    margin-bottom: var(--spacing-lg);
}

.tabs-header {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.tab-btn {
    flex: 1;
    max-width: 400px;
    padding: var(--spacing-md);
    background: var(--dark-brown);
    border: 3px solid var(--steel-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:not(:disabled):hover {
    border-color: var(--primary-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--dark-gold) 0%, var(--primary-gold) 100%);
    border-color: var(--primary-gold);
    color: var(--deep-brown);
    box-shadow: var(--glow-gold);
}

.tab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-icon {
    font-size: 2rem;
}

.tab-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.tab-desc {
    font-size: 0.875rem;
    opacity: 0.9;
}

.tab-btn.active .tab-icon,
.tab-btn.active .tab-title,
.tab-btn.active .tab-desc {
    color: var(--deep-brown);
}

/* Tool Content */
.tool-content {
    display: none;
}

.tool-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =================================
   REMOVE COMBO TITLE (DESKTOP)
   ================================= */
/* Esconder título do combo (CHARLES/RAMSES/CAESAR) */
    .combo-title,
    .combo-title-only {
        display: none !important;
    }

/* Tool Steps */
.tool-step {
    background: linear-gradient(135deg, var(--medium-brown) 0%, var(--dark-brown) 100%);
    border: 3px solid var(--primary-gold);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

/* Premium Badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--deep-brown);
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    }
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.step-header h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-gold);
    color: var(--deep-brown);
    border-radius: 50%;
    font-weight: bold;
}

.step-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.selected-count {
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    font-size: 0.875rem;
}

.selected-count strong {
    color: var(--primary-gold);
}

/* Action Buttons */
.action-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-gold);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--dark-gold) 0%, var(--primary-gold) 100%);
    color: var(--deep-brown);
    font-weight: 600;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
}

.action-btn.secondary {
    background: var(--dark-brown);
    color: var(--light-gold);
}

.action-btn.secondary:hover {
    background: var(--medium-brown);
    border-color: var(--light-gold);
}

/* Hero Filters */
.hero-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--light-gold);
    font-weight: 600;
}

.search-input,
.filter-select {
    padding: 0.75rem;
    background: var(--dark-brown);
    border: 2px solid var(--steel-gray);
    border-radius: 6px;
    color: var(--parchment);
    font-family: var(--font-secondary);
    transition: border-color 0.3s ease;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-gold);
}

/* Heroes Grid */
.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    width: 100%;
}

/* Media query para desktop - garantir que não interfira no mobile */
@media (min-width: 769px) {
    .heroes-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    }
}

/* Hero Card */
.hero-card {
    background: var(--dark-brown);
    border: 3px solid var(--steel-gray);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;  /* Mudado para visible */
    z-index: 1;
}

/* Hero card com dropdown aberto fica acima de tudo */
.hero-card:has(.skin-dropdown-menu.show) {
    z-index: 100000;
}

/* Fallback para navegadores que não suportam :has() */
.hero-card.dropdown-open {
    z-index: 100000;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--dark-gold);
}

.hero-card.selected {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, var(--dark-gold) 0%, var(--medium-brown) 100%);
    box-shadow: var(--glow-gold);
}

.hero-card.selected::after {
    content: '✓';
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--primary-gold);
    color: var(--deep-brown);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    z-index: 10;
}

.hero-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: var(--stone-gray);
}

.hero-name {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--light-gold);
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-type {
    font-size: 0.75rem;
    color: var(--dark-parchment);
    text-align: center;
    margin-top: 0.25rem;
}

/* Hero Card Image Container */
.hero-card-image-container {
    position: relative;
    width: 100%;
}

/* Skin Button Container */
.skin-button-container {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    z-index: 100;
}

/* Quando dropdown está aberto, aumenta z-index */
.skin-button-container:has(.skin-dropdown-menu.show) {
    z-index: 100001;
}

/* Fallback - quando pai tem classe dropdown-open */
.hero-card.dropdown-open .skin-button-container {
    z-index: 100001;
}

.skin-toggle-icon {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.skin-toggle-icon:hover {
    transform: scale(1.1);
}

.skin-base-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skin-overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* Skin Dropdown Menu */
.skin-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 280px;
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--medium-brown) 100%);
    border: 3px solid var(--primary-gold);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    z-index: 99999;  /* ACIMA DE TUDO! */
    display: none;
    max-height: 280px;
    overflow: hidden;
}

.skin-dropdown-menu.show {
    display: flex;
    flex-direction: column;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.skin-dropdown-header {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--primary-gold);
    padding: 0.75rem;
    text-align: center;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.skin-dropdown-options {
    overflow-y: auto;
    max-height: 220px;
}

.skin-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.skin-option:last-child {
    border-bottom: none;
}

.skin-option:hover {
    background: rgba(212, 175, 55, 0.2);
}

.skin-option.active {
    background: rgba(212, 175, 55, 0.3);
    border-left: 4px solid var(--primary-gold);
}

.skin-option-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--steel-gray);
    flex-shrink: 0;
}

.skin-option.active .skin-option-img {
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.skin-option-name {
    font-size: 0.875rem;
    color: var(--parchment);
    font-weight: 600;
    flex: 1;
}

.skin-check {
    font-size: 1.25rem;
    color: var(--primary-gold);
    font-weight: bold;
}

/* Scrollbar para dropdown */
.skin-dropdown-options::-webkit-scrollbar {
    width: 8px;
}

.skin-dropdown-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.skin-dropdown-options::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

.skin-dropdown-options::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
}

/* Boss Selection */
.boss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    width: 100%;
}

/* Media query para desktop - garantir que não interfira no mobile */
@media (min-width: 769px) {
    .boss-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
}

.boss-card {
    background: var(--dark-brown);
    border: 3px solid var(--blood-red);
    border-radius: 8px;
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.boss-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-gold);
}

.boss-card.selected {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--dark-brown) 100%);
    box-shadow: var(--glow-gold);
}

.boss-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 0.75rem;
    border-radius: 8px;
    background: var(--stone-gray);
    object-fit: cover;
}

.boss-name {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: var(--primary-gold);
    font-weight: 600;
}

/* Combos Result */
.combos-result {
    min-height: 300px;
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--dark-parchment);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.empty-state h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.combo-card {
    background: var(--dark-brown);
    border: 3px solid var(--primary-gold);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

/* Título simplificado (sem match badge) */
.combo-title-only {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

/* Layout horizontal para combos */
.combo-formation-horizontal {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.formation-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 120px;
}

.formation-position-label {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.combo-formation {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.formation-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.formation-label {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--light-gold);
    min-width: 60px;
    font-weight: 600;
}

.formation-heroes {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.formation-hero {
    text-align: center;
    padding: 0.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 3px solid var(--steel-gray);
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formation-hero:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.formation-hero.available {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.formation-hero.unavailable {
    opacity: 0.6;
    border-color: var(--blood-red);
}

.formation-hero-img {
    width: 100%;
    height: 100%;
    max-width: 70px;
    max-height: 70px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--stone-gray);
    display: block;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.formation-hero.available .formation-hero-img {
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.formation-hero.unavailable .formation-hero-img {
    border-color: var(--blood-red);
    filter: grayscale(50%);
}

/* Herói bloqueado (pago) */
.formation-hero-blocked {
    width: 100%;
    height: 100%;
    max-width: 70px;
    max-height: 70px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    position: relative;
}

.blocked-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #666;
}

.blocked-icon {
    font-size: 1.5rem;
}

.blocked-text {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}

.hero-unavailable-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--blood-red);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: var(--shadow-md);
}

/* Responsive para combos */
@media (max-width: 768px) {
    /* Mantém combo HORIZONTAL no mobile */
    .combo-formation-horizontal {
        flex-direction: row;  /* Mantém horizontal! */
        gap: var(--spacing-sm);
        justify-content: center;
    }
    
    .formation-position {
        max-width: 90px;
    }
    
    .formation-hero-img,
    .formation-hero-blocked {
        max-width: 60px;
        max-height: 60px;
    }
    
    /* Diminui fonte dos nomes dos heróis */
    .hero-name {
        font-size: 0.65rem;  /* Menor no mobile */
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-type {
        font-size: 0.6rem;
    }
    
    /* Labels das posições menores */
    .formation-position-label {
        font-size: 0.7rem;
    }
}

.combo-stats {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--steel-gray);
    text-align: center;
}

.match-percentage {
    font-size: 1.25rem;
    color: var(--primary-gold);
    font-weight: bold;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--dark-brown);
    border: 3px solid var(--primary-gold);
    border-radius: 12px;
}

.coming-soon-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
}

.coming-soon h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-md);
}

.coming-soon p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.coming-soon ul {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.coming-soon li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

.step-footer {
    margin-top: var(--spacing-md);
    text-align: center;
}

/* Footer */
.medieval-footer {
    background: var(--deep-brown);
    border-top: 4px solid var(--primary-gold);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--dark-parchment);
    margin: 0.25rem 0;
}

.footer-content a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--light-gold);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--dark-gold) 0%, var(--primary-gold) 100%);
    color: var(--deep-brown);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-primary);
    font-weight: 600;
    transform: translateX(400px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .main-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        text-align: center;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .heroes-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .combos-grid {
        grid-template-columns: 1fr;
    }
    
    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--deep-brown);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gold);
}

/* ============================================ */
/* VIP UPGRADE MODAL */
/* ============================================ */

.vip-upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.vip-modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--medium-brown) 100%);
    border: 4px solid var(--primary-gold);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vip-modal-header {
    background: linear-gradient(135deg, var(--dark-gold) 0%, var(--primary-gold) 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vip-modal-header h2 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    color: var(--deep-brown);
    margin: 0;
    font-weight: 700;
}

.vip-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--deep-brown);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.vip-modal-close:hover {
    transform: scale(1.2);
}

.vip-modal-body {
    padding: 2rem;
}

.vip-modal-body p {
    font-size: 1rem;
    color: var(--parchment);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.vip-modal-body strong {
    color: var(--primary-gold);
    font-weight: 700;
}

.vip-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.vip-modal-body li {
    font-size: 1rem;
    color: var(--parchment);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.vip-modal-body li:last-child {
    border-bottom: none;
}

.vip-modal-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.vip-upgrade-btn {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--deep-brown);
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--light-gold) 100%);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.vip-upgrade-btn:hover {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--primary-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.vip-cancel-btn {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--parchment);
    background: transparent;
    border: 2px solid var(--steel-gray);
    border-radius: 8px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vip-cancel-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

@media (max-width: 768px) {
    .vip-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .vip-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .vip-modal-body {
        padding: 1.5rem;
    }
    
    .vip-modal-footer {
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .vip-upgrade-btn,
    .vip-cancel-btn {
        width: 100%;
        text-align: center;
    }
}
/* ============================================
   MOBILE ADJUSTMENTS - Strife Over Dragon
   Add these styles to the END of your styles.css
   ============================================ */

/* Global overflow control */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    * {
        box-sizing: border-box !important;
    }
}

/* ========================================
   1. HEADER - Remover Fixed Position
   ======================================== */

.medieval-header {
    position: relative !important;  /* Remove fixed */
    top: auto !important;
    z-index: auto !important;
}

/* Remover padding-top do body que compensa header fixo */
body {
    padding-top: 0 !important;
}

.main-content {
    padding-top: 20px !important;
}

/* ========================================
   2. TOOL CARDS - Lado a Lado (Mobile)
   ======================================== */

@media (max-width: 768px) {
    .cards-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;  /* 2 colunas */
        gap: 12px !important;
        padding: 0 8px !important;
    }
    
    .tool-card {
        padding: 16px 12px !important;
        min-height: auto !important;
    }
    
    .tool-card-title {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .tool-card-desc {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .tool-card-badge {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    .tool-card-features {
        gap: 6px !important;
    }
    
    .feature-item {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
}

/* ========================================
   3. HERO GRID - 3 Heróis por Linha
   ======================================== */

@media (max-width: 768px) {
    .heroes-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;  /* 3 colunas */
        gap: 8px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    
    .hero-card {
        padding: 8px 6px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        border-width: 2px !important;  /* Reduzir borda */
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Hero card com dropdown aberto fica acima de tudo */
    .hero-card:has(.skin-dropdown-menu.show),
    .hero-card.dropdown-open {
        z-index: 100000 !important;
    }
    
    .hero-image,
    .hero-card-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        display: block !important;
    }
    
    .hero-name,
    .hero-card-name {
        font-size: 10px !important;
        margin-top: 4px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        padding: 0 2px !important;
    }
    
    .hero-type,
    .hero-card-type {
        font-size: 8px !important;
        padding: 2px 4px !important;
        text-align: center !important;
    }
    
    .hero-card-rarity {
        width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
    }
    
    /* Skin Dropdown - Mobile Adjustments */
    .skin-dropdown-menu {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        min-width: 200px !important;
        max-width: calc(100vw - 20px) !important;
        margin: 0 auto !important;
    }
    
    .skin-dropdown-menu.show {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    .skin-button-container {
        position: absolute !important;
        top: 50% !important;
        right: -8px !important;
        transform: translateY(-50%) !important;
    }
    
    .skin-toggle-icon {
        width: 32px !important;
        height: 32px !important;
    }
    
    .skin-dropdown-options {
        max-height: 200px !important;
    }
    
    .skin-option {
        padding: 10px !important;
        gap: 8px !important;
    }
    
    .skin-option-img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .skin-option-name {
        font-size: 12px !important;
    }
    
    .skin-dropdown-header {
        font-size: 12px !important;
        padding: 10px !important;
    }
}

/* ========================================
   4. BOSS GRID - 3 Bosses por Linha
   ======================================== */

@media (max-width: 768px) {
    .boss-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;  /* 3 colunas */
        gap: 8px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    .boss-card {
        padding: 10px 6px !important;
        border-radius: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        border-width: 2px !important;
    }
    
    .boss-image,
    .boss-card-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .boss-name,
    .boss-card-name {
        font-size: 10px !important;
        margin-top: 6px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        padding: 0 2px !important;
    }
    
    .boss-card-hp {
        font-size: 9px !important;
        margin-top: 4px !important;
    }
    
    .boss-card-badge {
        font-size: 8px !important;
        padding: 3px 6px !important;
    }
}

/* ========================================
   AJUSTES GERAIS MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Container principal */
    .container {
        padding: 0 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Main content */
    .main-content {
        width: 100% !important;
        padding: 20px 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Sections */
    section {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Hero selection section */
    .hero-selection,
    .hero-selection-section,
    #heroSelection {
        width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Tool sections */
    .tool-section {
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Event Info Grid */
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 0 !important;
    }
    
    .info-card {
        padding: 12px !important;
        margin: 0 !important;
    }
    
    .info-item {
        padding: 10px !important;
        margin: 0 !important;
    }
    
    .info-item h3 {
        font-size: 13px !important;
    }
    
    .info-item p {
        font-size: 11px !important;
    }
    
    /* Filters */
    .filters {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px 6px !important;
    }
    
    .filter-group {
        width: 100% !important;
        margin: 0 !important;
    }
    
    select {
        width: 100% !important;
        font-size: 13px !important;
        padding: 10px !important;
    }
    
    /* Buttons */
    button {
        font-size: 13px !important;
        padding: 10px 16px !important;
    }
}

/* ========================================
   EXTRA: Melhorar Espaçamento Mobile
   ======================================== */

@media (max-width: 768px) {
    section {
        margin-bottom: 20px !important;
    }
    
    .event-info {
        margin-bottom: 16px !important;
    }
    
    .tool-selection-cards {
        margin-bottom: 16px !important;
    }
    
    /* Header ajustes */
    .medieval-header {
        padding: 12px 0 !important;
    }
    
    .header-content {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
    
    .logo h1 {
        font-size: 20px !important;
    }
    
    .subtitle {
        font-size: 12px !important;
    }
    
    .main-nav {
        flex-direction: row !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    .nav-link {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}

/* ========================================
   BREAKPOINT MENOR (Small Phones)
   ======================================== */

@media (max-width: 375px) {
    /* Hero grid - 3 colunas ainda mais compacto */
    .heroes-grid {
        gap: 6px !important;
        padding: 0 !important;
    }
    
    .hero-card {
        padding: 6px 4px !important;
        border-width: 2px !important;
    }
    
    .hero-name,
    .hero-card-name {
        font-size: 9px !important;
    }
    
    /* Boss grid - 3 colunas mais compactas */
    .boss-grid {
        gap: 6px !important;
        padding: 0 !important;
    }
    
    .boss-card {
        padding: 8px 4px !important;
        border-width: 2px !important;
    }
    
    .boss-name,
    .boss-card-name {
        font-size: 9px !important;
    }
    
    /* Cards mais compactos */
    .tool-card {
        padding: 10px 6px !important;
    }
    
    .tool-card-title {
        font-size: 13px !important;
    }
    
    .feature-item {
        font-size: 9px !important;
    }
    
    /* Container ainda mais compacto */
    .container {
        padding: 0 4px !important;
    }
    
    /* Skin Dropdown - Telas Pequenas */
    .skin-dropdown-menu {
        min-width: 180px !important;
        max-width: calc(100vw - 16px) !important;
    }
    
    .skin-option {
        padding: 8px !important;
        gap: 6px !important;
    }
    
    .skin-option-img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .skin-option-name {
        font-size: 11px !important;
    }
    
    .skin-toggle-icon {
        width: 28px !important;
        height: 28px !important;
    }
}

/* ========================================
   GRID TOGGLE BUTTONS (+/-)
   ======================================== */

.grid-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    border: 2px solid #8B6F47;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.grid-toggle-title {
    font-size: 1rem;
    font-weight: 600;
    color: #F4E8D8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grid-toggle-btn {
    background: rgba(139, 111, 71, 0.3);
    border: 2px solid #8B6F47;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.grid-toggle-btn:hover {
    background: rgba(184, 149, 106, 0.5);
    border-color: #FFD700;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.grid-toggle-btn:active {
    transform: scale(0.95);
}

/* ========================================
   HEADER WITH IMAGES
   ======================================== */

.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.nav-link {
    display: flex;
    align-items: center;
}

/* ========================================
   FOOTER
   ======================================== */

.medieval-footer {
    background: linear-gradient(135deg, #1a0f08 0%, #2c1810 100%);
    border-top: 3px solid #8B6F47;
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
}

.medieval-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.footer-text {
    text-align: center;
    max-width: 800px;
}

.footer-text p {
    color: #B8956A;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.footer-text strong {
    color: #FFD700;
    font-weight: 600;
}

.footer-text .copyright {
    color: #8B6F47;
    font-size: 0.85rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .grid-toggle-header {
        padding: 0.5rem 0.75rem;
    }
    
    .grid-toggle-title {
        font-size: 0.9rem;
    }
    
    .grid-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .footer-logo-img {
        width: 80px;
    }
    
    .footer-text p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .grid-toggle-header {
        padding: 0.5rem;
    }
    
    .grid-toggle-title {
        font-size: 0.8rem;
    }
    
    .grid-toggle-btn {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }
}

/* ========================================
   CORREÇÕES MOBILE - TOGGLE E COMBOS
   ======================================== */

/* Garantir que toggle funcione nos grids de heróis no mobile */
@media (max-width: 768px) {
    .heroes-grid[style*="display: none"],
    .heroes-grid[style*="display:none"] {
        display: none !important;
    }
    
    .combos-result[style*="display: none"],
    .combos-result[style*="display:none"] {
        display: none !important;
    }
}

/* Ajustar combos para não sair da tela no mobile */
@media (max-width: 768px) {
    .combo-card {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .combo-formation-horizontal {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    .formation-position {
        width: 100% !important;
        max-width: 200px !important;
    }
    
    .formation-hero {
        width: 100% !important;
    }
    
    .formation-hero-img {
        width: 100% !important;
        height: auto !important;
        max-width: 120px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Centralizar grid de combos */
    .combos-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        padding: 1rem 0.5rem !important;
    }
}

/* Mobile pequeno (< 480px) */
@media (max-width: 480px) {
    .combo-formation-horizontal {
        gap: 0.5rem !important;
    }
    
    .formation-position {
        max-width: 150px !important;
    }
    
    .formation-hero-img {
        max-width: 100px !important;
    }
    
    .combo-title-only {
        font-size: 0.85rem !important;
        padding: 0.5rem !important;
    }
}


/* Classe para esconder grids (usada pela função toggle) */
.grid-hidden {
    display: none !important;
}

/* ============================================================
   PATCH CSS - COMBOS ULTRA-COMPACTOS MOBILE
   
   INSTRUÇÕES:
   1. Abra seu styles.css
   2. COLE este código NO FINAL do arquivo
   3. Salve
   
   Isso vai sobrescrever o CSS problemático e criar o layout
   ultra-compacto que você pediu.
   ============================================================ */

/* SOBRESCREVER: Combos mobile - layout correto */
@media (max-width: 768px) {
    /* ===== ESCONDER TEXTOS (apenas imagens) ===== */
    
    /* Esconder título do combo (CHARLES/RAMSES/CAESAR) */
    .combo-title,
    .combo-title-only {
        display: none !important;
    }
    
    /* Esconder labels de posição (FRONT/MID/BACK) */
    .position-label {
        display: none !important;
    }
    
    /* Esconder nomes dos heróis */
    .formation-hero-name,
    .hero-name-text {
        display: none !important;
    }
    
    /* ===== LAYOUT 2 COLUNAS ===== */
    
    /* Grid de combos com 1 colunas */
    .combos-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
        /* Sobrescreve flex-direction: column anterior */
    }
    
    /* ===== COMBO ULTRA-COMPACTO ===== */
    
    /* Card do combo */
    .combo-card {
        padding: 0.25rem !important;
        margin: 0 !important;
        max-width: 100% !important;
        border-width: 1px !important;
    }
    
    /* Formation HORIZONTAL (FRONT/MID/BACK lado a lado) */
    .combo-formation-horizontal {
        display: flex !important;
        flex-direction: row !important;  /* ← HORIZONTAL! Sobrescreve column */
        align-items: center !important;
        justify-content: space-evenly !important;
        gap: 0.25rem !important;
        padding: 0.25rem !important;
        width: 100% !important;
    }
    
    /* Posições iguais (33% cada) */
    .formation-position {
        flex: 1 !important;
        max-width: 33% !important;
        min-width: 0 !important;
        padding: 0 !important;
        width: auto !important;  /* Sobrescreve 100% anterior */
    }
    
    /* Container do herói */
    .formation-hero {
        width: 100% !important;
    }
    
    /* Imagens pequenas (70px) */
    .formation-hero-img {
        width: 100% !important;
        height: auto !important;
        max-width: 70px !important;  /* Menor que os 120px anteriores */
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Container de resultados */
    .combos-result {
        padding: 0.25rem !important;
    }
}

/* SOBRESCREVER: Mobile muito pequeno */
@media (max-width: 400px) {
    /* 1 coluna em telas muito pequenas */
    .combos-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Imagens um pouco maiores quando 1 coluna */
    .formation-hero-img {
        max-width: 80px !important;
    }
    
    /* Gap maior entre as imagens */
    .combo-formation-horizontal {
        gap: 0.5rem !important;
        padding: 0.5rem !important;
    }
}
/* =================================
   ADS CENTER FIX
   ================================= */

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ad-container .adsbygoogle {
    display: block;
    margin: 0 auto !important;
    width: 100%;
    max-width: 728px;
}
.vip-hide {
    display: none !important;
}

/* Inline ad entre grupos de combos (FORA do grid) */
.inline-combo-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 12px 0;
    padding: 4px 0;
    border-top: 1px solid rgba(217, 179, 90, 0.15);
    border-bottom: 1px solid rgba(217, 179, 90, 0.15);
}

/* O ins precisa de largura definida para o AdSense renderizar corretamente */
.inline-combo-ad ins.adsbygoogle {
    display: block;
    width: 100%;
    max-width: 728px;
}

/* Esconde o espaço quando AdSense não preenche o slot */
.inline-combo-ad.ad-empty {
    display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    .ad-container .adsbygoogle {
        max-width: 100%;
    }
}



/* ============================================================
   SISTEMA DE TESTES DE COMBOS
   ============================================================ */

.test-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.test-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.test-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1410 0%, #0f0c09 100%);
    border: 2px solid #d9b35a;
    border-radius: 16px;
    max-width: 1200px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(217, 179, 90, 0.4);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.test-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(217, 179, 90, 0.2);
    border: 2px solid #d9b35a;
    border-radius: 50%;
    color: #d9b35a;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.test-modal-close:hover {
    background: rgba(217, 179, 90, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.test-modal-header {
    padding: 40px 32px 24px;
    border-bottom: 1px solid rgba(217, 179, 90, 0.3);
    text-align: center;
}

.test-modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #d9b35a;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.test-boss-name {
    font-size: 1.2rem;
    color: #c4b8a0;
    font-weight: 500;
}

.test-modal-body {
    padding: 32px;
}

.test-images-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.test-image-section {
    background: rgba(25, 21, 17, 0.6);
    border: 1px solid rgba(217, 179, 90, 0.3);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.test-image-section:hover {
    border-color: #d9b35a;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(217, 179, 90, 0.3);
}

.test-image-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #d9b35a;
    margin-bottom: 20px;
    text-align: center;
}

.test-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(217, 179, 90, 0.3);
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.test-image:hover {
    border-color: #d9b35a;
    box-shadow: 0 4px 20px rgba(217, 179, 90, 0.4);
    transform: scale(1.02);
}

.test-image-caption {
    text-align: center;
    color: #c4b8a0;
    font-size: 0.95rem;
    margin-top: 16px;
    font-style: italic;
}

/* Botão Ver Testes */
.combo-test-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-top: 16px;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    border: 2px solid #a855f7;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.combo-test-btn:hover {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(147, 51, 234, 0.5);
}

.combo-test-btn:active {
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .test-modal-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .test-modal-header {
        padding: 32px 20px 20px;
    }
    
    .test-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .test-boss-name {
        font-size: 1rem;
    }
    
    .test-modal-body {
        padding: 20px;
    }
    
    .test-images-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .test-image-section {
        padding: 16px;
    }
    
    .test-image-section h3 {
        font-size: 1.1rem;
    }
    
    .test-modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 12px;
        right: 12px;
    }
    
    .combo-test-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Botão de Teste Bloqueado (VIP) */
.combo-test-btn-locked {
    background: linear-gradient(135deg, #555 0%, #333 100%) !important;
    border-color: #666 !important;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.combo-test-btn-locked:hover {
    background: linear-gradient(135deg, #666 0%, #444 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5) !important;
    opacity: 0.85;
}

.combo-test-btn-locked:active {
    transform: translateY(0);
}

/* Efeito de brilho no hover do botão bloqueado */
.combo-test-btn-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(217, 179, 90, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.combo-test-btn-locked:hover::before {
    opacity: 1;
}
