:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #101828;
    --muted: #5d6678;
    --primary: #0756c8;
    --primary-dark: #063b86;
    --accent: #f59e0b;
    --teal: #0f9f90;
    --border: #dce3ef;
    --success: #0f766e;
    --danger: #b91c1c;
    --shadow: 0 22px 70px rgba(16, 24, 40, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit;
}

.page-shell {
    min-height: 100vh;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.brand {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0;
    text-decoration: none;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo img {
    display: block;
    width: 156px;
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a,
.inline-form button {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.94rem;
}

.landing-nav {
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid rgba(7, 86, 200, 0.1);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.86);
}

.landing-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.landing-nav a:hover {
    background: #e7f0ff;
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-cta {
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    background: var(--primary);
    color: white;
}

.landing-nav .nav-cta {
    color: white;
    box-shadow: 0 12px 24px rgba(7, 86, 200, 0.18);
}

.landing-nav .nav-cta:hover {
    background: var(--primary-dark);
    color: white;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(7, 86, 200, 0.18);
    border-radius: 8px;
    background: white;
    color: var(--primary-dark);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle strong {
    font-size: 0.88rem;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.inline-form {
    display: inline;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(120deg, rgba(7, 86, 200, 0.94), rgba(6, 59, 134, 0.92)),
        url('https://images.unsplash.com/photo-1535378620166-273708d44e4c?auto=format&fit=crop&w=1800&q=80') center/cover;
    color: white;
}

.powerful-hero {
    min-height: 760px;
    background:
        linear-gradient(120deg, rgba(3, 18, 48, 0.94), rgba(7, 86, 200, 0.86) 46%, rgba(15, 159, 144, 0.82)),
        url('https://images.unsplash.com/photo-1561144257-e32e8efc6c4f?auto=format&fit=crop&w=1800&q=82') center/cover;
}

.powerful-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.landing-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(to top, rgba(245, 247, 251, 1), rgba(245, 247, 251, 0));
}

.landing-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
}

.hero-partners {
    display: inline-block;
    margin-bottom: 1.4rem;
}

.partners-simple {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 42px rgba(3, 18, 48, 0.18);
    backdrop-filter: blur(14px);
}

.partner-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    min-height: 76px;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: 0 14px 36px rgba(3, 18, 48, 0.18);
}

.partner-img {
    display: block;
    width: 72px;
    height: 48px;
    object-fit: contain;
}

.partner-item:first-child .partner-img {
    width: 138px;
    height: 48px;
}

.partner-label {
    max-width: 150px;
    color: #1f2937;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.collab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 900;
}

.collab-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.45rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.powerful-hero h1 {
    max-width: 760px;
    font-size: clamp(3rem, 8vw, 7.6rem);
    text-transform: uppercase;
}

.hero-lead {
    max-width: 660px;
    font-size: 1.08rem;
}

h2,
h3 {
    margin-top: 0;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(1.9rem, 3vw, 3.2rem);
    line-height: 1.05;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.landing-hero p,
.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-proof div {
    min-height: 112px;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-proof strong,
.hero-proof span {
    display: block;
}

.hero-proof strong {
    color: white;
    font-size: 1.5rem;
}

.hero-proof span {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
    line-height: 1.5;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.9rem 1.35rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    margin-top: 1rem;
}

.button-primary {
    background: var(--accent);
    color: #111827;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    border-color: rgba(255, 255, 255, 0.35);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: rgba(255, 255, 255, 0.28);
}

.button-whatsapp {
    width: 100%;
    background: #16a34a;
    color: white;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.button-disabled {
    width: 100%;
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

.registration-page .button-secondary,
.card-center .button-secondary {
    background: white;
    color: var(--primary);
    border-color: var(--border);
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-showcase {
    position: relative;
    min-height: 560px;
}

.showcase-panel {
    position: absolute;
    inset: 2rem 0 2rem 1rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.showcase-topline,
.showcase-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.showcase-topline {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.showcase-topline strong {
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: var(--accent);
    color: #111827;
}

.showcase-arena {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 55%, rgba(245, 158, 11, 0.2), transparent 10rem),
        linear-gradient(145deg, rgba(16, 24, 40, 0.9), rgba(7, 86, 200, 0.72));
}

.arena-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 34px 34px;
    transform: perspective(520px) rotateX(58deg) translateY(84px) scale(1.4);
    transform-origin: bottom;
}

.mini-robot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 118px;
    transform: translate(-50%, -42%);
    border: 10px solid #e5e7eb;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #cfe0ff);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
}

.mini-robot::before,
.mini-robot::after {
    content: '';
    position: absolute;
    bottom: -32px;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #111827;
}

.mini-robot::before {
    left: 12px;
}

.mini-robot::after {
    right: 12px;
}

.mini-robot span {
    position: absolute;
    top: 34px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 18px rgba(15, 159, 144, 0.88);
}

.mini-robot span:first-child {
    left: 32px;
}

.mini-robot span:last-child {
    right: 32px;
}

.sensor-beam {
    position: absolute;
    left: 50%;
    bottom: 34px;
    width: 220px;
    height: 72px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.42), transparent 68%);
    animation: beamPulse 2s ease-in-out infinite;
}

.showcase-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-meta div {
    padding: 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.93);
}

.showcase-meta strong,
.showcase-meta span {
    display: block;
}

.showcase-meta strong {
    color: var(--primary);
}

.showcase-meta span {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.circuit-board {
    position: absolute;
    inset: 2rem 0 2rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow);
    backdrop-filter: blur(16px);
}

.circuit-board::before,
.circuit-board::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.circuit-board::before {
    width: 58%;
    height: 52%;
    left: 12%;
    top: 14%;
}

.circuit-board::after {
    width: 34%;
    height: 28%;
    right: 10%;
    bottom: 12%;
}

.circuit-node,
.circuit-line {
    position: absolute;
    display: block;
    background: var(--accent);
}

.circuit-node {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.9);
}

.node-a {
    left: 22%;
    top: 24%;
}

.node-b {
    right: 24%;
    top: 42%;
}

.node-c {
    left: 38%;
    bottom: 22%;
}

.circuit-line {
    height: 3px;
    border-radius: 999px;
}

.line-a {
    width: 32%;
    left: 25%;
    top: 25.5%;
}

.line-b {
    width: 28%;
    right: 25%;
    bottom: 24%;
}

.robot-card {
    position: absolute;
    left: 17%;
    top: 23%;
    width: min(320px, 78%);
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.robot-head {
    width: 160px;
    height: 118px;
    margin: 0 auto 1.25rem;
    border-radius: 8px;
    background: linear-gradient(145deg, #eff6ff, #c6dbff);
    border: 10px solid #1d4ed8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.robot-head span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 16px rgba(15, 159, 144, 0.8);
}

.robot-body {
    height: 150px;
    border-radius: 8px;
    background: #111827;
    display: grid;
    place-items: center;
}

.robot-panel {
    width: 56%;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
}

.floating-stat {
    position: absolute;
    width: 190px;
    padding: 1rem;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.floating-stat strong,
.floating-stat span {
    display: block;
}

.floating-stat strong {
    font-size: 1.5rem;
    color: var(--primary);
}

.floating-stat span {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.stat-top {
    top: 10%;
    right: 0;
}

.stat-bottom {
    bottom: 6%;
    left: 0;
}

.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--bg);
}

.section-dark {
    background: #101828;
    color: white;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.split-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
    align-items: start;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card,
.card {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(16, 24, 40, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
}

.feature-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e7f0ff;
    color: var(--primary);
    font-weight: 900;
}

.impact-section {
    background: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.impact-list {
    display: grid;
    gap: 1rem;
}

.impact-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.impact-item strong {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #dff8ef;
    color: #047857;
}

.impact-item span {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.55;
}

@keyframes beamPulse {

    0%,
    100% {
        opacity: 0.45;
        transform: translateX(-50%) scale(0.92);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
    }
}

.steps {
    display: grid;
    gap: 1rem;
}

.step-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.step-item strong {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #111827;
}

.cta-band {
    background: white;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.registration-page {
    padding-top: 3rem;
}

.page-intro {
    max-width: 790px;
    margin-bottom: 2rem;
}

.form-card {
    padding: 0;
    overflow: hidden;
}

.form-card form {
    padding: 1.5rem;
}

.fieldset {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    background: #f8fafc;
    margin-bottom: 1.25rem;
}

.fieldset legend {
    padding: 0 0.5rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.field-note {
    margin-top: 0;
    font-size: 0.94rem;
}

.input-grid {
    display: grid;
    gap: 1rem;
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jenjang-block {
    border: 1px solid rgba(7, 86, 200, 0.16);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
}

.jenjang-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
    color: var(--primary);
}

.toggle-label input {
    width: 1.1rem;
    height: 1.1rem;
}

.toggle-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.teacher-field {
    margin-bottom: 1rem;
}

.jenjang-block.disabled {
    opacity: 0.62;
}

.jenjang-block.disabled input {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.input-grid label,
.participant-row label,
.auth-form label,
.teacher-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.required {
    color: var(--danger);
}

input,
select {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    color: var(--ink);
    font-size: 0.95rem;
}

input:focus,
select:focus {
    outline: 3px solid rgba(7, 86, 200, 0.16);
    border-color: var(--primary);
}

.participant-row {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.participant-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-weight: 800;
}

.participant-list {
    padding-left: 1rem;
    margin: 0;
}

.participant-list li {
    margin-bottom: 0.75rem;
}

.whatsapp-link {
    color: var(--success);
    font-weight: 800;
}

.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert p {
    margin: 0.3rem 0 0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-error p,
.alert-error strong {
    color: inherit;
}

.footer {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    color: var(--muted);
    text-align: center;
}

.admin-page {
    margin-top: 1rem;
}

.admin-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.28), transparent 19rem),
        linear-gradient(135deg, #08162f, #0756c8 58%, #0f9f90);
    color: white;
}

.admin-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.7;
}

.admin-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 0;
}

.admin-header h1 {
    max-width: 760px;
    margin-bottom: 0.5rem;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.admin-header p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.admin-actions {
    justify-content: flex-end;
}

.admin-actions .button {
    margin-top: 0;
}

.admin-actions .button-secondary {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-top: -2.8rem;
    position: relative;
    z-index: 2;
}

.admin-stat-card {
    min-height: 150px;
    padding: 1.25rem;
    border-radius: 8px;
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.12);
}

.admin-stat-card span,
.admin-stat-card small {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.admin-stat-card strong {
    display: block;
    margin: 0.5rem 0;
    color: var(--primary);
    font-size: 2.7rem;
    line-height: 1;
}

.admin-panel {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 55px rgba(16, 24, 40, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-toolbar h2 {
    margin-bottom: 0.35rem;
}

.admin-toolbar p {
    margin: 0;
}

.admin-tools {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) 160px;
    gap: 0.75rem;
    align-items: end;
}

.admin-search,
.admin-filter {
    display: grid;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.admin-school-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.school-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f8fafc;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.school-card:hover {
    transform: translateY(-2px);
    border-color: rgba(7, 86, 200, 0.28);
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.1);
}

.school-card-main,
.school-card-side {
    display: grid;
    gap: 1rem;
}

.school-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.school-city {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.school-title-row h3 {
    margin-bottom: 0;
    font-size: 1.35rem;
}

.school-count {
    flex: 0 0 auto;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: #e7f0ff;
    color: var(--primary);
    font-weight: 900;
    font-size: 0.86rem;
}

.school-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.school-meta-grid div,
.proof-box {
    padding: 0.85rem;
    border-radius: 8px;
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.school-meta-grid span,
.proof-box span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.school-meta-grid strong,
.proof-box strong,
.proof-box a {
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.proof-box a {
    color: var(--primary);
}

.teacher-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.teacher-strip span {
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.86rem;
}

.participant-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

.participant-panel summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 900;
}

.participant-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.participant-chip {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border);
}

.participant-chip strong {
    color: var(--ink);
}

.participant-chip span {
    color: var(--primary);
    font-weight: 800;
}

.participant-chip small {
    color: var(--muted);
}

.empty-state {
    margin-top: 1rem;
    padding: 2rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px dashed var(--border);
    text-align: center;
}

.empty-state strong {
    color: var(--ink);
    font-size: 1.15rem;
}

.empty-state p {
    margin-bottom: 0;
}

.admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 76% 20%, rgba(245, 158, 11, 0.28), transparent 18rem),
        linear-gradient(145deg, #08162f, #0756c8 58%, #0f9f90);
}

.admin-login-card {
    width: min(480px, 100%);
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.admin-login-card h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
}

.card-center {
    max-width: 640px;
    margin: 3rem auto;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.success-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 3rem 1rem;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.22), transparent 24rem),
        linear-gradient(145deg, #0ca764, #19b970 46%, #0f9f90);
}

.success-card {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    padding: 4.5rem 2rem 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 90px rgba(5, 96, 63, 0.35);
    text-align: center;
    animation: successCardIn 620ms ease-out both;
}

.success-card h1 {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2rem, 5vw, 3.7rem);
    color: var(--ink);
}

.success-card p {
    max-width: 620px;
    margin: 0 auto;
}

.success-badge {
    position: absolute;
    top: -54px;
    left: 50%;
    width: 108px;
    height: 108px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: white;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.16);
    display: grid;
    place-items: center;
}

.success-badge svg {
    width: 82px;
    height: 82px;
    overflow: visible;
}

.success-ring {
    fill: none;
    stroke: #16a34a;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    animation: drawRing 760ms ease-out 160ms forwards;
}

.success-check {
    fill: none;
    stroke: #16a34a;
    stroke-width: 9;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 64;
    stroke-dashoffset: 64;
    animation: drawCheck 520ms ease-out 720ms forwards;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.success-actions .button-secondary {
    color: var(--primary);
    background: white;
    border-color: var(--border);
}

.success-note {
    display: grid;
    gap: 0.25rem;
    margin: 1.5rem auto 0;
    padding: 1rem;
    max-width: 420px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
}

.success-note span {
    color: #4b5563;
}

.success-confetti span {
    position: absolute;
    top: -2rem;
    width: 12px;
    height: 22px;
    border-radius: 3px;
    background: var(--accent);
    animation: confettiFall 3.8s ease-in-out infinite;
}

.success-confetti span:nth-child(1) {
    left: 14%;
    animation-delay: 0s;
}

.success-confetti span:nth-child(2) {
    left: 28%;
    background: white;
    animation-delay: 0.45s;
}

.success-confetti span:nth-child(3) {
    left: 43%;
    background: #0756c8;
    animation-delay: 0.15s;
}

.success-confetti span:nth-child(4) {
    left: 58%;
    background: #fef3c7;
    animation-delay: 0.75s;
}

.success-confetti span:nth-child(5) {
    left: 73%;
    background: #0f9f90;
    animation-delay: 0.3s;
}

.success-confetti span:nth-child(6) {
    left: 86%;
    background: #ffffff;
    animation-delay: 1s;
}

@keyframes successCardIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes drawRing {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes confettiFall {
    0% {
        opacity: 0;
        transform: translateY(-2rem) rotate(0deg);
    }

    18% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(110vh) rotate(360deg);
    }
}

@media (max-width: 980px) {
    .landing-hero {
        min-height: auto;
        padding: 4rem 0 6rem;
    }

    .landing-hero-grid,
    .feature-grid,
    .hero-proof,
    .impact-grid,
    .admin-stat-grid,
    .school-card,
    .school-meta-grid,
    .participant-chip-grid,
    .split-section,
    .two-columns,
    .participant-row {
        grid-template-columns: 1fr;
    }

    .admin-header-inner,
    .admin-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-stat-grid {
        margin-top: 1rem;
    }

    .admin-tools {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .powerful-hero {
        padding-top: 2rem;
    }

    .partners-simple {
        align-items: stretch;
        flex-direction: column;
        width: min(100%, 420px);
    }

    .partner-item {
        grid-template-columns: auto 1fr;
        min-height: 66px;
    }

    .collab-badge {
        justify-content: center;
    }

    .hero-showcase {
        min-height: 520px;
    }

    .showcase-panel {
        inset: 1rem;
    }

    .hero-visual {
        min-height: 450px;
    }

    .circuit-board {
        inset: 1rem;
    }

    .robot-card {
        left: 50%;
        transform: translateX(-50%);
    }

    .stat-top {
        right: 1rem;
    }

    .stat-bottom {
        left: 1rem;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 1rem, 1120px);
    }

    .header-inner {
        position: relative;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .landing-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        display: grid;
        gap: 0.45rem;
        padding: 0.65rem;
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(15, 23, 42, 0.08);
        box-shadow: 0 22px 55px rgba(16, 24, 40, 0.18);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .landing-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .landing-nav a {
        width: 100%;
        justify-content: space-between;
        min-height: 48px;
        padding: 0.75rem 0.9rem;
        background: #f8fafc;
    }

    .landing-nav .nav-cta {
        justify-content: center;
        background: var(--primary);
    }

    .menu-open .site-header {
        box-shadow: 0 20px 44px rgba(16, 24, 40, 0.12);
    }

    .brand-logo img {
        width: 134px;
    }

    .landing-hero {
        padding-top: 2rem;
    }

    .powerful-hero h1 {
        font-size: clamp(2.7rem, 16vw, 4.9rem);
    }

    .partners-simple {
        width: 100%;
        padding: 0.6rem;
    }

    .partner-item {
        gap: 0.55rem;
        padding: 0.65rem;
    }

    .partner-img,
    .partner-item:first-child .partner-img {
        width: 72px;
        height: 42px;
    }

    .partner-label {
        max-width: none;
        font-size: 0.7rem;
    }

    .hero-proof div {
        min-height: auto;
    }

    .hero-showcase {
        min-height: 470px;
    }

    .showcase-meta {
        grid-template-columns: 1fr;
    }

    .showcase-arena {
        min-height: 270px;
    }

    .mini-robot {
        width: 126px;
        height: 100px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .robot-card {
        width: 78%;
        padding: 1rem;
    }

    .robot-head {
        width: 126px;
        height: 92px;
    }

    .robot-body {
        height: 118px;
    }

    .floating-stat {
        width: 150px;
        padding: 0.8rem;
    }

    .section {
        padding: 3.2rem 0;
    }

    .form-card form {
        padding: 1rem;
    }

    .admin-panel {
        padding: 0.8rem;
    }

    .school-title-row,
    .teacher-strip {
        flex-direction: column;
    }

    .school-count {
        width: fit-content;
    }

    .admin-login-card {
        padding: 1.25rem;
    }

    .success-card {
        padding: 4rem 1rem 1.25rem;
    }

    .success-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
