/* ==============================================================
   Workori/YOYO — Portal Polish Overrides (Client · Provider · Admin)
   Artista: Diseñador UX/UI Senior
   Fecha: 2026-08-07
   Propósito: Modernizar los 3 portales internos sin cambiar estructura HTML.
   Carga: Después de los CSS principales de cada portal.
   Paleta: mantiene tokens de base.css (--blue, --teal, --teal-deep, etc.)
   ============================================================== */

/* ─── 1. GLOBAL: MICRO-INTERACCIONES & TRANSICIONES ─────────────── */

.btn,
.btn-primary,
.btn-secondary,
.btn-small,
.card-panel,
.client-active-work-card,
.client-estimate-card,
.client-auth-panel,
.client-profile-panel,
.client-wizard-panel,
.client-requests-panel,
.client-review-panel,
.client-intake-panel,
.provider-surface-card,
.provider-overview-card,
.provider-metric-card,
.provider-jobs-panel,
.provider-money-panel,
.provider-messages-panel,
.provider-portal-profile,
.provider-status-panel,
.dashboard-panel,
.dashboard-stat-card,
.intelligence-panel,
.communications-data-panel,
.support-focus-card,
.table-row,
.staff-group-pick,
.staff-chat-sidebar-section button,
.messages-thread-list button,
.messages-inbox-panel button,
.language-option,
.team-card {
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.25s ease,
              background 0.25s ease;
}

