/**
 * NTCG Kids — Component Styles
 *
 * Registration form, admin dashboard, and responsive refinements.
 */

/* ── Notes checkbox list ────────────────────────────────────── */

.ntcg-kids-ap__checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    background: #F9FAFB;
}

.ntcg-kids-ap__checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #F0F0F0;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #1A1A6E;
    cursor: pointer;
    transition: background 0.15s;
}

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

.ntcg-kids-ap__checkbox-item:active {
    background: #E8F8F8;
}

.ntcg-kids-ap__checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0FACB2;
    flex-shrink: 0;
}

.ntcg-kids-ap__checkbox-item span {
    flex: 1;
}

/* ── Pickup Code ────────────────────────────────────────────── */

.ntcg-kids-hub__pickup-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    border: 1.5px solid #0FACB2;
    border-radius: 10px;
    background: transparent;
    color: #0FACB2;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ntcg-kids-hub__pickup-btn:active {
    background: #0FACB210;
}

.ntcg-kids-hub__pickup-code {
    margin-top: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #F0F7F7;
    border: 1px solid #0FACB2;
    text-align: center;
}

.ntcg-kids-hub__pickup-code-num {
    font-family: monospace;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #1A1A6E;
    margin-bottom: 8px;
}

.ntcg-kids-hub__pickup-code-msg {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.ntcg-kids-hub__pickup-code-exp {
    font-size: 13px;
    color: #FF8C00;
    font-weight: 700;
    font-family: 'Jost', monospace, sans-serif;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.ntcg-kids-hub__pickup-code-exp--urgent {
    color: #DC2626;
    animation: ntcg-kids-pulse 1s ease-in-out infinite;
}

.ntcg-kids-hub__pickup-code-exp--expired {
    color: #991B1B;
    font-size: 12px;
}

@keyframes ntcg-kids-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ── Authorised Collectors ───────────────────────────────────── */

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

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

.ntcg-kids-hub__collectors-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #1f2937;
}

.ntcg-kids-hub__collectors-icon {
    font-size: 18px;
}

.ntcg-kids-hub__collectors-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.ntcg-kids-hub__collectors-list li {
    font-size: 13px;
    color: #374151;
    padding: 6px 0;
    border-bottom: 1px solid #F3F4F6;
}

.ntcg-kids-hub__collectors-list li:last-child {
    border-bottom: none;
}

.ntcg-kids-hub__collectors-edit-btn {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: transparent;
    color: #6B7280;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ntcg-kids-hub__collector-field {
    margin-bottom: 10px;
}

.ntcg-kids-hub__collector-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.ntcg-kids-hub__collector-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #1f2937;
    background: #F9FAFB;
}

.ntcg-kids-hub__collector-field input:focus {
    outline: none;
    border-color: #0FACB2;
}

.ntcg-kids-hub__collectors-save {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #0FACB2;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ntcg-kids-hub__collectors-cancel {
    flex: 1;
    padding: 10px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: transparent;
    color: #6B7280;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ── Registration Form ───────────────────────────────────────── */
.ntcg-kids-form {
    margin-top: 20px;
}

/* Multi-step wizard: hidden fieldsets */
.reg-step-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ntcg-kids-form__section {
    border: none;
    padding: 0;
    margin: 0 0 28px;
}

.ntcg-kids-form__section legend {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1A1A6E;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E7EB;
    width: 100%;
}

.ntcg-kids-form__section legend .optional {
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #AAAAAA;
    text-transform: none;
}

.ntcg-kids-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 100%;
    overflow: hidden;
}

.ntcg-kids-form__row .ntcg-kids-form__field {
    min-width: 0;
}

.ntcg-kids-form__hint {
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    margin: -8px 0 14px;
    line-height: 1.5;
}

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

.ntcg-kids-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;
}

.ntcg-kids-form__field label .required {
    color: #ef4444;
}

.ntcg-kids-form__field label .optional {
    font-weight: 400;
    font-size: 11px;
    color: #AAAAAA;
}

.ntcg-kids-form__field input[type="text"],
.ntcg-kids-form__field input[type="email"],
.ntcg-kids-form__field input[type="tel"],
.ntcg-kids-form__field input[type="date"],
.ntcg-kids-form__field select,
.ntcg-kids-form__field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #E0E0E0;
    border-radius: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1A1A6E;
    background: #F9FAFB;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ntcg-kids-form__field input[readonly] {
    opacity: 0.5;
    cursor: default;
}

.ntcg-kids-form__field input:focus,
.ntcg-kids-form__field select:focus,
.ntcg-kids-form__field textarea:focus {
    outline: none;
    border-color: #0FACB2;
    box-shadow: 0 0 0 3px rgba(15, 172, 178, 0.12);
}

.ntcg-kids-form__field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.ntcg-kids-form__field select option {
    background: #FFFFFF;
    color: #1A1A6E;
}

.ntcg-kids-form__field textarea {
    resize: vertical;
    min-height: 56px;
}

.ntcg-kids-form__field input[type="date"] {
    min-width: 0;
    -webkit-appearance: none;
}

.ntcg-kids-form__field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

/* Checkboxes */
.ntcg-kids-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.ntcg-kids-form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #0FACB2;
}

.ntcg-kids-form__checkbox label {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #555555;
    line-height: 1.5;
    cursor: pointer;
}

.ntcg-kids-form__checkbox label .required {
    color: #ef4444;
}

/* Submit */
.ntcg-kids-form__notice {
    background: #e8f8f8;
    border: 1px solid #0facb2;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 24px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #0a7a7f;
}

.ntcg-kids-form__submit {
    text-align: center;
    margin-top: 20px;
}

.ntcg-kids-form__submit button {
    width: 100%;
}

/* Validation errors */
.ntcg-kids-form__field-error {
    display: block;
    color: #ef4444;
    font-size: 11px;
    margin-top: 4px;
}

/* Age eligibility error */
.ntcg-kids-form__age-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.5;
}

/* Ineligible session hint */
.ntcg-kids-form__ineligible {
    color: #fca5a5;
    font-size: 11px;
    font-style: italic;
}

/* Sunday class change note (admin portal) */
.ntcg-kids-ap__det-sunday-class {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
    margin-top: 4px;
}

