/* --- ZUI Custom Styles --- */

/* Font Configuration */
body { font-family: 'Inter', sans-serif; }

/* Transitions */
* { transition-property: background-color, border-color, color; transition-duration: 200ms; }

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 20px; }
.dark .custom-scrollbar::-webkit-scrollbar-thumb { background-color: #475569; }

/* Code Editor Specific Scrollbar */
.code-editor::-webkit-scrollbar { width: 8px; height: 8px; }
.code-editor::-webkit-scrollbar-track { background: #1e293b; }
.code-editor::-webkit-scrollbar-thumb { background-color: #475569; border-radius: 4px; }

/* Sidebar Active State */
.nav-item.active { background-color: rgba(59, 130, 246, 0.1); color: #60a5fa; border-right: 3px solid #60a5fa; }
.nav-item.active i { color: #60a5fa; }

/* Modal Transitions */
.modal { opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal.active { opacity: 1; visibility: visible; }
.modal.active .modal-content { transform: scale(1); opacity: 1; }
.modal-content { transform: scale(0.95); opacity: 0; transition: all 0.3s ease; }

/* Paywall Blur Effect */
.paywall-blur { filter: blur(4px); user-select: none; pointer-events: none; }

/* Radio Button Custom Style (for Forms) */
.payment-radio:checked + div {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}
.payment-radio:checked + div .radio-circle {
    background-color: #3b82f6;
    border-color: #3b82f6;
}
.payment-radio:checked + div .radio-circle::after {
    opacity: 1;
}

/* Simple scale-in animation (used on auth/verification-choice) */
.scale-in {
    animation: scale-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scale-in {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Floating animation (used on 404 page ghost icon) */
.floating {
    animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* 404 page basic layout (no Tailwind) */
.zui-404-page {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    background: #f8fafc;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.zui-404-page .max-w-md {
    max-width: 480px;
    width: 100%;
}

.zui-404-page h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.zui-404-page p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.zui-404-page a,
.zui-404-page button {
    font-size: 0.9rem;
}

.zui-404-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.zui-404-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px auto;
    border-radius: 999px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zui-404-icon i {
    font-size: 72px;
    color: #64748b;
}

.zui-404-code {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.08em;
    color: #2563eb;
    margin-bottom: 8px;
}

.zui-404-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.zui-404-text {
    margin: 0 0 24px 0;
    color: #6b7280;
}

.zui-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.zui-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.zui-404-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #f9fafb;
}

.zui-404-btn-secondary {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #4b5563;
}

.zui-404-help {
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.zui-404-help a {
    color: #2563eb;
    text-decoration: none;
}

.zui-404-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.5;
    font-size: 0.8rem;
}

.zui-404-logo img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

.zui-404-logo-fallback {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #64748b;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.zui-404-brand {
    font-weight: 800;
}
