@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;1,700;1,800&display=swap');

/* ==========================================================================
   MIDBORN — DESIGN SYSTEM & 60-30-10 COLOR RULES
   60% Neutro Alabastro | 30% Safira / Abyss Navy | 10% Emperium Gold & Cyan
   ========================================================================== */

:root {
    /* ─── 60% Cor Dominante (Base Neutra & Leveza) ─── */
    --mb-bg: #f8fafc;
    --mb-surface: #ffffff;
    --mb-surface-subtle: #f1f5f9;
    --mb-border: #e2e8f0;
    --mb-border-strong: #cbd5e1;
    --mb-text-main: #0f172a;
    --mb-text-muted: #475569;
    --mb-text-subtle: #94a3b8;

    /* ─── 30% Cor Secundária (Estrutura Nobre & Contraste) ─── */
    --mb-abyss: #0f172a;
    --mb-abyss-dark: #0b132b;
    --mb-sapphire: #1e3a8a;
    --mb-sapphire-light: #2563eb;
    --mb-sapphire-glow: rgba(30, 58, 138, 0.25);

    /* ─── 10% Cor de Acento (Ação, Conversão & Brilho Celestial) ─── */
    --mb-gold: #d97706;
    --mb-gold-hover: #b45309;
    --mb-gold-light: #fef3c7;
    --mb-gold-border: #fcd34d;
    --mb-cyan: #38bdf8;
    --mb-cyan-glow: rgba(56, 189, 248, 0.4);

    /* ─── Cores Semânticas de Apoio ─── */
    --mb-green: #15803d;
    --mb-green-light: #dcfce7;
    --mb-red: #dc2626;
    --mb-red-light: #fee2e2;

    /* ─── Tipografia & Formas ─── */
    --mb-radius-sm: 6px;
    --mb-radius: 10px;
    --mb-radius-lg: 16px;
    --mb-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --mb-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --mb-shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
    --mb-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--mb-bg);
    color: var(--mb-text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   NAVBAR SUPERIOR FIXA (30% ESTRUTURAL NOBRE COM 10% ACENTO)
   ========================================================================== */

.portal-header {
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.portal-nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.portal-brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.3));
    transition: var(--mb-transition);
}

.portal-brand:hover .portal-brand-logo {
    transform: scale(1.05);
}

.portal-brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.portal-brand-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #fef08a;
    background: rgba(217, 119, 6, 0.25);
    border: 1px solid rgba(253, 211, 77, 0.4);
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portal-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.portal-nav-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
    transition: var(--mb-transition);
    padding: 6px 0;
    position: relative;
}

.portal-nav-links a:hover {
    color: #ffffff;
}

.portal-nav-links a.active {
    color: #38bdf8;
    font-weight: 700;
}

.portal-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #38bdf8;
    border-radius: 2px;
}

.portal-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav-primary {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: var(--mb-radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
    transition: var(--mb-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(253, 211, 77, 0.3);
}

.btn-nav-primary:hover {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5);
}

.btn-nav-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc !important;
    padding: 8px 14px;
    border-radius: var(--mb-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--mb-transition);
}

.btn-nav-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* ==========================================================================
   HERO SECTION ÉPICO (CELESTIAL PRE-RE FANTASY)
   ========================================================================== */

.portal-hero {
    position: relative;
    overflow: hidden;
    background-color: #0f172a;
    padding: 56px 20px 64px;
    text-align: center;
    border-bottom: 1px solid var(--mb-border);
}

.portal-hero-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.portal-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.95;
    transform: scale(1.01) translateZ(0);
    image-rendering: -webkit-optimize-contrast;
}

.portal-hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.18) 0%, rgba(248, 250, 252, 0.45) 55%, rgba(248, 250, 252, 0.92) 100%),
        radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-sound-controls {
    position: absolute;
    bottom: 20px;
    right: 24px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9999px;
    padding: 6px 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.hero-sound-controls:hover {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(15, 23, 42, 0.9);
}

.btn-hero-sound {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    user-select: none;
    transition: color 0.2s ease;
}

.btn-hero-sound:hover {
    color: #fbbf24;
}

.btn-hero-sound.active {
    color: #34d399;
}

.hero-volume-slider-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fbbf24;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
    transition: transform 0.15s ease;
}

