* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  background: #0B0F19;
  color: white;
}


/* ================================
   LOGIN
   ================================ */

.login-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.background-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, #22c55e22, transparent 40%),
    radial-gradient(circle at 80% 70%, #22c55e11, transparent 40%);
  filter: blur(120px);
}

.login-card {
  background: #121826;
  border: 1px solid #1F2937;
  padding: 40px;
  border-radius: 16px;
  width: 360px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

.logo {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 6px;
}

.subtitle {
  color: #9CA3AF;
  font-size: 14px;
  margin-bottom: 28px;
}

input {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #1F2937;
  background: #0B0F19;
  color: white;
  font-size: 14px;
  outline: none;
}

input:focus {
  border: 1px solid #22C55E;
}

button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #22C55E;
  color: black;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #16A34A;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.signup {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: #9CA3AF;
}

.signup a {
  color: #22C55E;
  text-decoration: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.g_id_signin {
  width: 100% !important;
}

.g_id_signin > div {
  width: 100% !important;
}

@media (max-width: 480px) {
  .login-card {
    width: 90%;
    padding: 30px;
  }
}


/* ================================
   DASHBOARD
   ================================ */

.dashboard {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px 80px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 24px;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  width: auto;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
}

.add-vehicle-btn {
  margin-bottom: 24px;
  padding: 12px 20px;
  width: auto;
  border-radius: 10px;
  background: #22c55e;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.vehicle-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 20px;
  border-radius: 14px;
}

.vehicle-card-header {
  margin-bottom: 14px;
}

.vehicle-card-header h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

.vehicle-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.status-label {
  color: rgba(255, 255, 255, 0.4);
}

.vehicle-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.docs-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: #1e293b;
  color: white;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.docs-btn:hover {
  background: #273548;
}

.delete-vehicle-btn {
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: rgba(239, 68, 68, 0.7);
  font-size: 13px;
  font-weight: 500;
  width: auto;
  cursor: pointer;
  transition: all 0.2s;
}

.delete-vehicle-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ef4444;
}


/* ================================
   BADGES
   ================================ */

.badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.badge--ok {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.badge--error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.badge--unknown {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
}


/* ================================
   MODALES
   ================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 20px;
}

.modal-content {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 28px;
  border-radius: 14px;
  width: 100%;
  max-width: 340px;
}

.modal-content--wide {
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 20px;
  font-size: 17px;
}

.modal input {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #020617;
  color: white;
  font-size: 14px;
}

.cancel-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  margin-top: 6px;
  padding: 8px;
  width: 100%;
}

.cancel-btn:hover {
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
}


/* ================================
   MODAL DOCUMENTOS
   ================================ */

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
}

.close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  width: auto;
  padding: 4px 8px;
  cursor: pointer;
}

.close-btn:hover {
  color: white;
  background: transparent;
}

.docs-list {
  margin-bottom: 24px;
}

.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.doc-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.doc-type {
  font-size: 14px;
  font-weight: 500;
}

.doc-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.upload-section {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
}

.upload-section h4 {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #020617;
  color: white;
  font-size: 14px;
  outline: none;
}

select:focus {
  border-color: #22c55e;
}

input[type="file"] {
  padding: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  border-color: #1e293b;
}

.upload-status {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}

.upload-status--ok {
  color: #22c55e;
}

.upload-status--error {
  color: #ef4444;
}


.doc-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-doc-btn {
  font-size: 12px;
  color: #22c55e;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  cursor: pointer;
}

.view-doc-btn:hover {
  background: rgba(34, 197, 94, 0.1);
}

.view-doc-btn {
  font-size: 12px;
  color: #22c55e;
  padding: 4px 10px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  width: auto;          /* <- override del button global */
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.view-doc-btn:hover {
  background: rgba(34, 197, 94, 0.1);
}

.doc-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}


.delete-doc-btn {
  background: transparent;
  border: none;
  color: rgba(239, 68, 68, 0.5);
  font-size: 14px;
  width: auto;
  padding: 2px 6px;
  cursor: pointer;
}

.delete-doc-btn:hover {
  color: #ef4444;
}


.badge-wrapper {
  position: relative;
  display: inline-flex;
}


.doc-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  white-space: normal;
  max-width: 240px;
  width: max-content;
  line-height: 1.8;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  pointer-events: none;
}

.badge-wrapper:hover .doc-tooltip,
.badge-wrapper.active .doc-tooltip {
  display: block;
}

.file-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 8px 0 4px;
}


.offline-notice {
  font-size: 12px;
  color: #f59e0b;
  opacity: 0.8;
  margin-bottom: 12px;
}


/* -------------------------
   OFFLINE SYNC BUTTON + PROGRESS
   Agregar al final de style.css
   ------------------------- */

.offline-sync-btn {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(99, 179, 237, 0.4);
  border-radius: 8px;
  color: #63b3ed;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.offline-sync-btn:hover:not(:disabled) {
  background: rgba(99, 179, 237, 0.08);
  border-color: rgba(99, 179, 237, 0.7);
}

.offline-sync-btn:disabled {
  cursor: default;
}

.offline-progress-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.offline-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #63b3ed;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.offline-progress-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.offline-notice {
  font-size: 12px;
  color: #f59e0b;
  opacity: 0.85;
  margin-bottom: 12px;
}



/* ================================
   PLAN BADGE
   ================================ */

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.plan-badge--pro {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

.plan-badge--free {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
}

.plan-upgrade-link {
  color: #22c55e;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.plan-upgrade-link:hover {
  text-decoration: underline;
}


/* ================================
   BADGE WARNING (vencimiento próximo)
   ================================ */

.badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}


/* ================================
   DOC EXPIRY (modal documentos)
   ================================ */

.doc-expiry {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1px;
}


/* ================================
   UPLOAD STATUS PRO
   ================================ */

.upload-status--pro {
  color: #a78bfa;
}


