/* ==========================================================================
   PORTAL GAMER — YRESTRICT CENTRAL
   ========================================================================== */

:root {
    --gamer-primary: #6366f1;
    --gamer-primary-glow: rgba(99, 102, 241, 0.4);
    --gamer-secondary: #ec4899;
    --gamer-accent: #06b6d4;
    --gamer-discord: #5865F2;
    --gamer-dark-bg: #0b0d11;
    --gamer-card-bg: #13161c;
    --gamer-card-hover: #1a1e26;
    --gamer-border: rgba(255, 255, 255, 0.08);
    --gamer-border-glow: rgba(99, 102, 241, 0.3);
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.portal-hero {
    position: relative;
    padding: 70px 0 60px;
    background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
                var(--gamer-dark-bg);
    overflow: hidden;
    border-bottom: 1px solid var(--gamer-border);
}

.portal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #a5b4fc;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.hero-tag-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    margin-right: 8px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.portal-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.portal-hero-title span.highlight {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ── Botões Gamer ────────────────────────────────────────────────────────── */
.hero-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.hero-btn-group > * {
    margin: 6px 10px;
}

.btn-gamer-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 20px var(--gamer-primary-glow);
}

.btn-gamer-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
    color: #ffffff !important;
}

.btn-gamer-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: var(--gamer-discord);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}

.btn-gamer-discord:hover {
    transform: translateY(-2px);
    background: #4752c4;
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    color: #ffffff !important;
}

.btn-gamer-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0 !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-gamer-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ── Stats Strip ─────────────────────────────────────────────────────────── */
.portal-stats-bar {
    background: #0f1217;
    border-bottom: 1px solid var(--gamer-border);
    padding: 24px 0;
}

.stat-box {
    text-align: center;
    padding: 10px;
}

.stat-box-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    font-family: monospace, sans-serif;
    letter-spacing: -1px;
}

.stat-box-number span {
    color: #818cf8;
}

.stat-box-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-top: 4px;
}

/* ── Section Titles ──────────────────────────────────────────────────────── */
.portal-section-header {
    margin-bottom: 36px;
}

.portal-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #a5b4fc;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.portal-section-tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    margin-right: 4px;
    animation: pulseGlow 2s infinite;
    flex-shrink: 0;
}

.portal-section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.portal-section-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 4px;
}

/* ── Hub de Categorias (Plugins, Addons, Mapas, etc.) ────────────────────── */
.category-hub-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--gamer-card-bg);
    border: 1px solid var(--gamer-border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    height: 100%;
}

.category-hub-card:hover {
    background: var(--gamer-card-hover);
    border-color: var(--gamer-border-glow);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.category-hub-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-hub-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    transition: color 0.2s;
}

.category-hub-card:hover .category-hub-info h4 {
    color: #a5b4fc;
}

