/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.8s ease-out;
}

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

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

.logo-section i {
    font-size: 2.5rem;
    color: #667eea;
    animation: pulse 2s infinite;
}

.logo-section h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 25px;
    border: 2px solid #ff6b6b;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.status-dot.pending {
    background: #ff6b6b;
}

/* Dashboard Layout */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header i {
    font-size: 1.8rem;
    color: #667eea;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* Customer Card */
.customer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item label {
    font-weight: 500;
    color: #666;
}

.info-item span {
    font-weight: 600;
    color: #333;
}

.highlight {
    color: #667eea !important;
    font-size: 1.1rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4ade80, #ff6b6b);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    left: -47px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item.completed .timeline-marker {
    background: #4ade80;
    animation: checkmark 1s ease-in-out;
}

.timeline-item.current .timeline-marker {
    background: #ff6b6b;
    animation: pulse 2s infinite;
}

.timeline-content h3 {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.timeline-content .amount {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.amount.critical {
    color: #ff6b6b;
    animation: glow 2s ease-in-out infinite alternate;
}

.timeline-content .date {
    color: #666;
    font-size: 0.9rem;
}

/* Breakdown Card */
.breakdown-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    padding: 12px 15px;
}

.breakdown-item .label {
    color: #666;
    font-weight: 500;
}

.breakdown-item .value {
    font-weight: 600;
    color: #333;
}

.breakdown-item.total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #667eea;
    font-size: 1.2rem;
}

.breakdown-item.total .value {
    color: #ff6b6b;
    font-weight: 700;
}

.breakdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 10px 0;
}

.calculation {
    color: #f39c12 !important;
    animation: fadeInRight 1s ease-out;
}

/* Countdown Card */
.countdown-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.countdown-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    animation: bounceIn 1s ease-out;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    animation: countdownPulse 1s infinite;
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.urgency-indicator {
    margin-top: 20px;
}

.urgency-bar {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.urgency-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #f39c12, #ff6b6b);
    border-radius: 5px;
    transition: width 1s ease;
    animation: urgencyPulse 2s infinite;
}

.urgency-text {
    text-align: center;
    font-weight: 600;
    color: #ff6b6b;
    animation: shake 0.5s infinite;
}

/* Payment Card Enhancements */
.payment-content {
    display: block;
    width: 100%;
}

.enhanced-upi-section {
    margin-bottom: 25px;
}

.payment-methods-premium-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.qr-code-premium-section {
    margin-bottom: 30px;
}

.chat-input {
    position: relative;
    z-index: 20;
    border-top: 2px solid #e9ecef;
}

.chat-input input {
    position: relative;
    z-index: 21;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .ai-chatbot-interface {
        width: calc(100vw - 40px) !important;
        right: 20px !important;
        left: 20px !important;
        bottom: 80px !important;
        max-width: none;
    }
    
    .enhanced-upi-section {
        padding: 20px !important;
    }
    
    .upi-details-premium-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .qr-code-premium-container img {
        width: 220px !important;
        height: 220px !important;
    }
    
    .payment-methods-premium-container {
        padding: 20px !important;
    }
    
    .payu-gateway-premium-section {
        padding: 25px !important;
    }
    
    .payment-amount-premium-display div:nth-child(2) {
        font-size: 28px !important;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .ai-chatbot-interface {
        height: 450px !important;
    }
    
    .chat-messages {
        height: 250px !important;
    }
    
    .enhanced-upi-section h3 {
        font-size: 22px !important;
    }
    
    .qr-code-premium-container img {
        width: 200px !important;
        height: 200px !important;
    }
    
    .payment-methods-premium-container {
        padding: 15px !important;
    }
}

/* Speaking Indicator */
.speaking-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.qr-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.qr-container:hover {
    transform: scale(1.05);
}

.qr-code {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-container:hover .qr-overlay {
    opacity: 1;
}

.qr-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.qr-label {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: #667eea;
}

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

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.payment-btn:hover::before {
    left: 100%;
}

.full-payment {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    animation: slideInLeft 1s ease-out;
}

.full-payment:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.4);
}

.partial-payment {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.partial-payment:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(243, 156, 18, 0.4);
}

.contact-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.payment-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.payment-btn span {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Activity Card */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: slideInRight 1s ease-out;
}

.activity-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(10px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.activity-icon.warning {
    background: #f39c12;
}

.activity-icon.info {
    background: #667eea;
}

.activity-icon.success {
    background: #4ade80;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.activity-time {
    font-size: 0.85rem;
    color: #666;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-helper {
    font-size: 0.85rem;
    color: #666;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
}

.btn-secondary,
.btn-primary {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateX(0);
}

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

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    font-weight: 500;
}