/* ================================
   PRO WALL MODAL
   ================================ */

.pro-wall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

.pro-wall-box {
  background: #0f172a;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.pro-wall-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.pro-wall-msg {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pro-wall-cta {
  display: block;
  width: 100%;
  padding: 13px;
  background: #7c3aed;
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.2s;
}

.pro-wall-cta:hover {
  background: #6d28d9;
}

.pro-wall-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  padding: 8px;
  width: 100%;
}

.pro-wall-close:hover {
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
}



/* ================================
   PLAN BADGE (inline, eliminado del header)
   ================================ */

.plan-upgrade-link {
  color: #22c55e;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.plan-upgrade-link:hover {
  text-decoration: underline;
}


/* ================================
   BADGE WARNING (vencimiento próximo)
   ================================ */

.badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}


/* ================================
   DOC EXPIRY
   ================================ */

.doc-expiry {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1px;
}


/* ================================
   UPLOAD STATUS PRO
   ================================ */

.upload-status--pro {
  color: #a78bfa;
}


/* ================================
   MENU TRIGGER (hamburger)
   ================================ */

.menu-trigger {
  background: transparent;
  border: none;
  width: auto;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.menu-trigger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  transition: background 0.2s;
}

.menu-trigger:hover span {
  background: white;
}


/* ================================
   MENÚ LATERAL
   ================================ */

.side-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s;
}

.side-menu-overlay.open {
  display: block;
  opacity: 1;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  max-width: 85vw;
  background: #0f172a;
  border-left: 1px solid #1e293b;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #1e293b;
}

.side-menu-logo {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.side-menu-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  width: auto;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
}

.side-menu-close:hover {
  color: white;
  background: transparent;
}

.side-menu-user {
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.side-menu-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.side-menu-email {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-all;
}

.side-menu-plan {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 4px;
}

.side-menu-plan--pro {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #a78bfa;
}

.side-menu-plan--free {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.35);
}

.side-menu-upgrade {
  margin: 4px 20px 16px;
  display: block;
  padding: 11px 16px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  color: #a78bfa;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.side-menu-upgrade:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.6);
}

.side-menu-divider {
  height: 1px;
  background: #1e293b;
  margin: 4px 0;
}

.side-menu-section {
  padding: 12px 12px 8px;
}

.side-menu-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 6px;
}

.side-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.side-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.side-menu-item--danger {
  color: rgba(239, 68, 68, 0.6);
}

.side-menu-item--danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.side-menu-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.side-menu-footer {
  margin-top: auto;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  border-top: 1px solid #1e293b;
}

.side-menu-footer-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.side-menu-footer-link:hover {
  color: rgba(255, 255, 255, 0.5);
}


/* ================================
   PRO WALL MODAL
   ================================ */

.pro-wall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

.pro-wall-box {
  background: #0f172a;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.pro-wall-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.pro-wall-msg {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pro-wall-cta {
  display: block;
  width: 100%;
  padding: 13px;
  background: #7c3aed;
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.2s;
}

.pro-wall-cta:hover {
  background: #6d28d9;
}

.pro-wall-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  padding: 8px;
  width: 100%;
}

.pro-wall-close:hover {
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
}


/* ================================
   VIEWER TAG (vehículo asignado)
   ================================ */

.viewer-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.4px;
}

/* ================================
   BOTÓN ASIGNAR EN CARD
   ================================ */

.assign-btn {
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(99, 179, 237, 0.3);
  color: #63b3ed;
  font-size: 14px;
  width: auto;
  cursor: pointer;
  transition: all 0.2s;
}

.assign-btn:hover {
  background: rgba(99, 179, 237, 0.08);
  border-color: rgba(99, 179, 237, 0.6);
}


/* ================================
   LINK BOX (invitación + referidos)
   ================================ */

.link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0 4px;
}

.link-box span {
  flex: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  word-break: break-all;
  line-height: 1.4;
}

.copy-btn {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  width: auto;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(34, 197, 94, 0.2);
}


/* ================================
   MODAL DESC
   ================================ */

.modal-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 4px;
}

.modal-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 8px;
}


/* ================================
   INVITE ITEMS
   ================================ */

.invite-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

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

.invite-date {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.invite-invitee {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-left: auto;
}

.invite-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.invite-status--accepted {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.invite-status--pending {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
}

.invite-status--rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}


/* ================================
   ASSIGN FORM
   ================================ */

.assign-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.assign-form select,
.assign-form input {
  margin-bottom: 0;
}

.assign-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 8px;
}

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

.assign-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.assign-plate {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.assign-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.assign-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}


/* ================================
   REFERRAL STATS
   ================================ */

.referral-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.referral-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}

.referral-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: #a78bfa;
  line-height: 1.2;
}

.referral-stat-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
  line-height: 1.3;
}

.share-btn {
  width: 100%;
  padding: 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  color: #a78bfa;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.share-btn:hover {
  background: rgba(139, 92, 246, 0.22);
}


/* ================================
   PLAN BADGE (menú lateral)
   ================================ */

.plan-badge--pro {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

.plan-badge--free {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.35);
}

.plan-upgrade-link {
  color: #22c55e;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}


/* ================================
   BADGE WARNING
   ================================ */

.badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}


/* ================================
   DOC EXPIRY
   ================================ */

.doc-expiry {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1px;
}


/* ================================
   UPLOAD STATUS PRO
   ================================ */

.upload-status--pro {
  color: #a78bfa;
}


/* ================================
   MENU TRIGGER
   ================================ */

.menu-trigger {
  background: transparent;
  border: none;
  width: auto;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.menu-trigger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  transition: background 0.2s;
}

.menu-trigger:hover span { background: white; }


/* ================================
   MENÚ LATERAL
   ================================ */

.side-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s;
}

.side-menu-overlay.open { display: block; opacity: 1; }

