/*
Theme Name: kids
Description: NTCG Kids — Children's Conference Registration
Author: Twelve32 Ltd
Author URI: https://twelve32.digital
Version: 3.0.0
*/

/* ── Font Import ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400&display=swap');

/* ── Base ────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    background: #000000;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: #ffffff;
    letter-spacing: 0.6px;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Root wrapper ───────────────────────────────────────────── */
.ntcg-kids {
    width: 100%;
    min-height: 100vh;
    background: #000000;
    position: relative;
}

/* ── Burger button (fixed) ──────────────────────────────────── */
.ntcg-kids-burger {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 20px);
    right: 20px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.ntcg-kids-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ntcg-kids-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(135deg);
}

.ntcg-kids-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.ntcg-kids-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-135deg);
}

/* ── Full-screen nav overlay ────────────────────────────────── */
.ntcg-kids-nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.ntcg-kids-nav.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ntcg-kids-nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ntcg-kids-nav__links a {
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-size: clamp(18px, 6vw, 48px);
    font-weight: 800;
    letter-spacing: clamp(1px, 0.5vw, 3px);
    text-transform: uppercase;
    white-space: nowrap;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ntcg-kids-nav__links a:hover {
    opacity: 0.5;
}

/* ── Splash hero ────────────────────────────────────────────── */
.ntcg-kids-hero {
    position: relative;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.ntcg-kids-hero__bg {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.08;
    pointer-events: none;
}

.ntcg-kids-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.96) 0%,
        rgba(0, 0, 0, 0.98) 50%,
        rgba(0, 0, 0, 1.00) 100%
    );
}

.ntcg-kids-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 70px 28px 32px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    min-height: 100%;
    margin: 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Brand (logo + Kids label) */
.ntcg-kids-hero__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

/* Logo */
.ntcg-kids-hero__logo {
    width: clamp(140px, 45vw, 220px);
    height: auto;
}

/* Kids label */
.ntcg-kids-hero__kids-label {
    font-family: 'Baloo 2', 'Comic Sans MS', cursive;
    font-weight: 800;
    font-size: clamp(36px, 10vw, 56px);
    color: #0facb2;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(15, 172, 178, 0.3);
}

/* Date chip */
.ntcg-kids-hero__chip {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Title */
.ntcg-kids-hero__title {
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 48px;
    letter-spacing: 0.6px;
}

/* Notices (inline in hero) */
.ntcg-kids-hero__notices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
}

.ntcg-kids-hero__notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.ntcg-kids-hero__notice:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.ntcg-kids-hero__notice-date {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

.ntcg-kids-hero__notice-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA (inline in hero) */
.ntcg-kids-hero__cta {
    width: 100%;
    margin-bottom: 16px;
}

.ntcg-kids-hero__cta-text {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* Stacked buttons */
.ntcg-kids-hero__actions {
    display: grid;
    gap: 12px;
    width: 100%;
    padding-bottom: 8px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.ntcg-kids-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 999px;
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
    border: none;
}

.ntcg-kids-btn:hover,
.ntcg-kids-btn:focus {
    opacity: 0.85;
    outline: none;
}

.ntcg-kids-btn--primary {
    background: #0FACB2;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(15, 172, 178, 0.3);
}

.ntcg-kids-btn--secondary {
    background: #F0F0F2;
    color: #1A1A6E;
    border: 1.5px solid #E0E0E0;
}

/* ── Content sections ───────────────────────────────────────── */
.ntcg-kids-section {
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 28px;
    text-align: center;
}

.ntcg-kids-section__title {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 12px;
    text-align: center;
}

.ntcg-kids-section__subtitle {
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
}

/* ── Event Cards ────────────────────────────────────────────── */
.ntcg-kids-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ntcg-kids-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease;
}

.ntcg-kids-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.ntcg-kids-card__icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: block;
}

.ntcg-kids-card h3 {
    font-size: 0.8rem;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.ntcg-kids-card p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.5;
}

