:root {
    --primary-gold: #C5A059; /* Cor Dourada da Logo (Estimada) */
    --gold-bright: #FFD700;
    --deep-blue: #020b16;    /* Cor Azul Profundo do Fundo da Logo */
    --ocean-blue: #0a192f;   /* Cor Azul Oceano Escuro */
    --glass-bg: rgba(10, 25, 47, 0.6);
    --glass-border: rgba(197, 160, 89, 0.2);
    --text-light: #e6f1ff;
    --text-muted: #8892b0;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(180deg, var(--deep-blue) 0%, var(--ocean-blue) 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphism Compacto */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Header */
header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    background: rgba(2, 11, 22, 0.8); /* Darker header */
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.logo img {
    height: 35px;
    width: auto;
    border-radius: 6px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-gold);
}

.btn-login {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-gold);
    color: var(--deep-blue);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

.support-blink {
    animation: supportBlink 1.2s infinite;
}

@keyframes supportBlink {
    0%, 100% {
        box-shadow: 0 0 0 rgba(197, 160, 89, 0);
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 18px rgba(197, 160, 89, 0.65);
        border-color: var(--primary-gold);
    }
}

/* Hero Section Compacta */
.hero {
    text-align: center;
    padding: 8rem 1rem 2rem; /* Reduced padding */
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 220px; /* Maior */
    height: 220px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 40px; /* Arredondada */
    border: 2px solid var(--primary-gold); /* Borda Dourada */
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.15), inset 0 0 20px rgba(0,0,0,0.5); /* Efeito Glow Suave */
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(197, 160, 89, 0.25);
}

h1 {
    font-size: 2.5rem; /* Menor */
    margin: 0 0 0.5rem;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 span {
    color: var(--primary-gold);
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

/* Sections Compactas */
section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 span {
    color: var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 5px;
}

/* Marquee / Clientes */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.02); /* Subtle bg strip */
}

.marquee-content {
    display: flex;
    gap: 2rem; /* Reduced gap */
    width: max-content;
    animation: marquee 20s linear infinite; /* Faster and continuous */
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.server-card {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2.5rem; /* Increased padding */
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 260px;
    transition: all 0.3s;
}

.server-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.server-card img {
    width: 50px; /* Larger logo */
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.server-card h3 {
    margin: 0;
    font-size: 1.2rem; /* Larger text */
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

/* Plans Compactos */
.plans-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: stretch; /* Same height */
}

.plan-card {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.9), rgba(5, 10, 20, 0.95));
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    transition: transform 0.3s ease;
    animation: planCardBorderPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(197, 160, 89, 0.35) 0%,
        rgba(197, 160, 89, 0.15) 40%,
        rgba(197, 160, 89, 0.05) 70%,
        transparent 100%
    );
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.6s ease-out;
    z-index: 0;
}

.plan-card:hover::before {
    transform: translate(-50%, -50%) scale(2.5);
}

.plan-card > * {
    position: relative;
    z-index: 1;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 160, 89, 0.3);
}

@keyframes planCardBorderPulse {
    0%, 100% {
        border-color: var(--primary-gold);
        box-shadow: 0 0 8px rgba(197, 160, 89, 0.3);
    }
    50% {
        border-color: #e0c070;
        box-shadow: 0 0 18px rgba(197, 160, 89, 0.6);
    }
}

.plan-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0.5rem 0 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    width: 100%;
}

.plan-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-plan {
    width: 100%;
    margin-top: auto;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-plan:hover {
    background: var(--primary-gold);
    color: var(--deep-blue);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--deep-blue);
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid var(--primary-gold);
    width: 90%;
    max-width: 430px;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-gold);
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    color: var(--primary-gold);
    margin-top: 0;
    text-align: center;
    font-size: 1.8rem;
}

.modal form label {
    color: var(--text-light);
    margin-top: 1rem;
}

.modal textarea {
    resize: vertical;
    min-height: 100px;
}

.modal form input[type="text"],
.modal form textarea,
.modal form select {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.modal form input[type="text"]:focus,
.modal form textarea:focus,
.modal form select:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

.modal form select option {
    background: var(--deep-blue);
    color: var(--primary-gold);
}

.modal form select option:checked,
.modal form select option:hover {
    background: var(--primary-gold) !important;
    color: var(--deep-blue) !important;
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: bold;
}

.status-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.status-error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        top: 6px;
        width: 96%;
        padding: 0.75rem 0.9rem;
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
    }

    .logo {
        justify-content: center;
        font-size: 1rem;
        text-align: center;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.55rem;
    }

    nav a,
    .btn-login {
        font-size: 0.8rem;
    }

    .hero {
        padding: 10.5rem 0.9rem 1.5rem;
    }

    .hero-logo {
        width: 160px;
        height: 160px;
        border-radius: 26px;
    }

    h1 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.92rem;
    }

    /* Botões da home (Ver Planos / Suporte) */
    .hero > div {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.7rem !important;
        margin-top: 1rem !important;
    }

    .hero > div .btn-login {
        text-align: center;
        padding: 0.75rem 1rem !important;
    }

    .modal-content {
        width: 84%;
        margin: 14% auto;
        padding: 1.15rem;
        border-radius: 12px;
    }

    .modal h2 {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .modal form label {
        font-size: 0.88rem;
    }

    .modal form input[type="text"],
    .modal form textarea,
    .modal form select {
        font-size: 0.92rem;
        padding: 0.8rem;
    }

    .modal textarea {
        min-height: 88px;
    }

    .close-modal {
        font-size: 24px;
    }
}

@media (max-width: 420px) {
    .hero {
        padding-top: 11.3rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    nav ul {
        gap: 0.45rem;
    }

    .btn-login {
        padding: 0.35rem 0.85rem;
        font-size: 0.76rem;
    }

    .modal-content {
        width: 86%;
        margin-top: 18%;
        padding: 0.95rem;
    }
}

/* Footer Compacto */
footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--deep-blue);
}

/* Admin Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Increased min-width */
    gap: 1.5rem; /* Increased gap */
    align-items: start; /* Prevent stretching */
}
