* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #EF4444;
    --secondary-color: #64748B;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --background: #F8FAFC;
    --card-background: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: overflow 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: var(--card-background);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
}

.user-profile:hover {
    background: var(--background);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    flex: 1;
    justify-content: flex-end;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #FEF2F2 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Illustration */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-vector-img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Dashboard */
.dashboard {
    padding: 3rem 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Recent Budget Card */
.recent-budget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.budget-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.budget-number {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.budget-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    background: #ECFDF5;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    width: fit-content;
}

.budget-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.play-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0.5rem;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Chart Card */
.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.donut-chart {
    width: 200px;
    height: 200px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Economy Card */
.economy-value {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.period {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 3rem 0 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 1rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    background: #FEE2E2 !important;
}

.feature-icon svg path,
.feature-icon svg circle {
    stroke: var(--primary-color) !important;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .cards-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 969px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .nav-wrapper {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        align-items: center !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        gap: 2rem !important;
        padding: 0 !important;
    }

    .nav-menu li {
        width: auto !important;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
        font-size: 1rem !important;
        border: none !important;
    }

    .header-actions {
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        padding: 0 !important;
        gap: 1rem !important;
    }

    .header-actions .btn {
        width: auto !important;
        padding: 0.75rem 1.5rem !important;
    }
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 5rem 0 2rem;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.3s;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--background);
        color: var(--primary-color);
        transform: translateX(5px);
    }

    .nav-link.active::after {
        display: none;
    }

    .header-actions {
        width: 100%;
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Backdrop overlay */
    .nav-wrapper::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }

    .nav-wrapper.active::before {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .mobile-menu-toggle {
        width: 28px;
        height: 22px;
    }

    .mobile-menu-toggle span {
        height: 2.5px;
    }

    .nav-wrapper {
        width: 280px;
    }
    
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.875rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .illustration {
        height: 300px;
    }
    
    .hero-vector-img {
        max-height: 300px;
    }

    .features {
        padding: 2rem 0 3rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }

    .feature-icon svg {
        width: 32px;
        height: 32px;
    }

    .feature-title {
        font-size: 1.125rem;
    }

    .feature-description {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 0;
    }

    .navbar {
        padding: 0.625rem 0;
    }
    
    .logo-img {
        height: 50px;
    }

    .mobile-menu-toggle {
        width: 26px;
        height: 20px;
    }

    .mobile-menu-toggle span {
        height: 2px;
    }

    .nav-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 4.5rem 0 1.5rem;
    }

    .nav-link {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .header-actions {
        padding: 1.25rem 1.5rem;
    }

    .header-actions .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }

    .header-actions .btn svg {
        width: 18px;
        height: 18px;
    }

    .btn-text {
        font-size: 0.9375rem;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.875rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    .illustration {
        height: 250px;
    }
    
    .hero-vector-img {
        max-height: 250px;
    }
    
    .features {
        padding: 1.5rem 0 2.5rem;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .footer {
        padding: 1.5rem 0;
        font-size: 0.8125rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .value {
        font-size: 2rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .logo-img {
        height: 45px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8125rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .illustration {
        height: 220px;
    }

    .hero-vector-img {
        max-height: 220px;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-title {
        font-size: 0.9375rem;
    }

    .feature-description {
        font-size: 0.8125rem;
    }
}

