.nc-form-input--invalid {
    border-color: #dc2626 !important;
}

.nc-field-error {
    margin-top: 6px;
    color: #991b1b;
    font-size: 0.8rem;
    text-align: left;
}

.nc-prompt-error {
    margin-top: 10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.85rem;
    text-align: left;
}

/* Toggled by updateTriggerButtonState() while the hero prompt textarea is
   empty. The trigger is an <a> (not a real <button>), so this is a class
   instead of the :disabled pseudo-class. */
.nc-prompt-btn-disabled {
    background: #d1d5db !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
}

.nc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    background: rgba(15, 10, 30, 0.65);
    backdrop-filter: blur(2px);
    padding: 16px;
}

.nc-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 32px;
    box-shadow: 0 24px 70px rgba(76, 29, 149, 0.25);
}

.nc-modal-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4c1d95 0%, var(--nc-purple, #7c3aed) 55%, var(--nc-purple-vivid, #6d28d9) 100%);
}

.nc-modal-dialog h3 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--nc-gray-900, #111827);
    letter-spacing: -0.01em;
}

.nc-modal-subtitle {
    margin: 0 0 24px;
    font-size: 0.9rem;
    color: var(--nc-gray-500, #6b7280);
    line-height: 1.5;
}

.nc-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--nc-gray-500, #6b7280);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.nc-modal-close:hover {
    background: #f3f4f6;
    color: var(--nc-gray-900, #111827);
}

.nc-form-group {
    margin-bottom: 18px;
}

.nc-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--nc-gray-500, #6b7280);
}

.nc-form-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--nc-gray-text, #374151);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.nc-form-input:focus {
    outline: none;
    border-color: var(--nc-purple, #7c3aed);
    box-shadow: 0 0 0 3px var(--nc-purple-light, #ede9fe);
}

select.nc-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

#nc-registration-form .nc-prompt-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--nc-purple, #7c3aed);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

#nc-registration-form .nc-prompt-btn:hover {
    background: var(--nc-purple-dark, #5b21b6);
    transform: translateY(-1px);
}

.nc-modal-login-link {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--nc-gray-500, #6b7280);
}

.nc-modal-login-link a {
    color: var(--nc-purple, #7c3aed);
    font-weight: 600;
    text-decoration: none;
}

.nc-modal-login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .nc-modal-dialog {
        padding: 32px 24px 24px;
        border-radius: 16px;
    }
}

.nc-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.nc-loading-overlay__content {
    text-align: center;
}

.nc-loading-overlay__content p {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nc-gray-900, #111827);
}

.nc-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #e5e7eb;
    border-top-color: var(--nc-purple, #7c3aed);
    border-radius: 50%;
    animation: nc-spin 0.7s linear infinite;
}

@keyframes nc-spin {
    to { transform: rotate(360deg); }
}
