*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2e3eb6;
    --primary-light: #c6c9fd;
    --primary-dark: #4856c5;
    --secondary: #12c293;
    --secondary-light: #d6faf3;
    --bg: #e9e9e9;
    --card: #ffffff;
    --border: #e5e9f2;
    --text-head: #364a63;
    --text-body: #2e3c53;
    --text-muted: #425570;
    --shadow-sm: 0 2px 8px rgba(31, 43, 77, 0.06);
    --shadow-card: 0 4px 24px rgba(31, 43, 77, 0.1);
    --radius: 12px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Nunito", sans-serif;
    background: var(--bg);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("/images/TLU FACADE.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ── Top Nav ── */
.nk-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nk-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-head);
    letter-spacing: -0.3px;
}

.brand-text span {
    color: var(--primary);
}

.nk-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-head);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Page Wrapper ── */
.nk-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

/* ── Page Logo ── */
.page-logo {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeDown 0.45s ease both;
    padding: 0 16px;
}

.page-logo img {
    height: clamp(52px, 29vw, 62px);
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* ── Page Header ── */
.page-hero {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeDown 0.5s ease both;
}

.page-hero .badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.page-hero h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-head);
    line-height: 1.25;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Cards Grid ── */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 680px;
}

/* ── Selection Card ── */
.sel-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
    text-align: center;
    animation: fadeUp 0.5s ease both;
    text-decoration: none;
    display: block;
}

.sel-card:nth-child(1) {
    animation-delay: 0.1s;
}

.sel-card:nth-child(2) {
    animation-delay: 0.22s;
}

.sel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--accent-a) 0%,
        var(--accent-b) 100%
    );
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: calc(var(--radius) - 2px);
}

.sel-card:hover::before,
.sel-card.active::before {
    opacity: 1;
}

.sel-card--primary {
    --accent-a: #6576ff;
    --accent-b: #8e9bff;
}

.sel-card--secondary {
    --accent-a: #1ee0ac;
    --accent-b: #0cc8a0;
}

.sel-card:hover,
.sel-card.active {
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(101, 118, 255, 0.22);
    transform: translateY(-4px);
}

.sel-card--secondary:hover,
.sel-card--secondary.active {
    box-shadow: 0 8px 32px rgba(30, 224, 172, 0.25);
}

/* Everything inside card sits above the gradient */
.sel-card > * {
    position: relative;
    z-index: 1;
}

.sel-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
    transition:
        background var(--transition),
        color var(--transition);
}

.sel-card--primary .sel-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.sel-card--secondary .sel-icon {
    background: var(--secondary-light);
    color: var(--secondary);
}

.sel-card:hover .sel-icon,
.sel-card.active .sel-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-head);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.sel-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    transition: color var(--transition);
}

.sel-card:hover .sel-title,
.sel-card.active .sel-title {
    color: #fff;
}

.sel-card:hover .sel-desc,
.sel-card.active .sel-desc {
    color: rgba(255, 255, 255, 0.85);
}

.sel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(101, 118, 255, 0.1);
    color: var(--primary);
    margin-top: 22px;
    font-size: 14px;
    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.sel-card--secondary .sel-arrow {
    background: rgba(30, 224, 172, 0.12);
    color: var(--secondary);
}

.sel-card:hover .sel-arrow,
.sel-card.active .sel-arrow {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateX(4px);
}

/* ── Footer note ── */
.page-note {
    margin-top: 32px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    animation: fadeUp 0.5s 0.35s ease both;
}

.page-note a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.page-note a:hover {
    text-decoration: underline;
}

/* ── Breadcrumb ── */
.nk-block-head {
    width: 100%;
    max-width: 680px;
    margin-bottom: 6px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    animation: fadeDown 0.4s ease both;
}

.breadcrumb li + li::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
    color: var(--border);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .active {
    color: var(--primary);
    font-weight: 700;
}

/* ── Keyframes ── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .selection-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .nk-header {
        padding: 0 16px;
    }
}
