:root {
    --nohil-primary: #008751;
    --nohil-primary-dark: #006d41;
    --nohil-primary-light: #e8f6ef;
    --nohil-secondary: #0b5c3a;
    --nohil-accent: #008751;
    --nohil-background: #f4f7f5;
    --nohil-surface: #ffffff;
    --nohil-text: #12231b;
    --nohil-muted: #5b6b63;
    --nohil-border: #d7e4dc;
    --nohil-success: #0f7a45;
    --nohil-warning: #b7791f;
    --nohil-danger: #b42318;
    --nohil-info: #1a6b8a;
    --nohil-radius: 14px;
    --nohil-radius-sm: 10px;
    --nohil-shadow: 0 8px 24px rgba(18, 35, 27, 0.06);
    --nohil-header-h: 68px;
    --nohil-font: "Segoe UI", Roboto, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.nohil-body {
    font-family: var(--nohil-font);
    color: var(--nohil-text);
    background: var(--nohil-background);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.nohil-skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--nohil-primary);
    color: #fff;
    padding: 8px 12px;
    z-index: 1000;
}
.nohil-skip:focus {
    left: 8px;
}

.nohil-topbar {
    background: var(--nohil-surface);
    border-bottom: 1px solid var(--nohil-border);
    position: sticky;
    top: 0;
    z-index: 40;
}
.nohil-topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--nohil-header-h);
}
.nohil-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nohil-secondary);
    text-decoration: none;
    font-weight: 700;
}
.nohil-brand:hover { color: var(--nohil-primary-dark); text-decoration: none; }
.nohil-brand img { width: 42px; height: 42px; object-fit: contain; }
.nohil-brand-text { line-height: 1.15; }
.nohil-brand-text small {
    display: block;
    font-weight: 500;
    color: var(--nohil-muted);
    font-size: 0.72rem;
}

.nohil-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.nohil-nav a,
.nohil-nav .nav-link {
    color: var(--nohil-text);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}
.nohil-nav a:hover,
.nohil-nav .nav-link:hover {
    background: var(--nohil-primary-light);
    color: var(--nohil-primary-dark);
    text-decoration: none;
}
.nohil-nav .is-active {
    background: var(--nohil-primary-light);
    color: var(--nohil-primary-dark);
}

.nohil-menu-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--nohil-border);
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    color: var(--nohil-secondary);
}

.nohil-main {
    flex: 1;
    width: 100%;
}
.nohil-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}
.nohil-page-narrow {
    max-width: 480px;
    margin: 32px auto;
    padding: 0 16px 48px;
}

.nohil-card {
    background: var(--nohil-surface);
    border: 1px solid var(--nohil-border);
    border-radius: var(--nohil-radius);
    padding: 24px;
}
.nohil-page-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--nohil-border);
}
.nohil-page-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--nohil-border);
    border-radius: 14px;
    padding: 6px;
}
.nohil-page-brand .hospital {
    margin: 0 0 2px;
    font-weight: 700;
    color: var(--nohil-primary);
    font-size: 0.92rem;
}
.nohil-page-brand h1 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--nohil-secondary);
}
.nohil-page-brand .nohil-meta { margin: 0; }
@media (max-width: 600px) {
    .nohil-page-brand {
        flex-direction: column;
        text-align: center;
    }
}
.form-control.is-invalid {
    border-color: var(--nohil-danger);
    background: #fff8f8;
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}
.nohil-field-error {
    color: var(--nohil-danger);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
}
.nohil-wizard-alert {
    display: none;
    background: #fdecec;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 600;
}
.nohil-wizard-alert.is-visible { display: block; }
.nohil-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.nohil-choice label {
    display: block;
    margin: 0;
    padding: 14px 16px;
    border: 1.5px solid var(--nohil-border);
    border-radius: 12px;
    background: #fbfdfc;
    cursor: pointer;
    font-weight: 600;
}
.nohil-choice label span {
    display: block;
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--nohil-muted);
    margin-top: 4px;
}
.nohil-choice input {
    margin-right: 8px;
}
.nohil-choice label.is-selected {
    border-color: var(--nohil-primary);
    background: var(--nohil-primary-light);
    color: var(--nohil-primary-dark);
}
.nohil-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1.5px solid var(--nohil-border);
    border-radius: 12px;
    background: #fbfdfc;
}
.nohil-check input { width: 18px; height: 18px; margin: 0; }
.nohil-check label { margin: 0; font-weight: 600; }
.form-step-title { margin-bottom: 4px; }
.form-step-help { color: var(--nohil-muted); font-size: 0.9rem; margin-bottom: 16px; }
@media (max-width: 600px) {
    .nohil-choice { grid-template-columns: 1fr; }
}
.nohil-card-hover:hover {
    border-color: #b8d4c6;
}

