/**
 * SwappZip Match Engine — Frontend Styles
 * Prefijos: .me-* (formulario cliente), .swz-* (panel proveedor)
 * Los estilos listivo-* son del tema Listivo y no se definen aquí.
 */

/* ============================================================
   FORMULARIO CLIENTE
   ============================================================ */
/* MOBILE FIRST - Base styles */
.me-frontend {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;
    padding: 0;
    min-height: auto;
}

.me-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fcfaf7;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.08);
}

.me-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.me-header {
    text-align: center;
    margin-bottom: 24px;
}

.me-header h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.me-header p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* TABS - Mobile first (scroll horizontal) */
.transaction-types {
    margin-bottom: 20px;
}

.transaction-types-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 15px;
}

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
}

.type-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.type-tabs::-webkit-scrollbar {
    display: none;
}

.type-tab {
    flex: 0 0 auto;
    min-width: 90px;
    padding: 12px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    background: white;
    color: #7f8c8d;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.type-tab-icon {
    font-size: 20px;
}

.type-tab.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.type-tab:active {
    transform: translateY(0);
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
}

.form-group select,
.form-group textarea,
.me-category-search {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group select:focus,
.form-group textarea:focus,
.me-category-search:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.me-category-search {
    margin-bottom: 8px;
}

.me-category-helper {
    margin-top: 6px;
    color: #5f6f7a;
    font-size: 12px;
    line-height: 1.35;
}

.me-category-picker {
    position: relative;
}

.me-category-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
    z-index: 10000;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(20, 39, 56, 0.16);
}

.me-category-result {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #eef3f7;
    display: grid;
    gap: 3px;
}

.me-category-result:last-child {
    border-bottom: 0;
}

.me-category-result:hover,
.me-category-result.is-active {
    background: #f5fbff;
}

.me-category-result-title {
    font-weight: 800;
    color: #20364a;
    font-size: 14px;
}

.me-category-result-meta {
    color: #6b7c89;
    font-size: 12px;
}

.me-category-result.is-suggested {
    border-left: 3px solid #f39c12;
    background: #fffdf5;
}
.me-category-suggested-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #f39c12;
    margin-bottom: 2px;
}
.me-category-result.is-suggested .me-category-result-meta {
    color: #e67e22;
    font-style: italic;
}
.me-category-empty {
    padding: 12px 14px;
    color: #6b7c89;
    font-size: 13px;
}

.me-category-manual-toggle {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    margin: 2px 0 8px;
    cursor: pointer;
}

.me-category-manual {
    display: none;
}

