/* Enhanced Mobile App V2 Styles - World Class */

/* App Header */
.app-header-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 12px 16px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.header-title h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.header-title p {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #666;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-selector {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    background: white;
}

.header-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
}

/* Main Content Padding */
#mainContent {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Section Titles */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #333;
}

/* Quick Actions */
.quick-actions {
    padding: 0 16px 24px;
}

.actions-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.actions-scroll::-webkit-scrollbar {
    display: none;
}

.quick-action-card {
    min-width: 100px;
    background: white;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.action-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.action-title {
    font-size: 12px;
    display: block;
    color: #333;
}

/* News Section */
.news-section {
    padding: 0 16px 24px;
}

.news-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.news-carousel::-webkit-scrollbar {
    display: none;
}

.news-card {
    min-width: 280px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-card h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.news-card p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.news-card small {
    font-size: 11px;
    color: #999;
}

/* Services Section */
.services-section {
    padding: 0 16px 24px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.service-card-mini {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 12px;
    align-items: center;
}

.service-icon-mini {
    font-size: 32px;
}

.service-info-mini h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.service-info-mini p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.view-all-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Booking Modal */
.booking-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.booking-container {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.booking-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-body {
    padding: 20px;
}

.booking-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.booking-icon {
    font-size: 32px;
}

.booking-option h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.booking-option p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.ai-chatbot-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chatbot-widget.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 16px;
}

.chatbot-header p {
    margin: 4px 0 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f5f5f5;
}

.bot-message,
.user-message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 80%;
    animation: fadeIn 0.3s;
}

.bot-message {
    background: white;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
}

.chatbot-suggestions {
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: white;
    border-top: 1px solid #eee;
}

.suggestion-chip {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background: #667eea;
    color: white;
}

.chatbot-input {
    display: flex;
    padding: 12px;
    background: white;
    border-top: 1px solid #eee;
    gap: 8px;
}

.voice-btn,
.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #667eea;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.voice-btn.listening {
    background: #f44336;
    animation: pulse 1s infinite;
}

#chatInput {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px 20px;
    margin: 0 -16px 20px -16px;
    color: white;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
}

.live-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Emergency SOS */
.emergency-sos {
    display: flex;
    gap: 12px;
    padding: 0 16px 20px;
    margin-top: -10px;
}

.sos-btn {
    flex: 1;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
    animation: sosGlow 2s infinite;
}

@keyframes sosGlow {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(244, 67, 54, 0.6);
    }
}

.emergency-call {
    background: white;
    color: #f44336;
    border: 2px solid #f44336;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Smart Features Grid */
.smart-features {
    padding: 0 16px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:active {
    transform: scale(0.95);
}

.feature-card:active::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.feature-card h3 {
    font-size: 13px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.feature-card p {
    font-size: 11px;
    color: #666;
    margin: 0;
}

.feature-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* QR Section */
.qr-section {
    padding: 0 16px 24px;
}

.qr-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.qr-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.qr-card:active {
    transform: scale(0.95);
}

.qr-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
}

.qr-card h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
}

.qr-card p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Enhanced Bottom Nav */
.bottom-nav-v2 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    border-radius: 12px;
    position: relative;
}

.nav-item.active {
    color: #667eea;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #667eea;
    border-radius: 0 0 3px 3px;
}

.nav-center {
    margin-top: -20px;
}

.nav-icon-large {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Payment Modal Styles */
.payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s;
}

.payment-container {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.method-icon {
    font-size: 32px;
}

.method-info {
    text-align: left;
}

.method-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.method-info small {
    color: #666;
    font-size: 12px;
}

.payment-body {
    padding: 20px;
}

.amount-section {
    margin-bottom: 20px;
}

.amount-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.amount-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    box-sizing: border-box;
}

.payment-methods {
    margin-bottom: 16px;
}

.payment-methods h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
}

.payment-note {
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.payment-note p {
    margin: 0;
    font-size: 13px;
    color: #856404;
}

/* QR Modal */
.qr-modal .payment-container {
    max-width: 360px;
}

.qr-body {
    padding: 20px;
    text-align: center;
}

.qr-image-container {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.qr-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 8px;
}

.payment-amount-display {
    margin-bottom: 20px;
}

.payment-amount-display h2 {
    margin: 0 0 4px 0;
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

.payment-amount-display p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.qr-instructions {
    background: #f8f9ff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.qr-instructions h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
}

.qr-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.qr-instructions li {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}

.secondary-btn {
    width: 100%;
    padding: 14px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 360px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Install App 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.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.install-steps {
    text-align: left;
    margin: 20px 0;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.step {
    margin-bottom: 15px;
}

.step h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.step p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

