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

:root {
    --bg-color: #5d6b7c; /* Slate blue-gray background matching AgerSoft portals */
    --card-bg: rgba(15, 23, 42, 0.48); /* Dark semi-transparent glass */
    --card-border: rgba(255, 255, 255, 0.1);
    --card-border-hover: rgba(245, 221, 125, 0.55);
    --text-color: #F9FAFB;
    --text-muted: #E5E7EB;
    --gold-primary: #F5DD7D;
    --gold-hover: #E0C865;
    --gold-glow: rgba(245, 221, 125, 0.18);
    --font-sans: 'Inter', sans-serif;
    --font-brand: 'Outfit', sans-serif;
    
    /* Module specific colors */
    --color-jornales: #3B82F6;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Glowing Radial Orbs */
.glow-bg-1 {
    position: absolute;
    top: -150px;
    left: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(245, 221, 125, 0.06) 0%, rgba(245, 221, 125, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.glow-bg-2 {
    position: absolute;
    bottom: 50px;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.watermark-bg {
    display: none;
}

/* Main Layout Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

/* Header Area */
header {
    text-align: center;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-area-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
}

.header-logo-icon {
    height: 115px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.18));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo-icon:hover {
    transform: scale(1.06) rotate(5deg);
}

.header-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    transition: transform 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.03);
}

.hero-text h2 {
    font-family: var(--font-brand);
    font-size: 0.9rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 600;
}

.hero-text h1 {
    font-family: var(--font-brand);
    font-size: 2.1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
    line-height: 1.2;
    background: linear-gradient(135deg, #FFFFFF 0%, #E5E7EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 580px;
    margin: 0 auto 18px auto;
    line-height: 1.5;
}

.support-area {
    display: flex;
    justify-content: center;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.support-link i {
    width: 14px;
    height: 14px;
    color: var(--gold-primary);
}

.support-link:hover {
    background: transparent;
    color: var(--gold-primary);
    transform: translateY(-1px);
}

/* System Section & Centered Card Layout */
.system-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 35px 0;
}

.system-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 480px;
}

.system-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 35px 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.system-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(90deg, var(--color-jornales), #60A5FA);
}

.system-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 25px var(--gold-glow);
}

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

.card-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.system-card:hover .card-glow-effect {
    opacity: 1;
}

.card-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-icon-wrapper i {
    width: 24px;
    height: 24px;
}

.system-card:hover .card-icon-wrapper {
    transform: scale(1.1) translateY(-2px);
}

.system-card h3 {
    font-family: var(--font-brand);
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.module-code {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--gold-primary);
    text-transform: uppercase;
    background: rgba(245, 221, 125, 0.06);
    padding: 3px 8px;
    border-radius: 5px;
    margin-bottom: 14px;
    border: 1px solid rgba(245, 221, 125, 0.1);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Enter Buttons */
.enter-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 20px;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enter-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.system-card:hover .enter-btn {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #0A0D14;
    box-shadow: 0 4px 12px rgba(245, 221, 125, 0.25);
}

.system-card:hover .enter-btn i {
    transform: translateX(4px);
}

/* Floating WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}

/* Offline Toast Alert */
.offline-toast {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #EF4444;
    border-radius: 12px;
    padding: 12px 20px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    z-index: 1000;
    transform: translateY(150px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.offline-toast.visible {
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    width: 18px;
    height: 18px;
}

/* Footer section */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-area-minimal {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .header-logo-icon {
        height: 80px;
    }
    
    .header-logo-img {
        height: 32px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 25px 15px;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .logo-area-minimal {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 18px;
    }
    
    .header-logo-icon {
        height: 65px;
    }
    
    .header-logo-img {
        height: 24px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-text h2 {
        font-size: 0.8rem;
    }
    
    .tagline {
        font-size: 0.88rem;
        margin-bottom: 14px;
    }
}