/* ── Notices ────────────────────────────────────────────────── */
.ntcg-kids-notices {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.ntcg-kids-notices__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ntcg-kids-notices__item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ntcg-kids-notices__item:last-child {
    border-bottom: none;
}

.ntcg-kids-notices__date {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    padding-top: 2px;
}

.ntcg-kids-notices__text h4 {
    margin: 0 0 2px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    color: #ffffff;
}

.ntcg-kids-notices__text p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── CTA Section ────────────────────────────────────────────── */
.ntcg-kids-cta {
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 28px;
    text-align: center;
}

.ntcg-kids-cta h2 {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 12px;
}

.ntcg-kids-cta p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 300;
}

/* ── Registration page ──────────────────────────────────────── */
.ntcg-kids-register-page {
    position: relative;
    min-height: 100vh;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(145deg, #1A1A6E 0%, #60286C 30%, #2D1B4E 55%, #0D3D3F 80%, #1A1A6E 100%);
    background-size: 300% 300%;
    animation: ck-reg-bg 20s ease infinite;
    overflow-x: hidden;
}

@keyframes ck-reg-bg {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Decorative floating shapes */
.ntcg-kids-register-page::before,
.ntcg-kids-register-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.08;
}

.ntcg-kids-register-page::before {
    width: 200px;
    height: 200px;
    background: #FFE81A;
    top: 10%;
    left: -60px;
    animation: ck-float-reg-a 12s ease-in-out infinite;
}

.ntcg-kids-register-page::after {
    width: 150px;
    height: 150px;
    background: #FF3B7A;
    bottom: 15%;
    right: -40px;
    animation: ck-float-reg-b 10s ease-in-out infinite;
}

@keyframes ck-float-reg-a {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(20px, -30px); }
}

@keyframes ck-float-reg-b {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-15px, 20px); }
}

.ntcg-kids-register-page__bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    display: none;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.ntcg-kids-register-page__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.ntcg-kids-register {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: 80px 20px 48px;
}

.ntcg-kids-register__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.ntcg-kids-register__brand {
    display: inline-block;
    position: relative;
    margin-bottom: 16px;
}

.ntcg-kids-register__logo {
    width: clamp(90px, 28vw, 140px);
    height: auto;
    filter: brightness(0) invert(1);
}

.ntcg-kids-register__kids-label {
    position: absolute;
    top: -6px;
    right: -24px;
    font-family: 'Lilita One', cursive;
    font-weight: 400;
    font-size: 13px;
    color: #1A1A6E;
    background: #FFE81A;
    padding: 3px 10px;
    border-radius: 6px;
    line-height: 1;
    letter-spacing: 1px;
    transform: rotate(12deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ntcg-kids-register__chip {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #FFE81A;
    border: none;
    color: #1A1A6E;
    font-family: 'Figtree', 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.ntcg-kids-register__card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 36px 20px;
    border: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

.ntcg-kids-register__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFE81A 0%, #FF8C00 25%, #0FACB2 50%, #FF3B7A 75%, #60286C 100%);
}

.ntcg-kids-register__card *,
.ntcg-kids-register__card *::before,
.ntcg-kids-register__card *::after {
    box-sizing: border-box;
}

.ntcg-kids-register__card input,
.ntcg-kids-register__card select,
.ntcg-kids-register__card textarea {
    max-width: 100%;
}

.ntcg-kids-register__card h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: clamp(18px, 5vw, 24px);
    font-family: 'Lilita One', cursive;
    color: #1A1A6E;
}

.ntcg-kids-register__card .subtitle {
    text-align: center;
    color: #888888;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.ntcg-kids-register__info {
    margin-top: 28px;
    padding: 20px;
    background: #F5F5F7;
    border-radius: 12px;
    border: none;
}

.ntcg-kids-register__info h4 {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1A1A6E88;
}

.ntcg-kids-register__info ul {
    margin: 0;
    padding-left: 18px;
    color: #666666;
    font-size: 0.85rem;
    line-height: 1.7;
}

.ntcg-kids-register__info li {
    margin-bottom: 4px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.ntcg-kids-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
    font-size: 0.8rem;
}

.ntcg-kids-footer a {
    color: rgba(255, 255, 255, 0.4);
}

/* ── Admin Dashboard (unchanged — WP admin) ─────────────────── */
.ntcg-kids-admin-wrap {
    max-width: 1100px;
}

.ntcg-kids-admin-header {
    margin-bottom: 24px;
}

.ntcg-kids-admin-header h1 {
    font-family: 'Jost', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #30373b;
}

.ntcg-kids-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.ntcg-kids-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.ntcg-kids-stat-card__number {
    font-family: 'Jost', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #0facb2;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.ntcg-kids-stat-card__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ntcg-kids-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.ntcg-kids-admin-table thead {
    background: #f9fafb;
}

.ntcg-kids-admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #e5e7eb;
}