.me-category-manual.is-open {
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Autocomplete / Sugeridor (tooltip dropdown) */
.me-suggest-wrap { position: relative; }
.me-suggest-box{
    position:absolute;
    left:0; right:0;
    top:100%;
    margin-top:6px;
    background:#fff;
    border:1px solid #ecf0f1;
    border-radius:12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 9999;
    overflow:hidden;
    display:none;
}
.me-suggest-item{
    padding:10px 12px;
    font-size:14px;
    cursor:pointer;
    border-bottom:1px solid #f2f2f2;
    display:flex;
    align-items:center;
    gap:10px;
}
.me-suggest-item:last-child{ border-bottom:none; }
.me-suggest-item:hover{ background:#f8fbff; }
.me-suggest-pill{
    font-size:12px;
    padding:3px 8px;
    border-radius:999px;
    background:#eef6ff;
    color:#2c3e50;
    border:1px solid #dbeeff;
    flex:0 0 auto;
}
.me-suggest-hint{
    cursor:default;
    color:#7f8c8d;
}

/* Chips sugeridos (debajo del textarea) */
.me-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.me-chip{
    border:1px solid rgba(0,0,0,0.08);
    background:#ffffff;
    padding:6px 10px;
    border-radius:999px;
    font-size:13px;
    cursor:pointer;
    transition: all 0.2s ease;
    user-select:none;
}
.me-chip:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.me-chip:active{ transform: translateY(0px); }
.me-chip-muted{ opacity:0.7; }

.me-writing-guide {
  margin-top: 8px;
  color: #5f6f7a;
  font-size: 13px;
  line-height: 1.35;
}

.me-suggest-box,
.me-chips {
  display: none !important;
}


/* ZIP + GPS */
.zip-gps-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.zip-input {
    padding: 12px 14px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.zip-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.gps-btn {
    background: #1a56db;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gps-btn:hover {
    transform: translateY(-2px);
    background: #1344c0;
    box-shadow: 0 5px 15px rgba(26, 86, 219, 0.3);
}

.gps-btn:active {
    transform: translateY(0);
}

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

.zip-hint {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Urgente checkbox */
.urgent-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.urgent-checkbox:hover {
    background: #ffe082;
}

.urgent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.urgent-checkbox-label {
    font-weight: 600;
    color: #856404;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Submit button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

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

/* Status messages */
.status-message {
    padding: 14px 16px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-loading {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.swz-thinking {
  width: 100%;
  font-weight: 700;
}

.swz-thinking-dot {
  display: inline-block;
  margin-right: 6px;
  animation: swzThinkingPulse 0.9s ease-in-out infinite;
}

@keyframes swzThinkingPulse {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.12); }
}

.status-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.status-watch {
  background: #eaf8f0;
  color: #14532d;
  border-left: 4px solid #27ae60;
}

.status-advice {
  width: 100%;
  line-height: 1.45;
}

.status-advice strong {
  display: block;
  margin-bottom: 8px;
}

.status-tips {
  margin: 8px 0 0 18px;
  padding: 0;
}

.status-tips li {
  margin: 4px 0;
}

.status-notify {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
}

.status-notify.is-active {
  background: #ecfff4;
  border: 1px solid rgba(39,174,96,0.35);
}

.status-notify .submit-btn.is-confirmed {
  background: linear-gradient(135deg, #27ae60 0%, #1f8f50 100%);
  opacity: 1;
}

.status-alternatives {
  margin: 14px 0 0;
}

.status-alternatives a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f8f50 0%, #176b3d 100%);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(31,143,80,0.22);
}

.status-alternatives a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31,143,80,0.28);
}

/* TABLET (768px+) */
@media (min-width: 768px) {
    .me-frontend {
        padding: 40px 20px;
    }
    
    .me-container {
        max-width: 700px;
    }
    
    .me-card {
        padding: 32px;
    }
    
    .me-header h2 {
        font-size: 28px;
    }
    
    .type-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .type-tab {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 110px;
    }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
    .me-container {
        max-width: 800px;
    }
    
    .type-tab {
        flex: 1 1 calc(16.666% - 8px);
        min-width: 120px;
    }
    
    .tooltip:hover::after {
        white-space: normal;
        max-width: 250px;
    }
}

/* ============================================================
   PANEL PROVEEDOR
   ============================================================ */
.swz-accept-btn:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.swz-reject-btn:hover {
    background: #dc3545 !important;
    color: white !important;
    transform: translateY(-2px);
}

.swz-request-card.processing {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================================
   PANTALLAS — 3 MODOS (Landing + Servicios + Rentas + Directorio)
   ============================================================ */

/* Transición entre pantallas */
.me-screen {
    animation: meFadeIn 0.22s ease;
}
.me-screen-hidden {
    display: none !important;
}
.me-screen-active {
    display: block;
}
@keyframes meFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- LANDING ---- */
.me-header {
    text-align: center;
    margin-bottom: 24px;
}
.me-header h2 {
    color: #1a202c;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.25;
}
.me-subtitle {
    color: #4b5563;
    font-size: 15px;
    margin: 0;
}

/* Smart field */
.me-smart-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.me-smart-input {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.18s;
    background: #ffffff !important;
    color: #1a202c;
}
.me-smart-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.me-frontend .me-smart-input::placeholder { color: #c0c4cc !important; opacity: 1 !important; }
.me-smart-go {
    background: #1a202c;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    min-width: 44px;
}
.me-smart-go:hover { background: #374151; }
.me-smart-hint {
    font-size: 13px;
    color: #6366f1;
    min-height: 20px;
    margin-bottom: 18px;
    transition: opacity 0.2s;
}

/* Botones de modo */
.me-modes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.me-mode-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    width: 100%;
}
.me-mode-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    background: #fafafa;
}
.me-mode-btn.is-active[data-mode="servicios"] {
    border-color: #E07020;
    box-shadow: 0 0 0 2px rgba(224,112,32,0.18);
}
.me-mode-btn.is-active[data-mode="rentas"] {
    border-color: #185FA5;
    box-shadow: 0 0 0 2px rgba(24,95,165,0.18);
}
.me-mode-btn.is-active[data-mode="directorio"] {
    border-color: #0F6E56;
    box-shadow: 0 0 0 2px rgba(15,110,86,0.18);
}
.me-mode-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f8fafc;
}
.me-mode-label {
    display: block;
    font-weight: 600;
    color: #1a202c;
    font-size: 14px;
    line-height: 1.3;
}
.me-mode-desc {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* ---- HEADER DE CADA SUB-FORMULARIO ---- */
.me-screen-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #f1f5f9;
}
.me-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 0;
    font-weight: 600;
    transition: color 0.15s;
    width: fit-content;
    text-decoration: none;
}
.me-back-btn:hover { color: #111827; }
.me-screen-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.me-screen-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8fafc;
    flex-shrink: 0;
}
.me-screen-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* ---- CAMPOS DEL FORMULARIO ---- */
.me-subform { display: flex; flex-direction: column; gap: 16px; }

.me-field { display: flex; flex-direction: column; gap: 6px; }
.me-field-inline { flex-direction: row; align-items: center; }

.me-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
}
.me-optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}
.me-input, .me-select, .me-textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 14px;
    color: #1a202c;
    background: #fff;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    font-family: inherit;
}
.me-input:focus, .me-select:focus, .me-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.11);
}
.me-frontend .me-input::placeholder, .me-frontend .me-textarea::placeholder { color: #c0c4cc !important; opacity: 1 !important; }
.me-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.me-textarea { resize: vertical; min-height: 70px; }
.me-hint { font-size: 12px; color: #9ca3af; margin: 0; }

/* Ubicación */
.me-location-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.me-zip { max-width: 120px; }
.me-gps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.18s;
    flex: 1;
    justify-content: center;
    min-width: 130px;
}
.me-gps-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.me-gps-btn.is-loading { opacity: 0.6; cursor: wait; }
.me-gps-btn.is-success { border-color: #22c55e; color: #15803d; background: #f0fdf4; }

/* Urgente checkbox */
.me-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}
.me-check {
    width: 16px;
    height: 16px;
    accent-color: #E07020;
    cursor: pointer;
    flex-shrink: 0;
}

/* Precio */
.me-price-row {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s;
    background: #fff;
}
.me-price-row:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.11);
}
.me-price-prefix {
    padding: 10px 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    border-right: 1.5px solid #e2e8f0;
    flex-shrink: 0;
}
.me-price-input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
}

