/* ============================================================
   Hustle OTP Verification — Modal Styles
   ============================================================ */

#hotp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: hotp-fade-in 0.2s ease;
}

@keyframes hotp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#hotp-modal {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 28px 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    text-align: center;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: hotp-slide-up 0.25s ease;
}

@keyframes hotp-slide-up {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
#hotp-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
#hotp-close:hover {
    color: #333;
    background: #f0f0f0;
}

/* Icon */
#hotp-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
    line-height: 1;
}

/* Heading */
#hotp-modal h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

/* Sub-text */
#hotp-modal > p {
    color: #666;
    font-size: 0.88rem;
    margin: 0 0 20px;
    line-height: 1.5;
}
#hotp-modal > p strong {
    color: #222;
}

/* OTP input */
#hotp-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 2.2rem;
    letter-spacing: 0.45em;
    font-weight: 700;
    padding: 12px 8px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 14px;
    background: #fafafa;
}
#hotp-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background: #fff;
}
#hotp-input::placeholder {
    color: #ccc;
    letter-spacing: 0.3em;
}

/* Status message */
#hotp-status {
    font-size: 0.84rem;
    min-height: 22px;
    margin: 0 0 14px;
    font-weight: 500;
    transition: color 0.2s;
}
#hotp-status[data-type="success"] { color: #16a34a; }
#hotp-status[data-type="error"]   { color: #dc2626; }
#hotp-status[data-type="info"]    { color: #2563eb; }

/* Buttons */
#hotp-verify-btn,
#hotp-resend-btn {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.2s, opacity 0.2s, transform 0.1s;
    box-sizing: border-box;
}
#hotp-verify-btn {
    background: #4f46e5;
    color: #ffffff;
    margin-bottom: 10px;
}
#hotp-verify-btn:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-1px);
}
#hotp-verify-btn:active:not(:disabled) {
    transform: translateY(0);
}
#hotp-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#hotp-resend-btn {
    background: #f3f4f6;
    color: #374151;
}
#hotp-resend-btn:hover:not(:disabled) {
    background: #e5e7eb;
}
#hotp-resend-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

#hotp-countdown {
    font-size: 0.82rem;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 4px;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    #hotp-modal {
        padding: 28px 18px 22px;
    }
    #hotp-input {
        font-size: 1.8rem;
        letter-spacing: 0.35em;
    }
}
