:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --accent: #52b788;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.bg-primary, .btn-primary, .badge.bg-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

.text-primary {
    color: var(--primary) !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.4rem;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(45, 106, 79, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-card {
    border-radius: 12px;
    transition: transform 0.2s ease;
}

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

.popular-plan {
    border: 2px solid var(--primary) !important;
}

.product-card {
    border-radius: 12px;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-3px);
}

.confidence-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 22px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    border-radius: 10px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    transition: width 0.5s ease, background 0.3s ease;
}
.confidence-fill.conf-high {
    background: linear-gradient(90deg, #28a745, #20c040);
}
.confidence-fill.conf-mid {
    background: linear-gradient(90deg, #e6a817, #ffc107);
}
.confidence-fill.conf-low {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.confidence-bar-lg {
    background: #e9ecef;
    border-radius: 12px;
    height: 30px;
    overflow: hidden;
}

.confidence-fill-lg {
    height: 100%;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    transition: width 0.8s ease, background 0.3s ease;
}
.confidence-fill-lg.conf-high {
    background: linear-gradient(90deg, #28a745, #20c040);
}
.confidence-fill-lg.conf-mid {
    background: linear-gradient(90deg, #e6a817, #ffc107);
}
.confidence-fill-lg.conf-low {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.card {
    border-radius: 12px;
}

footer {
    margin-top: auto;
}

.cart-card {
    border-top: 3px solid #ffc107 !important;
}
.cart-card-header {
    background: linear-gradient(135deg, #fff9e6, #fff3cd) !important;
    border-bottom: 1px solid #ffe082 !important;
}
.cart-card-header h5 {
    color: #8a6d00;
}
.btn-cart {
    background: linear-gradient(135deg, #ffc107, #e6a800) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}
.btn-cart:hover {
    background: linear-gradient(135deg, #e6a800, #cc9600) !important;
    color: #fff !important;
}
.btn-cart-outline {
    color: #d4950a !important;
    border-color: #ffc107 !important;
    background: transparent !important;
}
.btn-cart-outline:hover {
    background: #ffc107 !important;
    color: #fff !important;
}
.checkout-card {
    border-top: 3px solid #ffc107 !important;
}
.checkout-card-header {
    background: linear-gradient(135deg, #fff9e6, #fff3cd) !important;
    border-bottom: 1px solid #ffe082 !important;
}
.checkout-card-header h5 {
    color: #8a6d00;
}
.cart-input:focus {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}
.cart-tab-link.active {
    color: #d4950a !important;
    border-bottom-color: #ffc107 !important;
}

footer h5, footer h6 {
    color: #fff !important;
}

footer,
footer p,
footer a,
footer li,
footer small,
footer span,
footer .text-muted,
footer .small,
footer p.text-muted,
footer a.text-muted,
footer .container p,
footer .container a,
footer .container li {
    color: #ffc107 !important;
}

.flash-message {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card-body {
        padding: 1rem;
    }
}