.hero-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.hero-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fbbf24;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
}

.hero-volume-percentage {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    min-width: 30px;
    font-variant-numeric: tabular-nums;
    user-select: none;
}

.portal-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.portal-hero-logo {
    width: clamp(190px, 25vw, 280px);
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(30, 58, 138, 0.25));
    margin-bottom: 18px;
    animation: floatHeroLogo 5s ease-in-out infinite;
}

@keyframes floatHeroLogo {
    0%, 100% { transform: translateY(0px); filter: drop-shadow(0 12px 28px rgba(30, 58, 138, 0.25)); }
    50% { transform: translateY(-8px); filter: drop-shadow(0 18px 34px rgba(56, 189, 248, 0.35)); }
}

.portal-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 4.8vw, 3.7rem);
    font-weight: 800;
    color: var(--mb-abyss);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.portal-hero-title em {
    font-style: italic;
    color: var(--mb-gold);
    background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.portal-hero-subtitle {
    font-size: clamp(1rem, 1.9vw, 1.15rem);
    color: var(--mb-text-muted);
    max-width: 700px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.portal-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: var(--mb-radius);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.4);
    transition: var(--mb-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.btn-hero-gold {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: var(--mb-radius);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
    border: 1px solid rgba(253, 211, 77, 0.4);
    transition: var(--mb-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-gold:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
}

.btn-hero-secondary {
    background: #ffffff;
    border: 1px solid var(--mb-border-strong);
    color: var(--mb-abyss) !important;
    padding: 14px 24px;
    border-radius: var(--mb-radius);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: var(--mb-shadow-sm);
    transition: var(--mb-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-secondary:hover {
    background: var(--mb-surface-subtle);
    border-color: #94a3b8;
    transform: translateY(-2px);
}

/* ==========================================================================
   BARRA DE STATUS DO SERVIDOR AO VIVO (30% ESTRUTURA ABYSS NAVY)
   ========================================================================== */

.portal-server-bar {
    background: var(--mb-abyss);
    color: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portal-server-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.portal-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: statusPulse 2s infinite;
}

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

.portal-server-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.84rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.portal-server-meta strong {
    color: #f8fafc;
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (GRID 3 COLUNAS - 60% ALABASTRO & CARDS)
   ========================================================================== */

.portal-main-section {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 24px;
}

.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Caixa de Links Rápidos */
.portal-quick-links-box {
    background: var(--mb-surface);
    border: 1px solid var(--mb-border);
    border-top: 3px solid var(--mb-sapphire);
    border-radius: var(--mb-radius);
    padding: 16px;
    box-shadow: var(--mb-shadow-sm);
}

.portal-quick-links-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--mb-abyss);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-quick-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--mb-radius-sm);
    color: var(--mb-text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    transition: var(--mb-transition);
    border-bottom: 1px solid var(--mb-surface-subtle);
}

.portal-quick-link-item:last-child {
    border-bottom: none;
}

.portal-quick-link-item:hover {
    background: var(--mb-surface-subtle);
    color: var(--mb-sapphire);
    transform: translateX(3px);
}

/* Banners Promocionais */
.portal-promo-card {
    display: block;
    border-radius: var(--mb-radius);
    overflow: hidden;
    box-shadow: var(--mb-shadow-sm);
    border: 1px solid var(--mb-border);
    transition: var(--mb-transition);
}

.portal-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mb-shadow-md);
    border-color: var(--mb-cyan);
}

.portal-promo-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hub de Notícias */
.portal-news-card {
    background: var(--mb-surface);
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius);
    box-shadow: var(--mb-shadow-sm);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
}

.portal-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--mb-surface-subtle);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.portal-news-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mb-abyss);
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-news-header a {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mb-sapphire);
    transition: var(--mb-transition);
}

.portal-news-header a:hover {
    color: var(--mb-gold);
}

.portal-news-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--mb-border);
}