.side-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 280px;
  max-width: 85vw;
  background: #0f172a;
  border-left: 1px solid #1e293b;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.side-menu.open { transform: translateX(0); }

.side-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #1e293b;
}

.side-menu-logo { font-size: 18px; font-weight: 600; color: white; }

.side-menu-close {
  background: transparent; border: none;
  color: rgba(255,255,255,0.4); font-size: 16px;
  width: auto; padding: 4px 8px; cursor: pointer;
}

.side-menu-close:hover { color: white; background: transparent; }

.side-menu-user {
  padding: 24px 20px 16px;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 4px;
}

.side-menu-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(139,92,246,0.25);
  border: 1px solid rgba(139,92,246,0.4);
  color: #a78bfa; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}

.side-menu-email { font-size: 13px; color: rgba(255,255,255,0.7); word-break: break-all; }

.side-menu-plan {
  font-size: 11px; font-weight: 600;
  padding: 2px 10px; border-radius: 20px; margin-top: 4px;
}

.side-menu-plan--pro {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.35);
  color: #a78bfa;
}

.side-menu-plan--free {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
}

.side-menu-upgrade {
  margin: 4px 20px 16px;
  display: block; padding: 11px 16px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 10px; color: #a78bfa;
  font-size: 13px; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.side-menu-upgrade:hover { background: rgba(139,92,246,0.22); border-color: rgba(139,92,246,0.6); }

.side-menu-divider { height: 1px; background: #1e293b; margin: 4px 0; }

.side-menu-section { padding: 12px 12px 8px; }

.side-menu-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.8px; color: rgba(255,255,255,0.25);
  text-transform: uppercase; padding: 0 8px; margin-bottom: 6px;
}

.side-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  background: transparent; border: none; border-radius: 8px;
  color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 400;
  text-align: left; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.side-menu-item:hover { background: rgba(255,255,255,0.05); color: white; }

.side-menu-item--danger { color: rgba(239,68,68,0.6); }
.side-menu-item--danger:hover { background: rgba(239,68,68,0.08); color: #ef4444; }

.side-menu-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.side-menu-footer {
  margin-top: auto; padding: 16px 20px;
  display: flex; gap: 16px;
  border-top: 1px solid #1e293b;
}

.side-menu-footer-link { font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; }
.side-menu-footer-link:hover { color: rgba(255,255,255,0.5); }


/* ================================
   PRO WALL
   ================================ */

.pro-wall-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 20px;
}

.pro-wall-box {
  background: #0f172a;
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 16px; padding: 32px 28px;
  max-width: 340px; width: 100%; text-align: center;
  box-shadow: 0 0 40px rgba(139,92,246,0.15);
}

.pro-wall-badge {
  display: inline-block;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.4);
  color: #a78bfa; font-size: 13px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 16px; letter-spacing: 1px;
}

.pro-wall-msg { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 24px; }

.pro-wall-cta {
  display: block; width: 100%; padding: 13px;
  background: #7c3aed; color: white; font-weight: 600; font-size: 14px;
  border-radius: 10px; text-decoration: none; margin-bottom: 10px;
  transition: background 0.2s;
}