/* Focus visible rings — accesibilidad moderna */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.staff-group-pick:focus-visible,
.provider-metric-card:focus-visible,
.dashboard-stat--clickable:focus-visible {
  outline: 2.5px solid rgba(7, 95, 228, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.provider-metric-card:focus-visible,
.dashboard-stat-card:focus-visible {
  outline-offset: 4px;
  border-radius: 14px;
}

/* Inputs globales: suavidad en focus */
input,
textarea,
select {
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 228, 0.14);
}

/* Navegación: hover más suave */
.main-nav a {
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.language-option {
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}


/* ─── 2. BOTONES MODERNOS ──────────────────────────────────────── */

.btn {
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.22s ease,
              filter 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0px);
}

/* Botón primario: gradiente sutil + sombra layered */
.btn-primary {
  border-radius: 10px;
  background: linear-gradient(180deg, #1a6ff0 0%, var(--blue) 100%);
  box-shadow:
    0 2px 4px rgba(7, 95, 228, 0.15),
    0 8px 16px rgba(7, 95, 228, 0.12),
    0 16px 32px rgba(7, 95, 228, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #2878f2 0%, #0a62e0 100%);
  box-shadow:
    0 3px 6px rgba(7, 95, 228, 0.2),
    0 10px 20px rgba(7, 95, 228, 0.16),
    0 20px 38px rgba(7, 95, 228, 0.12);
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn-primary:active {
  transform: translateY(0px);
  box-shadow:
    0 1px 3px rgba(7, 95, 228, 0.15),
    0 6px 12px rgba(7, 95, 228, 0.1);
}

/* Botón secundario */
.btn-secondary {
  border-radius: 10px;
  border: 1.5px solid rgba(7, 95, 228, 0.15);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 10px rgba(14, 31, 64, 0.03);
}

.btn-secondary:hover {
  border-color: rgba(7, 95, 228, 0.3);
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.06),
    0 8px 16px rgba(7, 95, 228, 0.08);
  transform: translateY(-2px);
}

/* Botón pequeño */
.btn-small {
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.2s ease;
}

.btn-small:hover {
  transform: translateY(-1px);
}

/* Logout button: redondeo suave */
.logout-button {
  border-radius: 10px;
}

/* Login button: estilo sutil */
.login-button {
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}


/* ─── 3. CARD-PANEL & PANELES COMPARTIDOS ──────────────────────── */

/* card-panel (usado en client, provider y admin) */
.card-panel {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.75);
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 4px 12px rgba(14, 31, 64, 0.04),
    0 10px 24px rgba(14, 31, 64, 0.03);
}

.card-panel:hover {
  box-shadow:
    0 2px 4px rgba(14, 31, 64, 0.05),
    0 8px 18px rgba(14, 31, 64, 0.07),
    0 18px 40px rgba(7, 95, 228, 0.06);
}


/* ─── 4. CLIENT PORTAL — PANELES Y TARJETAS ───────────────────── */

/* Auth panel */
.client-auth-panel {
  border-radius: 16px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 6px 16px rgba(14, 31, 64, 0.05),
    0 14px 32px rgba(14, 31, 64, 0.04);
}

/* Profile panel */
.client-profile-panel {
  border-radius: 16px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 6px 16px rgba(14, 31, 64, 0.05);
}

.client-profile-panel__badge {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Wizard panel */
.client-wizard-panel {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

/* Active work card */
.client-active-work-card {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

.client-active-work-card:hover {
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.06),
    0 8px 18px rgba(14, 31, 64, 0.07);
}

/* Estimate card */
.client-estimate-card {
  border-radius: 16px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 6px 14px rgba(14, 31, 64, 0.05),
    0 14px 28px rgba(14, 31, 64, 0.03);
}

.client-estimate-card:hover {
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.06),
    0 8px 18px rgba(14, 31, 64, 0.07);
  transform: translateY(-2px);
}

/* Request/Review panels */
.client-requests-panel,
.client-review-panel {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

/* Intake panel */
.client-intake-panel {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

/* Photo dropzone */
.client-photo-dropzone {
  border-radius: 14px;
  border: 2px dashed rgba(230, 235, 243, 0.9);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.client-photo-dropzone:hover {
  border-color: rgba(7, 95, 228, 0.3);
  background: rgba(7, 95, 228, 0.02);
}

/* Request address card */
.client-request-address__card {
  border-radius: 12px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 3px 8px rgba(14, 31, 64, 0.03);
}

/* Dashboard entry cards */
.client-dashboard-entry {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.65);
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.client-dashboard-entry:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.05),
    0 8px 18px rgba(7, 95, 228, 0.06);
}

/* Photo handoff */
.client-photo-handoff {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.75);
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 6px 14px rgba(14, 31, 64, 0.04);
}

/* Clarification panel */
.client-clarification-panel {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 4px 12px rgba(14, 31, 64, 0.04);
}


/* ─── 5. CLIENT PORTAL — MENSAJES ──────────────────────────────── */

.messages-layout {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

.messages-inbox-header {
  border-bottom: 1px solid rgba(230, 235, 243, 0.7);
}

.messages-inbox-panel {
  border-radius: 0;
}

.messages-thread-panel {
  border-radius: 0;
}

.messages-compose-panel {
  border-radius: 0;
}

/* Thread list items */
.messages-thread-list button {
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.messages-thread-list button:hover {
  background: rgba(7, 95, 228, 0.04);
}

.messages-thread-list button.active {
  background: rgba(7, 95, 228, 0.07);
  border-left: 3px solid var(--blue);
}


/* ─── 6. PROVIDER PORTAL — PANELES Y TARJETAS ──────────────────── */

/* Provider hero */
.provider-portal-hero {
  border-radius: 16px;
}

.provider-portal-hero__logo {
  border-radius: 16px;
}

/* Metric cards */
.provider-metric-card {
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 6px 16px rgba(14, 31, 64, 0.05),
    0 14px 32px rgba(0, 169, 157, 0.04);
}

.provider-metric-card:hover {
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.06),
    0 10px 22px rgba(14, 31, 64, 0.08),
    0 20px 44px rgba(0, 169, 157, 0.06);
}

/* Surface / Overview cards */
.provider-surface-card,
.provider-overview-card {
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 4px 12px rgba(14, 31, 64, 0.04),
    0 10px 24px rgba(14, 31, 64, 0.03);
}

.provider-surface-card:hover,
.provider-overview-card:hover {
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.06),
    0 8px 18px rgba(14, 31, 64, 0.07),
    0 18px 36px rgba(0, 169, 157, 0.05);
}

/* Jobs / Money / Messages / Profile panels */
.provider-jobs-panel,
.provider-money-panel,
.provider-messages-panel,
.provider-portal-profile,
.provider-status-panel {
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 4px 12px rgba(14, 31, 64, 0.04),
    0 10px 24px rgba(14, 31, 64, 0.03);
}

/* Login card (provider login page) */
.provider-login-card {
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 6px 16px rgba(14, 31, 64, 0.05),
    0 16px 36px rgba(14, 31, 64, 0.04);
}

/* Provider login form */
.provider-login-form input {
  border-radius: 10px;
  border-color: #d1d5db;
}

.provider-login-form input:focus {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.14);
}

.provider-login-submit {
  border-radius: 10px;
}

/* Role form: inputs en provider */
.role-form input,
.role-form textarea,
.role-form select {
  border-radius: 10px;
}

.role-form input:focus,
.role-form textarea:focus,
.role-form select:focus {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.12);
}


/* ─── 7. ADMIN PORTAL — DASHBOARD ──────────────────────────────── */

/* Dashboard shell */
.dashboard-shell {
  border-radius: 14px;
}

/* Dashboard panels */
.dashboard-panel {
  border-radius: 16px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 6px 16px rgba(14, 31, 64, 0.05),
    0 14px 32px rgba(14, 31, 64, 0.03);
}

.dashboard-panel-intro {
  border-radius: 14px;
}

/* Stat cards */
.dashboard-stat-card {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.65);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

.dashboard-stat-card:hover {
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.06),
    0 8px 18px rgba(14, 31, 64, 0.07);
  transform: translateY(-2px);
}