/* Server-side error list */
.ntcg-kids-register__errors {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

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

.ntcg-kids-register__errors li {
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.6;
}

/* Success state */
.ntcg-kids-register__success {
    text-align: center;
    padding: 32px 0;
}

.ntcg-kids-register__success h2 {
    margin-bottom: 16px;
    color: #1A1A6E;
}

.ntcg-kids-register__success p {
    color: #555555;
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 14px;
    font-weight: 400;
}

/* ── Sibling Registration ───────────────────────────────────── */
.ntcg-kids-register__sibling-banner {
    background: #F0F7F7;
    border: 1px solid #0FACB2;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 400;
    color: #555555;
    line-height: 1.6;
}

.ntcg-kids-register__sibling-banner strong {
    color: #1A1A6E;
    font-weight: 700;
}

.ntcg-kids-siblings-list {
    text-align: left;
    display: inline-block;
    margin: 16px auto;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.ntcg-kids-siblings-list li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
}

.ntcg-kids-siblings-list li code {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    color: #0facb2;
}

/* ── Family Hub: Multi-child ────────────────────────────────── */
.ntcg-kids-hub__family-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 20px;
    flex-wrap: wrap;
}

.ntcg-kids-hub__family-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ntcg-kids-hub__family-name {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1A1A6E;
}

.ntcg-kids-hub__family-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #9CA3AF;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.ntcg-kids-hub__family-edit-btn:hover {
    color: #0facb2;
}

.ntcg-kids-hub__family-name-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ntcg-kids-hub__family-name-edit input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #30373B;
}

.ntcg-kids-hub__family-name-edit input:focus {
    outline: none;
    border-color: #0facb2;
    box-shadow: 0 0 0 4px rgba(15, 172, 178, 0.1);
}

.ntcg-kids-hub__family-save-btn,
.ntcg-kids-hub__family-cancel-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Jost', sans-serif;
}

.ntcg-kids-hub__signout {
    background: #f3f4f6;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ntcg-kids-hub__signout:hover {
    background: #e5e7eb;
}

.ntcg-kids-hub__family-save-btn {
    color: #059669;
    border-color: #bbf7d0;
}

.ntcg-kids-hub__family-save-btn:hover {
    background: #f0fdf4;
}

.ntcg-kids-hub__family-cancel-btn {
    color: #6b7280;
}

.ntcg-kids-hub__family-cancel-btn:hover {
    background: #f9fafb;
}

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

.ntcg-kids-hub__child-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0FACB2, #60286C);
}
.ntcg-kids-hub__child-card--female::before {
    background: linear-gradient(90deg, #F472B6, #FB923C);
}

.ntcg-kids-hub__child-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ntcg-kids-hub__child-card--expanded .ntcg-kids-hub__child-card-header {
    margin-bottom: 14px;
}
.ntcg-kids-hub__child-card-header--toggle {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ntcg-kids-hub__child-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}
.ntcg-kids-hub__child-status-dot--in {
    background: #22c55e;
}
.ntcg-kids-hub__child-status-dot--out {
    background: #f59e0b;
}
.ntcg-kids-hub__child-chevron {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.ntcg-kids-hub__child-card-body {
    padding-top: 4px;
}
.ntcg-kids-hub__child-card-ref-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.ntcg-kids-hub__child-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #0facb2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    flex-shrink: 0;
}

.ntcg-kids-hub__child-card-info {
    flex: 1;
    min-width: 0;
}

.ntcg-kids-hub__child-card-name {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #1A1A6E;
    display: block;
}

.ntcg-kids-hub__child-card-meta {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #666666;
    display: block;
}

.ntcg-kids-hub__child-card-ref {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 10px;
    font-weight: 600;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 6px;
    color: #6b7280;
    flex-shrink: 0;
}

/* Clickable child name */
.ntcg-kids-hub__child-card-name--link {
    color: #0facb2;
    cursor: pointer;
    border-bottom: 1.5px dashed rgba(15, 172, 178, 0.4);
    transition: border-color 0.15s ease;
}

.ntcg-kids-hub__child-card-name--link:active {
    border-bottom-color: #0facb2;
}

.ntcg-kids-hub__add-child-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 14px 20px;
    border-radius: 16px;
    border: 2px dashed #d1d5db;
    background: #fff;
    color: #0facb2;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.ntcg-kids-hub__add-child-link:active {
    border-color: #0facb2;
    background: #f0fdfa;
}

/* Session grid inside child card */
.ntcg-kids-hub__session-grid {
    display: grid;
    gap: 8px;
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
}

.ntcg-kids-hub__session-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    font-size: 14px;
    font-family: 'Jost', sans-serif;
}

.ntcg-kids-hub__session-name {
    font-weight: 500;
    color: #1A1A6E;
}

.ntcg-kids-hub__session-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}

.ntcg-kids-hub__session-status--in {
    background: #e6fafb;
    color: #0FACB2;
    border: 1px solid #0FACB2;
}

.ntcg-kids-hub__session-status--out {
    background: #fff0f3;
    color: #FF3B7A;
    border: 1px solid #FF3B7A;
}

.ntcg-kids-hub__session-status--waiting {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Announcement child badge */
.ntcg-kids-hub__badge--child {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Hub — new header brand row */
.ntcg-kids-hub__header-brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 6px;
}

.ntcg-kids-hub__brand-text {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #30373B;
}

.ntcg-kids-hub__brand-logo {
    height: 20px;
    width: auto;
    display: block;
}

.ntcg-kids-hub__brand-badge {
    display: inline-block;
    background: #0facb2;
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1.5;
}

/* Hub page — light background, extends past viewport for Safari overscroll */
html:has(.ntcg-kids--light),
body:has(.ntcg-kids--light) {
    background: #f5f5f7 !important;
}

.ntcg-kids--light {
    background: #f5f5f7;
    min-height: 100svh;
}

.ntcg-kids-hub-page {
    background: #f5f5f7;
    min-height: 100svh;
}

/* Hub content card — dashboard strips the card styling */
.ntcg-kids-hub__dashboard .ntcg-kids-hub__card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 16px;
}

/* Auth screen — centre the card */
.ntcg-kids-hub__auth {
    padding: 24px 12px 0;
}

.ntcg-kids-hub__auth .ntcg-kids-hub__card {
    max-width: 440px;
    margin: 0 auto;
}

/* Hub header — no card background, sits on the page grey */

/* Hub header logo */
.ntcg-kids-hub__header-logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto 8px;
}

/* Hub announcements section restyled */
.ntcg-kids-hub__announcements {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    margin-top: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ntcg-kids-hub__announcements h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0facb2;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.ntcg-kids-hub__announcements-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
}