.pro-wall-cta:hover { background: #6d28d9; }

.pro-wall-close {
  background: transparent; border: none;
  color: rgba(255,255,255,0.3); font-size: 13px; font-weight: 400;
  cursor: pointer; padding: 8px; width: 100%;
}

.pro-wall-close:hover { color: rgba(255,255,255,0.6); background: transparent; }


/* ================================
   OFFLINE
   ================================ */

.offline-sync-btn {
  display: block; width: 100%; margin-bottom: 12px;
  padding: 10px 16px; background: transparent;
  border: 1px solid rgba(99,179,237,0.4); border-radius: 8px;
  color: #63b3ed; font-size: 13px; cursor: pointer; text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.offline-sync-btn:hover:not(:disabled) { background: rgba(99,179,237,0.08); border-color: rgba(99,179,237,0.7); }
.offline-sync-btn:disabled { cursor: default; }

.offline-progress-bar-track { height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.offline-progress-bar-fill  { height: 100%; width: 0%; background: #63b3ed; border-radius: 4px; transition: width 0.3s ease; }
.offline-progress-label     { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.offline-notice             { font-size: 12px; color: #f59e0b; opacity: 0.85; margin-bottom: 12px; }

/* ================================
   NICKNAME VEHÍCULO
   ================================ */

.vehicle-title-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.vehicle-plate-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

.vehicle-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.nickname-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  width: auto;
  padding: 2px 6px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.2s;
}

.nickname-btn:hover {
  color: #22c55e;
  background: transparent;
}

/* ================================
   ESTRELLA VEHÍCULO PRINCIPAL
   ================================ */

.star-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  width: auto;
  padding: 4px 6px;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.star-btn:hover { opacity: 0.7; }
.star-btn--active { opacity: 1 !important; }


/* ================================
   MODO CONTROL — FAB
   ================================ */

.modo-control-fab {
  background: #1e40af;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.5);
  width: auto !important;
  display: inline-block !important;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.modo-control-fab:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 24px rgba(30, 64, 175, 0.7);
}


/* ================================
   MODO CONTROL — MODAL
   ================================ */

.modo-control-modal .modal-content {
  max-width: 480px;
}

.modo-control-content {
  padding-bottom: 24px;
}

.modo-control-vehicle {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.mc-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 12px;
}

.mc-doc-row:last-child { border-bottom: none; }

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

.mc-doc-type {
  font-size: 15px;
  font-weight: 500;
}

.mc-doc-status {
  font-size: 12px;
  font-weight: 500;
}

.mc-status--ok      { color: #22c55e; }
.mc-status--warning { color: #f59e0b; }
.mc-status--error   { color: #ef4444; }
.mc-status--unknown { color: rgba(255,255,255,0.3); }

.mc-view-btn {
  background: #1e40af;
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: auto;
  flex-shrink: 0;
  transition: background 0.2s;
}

.mc-view-btn:hover { background: #1d4ed8; }


/* ================================
   SELECTOR DE VEHÍCULO
   ================================ */

.vehicle-selector-item {
  display: block;
  width: 100%;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.vehicle-selector-item:hover {
  background: rgba(255,255,255,0.08);
}

/* ================================
   PWA INSTALL BANNER
   ================================ */

.install-banner {
  position: fixed;
  bottom: 100px;
  left: 16px;
  right: 16px;
  max-width: 460px;
  margin: 0 auto;
  background: #1e293b;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 250;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.install-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.install-banner-icon { font-size: 28px; flex-shrink: 0; }

.install-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.install-banner-text strong {
  font-size: 14px;
  color: white;
}

.install-banner-text span {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.install-banner-btn {
  background: #22c55e;
  color: black;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  white-space: nowrap;
  transition: background 0.2s;
}

.install-banner-btn:hover { background: #16a34a; }

.install-banner-dismiss {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  width: auto;
}

.install-banner-dismiss:hover { color: rgba(255,255,255,0.6); }


/* ================================
   VIEWER TAG (vehículo asignado)
   ================================ */

.viewer-tag {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; padding: 2px 7px;
  margin-left: 8px; vertical-align: middle; letter-spacing: 0.4px;
}

/* ================================
   BOTÓN ASIGNAR EN CARD
   ================================ */

.assign-btn {
  padding: 10px 12px; border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(99,179,237,0.3);
  color: #63b3ed; font-size: 14px; width: auto;
  cursor: pointer; transition: all 0.2s;
}

.assign-btn:hover { background: rgba(99,179,237,0.08); border-color: rgba(99,179,237,0.6); }

/* ================================
   LINK BOX
   ================================ */

.link-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 12px; margin: 12px 0 4px;
}

.link-box span {
  flex: 1; font-size: 12px; color: rgba(255,255,255,0.5);
  word-break: break-all; line-height: 1.4;
}

.copy-btn {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; width: auto;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.2s;
}

.copy-btn:hover { background: rgba(34,197,94,0.2); }

/* ================================
   MODAL DESC / LABELS
   ================================ */

.modal-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 4px; }

.modal-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 8px;
}

/* ================================
   INVITE ITEMS
   ================================ */

.invite-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px;
}
.invite-item:last-child { border-bottom: none; }
.invite-date { color: rgba(255,255,255,0.3); font-size: 12px; }
.invite-invitee { color: rgba(255,255,255,0.5); font-size: 12px; margin-left: auto; }

.invite-status-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.invite-status--accepted { background: rgba(34,197,94,0.12); color: #22c55e; }
.invite-status--pending  { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.invite-status--rejected { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ================================
   ASSIGN FORM + ITEMS
   ================================ */

.assign-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.assign-form select, .assign-form input { margin-bottom: 0; }

.assign-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); gap: 8px;
}
.assign-item:last-child { border-bottom: none; }
.assign-item-info { display: flex; flex-direction: column; gap: 2px; }
.assign-plate { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; }
.assign-email { font-size: 12px; color: rgba(255,255,255,0.4); }
.assign-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ================================
   REFERRAL STATS
   ================================ */

.referral-stats { display: flex; gap: 12px; margin-bottom: 16px; }

.referral-stat {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 8px; text-align: center;
}

.referral-stat-value { display: block; font-size: 24px; font-weight: 600; color: #a78bfa; line-height: 1.2; }
.referral-stat-label { display: block; font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 4px; line-height: 1.3; }

.share-btn {
  width: 100%; padding: 12px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 10px; color: #a78bfa;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.share-btn:hover { background: rgba(139,92,246,0.22); }

/* ================================
   BADGE WARNING + DOC EXPIRY + UPLOAD PRO
   ================================ */

.badge--warning { background: rgba(245,158,11,0.15); color: #f59e0b; }
.doc-expiry { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 1px; }
.upload-status--pro { color: #a78bfa; }

/* ================================
   MENU TRIGGER
   ================================ */

.menu-trigger {
  background: transparent; border: none; width: auto; padding: 8px;
  cursor: pointer; display: flex; flex-direction: column; gap: 5px; align-items: center;
}
.menu-trigger span { display: block; width: 20px; height: 2px; background: rgba(255,255,255,0.6); border-radius: 2px; transition: background 0.2s; }
.menu-trigger:hover span { background: white; }

/* ================================
   MENÚ LATERAL
   ================================ */

.side-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; opacity: 0; transition: opacity 0.25s; }
.side-menu-overlay.open { display: block; opacity: 1; }

.side-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: 280px; max-width: 85vw;
  background: #0f172a; border-left: 1px solid #1e293b; z-index: 400;
  transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.side-menu.open { transform: translateX(0); }

.side-menu-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 16px; border-bottom: 1px solid #1e293b; }
.side-menu-logo { font-size: 18px; font-weight: 600; color: white; }
.side-menu-close { background: transparent; border: none; color: rgba(255,255,255,0.4); font-size: 16px; width: auto; padding: 4px 8px; cursor: pointer; }
.side-menu-close:hover { color: white; background: transparent; }

.side-menu-user { padding: 24px 20px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.side-menu-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(139,92,246,0.25); border: 1px solid rgba(139,92,246,0.4);
  color: #a78bfa; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}

.side-menu-email { font-size: 13px; color: rgba(255,255,255,0.7); word-break: break-all; }
.side-menu-plan { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; margin-top: 4px; }
.side-menu-plan--pro { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.35); color: #a78bfa; }
.side-menu-plan--free { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.35); }

.side-menu-upgrade {
  margin: 4px 20px 16px; display: block; padding: 11px 16px;
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.35);
  border-radius: 10px; color: #a78bfa; font-size: 13px; font-weight: 600;
  text-decoration: none; text-align: center; transition: background 0.2s, border-color 0.2s;
}
.side-menu-upgrade:hover { background: rgba(139,92,246,0.22); border-color: rgba(139,92,246,0.6); }

.side-menu-divider { height: 1px; background: #1e293b; margin: 4px 0; }
.side-menu-section { padding: 12px 12px 8px; }

.side-menu-label { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; color: rgba(255,255,255,0.25); text-transform: uppercase; padding: 0 8px; margin-bottom: 6px; }

.side-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  background: transparent; border: none; border-radius: 8px;
  color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 400;
  text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.side-menu-item:hover { background: rgba(255,255,255,0.05); color: white; }
.side-menu-item--danger { color: rgba(239,68,68,0.6); }
.side-menu-item--danger:hover { background: rgba(239,68,68,0.08); color: #ef4444; }
.side-menu-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.side-menu-footer { margin-top: auto; padding: 16px 20px; display: flex; gap: 16px; border-top: 1px solid #1e293b; }
.side-menu-footer-link { font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; }
.side-menu-footer-link:hover { color: rgba(255,255,255,0.5); }

/* ================================
   PRO WALL
   ================================ */

.pro-wall-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
.pro-wall-box { background: #0f172a; border: 1px solid rgba(139,92,246,0.35); border-radius: 16px; padding: 32px 28px; max-width: 340px; width: 100%; text-align: center; box-shadow: 0 0 40px rgba(139,92,246,0.15); }
.pro-wall-badge { display: inline-block; background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.4); color: #a78bfa; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; letter-spacing: 1px; }
.pro-wall-msg { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 24px; }
.pro-wall-cta { display: block; width: 100%; padding: 13px; background: #7c3aed; color: white; font-weight: 600; font-size: 14px; border-radius: 10px; text-decoration: none; margin-bottom: 10px; transition: background 0.2s; }
.pro-wall-cta:hover { background: #6d28d9; }
.pro-wall-close { background: transparent; border: none; color: rgba(255,255,255,0.3); font-size: 13px; font-weight: 400; cursor: pointer; padding: 8px; width: 100%; }
.pro-wall-close:hover { color: rgba(255,255,255,0.6); background: transparent; }

/* ================================
   OFFLINE
   ================================ */

.offline-sync-btn { display: block; width: 100%; margin-bottom: 12px; padding: 10px 16px; background: transparent; border: 1px solid rgba(99,179,237,0.4); border-radius: 8px; color: #63b3ed; font-size: 13px; cursor: pointer; text-align: center; transition: background 0.2s, border-color 0.2s; }
.offline-sync-btn:hover:not(:disabled) { background: rgba(99,179,237,0.08); border-color: rgba(99,179,237,0.7); }
.offline-sync-btn:disabled { cursor: default; }
.offline-progress-bar-track { height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.offline-progress-bar-fill  { height: 100%; width: 0%; background: #63b3ed; border-radius: 4px; transition: width 0.3s ease; }
.offline-progress-label     { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.offline-notice             { font-size: 12px; color: #f59e0b; opacity: 0.85; margin-bottom: 12px; }


/* ================================
   HEADER ACTIONS + ALERT BELL
   ================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-bell-btn {
  position: relative;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #ef4444;
  font-size: 14px;
  padding: 6px 12px;
  cursor: pointer;
  width: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.alert-bell-btn:hover {
  background: rgba(239, 68, 68, 0.18);
}

.alert-badge {
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

.alert-badge--critical {
  background: #ef4444;
  animation: pulse 2s infinite;
}

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


/* ================================
   MODAL ALERTAS
   ================================ */

.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.alert-icon { font-size: 16px; flex-shrink: 0; }

.alert-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-title   { font-size: 14px; font-weight: 500; }
.alert-vehicle { font-size: 12px; color: rgba(255,255,255,0.35); }

.alert-item--critical .alert-title { color: #ef4444; }
.alert-item--warning  .alert-title { color: #f59e0b; }
.alert-item--info     .alert-title { color: #63b3ed; }



/* ================================
   VIEWER TAG (vehículo asignado)
   ================================ */

.viewer-tag {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; padding: 2px 7px;
  margin-left: 8px; vertical-align: middle; letter-spacing: 0.4px;
}

/* ================================
   BOTÓN ASIGNAR EN CARD
   ================================ */

.assign-btn {
  padding: 10px 12px; border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(99,179,237,0.3);
  color: #63b3ed; font-size: 14px; width: auto;
  cursor: pointer; transition: all 0.2s;
}

.assign-btn:hover { background: rgba(99,179,237,0.08); border-color: rgba(99,179,237,0.6); }

/* ================================
   LINK BOX
   ================================ */

.link-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 12px; margin: 12px 0 4px;
}

.link-box span {
  flex: 1; font-size: 12px; color: rgba(255,255,255,0.5);
  word-break: break-all; line-height: 1.4;
}

.copy-btn {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; width: auto;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.2s;
}

.copy-btn:hover { background: rgba(34,197,94,0.2); }

/* ================================
   MODAL DESC / LABELS
   ================================ */

.modal-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 4px; }

.modal-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 8px;
}

/* ================================
   INVITE ITEMS
   ================================ */

.invite-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px;
}
.invite-item:last-child { border-bottom: none; }
.invite-date { color: rgba(255,255,255,0.3); font-size: 12px; }
.invite-invitee { color: rgba(255,255,255,0.5); font-size: 12px; margin-left: auto; }

.invite-status-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.invite-status--accepted { background: rgba(34,197,94,0.12); color: #22c55e; }
.invite-status--pending  { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.invite-status--rejected { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ================================
   ASSIGN FORM + ITEMS
   ================================ */

.assign-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.assign-form select, .assign-form input { margin-bottom: 0; }

.assign-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); gap: 8px;
}
.assign-item:last-child { border-bottom: none; }
.assign-item-info { display: flex; flex-direction: column; gap: 2px; }
.assign-plate { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; }
.assign-email { font-size: 12px; color: rgba(255,255,255,0.4); }
.assign-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ================================
   REFERRAL STATS
   ================================ */

.referral-stats { display: flex; gap: 12px; margin-bottom: 16px; }

.referral-stat {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 8px; text-align: center;
}

.referral-stat-value { display: block; font-size: 24px; font-weight: 600; color: #a78bfa; line-height: 1.2; }
.referral-stat-label { display: block; font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 4px; line-height: 1.3; }

.share-btn {
  width: 100%; padding: 12px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 10px; color: #a78bfa;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.share-btn:hover { background: rgba(139,92,246,0.22); }

/* ================================
   BADGE WARNING + DOC EXPIRY + UPLOAD PRO
   ================================ */

.badge--warning { background: rgba(245,158,11,0.15); color: #f59e0b; }
.doc-expiry { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 1px; }
.upload-status--pro { color: #a78bfa; }

/* ================================
   MENU TRIGGER
   ================================ */

.menu-trigger {
  background: transparent; border: none; width: auto; padding: 8px;
  cursor: pointer; display: flex; flex-direction: column; gap: 5px; align-items: center;
}
.menu-trigger span { display: block; width: 20px; height: 2px; background: rgba(255,255,255,0.6); border-radius: 2px; transition: background 0.2s; }
.menu-trigger:hover span { background: white; }

/* ================================
   MENÚ LATERAL
   ================================ */

.side-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; opacity: 0; transition: opacity 0.25s; }
.side-menu-overlay.open { display: block; opacity: 1; }

.side-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: 280px; max-width: 85vw;
  background: #0f172a; border-left: 1px solid #1e293b; z-index: 400;
  transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.side-menu.open { transform: translateX(0); }

.side-menu-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 16px; border-bottom: 1px solid #1e293b; }
.side-menu-logo { font-size: 18px; font-weight: 600; color: white; }
.side-menu-close { background: transparent; border: none; color: rgba(255,255,255,0.4); font-size: 16px; width: auto; padding: 4px 8px; cursor: pointer; }
.side-menu-close:hover { color: white; background: transparent; }

.side-menu-user { padding: 24px 20px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.side-menu-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(139,92,246,0.25); border: 1px solid rgba(139,92,246,0.4);
  color: #a78bfa; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}

.side-menu-email { font-size: 13px; color: rgba(255,255,255,0.7); word-break: break-all; }
.side-menu-plan { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; margin-top: 4px; }
.side-menu-plan--pro { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.35); color: #a78bfa; }
.side-menu-plan--free { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.35); }

.side-menu-upgrade {
  margin: 4px 20px 16px; display: block; padding: 11px 16px;
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.35);
  border-radius: 10px; color: #a78bfa; font-size: 13px; font-weight: 600;
  text-decoration: none; text-align: center; transition: background 0.2s, border-color 0.2s;
}
.side-menu-upgrade:hover { background: rgba(139,92,246,0.22); border-color: rgba(139,92,246,0.6); }

.side-menu-divider { height: 1px; background: #1e293b; margin: 4px 0; }
.side-menu-section { padding: 12px 12px 8px; }

.side-menu-label { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; color: rgba(255,255,255,0.25); text-transform: uppercase; padding: 0 8px; margin-bottom: 6px; }

.side-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  background: transparent; border: none; border-radius: 8px;
  color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 400;
  text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.side-menu-item:hover { background: rgba(255,255,255,0.05); color: white; }
.side-menu-item--danger { color: rgba(239,68,68,0.6); }
.side-menu-item--danger:hover { background: rgba(239,68,68,0.08); color: #ef4444; }
.side-menu-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.side-menu-footer { margin-top: auto; padding: 16px 20px; display: flex; gap: 16px; border-top: 1px solid #1e293b; }
.side-menu-footer-link { font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; }
.side-menu-footer-link:hover { color: rgba(255,255,255,0.5); }

/* ================================
   PRO WALL
   ================================ */

.pro-wall-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
.pro-wall-box { background: #0f172a; border: 1px solid rgba(139,92,246,0.35); border-radius: 16px; padding: 32px 28px; max-width: 340px; width: 100%; text-align: center; box-shadow: 0 0 40px rgba(139,92,246,0.15); }
.pro-wall-badge { display: inline-block; background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.4); color: #a78bfa; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; letter-spacing: 1px; }
.pro-wall-msg { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 24px; }
.pro-wall-cta { display: block; width: 100%; padding: 13px; background: #7c3aed; color: white; font-weight: 600; font-size: 14px; border-radius: 10px; text-decoration: none; margin-bottom: 10px; transition: background 0.2s; }
.pro-wall-cta:hover { background: #6d28d9; }
.pro-wall-close { background: transparent; border: none; color: rgba(255,255,255,0.3); font-size: 13px; font-weight: 400; cursor: pointer; padding: 8px; width: 100%; }
.pro-wall-close:hover { color: rgba(255,255,255,0.6); background: transparent; }

/* ================================
   OFFLINE
   ================================ */

.offline-sync-btn { display: block; width: 100%; margin-bottom: 12px; padding: 10px 16px; background: transparent; border: 1px solid rgba(99,179,237,0.4); border-radius: 8px; color: #63b3ed; font-size: 13px; cursor: pointer; text-align: center; transition: background 0.2s, border-color 0.2s; }
.offline-sync-btn:hover:not(:disabled) { background: rgba(99,179,237,0.08); border-color: rgba(99,179,237,0.7); }
.offline-sync-btn:disabled { cursor: default; }
.offline-progress-bar-track { height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.offline-progress-bar-fill  { height: 100%; width: 0%; background: #63b3ed; border-radius: 4px; transition: width 0.3s ease; }
.offline-progress-label     { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.offline-notice             { font-size: 12px; color: #f59e0b; opacity: 0.85; margin-bottom: 12px; }


/* ================================
   HEADER ACTIONS + ALERT BELL
   ================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-bell-btn {
  position: relative;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #ef4444;
  font-size: 14px;
  padding: 6px 12px;
  cursor: pointer;
  width: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.alert-bell-btn:hover {
  background: rgba(239, 68, 68, 0.18);
}

.alert-badge {
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

.alert-badge--critical {
  background: #ef4444;
  animation: pulse 2s infinite;
}

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


/* ================================
   MODAL ALERTAS
   ================================ */

.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.alert-icon { font-size: 16px; flex-shrink: 0; }

.alert-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-title   { font-size: 14px; font-weight: 500; }
.alert-vehicle { font-size: 12px; color: rgba(255,255,255,0.35); }

.alert-item--critical .alert-title { color: #ef4444; }
.alert-item--warning  .alert-title { color: #f59e0b; }
.alert-item--info     .alert-title { color: #63b3ed; }

/* Alert push to Pro */
.alert-push {
  font-size: 11px;
  color: #a78bfa;
  margin-top: 3px;
  display: block;
}

.alert-pro-banner {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.alert-pro-link {
  display: inline-block;
  margin-top: 8px;
  color: #a78bfa;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.alert-pro-link:hover { text-decoration: underline; }




/* ================================
   VIEWER TAG (vehículo asignado)
   ================================ */

.viewer-tag {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; padding: 2px 7px;
  margin-left: 8px; vertical-align: middle; letter-spacing: 0.4px;
}

/* ================================
   BOTÓN ASIGNAR EN CARD
   ================================ */

.assign-btn {
  padding: 10px 12px; border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(99,179,237,0.3);
  color: #63b3ed; font-size: 14px; width: auto;
  cursor: pointer; transition: all 0.2s;
}

.assign-btn:hover { background: rgba(99,179,237,0.08); border-color: rgba(99,179,237,0.6); }

/* ================================
   LINK BOX
   ================================ */

.link-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 12px; margin: 12px 0 4px;
}

.link-box span {
  flex: 1; font-size: 12px; color: rgba(255,255,255,0.5);
  word-break: break-all; line-height: 1.4;
}

.copy-btn {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; width: auto;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.2s;
}

.copy-btn:hover { background: rgba(34,197,94,0.2); }

/* ================================
   MODAL DESC / LABELS
   ================================ */

.modal-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 4px; }

.modal-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 8px;
}

/* ================================
   INVITE ITEMS
   ================================ */

.invite-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px;
}
.invite-item:last-child { border-bottom: none; }
.invite-date { color: rgba(255,255,255,0.3); font-size: 12px; }
.invite-invitee { color: rgba(255,255,255,0.5); font-size: 12px; margin-left: auto; }

.invite-status-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.invite-status--accepted { background: rgba(34,197,94,0.12); color: #22c55e; }
.invite-status--pending  { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.invite-status--rejected { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ================================
   ASSIGN FORM + ITEMS
   ================================ */

.assign-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.assign-form select, .assign-form input { margin-bottom: 0; }

.assign-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); gap: 8px;
}
.assign-item:last-child { border-bottom: none; }
.assign-item-info { display: flex; flex-direction: column; gap: 2px; }
.assign-plate { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; }
.assign-email { font-size: 12px; color: rgba(255,255,255,0.4); }
.assign-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ================================
   REFERRAL STATS
   ================================ */

.referral-stats { display: flex; gap: 12px; margin-bottom: 16px; }

.referral-stat {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 8px; text-align: center;
}

.referral-stat-value { display: block; font-size: 24px; font-weight: 600; color: #a78bfa; line-height: 1.2; }
.referral-stat-label { display: block; font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 4px; line-height: 1.3; }

.share-btn {
  width: 100%; padding: 12px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 10px; color: #a78bfa;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.share-btn:hover { background: rgba(139,92,246,0.22); }

/* ================================
   BADGE WARNING + DOC EXPIRY + UPLOAD PRO
   ================================ */

.badge--warning { background: rgba(245,158,11,0.15); color: #f59e0b; }
.doc-expiry { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 1px; }
.upload-status--pro { color: #a78bfa; }

/* ================================
   MENU TRIGGER
   ================================ */

.menu-trigger {
  background: transparent; border: none; width: auto; padding: 8px;
  cursor: pointer; display: flex; flex-direction: column; gap: 5px; align-items: center;
}
.menu-trigger span { display: block; width: 20px; height: 2px; background: rgba(255,255,255,0.6); border-radius: 2px; transition: background 0.2s; }
.menu-trigger:hover span { background: white; }

/* ================================
   MENÚ LATERAL
   ================================ */

.side-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; opacity: 0; transition: opacity 0.25s; }
.side-menu-overlay.open { display: block; opacity: 1; }

.side-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: 280px; max-width: 85vw;
  background: #0f172a; border-left: 1px solid #1e293b; z-index: 400;
  transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.side-menu.open { transform: translateX(0); }

.side-menu-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 16px; border-bottom: 1px solid #1e293b; }
.side-menu-logo { font-size: 18px; font-weight: 600; color: white; }
.side-menu-close { background: transparent; border: none; color: rgba(255,255,255,0.4); font-size: 16px; width: auto; padding: 4px 8px; cursor: pointer; }
.side-menu-close:hover { color: white; background: transparent; }

.side-menu-user { padding: 24px 20px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.side-menu-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(139,92,246,0.25); border: 1px solid rgba(139,92,246,0.4);
  color: #a78bfa; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}

.side-menu-email { font-size: 13px; color: rgba(255,255,255,0.7); word-break: break-all; }
.side-menu-plan { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; margin-top: 4px; }
.side-menu-plan--pro { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.35); color: #a78bfa; }
.side-menu-plan--free { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.35); }

.side-menu-upgrade {
  margin: 4px 20px 16px; display: block; padding: 11px 16px;
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.35);
  border-radius: 10px; color: #a78bfa; font-size: 13px; font-weight: 600;
  text-decoration: none; text-align: center; transition: background 0.2s, border-color 0.2s;
}
.side-menu-upgrade:hover { background: rgba(139,92,246,0.22); border-color: rgba(139,92,246,0.6); }

.side-menu-divider { height: 1px; background: #1e293b; margin: 4px 0; }
.side-menu-section { padding: 12px 12px 8px; }

.side-menu-label { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; color: rgba(255,255,255,0.25); text-transform: uppercase; padding: 0 8px; margin-bottom: 6px; }

.side-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  background: transparent; border: none; border-radius: 8px;
  color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 400;
  text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.side-menu-item:hover { background: rgba(255,255,255,0.05); color: white; }
.side-menu-item--danger { color: rgba(239,68,68,0.6); }
.side-menu-item--danger:hover { background: rgba(239,68,68,0.08); color: #ef4444; }
.side-menu-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.side-menu-footer { margin-top: auto; padding: 16px 20px; display: flex; gap: 16px; border-top: 1px solid #1e293b; }
.side-menu-footer-link { font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; }
.side-menu-footer-link:hover { color: rgba(255,255,255,0.5); }

/* ================================
   PRO WALL
   ================================ */

.pro-wall-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
.pro-wall-box { background: #0f172a; border: 1px solid rgba(139,92,246,0.35); border-radius: 16px; padding: 32px 28px; max-width: 340px; width: 100%; text-align: center; box-shadow: 0 0 40px rgba(139,92,246,0.15); }
.pro-wall-badge { display: inline-block; background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.4); color: #a78bfa; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; letter-spacing: 1px; }
.pro-wall-msg { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 24px; }
.pro-wall-cta { display: block; width: 100%; padding: 13px; background: #7c3aed; color: white; font-weight: 600; font-size: 14px; border-radius: 10px; text-decoration: none; margin-bottom: 10px; transition: background 0.2s; }
.pro-wall-cta:hover { background: #6d28d9; }
.pro-wall-close { background: transparent; border: none; color: rgba(255,255,255,0.3); font-size: 13px; font-weight: 400; cursor: pointer; padding: 8px; width: 100%; }
.pro-wall-close:hover { color: rgba(255,255,255,0.6); background: transparent; }

/* ================================
   OFFLINE
   ================================ */

.offline-sync-btn { display: block; width: 100%; margin-bottom: 12px; padding: 10px 16px; background: transparent; border: 1px solid rgba(99,179,237,0.4); border-radius: 8px; color: #63b3ed; font-size: 13px; cursor: pointer; text-align: center; transition: background 0.2s, border-color 0.2s; }
.offline-sync-btn:hover:not(:disabled) { background: rgba(99,179,237,0.08); border-color: rgba(99,179,237,0.7); }
.offline-sync-btn:disabled { cursor: default; }
.offline-progress-bar-track { height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.offline-progress-bar-fill  { height: 100%; width: 0%; background: #63b3ed; border-radius: 4px; transition: width 0.3s ease; }
.offline-progress-label     { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.offline-notice             { font-size: 12px; color: #f59e0b; opacity: 0.85; margin-bottom: 12px; }


/* ================================
   HEADER ACTIONS + ALERT BELL
   ================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-bell-btn {
  position: relative;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #ef4444;
  font-size: 14px;
  padding: 6px 12px;
  cursor: pointer;
  width: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.alert-bell-btn:hover {
  background: rgba(239, 68, 68, 0.18);
}

.alert-badge {
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

.alert-badge--critical {
  background: #ef4444;
  animation: pulse 2s infinite;
}

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


/* ================================
   MODAL ALERTAS
   ================================ */

.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.alert-icon { font-size: 16px; flex-shrink: 0; }

.alert-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-title   { font-size: 14px; font-weight: 500; }
.alert-vehicle { font-size: 12px; color: rgba(255,255,255,0.35); }

.alert-item--critical .alert-title { color: #ef4444; }
.alert-item--warning  .alert-title { color: #f59e0b; }
.alert-item--info     .alert-title { color: #63b3ed; }

/* Alert push to Pro */
.alert-push {
  font-size: 11px;
  color: #a78bfa;
  margin-top: 3px;
  display: block;
}

.alert-pro-banner {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.alert-pro-link {
  display: inline-block;
  margin-top: 8px;
  color: #a78bfa;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.alert-pro-link:hover { text-decoration: underline; }

/* ================================
   BADGE CON FECHA
   ================================ */

.badge-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.badge-date {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}

/* ── VEHÍCULO BLOQUEADO (Free downgrade) ── */
.vehicle-blocked-banner {
  display: flex; align-items: center; gap: 14px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 12px; padding: 16px;
  margin: 8px 0;
}
.vb-lock { font-size: 24px; flex-shrink: 0; }
.vb-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.vb-title { font-size: 14px; font-weight: 700; color: #f0a500; }
.vb-desc { font-size: 12px; color: rgba(255,255,255,0.45); }
.vb-cta {
  background: #f0a500; color: #08090d;
  font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 8px;
  text-decoration: none; white-space: nowrap;
}

/* ── COMPLIANCE WIDGET ── */
.compliance-widget {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.compliance-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.compliance-label {
  font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 500;
}
.compliance-score {
  font-size: 14px; font-weight: 800; letter-spacing: -0.5px;
}
.compliance-bar-bg {
  background: rgba(255,255,255,0.07);
  border-radius: 99px; height: 5px;
  margin-bottom: 6px; overflow: hidden;
}
.compliance-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.6s ease;
}
.compliance-level {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── RISK WIDGET ── */
.risk-widget {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.risk-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.risk-label {
  font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 500;
}
.risk-level {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.risk-factor {
  font-size: 12px; color: rgba(255,255,255,0.55);
  padding: 4px 0; line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.risk-factor:first-of-type { border-top: none; }
