/* CSS Variables */
:root {
    --primary: #0066FF;
    --secondary: #00C37A;
    --accent: #FFD166;
    --background: #F7FAFC;
    --text: #1F2937;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}

.logo:hover .logo-img {
    transform: rotate(360deg);
}

.logo i {
    font-size: 2rem;
}

.logo-blue {
    color: #2563eb;
}

.logo-green {
    color: #84cc16;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/10.jpg') center/cover;
    background-attachment: fixed;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(249, 115, 22, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #00a864;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 195, 122, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
}

/* Stations Section */
.stations {
    padding: 4rem 0;
    background: var(--white);
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.station-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
    border-color: var(--primary);
}

.station-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.station-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.station-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background);
    border-radius: 20px;
    font-weight: 600;
}

.brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.brand-shell { color: #FFD700; }
.brand-afriquia { color: #FF6B00; }
.brand-total { color: #EE1C25; }
.brand-vivo { color: #0066FF; }

.station-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.price-item {
    background: var(--background);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.7;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-currency {
    font-size: 0.9rem;
}

.station-address {
    margin: 1rem 0;
    color: var(--text);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Station Rating */
.station-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
}

.station-rating .stars {
    display: flex;
    gap: 0.2rem;
    color: #FFD700;
    font-size: 1rem;
}

.station-rating .stars i {
    transition: transform 0.2s;
}

.station-rating:hover .stars i {
    transform: scale(1.1);
}

.station-rating .rating-number {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin: 0 0.25rem;
}

.station-rating .reviews-count {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.7;
}

.station-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--background);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.last-update {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.6;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Subscription Section */
.subscription {
    padding: 4rem 0;
    background: var(--white);
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subscription-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s;
    border: 2px solid var(--background);
    position: relative;
}

.subscription-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.subscription-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
}

.subscription-card.featured:hover {
    transform: translateY(-5px) scale(1.07);
}

/* Premium Subscription Card Styles */
.subscription-card.premium {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFFAEB 0%, #FFFFFF 100%);
    transform: scale(1.05);
}

.subscription-card.premium:hover {
    transform: translateY(-5px) scale(1.07);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.premium-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1F2937;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.subscription-card.premium .subscription-header h3 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subscription-card.premium .amount {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1F2937;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.subscription-header h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.currency {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.7;
}

.features {
    list-style: none;
    margin: 2rem 0;
}

.features li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features li i {
    color: var(--secondary);
}

.features li .fa-times {
    color: #ccc;
}

/* Blog Section */
.blog {
    padding: 4rem 0;
    background: var(--background);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.25);
}

.blog-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 195, 122, 0.05));
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.08) rotate(1deg);
}

.blog-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.blog-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0 1.5rem 1rem;
    line-height: 1.4;
    min-height: 3em;
}

.blog-card p {
    color: var(--text);
    opacity: 0.8;
    margin: 0 1.5rem 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
    margin: 0 1.5rem 1.5rem;
    padding-bottom: 1.5rem;
}

.read-more:hover {
    gap: 1rem;
    color: var(--secondary);
}

/* Coming Soon Section */
.coming-soon {
    padding: 4rem 0;
    background: var(--white);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.city-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s;
    border: 2px dashed var(--primary);
}

.city-card i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.city-card h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.coming-badge {
    display: inline-block;
    background: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--text);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-section p {
    margin: 0.75rem 0;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(-5px);
}

.footer-contact p {
    margin: 0.75rem 0;
    opacity: 0.8;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-contact i {
    margin-left: 0.5rem;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-source {
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--text);
    float: left;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-station-details h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.modal-detail {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.modal-detail strong {
    color: var(--primary);
}

.modal-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 2px solid var(--background);
}

/* Subscription Form */
.subscription-form h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--background);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* PWA Install Button */
.install-app-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease, pulse 2s infinite;
}