.btn-primary,
.btn-nohil {
    background: var(--nohil-primary);
    border-color: var(--nohil-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 18px;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-nohil:hover,
.btn-nohil:focus {
    background: var(--nohil-primary-dark);
    border-color: var(--nohil-primary-dark);
    color: #fff;
}
.btn-primary:disabled,
.btn-nohil:disabled {
    opacity: 0.65;
}
.btn-outline-nohil {
    color: var(--nohil-primary);
    border: 1.5px solid var(--nohil-primary);
    background: #fff;
    font-weight: 600;
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 18px;
}
.btn-outline-nohil:hover {
    background: var(--nohil-primary-light);
    color: var(--nohil-primary-dark);
}
.btn-success {
    background: var(--nohil-primary);
    border-color: var(--nohil-primary);
}
.btn-success:hover {
    background: var(--nohil-primary-dark);
    border-color: var(--nohil-primary-dark);
}

a { color: var(--nohil-primary); }
a:hover { color: var(--nohil-primary-dark); }

label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--nohil-text);
    margin-bottom: 6px;
}
.form-group {
    margin-bottom: 1.1rem;
}
.form-control,
.custom-select {
    min-height: 46px;
    border: 1.5px solid var(--nohil-border);
    border-radius: 12px;
    background: #fbfdfc;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--nohil-text);
    width: 100%;
}
.form-control::placeholder,
textarea.form-control::placeholder {
    color: #8a9a93;
    opacity: 1;
}
.form-control:hover,
.custom-select:hover {
    border-color: #b8d4c6;
    background: #fff;
}
.form-control:focus,
.custom-select:focus {
    border-color: var(--nohil-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 135, 81, 0.14);
    outline: 0;
}
.form-control:disabled,
.form-control[readonly] {
    background: #f0f4f2;
    color: var(--nohil-muted);
}
textarea.form-control {
    min-height: 108px;
    resize: vertical;
    line-height: 1.45;
}
select.form-control {
    -webkit-appearance: none;
    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='%23008751' d='M1.4.3 6 4.9 10.6.3 12 1.7 6 7.7 0 1.7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 40px;
}
.form-hint,
.form-text {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--nohil-muted);
    font-weight: 500;
}
.nohil-form-section {
    margin: 8px 0 20px;
    padding-top: 18px;
    border-top: 1px solid var(--nohil-border);
}
.nohil-form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.nohil-form-section h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--nohil-secondary);
    margin-bottom: 4px;
}
.nohil-form-section p {
    font-size: 0.85rem;
    color: var(--nohil-muted);
    margin-bottom: 14px;
}
.nohil-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}
.nohil-form-grid .span-2 {
    grid-column: 1 / -1;
}
.nohil-input-affix {
    position: relative;
}
.nohil-input-affix .form-control {
    padding-left: 36px;
}
.nohil-input-affix .affix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nohil-muted);
    font-weight: 700;
    pointer-events: none;
}
.nohil-search-bar {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 1.25rem;
}
.nohil-search-bar .form-control {
    flex: 1;
}
@media (max-width: 700px) {
    .nohil-form-grid {
        grid-template-columns: 1fr;
    }
    .nohil-search-bar {
        flex-direction: column;
    }
}