/* Announcement rows (title-only list) */
.ntcg-kids-hub__announcement-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s ease;
}

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

.ntcg-kids-hub__announcement-row:active {
    background: #f9fafb;
}

.ntcg-kids-hub__announcement-row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
}

.ntcg-kids-hub__announcement-row--unread .ntcg-kids-hub__announcement-row-dot {
    background: #0facb2;
}

.ntcg-kids-hub__announcement-row--urgent .ntcg-kids-hub__announcement-row-dot {
    background: #ef4444;
}

.ntcg-kids-hub__announcement-row-title {
    flex: 1;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #30373B;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ntcg-kids-hub__announcement-row--unread .ntcg-kids-hub__announcement-row-title {
    font-weight: 700;
}

.ntcg-kids-hub__announcement-row-time {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #c4c4c4;
    white-space: nowrap;
    flex-shrink: 0;
}

.ntcg-kids-hub__announcement-row-chevron {
    font-size: 18px;
    color: #d1d5db;
    flex-shrink: 0;
    line-height: 1;
}

.ntcg-kids-hub__announcement-row--new {
    animation: ntcg-hub-ann-flash 0.6s ease;
}

@keyframes ntcg-hub-ann-flash {
    0%, 50% { background: rgba(15, 172, 178, 0.08); }
    100% { background: transparent; }
}

/* Announcement modal */
.ntcg-kids-hub__ann-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

.ntcg-kids-hub__ann-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    animation: ntcg-hub-form-slide-up 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.ntcg-kids-hub__ann-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.ntcg-kids-hub__ann-modal-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #30373B;
}

.ntcg-kids-hub__ann-modal-close {
    border: none;
    background: #f3f4f6;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntcg-kids-hub__ann-modal-close:hover {
    background: #e5e7eb;
}

.ntcg-kids-hub__ann-modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ntcg-kids-hub__ann-modal-time {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 12px;
}

.ntcg-kids-hub__ann-modal-title-text {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #30373B;
    margin: 0 0 12px;
}

.ntcg-kids-hub__ann-modal-body-text {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* Poll status */
.ntcg-kids-hub__poll-status {
    text-align: center;
    padding: 12px 0;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #d1d5db;
}

/* Hub footer */
.ntcg-kids-hub-page .ntcg-kids-footer {
    text-align: center;
    padding: 16px;
}

.ntcg-kids-hub-page .ntcg-kids-footer p {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

.ntcg-kids-hub-page .ntcg-kids-footer a {
    color: #0facb2;
}

/* ── Hub Tasks Section ──────────────────────────────────────── */
.ntcg-kids-hub__tasks {
    margin-top: 16px;
    margin-bottom: 0;
}

.ntcg-kids-hub__tasks-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ntcg-kids-hub__tasks-header h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f59e0b;
    margin: 0;
}

.ntcg-kids-hub__tasks-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.ntcg-kids-hub__task-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

.ntcg-kids-hub__task-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ntcg-kids-hub__task-card-inner {
    flex: 1;
    min-width: 0;
}

.ntcg-kids-hub__task-card-name {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #30373B;
}

.ntcg-kids-hub__task-card-desc {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.ntcg-kids-hub__task-status {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ntcg-kids-hub__task-status--complete {
    background: #ecfdf5;
    color: #059669;
}

.ntcg-kids-hub__task-status--incomplete {
    background: #fef3c7;
    color: #92400e;
}

/* ── Hub Form Panel (slide-up) ─────────────────────────────── */
.ntcg-kids-hub__form-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

.ntcg-kids-hub__form-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    animation: ntcg-hub-form-slide-up 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes ntcg-hub-form-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.ntcg-kids-hub__form-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
}

.ntcg-kids-hub__form-panel-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #30373B;
}

.ntcg-kids-hub__form-panel-close {
    border: none;
    background: #f3f4f6;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntcg-kids-hub__form-panel-close:hover {
    background: #e5e7eb;
}

.ntcg-kids-hub__form-panel-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* ── Form Questions ────────────────────────────────────────── */
.ntcg-kids-hub__form-question {
    margin-bottom: 24px;
}

.ntcg-kids-hub__form-question-label {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #30373B;
    margin-bottom: 12px;
}

.ntcg-kids-hub__form-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #9ca3af;
    margin: -4px 0 10px;
}

.ntcg-kids-hub__form-sublabel {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin: 12px 0 8px;
}

/* Conditional fields */
.ntcg-kids-hub__form-conditional {
    display: none;
}

.ntcg-kids-hub__form-conditional--visible {
    display: block;
}

/* Radio group */
.ntcg-kids-hub__form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ntcg-kids-hub__form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #30373B;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ntcg-kids-hub__form-radio input {
    display: none;
}

.ntcg-kids-hub__form-radio--selected {
    border-color: #0facb2;
    background: rgba(15, 172, 178, 0.08);
}

/* Checkbox group */
.ntcg-kids-hub__form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ntcg-kids-hub__form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #30373B;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ntcg-kids-hub__form-checkbox input {
    display: none;
}

.ntcg-kids-hub__form-checkbox--selected {
    border-color: #0facb2;
    background: rgba(15, 172, 178, 0.08);
}

/* Text input */
.ntcg-kids-hub__form-text-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #30373B;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ntcg-kids-hub__form-text-input:focus {
    outline: none;
    border-color: #0facb2;
    box-shadow: 0 0 0 4px rgba(15, 172, 178, 0.1);
}

/* Error area */
.ntcg-kids-hub__form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 16px;
}

/* Save button */
.ntcg-kids-hub__form-save-btn {
    width: 100%;
    margin-top: 8px;
}

/* ── Hub Data Request Modal ────────────────────────────────── */
.ntcg-kids-hub__data-req-msg {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #30373B;
    line-height: 1.5;
    margin-bottom: 8px;
}

.ntcg-kids-hub__data-req-sub {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 24px;
    line-height: 1.5;
}

