
        :root {
            --primary: #2563eb;
            --secondary: #1e3a8a;
            --bg-light: #f4f6f9;
            --card-shadow: rgba(0, 0, 0, 0.08);
            --card-hover-shadow: rgba(0, 0, 0, 0.15);
            --transition-speed: 0.3s;
        }

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

        body {
            font-family: 'Roboto', 'Inter', sans-serif;
            background: #f8f9fa;
            color: #333;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        header {
  background: #fff;
  color: #111;
  padding: 0.8em 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

header .logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.4em;
  color: var(--primary);
}

header .logo img {
  height: 32px;
  margin-right: 8px;
}

.auth-buttons {
  display: flex;
  align-items: center;
}

.auth-buttons button {
  padding: 8px 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 1em;
  transition: background 0.3s;
}

#openModalBtn {
  background: var(--primary);
  color: #fff;
}

#openModalBtn:hover {
  background: #1e50c7;
}

#logoutBtn {
  background: #e53e3e;
  color: #fff;
  display: none;
}

#logoutBtn:hover {
  background: #c53030;
}

#userName {
  font-weight: 600;
  margin-left: 1em;
}

        nav a {
            margin-left: 1.5em;
            font-weight: 500;
            transition: color 0.3s;
        }

        nav a:hover {
            color: #ffb400;
        }

        #userName {
            font-weight: 600;
            margin-left: 1em;
        }

        #logoutBtn {
            padding: 8px 16px;
            background: #e53e3e;
            border: none;
            color: white;
            border-radius: 6px;
            cursor: pointer;
            display: none;
        }

        .hero {
            background: url('https://source.unsplash.com/1600x900/?car-banner') center/cover no-repeat;
            color: white;
            text-align: center;
            padding: 8em 2em 5em;
            margin-top: 60px;
        }

        .hero h1 {
            font-size: 3em;
            margin-bottom: 0.5em;
            text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
        }

        .hero p {
            font-size: 1.2em;
            margin-bottom: 1.5em;
        }

        .cta-buttons {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1em;
            text-align: center;
        }

        .circle-btn {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            border: 2px solid white;
            width: 100px;
            height: 100px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .circle-btn:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: translateY(-5px);
        }

        .circle-btn .emoji {
            font-size: 50px;
            margin-bottom: 5px;
        }

        .circle-btn span {
            font-weight: bold;
            color: white;
            font-size: 0.9em;
        }
        /* Language dropdown */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-dropdown button {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
}

.language-dropdown button:hover {
  background: #f5f5f5;
}

.language-dropdown .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.language-dropdown .dropdown-content a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.language-dropdown .dropdown-content a:hover {
  background: #f0f0f0;
}