.portal-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.portal-news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.news-tag {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-tag.blue { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.news-tag.green { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.news-tag.gold { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

.news-date {
    font-size: 0.74rem;
    color: var(--mb-text-subtle);
}

.portal-news-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mb-abyss);
    margin-bottom: 6px;
    line-height: 1.4;
}

.portal-news-title a:hover {
    color: var(--mb-sapphire);
}

.portal-news-summary {
    font-size: 0.86rem;
    color: var(--mb-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   VITRINE DE SISTEMAS & DIFERENCIAIS EXCLUSIVOS
   ========================================================================== */

.systems-section {
    background: #ffffff;
    border-top: 1px solid var(--mb-border);
    border-bottom: 1px solid var(--mb-border);
    padding: 60px 20px;
}

.systems-container {
    max-width: 1240px;
    margin: 0 auto;
}

.section-title-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 44px;
}

.section-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--mb-gold-hover);
    background: var(--mb-gold-light);
    border: 1px solid var(--mb-gold-border);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--mb-abyss);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--mb-text-muted);
    line-height: 1.6;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.system-card {
    background: var(--mb-bg);
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius);
    padding: 28px 24px;
    box-shadow: var(--mb-shadow-sm);
    transition: var(--mb-transition);
    display: flex;
    flex-direction: column;
}

.system-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mb-shadow-md);
    border-color: var(--mb-cyan);
    background: #ffffff;
}

.system-card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: inline-block;
}

.system-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--mb-abyss);
    margin-bottom: 10px;
}

.system-card-text {
    font-size: 0.88rem;
    color: var(--mb-text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.system-card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mb-sapphire);
    transition: var(--mb-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.system-card-link:hover {
    color: var(--mb-gold);
    transform: translateX(3px);
}

/* ==========================================================================
   BARRA DE BUSCA DO DATABASE NA HOME (30% ABYSS & 10% GOLD)
   ========================================================================== */

.home-db-section {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
}

.home-db-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    border-radius: var(--mb-radius-lg);
    padding: 36px 40px;
    box-shadow: var(--mb-shadow-lg);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.home-db-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-db-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 18px;
}

.home-db-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-db-stat-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fef08a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.home-db-form {
    display: flex;
    gap: 10px;
}

.home-db-input {
    flex: 1;
    background: #ffffff;
    border: 0;
    border-radius: var(--mb-radius-sm);
    padding: 14px 18px;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.home-db-btn {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: 1px solid rgba(253, 211, 77, 0.4);
    border-radius: var(--mb-radius-sm);
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--mb-transition);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.home-db-btn:hover {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.5);
}

/* ==========================================================================
   GUIA: COMO COMEÇAR EM 3 PASSOS (60% BASE & 10% NÚMEROS DOURADOS)
   ========================================================================== */

.steps-section {
    padding: 60px 20px 80px;
}

.steps-container {
    max-width: 1240px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius);
    padding: 32px 24px;
    box-shadow: var(--mb-shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: var(--mb-transition);
}

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

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    border: 2px solid #fef3c7;
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--mb-abyss);
    margin-bottom: 8px;
}

.step-text {
    font-size: 0.88rem;
    color: var(--mb-text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
    flex: 1;
}

/* ==========================================================================
   RODAPÉ COMPLETO EM 4 COLUNAS (30% ABYSS NAVY ELEGANCE)
   ========================================================================== */

.portal-footer {
    background: var(--mb-abyss-dark);
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 20px 24px;
    margin-top: auto;
}

.portal-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.footer-brand-desc {
    font-size: 0.86rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 320px;
}

.footer-col-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: var(--mb-transition);
}

.footer-links a:hover {
    color: #38bdf8;
    transform: translateX(2px);
    display: inline-block;
}

.portal-footer-bottom {
    max-width: 1240px;
    margin: 24px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-footer-bottom strong {
    color: #94a3b8;
}

/* ==========================================================================
   RESPONSIVIDADE COMPLETA
   ========================================================================== */

@media (max-width: 1080px) {
    .portal-main-section {
        grid-template-columns: 1fr;
    }
    .portal-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .home-db-box {
        grid-template-columns: 1fr;
    }
    .portal-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .portal-nav-links {
        display: none;
    }
    .portal-hero {
        padding: 40px 16px 50px;
    }
    .portal-server-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-db-form {
        flex-direction: column;
    }
    .portal-footer-inner {
        grid-template-columns: 1fr;
    }
    .portal-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