.ntcg-kids-hub__data-req-pin-label {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ntcg-kids-hub__data-req-pin-wrap {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.ntcg-kids-hub__data-req-pin-digit {
    width: 56px;
    height: 62px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    text-align: center;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 26px;
    font-weight: 700;
    color: #30373B;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.ntcg-kids-hub__data-req-pin-digit:focus {
    outline: none;
    border-color: #0facb2;
    box-shadow: 0 0 0 4px rgba(15, 172, 178, 0.12);
    background: #ffffff;
}

.ntcg-kids-hub__data-req-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.ntcg-kids-hub__data-req-cancel {
    flex: 1;
    background: #f3f4f6 !important;
    color: #374151 !important;
    box-shadow: none !important;
}

.ntcg-kids-hub__data-req-cancel:hover {
    background: #e5e7eb !important;
}

.ntcg-kids-hub__data-req-submit {
    flex: 2;
}

.ntcg-kids-hub__data-req-success-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 16px;
}

.ntcg-kids-hub__data-req-success-msg {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #30373B;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ── Admin Portal Data Request Notifications ──────────────── */
.ntcg-kids-ap__data-req-banner {
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ntcg-kids-ap__data-req-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #1e40af;
    margin: 0 0 8px;
}

.ntcg-kids-ap__data-req-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 6px;
}

.ntcg-kids-ap__data-req-item:last-child {
    margin-bottom: 0;
}

.ntcg-kids-ap__data-req-info {
    flex: 1;
    min-width: 0;
}

.ntcg-kids-ap__data-req-name {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #30373B;
}

.ntcg-kids-ap__data-req-meta {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #6b7280;
}

.ntcg-kids-ap__data-req-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ntcg-kids-ap__data-req-approve,
.ntcg-kids-ap__data-req-wait {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ntcg-kids-ap__data-req-approve {
    background: #ecfdf5;
    color: #059669;
    border: 1.5px solid #a7f3d0;
}

.ntcg-kids-ap__data-req-approve:active {
    background: #d1fae5;
    transform: scale(0.95);
}

.ntcg-kids-ap__data-req-wait {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fde68a;
    font-size: 12px;
    letter-spacing: -2px;
}

.ntcg-kids-ap__data-req-wait:active {
    background: #fde68a;
    transform: scale(0.95);
}

/* Hub — permission denied / access denied */
.ntcg-kids-hub__denied {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60dvh;
    padding: 20px;
}

.ntcg-kids-hub__denied-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ntcg-kids-hub__denied-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #30373B;
}

.ntcg-kids-hub__denied-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #30373B;
    margin: 0 0 8px;
}

.ntcg-kids-hub__denied-body {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 20px;
}

.ntcg-kids-hub__denied-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #0facb2;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 172, 178, 0.25);
    transition: all 0.2s ease;
}

.ntcg-kids-hub__denied-btn:hover {
    background: #0d8f94;
    transform: translateY(-1px);
    color: #ffffff;
}

/* ── QR Code Button ─────────────────────────────────────────── */
.ntcg-kids-hub__qr-trigger {
    margin-bottom: 16px;
    text-align: center;
}

.ntcg-kids-hub__qr-btn {
    background: #0FACB2;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(15, 172, 178, 0.25);
}

.ntcg-kids-hub__qr-btn:hover {
    background: #0d9399;
    transform: translateY(-1px);
}

.ntcg-kids-hub__qr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── QR Code Overlay ───────────────────────────────────────── */
.ntcg-kids-qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.ntcg-kids-qr-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    flex-shrink: 0;
}

.ntcg-kids-qr-overlay__title {
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.ntcg-kids-qr-overlay__close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.ntcg-kids-qr-overlay__viewport {
    flex: 1;
    overflow: hidden;
}

.ntcg-kids-qr-overlay__carousel {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.ntcg-kids-qr-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 12px;
}

.ntcg-kids-qr-slide__name {
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
}

.ntcg-kids-qr-slide__class {
    color: #0facb2;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ntcg-kids-qr-slide__qr {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntcg-kids-qr-slide__qr svg {
    width: 220px;
    height: 220px;
}

.ntcg-kids-qr-slide__ref {
    color: #ffffff;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-top: 4px;
}

/* Nav */
.ntcg-kids-qr-overlay__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-shrink: 0;
}

.ntcg-kids-qr-overlay__arrow {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.ntcg-kids-qr-overlay__arrow:hover {
    border-color: #0facb2;
}

.ntcg-kids-qr-overlay__dots {
    display: flex;
    gap: 8px;
}

.ntcg-kids-qr-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s ease;
}

.ntcg-kids-qr-dot--active {
    background: #0facb2;
}

/* ── Admin Overview Stats ────────────────────────────────────── */
.ntcg-kids-stat-card {
    transition: box-shadow 0.2s ease;
}

.ntcg-kids-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ntcg-kids-stat-card--primary {
    border-top: 3px solid #0facb2;
}

.ntcg-kids-stat-card--accent {
    border-top: 3px solid #f7c70c;
}

.ntcg-kids-stat-card--dark {
    border-top: 3px solid #30373b;
}

/* ── Admin Table Enhancements ────────────────────────────────── */
.ntcg-kids-admin-table .child-details {
    display: none;
    padding: 12px 16px;
    background: #f9fafb;
}

.ntcg-kids-admin-table .child-details.is-open {
    display: table-row;
}

.ntcg-kids-admin-table .toggle-children {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #0facb2;
    font-weight: 600;
}

.ntcg-kids-admin-table .toggle-children:hover {
    background: #f0fafb;
}

/* ── Admin Filters ───────────────────────────────────────────── */
.ntcg-kids-admin-filters .filter-btn {
    background: #0facb2;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ntcg-kids-admin-filters .filter-btn:hover {
    background: #0d8f94;
}

.ntcg-kids-admin-export {
    margin-left: auto;
}

.ntcg-kids-admin-export a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #30373b;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ntcg-kids-admin-export a:hover {
    background: #1f2427;
    color: #ffffff;
}

/* ── Admin Recent List ───────────────────────────────────────── */
.ntcg-kids-recent-list {
    margin-top: 24px;
}

.ntcg-kids-recent-list h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #30373b;
}

/* ── Admin Empty State ───────────────────────────────────────── */
.ntcg-kids-empty {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
}

.ntcg-kids-empty p {
    font-size: 1rem;
    margin: 0;
}

/* ── Admin Portal ───────────────────────────────────────────── */
.ntcg-kids-admin-portal {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 0 100px;
    min-height: 100svh;
    background: #F5F5F7;
}

/* Header — branded app bar, fixed */
.ntcg-kids-ap__header {
    background: #1A1A6E;
    padding: calc(env(safe-area-inset-top, 8px) + 8px) 16px 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 800;
}

.ntcg-kids-ap__header + * {
    padding-top: 0;
}

