:root {
    --bg: #08111f;
    --panel: rgba(12, 25, 45, 0.76);
    --panel-strong: rgba(15, 35, 63, 0.92);
    --line: rgba(140, 255, 218, 0.18);
    --text: #e8fff8;
    --muted: #9ab6ad;
    --accent: #32f5b3;
    --accent-2: #54a7ff;
    --danger: #ff5d7a;
    --warning: #ffcc66;
    --shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(50, 245, 179, 0.16), transparent 32rem),
        radial-gradient(circle at 80% 20%, rgba(84, 167, 255, 0.14), transparent 30rem),
        linear-gradient(135deg, #08111f 0%, #0b1729 42%, #050914 100%);
    overflow-x: hidden;
}

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

button,
input {
    font: inherit;
}

.bg-orb {
    position: fixed;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.bg-orb-one {
    left: -8rem;
    bottom: 4rem;
    background: var(--accent);
}

.bg-orb-two {
    right: -10rem;
    top: 8rem;
    background: var(--accent-2);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(7, 16, 30, 0.62);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    color: #04110c;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #b9ffe8);
    box-shadow: 0 0 28px rgba(50, 245, 179, 0.35);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a,
.ghost-link,
.button-link,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a {
    padding: 10px 14px;
    color: var(--muted);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.nav-links a:hover,
.ghost-link:hover,
.button-link:hover,
button:hover {
    transform: translateY(-1px);
    border-color: rgba(50, 245, 179, 0.52);
}

.glass-panel {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: stretch;
}

.hero-card,
.side-card,
.list-panel,
.report-card,
.result-card {
    padding: clamp(22px, 4vw, 36px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    max-width: 760px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

h1 span {
    color: var(--accent);
}

h2 {
    margin-bottom: 0;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.04em;
}

.hero-copy {
    max-width: 660px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.absen-form,
.report-form {
    margin-top: 28px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #c7ded7;
    font-size: 14px;
    font-weight: 700;
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(194, 255, 236, 0.16);
    border-radius: 18px;
    padding: 0 16px;
    color: var(--text);
    background: rgba(2, 10, 20, 0.62);
    outline: none;
}

input:focus {
    border-color: rgba(50, 245, 179, 0.68);
    box-shadow: 0 0 0 4px rgba(50, 245, 179, 0.1);
}

button,
.button-link {
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    color: #04110c;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #b8ffe9);
    cursor: pointer;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.stats-row div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.stats-row strong,
.stats-row small {
    display: block;
}

.stats-row strong {
    font-size: 24px;
}

.stats-row small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.side-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.community-art {
    width: 100%;
    max-height: 270px;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.hint-box,
.rule-box,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    background: rgba(3, 12, 24, 0.44);
}

.hint-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 24px;
}

.hint-box p,
.empty-state p {
    margin-bottom: 0;
    color: #cce7df;
    line-height: 1.55;
}

.status-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 8px rgba(50, 245, 179, 0.11), 0 0 22px rgba(50, 245, 179, 0.6);
}

.list-panel {
    margin-top: 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.ghost-link {
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.attendance-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.attendance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid rgba(194, 255, 236, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.028);
}

.attendance-item.latest {
    border-color: rgba(50, 245, 179, 0.5);
    background: rgba(50, 245, 179, 0.06);
}

.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #04110c;
    font-size: 13px;
    font-weight: 900;
    background: var(--accent);
}

.name-value {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.attendance-item small {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.empty-state small,
.rule-box,
.muted {
    color: var(--muted);
}

.center-layout {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 160px);
}

.report-card,
.result-card {
    width: min(680px, 100%);
}

.report-form {
    display: grid;
    gap: 12px;
}

.report-form button {
    width: max-content;
}

.rule-box {
    margin-top: 22px;
}

.rule-box strong,
.rule-box code {
    display: block;
}

.rule-box code {
    width: max-content;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.28);
}

.result-card.success {
    border-color: rgba(50, 245, 179, 0.38);
}

.result-card.error {
    border-color: rgba(255, 93, 122, 0.45);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.blocked-page {
    background: #f3f4f6;
    color: #111827;
}

.blocked-wrap {
    width: min(860px, calc(100% - 36px));
    margin: 44px auto;
}

.blocked-card {
    padding: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.blocked-badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #7f1d1d;
    font-size: 12px;
    font-weight: 800;
    background: #fee2e2;
}

.blocked-card h1 {
    margin-bottom: 10px;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.blocked-card p {
    line-height: 1.55;
}

.blocked-card code {
    padding: 2px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.blocked-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.blocked-pills div {
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #374151;
    font-size: 13px;
    background: #f9fafb;
}

@media (max-width: 840px) {
    .hero-grid,
    .input-row,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .topbar,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
    }

    .nav-links a {
        flex: 1;
    }

    button,
    .report-form button {
        width: 100%;
    }
}