.nohil-alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 600;
}
.nohil-alert-success { background: #e8f6ef; color: #155724; border: 1px solid #c3e6cb; }
.nohil-alert-error { background: #fdecec; color: #721c24; border: 1px solid #f5c6cb; }
.nohil-alert-info { background: var(--nohil-primary-light); color: var(--nohil-secondary); border: 1px solid var(--nohil-border); }
.nohil-alert-warning { background: #fff8e6; color: #7a5b00; border: 1px solid #f5e0a3; }

.nohil-footer {
    background: var(--nohil-secondary);
    color: #e8f6ef;
    padding: 28px 16px;
    margin-top: auto;
}
.nohil-footer a { color: #fff; }
.nohil-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    align-items: center;
}
.nohil-footer small { color: #c5ddd1; }

/* Hero */
.nohil-hero {
    background: var(--nohil-secondary);
    color: #fff;
    padding: 48px 16px 56px;
    position: relative;
    overflow: hidden;
}
.nohil-hero:after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border: 24px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}
.nohil-hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}
.nohil-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 750;
    line-height: 1.2;
    margin-bottom: 12px;
}
.nohil-hero p.lead {
    color: #d7eee3;
    font-size: 1.05rem;
    max-width: 36rem;
}
.nohil-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nohil-hero .btn-primary { background: #fff; color: var(--nohil-secondary); border-color: #fff; }
.nohil-hero .btn-primary:hover { background: var(--nohil-primary-light); color: var(--nohil-secondary); }
.nohil-hero .btn-outline-nohil { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.nohil-hero .btn-outline-nohil:hover { background: rgba(255,255,255,.12); color: #fff; }
.nohil-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
    font-size: 0.88rem;
    color: #c5ddd1;
}
.nohil-hero-panel {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    padding: 22px;
}
.nohil-hero-panel h2 { font-size: 1.05rem; margin-bottom: 12px; }
.nohil-hero-panel ol { margin: 0; padding-left: 18px; color: #d7eee3; }
.nohil-hero-panel li { margin: 8px 0; }

.nohil-section { padding: 48px 16px; }
.nohil-section-inner { max-width: 1120px; margin: 0 auto; }
.nohil-section h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: 8px; }
.nohil-kicker { color: var(--nohil-primary); font-weight: 700; font-size: 0.8rem; letter-spacing: .04em; text-transform: uppercase; }

.nohil-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.nohil-icon-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--nohil-primary-light);
    color: var(--nohil-primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.nohil-queue {
    margin-bottom: 12px;
}
.nohil-queue-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--nohil-primary, #008751);
    line-height: 1;
    letter-spacing: -0.03em;
}
.nohil-queue-of {
    color: var(--nohil-muted);
    font-size: 0.92rem;
    margin: 4px 0 0;
}

.nohil-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.nohil-badge.is-pending { background: #fff4d6; color: #7a5b12; }
.nohil-badge.is-confirmed { background: #e8f6ef; color: #0f7a45; }
.nohil-badge.is-rescheduled { background: #e7f2fb; color: #1a6b8a; }
.nohil-badge.is-checkedin { background: #e8f6ef; color: #0b5c3a; }
.nohil-badge.is-completed { background: #eef0ef; color: #334139; }
.nohil-badge.is-cancelled { background: #fdecec; color: #b42318; }
.nohil-badge.is-noshow { background: #f3e8e8; color: #7a271a; }

.nohil-appt-card {
    border: 1px solid var(--nohil-border);
    border-radius: var(--nohil-radius);
    padding: 20px;
    background: #fff;
    margin-bottom: 16px;
}
.nohil-appt-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.nohil-meta { color: var(--nohil-muted); font-size: 0.92rem; }
.nohil-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.nohil-empty {
    text-align: center;
    padding: 40px 16px;
    border: 1px dashed var(--nohil-border);
    border-radius: var(--nohil-radius);
    background: #fff;
}
.nohil-empty h3 { margin-bottom: 8px; }

.nohil-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.nohil-step {
    flex: 1;
    min-width: 88px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--nohil-muted);
    padding: 8px 4px;
    border-bottom: 3px solid var(--nohil-border);
}
.nohil-step.is-active { color: var(--nohil-primary-dark); border-color: var(--nohil-primary); }
.nohil-step.is-done { color: var(--nohil-primary); border-color: var(--nohil-primary); }

.time-slot {
    display: inline-block;
    width: calc(25% - 10px);
    margin: 5px;
    padding: 12px 8px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--nohil-border);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    min-height: 44px;
}
.time-slot:hover { border-color: var(--nohil-primary); background: var(--nohil-primary-light); }
.time-slot.selected {
    background: var(--nohil-primary);
    color: #fff;
    border-color: var(--nohil-primary);
}
.time-slot.unavailable {
    background: #f4f4f4;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}
.time-slot.unavailable.selected {
    background: var(--nohil-primary);
    color: #fff;
    border-color: var(--nohil-primary);
    text-decoration: none;
    cursor: pointer;
}

.nohil-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e8f6ef;
    border-top-color: var(--nohil-primary);
    border-radius: 50%;
    animation: nohil-spin .8s linear infinite;
    margin: 16px auto;
}
@keyframes nohil-spin { to { transform: rotate(360deg); } }

.nohil-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.nohil-stat {
    background: #fff;
    border: 1px solid var(--nohil-border);
    border-radius: 12px;
    padding: 16px;
}
.nohil-stat strong { display: block; font-size: 1.6rem; color: var(--nohil-secondary); }
.nohil-stat span { color: var(--nohil-muted); font-size: 0.85rem; }

.nohil-bottom-nav {
    display: none;
}

.table thead th { border-top: 0; color: var(--nohil-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .03em; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(0, 135, 81, 0.04); }

:focus-visible {
    outline: 3px solid rgba(0, 135, 81, 0.45);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .nohil-hero-inner,
    .nohil-grid-3,
    .nohil-stats { grid-template-columns: 1fr; }
    .nohil-menu-toggle { display: inline-flex; }
    .nohil-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding-bottom: 12px;
    }
    .nohil-topbar-inner { flex-wrap: wrap; }
    .nohil-nav.is-open { display: flex; }
    .time-slot { width: calc(50% - 10px); }
    .nohil-bottom-nav {
        display: flex;
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid var(--nohil-border);
        justify-content: space-around;
        padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
        z-index: 30;
    }
    .nohil-bottom-nav a {
        flex: 1;
        text-align: center;
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--nohil-muted);
        text-decoration: none;
        padding: 8px 4px;
        min-height: 44px;
    }
    .nohil-bottom-nav a.is-active,
    .nohil-bottom-nav a:hover { color: var(--nohil-primary); }
}

.nohil-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--nohil-primary);
    z-index: 80;
    pointer-events: none;
    transition: width .35s ease, opacity .4s ease;
}
.nohil-progress.is-done {
    width: 100%;
    opacity: 0;
}

.nohil-topbar {
    backdrop-filter: saturate(1.2);
    transition: box-shadow .25s ease, border-color .25s ease;
}
.nohil-topbar.is-scrolled {
    border-bottom-color: #c5ddd1;
}
.nohil-nav a,
.nohil-nav .nav-link,
.nohil-brand,
.nohil-menu-toggle,
.nohil-bottom-nav a {
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.nohil-nav a:hover { transform: translateY(-1px); }
.nohil-brand img { transition: transform .35s ease; }
.nohil-brand:hover img { transform: scale(1.06); }
.nohil-menu-toggle { transition: background .2s ease, border-color .2s ease; }

.nohil-nav {
    transition: max-height .28s ease, opacity .22s ease;
}
@media (max-width: 900px) {
    .nohil-nav {
        display: flex;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
    }
    .nohil-nav.is-open {
        display: flex;
        max-height: 360px;
        opacity: 1;
        pointer-events: auto;
    }
}

.btn-primary,
.btn-nohil,
.btn-outline-nohil,
.btn-secondary,
.btn-warning,
.btn-success {
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .18s ease, filter .18s ease;
}
.btn-primary:hover,
.btn-nohil:hover,
.btn-outline-nohil:hover {
    transform: translateY(-1px);
}
.btn-primary:active,
.btn-nohil:active,
.btn-outline-nohil:active {
    transform: translateY(0) scale(0.98);
}

.nohil-card,
.nohil-appt-card,
.nohil-stat,
.nohil-hero-panel {
    transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.nohil-card-hover:hover,
.nohil-appt-card:hover,
.nohil-stat:hover {
    transform: translateY(-3px);
    border-color: #b8d4c6;
}

html.nohil-js .nohil-main {
    animation: nohil-page-in .45s ease both;
}
.nohil-hero:after {
    animation: nohil-orb 8s ease-in-out infinite;
}
.nohil-hero-panel {
    backdrop-filter: blur(2px);
}
.nohil-icon-num {
    transition: transform .25s ease, background-color .25s ease;
}
.nohil-card-hover:hover .nohil-icon-num {
    transform: scale(1.08);
}
.nohil-step {
    transition: color .22s ease, border-color .22s ease;
}
.time-slot {
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.time-slot:hover:not(.unavailable):not(:disabled) {
    transform: translateY(-2px);
}
.time-slot.selected {
    transform: scale(1.03);
}
.form-control {
    transition: border-color .2s ease, box-shadow .2s ease;
}

html.nohil-js .nohil-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .45s ease, transform .45s ease;
}
html.nohil-js .nohil-reveal.is-in {
    opacity: 1;
    transform: none;
}
.nohil-grid-3 .nohil-reveal:nth-child(2) { transition-delay: .08s; }
.nohil-grid-3 .nohil-reveal:nth-child(3) { transition-delay: .16s; }
.nohil-hero-inner > .nohil-reveal:nth-child(1) { transition-delay: .02s; }
.nohil-hero-inner > div > .nohil-reveal:nth-child(1) { transition-delay: .05s; }
.nohil-hero-inner > div > .nohil-reveal:nth-child(2) { transition-delay: .12s; }
.nohil-hero-inner > div > .nohil-reveal:nth-child(3) { transition-delay: .18s; }
.nohil-hero-inner > div > .nohil-reveal:nth-child(4) { transition-delay: .24s; }

img.nohil-lazy {
    opacity: 0;
    filter: blur(6px);
    transition: opacity .4s ease, filter .4s ease;
}
img.nohil-lazy.is-loaded {
    opacity: 1;
    filter: none;
}

.nohil-skeleton {
    background: linear-gradient(90deg, #eef5f1 25%, #f7fbf8 37%, #eef5f1 63%);
    background-size: 400% 100%;
    animation: nohil-shimmer 1.15s ease infinite;
    border-radius: 8px;
    min-height: 14px;
}
.nohil-slot-skeleton {
    display: inline-block;
    width: calc(25% - 10px);
    height: 44px;
    margin: 5px;
    border-radius: 10px;
}

.nohil-toast {
    position: fixed;
    right: 16px;
    bottom: 24px;
    background: var(--nohil-secondary);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    z-index: 90;
    max-width: 280px;
    font-weight: 600;
    transform: translateY(12px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}
.nohil-toast.is-show {
    opacity: 1;
    transform: none;
}

@keyframes nohil-page-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes nohil-orb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-18px, 12px); }
}
@keyframes nohil-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@media (max-width: 900px) {
    .nohil-slot-skeleton { width: calc(50% - 10px); }
    .nohil-toast { left: 16px; right: 16px; bottom: calc(64px + env(safe-area-inset-bottom)); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .nohil-reveal, .nohil-main, img.nohil-lazy {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.nohil-admin {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    align-items: start;
}
.nohil-sidebar {
    background: var(--nohil-surface);
    border: 1px solid var(--nohil-border);
    border-radius: var(--nohil-radius);
    padding: 16px 12px 18px;
    position: sticky;
    top: 84px;
}
.nohil-sidebar-nav {
    display: flex;
    flex-direction: column;
}
.nohil-sidebar-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--nohil-muted);
    margin: 16px 10px 8px;
}
.nohil-sidebar-kicker:first-child {
    margin-top: 2px;
}
.nohil-sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--nohil-text);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    margin: 2px 0;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.nohil-sidebar a:hover {
    background: var(--nohil-primary-light);
    color: var(--nohil-primary-dark);
    text-decoration: none;
    transform: translateX(3px);
}
.nohil-sidebar a.is-active {
    background: var(--nohil-primary);
    color: #fff;
}
.nohil-sidebar a.is-active:hover {
    background: var(--nohil-primary-dark);
    color: #fff;
    transform: none;
}
.nohil-sidebar-group {
    background: var(--nohil-primary-light);
    border: 1px solid var(--nohil-border);
    border-radius: 12px;
    padding: 6px;
    margin: 0 0 4px;
}
.nohil-sidebar-group.is-open {
    border-color: var(--nohil-primary);
}
.nohil-sidebar-group a {
    padding-left: 14px;
    font-size: 0.88rem;
    font-weight: 600;
}
.nohil-admin-main {
    min-width: 0;
}

@media (max-width: 900px) {
    .nohil-admin {
        grid-template-columns: 1fr;
        padding-top: 16px;
    }
    .nohil-sidebar {
        position: static;
    }
    .nohil-sidebar-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 8px;
        align-items: start;
    }
    .nohil-sidebar-kicker {
        grid-column: 1 / -1;
        margin-top: 8px;
        margin-bottom: 2px;
    }
    .nohil-sidebar-group {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 8px;
    }
    .nohil-sidebar a {
        text-align: center;
    }
    .nohil-sidebar a:hover { transform: none; }
}

.nohil-notify-choices {
    display: grid;
    gap: 10px;
}
.nohil-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1.5px solid var(--nohil-border);
    border-radius: 12px;
    background: #fbfdfc;
    font-weight: 600;
    cursor: pointer;
}
.nohil-choice:hover {
    border-color: #b8d4c6;
    background: #fff;
}
.nohil-choice input {
    margin-top: 4px;
}
.nohil-choice span {
    display: block;
}
.nohil-choice small {
    display: block;
    font-weight: 400;
    color: #5b6e66;
    font-size: 0.85rem;
    margin-top: 2px;
}
.nohil-otp-input {
    letter-spacing: 0.5em;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding-left: 1.1em;
}

.nohil-choice:has(input:checked) {
    border-color: var(--nohil-primary);
    background: var(--nohil-primary-light);
}

.nohil-privacy-gate {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(11, 92, 58, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.nohil-privacy-gate.is-open {
    display: flex;
}
.nohil-privacy-card {
    background: #fff;
    max-width: 440px;
    width: 100%;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(18, 35, 27, 0.2);
    position: relative;
    z-index: 4001;
}
.nohil-privacy-card .btn {
    min-height: 48px;
    width: 100%;
    font-size: 1.05rem;
}
body.nohil-privacy-locked {
    overflow: hidden;
}

@media print {
    .nohil-topbar, .nohil-footer, .nohil-bottom-nav, .nohil-actions, .btn, .nohil-progress, .nohil-toast, .nohil-sidebar, .nohil-privacy-gate { display: none !important; }
}