.ntcg-kids-admin-table td {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    color: #30373b;
}

.ntcg-kids-admin-table tbody tr:hover {
    background: #f8fafb;
}

.ntcg-kids-admin-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ntcg-kids-admin-filters select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    background: #ffffff;
}

/* ── Class modals (floating, Contend-style) ─────────────────── */
.ntcg-kids-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
}

.ntcg-kids-modal-backdrop.is-open {
    display: block;
}

.ntcg-kids-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(480px, calc(100vw - 40px));
    max-height: calc(100dvh - 80px);
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 36px 28px 28px;
    color: #ffffff;
    z-index: 201;
    display: none;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ntcg-kids-modal.is-open {
    display: flex;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.ntcg-kids-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ntcg-kids-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ntcg-kids-modal__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.ntcg-kids-modal__title {
    font-size: clamp(20px, 5vw, 26px);
    margin: 0 0 8px;
}

.ntcg-kids-modal__body p {
    font-size: clamp(14px, 3.5vw, 15px);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 16px;
}

.ntcg-kids-modal__body ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.ntcg-kids-modal__body li {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

/* ── Desktop scale-up ───────────────────────────────────────── */
@media (min-width: 480px) {
    .ntcg-kids-hero__logo { width: clamp(200px, 40vw, 280px); }
    .ntcg-kids-hero__title { font-size: clamp(24px, 5vw, 32px); }
}

@media (min-width: 768px) {
    .ntcg-kids-hero__inner { max-width: 520px; }
    .ntcg-kids-hero__logo { width: clamp(220px, 28vw, 320px); }
    .ntcg-kids-hero__title { font-size: clamp(26px, 3vw, 36px); }
    .ntcg-kids-hero__actions { max-width: 380px; margin-left: auto; margin-right: auto; }
    .ntcg-kids-section { max-width: 520px; }
    .ntcg-kids-cta { max-width: 520px; }
    .ntcg-kids-register { max-width: 560px; }
    .ntcg-kids-nav__links a { font-size: clamp(32px, 5vw, 52px); }
}

@media (min-width: 1024px) {
    .ntcg-kids-hero__inner { max-width: 600px; }
    .ntcg-kids-hero__logo { width: clamp(240px, 22vw, 340px); }
    .ntcg-kids-register { max-width: 600px; }
}

/* ── Mobile refinements ─────────────────────────────────────── */
@media (max-width: 480px) {
    .ntcg-kids-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ntcg-kids-register__card {
        padding: 28px 20px;
    }

    .ntcg-kids-footer {
        font-size: 0.75rem;
    }
}

/* ════════════════════════════════════════════════════════════════
   REFERENCE CODE CARD (registration success page)
   ════════════════════════════════════════════════════════════════ */

.ntcg-kids-ref-card {
    background: #F0F7F7;
    border: 1px solid #0FACB2;
    border-radius: 16px;
    padding: 28px 24px;
    margin: 24px 0;
    text-align: center;
}

.ntcg-kids-ref-card__label {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999999;
    margin: 0 0 4px;
}

.ntcg-kids-ref-card__code {
    font-family: monospace;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #1A1A6E;
    margin: 0 0 16px;
}

.ntcg-kids-ref-card__pin {
    font-family: monospace;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #1A1A6E;
    margin: 0 0 16px;
}

.ntcg-kids-ref-card__warning {
    font-size: 12px;
    color: #ef4444;
    margin: 0;
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════
   PARENT HUB — Light Theme
   ════════════════════════════════════════════════════════════════ */

/* ── Light theme overrides (scoped to .ntcg-kids--light) ─────── */

.ntcg-kids--light {
    background: #F5F5F7;
    color: #374151;
}

.ntcg-kids-hub__header {
    text-align: center;
    padding: 72px 0 28px;
}

.ntcg-kids--light a {
    color: #0FACB2;
}


/* Burger bars */
.ntcg-kids--light .ntcg-kids-burger span {
    background: #374151;
}

/* Nav overlay: light variant */
.ntcg-kids--light .ntcg-kids-nav {
    background: rgba(255, 255, 255, 0.97);
}

.ntcg-kids--light .ntcg-kids-nav__links a {
    color: #111827;
}

.ntcg-kids--light .ntcg-kids-nav__links a:hover {
    opacity: 0.5;
}

/* Footer */
.ntcg-kids--light .ntcg-kids-footer {
    background: transparent;
    color: #9CA3AF;
}

.ntcg-kids--light .ntcg-kids-footer a {
    color: #0FACB2;
}

/* ── Hub page layout ─────────────────────────────────────────── */

.ntcg-kids-hub-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.ntcg-kids-hub {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

/* ── Hub header ──────────────────────────────────────────────── */

.ntcg-kids-hub__header {
    text-align: center;
    padding: 72px 0 28px;
}

.ntcg-kids-hub__header-brand {
    margin-bottom: 12px;
}

.ntcg-kids-hub__brand {
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #0facb2;
}

.ntcg-kids-hub__title {
    font-family: 'Lilita One', cursive;
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1A6E;
    margin: 0 0 6px;
}

.ntcg-kids-hub__subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #9CA3AF;
    margin: 0;
}

/* ── Hub card ────────────────────────────────────────────────── */

.ntcg-kids-hub__card {
    position: relative;
    background: #ffffff;
    border: 1px solid #E8E8EC;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.ntcg-kids-hub__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFE81A, #FF8C00, #0FACB2, #FF3B7A, #60286C);
}

.ntcg-kids-hub__card h2 {
    font-family: 'Lilita One', cursive;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #1A1A6E;
}

.ntcg-kids-hub__card .subtitle {
    text-align: center;
    font-size: 13px;
    color: #888888;
    margin-bottom: 24px;
}

/* ── Hub form (light-themed) ─────────────────────────────────── */

.ntcg-kids-hub-form__field {
    margin-bottom: 16px;
}

.ntcg-kids-hub-form__field label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    color: #1A1A6E;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ntcg-kids-hub-form__input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1A1A6E;
    background: #F9FAFB;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.ntcg-kids-hub-form__input:focus {
    border-color: #0FACB2;
    box-shadow: 0 0 0 3px rgba(15, 172, 178, 0.1);
    background: #ffffff;
}

.ntcg-kids-hub-form__input::placeholder {
    color: #d1d5db;
}

.ntcg-kids-hub-form__input--mono {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
}

.ntcg-kids-hub-form__input--pin {
    letter-spacing: 10px;
    font-size: 28px;
    text-align: center;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-weight: 600;
}

.ntcg-kids-hub-form__submit {
    margin-top: 24px;
}

.ntcg-kids-hub-btn {
    display: block;
    width: 100%;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #0FACB2;
    color: #ffffff;
}

.ntcg-kids-hub-btn:hover {
    background: #0d9399;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 172, 178, 0.25);
}

.ntcg-kids-hub-btn:active {
    transform: translateY(0);
}

.ntcg-kids-hub-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* ── Auth help text ──────────────────────────────────────────── */

.ntcg-kids-hub__auth-help {
    text-align: center;
    font-size: 12px;
    color: #FFFFFF66;
    margin-top: 20px;
}

/* ── Register CTA (below sign-in) ──────────────────────────── */

.ntcg-kids-hub__register-cta {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.ntcg-kids-hub__register-cta p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 12px;
}

.ntcg-kids-hub__register-link {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: #0facb2 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ntcg-kids-hub__register-link:hover {
    background: #f0fdfa;
    border-color: #0facb2;
}

/* ── Admin login link ───────────────────────────────────────── */

.ntcg-kids-hub__admin-link {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: #9ca3af;
}

.ntcg-kids-hub__admin-link a {
    color: #0facb2 !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ntcg-kids-hub__admin-link a:hover {
    color: #0d9399 !important;
}

/* ── Error box ───────────────────────────────────────────────── */

.ntcg-kids-hub__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #dc2626;
    font-size: 13px;
    text-align: center;
}

/* ── Child info bar ──────────────────────────────────────────── */

.ntcg-kids-hub__child-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.ntcg-kids-hub__child-name {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    display: block;
}

.ntcg-kids-hub__child-class {
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.ntcg-kids-hub__signout {
    background: none;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    color: #6B7280;
    font-family: inherit;
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ntcg-kids-hub__signout:hover {
    border-color: #9CA3AF;
    color: #374151;
    background: #F3F4F6;
}

/* ── Check-in status ─────────────────────────────────────────── */

.ntcg-kids-hub__checkin {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.ntcg-kids-hub__checkin--in {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.ntcg-kids-hub__checkin--out {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.ntcg-kids-hub__checkin--waiting {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.ntcg-kids-hub__checkin-icon {
    flex-shrink: 0;
}

.ntcg-kids-hub__checkin-info {
    display: flex;
    flex-direction: column;
}

.ntcg-kids-hub__checkin-status {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

.ntcg-kids-hub__checkin-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ── Announcements ───────────────────────────────────────────── */

.ntcg-kids-hub__announcements {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #E8E8EC;
    overflow: hidden;
}

.ntcg-kids-hub__announcements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF3B7A, #FFE81A);
}

.ntcg-kids-hub__announcements h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.ntcg-kids-hub__announcements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ntcg-kids-hub__empty {
    text-align: center;
    color: #d1d5db;
    font-size: 13px;
    padding: 20px 0;
}

.ntcg-kids-hub__loading {
    text-align: center;
    color: #d1d5db;
    font-size: 13px;
}

/* Individual announcement */
.ntcg-kids-hub__announcement {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 14px 16px;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.ntcg-kids-hub__announcement--urgent {
    background: #fef2f2;
    border-color: #fecaca;
}

.ntcg-kids-hub__announcement--personal {
    background: #f0fdfa;
    border-color: #ccfbf1;
}

.ntcg-kids-hub__announcement--new {
    animation: ntcg-kids-slide-in 0.4s ease;
}

@keyframes ntcg-kids-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ntcg-kids-hub__announcement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ntcg-kids-hub__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
}

.ntcg-kids-hub__badge--urgent {
    background: #fef2f2;
    color: #dc2626;
}

.ntcg-kids-hub__badge--personal {
    background: #f0fdfa;
    color: #0d9488;
}

.ntcg-kids-hub__badge--class {
    background: #fffbeb;
    color: #d97706;
}

.ntcg-kids-hub__announcement-time {
    font-size: 11px;
    color: #d1d5db;
}

.ntcg-kids-hub__announcement h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 4px;
    color: #111827;
}

.ntcg-kids-hub__announcement p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ── Poll status ─────────────────────────────────────────────── */

.ntcg-kids-hub__poll-status {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: #d1d5db;
}

/* ── Hub icon ────────────────────────────────────────────────── */

.ntcg-kids-hub__icon {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
}

/* ── Hub responsive ──────────────────────────────────────────── */

@media (min-width: 768px) {
    .ntcg-kids-hub { max-width: 520px; }
    .ntcg-kids-hub__card { padding: 40px 32px; }
}

/* ════════════════════════════════════════════════════════════════
   DESKTOP GATE — Disabled (desktop layouts now available)
   ════════════════════════════════════════════════════════════════ */

.ntcg-kids-desktop-gate {
    display: none;
}
