/* ===== GLOBAL STYLES ===== */
* { font-family: 'Inter', sans-serif; scroll-behavior: smooth; box-sizing: border-box; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }

body { background: #09090b; color: #fff; overflow-x: hidden; margin: 0; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(249,115,22,0.3); }
    50% { box-shadow: 0 0 40px rgba(249,115,22,0.6); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-fade-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade-left { animation: fadeInLeft 0.8s ease-out forwards; }
.animate-fade-right { animation: fadeInRight 0.8s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease-out forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-bounce-in { animation: bounceIn 0.6s ease-out forwards; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ===== HERO ===== */
.hero-gradient {
    background: radial-gradient(ellipse at 20% 50%, rgba(249,115,22,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(239,68,68,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(249,115,22,0.06) 0%, transparent 50%),
                #09090b;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(24,24,27,0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ===== LOAN CARD ===== */
.loan-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.loan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, #f97316, #ef4444);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.loan-card:hover::before { transform: scaleX(1); }
.loan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249,115,22,0.3);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 30px rgba(249,115,22,0.1);
}

/* ===== STAT CARD ===== */
.stat-card { position: relative; overflow: hidden; }
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #f97316, transparent);
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: linear-gradient(135deg, #f97316, #ea580c);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
}
.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary-custom:hover::before { left: 100%; }
.btn-primary-custom:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(249,115,22,0.4);
}

.btn-outline-custom {
    border: 1px solid rgba(249,115,22,0.5);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}
.btn-outline-custom:hover {
    background: rgba(249,115,22,0.1);
    border-color: #f97316;
    transform: scale(1.05);
}

/* ===== NAVIGATION ===== */
.nav-link { position: relative; text-decoration: none; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: #f97316;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.mobile-menu.open { max-height: 400px; }

/* ===== MARQUEE ===== */
.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

/* ===== EMI SLIDER ===== */
.emi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    background: #f97316;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(249,115,22,0.5);
}
.emi-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: #27272a;
    border-radius: 3px;
}
.emi-slider { -webkit-appearance: none; width: 100%; background: transparent; }

/* ===== FAQ ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.open { max-height: 500px; }

/* ===== TESTIMONIAL ===== */
.testimonial-card { transition: all 0.3s ease; }
.testimonial-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(249,115,22,0.3);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px; right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== COMPARISON TABLE ===== */
.comparison-row:nth-child(even) { background: rgba(24,24,27,0.4); }
.comparison-row:hover { background: rgba(249,115,22,0.05); }

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RATE BADGE ===== */
.rate-badge {
    background: linear-gradient(135deg, #f97316, #ef4444);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ===== PATTERNS & GRADIENTS ===== */
.grid-pattern {
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.text-gradient {
    background: linear-gradient(to bottom, #f4f4f5, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-orange {
    background: linear-gradient(135deg, #f97316, #ef4444, #f97316);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* ===== FORM STYLES ===== */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(24,24,27,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}
.form-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-input::placeholder { color: #52525b; }
.form-input.error { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: 12px; margin-top: 4px; display: none; }
.form-error.show { display: block; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 6px;
}
.form-label .required { color: #ef4444; }

/* ===== FILE UPLOAD ===== */
.file-upload-area {
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.file-upload-area:hover, .file-upload-area.dragover {
    border-color: #f97316;
    background: rgba(249,115,22,0.05);
}

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: rgba(24,24,27,0.8);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #71717a;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: #a1a1aa;
}
.data-table tr:hover td { background: rgba(249,115,22,0.03); }

/* ===== STATUS BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.badge-pending { background: rgba(234,179,8,0.15); color: #eab308; }
.badge-approved { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-rejected { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-processing { background: rgba(59,130,246,0.15); color: #3b82f6; }

/* ===== PAGE BANNER ===== */
.page-banner {
    background: radial-gradient(ellipse at 30% 50%, rgba(249,115,22,0.1) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(239,68,68,0.05) 0%, transparent 60%),
                #09090b;
}

/* ===== BREADCRUMB ===== */
.breadcrumb a { color: #71717a; text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: #f97316; }
.breadcrumb span { color: #52525b; }

/* ===== TABS ===== */
.tab-btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #71717a;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
}
.tab-btn:hover { color: #a1a1aa; background: rgba(255,255,255,0.03); }
.tab-btn.active {
    color: #f97316;
    background: rgba(249,115,22,0.1);
    border-color: rgba(249,115,22,0.3);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.4s ease; }

/* ===== STEP INDICATOR ===== */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 30px;
}
.step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    border: 2px solid #27272a;
    color: #52525b;
    background: #09090b;
    transition: all 0.3s;
    flex-shrink: 0;
}
.step-dot.active { border-color: #f97316; color: #f97316; background: rgba(249,115,22,0.1); }
.step-dot.completed { border-color: #22c55e; color: #fff; background: #22c55e; }
.step-line-bar {
    flex: 1; height: 2px;
    background: #27272a;
    transition: background 0.3s;
}
.step-line-bar.active { background: #f97316; }
.step-line-bar.completed { background: #22c55e; }

/* ===== ADMIN SIDEBAR ===== */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: rgba(24,24,27,0.8);
    border-right: 1px solid rgba(255,255,255,0.05);
    position: fixed;
    left: 0; top: 0;
    padding: 20px 0;
    z-index: 40;
}
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: #71717a;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-sidebar-link:hover { color: #a1a1aa; background: rgba(255,255,255,0.03); }
.admin-sidebar-link.active {
    color: #f97316;
    background: rgba(249,115,22,0.05);
    border-left-color: #f97316;
}
.admin-content {
    margin-left: 260px;
    padding: 24px 32px;
    min-height: 100vh;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; padding: 16px; }
}