html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/**********************************/
:root {
    --bg: #05060a;
    --bg-alt: #0b0d14;
    --surface: #111320;
    --surface-soft: #171a2b;
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.16);
    --accent-bright: #7c3aed;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: #1f2335;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --nav-height: 68px;
    --max-width: 1120px;
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.24s ease-out;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: linear-gradient(to bottom, rgba(5, 6, 10, 0.98), rgba(5, 6, 10, 0.92));
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}


.navbar__logo-image {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    
}
.navbar__logo-mark {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: radial-gradient(circle at 30% 0, var(--accent-bright), var(--accent));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.55);
}

.navbar__logo-text {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.navbar__link {
    position: relative;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.2rem 0;
    transition: color var(--transition-fast);
}

    .navbar__link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -0.2rem;
        width: 0;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(to right, var(--accent), var(--accent-bright));
        transition: width var(--transition-fast);
    }

    .navbar__link:hover {
        color: var(--text-main);
    }

        .navbar__link:hover::after {
            width: 100%;
        }

/* LAYOUT SECTIONS */

.section {
    padding: 3.5rem 1.5rem 3.75rem;
}

.section--hero {
    padding-top: 3rem;
}

.section--alt {
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 60%), radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 60%);
}

.section__header {
    max-width: var(--max-width);
    margin: 0 auto 1.8rem;
}

.section__title {
    font-size: 1.6rem;
    margin: 0 0 0.25rem;
}

.section__subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* HERO */

.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 2.2rem;
    align-items: center;
}

.hero__content {
    max-width: 580px;
}

.hero__title {
    font-size: clamp(2.3rem, 4vw, 2.8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.hero__subtitle {
    margin: 0 0 1.6rem;
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.7rem;
}

.hero__note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero__panel {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-med), border-color var(--transition-med), color var(--transition-med), transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: white;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55);
}

    .btn--primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 40px rgba(79, 70, 229, 0.7);
    }

.btn--ghost {
    background: rgba(15, 23, 42, 0.65);
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.4);
}

    .btn--ghost:hover {
        background: rgba(15, 23, 42, 0.95);
    }

/* HERO CARDS */

.hero-card {
    background: radial-gradient(circle at top left, var(--accent-soft), var(--surface));
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-card--secondary {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.hero-card__title {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
}

.hero-card__subtitle {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.hero-card__text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .hero-card__list li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.9rem;
        color: #e5e7eb;
        padding: 0.2rem 0;
    }

/* DOTS */

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}

.dot--green {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

.dot--yellow {
    background: #eab308;
    box-shadow: 0 0 0 6px rgba(234, 179, 8, 0.25);
}

/* GRID / CARDS */

.grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.card__title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
}

.card__meta {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card__body {
    margin: 0;
    font-size: 0.9rem;
    color: #e5e7eb;
    line-height: 1.6;
}

/* DEVLOG */

.devlog {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 1.1rem;
}

.devlog-entry {
    background: rgba(15, 23, 42, 0.85);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.devlog-entry__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.devlog-entry__meta {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.devlog-entry__body {
    margin: 0;
    font-size: 0.9rem;
    color: #e5e7eb;
    line-height: 1.6;
}

/* FOOTER */

.footer {
    padding: 1.4rem 1.5rem 1.6rem;
    border-top: 1px solid rgba(15, 23, 42, 0.8);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6));
    margin-top: auto;
}

.footer__text {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* AUTH PAGES */

.auth {
    max-width: 420px;
    margin: 0 auto;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.auth-card__header {
    margin-bottom: 1rem;
}

.auth-card__title {
    margin: 0 0 0.3rem;
    font-size: 1.3rem;
}

.auth-card__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-tabs {
    display: inline-flex;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.8);
    padding: 0.15rem;
    margin-bottom: 1.1rem;
}

.auth-tab {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.auth-tab--active {
    background: var(--accent-soft);
    color: var(--text-main);
}

.input-group {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.input-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-field {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    padding: 0.45rem 0.6rem;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

    .input-field:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.6);
        background: rgba(15, 23, 42, 0.95);
    }

.input-error {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #f97373;
}

.auth-submit {
    width: 100%;
    margin-top: 0.4rem;
}

/* ACCOUNT PAGE */

.account {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.account__left,
.account__right {
    padding: 1.2rem 1.3rem;
}

.account__avatar-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.8rem 0 1rem;

}

.account__avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.8);
}

.account__avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
}

.account__nickname {
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
}

.account__rank {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.account__stats {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.account__stat {
    display: flex;
    flex-direction: column;
}

.account__stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account__stat-value {
    font-size: 1.1rem;
}

.account__message {
    margin-top: 0.7rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}



















/* RESPONSIVE */

@media (max-width: 820px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.8rem;
    }

    .navbar {
        padding: 0 1.1rem;
    }

    .section {
        padding-inline: 1.1rem;
    }

    .account {
        grid-template-columns: minmax(0, 1fr);
    }
}
