@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Redundant :root removed - now using theme.css variables */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--glow-primary), 0 0 20px var(--glow-primary);
    transition: width 0.1s ease-out;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.parallax-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    transition: transform 0.3s ease-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    top: 50%;
    right: -5%;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    bottom: -10%;
    left: 30%;
}

.parallax-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--text-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--text-primary) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.02;
}

/* Micro-interactions & Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Smooth hover transitions for all interactive elements */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    box-shadow: 0 0 20px var(--glow-primary), 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: transform 0.1s ease;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-primary);
}

.btn-glow {
    animation: btn-pulse 2s infinite;
}

@keyframes btn-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px var(--glow-primary);
    }
    50% {
        box-shadow: 0 4px 30px var(--glow-primary), 0 0 40px var(--glow-primary);
    }
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-cta {
    background: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px var(--glow-primary);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(0);
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--card-glow);
    transform: translateY(-6px);
}

/* Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--glow-primary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.navbar-title {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Landing Nav */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.landing-nav.scrolled {
    padding: 12px 24px;
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.landing-hero h1 {
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero p {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Features Section */
.features-section {
    padding: 100px 20px;
    background: var(--bg-section);
    transition: background 0.3s ease;
}

.landing-feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.landing-feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg), var(--card-glow);
    border-color: var(--primary);
}

/* Testimonials */
.testimonials-section {
    padding: 100px 20px;
    background: var(--bg-section);
    position: relative;
    transition: background 0.3s ease;
}

/* Footer */
.landing-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 60px 20px 40px;
    transition: background 0.3s ease;
}

/* FAQ */
.faq-section {
    padding: 80px 20px;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--glow-primary);
    background: var(--bg-navbar);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question span {
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(var(--bg-rgb), 0.3);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Footer Improvements */
.landing-footer {
    background: var(--bg-navbar);
    border-top: 1px solid var(--border);
    padding: 80px 24px 40px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand .sidebar-logo {
        justify-content: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 300px;
}

.footer-nav-col h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer-socials {
        justify-content: center;
    }
    .footer-link:hover {
        transform: translateY(-2px);
    }
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--glow-primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

.supported-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 100px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.supported-by:hover {
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.supported-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
}

.mrd-branding {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mrd-glow {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: var(--gradient-primary);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.supported-by:hover .mrd-glow {
    opacity: 0.3;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.footer-btn {
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}


.section-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--glow-primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question span {
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    word-wrap: break-word;
    white-space: normal;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.cta-blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.2);
    top: -100px;
    left: -100px;
}

.cta-blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(59, 130, 246, 0.15);
    bottom: -80px;
    right: -80px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.testimonial-content {
    padding: 28px;
}

.testimonial-stars {
    font-size: 18px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.testimonial-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* 3D Card Effects */
.card-3d {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d-inner {
    position: relative;
    z-index: 1;
}

.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.card-3d:hover .card-shine {
    opacity: 1;
}

/* Icon Gradient Classes */
.icon-gradient-1 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.icon-gradient-2 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.icon-gradient-3 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.icon-gradient-4 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.icon-gradient-5 { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.icon-gradient-6 { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }

/* Landing Feature Icon */
.landing-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

/* Landing Features Grid */
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

/* Footer Styles */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Reveal Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal-scale.revealed {
    transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
    position: relative;
    transition: background 0.3s ease;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    transition: background 0.3s ease;
}

/* Onboarding Tour Styles */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.onboarding-overlay.active {
    opacity: 1;
    visibility: visible;
}

.onboarding-spotlight {
    position: absolute;
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10001;
    pointer-events: none;
}

.onboarding-tooltip {
    position: absolute;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 24px;
    max-width: 360px;
    z-index: 10002;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--glow-primary);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onboarding-tooltip.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.onboarding-tooltip::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-right: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.onboarding-tooltip.arrow-top::before {
    top: -10px;
    left: 30px;
}

.onboarding-tooltip.arrow-bottom::before {
    bottom: -10px;
    left: 30px;
    transform: rotate(225deg);
}

.onboarding-tooltip.arrow-left::before {
    left: -10px;
    top: 30px;
    transform: rotate(-45deg);
}

.onboarding-tooltip.arrow-right::before {
    right: -10px;
    top: 30px;
    transform: rotate(135deg);
}

.onboarding-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.onboarding-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.onboarding-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.onboarding-progress {
    display: flex;
    gap: 6px;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.onboarding-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.onboarding-dot.completed {
    background: var(--success);
}

.onboarding-btns {
    display: flex;
    gap: 8px;
}

.onboarding-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onboarding-btn-skip {
    background: transparent;
    color: var(--text-muted);
    border: none;
}

.onboarding-btn-skip:hover {
    color: var(--text-primary);
}

.onboarding-btn-next {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.onboarding-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-primary);
}

/* Balance Alert Notification */
.balance-alert-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.balance-alert {
    background: var(--bg-card);
    border: 2px solid var(--warning);
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(245, 158, 11, 0.2);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.balance-alert.show {
    transform: translateX(0);
    opacity: 1;
}

.balance-alert.alert-danger {
    border-color: var(--danger);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(239, 68, 68, 0.2);
}

.balance-alert.alert-success {
    border-color: var(--success);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(16, 185, 129, 0.2);
}

.balance-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.balance-alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(245, 158, 11, 0.15);
    animation: alert-pulse 2s ease-in-out infinite;
}

.balance-alert.alert-danger .balance-alert-icon {
    background: rgba(239, 68, 68, 0.15);
}

@keyframes alert-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.balance-alert-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.balance-alert-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.balance-alert-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.balance-alert-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.balance-alert-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.balance-alert-value {
    font-size: 14px;
    font-weight: 700;
}

.balance-alert-value.income {
    color: var(--success);
}

.balance-alert-value.expense {
    color: var(--danger);
}

.balance-alert-message {
    margin-top: 12px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    font-size: 13px;
    color: var(--warning);
    text-align: center;
    font-weight: 600;
}

.balance-alert.alert-danger .balance-alert-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.balance-alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.balance-alert-close:hover {
    background: var(--danger);
    color: white;
}

/* Nav Item Hover Enhancement */
.nav-item {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item:hover {
    transform: translateX(6px);
}

.nav-item.active {
    transform: translateX(0);
}

/* Stat Card Hover Enhancement */
.stat-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Quick Action Button Enhancement */
.quick-action-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quick-action-btn:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Table Row Hover */
.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: var(--bg-card-hover);
    transform: scale(1.01);
}

/* Input Focus Animation */
.form-input {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-input:focus {
    transform: scale(1.01);
}

/* Category Chip Hover */
.category-chip {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-chip:hover {
    transform: scale(1.05);
}

/* Progress Bar Animation */
.progress-bar-fill {
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modal Animation Enhancement */
.modal-content {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    animation: modal-bounce-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-bounce-in {
    0% {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.pageWithHistory{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:16px;
  align-items:start;
}