/* Show dropdown when active */
.language-dropdown.show .dropdown-content {
  display: block;
}
        section {
            padding: 3em 5%;
            text-align: center;
        }

        .featured-cars {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2em;
            margin-top: 2em;
        }

        .car-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
            cursor: pointer;
            display: flex;
            flex-direction: column;
        }

        .car-card-content {
            padding: 1rem;
            flex-grow: 1;
        }

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

        .car-card img {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }

        .car-card h3 {
            margin: 1em 0 0.5em;
            font-size: 1.2em;
        }

        .car-card p {
            margin: 0 0 1em;
            color: #666;
            font-size: 0.9em;
        }

        .why {
            background: #fff;
            padding: 3em 5%;
        }

        .why p {
            font-size: 1.1em;
            margin-top: 1em;
        }

        .testimonials {
            background: #f1f1f1;
            padding: 3em 5%;
        }

        .testimonials p {
            font-style: italic;
            font-size: 1.1em;
            margin-top: 1em;
        }

        .newsletter input {
            padding: 0.8em;
            width: 250px;
            max-width: 80%;
            border: 1px solid #ccc;
            border-radius: 5px 0 0 5px;
        }

        .newsletter button {
            padding: 0.85em 1.5em;
            border: none;
            background: #ffb400;
            color: #111;
            font-weight: bold;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
        }

        .newsletter button:hover {
            background: #e09e00;
        }

        footer {
            background: #111;
            color: white;
            padding: 1em;
            font-size: 0.9em;
            text-align: center;
        }

        /* Modal styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.65);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        .card {
            max-width: 420px;
            width: 100%;
            background: #1e293b;
            padding: 40px 32px;
            border-radius: 24px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            text-align: center;
            position: relative;
            color: white;
        }

        .muted {
            color: #94a3b8;
            font-size: 14px;
            margin: 14px 0 22px;
        }

        .btn {
            width: 100%;
            padding: 16px;
            border-radius: 16px;
            font-weight: 600;
            cursor: pointer;
            border: none;
        }

        .btn.google {
            background: #4285F4;
            color: #fff;
        }

        .btn.google:hover {
            background: #357ae8;
        }

        .close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            font-size: 24px;
            color: #fff;
            background: none;
            border: none;
            cursor: pointer;
        }

        /* Toast */
        #toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            background: #0b141f;
            color: #e6f9f0;
            padding: 16px 24px;
            border-radius: 16px;
            display: none;
            font-weight: 500;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            z-index: 3000;
        }

        /* Inventory Modal styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1rem;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }

        .modal.open {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: white;
            border-radius: 20px;
            max-width: 1400px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 1rem;
            position: relative;
            transform: translateY(20px);
            transition: transform 0.3s ease-in-out;
        }

        .modal.open .modal-content {
            transform: translateY(0);
        }

        .close-btn-inventory {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            font-size: 1.2rem;
            cursor: pointer;
            line-height: 0;
        }

        .search-filter {
            display: flex;
            gap: 1rem;
            padding: 1rem;
            background: white;
            flex-wrap: wrap;
            border-radius: 12px;
            margin-bottom: 1rem;
        }

        .search-filter input,
        .search-filter select {
            padding: 0.8rem 1.2rem;
            border: 1px solid #ddd;
            border-radius: 12px;
            flex: 1;
            font-size: 1rem;
        }

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

        .car-card-inv {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 4px 12px var(--card-shadow);
            transition: transform var(--transition-speed), box-shadow var(--transition-speed);
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        .car-card-inv:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px var(--card-hover-shadow);
        }

        .car-card-inv img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            transition: transform var(--transition-speed);
        }

        .car-card-inv:hover img {
            transform: scale(1.05);
        }

        .car-info-inv {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .car-info-inv h3 {
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--secondary);
        }

        .car-info-inv p {
            margin: 0.3rem 0;
            font-size: 0.95rem;
            color: #555;
        }

        .price {
            font-weight: 700;
            color: var(--primary);
            margin-top: 0.8rem;
            font-size: 1.1rem;
        }

        .btn-group {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .whatsapp-btn,
        .loan-btn {
            flex: 1;
            padding: 0.7rem 1.2rem;
            text-align: center;
            color: white;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            transition: all var(--transition-speed);
            border: none;
            cursor: pointer;
        }

        .whatsapp-btn {
            background: #25D366;
        }

        .whatsapp-btn:hover {
            background: #1ebe5d;
        }

        .loan-btn {
            background: #ff7f50;
        }

        .loan-btn:hover {
            background: #ff6347;
        }

        /* Loan Simulator Modal styles */
        .simulator-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.65);
            justify-content: center;
            align-items: center;
            z-index: 2000;
            overflow-y: auto;
        }

        .simulator-modal-content {
            background: #fff;
            padding: 2rem;
            border-radius: 1rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            max-width: 600px;
            width: 90%;
            position: relative;
            text-align: left;
            max-height: 90vh;
            overflow-y: auto;
        }

        .simulator-close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            font-size: 2rem;
            cursor: pointer;
            color: #555;
        }

        .loan-form {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-top: 1rem;
        }

        .loan-form label {
            font-weight: bold;
            color: #555;
        }

        .loan-form input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
        }

        .payment-box {
            background: #ff7f50;
            color: #fff;
            border-radius: 12px;
            padding: 15px;
            font-size: 1.5rem;
            font-weight: bold;
            text-align: center;
            margin-bottom: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .summary-card {
            background: #f0f4f8;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            color: #333;
            font-size: 1.1rem;
            font-weight: bold;
        }

        .totals-card {
            margin-top: 15px;
            padding: 15px;
            background: #f5f5f5;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            color: #333;
        }

        .totals-card strong {
            font-size: 1.1rem;
        }

        #schedule-container {
            max-height: 250px;
            overflow-y: auto;
        }

        .simulator-modal-content table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            table-layout: fixed;
        }

        .simulator-modal-content th,
        .simulator-modal-content td {
            padding: 8px;
            border: 1px solid #ddd;
            text-align: right;
            font-size: 0.9rem;
        }

        .simulator-modal-content th {
            background: #2a5298;
            color: #fff;
        }

        .simulator-modal-content tr:nth-child(even) {
            background: #f2f2f2;
        }

        @media (max-width: 600px) {
            .payment-box {
                font-size: 1.3rem;
            }
        }

        /* Popup Styling - New */
        .popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        .popup-content {
            background: #fff;
            padding: 20px;
            border-radius: 12px;
            width: 400px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .popup-content h2 {
            margin-top: 0;
        }

        .popup-content p strong {
            display: inline-block;
            width: 120px;
        }

        .close-btn-popup {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 20px;
            cursor: pointer;
            color: #333;
        }
  
            
