* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F5F5F5;
    color: #2D2D2D;
    overflow-x: hidden;
}

.app-container {
    max-width: 375px;
    margin: 0 auto;
    background: #f5f5f5;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header */
.header {
    background: #05672C;
    color: #FFFFFF;
    padding: 20px 16px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(5, 103, 44, 0.3);
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.header .tagline {
    font-size: 14px;
    opacity: 0.9;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    background: #FFFFFF;
    border-top: 1px solid #E0E0E0;
    display: flex;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6f6f6f;
}

.nav-item.active {
    color: #045022;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 300;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Content */
.content {
    padding: 16px;
    padding-bottom: 80px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Cards */
.card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #E0E0E0;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #2D2D2D;
    font-weight: 600;
}

/* Location Input */
.location-input {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #E0E0E0;
}

.input-group {
    margin-bottom: 16px;
    position: relative;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group .icon {
    display: block;
    margin-bottom: 8px;
    color: #6F6F6F;
    font-weight: 600;
    font-size: 12px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    background: #F5F5F5;
    color: #2D2D2D;
}

.input-group input:focus {
    outline: none;
    border-color: #016923;
    background: #FFFFFF;
}

/* Quality Seal */
.quality-seal {
    background: linear-gradient(135deg, #05672C, #016923);
    color: #FFFFFF;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #016923;
}

/* Estimate Card */
.estimate-card {
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

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

.estimate-row:last-child {
    margin-bottom: 0;
}

.estimate-row.highlight {
    font-weight: 600;
    font-size: 16px;
    color: #05672C;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-primary {
    background: #05672C;
    color: #FFFFFF;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #016923;
}

.btn-secondary {
    background: transparent;
    color: #05672C;
    border: 1px solid #05672C;
}

.btn-secondary:hover {
    background: #05672C;
    color: #FFFFFF;
}

/* Saved Places */
.saved-places {
    margin-bottom: 16px;
}

.saved-place-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.saved-place-item:hover {
    border-color: #05672C;
    background: #F5F5F5;
}

.place-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border-radius: 8px;
}

.place-icon svg {
    stroke: #05672C;
}

.place-info {
    flex: 1;
}

.place-name {
    font-weight: 600;
    color: #05672C;
    margin-bottom: 4px;
    font-size: 15px;
}

.place-address {
    font-size: 12px;
    color: #016923;
}

/* Vehicle Categories */
.vehicle-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.category-card {
    flex: 1;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.category-card.selected {
    border-color: #05672C;
    background: #F5F5F5;
    box-shadow: 0 2px 8px rgba(5, 103, 44, 0.15);
}

.category-icon {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    stroke: #05672C;
}

.category-card .category-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #05672C;
    font-size: 14px;
}

.category-card .category-price {
    font-size: 12px;
    color: #016923;
    font-weight: 500;
}

/* Loyalty Cards */
.coupon-card {
    background: linear-gradient(135deg, #FF8027, #FF9C41);
    color: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
}

.coupon-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.coupon-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.coupon-details {
    font-size: 12px;
    opacity: 0.9;
}

/* Multimodal Options */
.route-option {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #FFFFFF;
}

.route-option:hover {
    border-color: #05672C;
}

.route-option.selected {
    border-color: #05672C;
    background: #F5F5F5;
}

.route-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #FFFFFF;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.route-badge.fastest {
    background: #FF8027;
}

.route-badge.cheapest {
    background: #05672C;
}

.route-badge.eco {
    background: #77DC1A;
}

.route-icons {
    font-size: 16px;
    margin-bottom: 8px;
    color: #05672C;
    font-weight: 500;
}

.route-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
}

.route-time {
    color: #016923;
    font-size: 12px;
    margin-top: 4px;
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    width: 90%;
    max-width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #E0E0E0;
}

.modal-header {
    padding: 20px 20px 0;
    text-align: center;
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
}

/* Real Tracking Map */
.tracking-map-real {
    height: 250px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid #E0E0E0;
}

.custom-driver-marker,
.custom-passenger-marker {
    background: transparent;
    border: none;
}

.driver-pin {
    width: 30px;
    height: 30px;
    background: #05672C;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
}

.driver-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.passenger-pin {
    width: 30px;
    height: 30px;
    background: #FF8027;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.passenger-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.tracking-info {
    text-align: center;
}

.tracking-time {
    font-size: 24px;
    font-weight: 700;
    color: #05672C;
    margin-bottom: 4px;
}

.tracking-distance {
    font-size: 12px;
    color: #016923;
}

/* Trip Info Card */
.trip-info-card {
    background: #F5F5F5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

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

.trip-row:last-child {
    margin-bottom: 0;
}

.trip-row.highlight {
    font-weight: 700;
    font-size: 16px;
    color: #05672C;
    padding-top: 12px;
    border-top: 2px solid #E0E0E0;
}

/* Driver Profile Mini */
.driver-profile-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
}

.driver-name {
    font-weight: 600;
    font-size: 16px;
    color: #2D2D2D;
    margin-bottom: 4px;
}

.driver-vehicle {
    font-size: 13px;
    color: #757575;
}

.btn-icon {
    padding: 8px 20px;
    font-size: 14px;
}

/* Trip Summary */
.trip-summary {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.summary-row {
    font-size: 15px;
    color: #2D2D2D;
    margin-bottom: 12px;
    font-weight: 500;
}

.summary-price {
    font-size: 28px;
    font-weight: 700;
    color: #05672C;
}

/* Driver Profile */
.driver-profile {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.driver-avatar {
    width: 60px;
    height: 60px;
    background: #E0E0E0;
    border-radius: 50%;
    margin-right: 16px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23056923"><path d="M12 2C13.1 2 14 2.9 14 4C14 5.1 13.1 6 12 6C10.9 6 10 5.1 10 4C10 2.9 10.9 2 12 2ZM21 9V7L15 7C14.6 7 14.2 7.1 13.9 7.4L10.5 10.8L9.5 9.8C9.1 9.4 8.6 9.2 8 9.2S6.9 9.4 6.5 9.8L3 13.3V15.3L6.5 11.8C6.7 11.6 6.9 11.6 7.1 11.8L9.5 14.2L13.9 9.8C14.1 9.6 14.4 9.6 14.6 9.8L21 9Z"/></svg>');
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.driver-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #05672C;
}

.driver-rating {
    color: #016923;
    font-size: 14px;
}

/* Vehicle Badge */
.vehicle-badge {
    background: #05672C;
    color: #FFFFFF;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin: 4px 4px 0 0;
    display: inline-block;
}

/* Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #F5F5F5, #E0E0E0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #05672C;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid #E0E0E0;
}

/* Lists */
.list-item {
    padding: 12px 0;
    border-bottom: 1px solid #F0F5CD;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: #05672C;
}

.list-item-subtitle {
    font-size: 12px;
    color: #016923;
}

.list-item-value {
    font-weight: 600;
    color: #FF8027;
}

/* Responsive */
@media (max-width: 375px) {
    .app-container {
        max-width: 100%;
    }
}

/* Status indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #77DC1A;
    display: inline-block;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

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

/* Referral Code */
.referral-code {
    background: #F5F5F5;
    border: 2px dashed #FF8027;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.referral-code-value {
    font-size: 24px;
    font-weight: 700;
    color: #FF8027;
    margin: 12px 0;
    letter-spacing: 2px;
}

/* Share buttons */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.share-btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.share-btn.whatsapp {
    background: #05672C;
    color: #FFFFFF;
}

.share-btn.instagram {
    background: #4c042c;
    color: #FFFFFF;
}

.share-btn.email {
    background: #102a79;
    color: #FFFFFF;
}

.share-btn.sms {
    background: #0f7b33;
    color: #FFFFFF;
}

/* Icon replacements */
.icon-location:before { content: "📍"; }
.icon-target:before { content: "🎯"; }
.icon-home:before { content: "🏠"; }
.icon-map:before { content: "🗺️"; }
.icon-gift:before { content: "🎁"; }
.icon-user:before { content: "👤"; }

/* Text replacements for icons */
.icon-text {
    font-weight: 600;
    color: #05672C;
}

.transport-icon {
    display: inline-block;
    background: #05672C;
    color: #FFFFFF;
    border-radius: 4px;
    padding: 2px 6px;
    margin-right: 4px;
    font-size: 10px;
    font-weight: 600;
}

.subtitle {
    color: #016923;
    margin-bottom: 16px;
}

/* Full-Screen Passenger Navigation */
.passenger-nav-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.passenger-nav-fullscreen.show {
    display: flex;
}

.nav-header-passenger {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.minimize-btn-passenger {
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    color: #05672C;
}

.tracking-map-fullscreen {
    flex: 1;
    width: 100%;
    position: relative;
}

.nav-instruction-passenger {
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    z-index: 100;
}

.driver-eta-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: center;
}

.eta-main {
    font-size: 48px;
    font-weight: 700;
    color: #05672C;
    margin-bottom: 4px;
}

.eta-subtitle {
    font-size: 16px;
    color: #016923;
    font-weight: 500;
}

.nav-bottom-info-passenger {
    background: white;
    padding: 16px 20px;
    border-top: 1px solid #E0E0E0;
}

.driver-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F5CD;
}

.driver-details {
    flex: 1;
}

.driver-details .driver-name {
    font-size: 18px;
    font-weight: 700;
    color: #05672C;
    margin-bottom: 4px;
}

.driver-details .driver-rating {
    font-size: 14px;
    color: #016923;
}

.btn-compact {
    padding: 10px 16px !important;
    min-width: auto !important;
}

.trip-info-row {
    justify-content: space-between;
    align-items: center;
}

.trip-destination-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.trip-destination-value {
    font-size: 16px;
    font-weight: 600;
    color: #05672C;
}

.trip-price {
    font-size: 24px;
    font-weight: 700;
    color: #05672C;
}

.nav-actions-passenger {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #E0E0E0;
}

.nav-actions-passenger .btn {
    width: 100%;
}

/* Expand Navigation Button */
.expand-nav-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #05672C;
    border: none;
    color: white;
    box-shadow: 0 4px 16px rgba(5, 103, 44, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-nav-btn:active {
    transform: scale(0.95);
}

/* Passenger Rating Modal Styles */
.vehicle-maintenance-card {
    background: linear-gradient(135deg, #F0F5CD, #E8F5E9);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.maintenance-icon {
    background: #016923;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.maintenance-info {
    flex: 1;
}

.maintenance-label {
    font-weight: 700;
    color: #05672C;
    font-size: 15px;
    margin-bottom: 4px;
}

.maintenance-details {
    font-size: 13px;
    color: #016923;
    line-height: 1.5;
}

.driver-rating-section {
    text-align: center;
}

.rating-driver-info {
    margin-bottom: 24px;
}

.rating-driver-name {
    font-size: 24px;
    font-weight: 700;
    color: #05672C;
    margin-bottom: 8px;
}

.rating-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: #05672C;
    margin-bottom: 12px;
}

.compliments-section {
    margin: 24px 0;
}

.compliment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.star-btn-passenger {
    background: none;
    border: none;
    font-size: 48px;
    color: #E0E0E0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.star-btn-passenger:hover,
.star-btn-passenger.active {
    color: #FFD700;
    transform: scale(1.1);
}

.tag-btn-passenger {
    background: #F5F5F5;
    border: 2px solid #E0E0E0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tag-btn-passenger:hover {
    border-color: #05672C;
    color: #05672C;
}

.tag-btn-passenger.selected {
    background: #05672C;
    border-color: #05672C;
    color: white;
}

.report-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
}

.btn-text-danger {
    background: none;
    border: none;
    color: #DC3545;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px;
}

.btn-text-danger:hover {
    color: #C82333;
}

.w-100 {
    width: 100%;
}

.tip-section {
    margin: 24px 0;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
}

.tip-options {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tip-btn {
    background: #F5F5F5;
    border: 2px solid #E0E0E0;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #05672C;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tip-btn:hover {
    border-color: #05672C;
    background: #E8F5E9;
}

.tip-btn.selected {
    background: #05672C;
    border-color: #05672C;
    color: white;
}

.custom-tip-input {
    width: 100%;
    max-width: 200px;
    margin: 12px auto 0;
    padding: 10px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.custom-tip-input:focus {
    outline: none;
    border-color: #05672C;
}
