* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #f8fafc;
    min-height: 100vh;
    color: #0f172a;
}

.container {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
}

.header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 32px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(29, 78, 216, 0.15);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.balance-section {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.balance-section h2 {
    font-weight: 500;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.balance {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-top: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.user-info {
    text-align: right;
    min-width: 180px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.name {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.phone {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.search-box {
    background: white;
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.search-box:focus-within {
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    padding: 0.75rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #1e293b;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.car-icon {
    font-size: 1.5rem;
    color: #64748b;
}

.get-rc-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    width: 100%;
    padding: clamp(1rem, 3vw, 1.25rem);
    border: none;
    border-radius: 24px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.2);
    letter-spacing: -0.3px;
}

.get-rc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.25);
}

.sample-buttons {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    margin: 2rem 0;
    flex-wrap: wrap;
}

.mparivahan-btn,
.rc-card-btn {
    flex: 1;
    min-width: 180px;
    padding: clamp(1rem, 3vw, 1.25rem);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: clamp(0.9rem, 2.3vw, 1.1rem);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: -0.3px;
}

.mparivahan-btn {
    background: #fef3c7;
    color: #92400e;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15);
}

.rc-card-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.15);
}

.mparivahan-btn:hover,
.rc-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.transactions {
    background: white;
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.transactions h2 {
    margin-bottom: 1.75rem;
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1rem, 3vw, 1.25rem);
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.2s ease;
    border-radius: 16px;
    margin-bottom: 0.5rem;
}

.transaction-item:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
}

.transaction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    flex: 1;
    min-width: 240px;
}

.transaction-info .car-icon {
    background: #f1f5f9;
    padding: clamp(0.75rem, 2vw, 1rem);
    border-radius: 16px;
    color: #64748b;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.transaction-info div p:first-child {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.375rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    letter-spacing: -0.3px;
}

.date {
    font-size: clamp(0.8rem, 2.2vw, 0.875rem);
    color: #64748b;
    letter-spacing: 0.3px;
}

.amount {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    background: #fef2f2;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    letter-spacing: -0.3px;
    min-width: 120px;
    justify-content: center;
}

.amount.success {
    color: #059669;
    background: #f0fdf4;
}

.amount.positive {
    color: #059669;
    background: #f0fdf4;
}

.amount.negative {
    color: #ef4444;
    background: #fef2f2;
}

.amount.zero {
    color: #059669;
    background: #f0fdf4;
}

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

    .header {
        padding: 1.5rem;
        text-align: center;
        border-radius: 24px;
    }

    .user-info {
        text-align: center;
        width: 100%;
    }

    .balance-section {
        width: 100%;
        text-align: center;
    }

    .sample-buttons {
        flex-direction: column;
    }

    .mparivahan-btn,
    .rc-card-btn {
        width: 100%;
    }

    .transaction-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .transaction-info {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .amount {
        width: 100%;
    }
}



/* Add these new styles to your existing style.css */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: white;
    padding: clamp(2rem, 6vw, 3rem);
    border-radius: 28px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.auth-card h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.auth-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.2);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Wallet Topup Styles */
.wallet-topup {
    background: white;
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 28px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.wallet-topup h2 {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    color: #0f172a;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.amount-preset {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-preset:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.custom-amount {
    margin-bottom: 1.5rem;
}

.custom-amount label {
    display: block;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.custom-amount input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.custom-amount input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.wallet-icon {
    font-size: 1.5rem;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.vehicle-info p {
    font-size: 18px;
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.modal-btn.orange {
    background-color: #9333ea;
}

.modal-btn.green {
    background-color: #4f46e5;
}

.modal-btn .icon {
    font-size: 20px;
    font-weight: bold;
}

.modal-btn .price {
    font-weight: bold;
}

.modal-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.close-btn {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 600px) {
    .modal-buttons {
        flex-direction: column;
    }
}

.action-buttons {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.whatsapp-btn,
.logout-btn {
    padding: 0.75rem;
    border-radius: 9999px;
    width: auto;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    color: white;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

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

.logout-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.amount-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    button {
        padding: 4px 10px;
        background: azure;
        border: 1px solid #0f172a;
        border-radius: 14px;
    }
}

.badgeWrapper {
    width: fit-content;
    background: #07beb8;
    text-align: center;
    padding: 7px 10px;
    color: #ffffff;
    border-radius: 5px;
    position: absolute;
    top: -15px;
    /* Adjust this value to move the badge closer to the input */
    right: 5%;
    /* Center the badge horizontally */
    font-size: 10px;
    font-weight: 600;
}




.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.ask-chassis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}