/* Force all elements inside header to be white */
.ntcg-kids-ap__header,
.ntcg-kids-ap__header a,
.ntcg-kids-ap__header svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF;
}

.ntcg-kids-ap__header-top {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
}

.ntcg-kids-ap__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ntcg-kids-ap__brand-text {
    font-family: 'Lilita One', cursive;
    font-weight: 400;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1;
}

.ntcg-kids-ap__header-spacer {
    flex: 1;
}
.ntcg-kids-ap__menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.ntcg-kids-ap__menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1A1A6E;
    z-index: 900;
    display: flex;
    flex-direction: column;
}
.ntcg-kids-ap__menu-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: calc(env(safe-area-inset-top, 16px) + 16px) 28px 28px;
    overflow-y: auto;
}
.ntcg-kids-ap__menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.ntcg-kids-ap__menu-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.ntcg-kids-ap__menu-link {
    display: block;
    padding: 14px 0;
    font-family: 'Lilita One', 'Arial Black', Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #0FACB2;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.ntcg-kids-ap__menu-link:nth-child(2) { color: #FF8C00; }
.ntcg-kids-ap__menu-link:nth-child(3) { color: #FF3B7A; }
.ntcg-kids-ap__menu-link:active {
    opacity: 0.7;
}

.ntcg-kids-ap__signout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #FFFFFF !important;
    opacity: 0.7;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.ntcg-kids-ap__signout-link:hover {
    background: rgba(255,255,255,0.1);
    opacity: 1;
}

/* Inline burger — flows inside header instead of fixed position */
.ntcg-kids-burger--inline {
    position: static;
    flex-shrink: 0;
}

.ntcg-kids-burger--inline span {
    background: #FFFFFF;
}

/* Content panel padding */
.ntcg-kids-ap__panel {
    padding: calc(env(safe-area-inset-top, 8px) + 76px) 16px 0;
}

.ntcg-kids-ap__header-actions {
    display: flex;
    gap: 12px;
}

.ntcg-kids-ap__link {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0facb2;
    text-decoration: none;
}

.ntcg-kids-ap__link:hover {
    text-decoration: underline;
}

.ntcg-kids-ap__link--muted {
    color: #9ca3af;
}

/* ── Floating bottom tab bar (app-style pill nav) ──────────── */
.ntcg-kids-ap__tabs {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    padding: 5px;
    background: #1A1A6E;
    border-radius: 999px;
    z-index: 900;
    box-shadow: 0 8px 32px rgba(26, 26, 110, 0.35);
    max-width: 380px;
    width: calc(100% - 40px);
}

.ntcg-kids-ap__tab {
    flex: 1;
    padding: 10px 6px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ntcg-kids-ap__tab--active {
    background: #0FACB2;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(15, 172, 178, 0.3);
}

/* Stats bar — horizontal pill cards */
.ntcg-kids-ap__stats {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.ntcg-kids-ap__stat {
    flex: 1;
    text-align: center;
    padding: 14px 8px 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ntcg-kids-ap__stat--in {
    border-color: #0FACB2;
}

.ntcg-kids-ap__stat--out {
    border-color: #FF8C00;
}

.ntcg-kids-ap__stat--waiting {
    border-color: #d1d5db;
}

.ntcg-kids-ap__stat-num {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #30373B;
    line-height: 1;
    margin-bottom: 2px;
}

.ntcg-kids-ap__stat--in .ntcg-kids-ap__stat-num {
    color: #0FACB2;
}

.ntcg-kids-ap__stat--out .ntcg-kids-ap__stat-num {
    color: #FF8C00;
}

.ntcg-kids-ap__stat--waiting .ntcg-kids-ap__stat-num {
    color: #9ca3af;
}

.ntcg-kids-ap__stat-label {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections */
.ntcg-kids-ap__section {
    margin-bottom: 20px;
}

.ntcg-kids-ap__section-title {
    font-family: 'Lilita One', cursive;
    font-weight: 400;
    font-size: 16px;
    color: #1A1A6E;
    margin: 0 0 12px;
}

/* Form controls — clean rounded inputs */
.ntcg-kids-ap__label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ntcg-kids-ap__select,
.ntcg-kids-ap__input,
.ntcg-kids-ap__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: #30373B;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.ntcg-kids-ap__select:focus,
.ntcg-kids-ap__input:focus,
.ntcg-kids-ap__textarea:focus {
    outline: none;
    border-color: #0facb2;
    box-shadow: 0 0 0 4px rgba(15, 172, 178, 0.1);
}

.ntcg-kids-ap__input--mono {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ntcg-kids-ap__textarea {
    resize: vertical;
    min-height: 60px;
}

.ntcg-kids-ap__field {
    margin-bottom: 14px;
}

/* Buttons — rounded pill style */
.ntcg-kids-ap__btn {
    padding: 11px 24px;
    border: none;
    border-radius: 14px;
    background: #30373B;
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ntcg-kids-ap__btn:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.ntcg-kids-ap__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ntcg-kids-ap__btn--full {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
}

.ntcg-kids-ap__btn--small {
    padding: 7px 16px;
    font-size: 12px;
    margin-top: 8px;
    border-radius: 10px;
}

.ntcg-kids-ap__btn--accent {
    background: #0facb2;
}

.ntcg-kids-ap__btn--accent:hover {
    background: #0d8f94;
}

/* Scan button — prominent CTA */
.ntcg-kids-ap__scan-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: #0facb2;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(15, 172, 178, 0.3);
}

.ntcg-kids-ap__scan-btn:hover {
    background: #0d8f94;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 172, 178, 0.35);
}

.ntcg-kids-ap__scan-btn--active {
    background: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.ntcg-kids-ap__scan-btn--active:hover {
    background: #dc2626;
}

/* Scanner viewfinder */
.ntcg-kids-ap__scanner {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
}

/* Manual lookup row */
.ntcg-kids-ap__lookup {
    display: flex;
    gap: 8px;
}

.ntcg-kids-ap__lookup .ntcg-kids-ap__input {
    flex: 1;
}

/* Result banner — floating toast style */
.ntcg-kids-ap__result {
    padding: 14px 18px;
    border-radius: 14px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    animation: ntcg-ap-slide-in 0.3s ease;
}

.ntcg-kids-ap__result--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ntcg-kids-ap__result--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ntcg-kids-ap__result--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.ntcg-kids-ap__result--warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Window status indicator */
.ntcg-kids-ap__window-status {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    margin: 0 16px 8px;
}
.ntcg-kids-ap__window-status--open {
    background: #ecfdf5;
    color: #065f46;
}
.ntcg-kids-ap__window-status--checkout {
    background: #eff6ff;
    color: #1e40af;
}
.ntcg-kids-ap__window-status--closed {
    background: #f3f4f6;
    color: #6b7280;
}
.ntcg-kids-ap__window-status--pending {
    background: #fffbeb;
    color: #92400e;
}

/* Dashboard total bar */
.ntcg-kids-ap__dash-total {
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
    text-align: center;
}

/* Stats — expected */
.ntcg-kids-ap__stat--expected {
    border-top: 3px solid #9ca3af;
}

/* Standby row */
.ntcg-kids-ap__standby-row {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    margin-bottom: 12px;
}
.ntcg-kids-ap__standby-box {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}
.ntcg-kids-ap__standby-box--inactive {
    background: #f9fafb;
    opacity: 0.4;
}
.ntcg-kids-ap__standby-box--active {
    background: #fef3c7;
    border-color: #f59e0b;
    opacity: 1;
}
.ntcg-kids-ap__standby-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #92400e;
}
.ntcg-kids-ap__standby-box--inactive .ntcg-kids-ap__standby-num {
    color: #9ca3af;
}
.ntcg-kids-ap__standby-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6b7280;
    margin-top: 2px;
}

/* Wristband colour indicators */
.ntcg-kids-band {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.ntcg-kids-band--blue {
    background: #3b82f6;
    color: #fff;
}
.ntcg-kids-band--red {
    background: #ef4444;
    color: #fff;
}
.ntcg-kids-band--yellow {
    background: #facc15;
    color: #1a1a1a;
}
.ntcg-kids-band--black {
    background: #1a1a1a;
    color: #fff;
}
.ntcg-kids-band__badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(255,255,255,0.3);
}
.ntcg-kids-band__badge--no-photo {
    background: rgba(0,0,0,0.2);
}

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

/* Child card — elevated card style */
.ntcg-kids-ap__child-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.ntcg-kids-ap__child-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}

.ntcg-kids-ap__child-card-header strong {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #30373B;
}

.ntcg-kids-ap__child-card-ref {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 11px;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 8px;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.ntcg-kids-ap__child-card-meta {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.ntcg-kids-ap__child-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ntcg-kids-ap__status {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
}

.ntcg-kids-ap__status--in {
    background: #ecfdf5;
    color: #059669;
}

.ntcg-kids-ap__status--out {
    background: #f5f5f5;
    color: #9ca3af;
}

/* Announcement form card */
.ntcg-kids-ap__ann-form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Announcement target line */
.ntcg-kids-ap__ann-target {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #0facb2;
    margin: 4px 0 0;
}

/* Announcement cards */
.ntcg-kids-ap__ann-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

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

.ntcg-kids-ap__ann-delete {
    display: block;
    margin: 10px 0 0 auto;
    padding: 4px 14px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    background: transparent;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
}

.ntcg-kids-ap__ann-delete:active {
    background: #fef2f2;
}

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

.ntcg-kids-ap__ann-badge {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #6b7280;
}

.ntcg-kids-ap__ann-badge--urgent {
    background: #fecaca;
    color: #991b1b;
}

.ntcg-kids-ap__ann-badge--class {
    background: #dbeafe;
    color: #1d4ed8;
}

.ntcg-kids-ap__ann-badge--child {
    background: #ede9fe;
    color: #6d28d9;
}

.ntcg-kids-ap__ann-time {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #c4c4c4;
}

.ntcg-kids-ap__ann-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #30373B;
    margin: 0 0 4px;
}

.ntcg-kids-ap__ann-body {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Empty state */
.ntcg-kids-ap__empty {
    text-align: center;
    color: #c4c4c4;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    padding: 32px 0;
    margin: 0;
}

/* ── PIN Modal ──────────────────────────────────────────────── */

.ntcg-kids-ap__pin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.ntcg-kids-ap__pin-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 28px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.ntcg-kids-ap__pin-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #30373B;
    margin: 0 0 4px;
}

.ntcg-kids-ap__pin-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 28px;
}

.ntcg-kids-ap__pin-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.ntcg-kids-ap__pin-digit {
    width: 56px;
    height: 62px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    text-align: center;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 26px;
    font-weight: 700;
    color: #30373B;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.ntcg-kids-ap__pin-digit:focus {
    outline: none;
    border-color: #0facb2;
    box-shadow: 0 0 0 4px rgba(15, 172, 178, 0.12);
    background: #ffffff;
}

.ntcg-kids-ap__pin-error {
    color: #dc2626;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.ntcg-kids-ap__pin-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ntcg-kids-ap__btn--secondary {
    background: #f3f4f6;
    color: #374151;
}

.ntcg-kids-ap__btn--secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.ntcg-kids-ap__pin-card--shake {
    animation: ntcg-ap-shake 0.4s ease;
}

@keyframes ntcg-ap-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* ── Child Details Panel ───────────────────────────────────── */

.ntcg-kids-ap__details-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 88vh;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow-y: auto;
    animation: ntcg-ap-slide-up 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    -webkit-overflow-scrolling: touch;
}

@keyframes ntcg-ap-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.ntcg-kids-ap__details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
}

.ntcg-kids-ap__details-back {
    border: none;
    background: none;
    padding: 0;
    color: #30373B;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ntcg-kids-ap__details-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #30373B;
    margin: 0;
    flex: 1;
}

.ntcg-kids-ap__details-close {
    border: none;
    background: #f3f4f6;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.ntcg-kids-ap__details-close:hover {
    background: #e5e7eb;
}

.ntcg-kids-ap__details-content {
    padding: 16px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Child details: card container ───────────────────────────── */
.ntcg-kids-ap__det-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 16px;
    border: 1px solid #f0f0f0;
}

/* ── Child info row (avatar + name) ──────────────────────────── */
.ntcg-kids-ap__det-child-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ntcg-kids-ap__det-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0facb2;
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ntcg-kids-ap__det-child-info {
    flex: 1;
    min-width: 0;
}

.ntcg-kids-ap__det-child-name {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #30373B;
    margin: 0 0 2px;
}

.ntcg-kids-ap__det-child-meta {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 6px;
}

.ntcg-kids-ap__det-child-ref {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

/* ── Status card (checked-in state) ──────────────────────────── */
.ntcg-kids-ap__det-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    border: 1.5px solid #22c55e;
    border-radius: 12px;
    padding: 12px 16px;
}

.ntcg-kids-ap__det-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.ntcg-kids-ap__det-status-text {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    flex: 1;
}

.ntcg-kids-ap__det-status-session {
    background: #dcfce7;
    color: #166534;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

/* ── Section card header (icon + title) ──────────────────────── */
.ntcg-kids-ap__det-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ntcg-kids-ap__det-card-header strong {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #30373B;
}

.ntcg-kids-ap__det-card-icon {
    font-size: 16px;
    line-height: 1;
}

/* ── Detail field (label above value) ────────────────────────── */
.ntcg-kids-ap__det-field {
    margin-bottom: 12px;
}

.ntcg-kids-ap__det-field:last-child {
    margin-bottom: 0;
}

.ntcg-kids-ap__det-field-label {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: none;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
}

.ntcg-kids-ap__det-field-value {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #30373B;
}

.ntcg-kids-ap__det-field-value--alert {
    color: #dc2626;
    font-weight: 700;
}

/* ── Tappable link values (phone, email) ─────────────────────── */
.ntcg-kids-ap__det-link {
    color: #0facb2 !important;
    text-decoration: none;
    font-weight: 600;
}

/* ── Parent / Guardian detail rows ───────────────────────────── */
.ntcg-kids-ap__details-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    border-bottom: 1px solid #f8f8f8;
}

.ntcg-kids-ap__details-label {
    color: #9ca3af;
    font-weight: 500;
}

.ntcg-kids-ap__details-value {
    color: #30373B;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* ── Emergency contact boxes ─────────────────────────────────── */
.ntcg-kids-ap__det-ec-box {
    background: #fffbeb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.ntcg-kids-ap__det-ec-box:last-child {
    margin-bottom: 0;
}

.ntcg-kids-ap__det-ec-name {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #30373B;
    margin-bottom: 4px;
}

.ntcg-kids-ap__det-ec-phone {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #0facb2;
    font-weight: 600;
}

.ntcg-kids-ap__det-ec-phone a {
    color: #0facb2;
    text-decoration: none;
}

/* ── Consent badges ──────────────────────────────────────────── */
.ntcg-kids-ap__det-consent-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ntcg-kids-ap__det-consent-badges span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.ntcg-kids-ap__details-consent {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.ntcg-kids-ap__details-consent--yes {
    background: #ecfdf5;
    color: #059669;
}

.ntcg-kids-ap__details-consent--no {
    background: #fef2f2;
    color: #dc2626;
}

/* Tappable child name in cards */
.ntcg-kids-ap__child-name-link {
    color: #0facb2;
    cursor: pointer;
    border-bottom: 1.5px dashed rgba(15, 172, 178, 0.4);
    transition: border-color 0.15s ease, background 0.15s ease;
    padding: 1px 4px;
    border-radius: 4px;
    margin: -1px -4px;
}

.ntcg-kids-ap__child-name-link:hover {
    border-bottom-color: #0facb2;
    background: rgba(15, 172, 178, 0.06);
}

.ntcg-kids-ap__child-name-link::after {
    content: ' \203A';
    font-size: 1.1em;
    opacity: 0.5;
}

/* ── Class Capacity / Dashboard ─────────────────────────────── */

.ntcg-kids-ap__capacity-heading {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #30373B;
    margin: 0 0 12px;
}

.ntcg-kids-ap__dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ntcg-kids-ap__dash-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.15s ease;
}

.ntcg-kids-ap__dash-card-info {
    flex: 1;
}

.ntcg-kids-ap__dash-class-name {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #30373B;
    margin: 0 0 3px;
}

.ntcg-kids-ap__dash-count {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.ntcg-kids-ap__dash-count strong {
    color: #30373B;
    font-weight: 700;
}

.ntcg-kids-ap__dash-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ntcg-kids-ap__dash-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.ntcg-kids-ap__dash-dot--green  { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.ntcg-kids-ap__dash-dot--amber  { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }
.ntcg-kids-ap__dash-dot--red    { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }

.ntcg-kids-ap__dash-workers {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f0ff;
    color: #6d28d9;
    white-space: nowrap;
}

/* Hide footer in admin portal — floating nav replaces it */
.ntcg-kids-admin-portal .ntcg-kids-footer {
    display: none;
}

/* ── Responsive: Tablet ──────────────────────────────────────── */
@media (max-width: 768px) {
    .ntcg-kids-form__row {
        grid-template-columns: 1fr;
    }

    .ntcg-kids-admin-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .ntcg-kids-admin-export {
        margin-left: 0;
    }

    .ntcg-kids-admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Sidebar: hidden on mobile ──────────────────────────────── */
.ntcg-kids-sidebar {
    display: none;
}

/* ════════════════════════════════════════════════════════════════
   DESKTOP LAYOUTS (≥ 1024px)
   ════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {

    /* Hide mobile burger on desktop */
    .ntcg-kids-burger {
        display: none;
    }

    /* ── Admin Portal ────────────────────────────────────────── */

    .ntcg-kids-admin-portal {
        display: grid;
        grid-template-columns: 1fr 380px;
        grid-template-rows: auto 1fr;
        max-width: none;
        padding: 0;
        min-height: 100vh;
    }

    .ntcg-kids-ap__header {
        grid-column: 1 / -1;
    }

    /* Hide floating tab bar on desktop */
    .ntcg-kids-ap__tabs {
        display: none !important;
    }

    /* Check-in panel fills the left */
    #ntcg-kids-ap-checkin {
        grid-column: 1;
        grid-row: 2;
        padding: 24px 28px;
        overflow-y: auto;
    }

    /* Right panel: announcements and notes share the space */
    #ntcg-kids-ap-announcements,
    #ntcg-kids-ap-notes {
        grid-column: 2;
        grid-row: 2;
        padding: 24px 28px;
        border-left: 1px solid #e5e7eb;
        overflow-y: auto;
    }

    #ntcg-kids-ap-announcements {
        display: block !important;
    }

    /* Desktop right-panel tab switcher */
    .ntcg-kids-ap__right-tabs {
        display: flex;
        gap: 0;
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        border-left: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        z-index: 2;
    }

    .ntcg-kids-ap__right-tab {
        flex: 1;
        padding: 10px 12px;
        border: none;
        background: #f9fafb;
        font-family: 'Jost', sans-serif;
        font-weight: 600;
        font-size: 13px;
        color: #9ca3af;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .ntcg-kids-ap__right-tab:hover {
        color: #374151;
        background: #f3f4f6;
    }

    .ntcg-kids-ap__right-tab--active {
        color: #0facb2;
        background: #fff;
        border-bottom: 2px solid #0facb2;
    }

    /* When right tabs exist, panels need to clear them */
    .ntcg-kids-ap__right-tabs + #ntcg-kids-ap-announcements,
    .ntcg-kids-ap__right-tabs ~ #ntcg-kids-ap-notes {
        grid-row: 2;
        padding-top: 56px;
    }

    /* Modals & overlays span full grid */
    .ntcg-kids-ap__pin-overlay,
    .ntcg-kids-ap__details-panel {
        grid-column: 1 / -1;
    }

    /* Show footer on desktop */
    .ntcg-kids-admin-portal .ntcg-kids-footer {
        display: block;
        grid-column: 1 / -1;
        text-align: center;
        padding: 12px;
        border-top: 1px solid #e5e7eb;
        color: #9ca3af;
    }

    .ntcg-kids-admin-portal .ntcg-kids-footer a {
        color: #0facb2;
    }

    /* Wider scan button with max-width */
    .ntcg-kids-ap__scan-btn {
        max-width: 320px;
    }

    /* Class capacity grid in 2 columns */
    .ntcg-kids-ap__dash-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* ── Desktop Sidebar ────────────────────────────────────── */

    .ntcg-kids-sidebar {
        display: none;
    }

    .ntcg-kids-sidebar__logo {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-bottom: 24px;
    }

    .ntcg-kids-sidebar__logo-img {
        height: 22px;
        width: auto;
    }

    .ntcg-kids-sidebar__divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.08);
    }

    .ntcg-kids-sidebar__nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding-top: 16px;
    }

    .ntcg-kids-sidebar__link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        font-family: 'Jost', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: background 0.15s ease;
    }

    .ntcg-kids-sidebar__link:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }

    .ntcg-kids-sidebar__link--active {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        font-weight: 600;
    }

    .ntcg-kids-sidebar__spacer {
        flex: 1;
    }

    .ntcg-kids-sidebar__footer {
        font-family: 'Jost', sans-serif;
        font-size: 12px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.45);
    }

    /* ── Family Hub ──────────────────────────────────────────── */

    .ntcg-kids--light {
        display: flex;
        min-height: 100vh;
    }

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

    .ntcg-kids-hub {
        max-width: none;
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .ntcg-kids-hub__header {
        padding-top: 48px;
    }

    .ntcg-kids-hub__dashboard {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .ntcg-kids-hub__dashboard .ntcg-kids-hub__card {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr 380px;
        grid-template-rows: auto auto auto auto auto;
        padding: 0;
        max-width: none;
    }

    .ntcg-kids-hub__family-bar {
        grid-column: 1 / -1;
        grid-row: 1;
        background: #ffffff;
        padding: 14px 28px;
        border-bottom: 1px solid #e5e7eb;
    }

    .ntcg-kids-hub__qr-trigger {
        grid-column: 1;
        grid-row: 2;
        padding: 20px 28px 12px;
        margin: 0;
    }

    #ntcg-kids-hub-children {
        grid-column: 1;
        grid-row: 3;
        padding: 0 28px 12px;
        margin: 0;
    }

    #ntcg-kids-hub-tasks {
        grid-column: 1;
        grid-row: 4;
        padding: 0 28px;
        margin: 0;
    }

    .ntcg-kids-hub__announcements {
        grid-column: 2;
        grid-row: 2 / 6;
        align-self: stretch;
        padding: 20px 28px;
        border-left: 1px solid #e5e7eb;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .ntcg-kids-hub__poll-status {
        grid-column: 1;
        grid-row: 5;
        padding: 8px 28px;
        margin: 0;
    }

    .ntcg-kids-hub__session-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ntcg-kids-hub-page .ntcg-kids-footer {
        text-align: center;
        padding: 12px;
        border-top: 1px solid #e5e7eb;
    }

    .ntcg-kids-hub__auth {
        padding: 48px 24px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .ntcg-kids-hub__auth .ntcg-kids-hub__card {
        max-width: 480px;
        width: 100%;
    }

    /* ── Registration ────────────────────────────────────────── */

    .ntcg-kids-register-page {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .ntcg-kids-register {
        max-width: 760px;
        margin: 0 auto;
        padding: 40px 32px;
        width: 100%;
    }

    /* Keep 2-column form rows on desktop */
    .ntcg-kids-form__row {
        grid-template-columns: 1fr 1fr;
    }

    /* ── Desktop modals: centred floating instead of bottom sheet ── */

    .ntcg-kids-hub__ann-modal {
        bottom: auto;
        left: 50%;
        top: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        max-height: 80vh;
        max-width: 560px;
        width: calc(100% - 80px);
        border-radius: 16px;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
        animation: ntcg-hub-modal-pop 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .ntcg-kids-hub__ann-modal-header {
        border-radius: 16px 16px 0 0;
    }

    .ntcg-kids-hub__form-panel {
        bottom: auto;
        left: 50%;
        top: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        max-height: 85vh;
        max-width: 600px;
        width: calc(100% - 80px);
        border-radius: 16px;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
        animation: ntcg-hub-modal-pop 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .ntcg-kids-hub__form-panel-header {
        border-radius: 16px 16px 0 0;
    }

    .ntcg-kids-qr-overlay {
        border-radius: 16px;
        max-width: 480px;
        width: calc(100% - 80px);
        max-height: 85vh;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    }

    @keyframes ntcg-hub-modal-pop {
        from { opacity: 0; transform: translate(-50%, -45%); }
        to   { opacity: 1; transform: translate(-50%, -50%); }
    }
}

/* ── Print Styles ────────────────────────────────────────────── */
@media print {
    .ntcg-kids-burger,
    .ntcg-kids-nav,
    .ntcg-kids-cta,
    .ntcg-kids-footer,
    .ntcg-kids-admin-filters,
    .ntcg-kids-admin-export {
        display: none !important;
    }

    .ntcg-kids-admin-table {
        border: 1px solid #000;
    }

    .ntcg-kids-admin-table th,
    .ntcg-kids-admin-table td {
        border: 1px solid #ccc;
    }
}
