        /* ============================================
           MOBILE BROWSER COMPATIBILITY
           Targets: Chrome, Samsung Internet, Safari,
           Firefox, UC Browser, Opera Mini, MIUI Browser,
           Huawei Browser, Vivo/Oppo built-in browsers
           ============================================ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-box-sizing: border-box;
        }

        html, body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
            background: #f5f5f5;
            color: #333;
            height: 100%;
            -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape on iOS/Samsung */
            -ms-text-size-adjust: 100%;
            -webkit-tap-highlight-color: transparent; /* Remove blue tap highlight on Samsung/Android */
        }
        /* Prevent double-tap zoom on all interactive elements (Samsung fix) */
        button, a, input, select, .pricing-card, .location-card, .plan-option {
            touch-action: manipulation;
        }

        /* Flexbox gap fallback for older Samsung Internet (<14) and UC Browser */
        @supports not (gap: 1px) {
            [style*="gap"], .share-buttons > *, .pricing-cards > *,
            .steps > *, .location-card, .stop-card, .review-card {
                margin: 4px;
            }
        }

        .app-container {
            display: flex;
            flex-direction: column;
            height: 100vh;
            max-width: 480px;
            margin: 0 auto;
            background: white;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        /* Header */
        .header {
            background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
            color: white;
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
            position: sticky;
            top: 0;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
        }

        .header-title .gold {
            color: #d4af37;
        }

        .header-right {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .back-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            display: none;
        }

        .back-btn.show {
            display: block;
        }

        .back-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .lang-selector {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 6px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
        }

        .lang-selector:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* Main content area */
        .content {
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        .view {
            display: none;
            flex: 1;
            flex-direction: column;
            padding: 20px;
        }

        .view.active {
            display: flex;
        }

        /* Home View */
        .home-view {
            justify-content: center;
            text-align: center;
        }

        .hero-banner {
            position: relative;
            margin: 0 -20px;
            overflow: hidden;
        }

        .hero-image {
            width: 100%;
            height: 220px;
            object-fit: cover;
            display: block;
        }

        .hero-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.7));
            padding: 40px 20px 20px;
            color: white;
        }

        .hero-title {
            font-size: 26px;
            font-weight: 700;
            color: white;
            margin-bottom: 6px;
            text-shadow: 0 1px 4px rgba(0,0,0,0.3);
        }

        .hero-subtitle {
            font-size: 13px;
            color: rgba(255,255,255,0.9);
            line-height: 1.5;
        }

        .pricing-cards {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
            margin: 16px 0;
        }

        .pricing-card {
            border: 2px solid #ddd;
            border-radius: 10px;
            padding: 12px 6px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            background: white;
        }

        .pricing-card:hover {
            border-color: #2d5016;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .pricing-card.featured {
            border-color: #d4af37;
            background: linear-gradient(135deg, #fff9e6, #fff3cc);
            position: relative;
        }

        .pricing-card.featured::before {
            content: "⭐ BEST";
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: #d4af37;
            color: white;
            font-size: 9px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 8px;
            letter-spacing: 0.5px;
        }

        .pricing-stops {
            font-size: 22px;
            font-weight: 800;
            color: #2d5016;
        }

        .pricing-label {
            font-size: 11px;
            color: #666;
            margin: 2px 0 6px;
        }

        .pricing-price {
            font-size: 18px;
            font-weight: 700;
            color: #d4af37;
        }

        .how-it-works {
            margin-bottom: 40px;
            text-align: left;
        }

        .how-it-works-title {
            font-size: 16px;
            font-weight: 600;
            color: #2d5016;
            margin-bottom: 20px;
            text-align: center;
        }

        .steps {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .step {
            background: white;
            padding: 16px;
            border-radius: 12px;
            border-left: 4px solid #d4af37;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .step-number {
            display: inline-block;
            background: #2d5016;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .step-text {
            font-size: 14px;
            color: #555;
        }

        .browse-btn {
            background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .browse-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(45, 80, 22, 0.3);
        }

        /* Browse View */
        .browse-view {
            flex-direction: column;
        }

        .hotel-input-section {
            margin-bottom: 20px;
        }

        .hotel-label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: #666;
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        .hotel-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            font-family: inherit;
        }

        .hotel-input:focus {
            outline: none;
            border-color: #2d5016;
            box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
        }

        .distance-info {
            font-size: 12px;
            color: #999;
            margin-top: 4px;
            min-height: 16px;
        }

        .plan-toggle {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
            margin-bottom: 12px;
        }

        .plan-option {
            padding: 10px 6px;
            border: 2px solid #ddd;
            border-radius: 8px;
            background: white;
            cursor: pointer;
            text-align: center;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .plan-option:hover {
            border-color: #d4af37;
        }

        .plan-option.active {
            border-color: #2d5016;
            background: #f0f8e8;
        }

        .plan-all {
            background: linear-gradient(135deg, #fff9e6, #fff3cc);
            border-color: #d4af37;
        }

        .plan-all.active {
            background: linear-gradient(135deg, #d4af37, #c4a030);
            color: white;
            border-color: #b8942a;
        }

        .selection-summary-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, #2d5016, #3d6b1f);
            color: white;
            padding: 10px 16px;
            border-radius: 10px;
            margin-bottom: 12px;
            position: sticky;
            top: 56px;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .summary-left {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .summary-count {
            font-size: 22px;
            font-weight: 800;
        }

        .summary-label {
            font-size: 13px;
            opacity: 0.9;
        }

        .summary-right {
            display: flex;
            align-items: center;
        }

        .summary-price {
            font-size: 20px;
            font-weight: 800;
            color: #d4af37;
        }

        .filter-row {
            margin-bottom: 12px;
        }

        .category-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 8px;
            overflow-x: auto;
            padding-bottom: 4px;
        }

        .unselect-all-btn {
            background: none;
            border: 1px solid #c62828;
            color: #c62828;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
        }

        .unselect-all-btn:hover {
            background: #fce4ec;
        }

        .filter-pill {
            padding: 8px 14px;
            border: 1px solid #ddd;
            border-radius: 20px;
            background: white;
            cursor: pointer;
            font-size: 13px;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .filter-pill:hover {
            border-color: #2d5016;
        }

        .filter-pill.active {
            background: #2d5016;
            color: white;
            border-color: #2d5016;
        }

        .locations-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            flex: 1;
            overflow-y: auto;
            margin-bottom: 80px;
        }

        .location-card {
            border: 2px solid #ddd;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            overflow: hidden;
            background: white;
            position: relative;
        }

        .location-card:hover {
            border-color: #d4af37;
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
        }

        .location-card.selected {
            border-color: #2d5016;
            background: #f0f8e8;
        }

        .location-card.selected .location-select-badge {
            background: #2d5016;
            color: white;
        }

        .location-image {
            width: 100%;
            height: 120px;
            object-fit: cover;
            display: block;
            background: linear-gradient(135deg, #e8f0e0, #f5f0e0);
        }

        .location-card-body {
            padding: 10px 12px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .location-select-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(255,255,255,0.9);
            border: 2px solid #ccc;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 700;
            z-index: 2;
            box-shadow: 0 1px 4px rgba(0,0,0,0.15);
        }

        .location-info {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .location-name {
            font-weight: 600;
            font-size: 14px;
            color: #2d5016;
        }

        .location-category {
            display: inline-block;
            background: #f0f8e8;
            color: #2d5016;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
            width: fit-content;
        }

        .location-description {
            font-size: 12px;
            color: #666;
            line-height: 1.4;
        }

        .location-distance {
            font-size: 11px;
            margin-top: 4px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            border-radius: 12px;
            font-weight: 500;
        }

        .location-distance.near {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .location-distance.medium {
            background: #fff3e0;
            color: #e65100;
        }

        .location-distance.far {
            background: #fce4ec;
            color: #c62828;
        }

        .distance-group-header {
            font-size: 13px;
            font-weight: 700;
            padding: 10px 4px 6px;
            color: #2d5016;
            border-bottom: 2px solid #e8f0e0;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .location-checkbox {
            width: 24px;
            height: 24px;
            border: 2px solid #ddd;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .location-card.selected .location-checkbox {
            background: #2d5016;
            border-color: #2d5016;
            color: white;
            font-size: 14px;
        }

        .floating-bottom-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-width: 480px;
            margin: 0 auto;
            background: white;
            border-top: 1px solid #ddd;
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
            z-index: 50;
        }

        .selection-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .selection-count {
            font-weight: 600;
            font-size: 14px;
            color: #2d5016;
        }

        .selection-price {
            font-size: 12px;
            color: #999;
        }

        .continue-btn {
            background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: transform 0.2s;
        }

        .continue-btn:hover:not(:disabled) {
            transform: translateY(-2px);
        }

        .continue-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Review View */
        .review-view {
            flex-direction: column;
        }

        .map-container {
            width: 100%;
            height: 280px;
            border-radius: 8px;
            margin-bottom: 20px;
            overflow: hidden;
            border: 1px solid #ddd;
        }

        #review-map {
            width: 100%;
            height: 100%;
        }

        .review-stops {
            flex: 1;
            overflow-y: auto;
            margin-bottom: 100px;
        }

        .review-stop {
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 8px;
            display: flex;
            gap: 12px;
            cursor: grab;
            transition: all 0.2s;
        }

        .review-stop:active {
            cursor: grabbing;
            opacity: 0.7;
        }

        .stop-number {
            background: #2d5016;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            flex-shrink: 0;
        }

        .stop-info {
            flex: 1;
        }

        .stop-name {
            font-weight: 600;
            font-size: 14px;
            color: #2d5016;
            margin-bottom: 4px;
        }

        .stop-distance {
            font-size: 12px;
            color: #999;
        }

        .review-summary {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-width: 480px;
            margin: 0 auto;
            background: white;
            border-top: 1px solid #ddd;
            padding: 16px 20px;
            box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
            z-index: 50;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            font-size: 14px;
        }

        .summary-label {
            color: #666;
        }

        .summary-value {
            font-weight: 600;
            color: #2d5016;
        }

        .summary-divider {
            border-top: 1px solid #ddd;
            margin: 12px 0;
        }

        .pay-btn {
            background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: transform 0.2s;
        }

        .pay-btn:hover {
            transform: translateY(-2px);
        }

        /* Payment View */
        .payment-view {
            flex-direction: column;
        }

        .payment-amount {
            background: linear-gradient(135deg, #f0f8e8 0%, #fff9e6 100%);
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 20px;
        }

        .payment-amount-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        .payment-amount-value {
            font-size: 32px;
            font-weight: 700;
            color: #2d5016;
        }

        .payment-methods-label {
            font-size: 12px;
            font-weight: 600;
            color: #666;
            margin-bottom: 12px;
            text-transform: uppercase;
        }

        .payment-methods {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 20px;
            max-height: 400px;
            overflow-y: auto;
            padding-bottom: 20px;
        }

        .payment-method {
            border: 2px solid #ddd;
            border-radius: 8px;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            background: white;
        }

        .payment-method:hover {
            border-color: #d4af37;
        }

        .payment-method.selected {
            border-color: #2d5016;
            background: #f0f8e8;
        }

        .payment-method-icon {
            font-size: 28px;
            margin-bottom: 8px;
        }

        .payment-method-name {
            font-size: 12px;
            font-weight: 500;
            color: #333;
        }

        .secure-badge {
            background: #f0f8e8;
            border: 1px solid #d4af37;
            padding: 10px;
            border-radius: 6px;
            font-size: 12px;
            color: #2d5016;
            text-align: center;
            margin-bottom: 20px;
        }

        .checkout-btn {
            background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: all 0.2s;
        }

        .checkout-btn:hover:not(:disabled) {
            transform: translateY(-2px);
        }

        .checkout-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* Success View */
        .success-view {
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .success-checkmark {
            font-size: 80px;
            margin-bottom: 20px;
            animation: scaleIn 0.5s ease-out;
        }

        @keyframes scaleIn {
            from {
                transform: scale(0);
            }
            to {
                transform: scale(1);
            }
        }

        .success-title {
            font-size: 24px;
            font-weight: 700;
            color: #2d5016;
            margin-bottom: 10px;
        }

        .success-message {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .lang-lock-notice {
            background: #fff3cd;
            border: 1px solid #ffc107;
            border-radius: 8px;
            padding: 10px 14px;
            font-size: 12px;
            color: #856404;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .start-tour-btn {
            background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: transform 0.2s;
        }

        .start-tour-btn:hover {
            transform: translateY(-2px);
        }

        .download-offline-btn {
            background: white;
            color: #2d5016;
            border: 2px solid #2d5016;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            margin-top: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
            font-family: inherit;
        }

        .download-offline-btn:hover {
            background: #f0f8e8;
            transform: translateY(-1px);
        }

        .download-icon { font-size: 18px; }

        .download-hint {
            font-size: 12px;
            color: #999;
            margin-top: 8px;
            text-align: center;
        }

        .device-lock-badge {
            margin-top: 16px;
            padding: 8px 14px;
            background: #f5f5f5;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 11px;
            color: #666;
            text-align: center;
            word-break: break-all;
        }

        /* Email & Date fields on payment */
        .email-section {
            margin: 20px 0;
            padding: 16px;
            background: #f8fdf5;
            border: 1px solid #e0ecd4;
            border-radius: 12px;
        }
        .email-section-title {
            font-size: 13px;
            font-weight: 600;
            color: #2d5016;
            margin-bottom: 4px;
        }
        .email-section-subtitle {
            font-size: 11px;
            color: #888;
            margin-bottom: 10px;
        }
        .email-input, .date-input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            outline: none;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }
        .email-input:focus, .date-input:focus {
            border-color: #2d5016;
        }
        .date-row {
            display: none;
            margin-top: 10px;
        }
        .date-row.show { display: block; }
        .date-label {
            font-size: 12px;
            color: #555;
            margin-bottom: 4px;
        }

        /* Feedback button */
        .feedback-btn {
            display: block;
            width: 100%;
            margin-top: 24px;
            padding: 10px;
            background: none;
            border: 1px dashed #ccc;
            border-radius: 8px;
            color: #999;
            font-size: 12px;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
        }
        .feedback-btn:hover {
            border-color: #2d5016;
            color: #2d5016;
        }

        /* Feedback modal */
        .feedback-modal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        .feedback-modal.show { display: flex; }
        .feedback-content {
            background: #fff;
            border-radius: 16px;
            padding: 24px;
            max-width: 400px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }
        .feedback-content h3 {
            color: #2d5016;
            margin-bottom: 12px;
            font-size: 18px;
        }
        .feedback-stars {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            justify-content: center;
        }
        .feedback-star {
            font-size: 32px;
            cursor: pointer;
            transition: transform 0.15s, opacity 0.15s;
            opacity: 0.35;
        }
        .feedback-star.active { opacity: 1; }
        .feedback-star:hover { transform: scale(1.2); }
        .feedback-textarea {
            width: 100%;
            min-height: 80px;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 13px;
            resize: vertical;
            outline: none;
            box-sizing: border-box;
            font-family: inherit;
        }
        .feedback-textarea:focus { border-color: #2d5016; }
        .feedback-submit {
            width: 100%;
            margin-top: 12px;
            padding: 12px;
            background: linear-gradient(135deg, #2d5016, #3d6b1f);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }
        .feedback-close {
            position: absolute;
            top: 12px; right: 16px;
            background: none; border: none;
            font-size: 20px; cursor: pointer; color: #999;
        }
        .feedback-thanks {
            text-align: center;
            padding: 20px 0;
        }
        .feedback-thanks .check { font-size: 48px; margin-bottom: 12px; }

        /* Audio script display */
        .audio-script-container {
            margin: 16px 0;
            border: 1px solid #e0ecd4;
            border-radius: 12px;
            overflow: hidden;
            background: #f8fdf5;
        }
        .audio-script-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            color: #2d5016;
        }
        .audio-script-toggle:hover { background: #eef7e6; }
        .toggle-arrow { transition: transform 0.3s; font-size: 12px; }
        .toggle-arrow.open { transform: rotate(180deg); }
        .audio-script-text {
            padding: 0 16px 16px;
            font-size: 14px;
            line-height: 1.8;
            color: #444;
            max-height: 400px;
            overflow-y: auto;
            white-space: pre-wrap;
        }

        /* Email preview */
        .email-preview {
            margin-top: 16px;
            padding: 16px;
            background: #f9f9f9;
            border: 1px solid #eee;
            border-radius: 8px;
            font-size: 12px;
            line-height: 1.6;
            color: #555;
        }
        .email-preview-label {
            font-size: 11px;
            color: #999;
            margin-bottom: 6px;
            text-transform: uppercase;
        }

        /* Play View */
        .play-view {
            flex-direction: column;
        }

        .current-stop {
            background: linear-gradient(135deg, #f0f8e8 0%, #fff9e6 100%);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .now-playing-label {
            font-size: 11px;
            color: #999;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .current-stop-name {
            font-size: 18px;
            font-weight: 700;
            color: #2d5016;
            margin-bottom: 12px;
        }

        .proximity-badge {
            display: inline-block;
            background: #2d5016;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }

        .proximity-badge.far {
            background: #999;
        }

        .proximity-badge.near {
            background: #7cb342;
        }

        .proximity-badge.very-near {
            background: #2d5016;
        }

        .player-controls {
            background: white;
            border: 1px solid #ddd;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
        }

        .player-main-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .play-button {
            width: 52px;
            height: 52px;
            min-width: 52px;
            background: linear-gradient(135deg, #2d5016, #3d6b1f);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 2px 8px rgba(45,80,22,0.3);
        }

        .play-button:hover {
            transform: scale(1.08);
            box-shadow: 0 4px 12px rgba(45,80,22,0.4);
        }

        .play-button.playing {
            background: linear-gradient(135deg, #c0392b, #e74c3c);
            box-shadow: 0 2px 8px rgba(192,57,43,0.3);
        }

        .stop-button {
            width: 36px;
            height: 36px;
            min-width: 36px;
            background: #eee;
            color: #666;
            border: none;
            border-radius: 50%;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }
        .stop-button:hover { background: #ddd; }

        .progress-bar {
            flex: 1;
            height: 6px;
            background: #e8e8e8;
            border-radius: 3px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #2d5016, #5a9e2f);
            width: 0%;
            transition: width 0.3s linear;
            border-radius: 3px;
        }

        .time-display {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: #999;
            margin-bottom: 10px;
            padding: 0 4px;
        }

        .player-sliders {
            display: flex;
            gap: 16px;
            padding: 8px 0 4px;
            border-top: 1px solid #f0f0f0;
        }

        .slider-group {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .slider-icon {
            font-size: 14px;
        }

        .player-slider {
            flex: 1;
            -webkit-appearance: none;
            appearance: none;
            height: 4px;
            background: #ddd;
            border-radius: 2px;
            outline: none;
            touch-action: manipulation; /* Prevent double-tap zoom on Samsung/mobile */
            padding: 8px 0; /* Larger touch area on mobile */
        }

        .player-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #2d5016;
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
            margin-top: -8px; /* Samsung Internet fix: center thumb on track */
        }
        /* Firefox range input */
        .player-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #2d5016;
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
        .player-slider::-moz-range-track {
            height: 4px;
            background: #ddd;
            border-radius: 2px;
        }
        /* Samsung Internet / Edge */
        .player-slider::-ms-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #2d5016;
            cursor: pointer;
            border: 2px solid white;
        }
        .player-slider::-ms-track {
            height: 4px;
            background: transparent;
            border-color: transparent;
            color: transparent;
        }
        .player-slider::-ms-fill-lower {
            background: #2d5016;
            border-radius: 2px;
        }

        .slider-value {
            font-size: 11px;
            color: #888;
            min-width: 30px;
            text-align: right;
        }

        .tts-status {
            font-size: 11px;
            color: #888;
            text-align: center;
            margin-top: 4px;
            min-height: 16px;
        }

        .voice-selector {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            padding-top: 8px;
            border-top: 1px solid #f0f0f0;
        }
        .voice-select {
            flex: 1;
            padding: 8px 10px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 13px;
            color: #444;
            background: #fafafa;
            cursor: pointer;
            outline: none;
        }
        .voice-select:focus { border-color: #2d5016; }

        .stops-list {
            flex: 1;
            overflow-y: auto;
            margin-bottom: 20px;
        }

        .stop-item {
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .stop-item:hover {
            border-color: #d4af37;
            background: #f9f9f9;
        }

        .stop-item.current {
            border-color: #2d5016;
            background: #f0f8e8;
        }

        .stop-item-number {
            background: #2d5016;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            flex-shrink: 0;
        }

        .stop-item-name {
            flex: 1;
            font-size: 14px;
            font-weight: 500;
            color: #333;
        }

        /* Warning Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 200;
            align-items: center;
            justify-content: center;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            padding: 24px;
            max-width: 400px;
            text-align: center;
            margin: 20px;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 700;
            color: #2d5016;
            margin-bottom: 12px;
        }

        .modal-message {
            font-size: 14px;
            color: #666;
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .modal-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .modal-btn {
            padding: 10px;
            border-radius: 6px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
        }

        .modal-btn.cancel {
            background: #eee;
            color: #333;
        }

        .modal-btn.cancel:hover {
            background: #ddd;
        }

        .modal-btn.confirm {
            background: #2d5016;
            color: white;
        }

        .modal-btn.confirm:hover {
            background: #3d6b1f;
        }

        /* Scrollbar styling */
        .content::-webkit-scrollbar,
        .locations-grid::-webkit-scrollbar,
        .review-stops::-webkit-scrollbar,
        .payment-methods::-webkit-scrollbar,
        .stops-list::-webkit-scrollbar {
            width: 6px;
        }

        .content::-webkit-scrollbar-track,
        .locations-grid::-webkit-scrollbar-track,
        .review-stops::-webkit-scrollbar-track,
        .payment-methods::-webkit-scrollbar-track,
        .stops-list::-webkit-scrollbar-track {
            background: transparent;
        }

        .content::-webkit-scrollbar-thumb,
        .locations-grid::-webkit-scrollbar-thumb,
        .review-stops::-webkit-scrollbar-thumb,
        .payment-methods::-webkit-scrollbar-thumb,
        .stops-list::-webkit-scrollbar-thumb {
            background: #d4af37;
            border-radius: 3px;
        }

        /* Loading animation */
        .loading-spinner {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #2d5016;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive tweaks for APAC budget devices (small screens 320-480px) */
        @media (max-width: 480px) {
            .app-container {
                box-shadow: none;
            }
            /* Larger touch targets for small screens (WCAG 2.1 min 44px) */
            button, .plan-option, .pricing-card, .location-card {
                min-height: 44px;
            }
            .share-btn {
                width: 44px;
                height: 44px;
            }
        }
        /* Very small devices (Redmi Go, budget phones ~320px wide) */
        @media (max-width: 360px) {
            .hero-title { font-size: 22px; }
            .hero-subtitle { font-size: 13px; }
            .pricing-cards { flex-direction: column; }
            .pricing-card { width: 100%; }
            .share-buttons { gap: 8px; }
            .share-btn { width: 40px; height: 40px; font-size: 18px; }
            .share-btn-label { font-size: 8px; }
        }
        /* ============================================
           BOTTOM NAVIGATION
           ============================================ */
        .bottom-nav {
            display: flex;
            justify-content: space-around;
            align-items: center;
            background: #fff;
            border-top: 1px solid #eee;
            padding: 6px 0 8px;
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 480px;
            z-index: 1000;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            min-height: 44px;
            cursor: pointer;
            color: #999;
            text-decoration: none;
            transition: color 0.2s;
            -webkit-tap-highlight-color: transparent;
        }
        .nav-item.active {
            color: #2d5016;
        }
        .nav-icon {
            font-size: 20px;
            line-height: 1;
            margin-bottom: 2px;
        }
        .nav-label {
            font-size: 10px;
            font-weight: 500;
            line-height: 1;
        }
        .views-container {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 60px;
        }

        /* ============================================
           MODAL OVERLAY
           ============================================ */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }
        .modal-overlay.active,
        .modal-overlay.show {
            display: flex;
        }
        .modal-content {
            background: #fff;
            border-radius: 16px;
            padding: 24px;
            max-width: 90vw;
            width: 340px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }
        .modal-title {
            font-size: 18px;
            font-weight: 700;
            color: #2d5016;
            margin-bottom: 12px;
            text-align: center;
        }
        .modal-message {
            font-size: 14px;
            color: #555;
            margin-bottom: 16px;
            text-align: center;
        }
        .modal-buttons {
            display: flex;
            gap: 10px;
        }
        .modal-btn {
            flex: 1;
            padding: 12px 16px;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            min-height: 44px;
        }
        .modal-btn.cancel {
            background: #f0f0f0;
            color: #666;
        }
        .modal-btn.confirm {
            background: #2d5016;
            color: #fff;
        }

        /* Feedback modal extras */
        .feedback-stars {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin: 16px 0;
        }
        .feedback-star {
            font-size: 28px;
            cursor: pointer;
            opacity: 0.4;
            transition: opacity 0.2s, transform 0.2s;
        }
        .feedback-star.active {
            opacity: 1;
            transform: scale(1.15);
        }
        .feedback-text {
            width: 100%;
            min-height: 80px;
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 12px;
            font-size: 14px;
            resize: vertical;
            margin-bottom: 10px;
            font-family: inherit;
        }
        .feedback-email {
            width: 100%;
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 14px;
            margin-bottom: 14px;
            font-family: inherit;
        }

        /* ============================================
           MORE MENU & SHARE SHEET
           ============================================ */
        .more-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.4);
            z-index: 999;
            justify-content: center;
            align-items: flex-end;
        }
        .more-menu-overlay.show {
            display: flex;
        }
        .more-menu {
            background: #fff;
            width: 100%;
            max-width: 480px;
            border-radius: 16px 16px 0 0;
            padding: 16px 0 calc(16px + 60px);
            box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        }
        .more-menu-item {
            display: flex;
            align-items: center;
            padding: 14px 24px;
            font-size: 15px;
            color: #333;
            cursor: pointer;
            transition: background 0.15s;
        }
        .more-menu-item:active {
            background: #f5f5f5;
        }
        .more-menu-icon {
            font-size: 20px;
            margin-right: 14px;
            width: 28px;
            text-align: center;
        }
        .share-sheet {
            padding: 20px 20px calc(20px + 60px);
        }
        .share-sheet-title {
            font-size: 16px;
            font-weight: 600;
            color: #2d5016;
            text-align: center;
            margin-bottom: 16px;
        }
        .share-buttons-grid {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        .share-native-btn {
            width: 100%;
            padding: 12px;
            background: #2d5016;
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 8px;
        }

        /* Notch/safe area support (iPhone X+, modern Samsung, Xiaomi) */
        @supports (padding: env(safe-area-inset-bottom)) {
            .bottom-nav {
                padding-bottom: calc(8px + env(safe-area-inset-bottom));
            }
        }

        /* Social Sharing Bar */
        .share-section {
            margin-top: 24px;
            padding: 20px 0 8px;
            border-top: 1px solid #eee;
            text-align: center;
        }
        .share-tagline {
            font-size: 14px;
            color: #666;
            margin-bottom: 14px;
            font-style: italic;
        }
        .share-buttons {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .share-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        }
        .share-btn:hover, .share-btn:active {
            transform: scale(1.12);
            box-shadow: 0 4px 14px rgba(0,0,0,0.2);
        }
        .share-btn.whatsapp { background: #25D366; color: #fff; }
        .share-btn.wechat { background: #07C160; color: #fff; }
        .share-btn.line { background: #00B900; color: #fff; }
        .share-btn.kakao { background: #FEE500; color: #3C1E1E; }
        .share-btn.telegram { background: #0088cc; color: #fff; }
        .share-btn.facebook { background: #1877F2; color: #fff; }
        .share-btn-label {
            font-size: 9px;
            color: #999;
            margin-top: 4px;
            text-align: center;
        }
        .share-btn-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Content Protection - prevent text selection/copying while keeping crawlable */
        .app-container, .location-card, .stop-card, .audio-script-content,
        .review-card, .plan-card, h1, h2, h3, p, span, li, label {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }
        /* Allow selection in input fields and textareas for usability */
        input, textarea, select {
            -webkit-user-select: auto;
            -moz-user-select: auto;
            -ms-user-select: auto;
            user-select: auto;
        }
        /* Invisible watermark overlay */
        .content-watermark::after {
            content: 'Penang Heritage Walk © 2026';
            position: fixed;
            bottom: -100px;
            right: -100px;
            font-size: 8px;
            color: transparent;
            pointer-events: none;
            z-index: -1;
        }