.install-app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.install-app-btn i {
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 99, 235, 0.5);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 2rem 0;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--background);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: var(--background);
        padding-right: 2.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1000;
    }
    
    .mobile-menu-btn i {
        transition: transform 0.3s ease;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stations-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-card.featured {
        transform: scale(1);
    }
    
    .subscription-card.premium {
        transform: scale(1);
    }
    
    .subscription-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Fuel Calculator Section */
.calculator-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.calculator-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.calculator-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-form .form-group {
    display: flex;
    flex-direction: column;
}

.calculator-form label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator-form label i {
    color: var(--primary);
}

.calculator-form input {
    padding: 0.8rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.calculator-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.btn-calculate {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.calculator-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.result-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
}

.result-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.result-card.highlight .result-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.result-card.highlight h3,
.result-card.highlight .result-value {
    color: var(--white);
}

.result-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.result-info h3 {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.savings-tip {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.3);
}

.savings-tip i {
    font-size: 2rem;
    color: #d63031;
}

.savings-tip p {
    margin: 0;
    color: #2d3436;
    line-height: 1.6;
}

.savings-tip strong {
    color: #d63031;
}

/* Responsive Calculator */
@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .calculator-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .calculator-results {
        grid-template-columns: 1fr;
    }
    
    .install-app-btn {
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .install-app-btn:hover {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* ===============================
   Map Section Styles
   =============================== */
.map-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.map-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.map-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.map-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.map-btn i {
    font-size: 1rem;
}

.map-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

#googleMap,
#openStreetMap {
    height: 500px;
    border: none;
    border-radius: 20px;
}

.map-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info-item i {
    font-size: 1.5rem;
    color: #2563eb;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(132, 204, 22, 0.1));
    padding: 0.8rem;
    border-radius: 12px;
}

.info-item span {
    font-family: 'Cairo', sans-serif;
    color: #475569;
    font-size: 0.95rem;
}

/* Custom Map Marker Styles */
.custom-marker {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.gm-style-iw {
    font-family: 'Cairo', sans-serif !important;
    direction: rtl !important;
    text-align: right !important;
}

.gm-style-iw h3 {
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gm-style-iw p {
    color: #64748b;
    margin: 0.3rem 0;
}

@media (max-width: 768px) {
    .map-controls {
        gap: 0.5rem;
    }
    
    .map-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    #googleMap,
    #openStreetMap {
        height: 400px !important;
    }
    
    .map-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===============================
   Leaflet Custom Styles
   =============================== */

/* Custom Marker Pins */
.marker-pin {
    width: 40px;
    height: 50px;
    border-radius: 50% 50% 50% 0;
    position: relative;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.marker-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 1.2rem;
}

.marker-pin.shell {
    background: linear-gradient(135deg, #DD1D21, #a01419);
}

.marker-pin.total {
    background: linear-gradient(135deg, #0079C1, #005a8d);
}

.marker-pin.afriquia {
    background: linear-gradient(135deg, #FF9800, #f57c00);
}

.marker-pin.vivo {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.marker-pin.nearest-marker {
    animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
    0%, 100% {
        transform: rotate(-45deg) scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: rotate(-45deg) scale(1.1);
        box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
    }
}

.marker-bounce {
    animation: marker-bounce 0.5s ease;
}

@keyframes marker-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* User Location Marker */
.user-location-marker {
    width: 20px;
    height: 20px;
    background: none;
}

.pulse-marker {
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-marker::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #2563eb;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.pulse-marker i {
    color: white;
    font-size: 0.6rem;
    z-index: 2;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Custom Popup Styles */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

.map-popup {
    padding: 1rem;
}

.leaflet-popup-close-button {
    font-size: 1.5rem;
    color: #64748b;
    padding: 0.5rem !important;
}

.leaflet-popup-close-button:hover {
    color: #2563eb;
}

/* Leaflet Attribution */
.leaflet-control-attribution {
    font-family: 'Cairo', sans-serif;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.9) !important;
}


/* ===============================
   Notification System Styles
   =============================== */
#notificationBtn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notification-panel.active {
    right: 0;
}

.notification-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.notification-header h3 {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
}

.close-panel {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.notification-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.notification-settings {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.setting-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.setting-item label {
    font-family: 'Cairo', sans-serif;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.setting-item i {
    color: #2563eb;
    font-size: 1.2rem;
}

.btn-enable {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-enable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.notification-list {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.notification-item.unread {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.notification-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(-4px);
}

.notif-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(132, 204, 22, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-icon i {
    color: #2563eb;
    font-size: 1.2rem;
}

.notif-content h4 {
    margin: 0 0 0.3rem 0;
    font-family: 'Cairo', sans-serif;
    color: #1e293b;
    font-size: 1rem;
}

.notif-content p {
    margin: 0 0 0.5rem 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notif-time {
    font-size: 0.8rem;
    color: #94a3b8;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .notification-panel {
        width: 100%;
        right: -100%;
    }
}

/* ===============================
   Leaflet Routing Customization
   =============================== */

/* Show routing container but make it compact */
.leaflet-routing-container {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    background: white !important;
    border-radius: 12px !important;
    padding: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    max-width: 320px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    font-family: 'Cairo', sans-serif !important;
    direction: rtl !important;
    z-index: 1000 !important;
}

/* Hide geocoder inputs */
.leaflet-routing-geocoders {
    display: none !important;
}

/* Style route alternatives */
.leaflet-routing-alt {
    background: #f8fafc !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 8px 0 !important;
    font-family: 'Cairo', sans-serif !important;
}

.leaflet-routing-alt h2,
.leaflet-routing-alt h3 {
    font-family: 'Cairo', sans-serif !important;
    color: #2563eb !important;
    font-size: 1rem !important;
    margin: 0 0 8px 0 !important;
}

.leaflet-routing-alt table {
    width: 100% !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 0.9rem !important;
}

/* Collapse button */
.leaflet-routing-collapse-btn {
    background: #2563eb !important;
    color: white !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
}

/* Route line on map - make it very visible */
.leaflet-overlay-pane svg path {
    stroke: #2563eb !important;
    stroke-width: 7px !important;
    stroke-opacity: 0.9 !important;
    fill: none !important;
}

/* Style for custom routing panel if we want to show it */
.leaflet-routing-container-custom {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    z-index: 1000;
}

/* Routing instructions */
.leaflet-routing-alt {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.leaflet-routing-alt h3 {
    font-family: 'Cairo', sans-serif;
    color: #2563eb;
    font-size: 1rem;
    margin-bottom: 10px;
}

.leaflet-routing-alt table {
    width: 100%;
    font-family: 'Cairo', sans-serif;
}

/* Route line on map */
.leaflet-routing-container .leaflet-routing-geocoders {
    display: none;
}

/* Clear route button */
.clear-route-btn {
    position: absolute;
    top: 80px;
    right: 10px;
    z-index: 1000;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.clear-route-btn:hover {
    background: #fee2e2;
    border-color: #dc2626;
    transform: translateY(-2px);
}

.clear-route-btn i {
    margin-left: 5px;
}
