* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #f5f8ff;
    color: #111827;
}

a {
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: auto;
}

.navbar {
    padding: 22px 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
}

.logo span {
    color: #2563eb;
}

.nav-links a {
    margin-left: 12px;
    color: #374151;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
}

.btn-dark {
    background: #111827;
    color: #ffffff;
}

.btn-light {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.hero {
    padding: 80px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

h1 {
    font-size: 54px;
    line-height: 1.05;
    margin: 18px 0;
}

.hero p {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2ff;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 30px 0 60px;
}

.module-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eef2ff;
    font-size: 24px;
    margin-bottom: 14px;
}

.module-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.module-card p {
    margin: 0 0 16px;
    color: #6b7280;
    line-height: 1.5;
}

.status-active {
    color: #16a34a;
    font-weight: 800;
}

.status-locked {
    color: #dc2626;
    font-weight: 800;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.login-box {
    width: min(440px, 100%);
    background: #ffffff;
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    margin: 8px 0 16px;
    font-size: 15px;
}

.sidebar-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #111827;
    color: #ffffff;
    padding: 24px;
}

.sidebar .brand {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    color: #d1d5db;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 6px;
    font-weight: 700;
}

.sidebar a.active,
.sidebar a:hover {
    background: #2563eb;
    color: #ffffff;
}

.main {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.small-muted {
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 850px) {
    .hero-grid,
    .module-grid,
    .dashboard-grid,
    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 38px;
    }

    .sidebar {
        min-height: auto;
    }
}