#ngt-header-auth.ngt-header-auth {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#ngt-header-auth.ngt-header-auth > .btn,
#ngt-header-auth.ngt-header-auth > a.btn,
#ngt-header-auth.ngt-header-auth > .has-drop-down {
    flex-shrink: 0;
}

#ngt-header-auth .btn-child-mode.is-active {
    border-color: #d71920 !important;
    color: #d71920 !important;
    background-color: rgba(215, 25, 32, 0.08) !important;
}

#ngt-child-mode-backdrop {
    z-index: 9998;
}

#ngt-child-mode-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

#ngt-child-mode-modal[hidden] {
    display: none !important;
}

#ngt-child-mode-modal .ngt-child-mode-modal__panel {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

#ngt-child-mode-modal .ngt-child-mode-modal__title {
    margin: 0 0 1rem;
    padding-top: 0.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

#ngt-child-mode-modal .ngt-child-mode-modal__desc,
#ngt-child-mode-modal .ngt-child-mode-modal__mobile {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.8;
    color: #6b7280;
}

#ngt-child-mode-modal .ngt-child-mode-modal__mobile {
    color: #111;
    font-weight: 600;
}

#ngt-child-mode-modal .ngt-child-mode-modal__close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.07);
    border-radius: 9999px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

#ngt-child-mode-modal .ngt-child-mode-modal__otp-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

#ngt-child-mode-modal .ngt-child-mode-digit-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

#ngt-child-mode-modal .ngt-child-mode-digit-input {
    box-sizing: border-box;
    width: 100%;
    height: 3.25rem;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #111;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

#ngt-child-mode-modal .ngt-child-mode-digit-input:focus {
    border-color: #d71920;
    background: #fff;
}

#ngt-child-mode-modal .ngt-child-mode-modal__status {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

#ngt-child-mode-modal .ngt-child-mode-modal__status.is-error {
    color: #d71920;
}

#ngt-child-mode-modal .ngt-child-mode-modal__status.is-success {
    color: #16a34a;
}

#ngt-child-mode-modal .ngt-child-mode-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

#ngt-child-mode-modal .ngt-child-mode-step {
    display: block;
    width: 100%;
}

#ngt-child-mode-modal .ngt-child-mode-step[hidden],
#ngt-child-mode-modal [hidden] {
    display: none !important;
}

#ngt-child-mode-modal .ngt-child-mode-btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 49px;
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

#ngt-child-mode-modal .ngt-child-mode-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#ngt-child-mode-modal .ngt-child-mode-btn--primary {
    border: 0;
    background-color: #d71920;
    color: #fff;
}

#ngt-child-mode-modal .ngt-child-mode-btn--primary:hover:not(:disabled) {
    opacity: 0.92;
}

#ngt-child-mode-modal .ngt-child-mode-btn--secondary {
    border: 2px solid rgba(0, 0, 0, 0.07);
    background-color: transparent;
    color: #111;
}

#ngt-child-mode-modal .ngt-child-mode-btn--secondary:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.03);
}

#ngt-child-mode-modal #ngt-child-mode-step-verify-code {
    margin-top: 0.75rem;
}

body.ngt-child-mode-modal-open {
    overflow: hidden;
}

.dark #ngt-child-mode-modal .ngt-child-mode-modal__panel {
    background-color: #181818;
    border-color: rgba(255, 255, 255, 0.08);
}

.dark #ngt-child-mode-modal .ngt-child-mode-modal__title,
.dark #ngt-child-mode-modal .ngt-child-mode-modal__mobile,
.dark #ngt-child-mode-modal .ngt-child-mode-digit-input {
    color: #fff;
}

.dark #ngt-child-mode-modal .ngt-child-mode-digit-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark #ngt-child-mode-modal .ngt-child-mode-btn--secondary {
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