/* ---- BOTÓN SUBMIT ---- */
.me-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    margin-top: 4px;
    color: #fff;
    letter-spacing: 0.01em;
}
.me-submit-servicios { background: #E07020; }
.me-submit-servicios:hover { background: #c8601a; }
.me-submit-rentas { background: #185FA5; }
.me-submit-rentas:hover { background: #134f8a; }
.me-submit-directorio { background: #0F6E56; }
.me-submit-directorio:hover { background: #0b5944; }
.me-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }
/* Botón "Activar aviso" — usa me-submit-btn sin clase de color */
#me-watch-btn, .me-notify-wrap .me-submit-btn {
    background: #E07020;
    color: #fff;
    width: auto;
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 10px;
}
#me-watch-btn:hover, .me-notify-wrap .me-submit-btn:hover { background: #c8601a; }

/* ---- CATEGORY PICKER ---- */
.me-category-picker { position: relative; }
.me-category-search {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s;
    box-sizing: border-box;
}
.me-category-search:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.11); }
.me-category-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 500;
    max-height: 280px;
    overflow-y: auto;
}
.me-category-result {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.13s;
}
.me-category-result:last-child { border-bottom: none; }
.me-category-result:hover, .me-category-result.is-active { background: #f8fafc; }
.me-cat-title { font-size: 14px; font-weight: 600; color: #1a202c; }
.me-cat-meta { font-size: 11px; color: #94a3b8; }
.me-cat-badge { font-size: 11px; color: #7c3aed; font-weight: 600; margin-bottom: 2px; display: block; }
.me-category-empty { padding: 12px 14px; font-size: 13px; color: #94a3b8; }
.me-link-btn {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    width: fit-content;
}
.me-category-manual { display: none; margin-top: 6px; }
.me-category-manual.is-open { display: block; }

/* ---- AI ASSIST ---- */
.me-ai-wrap { margin-top: 6px; }
.me-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f3ff;
    border: 1.5px solid #c4b5fd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #5b21b6;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.18s;
}
.me-ai-btn:hover { background: #ede9fe; }
.me-admin-badge { font-size: 10px; opacity: 0.7; font-weight: 400; }

/* ---- STATUS ---- */
.me-status {
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 14px;
}
.me-status-loading {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    color: #0369a1;
}
.me-status-error {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
}
.me-status-error.is-watch-confirmed .me-error-advice {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}
.me-status-error.is-watch-confirmed .me-error-advice strong,
.me-status-error.is-watch-confirmed .me-error-advice .me-tips {
    color: #15803d;
}
.me-status-success {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    color: #15803d;
}
.me-thinking { display: flex; align-items: center; gap: 8px; }
.me-dot { animation: meDotPulse 1.1s infinite; color: #0369a1; }
@keyframes meDotPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.me-tips { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.me-alternatives { margin-top: 10px; }
.me-alternatives a { color: #7c3a00; font-weight: 600; text-decoration: underline; }
.me-notify-wrap { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.08); }
.me-watch-status {
    font-size: 13px;
    margin-top: 8px;
    color: #14532d;
    font-weight: 700;
    background: #dcfce7;
    border: 1px solid #86efac;
    padding: 7px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* ---- TOOLTIP POPUP ---- */
.me-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    cursor: pointer;
    color: #94a3b8;
    flex-shrink: 0;
}
.me-tooltip-popup {
    background: #1a202c;
    color: #fff;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ---- RESPONSIVE DESKTOP ---- */
@media (min-width: 640px) {
    .me-modes {
        flex-direction: row;
    }
    .me-mode-btn {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 14px;
        flex: 1;
    }
    .me-mode-icon { width: 52px; height: 52px; }
    .me-mode-label { font-size: 13px; }
    .me-location-row { flex-wrap: nowrap; }
    .me-zip { max-width: 130px; }
}

/* ---- ERROR BOX — color verde: transmite que la solicitud está en proceso ---- */
.me-error-advice {
    background: #fad8be;
    border: none;
    border-radius: 12px;
    padding: 16px 18px;
    color: #7c3a00;
}
.me-error-advice strong {
    color: #7c3a00;
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
}
.me-error-advice .me-tips {
    margin: 6px 0 0;
    padding-left: 16px;
    color: #7c3a00;
    font-size: 13px;
}
.me-error-advice .me-tips li { margin-bottom: 3px; }
