/* HackhubYT | Kircho — 2026 redesign */

:root {
    --bg: #07090e;
    --bg-dark: #07090e;
    --bg-elev: #0e131c;
    --bg-elev-2: #141b27;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f3f6fb;
    --muted: #b0bbc9;
    --accent: #00d2ff;
    --accent-2: #3a7bd5;
    --accent-soft: rgba(0, 210, 255, 0.14);
    --green: #4ade80;
    --blurple: #8b9cff;
    --gold: #ffcc00;
    --danger: #ff4d4d;
    --nav-h: 84px;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--accent);
    color: #061018;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    background: var(--accent);
    color: #061018;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    z-index: 10000;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.bg-mesh,
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-mesh {
    background:
        radial-gradient(900px 520px at 85% -8%, rgba(0, 210, 255, 0.16), transparent 55%),
        radial-gradient(700px 480px at -10% 90%, rgba(58, 123, 213, 0.14), transparent 55%),
        radial-gradient(500px 380px at 50% 40%, rgba(0, 210, 255, 0.04), transparent 60%);
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at 50% 20%, black 15%, transparent 72%);
    opacity: 0.7;
}

main,
.navbar,
.main-footer {
    position: relative;
    z-index: 1;
}

/* NAV — logo + buttons preserved */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 9, 14, 0.78);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
    z-index: 9999;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.navbar.scrolled {
    background: rgba(7, 9, 14, 0.94);
    border-bottom-color: var(--line-strong);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

main {
    min-height: 100vh;
}

.logo {
    font-family: "Syne", "IBM Plex Sans", sans-serif;
    font-weight: 800;
    font-size: 1.28rem;
    text-decoration: none;
    letter-spacing: -0.4px;
    background: linear-gradient(90deg, #ffffff 20%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-item {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.active {
    color: var(--text);
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: scaleX(1);
}

.nav-admin {
    text-decoration: none;
    color: #fff;
    background: #e11d2e;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    padding: 9px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(225, 29, 46, 0.28);
    transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}

.nav-admin:hover,
.nav-admin:focus-visible {
    background: #ff2b3d;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(225, 29, 46, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10005;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    transition: 0.3s var(--ease);
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* LAYOUT */

.container {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
}

.hero,
.content-section {
    padding: 120px 0 80px;
}

.hero {
    min-height: auto;
    display: flex;
    align-items: flex-end;
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 36px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 960px;
    margin: 0 auto;
}

.kicker {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-soft);
    animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
    50% { box-shadow: 0 0 0 8px rgba(0, 210, 255, 0.04); }
}

h1 {
    font-family: "Syne", "IBM Plex Sans", sans-serif;
    font-size: clamp(3rem, 8.5vw, 6rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
    text-shadow: 0 0 48px rgba(0, 210, 255, 0.12);
}

.hero-accent {
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--accent), #9be7ff 45%, #ffffff 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-rule {
    display: block;
    width: 92px;
    height: 2px;
    margin: 6px 0 26px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.hero-lead {
    font-size: clamp(1.12rem, 2vw, 1.4rem);
    color: var(--muted);
    max-width: 48rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-lead span {
    color: var(--text);
    font-weight: 700;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 56px;
}

.hero-meta span {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 999px;
}

.scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    text-decoration: none;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.scroll-hint:hover {
    color: var(--accent);
}

/* SECTIONS */

.section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 48px;
}

.section-index {
    font-family: "Syne", "IBM Plex Sans", sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 210, 255, 0.45);
}

h2 {
    font-family: "Syne", "IBM Plex Sans", sans-serif;
    font-size: clamp(1.9rem, 4.4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 22px;
    align-items: stretch;
}

.about-card,
.skills-panel,
.project-card,
.featured-card {
    background: linear-gradient(180deg, rgba(20, 27, 39, 0.9), rgba(14, 19, 28, 0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-card {
    padding: 42px 44px;
}

.about-hello {
    font-family: "Syne", "IBM Plex Sans", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.about-card p {
    color: #d5dce8;
    font-size: 1.08rem;
}

.skills-panel {
    padding: 32px 28px;
}

.panel-label {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.project-grid,
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.specialties {
    padding-top: 24px;
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.card-list li {
    color: #d7deea;
    font-size: 0.98rem;
    padding-left: 16px;
    position: relative;
}

.card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

.project-card {
    padding: 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    opacity: 0.9;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: inherit;
}

.card-tag {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.project-card h3,
.featured-card h3 {
    font-family: "Syne", "IBM Plex Sans", sans-serif;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.project-card p {
    color: #d7deea;
    font-size: 0.98rem;
}

.project-card strong,
.about-card strong,
.featured-note strong {
    color: #fff;
    font-weight: 700;
}

.net-card {
    background: linear-gradient(160deg, #05070c 0%, #061e3d 100%);
}

.net-card::before { background: #00d2ff; }
.net-card h3,
.net-card .card-icon,
.net-card .card-list { color: #00d2ff; }
.net-card .card-list li { color: #d7deea; }

.code-card {
    background: linear-gradient(160deg, #0b0714 0%, #2a1a55 115%);
}

.code-card::before { background: #b794ff; }
.code-card h3,
.code-card .card-icon { color: #c4b5fd; }

.web-card {
    background: linear-gradient(160deg, #061014 0%, #0b3a3a 100%);
}

.web-card::before { background: #2ee6c7; }
.web-card h3,
.web-card .card-icon { color: #5eead4; }

.game-card {
    background: linear-gradient(160deg, #071209 0%, #163516 100%);
}

.game-card::before { background: #2ecc71; }
.game-card h3,
.game-card .card-icon { color: #4ade80; }

.tailsx-card {
    background: linear-gradient(160deg, #05070c 0%, #061e3d 100%);
}

.tailsx-card::before { background: #00d2ff; }
.tailsx-card h3,
.tailsx-card .card-icon { color: #00d2ff; }

.minecraft-card {
    background: linear-gradient(160deg, #071209 0%, #163516 100%);
}

.minecraft-card::before { background: #2ecc71; }
.minecraft-card h3,
.minecraft-card .card-icon { color: #4ade80; }

.discord-card {
    background: linear-gradient(160deg, #12131a 0%, #3b4498 115%);
}

.discord-card::before { background: #ffffff; }
.discord-card h3,
.discord-card .card-icon { color: #ffffff; }

.featured-note {
    color: var(--muted);
    margin: -16px 0 28px;
    font-size: 1.05rem;
}

.featured-card {
    position: relative;
    overflow: hidden;
    padding: 48px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    min-height: 320px;
    background: linear-gradient(145deg, #050505 0%, #3a0000 100%);
    border-left: 6px solid var(--gold);
}

.featured-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255, 204, 0, 0.18), transparent 65%);
    pointer-events: none;
}

.featured-card h3 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--gold);
    margin-bottom: 28px;
}

.spec-list {
    list-style: none;
    display: grid;
    gap: 14px;
    max-width: 420px;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
}

.spec-list span {
    color: #c9c3b4;
}

.spec-list strong {
    color: var(--danger);
    font-weight: 700;
}

.featured-mark {
    display: grid;
    place-items: center;
    justify-self: end;
}

.featured-mark span {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Syne", "IBM Plex Sans", sans-serif;
    font-size: 5.4rem;
    font-weight: 800;
    color: #111;
    background: radial-gradient(circle at 35% 30%, #2a2a2a, #000);
    border: 10px solid #111;
    box-shadow:
        inset 0 0 0 8px #f2c200,
        0 20px 40px rgba(0, 0, 0, 0.45);
}

.main-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0 48px;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    flex-wrap: wrap;
}

.main-footer p {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    animation: rise 0.8s var(--ease) forwards;
}

.project-grid .reveal:nth-child(2),
.specialty-grid .reveal:nth-child(2) { animation-delay: 0.1s; }
.project-grid .reveal:nth-child(3),
.specialty-grid .reveal:nth-child(3) { animation-delay: 0.2s; }
.specialty-grid .reveal:nth-child(4) { animation-delay: 0.3s; }

.specialty-grid .project-card {
    min-height: 260px;
}

.cyber-card {
    max-width: 100%;
}

.cyber-card p {
    font-size: 1.12rem;
    color: #d5dce8;
}

.current-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.current-card {
    width: min(100%, calc((100% - 20px) / 2));
}

.current-card .history-body {
    mask-image: none;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    flex: 1;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

.history-card {
    --glow: 0;
    position: relative;
    padding: 32px 34px 28px;
    min-height: 280px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #0a0d14;
    overflow: hidden;
    cursor: default;
    display: flex;
    flex-direction: column;
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.history-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #161b26;
    opacity: var(--glow);
    pointer-events: none;
    transition: opacity 0.2s linear;
}

.history-card h3,
.history-card p,
.history-body,
.extend-btn {
    position: relative;
    z-index: 1;
}

.history-card h3 {
    font-family: "Syne", "IBM Plex Sans", sans-serif;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.history-body {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.history-body p + p {
    margin-top: 10px;
}

.history-card.open .history-body {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.history-card:not(.open) .history-body {
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.extend-btn {
    align-self: flex-start;
    margin-top: 18px;
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.extend-btn:hover,
.history-card.open .extend-btn {
    border-color: var(--accent);
    color: var(--accent);
}

.history-card p {
    color: var(--muted);
    font-size: 1.02rem;
}

.history-card:hover {
    border-color: rgba(0, 210, 255, 0.22);
    transform: translateY(-4px);
}

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

    .current-card {
        width: 100%;
    }
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .about-layout,
    .project-grid,
    .specialty-grid,
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-mark {
        justify-self: start;
        margin-top: 8px;
    }

    .featured-mark span {
        width: 120px;
        height: 120px;
        font-size: 3.4rem;
        border-width: 8px;
    }
}

@media (max-width: 1100px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        width: 100%;
        background: rgba(7, 9, 14, 0.97);
        flex-direction: column;
        padding: 28px 20px 36px;
        gap: 8px;
        border-bottom: 1px solid var(--line);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 14px 0;
        font-size: 1.05rem;
    }

    .nav-admin {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 18px;
    }

    .about-card,
    .featured-card {
        padding: 28px 22px;
    }

    .hero,
    .content-section {
        padding: 96px 0 64px;
    }
}

@media (max-width: 480px) {
    :root { --nav-h: 74px; }

    h1 { font-size: 2.7rem; }
    .hero-meta span { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { animation: none; opacity: 1; transform: none; }
    .status-dot, .scroll-hint circle { animation: none; }
}

/* Admin leftovers kept compatible */

.admin-sidebar {
    width: 80px;
    background: #060910;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    z-index: 1000;
}

.admin-main {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 60px;
}

.sidebar-logo {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--accent);
    text-decoration: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nav-icon {
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0.6;
}

.nav-icon:hover { opacity: 1; }

.btn-primary {
    background: var(--accent);
    color: #0a0f1a;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.admin-form label {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
}

.admin-form textarea {
    min-height: 160px;
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-note {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

#admin-save-msg {
    min-height: 1.4em;
    font-weight: 600;
}

.login-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 48px) 20px 60px;
    position: relative;
    z-index: 1;
}

.login-card {
    width: min(440px, 100%);
    padding: 40px 36px 32px;
    background: linear-gradient(180deg, rgba(20, 27, 39, 0.9), rgba(14, 19, 28, 0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-card h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 8px;
}

.login-lead {
    color: var(--muted);
    margin-bottom: 28px;
}

.login-card .btn-primary {
    width: 100%;
    margin-top: 8px;
}

.login-back {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.login-back:hover {
    color: var(--accent);
}

.admin-page {
    position: relative;
    z-index: 1;
    padding: calc(var(--nav-h) + 48px) 0 80px;
    min-height: 100vh;
}

.admin-grid {
    display: grid;
    gap: 20px;
    max-width: 720px;
}

.admin-grid h3 {
    font-family: "Syne", "IBM Plex Sans", sans-serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.admin-grid .extend-btn {
    display: inline-block;
    text-decoration: none;
}

.admin-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

/* Blocked attempts (admin) */
.blocked-row {
    align-items: flex-start;
    flex-wrap: wrap;
}

.blocked-ip {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.blocked-meta {
    display: inline-block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
    word-break: break-all;
}

.blocked-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.blocked-when {
    margin-top: 0;
    white-space: nowrap;
}
