* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Login Screen Styles */
        .login-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            padding: 1rem;
        }

        .login-card {
            background: white;
            border-radius: 1.5rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            padding: 2rem;
            width: 100%;
            max-width: 400px;
        }

        .login-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .login-logo {
            width: 4rem;
            height: 4rem;
            margin: 0 auto 1rem;
            color: #f59e0b;
        }

        .login-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 0.5rem;
        }

        .login-subtitle {
            color: #64748b;
            font-size: 0.875rem;
        }

        .login-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .login-input-group {
            position: relative;
        }

        .login-input {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            font-size: 1rem;
            background: white;
            transition: all 0.2s;
        }

        .login-input:focus {
            outline: none;
            border-color: #f59e0b;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
        }

        .login-btn {
            padding: 0.875rem 1.25rem;
            border: none;
            border-radius: 0.75rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
            transition: all 0.2s;
            margin-top: 0.5rem;
        }

        .login-btn:hover:not(:disabled) {
            box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
        }

        .login-btn:disabled {
            background: #9ca3af;
            box-shadow: none;
            cursor: not-allowed;
        }

        .login-error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #dc2626;
            padding: 0.75rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            margin-top: 1rem;
        }

        /* User Management Modal */
        .user-management-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 1rem;
        }

        .user-management-content {
            background: white;
            border-radius: 1rem;
            max-width: 90vw;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 600px;
        }

        .user-management-header {
            padding: 1.5rem 1.5rem 1rem;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .user-management-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1e293b;
            flex: 1;
        }

        .user-management-body {
            padding: 1.5rem;
        }

        .user-form {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }

        .user-form h3 {
            margin-bottom: 1rem;
            color: #1e293b;
            font-size: 1rem;
        }

        .user-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .user-item {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .user-info {
            flex: 1;
        }

        .user-name {
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 0.25rem;
        }

        .user-role {
            font-size: 0.75rem;
            color: #64748b;
            background: #f1f5f9;
            padding: 0.25rem 0.5rem;
            border-radius: 0.5rem;
            display: inline-block;
        }

        .user-role.admin {
            background: #fef3c7;
            color: #a16207;
        }

        .user-actions {
            display: flex;
            gap: 0.5rem;
        }

        .user-btn {
            padding: 0.5rem;
            border: none;
            border-radius: 0.5rem;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 500;
            min-width: 2rem;
            min-height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-btn-danger {
            background: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .user-btn-danger:hover {
            background: #fee2e2;
        }

        /* Header user info */
        .header-user {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.75rem;
            opacity: 0.9;
        }

        .header-user-name {
            background: rgba(255, 255, 255, 0.2);
            padding: 0.25rem 0.5rem;
            border-radius: 1rem;
            font-weight: 600;
        }

        .header-logout {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 600;
            transition: all 0.2s;
        }

        .header-logout:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .header-admin-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 600;
            transition: all 0.2s;
            margin-right: 0.5rem;
        }

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

        /* Mobile-first header */
        .header {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            padding: 1rem;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .header-content {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            max-width: 100%;
        }

        .header-icon {
            width: 1.75rem;
            height: 1.75rem;
            flex-shrink: 0;
        }

        .header-title {
            font-size: 1.25rem;
            font-weight: 700;
            flex: 1;
            min-width: 0;
        }

        .header-stats {
            display: flex;
            gap: 0.5rem;
            font-size: 0.75rem;
            opacity: 0.9;
        }

        .stat-badge {
            background: rgba(255, 255, 255, 0.2);
            padding: 0.25rem 0.5rem;
            border-radius: 1rem;
            font-weight: 600;
        }

        /* Mobile container */
        .container {
            padding: 0;
            max-width: 100vw;
        }

        /* Mobile tabs */
        .mobile-tabs {
            display: flex;
            background: white;
            border-bottom: 1px solid #e2e8f0;
            position: sticky;
            top: 4rem;
            z-index: 90;
        }

        .tab-button {
            flex: 1;
            padding: 1rem 0.5rem;
            border: none;
            background: none;
            font-size: 0.875rem;
            font-weight: 600;
            color: #64748b;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
        }

        .tab-button.active {
            color: #f59e0b;
            border-bottom-color: #f59e0b;
            background: #fefce8;
        }

        .tab-icon {
            width: 1.25rem;
            height: 1.25rem;
        }

        /* Mobile panels */
        .mobile-panel {
            display: none;
            padding: 1rem;
            min-height: calc(100vh - 8rem);
        }

        .mobile-panel.active {
            display: block;
        }

        /* Mobile cards */
        .mobile-card {
            background: white;
            border-radius: 1rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin-bottom: 1rem;
            overflow: hidden;
        }

        .mobile-card-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #f1f5f9;
            background: #fafafa;
        }

        .mobile-card-title {
            font-size: 1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #1e293b;
        }

        .mobile-card-content {
            padding: 1.25rem;
        }

        /* Mobile inputs */
        .mobile-input-group {
            margin-bottom: 1rem;
            position: relative;
        }

        .mobile-input-label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
            font-weight: 600;
            color: #374151;
        }

        .mobile-input {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            font-size: 1rem;
            background: white;
            transition: all 0.2s;
            -webkit-appearance: none;
            appearance: none;
        }

        .mobile-input:focus {
            outline: none;
            border-color: #f59e0b;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
        }

        .mobile-input::placeholder {
            color: #9ca3af;
        }

        .mobile-textarea {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            font-size: 0.875rem;
            background: white;
            transition: all 0.2s;
            -webkit-appearance: none;
            appearance: none;
            resize: vertical;
            min-height: 2.5rem;
            max-height: 6rem;
            font-family: inherit;
        }

        .mobile-textarea:focus {
            outline: none;
            border-color: #f59e0b;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
        }

        .mobile-textarea::placeholder {
            color: #9ca3af;
        }

        /* File input styling */
        .mobile-file-input {
            position: relative;
            display: inline-block;
            width: 100%;
        }

        .mobile-file-input input[type="file"] {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }

        .mobile-file-label {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.875rem 1rem;
            border: 2px dashed #e2e8f0;
            border-radius: 0.75rem;
            background: #f8fafc;
            color: #64748b;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            min-height: 3rem;
        }

        .mobile-file-label:hover {
            border-color: #f59e0b;
            background: #fefce8;
            color: #a16207;
        }

        .mobile-file-label.has-file {
            border-color: #10b981;
            background: #ecfdf5;
            color: #065f46;
            border-style: solid;
        }

        /* Autocomplete dropdown */
        .autocomplete-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 2px solid #f59e0b;
            border-top: none;
            border-radius: 0 0 0.75rem 0.75rem;
            max-height: 200px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .autocomplete-item {
            padding: 0.75rem 1rem;
            cursor: pointer;
            border-bottom: 1px solid #f1f5f9;
            transition: background-color 0.2s;
            font-size: 0.875rem;
            line-height: 1.4;
        }

        .autocomplete-item:hover,
        .autocomplete-item.highlighted {
            background-color: #fef3c7;
        }

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

        .autocomplete-main-text {
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 0.25rem;
        }

        .autocomplete-secondary-text {
            color: #64748b;
            font-size: 0.75rem;
        }

        /* Mobile buttons */
        .mobile-btn {
            padding: 0.875rem 1.25rem;
            border: none;
            border-radius: 0.75rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.2s;
            text-decoration: none;
            min-height: 3rem;
            touch-action: manipulation;
            user-select: none;
        }

        .mobile-btn:active {
            transform: scale(0.98);
        }

        .mobile-btn-primary {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        }

        .mobile-btn-primary:hover:not(:disabled) {
            box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
        }

        .mobile-btn-primary:disabled {
            background: #9ca3af;
            box-shadow: none;
            cursor: not-allowed;
            transform: none;
        }

        .mobile-btn-success {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

        .mobile-btn-danger {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
        }

        .mobile-btn-secondary {
            background: #f8fafc;
            color: #475569;
            border: 2px solid #e2e8f0;
            box-shadow: none;
        }

        .mobile-btn-waze {
            background: linear-gradient(135deg, #00d4ff 0%, #00b8e6 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
        }

        .mobile-btn-gmaps {
            background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
        }

        .mobile-btn-complete {
            background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
        }

        .mobile-btn-complete.completed {
            background: #6b7280;
            box-shadow: none;
            cursor: not-allowed;
        }

        .mobile-btn-small {
            padding: 0.5rem 0.75rem;
            font-size: 0.875rem;
            min-height: 2.5rem;
        }

        .mobile-btn-mini {
            padding: 0.5rem;
            min-height: 2.5rem;
            min-width: 2.5rem;
        }

        .mobile-btn-full {
            width: 100%;
            margin-bottom: 0.75rem;
        }

        .mobile-btn-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .mobile-btn-group-3 {
            grid-template-columns: 1fr 1fr 1fr;
            gap: 0.5rem;
        }

        /* Mobile point list */
        .mobile-point-list {
            max-height: none;
        }

        .mobile-point-item {
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 1rem;
            padding: 1rem;
            margin-bottom: 0.75rem;
            transition: all 0.2s;
        }

        .mobile-point-item:active {
            transform: scale(0.98);
        }

        .mobile-point-item.optimized {
            background: #ecfdf5;
            border-color: #10b981;
        }

        .mobile-point-item.start-point {
            background: #f0fdf4;
            border-color: #22c55e;
        }

        .mobile-point-item.end-point {
            background: #fef2f2;
            border-color: #ef4444;
        }

        .mobile-point-item.completed {
            background: #f1f5f9;
            border-color: #94a3b8;
            opacity: 0.8;
        }

        .mobile-point-header {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }

        .mobile-point-number {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            font-weight: 700;
            color: white;
            flex-shrink: 0;
        }

        .mobile-point-number.start {
            background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        }

        .mobile-point-number.end {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        }

        .mobile-point-number.middle {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }

        .mobile-point-number.completed {
            background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
        }

        .mobile-point-info {
            flex: 1;
            min-width: 0;
        }

        .mobile-point-address {
            font-size: 0.95rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 0.25rem;
            line-height: 1.3;
        }

        .mobile-point-item.completed .mobile-point-address {
            color: #64748b;
            text-decoration: line-through;
        }

        .mobile-point-description {
            font-size: 0.8rem;
            color: #64748b;
            margin-bottom: 0.25rem;
            line-height: 1.3;
            font-style: italic;
        }

        .mobile-point-type {
            font-size: 0.75rem;
            color: #64748b;
            font-weight: 500;
        }

        .mobile-point-type.start {
            color: #059669;
        }

        .mobile-point-type.end {
            color: #dc2626;
        }

        .mobile-point-type.completed {
            color: #6b7280;
        }

        .mobile-point-controls {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .mobile-nav-buttons {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .mobile-order-controls {
            display: flex;
            gap: 0.25rem;
        }

        .mobile-completion-status {
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            border-radius: 0.5rem;
            padding: 0.5rem;
            margin-top: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.75rem;
            color: #065f46;
        }

        .mobile-completion-time {
            font-weight: 600;
        }

        /* Mobile info panels */
        .mobile-info-panel {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 2px solid #f59e0b;
            border-radius: 1rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .mobile-info-panel.optimized {
            background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
            border-color: #a7f3d0;
        }

        .mobile-info-panel.config {
            background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
            border-color: #fde047;
        }

        .mobile-info-title {
            font-weight: 700;
            color: #a16207;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.95rem;
        }

        .mobile-info-panel.optimized .mobile-info-title {
            color: #065f46;
        }

        .mobile-info-panel.config .mobile-info-title {
            color: #a16207;
        }

        .mobile-info-text {
            font-size: 0.875rem;
            line-height: 1.4;
            color: #a16207;
        }

        .mobile-info-panel.optimized .mobile-info-text {
            color: #065f46;
        }

        .mobile-info-panel.config .mobile-info-text {
            color: #a16207;
        }

        /* Mobile endpoints */
        .mobile-endpoints {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
            margin-top: 0.75rem;
        }

        .mobile-endpoint {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 0.75rem;
        }

        .mobile-endpoint-label {
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.25rem;
            font-size: 0.8rem;
        }

        .mobile-endpoint-address {
            color: #64748b;
            font-size: 0.75rem;
            line-height: 1.3;
        }

        /* Mobile summary */
        .mobile-summary-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
        }

        .mobile-summary-item {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 0.75rem;
            text-align: center;
        }

        .mobile-summary-label {
            font-size: 0.75rem;
            color: #64748b;
            margin-bottom: 0.25rem;
            font-weight: 500;
        }

        .mobile-summary-value {
            font-size: 1rem;
            font-weight: 700;
            color: #1e293b;
        }

        .mobile-summary-value.success {
            color: #059669;
        }

        /* Mobile loading */
        .mobile-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            gap: 1.5rem;
            padding: 2rem;
            text-align: center;
        }

        .mobile-loading-icon {
            width: 4rem;
            height: 4rem;
            color: #f59e0b;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .mobile-loading-text {
            font-size: 1.125rem;
            font-weight: 600;
            color: #1e293b;
        }

        .mobile-loading-subtext {
            font-size: 0.875rem;
            color: #64748b;
        }

        /* Mobile error */
        .mobile-error {
            background: #fef2f2;
            border: 2px solid #fecaca;
            border-radius: 1rem;
            padding: 1.5rem;
            margin: 1rem;
            color: #dc2626;
        }

        .mobile-error h3 {
            font-size: 1.125rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .mobile-error ol {
            margin: 1rem 0;
            padding-left: 1.25rem;
        }

        .mobile-error li {
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }

        /* Mobile toast */
        .mobile-toast {
            position: fixed;
            bottom: 1rem;
            left: 1rem;
            right: 1rem;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            padding: 1rem;
            z-index: 1000;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .mobile-toast.show {
            transform: translateY(0);
        }

        .mobile-toast.success {
            border-left: 4px solid #22c55e;
        }

        .mobile-toast.error {
            border-left: 4px solid #ef4444;
        }

        .mobile-toast-title {
            font-weight: 700;
            margin-bottom: 0.25rem;
            color: #1e293b;
        }

        .mobile-toast-message {
            font-size: 0.875rem;
            color: #64748b;
            line-height: 1.4;
        }

        /* Mobile empty state */
        .mobile-empty-state {
            text-align: center;
            padding: 2rem 1rem;
            color: #64748b;
        }

        .mobile-empty-icon {
            width: 3rem;
            height: 3rem;
            margin: 0 auto 1rem;
            opacity: 0.5;
        }

        .mobile-empty-text {
            font-size: 0.95rem;
            line-height: 1.4;
        }

        /* Modal styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 1rem;
        }

        .modal-content {
            background: white;
            border-radius: 1rem;
            max-width: 90vw;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        .modal-header {
            padding: 1.5rem 1.5rem 1rem;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modal-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1e293b;
            flex: 1;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #64748b;
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 0.5rem;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: #f1f5f9;
            color: #1e293b;
        }

        .modal-body {
            padding: 1.5rem;
        }

        .modal-footer {
            padding: 1rem 1.5rem 1.5rem;
            border-top: 1px solid #e2e8f0;
            display: flex;
            gap: 0.75rem;
            justify-content: flex-end;
        }

        /* Import progress */
        .import-progress {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 1rem;
            margin: 1rem 0;
        }

        .progress-bar {
            width: 100%;
            height: 0.5rem;
            background: #e2e8f0;
            border-radius: 0.25rem;
            overflow: hidden;
            margin: 0.5rem 0;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            transition: width 0.3s ease;
            border-radius: 0.25rem;
        }

        .progress-text {
            font-size: 0.875rem;
            color: #64748b;
            text-align: center;
            margin-top: 0.5rem;
        }

        /* Column mapping */
        .column-mapping {
            display: grid;
            gap: 1rem;
            margin: 1rem 0;
        }

        .mapping-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            align-items: center;
        }

        .mapping-label {
            font-weight: 600;
            color: #374151;
            font-size: 0.875rem;
        }

        .mapping-select {
            padding: 0.5rem 0.75rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            background: white;
        }

        /* Preview table */
        .preview-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
            font-size: 0.875rem;
        }

        .preview-table th,
        .preview-table td {
            padding: 0.5rem;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }

        .preview-table th {
            background: #f8fafc;
            font-weight: 600;
            color: #374151;
        }

        .preview-table td {
            color: #64748b;
        }

        .preview-table tr:hover {
            background: #f8fafc;
        }

        /* Import results */
        .import-results {
            margin: 1rem 0;
        }

        .result-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem;
            border-radius: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
        }

        .result-item.success {
            background: #ecfdf5;
            color: #065f46;
        }

        .result-item.error {
            background: #fef2f2;
            color: #dc2626;
        }

        .result-icon {
            width: 1rem;
            height: 1rem;
            flex-shrink: 0;
        }

        /* Icons */
        .icon {
            width: 1rem;
            height: 1rem;
            fill: currentColor;
        }

        .icon-sm {
            width: 0.875rem;
            height: 0.875rem;
        }

        .icon-lg {
            width: 1.25rem;
            height: 1.25rem;
        }

        /* Utilities */
        .hidden {
            display: none !important;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Responsive adjustments */
        @media (min-width: 768px) {
            .container {
                padding: 1rem;
                max-width: 768px;
                margin: 0 auto;
            }

            .mobile-tabs {
                position: static;
                border-radius: 1rem;
                margin-bottom: 1rem;
                overflow: hidden;
            }

            .mobile-panel {
                display: block;
                padding: 0;
            }

            .mobile-btn-group {
                grid-template-columns: repeat(3, 1fr);
            }

            .mobile-map-container {
                height: 500px;
            }

            .modal-content {
                max-width: 600px;
            }

            .mapping-row {
                grid-template-columns: 150px 1fr;
            }
        }

        /* Dark mode support */
        @media (prefers-color-scheme: dark) {
            body {
                background-color: #0f172a;
                color: #e2e8f0;
            }

            .mobile-card {
                background: #1e293b;
                border-color: #334155;
            }

            .mobile-card-header {
                background: #334155;
                border-color: #475569;
            }

            .mobile-input, .mobile-textarea {
                background: #1e293b;
                border-color: #475569;
                color: #e2e8f0;
            }

            .mobile-point-item {
                background: #1e293b;
                border-color: #475569;
            }

            .autocomplete-dropdown {
                background: #1e293b;
                border-color: #f59e0b;
            }

            .autocomplete-item:hover,
            .autocomplete-item.highlighted {
                background-color: #374151;
            }

            .modal-content {
                background: #1e293b;
            }

            .modal-header {
                border-color: #475569;
            }

            .modal-footer {
                border-color: #475569;
            }
        }

        /* Safe area for notched devices */
        @supports (padding: max(0px)) {
            .header {
                padding-top: max(1rem, env(safe-area-inset-top));
                padding-left: max(1rem, env(safe-area-inset-left));
                padding-right: max(1rem, env(safe-area-inset-right));
            }

            .mobile-toast {
                bottom: max(1rem, env(safe-area-inset-bottom));
                left: max(1rem, env(safe-area-inset-left));
                right: max(1rem, env(safe-area-inset-right));
            }
        }

        .mobile-map-container {
            height: 60vh;
            min-height: 300px;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .mobile-map {
            width: 100%;
            height: 100%;
        }
/* --- Ajustes visuales v9 --- */
.mobile-point-address {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 0.3rem;
}
.mobile-point-description {
  font-size: 1.05rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
