/* Version 1.8 - Professional SaaS Alignment */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background: #020205 !important; 
    color: #fff; 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER FIX: No More Overlapping */
.main-header {
    height: 65px;
    background: rgba(5, 5, 8, 0.98);
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px; /* Reduced for mobile breathability */
}

.header-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo { font-family: 'Cinzel'; font-size: 1.1rem; color: #00f3ff; font-weight: bold; }
.profile-icon { width: 30px; height: 30px; border-radius: 50%; background: #00f3ff; color: #000; display: flex; align-items: center; justify-content: center; border: 1px solid #00f3ff; flex-shrink: 0; }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-menu { display: flex; gap: 8px; }
.nav-menu a { color: #fff; text-decoration: none; font-size: 9px; font-weight: 800; letter-spacing: 0.5px; opacity: 0.8; }

.mode-toggle { background: none; border: 1px solid #00f3ff; color: #00f3ff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; flex-shrink: 0; font-size: 12px; }

/* GRID & CARDS (Stable 3D) */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 10px;
    max-width: 1000px;
    margin: 0 auto;
    flex: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 10px;
    animation: float 4s ease-in-out infinite;
    aspect-ratio: 1/1; /* Makes cards square */
}

.card h3 { color: #fff; font-size: 0.7rem; text-transform: uppercase; text-align: center; }

/* DESKTOP VIEW */
@media (min-width: 768px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .nav-menu a { font-size: 12px; gap: 20px; }
    .logo { font-size: 1.4rem; }
    .header-container { padding: 0 30px; }
}