.dashboard-stat--clickable {
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dashboard-stat--clickable:hover {
  transform: translateY(-2px);
}

/* Dashboard sections */
.dashboard-section {
  border-radius: 14px;
}

/* Dashboard tabs */
.dashboard-tabs {
  gap: 4px;
}

.dashboard-tab {
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-weight: 700;
}

.dashboard-tab:hover {
  background: rgba(7, 95, 228, 0.06);
}

.dashboard-tab.active {
  background: rgba(7, 95, 228, 0.1);
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(7, 95, 228, 0.12);
}

.dashboard-tab-badge {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.7rem;
}


/* ─── 8. ADMIN PORTAL — TABLAS ──────────────────────────────────── */

.table-row {
  border-radius: 0;
  transition: background 0.18s ease, transform 0.15s ease;
}

.table-row:hover {
  background: rgba(7, 95, 228, 0.03);
}

.table-row.active,
.table-row.table-row-actions {
  /* No transform — mantener alineación de tabla */
}

.table-head {
  background: linear-gradient(180deg, #f8fafe 0%, #f4f7fb 100%);
  border-bottom: 2px solid rgba(230, 235, 243, 0.9);
}

.table-head th {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}

/* Table action buttons */
.table-action-button,
.table-action-primary,
.table-action-muted,
.table-action-danger {
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.table-action-button:hover,
.table-action-primary:hover {
  transform: translateY(-1px);
}

/* Table cell stacks */
.table-cell-stack {
  border-radius: 8px;
}

/* Status select in tables */
.table-status-select {
  border-radius: 8px;
}


/* ─── 9. ADMIN PORTAL — REQUEST FILTERS ────────────────────────── */

.request-filter-bar {
  border-radius: 12px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 3px 8px rgba(14, 31, 64, 0.03);
}

.request-filter {
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.request-filter:hover {
  background: rgba(7, 95, 228, 0.06);
}

.request-filter.active {
  background: rgba(7, 95, 228, 0.1);
  color: var(--blue);
}

.request-filter-meta {
  font-size: 0.72rem;
}


/* ─── 10. ADMIN PORTAL — OPERATIONS QUEUE ──────────────────────── */

.operations-panel {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

.operations-queue-row {
  border-radius: 10px;
  transition: background 0.18s ease, transform 0.15s ease;
}

.operations-queue-row:hover {
  background: rgba(7, 95, 228, 0.03);
}

.operations-toolbar {
  border-radius: 10px;
}

/* Operations empty state */
.operations-queue-empty {
  border-radius: 14px;
  border: 1px dashed rgba(230, 235, 243, 0.8);
}

.operations-queue-empty__icon {
  border-radius: 50%;
  box-shadow:
    0 2px 6px rgba(7, 95, 228, 0.12),
    0 6px 16px rgba(7, 95, 228, 0.08);
}

.operations-queue-empty__cta {
  border-radius: 10px;
}


/* ─── 11. ADMIN PORTAL — INTELLIGENCE PANEL ────────────────────── */

.intelligence-panel {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

.intelligence-tabs {
  gap: 4px;
}

.intelligence-tab {
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  font-weight: 700;
}

.intelligence-tab:hover {
  background: rgba(7, 95, 228, 0.06);
}

.intelligence-tab.active {
  background: rgba(7, 95, 228, 0.1);
  color: var(--blue);
}

.intelligence-table {
  border-radius: 12px;
  overflow: hidden;
}

.intelligence-alerts {
  border-radius: 12px;
}


/* ─── 12. ADMIN PORTAL — COMMUNICATIONS HUB ────────────────────── */

.communications-data-panel {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

.communications-filters {
  border-radius: 12px;
}

.communications-table {
  border-radius: 12px;
  overflow: hidden;
}

.communication-hub-panel {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

.communication-hub-tab {
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  font-weight: 700;
}

.communication-hub-tab:hover {
  background: rgba(7, 95, 228, 0.06);
}

.communication-hub-tab.active {
  background: rgba(7, 95, 228, 0.1);
  color: var(--blue);
}

.communication-hub-filter {
  border-radius: 8px;
}

.communication-hub-search input {
  border-radius: 10px;
}

.communications-state-pill {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Status items */
.communications-status-item {
  border-radius: 10px;
  transition: background 0.18s ease;
}

.communications-status-item:hover {
  background: rgba(7, 95, 228, 0.03);
}

/* Webhook list */
.communications-webhook-list {
  border-radius: 12px;
}


/* ─── 13. ADMIN PORTAL — SUPPORT HUB ───────────────────────────── */

.support-focus-card {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

.support-focus-card:hover {
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.06),
    0 8px 18px rgba(14, 31, 64, 0.07);
}

.support-hub-sidebar {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
}

.support-hub-lane {
  border-radius: 12px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.support-hub-lane:hover {
  background: rgba(7, 95, 228, 0.03);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 3px 8px rgba(14, 31, 64, 0.03);
}

.support-hub-quick-btn {
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-hub-quick-btn:hover {
  transform: translateY(-1px);
}

.support-hub-banner {
  border-radius: 12px;
}

.support-hub-inline-link {
  border-radius: 10px;
  transition: background 0.2s ease;
}

.support-hub-inline-link:hover {
  background: rgba(7, 95, 228, 0.04);
}

.support-hub-conversation {
  border-radius: 12px;
}

.support-hub-steps {
  border-radius: 12px;
}

.support-job-lane-switch {
  border-radius: 10px;
}

.support-hub-profile-lane {
  border-radius: 12px;
  transition: background 0.2s ease;
}

.support-hub-profile-lane:hover {
  background: rgba(7, 95, 228, 0.03);
}


/* ─── 14. ADMIN PORTAL — STAFF CHAT ────────────────────────────── */

/* Chat layout */
.staff-chat-layout {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

/* Sidebar sections */
.staff-chat-sidebar-section {
  border-radius: 12px;
}

.staff-chat-sidebar-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Group picks */
.staff-group-pick {
  border-radius: 10px;
  border-color: rgba(230, 235, 243, 0.8);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.staff-group-pick:hover {
  border-color: rgba(7, 95, 228, 0.25);
  background: rgba(7, 95, 228, 0.03);
  transform: translateY(-1px);
}

.staff-group-pick.active {
  border-color: var(--blue);
  background: rgba(7, 95, 228, 0.08);
}

/* Collaborator rows */
.staff-group-picks button {
  border-radius: 10px;
  transition: background 0.18s ease;
}

.staff-group-picks button:hover {
  background: rgba(7, 95, 228, 0.04);
}

.staff-group-picks button.active {
  background: rgba(7, 95, 228, 0.08);
  border-left: 3px solid var(--blue);
}

/* Collaborator avatar */
.staff-collaborator-avatar {
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.08),
    0 4px 8px rgba(14, 31, 64, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Chat message bubbles */
.message-bubble--admin,
.message-bubble--client,
.message-bubble--provider,
.message-bubble--mine,
.message-bubble--staff,
.message-bubble--highlight {
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.04),
    0 2px 6px rgba(14, 31, 64, 0.03);
  transition: transform 0.15s ease;
}

/* Admin bubble (outgoing) */
.message-bubble--admin,
.message-bubble--mine,
.message-bubble--staff {
  border-bottom-right-radius: 6px;
}

/* Client/provider bubble (incoming) */
.message-bubble--client,
.message-bubble--provider {
  border-bottom-left-radius: 6px;
}

/* Highlight bubble */
.message-bubble--highlight {
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(7, 95, 228, 0.1),
    0 3px 8px rgba(7, 95, 228, 0.07);
  border: 1px solid rgba(7, 95, 228, 0.15);
}

/* Unread badge */
.message-unread-badge {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.65rem;
  box-shadow: 0 1px 3px rgba(7, 95, 228, 0.2);
}

/* Staff chat header */
.staff-chat-header {
  border-bottom: 1px solid rgba(230, 235, 243, 0.7);
}

/* Staff compose */
.staff-compose-actions {
  border-radius: 10px;
}

.staff-compose-actions input,
.staff-compose-actions textarea {
  border-radius: 10px;
}

/* Staff float (minimized chat) */
.staff-float {
  border-radius: 16px;
  box-shadow:
    0 2px 6px rgba(14, 31, 64, 0.08),
    0 8px 20px rgba(14, 31, 64, 0.1),
    0 20px 48px rgba(14, 31, 64, 0.08);
}

.staff-float-toggle {
  border-radius: 14px;
}

.staff-float-body {
  border-radius: 0 0 16px 16px;
}

.staff-float-tab {
  border-radius: 8px;
  transition: background 0.2s ease;
}

.staff-float-tab:hover {
  background: rgba(7, 95, 228, 0.06);
}

.staff-float-tab.active {
  background: rgba(7, 95, 228, 0.1);
}

/* Staff icon buttons */
.staff-icon-btn {
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.staff-icon-btn:hover {
  transform: translateY(-1px);
}

.staff-icon-btn--primary {
  border-radius: 8px;
}

/* Staff input with icon */
.staff-input-with-icon input {
  border-radius: 10px;
}

/* Staff mention suggestions */
.staff-mention-suggestions {
  border-radius: 12px;
  box-shadow:
    0 2px 6px rgba(14, 31, 64, 0.08),
    0 8px 20px rgba(14, 31, 64, 0.1);
}

/* Staff search results */
.staff-search-results {
  border-radius: 12px;
}

/* Staff typing indicator */
.staff-typing-indicator {
  border-radius: 14px;
}

/* Staff task list */
.staff-task-list {
  border-radius: 12px;
}

/* Staff supervision */
.staff-supervision-banner {
  border-radius: 12px;
}

.staff-supervision-enter {
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-supervision-enter:hover {
  transform: translateY(-1px);
}


/* ─── 15. ADMIN PORTAL — LOGIN MODAL ───────────────────────────── */

.login-modal {
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(14, 31, 64, 0.1),
    0 12px 28px rgba(14, 31, 64, 0.12),
    0 28px 64px rgba(14, 31, 64, 0.1);
}

.login-form input {
  border-radius: 10px;
  border: 1.5px solid #d1d5db;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 228, 0.14);
}

.login-form button[type="submit"] {
  border-radius: 10px;
}

.login-error {
  border-radius: 8px;
  font-size: 0.85rem;
}

.login-modal-escape {
  border-radius: 8px;
}


/* ─── 16. ADMIN PORTAL — PROFILE & PAYOUT MODALS ───────────────── */

.profile-modal {
  border-radius: 16px;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  border-radius: 10px;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 228, 0.12);
}

/* Payout approval */
.payout-approval-modal {
  border-radius: 16px;
}

.payout-approval-backdrop {
  background: rgba(8, 20, 45, 0.82);
}

.payout-review-list {
  border-radius: 12px;
}

.payout-filter {
  border-radius: 10px;
}

.payout-filter__button {
  border-radius: 8px;
}

.payout-queue-header {
  border-radius: 12px;
}

.payout-queue-controls {
  border-radius: 10px;
}

.payout-empty {
  border-radius: 14px;
  border: 1px dashed rgba(230, 235, 243, 0.8);
}

.payout-confirm-summary {
  border-radius: 12px;
}

.payout-confirm-check {
  border-radius: 10px;
}


/* ─── 17. ADMIN PORTAL — TEAM MANAGEMENT ───────────────────────── */

.team-card {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

.team-card:hover {
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.06),
    0 8px 18px rgba(14, 31, 64, 0.07);
  transform: translateY(-2px);
}

.team-card--wide {
  border-radius: 14px;
}

.team-card-head {
  border-bottom: 1px solid rgba(230, 235, 243, 0.7);
}

.team-form input,
.team-form select,
.team-form textarea {
  border-radius: 10px;
}

.team-form input:focus,
.team-form select:focus,
.team-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 228, 0.12);
}

.team-filters {
  border-radius: 10px;
}

.team-filter-search input {
  border-radius: 10px;
}

.team-permissions-fieldset {
  border-radius: 12px;
}

.team-permissions-grid {
  border-radius: 10px;
}

.team-users-table {
  border-radius: 12px;
  overflow: hidden;
}

.team-checkbox-label {
  border-radius: 6px;
}


/* ─── 18. ADMIN PORTAL — PAYMENTS ───────────────────────────────── */

.payments-layout {
  border-radius: 14px;
}

.payments-page-header {
  border-radius: 0;
}

.payments-summary-total {
  border-radius: 14px;
}

.payments-aside-heading {
  font-family: var(--font-display);
  font-weight: 700;
}

.payments-mode-banner {
  border-radius: 12px;
}

.payments-safety-note {
  border-radius: 10px;
}

.payment-tools-body {
  border-radius: 12px;
}

.payment-tools-disclosure {
  border-radius: 10px;
  transition: background 0.2s ease;
}


/* ─── 19. ADMIN PORTAL — PROVIDER PROFILE LOCATOR ───────────────── */

.provider-locator-modal {
  border-radius: 16px;
}

.provider-locator-body {
  border-radius: 12px;
}

.provider-profile-modal {
  border-radius: 16px;
}

.provider-profile-backdrop {
  background: rgba(8, 20, 45, 0.82);
}

.provider-profile-modal-header {
  border-bottom: 1px solid rgba(230, 235, 243, 0.7);
}


/* ─── 20. ADMIN PORTAL — MODALS & OVERLAYS ─────────────────────── */

.modal-card-wide {
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(14, 31, 64, 0.1),
    0 12px 28px rgba(14, 31, 64, 0.12);
}

.modal-close {
  border-radius: 8px;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(14, 31, 64, 0.06);
}


/* ─── 21. ADMIN PORTAL — HEADER & ACCOUNT DROPDOWN ─────────────── */

.admin-header-tools {
  gap: 6px;
}

.admin-icon-button {
  border-radius: 10px;
  transition: transform 0.15s ease, background 0.2s ease;
}

.admin-icon-button:hover {
  background: rgba(7, 95, 228, 0.06);
  transform: translateY(-1px);
}

.admin-icon-button__icon {
  transition: transform 0.2s ease;
}

.admin-profile-trigger {
  border-radius: 10px;
  transition: background 0.2s ease;
}

.admin-profile-trigger:hover {
  background: rgba(7, 95, 228, 0.05);
}

.admin-profile-trigger__avatar {
  border-radius: 50%;
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.1),
    0 4px 8px rgba(14, 31, 64, 0.06);
}

.admin-account-dropdown {
  border-radius: 14px;
  box-shadow:
    0 2px 6px rgba(14, 31, 64, 0.08),
    0 8px 20px rgba(14, 31, 64, 0.1),
    0 18px 44px rgba(14, 31, 64, 0.08);
  overflow: hidden;
}

.admin-account-dropdown__header {
  border-bottom: 1px solid rgba(230, 235, 243, 0.7);
}

.admin-account-dropdown__avatar {
  border-radius: 50%;
}

.admin-account-dropdown__item {
  border-radius: 8px;
  transition: background 0.2s ease;
}

.admin-account-dropdown__item:hover {
  background: rgba(7, 95, 228, 0.06);
}

.admin-account-dropdown__item--danger:hover {
  background: rgba(220, 38, 38, 0.06);
}

.admin-account-dropdown__divider {
  border-color: rgba(230, 235, 243, 0.5);
}

/* Notification panel */
.admin-notification-panel {
  border-radius: 14px;
  box-shadow:
    0 2px 6px rgba(14, 31, 64, 0.08),
    0 8px 20px rgba(14, 31, 64, 0.1);
}

.admin-notification-panel__header {
  border-bottom: 1px solid rgba(230, 235, 243, 0.7);
}

.admin-notification-panel__body {
  border-radius: 0;
}

.admin-notification-button {
  border-radius: 10px;
  transition: transform 0.15s ease;
}

.admin-notification-button:hover {
  transform: translateY(-1px);
}

.admin-notification-badge,
.admin-nav-badge {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.68rem;
}

/* Admin message view */
.admin-messages-view {
  border-radius: 14px;
}

/* Admin change mailbox */
.admin-change-mailbox {
  border-radius: 14px;
}

.admin-change-mailbox-layout {
  border-radius: 14px;
}

.admin-change-mailbox-inbox {
  border-radius: 12px;
}

.admin-change-mailbox-thread {
  border-radius: 12px;
}

.admin-change-mailbox-header {
  border-bottom: 1px solid rgba(230, 235, 243, 0.7);
}

.admin-change-mailbox-badge {
  border-radius: 999px;
  font-weight: 700;
}


/* ─── 22. TIPOGRAFÍA: SORA EN HEADINGS ─────────────────────────── */

h1 {
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.018em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* Provider hero heading */
.provider-portal-hero__copy h1 {
  letter-spacing: -0.025em;
  font-weight: 750;
}

/* Dashboard section headings */
.dashboard-section h2,
.intelligence-panel h2,
.communications-data-panel h2,
.support-hub-layout h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.018em;
}

.dashboard-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  text-transform: uppercase;
}

/* Panel heading kickers */
.provider-panel-heading p {
  letter-spacing: 0.1em;
  font-weight: 800;
}

.provider-panel-heading h2 {
  font-weight: 750;
}


/* ─── 23. STATUS BADGES ─────────────────────────────────────────── */

.status-badge {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 0.72rem;
}

/* Provider status badges */
.status-aprobado,
.status-pendiente,
.status-suspendido {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Admin request detail */
.admin-request-detail {
  border-radius: 12px;
}


/* ─── 24. TOAST ─────────────────────────────────────────────────── */

.toast {
  border-radius: 12px;
  background: linear-gradient(135deg, #0f1f3d 0%, #08142d 100%);
  box-shadow:
    0 2px 6px rgba(14, 31, 64, 0.12),
    0 8px 20px rgba(14, 31, 64, 0.14),
    0 20px 48px rgba(14, 31, 64, 0.1);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ─── 25. FORM ERRORS & FIELD HINTS ────────────────────────────── */

.form-error {
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.field-required {
  color: #dc2626;
  font-weight: 700;
}

.form-grid {
  border-radius: 12px;
}


/* ─── 26. WORKBENCH (admin) ─────────────────────────────────────── */

.workbench-list {
  border-radius: 12px;
}

.workbench-summary {
  border-radius: 12px;
}


/* ─── 27. ADMIN — OPERATIONS STEPS ──────────────────────────────── */

.operations-step-list {
  border-radius: 12px;
}

.operations-quick-panel {
  border-radius: 14px;
  border: 1px solid rgba(230, 235, 243, 0.7);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 12px rgba(14, 31, 64, 0.04);
}

.operations-mini-summary {
  border-radius: 12px;
}


/* ─── 28. RESPONSIVE: MOBILE-FIRST (max-width: 768px) ──────────── */

@media (max-width: 768px) {
  .btn {
    border-radius: 10px;
  }

  .card-panel,
  .dashboard-panel,
  .client-auth-panel,
  .client-profile-panel,
  .client-wizard-panel,
  .client-requests-panel,
  .client-estimate-card,
  .provider-surface-card,
  .provider-overview-card,
  .provider-jobs-panel,
  .provider-money-panel,
  .provider-messages-panel,
  .provider-portal-profile,
  .provider-metric-card,
  .intelligence-panel,
  .communications-data-panel,
  .communication-hub-panel,
  .support-focus-card,
  .operations-panel,
  .team-card {
    border-radius: 12px;
  }

  .login-modal,
  .profile-modal,
  .provider-login-card {
    border-radius: 14px;
  }

  .staff-chat-layout {
    border-radius: 12px;
  }

  .message-bubble--admin,
  .message-bubble--client,
  .message-bubble--provider,
  .message-bubble--mine,
  .message-bubble--staff,
  .message-bubble--highlight {
    border-radius: 14px;
  }

  .message-bubble--admin,
  .message-bubble--mine,
  .message-bubble--staff {
    border-bottom-right-radius: 4px;
  }

  .message-bubble--client,
  .message-bubble--provider {
    border-bottom-left-radius: 4px;
  }

  .staff-float {
    border-radius: 14px;
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 8px;
  }

  .dashboard-stat-card {
    border-radius: 12px;
  }

  h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.25rem, 4vw, 1.6rem);
  }
}


/* ─── 29. RESPONSIVE: MOBILE SMALL (max-width: 480px) ──────────── */

@media (max-width: 480px) {
  .card-panel,
  .dashboard-panel,
  .client-auth-panel,
  .provider-surface-card,
  .provider-overview-card,
  .communication-hub-panel,
  .intelligence-panel,
  .communications-data-panel,
  .operations-panel {
    border-radius: 10px;
  }

  .login-modal,
  .profile-modal,
  .provider-login-card {
    border-radius: 12px;
  }

  .btn {
    border-radius: 8px;
  }

  .btn-primary {
    border-radius: 8px;
    box-shadow:
      0 1px 3px rgba(7, 95, 228, 0.12),
      0 4px 10px rgba(7, 95, 228, 0.1);
  }

  .staff-chat-layout {
    border-radius: 10px;
    grid-template-columns: 1fr;
  }

  .staff-chat-sidebar {
    display: none;
  }

  .message-bubble--admin,
  .message-bubble--client,
  .message-bubble--provider,
  .message-bubble--mine,
  .message-bubble--staff,
  .message-bubble--highlight {
    border-radius: 12px;
  }

  .message-bubble--admin,
  .message-bubble--mine,
  .message-bubble--staff {
    border-bottom-right-radius: 3px;
  }

  .message-bubble--client,
  .message-bubble--provider {
    border-bottom-left-radius: 3px;
  }

  .staff-float {
    border-radius: 12px;
    width: calc(100vw - 12px);
    right: 6px;
    bottom: 6px;
  }

  h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: clamp(1.15rem, 5vw, 1.4rem);
  }
}


/* ============================================================
   FIX UX (auditoría flujo completo 2026-08-07)
   El botón "Enviar solicitud" sin sesión debe verse bloqueado
   (el submit requiere auth — evitar clics que "no hacen nada")
   ============================================================ */
[data-pwa-role="client"].client-auth-gate .client-wizard-form button[type="submit"],
[data-pwa-role="client"].client-auth-gate #clientSubmitButton {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.6);
}
[data-pwa-role="client"].client-auth-gate .client-wizard-form button[type="submit"]:hover,
[data-pwa-role="client"].client-auth-gate #clientSubmitButton:hover {
  transform: none;
  box-shadow: none;
  filter: saturate(0.6);
}
[data-pwa-role="client"].client-auth-gate .client-wizard-form button[type="submit"]::after {
  content: " — inicia sesión para enviar";
  font-weight: 500;
  opacity: 0.8;
}
@media (max-width: 480px) {
  [data-pwa-role="client"].client-auth-gate .client-wizard-form button[type="submit"]::after {
    content: "";
  }
}


/* ============================================================
   FIX UX #2 (auditoría flujo completo 2026-08-07)
   Aviso de fotos pendientes en el paso 4 del wizard
   ============================================================ */
.client-photo-required-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(232, 163, 23, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(232, 163, 23, 0.08), rgba(232, 163, 23, 0.03));
  color: var(--ink, #08142d);
  font-size: 0.92rem;
  line-height: 1.45;
}
.client-photo-required-note > span:first-child {
  font-size: 1.15rem;
  line-height: 1.3;
}


/* ============================================================
   DIVERSIÓN CLIENTE (auditoría UX 2026-08-07)
   Animaciones sutiles: bounce tiles, pop badge, confetti.
   Respeta prefers-reduced-motion.
   ============================================================ */
@keyframes clientFunBounce {
  0%   { transform: scale(1) translateY(0); }
  35%  { transform: scale(1.18) translateY(-4px) rotate(-3deg); }
  60%  { transform: scale(0.94) translateY(1px) rotate(2deg); }
  100% { transform: scale(1) translateY(0) rotate(0); }
}
@keyframes clientFunPop {
  0%   { transform: scale(0.4); opacity: 0; }
  70%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.client-fun-bounce {
  animation: clientFunBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.client-service-tile:hover .service-thumb,
.provider-service-tile:hover .service-thumb,
.client-service-tile:focus-within .service-thumb,
.provider-service-tile:focus-within .service-thumb {
  transform: scale(1.08) rotate(-2deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* progreso del wizard con transición suave */
.client-wizard-progress [class*=fill] {
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .client-fun-bounce,
  .client-service-tile:hover .service-thumb,
  .provider-service-tile:hover .service-thumb {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  .client-fun-photo-ok {
    animation: none !important;
  }
}


/* ============================================================
   MEJORA PANEL CLIENTE (El Constructor 🔧 2026-08-07)
   Badge de estado con color por etapa — visible sin expandir
   ============================================================ */
.client-request-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(8, 20, 45, 0.08);
}
.client-request-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.client-request-status[data-stage="verification"] {
  background: rgba(232, 163, 23, 0.12);
  color: #a06a10;
}
.client-request-status[data-stage="assigned"] {
  background: rgba(7, 95, 228, 0.1);
  color: var(--blue);
}
.client-request-status[data-stage="progress"] {
  background: rgba(0, 169, 157, 0.12);
  color: #007d74;
}
.client-request-status[data-stage="completed"] {
  background: rgba(34, 148, 74, 0.12);
  color: #1d7a3e;
}
.client-request-status[data-stage="canceled"] {
  background: rgba(180, 60, 60, 0.1);
  color: #a03a3a;
}
@media (prefers-reduced-motion: reduce) {
  .client-request-status { transition: none !important; }
}
