/* Global Styles */
:root {
    --primary-blue: #2563eb;
    --primary-dark-blue: #1d4ed8;
    --primary-green: #16a34a;
    --primary-dark-green: #15803d;
    --primary-purple: #9333ea;
    --primary-pink: #db2777;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light: #f8fafc;
    --gray: #64748b;
    --dark: #1e293b;
    --success: #10b981;
    --telegram: #0088cc;
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-blue);
    font-size: 24px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.logo span {
    color: var(--primary-blue);
}

/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    margin-left: 25px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 15px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

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

.btn-primary:hover {
    background: var(--primary-dark-blue);
}

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

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

.btn-whatsapp:hover {
    background: #128C7E;
}

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

.btn-telegram:hover {
    background: #0077B5;
}

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

.btn-light:hover {
    background: #e2e8f0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary), var(--primary-blue));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Products Section */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-content {
    padding: 20px;
}

.product-category {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.product-description {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 16px;
    margin-right: 5px;
}

/* Report Calendar Styles */
.report-body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.report-body.momentum {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

.report-body.trend {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
}

.report-body.reversal {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.month-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.month-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.day-cell {
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
    padding: 6px;
}

.day-cell:hover {
    transform: scale(1.05);
    z-index: 10;
}

.profit-positive {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #86efac;
}

.profit-negative {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.profit-neutral {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.day-number {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: left;
}

.profit-amount {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-align: right;
    margin-top: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    max-width: 95%;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    color: #64748b;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Calendar Grid Layouts */
.calendar-grid {
    display: grid;
    gap: 2rem;
}

/* Desktop view - 3 months per row */
@media (min-width: 1024px) {
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet view - 2 months per row */
@media (min-width: 768px) and (max-width: 1023px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .day-cell {
        min-height: 70px;
        padding: 5px;
    }
    
    .day-number {
        font-size: 13px;
    }
    
    .profit-amount {
        font-size: 10px;
    }
}

/* Mobile view improvements */
@media (max-width: 767px) {
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .day-cell {
        min-height: 60px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 12px;
        font-weight: 600;
    }
    
    .profit-amount {
        font-size: 9px;
        font-weight: 500;
    }
    
    .month-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .modal-content {
        padding: 16px;
        margin: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 80%;
        max-width: 300px;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        border-radius: 0 0 0 10px;
        z-index: 99;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .auth-buttons {
        flex-direction: column;
        margin-left: 0;
        gap: 10px;
        width: 100%;
        padding: 0 20px;
    }
    
    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile Hero Adjustments */
    .hero h2 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .day-cell {
        min-height: 50px;
        padding: 3px;
    }
    
    .profit-amount {
        font-size: 8px;
    }
    
    .day-number {
        font-size: 11px;
    }
    
    .month-title {
        font-size: 16px;
    }
}

/* Additional Sections */
.subscription {
    background: white;
    padding: 60px 0;
}

.subscription-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark-blue));
    color: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.subscription-badge {
    background: var(--accent);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.subscription-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.subscription-description {
    margin-bottom: 25px;
    opacity: 0.9;
}

.subscription-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.subscription-original {
    font-size: 24px;
    text-decoration: line-through;
    opacity: 0.7;
}

.subscription-current {
    font-size: 42px;
    font-weight: 700;
}

.subscription-period {
    font-size: 16px;
    opacity: 0.8;
}

.subscription-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscription-features li:last-child {
    border-bottom: none;
}

.subscription-features i {
    color: var(--accent);
}

/* Performance Section */
.performance {
    padding: 60px 0;
    background: #f8fafc;
}

.performance-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.performance-text {
    flex: 1;
}

.performance-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.performance-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Community Section */
.community {
    padding: 60px 0;
    background: white;
}

.community-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.community-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.community-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 350px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.community-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.whatsapp-icon {
    color: var(--whatsapp);
}

.telegram-icon {
    color: var(--telegram);
}

.community-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.community-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Features Section */
.features {
    background: white;
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    background: var(--primary-blue);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-card p {
    color: var(--gray);
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background: #f8fafc;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    font-size: 14px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark-blue));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-blue);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    background: #334155;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-blue);
}