:root {
    --bg: #07111f;
    --bg-soft: #0d1b2e;
    --card: rgba(255, 255, 255, 0.08);
    --card-strong: rgba(255, 255, 255, 0.13);
    --text: #edf5ff;
    --muted: #9fb2c8;
    --line: rgba(255, 255, 255, 0.14);
    --primary: #2ef2a0;
    --primary-dark: #13b978;
    --accent: #5fc8ff;
    --danger: #ff6b7a;
    --warning: #ffd166;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius-xl: 28px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(46, 242, 160, 0.22), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(95, 200, 255, 0.20), transparent 30%),
        linear-gradient(145deg, #050912 0%, #07111f 52%, #0d1b2e 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.70), transparent 78%);
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 54px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(5, 12, 24, 0.58);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

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

.brand-logo {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 15px;
    color: #03120c;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(46, 242, 160, 0.22);
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.05;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 3px;
}

.nav-actions {
    display: inline-flex;
    gap: 6px;
}

.nav-actions a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.94rem;
    transition: 180ms ease;
}

.nav-actions a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.hero-grid,
.report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: stretch;
}

.hero-card,
.info-panel,
.report-card,
.guide-card,
.list-section {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero-card,
.report-card {
    padding: clamp(28px, 4vw, 54px);
}

.eyebrow,
.eyebrow-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(46, 242, 160, 0.55);
    animation: pulse 1.9s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 12px rgba(46, 242, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 242, 160, 0); }
}

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

h1 {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    line-height: 0.93;
    letter-spacing: -0.075em;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
}

.hero-copy {
    max-width: 720px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.attendance-form {
    width: 100%;
}

.attendance-form label {
    display: block;
    margin-bottom: 10px;
    color: #cfe1f7;
    font-size: 0.92rem;
    font-weight: 700;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.20);
}

.input-row input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 15px 16px;
    color: var(--text);
    background: transparent;
}

.input-row input::placeholder {
    color: rgba(237, 245, 255, 0.38);
}

.input-row button,
.ghost-button {
    border: 0;
    border-radius: 15px;
    padding: 14px 20px;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-row button {
    color: #03120c;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 15px 32px rgba(46, 242, 160, 0.20);
}

.input-row button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.form-hint {
    margin: 12px 0 0;
    color: rgba(237, 245, 255, 0.55);
    font-size: 0.88rem;
}

.form-hint code {
    color: var(--primary);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.secondary-link {
    color: var(--primary);
    font-weight: 800;
}

.ghost-button {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.info-panel,
.guide-card {
    padding: 22px;
}

.poster-card,
.guide-card {
    height: 100%;
    border-radius: 24px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(46, 242, 160, 0.12), transparent 42%),
        rgba(255, 255, 255, 0.045);
}

.poster-card p,
.guide-card li {
    color: var(--muted);
    line-height: 1.7;
}

.poster-art {
    position: relative;
    display: grid;
    min-height: 280px;
    place-items: center;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: radial-gradient(circle at center, rgba(95, 200, 255, 0.20), rgba(0, 0, 0, 0.10));
}

.poster-ring {
    position: absolute;
    border: 1px solid rgba(46, 242, 160, 0.38);
    border-radius: 50%;
}

.ring-one {
    width: 220px;
    height: 220px;
}

.ring-two {
    width: 145px;
    height: 145px;
    border-color: rgba(95, 200, 255, 0.42);
}

.terminal-card {
    position: relative;
    z-index: 1;
    width: min(240px, 80%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(5, 12, 24, 0.78);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

.terminal-card span,
.terminal-card small,
.attendance-item small {
    display: block;
    color: var(--muted);
}

.terminal-card strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 1.34rem;
}

.list-section {
    margin-top: 24px;
    padding: clamp(22px, 3vw, 34px);
}

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

.count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(46, 242, 160, 0.08);
    font-weight: 800;
    white-space: nowrap;
}

.attendance-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.attendance-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.attendance-item.latest {
    border-color: rgba(46, 242, 160, 0.5);
    background: linear-gradient(135deg, rgba(46, 242, 160, 0.14), rgba(95, 200, 255, 0.08));
}

.avatar {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #03120c;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}

.attendance-item strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.empty-state {
    padding: 40px 20px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.12);
}

.empty-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 22px;
    color: var(--primary);
    background: rgba(46, 242, 160, 0.10);
    font-weight: 900;
}

.empty-state p {
    color: var(--muted);
}

.report-layout {
    align-items: start;
}

.report-card h1 {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.report-input-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    color: var(--text);
}

.alert.success {
    border-color: rgba(46, 242, 160, 0.42);
    background: rgba(46, 242, 160, 0.12);
}

.alert.error {
    border-color: rgba(255, 107, 122, 0.48);
    background: rgba(255, 107, 122, 0.12);
}

.guide-card ol {
    margin: 18px 0 0;
    padding-left: 20px;
}

.guide-card li + li {
    margin-top: 12px;
}

@media (max-width: 860px) {
    .page-shell {
        width: min(100% - 28px, 1180px);
        padding-top: 14px;
    }

    .navbar {
        align-items: flex-start;
        border-radius: 24px;
        flex-direction: column;
    }

    .nav-actions {
        width: 100%;
    }

    .nav-actions a {
        flex: 1;
        text-align: center;
        background: rgba(255, 255, 255, 0.055);
    }

    .hero-grid,
    .report-layout,
    .attendance-list {
        grid-template-columns: 1fr;
    }

    .input-row,
    .report-input-row {
        grid-template-columns: 1fr;
    }

    .input-row button {
        width: 100%;
    }

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

.community-illustration {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}
