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

:root {
    --bg-1: #0d47a1;
    --bg-2: #1565c0;
    --bg-3: #1976d2;
    --panel: rgba(255, 255, 255, 0.12);
    --text-main: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.82);
    --accent: #ffca28;
}

body {
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(1200px 520px at 8% -10%, rgba(255, 202, 40, 0.25), transparent 65%),
        radial-gradient(1000px 460px at 92% 10%, rgba(48, 63, 159, 0.28), transparent 68%),
        linear-gradient(160deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
}

.nav-logo {
    font-family: 'Fredoka One', cursive;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.35rem;
}

.nav-logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    padding: 9px 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-link-active {
    border-color: rgba(255, 202, 40, 0.7);
    color: #ffe082;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 18px 34px;
}

.hero {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Fredoka One', cursive;
    color: #ffe082;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hero-face {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 202, 40, 0.7);
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.95);
}

.hero p {
    color: var(--text-soft);
    line-height: 1.5;
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 14px;
}

.card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 18px;
}

.content-card h2 {
    font-family: 'Fredoka One', cursive;
    color: #ffe082;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.open-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.pill {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.24);
}

.content-card ul {
    margin-left: 18px;
    margin-top: 6px;
    display: grid;
    gap: 5px;
}

.hint {
    color: #ffecb3;
    margin-top: 12px;
    font-weight: 700;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.tab {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 10px;
    font-weight: 800;
    cursor: pointer;
}

.tab.active {
    background: rgba(255, 202, 40, 0.28);
    border-color: rgba(255, 202, 40, 0.7);
}

.form {
    display: none;
    gap: 10px;
}

.form.active {
    display: grid;
}

label {
    display: grid;
    gap: 5px;
    font-weight: 700;
    font-size: 0.95rem;
}

input,
select {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
    padding: 11px;
    font: inherit;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

select option {
    color: #111;
}

.inline-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 11px 14px;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary {
    background: #ffca28;
    color: #222;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.auth-message {
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 10px;
    font-weight: 700;
    font-size: 0.92rem;
}

.auth-message.ok {
    background: rgba(76, 175, 80, 0.25);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.auth-message.error {
    background: rgba(244, 67, 54, 0.25);
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.session-box {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}

.session-box h3 {
    margin-bottom: 8px;
    color: #ffe082;
}

#session-user {
    margin-bottom: 10px;
}

@media (max-width: 860px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.65rem;
    }
}

@media (max-width: 640px) {
    .top-nav {
        padding: 12px 14px;
    }

    .nav-logo {
        font-size: 1.15rem;
    }

    .nav-link span {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }
}