/* Progressive Timeline Styles */
.calculation-steps {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.calculation-steps h4 {
    margin-bottom: 15px;
    color: #667eea;
    font-weight: 600;
}

.step-by-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: slideInFromLeft 0.6s ease forwards;
}

.calc-step:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.step-label {
    font-weight: 500;
    color: #333;
}

.step-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.calc-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 15px 0;
}

.additional-charges h4 {
    color: #f39c12;
    font-weight: 600;
    margin-bottom: 10px;
}

.calculation-formula {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    display: block;
    margin-top: 5px;
}

/* Sound Controls */
.sound-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sound-toggle, .calendar-btn {
    background: none;
    border: 2px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
}

.sound-toggle:hover, .calendar-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.sound-toggle.active {
    background: #4ade80;
    border-color: #4ade80;
    color: white;
    animation: pulse 2s infinite;
}

.sound-visualization {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.sound-visualization.active {
    display: flex;
    animation: soundPulse 2s ease-in-out infinite;
}

.sound-wave {
    width: 4px;
    height: 30px;
    background: white;
    margin: 0 2px;
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

.sound-wave:nth-child(2) {
    animation-delay: 0.2s;
}

.sound-wave:nth-child(3) {
    animation-delay: 0.4s;
}

.sound-text {
    color: white;
    font-weight: 600;
    margin-left: 15px;
    font-size: 1.1rem;
    animation: textGlow 2s ease-in-out infinite;
}

/* PhonePe Integration Styles */
.phonepe-form, .upi-apps-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.phonepe-details, .upi-details {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.phonepe-details p, .upi-details p {
    margin: 5px 0;
    font-weight: 500;
}

.phonepe-btn {
    background: linear-gradient(135deg, #5f259f, #3d195b);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phonepe-btn:hover {
    background: linear-gradient(135deg, #6b2fb3, #4a1e6b);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(95, 37, 159, 0.3);
}

.upi-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.upi-app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upi-app-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.upi-app-btn img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.upi-app-btn span {
    font-weight: 600;
    color: #333;
}

.upi-payment {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
    animation: slideInLeft 1s ease-out 0.3s both;
}

.upi-payment:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 188, 212, 0.4);
}

/* Calendar Integration */
.calendar-reminder {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    display: none;
}

.calendar-reminder.active {
    display: block;
    animation: slideInUp 0.5s ease;
}

.calendar-reminder h4 {
    color: #4caf50;
    margin-bottom: 10px;
}

.calendar-reminder p {
    margin: 5px 0;
    color: #2e7d32;
}

/* Timeline enhancements */
.timeline-item[data-month] {
    position: relative;
}

.timeline-item[data-month]::before {
    content: attr(data-month);
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item[data-month]:hover::before {
    opacity: 1;
}

/* Mobile Responsive Updates */
/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px 20px;
        margin-bottom: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .logo-section i {
        font-size: 2rem;
    }
    
    .logo-section h1 {
        font-size: 1.5rem;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
    }
    
    /* Customer Card Mobile */
    .customer-info {
        gap: 10px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* Timeline Mobile */
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        margin-bottom: 20px;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
    
    .timeline-content .amount {
        font-size: 1.2rem;
    }
    
    /* Countdown Mobile */
    .countdown-display {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 8px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    /* Payment Options Mobile */
    .payment-content {
        display: block !important;
        width: 100% !important;
    }
    
    .enhanced-upi-section {
        padding: 20px !important;
        margin-bottom: 20px;
    }
    
    .upi-details-premium-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .payment-methods-premium-container {
        padding: 20px !important;
    }
    
    .qr-code-premium-container img {
        width: 220px !important;
        height: 220px !important;
    }
    
    .payu-gateway-premium-section {
        padding: 20px !important;
    }
    
    .payment-qr {
        order: 2;
    }
    
    .payment-buttons {
        order: 1;
        gap: 10px;
    }
    
    .payment-btn {
        font-size: 0.9rem;
        padding: 12px 15px;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .payment-btn span {
        font-size: 0.8rem;
    }
    
    /* QR Code Mobile */
    .qr-container {
        width: 200px;
        height: 200px;
    }
    
    .qr-code {
        width: 180px;
        height: 180px;
    }
    
    /* Breakdown Mobile */
    .breakdown-content {
        padding: 10px;
    }
    
    .step-by-step {
        gap: 8px;
    }
    
    .calc-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px;
    }
    
    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px;
    }
    
    /* Modal Mobile */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    /* Form Mobile */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* UPI Apps Grid Mobile */
    .upi-apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .upi-app-btn {
        padding: 15px 10px;
        font-size: 0.8rem;
    }
    
    .upi-app-btn img {
        width: 30px;
        height: 30px;
    }
    
    /* FAB Mobile */
    .fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .fab i {
        font-size: 1.2rem;
    }
    
    /* Activity Mobile */
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
    }
    
    .activity-content {
        text-align: left;
    }
    
    /* Sound Controls Mobile */
    .sound-controls {
        gap: 5px;
    }
    
    .sound-toggle,
    .calendar-btn {
        width: 35px;
        height: 35px;
        padding: 8px;
    }
    
    .sound-visualization {
        padding: 10px;
        margin-top: 10px;
    }
    
    .sound-text {
        font-size: 0.8rem;
    }
}

/* Small Mobile Devices (320px and below) */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .card {
        padding: 10px;
        border-radius: 10px;
    }
    
    .countdown-display {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-btn {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    .modal-content {
        width: 98%;
        margin: 5px;
    }
    
    .upi-apps-grid {
        grid-template-columns: 1fr;
    }
}

/* AI Chat Interface Styles */
.ai-chat-interface {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.ai-chat-interface.open {
    transform: translateY(0);
}

.ai-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-header i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.chat-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-chat-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-message, .user-message {
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 85%;
    word-wrap: break-word;
}

.ai-message {
    background: #f0f2f5;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: #667eea;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.ai-chat-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.ai-chat-input button {
    background: #667eea;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ai-chat-input button:hover {
    background: #5a6fd8;
}

/* Desktop Payment Options Styles */
.payment-options-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.qr-payment {
    text-align: center;
}

.payment-qr-large {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    margin: 15px 0;
}

.qr-details {
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.qr-details p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.upi-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upi-pay-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.upi-pay-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.upi-pay-btn img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.phonepe-btn:hover {
    border-color: #5f259f;
    background: #f9f5ff;
}

.gpay-btn:hover {
    border-color: #4285f4;
    background: #f5f8ff;
}

.paytm-btn:hover {
    border-color: #002970;
    background: #f5f7ff;
}

/* Manual Payment Details */
.payment-details-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    font-weight: 500;
    font-family: monospace;
}

.detail-value.selectable {
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.detail-value.selectable:hover {
    background: #e9ecef;
}

.amount-highlight {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: bold;
}

.copy-btn {
    background: #6c757d;
    border: none;
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #5a6268;
}

/* Payment Success Animation */
.payment-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    animation: fadeIn 0.3s ease;
}

.success-animation {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    animation: bounceIn 0.6s ease;
}

.success-animation i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: checkmark 0.6s ease 0.3s both;
}

.success-animation h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.success-animation p {
    margin-bottom: 10px;
    color: #666;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* Enhanced Sound Visualization */
.sound-visualization.speaking {
    animation: soundPulse 2s infinite;
}

.sound-visualization.speaking .sound-wave {
    animation: wave 0.5s infinite ease-in-out;
}

.sound-visualization.speaking .sound-wave:nth-child(2) {
    animation-delay: 0.1s;
}

.sound-visualization.speaking .sound-wave:nth-child(3) {
    animation-delay: 0.2s;
}

.sound-visualization.speaking .sound-text {
    animation: textGlow 2s infinite;
}

/* Mobile AI Chat */
@media (max-width: 768px) {
    .ai-chat-interface {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 80px;
    }
    
    .payment-options-desktop {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .upi-pay-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .upi-pay-btn img {
        width: 30px;
        height: 30px;
    }
    
    .payment-qr-large {
        width: 150px;
        height: 150px;
    }
}
    .calculation-steps {
        padding: 15px;
    }
    
    .calc-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .sound-controls {
        flex-direction: column;
        gap: 5px;
    }
    
    .upi-apps-grid {
        grid-template-columns: 1fr;
    }
    
    .sound-text {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .timeline-item[data-month]::before {
        left: -80px;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* New Animations */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes soundPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    }
}

@keyframes wave {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 40px;
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #ff6b6b, 0 0 20px #ff6b6b, 0 0 30px #ff6b6b;
    }
    to {
        text-shadow: 0 0 20px #ff6b6b, 0 0 30px #ff6b6b, 0 0 40px #ff6b6b;
    }
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes urgencyPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* AI Chat Toggle Button with Dynamic Features */
.ai-chat-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

.ai-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.ai-chat-toggle.has-notification {
    animation: pulseNotification 2s infinite;
}

.ai-chat-toggle.has-notification::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    animation: bounce 1s infinite;
}

.ai-chat-toggle i {
    font-size: 16px;
}

/* Enhanced AI Chat Interface */
.ai-chat-interface {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid #e1e8ed;
    overflow: hidden;
}

.ai-chat-interface.open {
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.ai-chat-header i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

.status-dot.online {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-chat-body {
    max-height: 350px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

.ai-chat-body::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-body::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.ai-chat-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.ai-message, .user-message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    position: relative;
    animation: messageSlideIn 0.3s ease;
}

.ai-message {
    background: #f8f9fa;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #e9ecef;
}

.ai-message.dynamic {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
}

.user-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.timestamp {
    font-size: 0.7rem;
    opacity: 0.6;
}

.message-content {
    line-height: 1.4;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.ai-chat-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 15px 15px;
}

.ai-chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ai-chat-input input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-chat-input button {
    background: #667eea;
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
}

.ai-chat-input button:hover:not(:disabled) {
    background: #5a6fd8;
    transform: scale(1.05);
}

.ai-chat-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dynamic Status Indicators */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-dot.pending {
    background: #ffc107;
    animation: pulse 2s infinite;
}

.status-dot.urgent {
    background: #ff8c00;
    animation: urgentPulse 1s infinite;
}

.status-dot.critical {
    background: #ff4757;
    animation: criticalPulse 0.5s infinite;
}

.status-dot.overdue {
    background: #dc3545;
    animation: overdueBlink 0.3s infinite;
}

/* Dynamic Animations */
@keyframes pulseNotification {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.8);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes criticalPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2);
    }
}

@keyframes overdueBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Mobile Responsive for AI Chat */
@media (max-width: 768px) {
    .ai-chat-toggle {
        bottom: 80px;
        left: 10px;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .ai-chat-toggle span {
        display: none;
    }
    
    .ai-chat-interface {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 140px;
    }
    
    .ai-chat-body {
        max-height: 250px;
    }
    
    .ai-message, .user-message {
        max-width: 90%;
        padding: 10px 12px;
    }
}

/* AI Chat Toggle Button */
.ai-chat-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.ai-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.ai-chat-toggle i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .ai-chat-toggle {
        bottom: 80px;
        left: 10px;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .ai-chat-toggle span {
        display: none;
    }
}

/* Quick Question Buttons */
.quick-questions button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.quick-questions button:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.quick-questions button i {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

/* Quick Question Button Specific Hover Effects */
.quick-questions button[onclick*="qr"]:hover {
    background: linear-gradient(135deg, #20c997, #28a745) !important;
}

.quick-questions button[onclick*="amount"]:hover {
    background: linear-gradient(135deg, #fd7e14, #ffc107) !important;
}

.quick-questions button[onclick*="upi"]:hover {
    background: linear-gradient(135deg, #e83e8c, #6f42c1) !important;
}

.quick-questions button[onclick*="deadline"]:hover {
    background: linear-gradient(135deg, #fd7e14, #dc3545) !important;
}

.quick-questions button[onclick*="history"]:hover {
    background: linear-gradient(135deg, #6610f2, #17a2b8) !important;
}

.quick-questions button[onclick*="contact"]:hover {
    background: linear-gradient(135deg, #764ba2, #667eea) !important;
}

/* Mobile responsiveness for quick questions */
@media (max-width: 768px) {
    .quick-questions {
        padding: 10px 15px !important;
    }
    
    .quick-questions button {
        padding: 6px 4px !important;
        font-size: 9px !important;
    }
    
    .quick-questions button i {
        font-size: 10px !important;
    }
}

/* Enhanced Account Badge Animations */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 35px rgba(238, 90, 36, 0.8);
        transform: scale(1.02);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

.enhanced-due-badge {
    transition: all 0.3s ease !important;
}

.enhanced-due-badge:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(238, 90, 36, 0.6) !important;
}

/* Chat Interface Improvements */
.ai-chatbot-interface {
    z-index: 9999 !important;
}

.chat-header {
    position: relative !important;
    z-index: 9999 !important;
}

.chat-input {
    position: relative !important;
    z-index: 9999 !important;
}

/* Translate and Speak Button Styles */
.translate-btn, .speak-btn {
    background: none !important;
    border: none !important;
    color: #667eea !important;
    font-size: 12px !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    margin: 0 4px !important;
    opacity: 0.8 !important;
}

.translate-btn:hover, .speak-btn:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.translate-btn i, .speak-btn i {
    margin-right: 4px !important;
}

/* Message container improvements */
.message {
    position: relative !important;
    margin-bottom: 15px !important;
}

.message-actions {
    display: flex !important;
    gap: 5px !important;
    margin-top: 5px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.message:hover .message-actions {
    opacity: 1 !important;
}

/* Fade-in animation for translations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Chat Interface Responsiveness */
@media (max-width: 768px) {
    .ai-chatbot-interface {
        width: 95% !important;
        height: 80vh !important;
        bottom: 10px !important;
        right: 2.5% !important;
        left: 2.5% !important;
    }
    
    .message-actions button {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    
    .enhanced-due-badge {
        min-width: 100px !important;
        padding: 12px !important;
    }
    
    .enhanced-due-badge div:nth-child(2) {
        font-size: 16px !important;
    }
}