.category-hub-info p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ── Cards de Recursos / Mods ────────────────────────────────────────────── */
.resource-card {
    background: var(--gamer-card-bg);
    border: 1px solid var(--gamer-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    border-color: var(--gamer-border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.resource-card-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    overflow: hidden;
}

.resource-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.resource-card:hover .resource-card-thumb img {
    transform: scale(1.05);
}

.resource-badge-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.resource-card-title a:hover {
    color: #818cf8;
}

.resource-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Servidores Parceiros ────────────────────────────────────────────────── */
.server-partner-card {
    background: var(--gamer-card-bg);
    border: 1px solid var(--gamer-border);
    border-radius: 12px;
    padding: 22px;
    position: relative;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.server-partner-card:hover {
    border-color: var(--gamer-border-glow);
    background: var(--gamer-card-hover);
    transform: translateY(-3px);
}

.server-mode-pill {
    align-self: flex-start;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #34d399;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.server-partner-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
}

/* ── Métricas Ao Vivo do Servidor (HUD Gamer) ─────────────────── */
.server-hud-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8px;
    margin-bottom: 8px;
}

.server-hud-card {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 7px 10px;
    min-width: 0;
    transition: all 0.2s ease;
}

.server-hud-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.server-hud-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.server-hud-icon.icon-map {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.server-hud-icon.icon-players {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.server-hud-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.server-hud-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    line-height: 1.1;
    margin-bottom: 2px;
}

.server-hud-value {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.server-hud-value.text-map {
    color: #fef08a;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.server-hud-value.text-players {
    color: #e0f2fe;
}

.server-hud-value.text-players small {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.server-hud-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
}

.server-hud-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    transition: width 0.4s ease;
}

.server-status-offline {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #f87171 !important;
}

.dot-offline {
    background: #ef4444 !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.7) !important;
}

.server-ip-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.server-ip-text {
    font-family: monospace;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.btn-copy-ip {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-ip:hover {
    background: #6366f1;
    color: #ffffff;
}

.btn-connect-steam {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    color: #34d399 !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}

.btn-connect-steam:hover {
    background: #10b981;
    color: #ffffff !important;
}

/* ── Discord Community Banner ────────────────────────────────────────────── */
.discord-banner-cta {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.discord-banner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    margin-bottom: 20px;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: 50px;
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.discord-banner-badge i {
    font-size: 1rem;
    margin-right: 10px;
}

/* ── Hero Search Bar ──────────────────────────────────────────────────────── */
.hero-search-wrapper {
    max-width: 640px;
    margin: 0 auto 26px;
    position: relative;
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(19, 22, 28, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    padding: 6px 8px 6px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.12);
    transition: all 0.3s ease;
}

.hero-search-form:focus-within {
    border-color: #818cf8;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.hero-search-icon {
    color: #818cf8;
    font-size: 1.15rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    width: 100%;
}

.hero-search-input::placeholder {
    color: #64748b;
    font-size: 0.88rem;
}

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
}

.hero-search-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-search-pill-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.hero-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-search-pill:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    transform: translateY(-1px);
}

/* ── Tabs de Recursos ─────────────────────────────────────────────────────── */
.portal-tabs-nav {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.portal-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.portal-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.portal-tab-btn.active {
    color: #ffffff;
    background: #6366f1;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.portal-tab-pane {
    display: none;
}

.portal-tab-pane.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

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

/* ── Status Online Badge nos Servidores ──────────────────────────────────── */
.server-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #34d399;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.server-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.8s infinite;
}

/* ── Seção Como Instalar / Guias ─────────────────────────────────────────── */
.guide-card {
    background: var(--gamer-card-bg);
    border: 1px solid var(--gamer-border);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    opacity: 0;
    transition: opacity 0.25s;
}

.guide-card:hover {
    background: var(--gamer-card-hover);
    border-color: var(--gamer-border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.guide-card:hover::before {
    opacity: 1;
}

.guide-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.guide-card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #818cf8;
    margin-bottom: 6px;
}

.guide-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.35;
    transition: color 0.2s;
}

.guide-card:hover .guide-card-title {
    color: #a5b4fc;
}

.guide-card-desc {
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 18px;
    flex: 1;
}

.guide-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #818cf8;
    transition: gap 0.2s;
}

.guide-card:hover .guide-card-action {
    gap: 12px;
    color: #a5b4fc;
}

/* ── Botão Voltar ao Topo Flutuante ───────────────────────────────────────── */
.scroll-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(19, 22, 28, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 990;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s ease;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* ── Seção de Parceiros & Hosts ──────────────────────────────────────────── */
.partner-banner-card {
    background: var(--gamer-card-bg);
    border: 1px solid var(--gamer-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s ease;
    position: relative;
}

.partner-banner-card:hover {
    border-color: var(--gamer-border-glow);
    background: var(--gamer-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.partner-banner-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #11141b;
    overflow: hidden;
}

.partner-banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.partner-banner-card:hover .partner-banner-thumb img {
    transform: scale(1.04);
}

.partner-banner-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
    color: #818cf8;
    font-size: 2.2rem;
}

.partner-type-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.partner-banner-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.partner-banner-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}

.partner-banner-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 16px;
    flex: 1;
}

.partner-coupon-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.partner-coupon-code {
    font-family: monospace;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.5px;
}

.btn-copy-coupon {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef3c7;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-coupon:hover {
    background: #f59e0b;
    color: #000;
}

.btn-partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-partner-link:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* ── Responsividade Mobile Completa ───────────────────────────────────────── */
@media (max-width: 768px) {
    .portal-hero {
        padding: 50px 0 36px;
    }
    .portal-hero-title {
        font-size: 2.1rem;
    }
    .portal-hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    .portal-section-title {
        font-size: 1.55rem;
    }
    .portal-section-header {
        margin-bottom: 28px;
    }
    .discord-banner-cta {
        padding: 30px 20px;
    }
    .discord-banner-cta h2 {
        font-size: 1.7rem !important;
    }
}

@media (max-width: 576px) {
    .portal-hero {
        padding: 36px 0 28px;
    }
    .portal-hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    .hero-tag-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }
    .hero-search-wrapper {
        margin-bottom: 20px;
        padding: 0 4px;
    }
    .hero-search-form {
        padding: 4px 6px 4px 14px;
    }
    .hero-search-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
    .hero-search-pill-label {
        width: 100%;
        text-align: center;
        margin-bottom: 2px;
    }
    .hero-btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 16px auto 0;
        gap: 10px;
    }
    .hero-btn-group > * {
        width: 100%;
        margin: 0 !important;
        justify-content: center;
        text-align: center;
    }
    .portal-tabs-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        overflow-x: auto;
        padding: 3px;
    }
    .portal-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 7px 10px;
        font-size: 0.78rem;
    }
    .stat-box-number {
        font-size: 1.55rem;
    }
    .stat-box-label {
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    }
    .category-hub-card {
        padding: 14px;
        gap: 12px;
    }
    .category-hub-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    .category-hub-info h4 {
        font-size: 0.95rem;
    }
    .category-hub-info p {
        font-size: 0.78rem;
    }
    .resource-card-thumb {
        height: 160px;
    }
    .server-ip-box {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .server-ip-text {
        max-width: calc(100% - 95px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.8rem;
    }
    .btn-copy-ip {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.72rem;
        padding: 5px 8px;
    }
    .discord-banner-cta {
        padding: 24px 16px;
    }
    .discord-banner-cta .btn-gamer-discord {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
    .scroll-to-top-btn {
        bottom: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   PORTAL GAMER — SUPORTE AO MODO LIGHT (TEMA CLARO)
   ========================================================================== */
body:not(.dark) .portal-hero,
html[data-theme="light"] body .portal-hero {
    background: radial-gradient(circle at 50% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 65%),
                radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
                #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body:not(.dark) .portal-hero::before,
html[data-theme="light"] body .portal-hero::before {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px) !important;
}

body:not(.dark) .hero-tag-badge,
html[data-theme="light"] body .hero-tag-badge {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    color: #4f46e5 !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15) !important;
}

body:not(.dark) .portal-hero-title,
html[data-theme="light"] body .portal-hero-title {
    color: #0f172a !important;
}

body:not(.dark) .portal-hero-subtitle,
html[data-theme="light"] body .portal-hero-subtitle {
    color: #475569 !important;
}

/* 2. Barra de Busca e Tags no Modo Light */
body:not(.dark) .hero-search-form,
html[data-theme="light"] body .hero-search-form {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(99, 102, 241, 0.08) !important;
}

body:not(.dark) .hero-search-form:focus-within,
html[data-theme="light"] body .hero-search-form:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.18), 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

body:not(.dark) .hero-search-input,
html[data-theme="light"] body .hero-search-input {
    color: #0f172a !important;
}

body:not(.dark) .hero-search-input::placeholder,
html[data-theme="light"] body .hero-search-input::placeholder {
    color: #94a3b8 !important;
}

body:not(.dark) .hero-search-icon,
html[data-theme="light"] body .hero-search-icon {
    color: #6366f1 !important;
}

body:not(.dark) .hero-search-pill,
html[data-theme="light"] body .hero-search-pill {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body:not(.dark) .hero-search-pill:hover,
html[data-theme="light"] body .hero-search-pill:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: #818cf8 !important;
    color: #4f46e5 !important;
}

body:not(.dark) .btn-gamer-outline,
html[data-theme="light"] body .btn-gamer-outline {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

body:not(.dark) .btn-gamer-outline:hover,
html[data-theme="light"] body .btn-gamer-outline:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* 3. Stats Bar no Modo Light */
body:not(.dark) .portal-stats-bar,
html[data-theme="light"] body .portal-stats-bar {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

body:not(.dark) .stat-box-number,
html[data-theme="light"] body .stat-box-number {
    color: #0f172a !important;
}

body:not(.dark) .stat-box-label,
html[data-theme="light"] body .stat-box-label {
    color: #64748b !important;
}

/* 4. Fundos e Cabeçalhos das Seções no Modo Light */
body:not(.dark) .portal-section-categories,
html[data-theme="light"] body .portal-section-categories {
    background: #f8fafc !important;
}

body:not(.dark) .portal-section-resources,
html[data-theme="light"] body .portal-section-resources {
    background: #ffffff !important;
}

body:not(.dark) .portal-section-guides,
html[data-theme="light"] body .portal-section-guides {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body:not(.dark) .portal-section-servers,
html[data-theme="light"] body .portal-section-servers {
    background: #ffffff !important;
}

body:not(.dark) .portal-section-partners,
html[data-theme="light"] body .portal-section-partners {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

body:not(.dark) .portal-section-discord,
html[data-theme="light"] body .portal-section-discord {
    background: #ffffff !important;
}

body:not(.dark) .portal-section-tag,
html[data-theme="light"] body .portal-section-tag {
    background: rgba(99, 102, 241, 0.1) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 50px !important;
    padding: 6px 16px !important;
    color: #4f46e5 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
}

body:not(.dark) .portal-section-tag .dot,
html[data-theme="light"] body .portal-section-tag .dot {
    background: #10b981 !important;
    box-shadow: 0 0 8px #10b981 !important;
}

body:not(.dark) .portal-section-title,
html[data-theme="light"] body .portal-section-title {
    color: #0f172a !important;
}

body:not(.dark) .portal-section-desc,
html[data-theme="light"] body .portal-section-desc {
    color: #475569 !important;
}

/* 5. Cards de Categorias no Modo Light */
body:not(.dark) .category-hub-card,
html[data-theme="light"] body .category-hub-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body:not(.dark) .category-hub-card:hover,
html[data-theme="light"] body .category-hub-card:hover {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.12) !important;
    transform: translateY(-3px) !important;
}

body:not(.dark) .category-hub-info h4,
html[data-theme="light"] body .category-hub-info h4 {
    color: #0f172a !important;
}

body:not(.dark) .category-hub-info p,
html[data-theme="light"] body .category-hub-info p {
    color: #64748b !important;
}

/* 6. Tabs e Cards de Recursos no Modo Light */
body:not(.dark) .portal-tabs-nav,
html[data-theme="light"] body .portal-tabs-nav {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
}

body:not(.dark) .portal-tab-btn,
html[data-theme="light"] body .portal-tab-btn {
    color: #475569 !important;
}

body:not(.dark) .portal-tab-btn.active,
html[data-theme="light"] body .portal-tab-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body:not(.dark) .resource-card,
html[data-theme="light"] body .resource-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body:not(.dark) .resource-card:hover,
html[data-theme="light"] body .resource-card:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.12) !important;
    transform: translateY(-3px) !important;
}

body:not(.dark) .resource-card-title a,
html[data-theme="light"] body .resource-card-title a {
    color: #0f172a !important;
}

body:not(.dark) .resource-card-title a:hover,
html[data-theme="light"] body .resource-card-title a:hover {
    color: #4f46e5 !important;
}

body:not(.dark) .resource-card-meta,
html[data-theme="light"] body .resource-card-meta {
    border-top: 1px solid #f1f5f9 !important;
    color: #64748b !important;
}

/* 7. Cards de Tutoriais / Guias no Modo Light */
body:not(.dark) .guide-card,
html[data-theme="light"] body .guide-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body:not(.dark) .guide-card:hover,
html[data-theme="light"] body .guide-card:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.12) !important;
    transform: translateY(-3px) !important;
}

body:not(.dark) .guide-card-tag,
html[data-theme="light"] body .guide-card-tag {
    color: #4f46e5 !important;
}

body:not(.dark) .guide-card-title,
html[data-theme="light"] body .guide-card-title {
    color: #0f172a !important;
}

body:not(.dark) .guide-card-desc,
html[data-theme="light"] body .guide-card-desc {
    color: #475569 !important;
}

body:not(.dark) .guide-card-action,
html[data-theme="light"] body .guide-card-action {
    color: #4f46e5 !important;
}

/* 8. Servidores Parceiros no Modo Light */
body:not(.dark) .server-partner-card,
html[data-theme="light"] body .server-partner-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body:not(.dark) .server-partner-card:hover,
html[data-theme="light"] body .server-partner-card:hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.12) !important;
    transform: translateY(-3px) !important;
}

body:not(.dark) .server-partner-name,
html[data-theme="light"] body .server-partner-name {
    color: #0f172a !important;
}

body:not(.dark) .server-hud-card,
html[data-theme="light"] body .server-hud-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body:not(.dark) .server-hud-label,
html[data-theme="light"] body .server-hud-label {
    color: #64748b !important;
}

body:not(.dark) .server-hud-value.text-map,
html[data-theme="light"] body .server-hud-value.text-map {
    color: #b45309 !important;
}

body:not(.dark) .server-hud-value.text-players,
html[data-theme="light"] body .server-hud-value.text-players {
    color: #0284c7 !important;
}

body:not(.dark) .server-hud-value.text-players small,
html[data-theme="light"] body .server-hud-value.text-players small {
    color: #94a3b8 !important;
}

body:not(.dark) .server-hud-progress,
html[data-theme="light"] body .server-hud-progress {
    background: #e2e8f0 !important;
}

body:not(.dark) .server-ip-box,
html[data-theme="light"] body .server-ip-box {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

body:not(.dark) .server-ip-text,
html[data-theme="light"] body .server-ip-text {
    color: #0f172a !important;
}

body:not(.dark) .btn-copy-ip,
html[data-theme="light"] body .btn-copy-ip {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

body:not(.dark) .btn-copy-ip:hover,
html[data-theme="light"] body .btn-copy-ip:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
}

/* 9. Parcerias & Hosts no Modo Light */
body:not(.dark) .partner-banner-card,
html[data-theme="light"] body .partner-banner-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body:not(.dark) .partner-name,
html[data-theme="light"] body .partner-name {
    color: #0f172a !important;
}

body:not(.dark) .partner-desc,
html[data-theme="light"] body .partner-desc {
    color: #475569 !important;
}

/* 10. Discord CTA no Modo Light */
body:not(.dark) .discord-banner-cta,
html[data-theme="light"] body .discord-banner-cta {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, rgba(99, 102, 241, 0.12) 100%), #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.08) !important;
}

body:not(.dark) .portal-discord-title,
html[data-theme="light"] body .portal-discord-title {
    color: #0f172a !important;
}

body:not(.dark) .discord-banner-badge,
html[data-theme="light"] body .discord-banner-badge {
    background: rgba(88, 101, 242, 0.12) !important;
    color: #5865F2 !important;
    border: 1px solid rgba(88, 101, 242, 0.25) !important;
}