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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0b1726 0, #050910 55%, #020308 100%);
    color: #f5f7ff;
    min-height: 100vh;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    background: linear-gradient(90deg, rgba(4, 12, 24, 0.92), rgba(3, 25, 35, 0.92));
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: conic-gradient(from 160deg, #00d3ff, #00ff95, #ffd76f, #00d3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 22px rgba(0, 211, 255, 0.6);
}

.logo-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: #020308;
}

.logo-title {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
}

.logo-sub {
    font-size: 0.75rem;
    opacity: 0.7;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.main-nav a {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    opacity: 0.9;
}

.main-nav a:hover {
    background: rgba(0, 211, 255, 0.12);
    color: #e5fbff;
    transform: translateY(-1px);
}

.nav-highlight {
    border: 1px solid rgba(0, 211, 255, 0.6);
}

.nav-logout {
    opacity: 0.75;
}

.nav-user {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* Hero */
.hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 3.1vw, 3.2rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: linear-gradient(120deg, #ffffff, #c6f7ff, #6fffc5);
    -webkit-background-clip: text;
    color: transparent;
}

.hero .subtitle {
    max-width: 640px;
    margin: 0 auto 1.8rem;
    font-size: 0.98rem;
    opacity: 0.82;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.1s, box-shadow 0.1s, background 0.15s, color 0.15s;
}

.btn.primary {
    background: linear-gradient(135deg, #00d3ff, #00ff95);
    color: #020308;
    box-shadow: 0 10px 25px rgba(0, 211, 255, 0.25);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 211, 255, 0.36);
}

.btn.outline {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #f5f7ff;
}

.btn.outline:hover {
    background: radial-gradient(circle at top, rgba(0, 211, 255, 0.08), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.card {
    background: radial-gradient(circle at top left, rgba(0, 211, 255, 0.13), rgba(2, 5, 14, 0.95));
    border-radius: 18px;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: left;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.card h2 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.card p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Forms */
.form-card {
    max-width: 420px;
    margin: 3rem auto 2rem;
    padding: 1.8rem;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(0, 211, 255, 0.16), rgba(3, 10, 23, 0.96));
    border: 1px solid rgba(0, 211, 255, 0.28);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.8);
}

.form-card h1 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.form-card p {
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 0.9rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.86rem;
    opacity: 0.85;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(7, 14, 30, 0.9);
    color: #f5f7ff;
    font-size: 0.9rem;
}

.form-group input:focus {
    outline: none;
    border-color: #00d3ff;
    box-shadow: 0 0 0 1px rgba(0, 211, 255, 0.4);
}

/* Alerts */
.alert {
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.alert.error {
    background: rgba(255, 92, 92, 0.08);
    border: 1px solid rgba(255, 92, 92, 0.4);
    color: #ffd2d2;
}

.alert.success {
    background: rgba(0, 255, 149, 0.08);
    border: 1px solid rgba(0, 255, 149, 0.4);
    color: #c6ffe5;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    padding: 1.4rem;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(0, 211, 255, 0.15), rgba(5, 10, 22, 0.98));
    border: 1px solid rgba(0, 211, 255, 0.25);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9);
}

.dashboard-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}

.dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.82rem;
    opacity: 0.8;
    margin-bottom: 0.9rem;
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.82rem;
    background: rgba(3, 16, 34, 0.9);
    border: 1px solid rgba(0, 211, 255, 0.4);
}

.progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(8, 16, 32, 0.9);
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00d3ff, #00ff95, #ffd76f);
}

.small-muted {
    font-size: 0.78rem;
    opacity: 0.75;
}

/* Course list */
.module-list {
    list-style: none;
    margin-top: 0.6rem;
}

.module-item {
    padding: 0.6rem 0.2rem;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.module-item-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.module-item-desc {
    font-size: 0.82rem;
    opacity: 0.8;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.6rem 1.5rem 1.2rem;
    background: radial-gradient(circle at top, rgba(1, 7, 16, 0.96), rgba(1, 4, 10, 1));
    font-size: 0.82rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.3rem;
    margin-bottom: 1rem;
}

.footer-columns h4 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer-columns p,
.footer-columns li {
    opacity: 0.78;
}

.footer-columns ul {
    list-style: none;
}

.footer-columns li + li {
    margin-top: 0.15rem;
}

.footer-bottom {
    text-align: center;
    opacity: 0.65;
}

/* Responsive */
@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
