/* ============================================================
   RECIFE QRCODE v2.1 — CSS
   Dashboard moderne : gradients, animations, confetti
   ============================================================ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Inter:wght@500;600;700;800&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* Charte Recife */
  --rq-primary: #2C2B71;
  --rq-primary-light: #3d3c8a;
  --rq-primary-dark: #1e1d52;
  --rq-turquoise: #63C0BF;
  --rq-violet: #9765A7;
  --rq-blue: #3A95C4;
  --rq-blue-dark: #033878;
  --rq-yellow: #F9B44F;
  --rq-green: #10B981;
  --rq-green-light: #d1fae5;
  --rq-rose: #C51D7C;
  --rq-orange: #D85600;

  /* Gradients */
  --rq-gradient-primary: linear-gradient(135deg, #2C2B71 0%, #3d3c8a 50%, #4a3f9f 100%);
  --rq-gradient-accent: linear-gradient(135deg, #63C0BF 0%, #3A95C4 100%);
  --rq-gradient-warm: linear-gradient(135deg, #F9B44F 0%, #D85600 100%);
  --rq-gradient-violet: linear-gradient(135deg, #9765A7 0%, #2C2B71 100%);
  --rq-gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --rq-gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --rq-gradient-hero: linear-gradient(135deg, #2C2B71 0%, #3A95C4 50%, #63C0BF 100%);

  /* Neutral */
  --rq-text: #1e293b;
  --rq-text-secondary: #64748b;
  --rq-text-muted: #94a3b8;
  --rq-bg: #f8fafc;
  --rq-bg-white: #ffffff;
  --rq-bg-card: #ffffff;
  --rq-border: #e2e8f0;
  --rq-border-light: #f1f5f9;

  /* Semantic */
  --rq-success: #10B981;
  --rq-error: #ef4444;
  --rq-warning: #f59e0b;
  --rq-info: #3A95C4;

  /* Shadows */
  --rq-shadow-sm: 0 0.0625rem 0.125rem rgba(0,0,0,0.05);
  --rq-shadow: 0 0.0625rem 0.1875rem rgba(0,0,0,0.1), 0 0.0625rem 0.125rem rgba(0,0,0,0.06);
  --rq-shadow-md: 0 0.25rem 0.375rem -0.0625rem rgba(0,0,0,0.1), 0 0.125rem 0.25rem -0.0625rem rgba(0,0,0,0.06);
  --rq-shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0,0,0,0.1), 0 0.25rem 0.375rem -0.125rem rgba(0,0,0,0.05);
  --rq-shadow-glow: 0 0 1.5rem rgba(44,43,113,0.15);

  /* Radius */
  --rq-radius-sm: 0.375rem;
  --rq-radius: 0.5rem;
  --rq-radius-lg: 0.75rem;
  --rq-radius-xl: 1rem;

  /* Transitions */
  --rq-transition: 0.2s ease;
  --rq-transition-slow: 0.3s ease;

  /* Sidebar */
  --rq-sidebar-width: 16rem;
  --rq-topbar-height: 3.75rem;

  /* Typography */
  --rq-font: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --rq-font-heading: 'Inter', 'Be Vietnam Pro', sans-serif;
}

/* ── ELEMENTOR CONFLICT FIX ── */
.rq-app .rq-tab.active,
.rq-app .rq-btn,
.rq-app .rq-nav-item,
.rq-app .rq-status,
.rq-app a,
.rq-app button {
  color: inherit;
}

.rq-app .elementor-widget-container,
.rq-app .elementor-element {
  all: unset;
  display: contents;
}

/* Override Elementor forced colors inside our app */
.rq-app button:not(.rq-btn):not(.rq-nav-item):not(.rq-tab):not(.rq-hamburger):not(.rq-sidebar-toggle):not(.rq-modal-close):not(.rq-qr-pin):not(.rq-mobile-cta) {
  color: inherit;
  background: inherit;
}

/* ── RESET & BASE ── */
.rq-app *,
.rq-app *::before,
.rq-app *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.rq-app {
  display: flex;
  min-height: 80vh;
  font-family: var(--rq-font);
  font-size: 0.875rem;
  color: var(--rq-text);
  background: var(--rq-bg);
  border-radius: var(--rq-radius-xl);
  overflow: hidden;
  position: relative;
  line-height: 1.5;
  border: 1px solid var(--rq-border);
}

.rq-app a { color: var(--rq-blue); text-decoration: none; }
.rq-app a:hover { color: var(--rq-primary); }

/* ── SIDEBAR — GRADIENT ── */
.rq-sidebar {
  width: var(--rq-sidebar-width);
  min-width: var(--rq-sidebar-width);
  background: var(--rq-gradient-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform var(--rq-transition-slow), width var(--rq-transition-slow);
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.rq-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.rq-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.rq-brand-icon {
  width: 2rem;
  height: 2rem;
  background: var(--rq-gradient-accent);
  border-radius: var(--rq-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99,192,191,0.3);
}

.rq-brand-text {
  font-family: var(--rq-font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.rq-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7) !important;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

.rq-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.rq-avatar {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--rq-gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(99,192,191,0.3);
}

.rq-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rq-user-name {
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rq-user-role {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.6);
}

/* Navigation */
.rq-nav {
  list-style: none;
  padding: 0.75rem 0.5rem;
  flex: 1;
}

.rq-nav li { margin-bottom: 0.125rem; }

.rq-nav-divider {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0 0.75rem;
}

.rq-nav-section-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}

.rq-nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--rq-radius);
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: var(--rq-transition);
  cursor: pointer;
  text-decoration: none !important;
}

.rq-nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff !important;
}

.rq-nav-item.active {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--rq-turquoise);
}

.rq-nav-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.rq-badge {
  background: var(--rq-error);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  margin-left: auto;
  min-width: 1.25rem;
  text-align: center;
  animation: rq-pulse 2s infinite;
}

@keyframes rq-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.rq-sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.rq-version {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
}

/* ── MAIN CONTENT ── */
.rq-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--rq-gradient-surface);
  border-left: 1px solid var(--rq-border);
}

.rq-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  height: var(--rq-topbar-height);
  background: var(--rq-bg-white);
  border-bottom: 1px solid var(--rq-border);
  flex-shrink: 0;
}

.rq-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--rq-text) !important;
  padding: 0.25rem;
}

.rq-page-title {
  font-family: var(--rq-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rq-primary);
  flex: 1;
  margin: 0;
}

.rq-topbar-actions {
  display: flex;
  gap: 0.5rem;
}

/* Mobile CTA — floating button */
.rq-mobile-cta {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--rq-gradient-hero);
  color: #fff !important;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(44,43,113,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rq-float 3s ease-in-out infinite;
}

.rq-mobile-cta:hover,
.rq-mobile-cta:focus {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(44,43,113,0.5);
}

@keyframes rq-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.rq-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

/* ── VIEW TRANSITIONS ── */
.rq-view-enter {
  animation: rq-view-in 0.3s ease forwards;
}

@keyframes rq-view-in {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── LOADING ── */
.rq-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--rq-text-muted);
}

.rq-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--rq-border);
  border-top-color: var(--rq-primary);
  border-radius: 50%;
  animation: rq-spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes rq-spin {
  to { transform: rotate(360deg); }
}

/* Skeleton loader */
.rq-skeleton {
  background: linear-gradient(90deg, var(--rq-border-light) 25%, #e8ecf1 50%, var(--rq-border-light) 75%);
  background-size: 200% 100%;
  animation: rq-shimmer 1.5s infinite;
  border-radius: var(--rq-radius);
}

@keyframes rq-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.rq-skeleton-card {
  height: 12rem;
  border-radius: var(--rq-radius-lg);
}

.rq-skeleton-line {
  height: 0.875rem;
  margin-bottom: 0.5rem;
  width: 80%;
}

.rq-skeleton-line.short { width: 40%; }

/* ── CONFETTI CANVAS ── */
.rq-confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── BUTTONS — GRADIENT ACCENTS + AAA CONTRAST ── */
.rq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--rq-radius);
  font-family: var(--rq-font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--rq-transition);
  white-space: nowrap;
  line-height: 1.4;
  outline-offset: 2px;
}

.rq-btn:focus-visible {
  outline: 2px solid var(--rq-primary);
  outline-offset: 2px;
}

.rq-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rq-btn-primary {
  background: var(--rq-primary);
  color: #fff !important;
}
.rq-btn-primary:hover:not(:disabled) { background: var(--rq-primary-light); box-shadow: 0 2px 8px rgba(44,43,113,0.3); }
.rq-btn-primary:focus:not(:disabled) { background: var(--rq-primary-dark); color: #fff !important; }

.rq-btn-success {
  background: var(--rq-success);
  color: #fff !important;
}
.rq-btn-success:hover:not(:disabled) { background: #059669; box-shadow: 0 2px 8px rgba(16,185,129,0.3); color: #fff !important; }
.rq-btn-success:focus:not(:disabled) { background: #047857; color: #fff !important; }

.rq-btn-danger {
  background: var(--rq-error);
  color: #fff !important;
}
.rq-btn-danger:hover:not(:disabled) { background: #dc2626; box-shadow: 0 2px 8px rgba(239,68,68,0.3); color: #fff !important; }
.rq-btn-danger:focus:not(:disabled) { background: #b91c1c; color: #fff !important; }

.rq-btn-warning {
  background: var(--rq-warning);
  color: #1e293b !important;
}
.rq-btn-warning:hover:not(:disabled) { background: #d97706; color: #1e293b !important; }

.rq-btn-ghost {
  background: transparent;
  color: var(--rq-text-secondary) !important;
  border: 1px solid var(--rq-border);
}
.rq-btn-ghost:hover:not(:disabled) { background: var(--rq-bg); border-color: var(--rq-text-muted); color: var(--rq-text) !important; }
.rq-btn-ghost:focus:not(:disabled) { background: var(--rq-bg); border-color: var(--rq-primary); color: var(--rq-text) !important; }

.rq-btn-gradient {
  background: var(--rq-gradient-hero);
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(44,43,113,0.25);
}
.rq-btn-gradient:hover:not(:disabled) { box-shadow: 0 4px 20px rgba(44,43,113,0.4); transform: translateY(-1px); }

.rq-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.rq-btn-lg {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.rq-btn-icon {
  padding: 0.375rem;
  min-width: 2rem;
  min-height: 2rem;
}

.rq-btn-block { width: 100%; }

/* ── CARDS ── */
.rq-card {
  background: var(--rq-bg-card);
  border-radius: var(--rq-radius-lg);
  border: 1px solid var(--rq-border);
  padding: 1.25rem;
  transition: all var(--rq-transition);
}

.rq-card:hover {
  box-shadow: var(--rq-shadow-md);
}

.rq-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rq-card-title {
  font-family: var(--rq-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rq-text);
}

/* ── STAT CARDS — GRADIENT ICONS ── */
.rq-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rq-stat-card {
  background: var(--rq-bg-card);
  border-radius: var(--rq-radius-lg);
  border: 1px solid var(--rq-border);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--rq-transition);
  animation: rq-view-in 0.4s ease forwards;
  animation-delay: calc(var(--rq-stagger, 0) * 0.08s);
  opacity: 0;
}

.rq-stat-card:hover { box-shadow: var(--rq-shadow-md); transform: translateY(-0.125rem); }

.rq-stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--rq-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.rq-stat-icon.blue    { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--rq-blue); }
.rq-stat-icon.green   { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: var(--rq-green); }
.rq-stat-icon.violet  { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: var(--rq-violet); }
.rq-stat-icon.yellow  { background: linear-gradient(135deg, #fef3c7, #fde68a); color: var(--rq-orange); }
.rq-stat-icon.primary { background: linear-gradient(135deg, #e0e0f0, #c7c7e0); color: var(--rq-primary); }

.rq-stat-info { min-width: 0; }

.rq-stat-label {
  font-size: 0.75rem;
  color: var(--rq-text-secondary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.rq-stat-value {
  font-family: var(--rq-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rq-text);
  line-height: 1.2;
}

/* ── GRID LAYOUTS ── */
.rq-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rq-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

/* ── FORMS ── */
.rq-form-group {
  margin-bottom: 1rem;
}

.rq-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rq-text);
  margin-bottom: 0.375rem;
}

.rq-label-hint {
  font-weight: 400;
  color: var(--rq-text-muted);
  font-size: 0.75rem;
}

.rq-input,
.rq-select,
.rq-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius);
  font-family: var(--rq-font);
  font-size: 0.8125rem;
  color: var(--rq-text);
  background: var(--rq-bg-white);
  transition: var(--rq-transition);
  line-height: 1.5;
}

.rq-input:focus,
.rq-select:focus,
.rq-textarea:focus {
  outline: none;
  border-color: var(--rq-primary);
  box-shadow: 0 0 0 3px rgba(44,43,113,0.1);
}

.rq-input::placeholder { color: var(--rq-text-muted); }

.rq-textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.rq-input-color {
  width: 3rem;
  height: 2.25rem;
  padding: 0.125rem;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius);
  cursor: pointer;
  background: none;
}

.rq-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.rq-checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--rq-primary);
}

/* Form sections */
.rq-form-section {
  background: var(--rq-bg);
  border: 1px solid var(--rq-border-light);
  border-radius: var(--rq-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.rq-form-section-title {
  font-family: var(--rq-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rq-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── TABLE ── */
.rq-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--rq-radius-lg);
  border: 1px solid var(--rq-border);
}

.rq-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
}

.rq-table thead th {
  background: var(--rq-bg);
  color: var(--rq-text-secondary);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--rq-border);
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  cursor: pointer;
  user-select: none;
}

.rq-table thead th:hover { color: var(--rq-text); }

.rq-table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--rq-border-light);
  vertical-align: middle;
}

.rq-table tbody tr { transition: background var(--rq-transition); }
.rq-table tbody tr:hover { background: rgba(44,43,113,0.02); }
.rq-table tbody tr:last-child td { border-bottom: none; }

/* ── QR CARDS (grid mode) ── */
.rq-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}

.rq-qr-card {
  background: var(--rq-bg-card);
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-lg);
  padding: 1rem;
  transition: all var(--rq-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: rq-view-in 0.35s ease forwards;
  animation-delay: calc(var(--rq-stagger, 0) * 0.05s);
  opacity: 0;
}

.rq-qr-card:hover { box-shadow: var(--rq-shadow-md); border-color: var(--rq-primary); }

.rq-qr-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.rq-qr-name {
  font-family: var(--rq-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rq-primary);
  line-height: 1.3;
  word-break: break-word;
  flex: 1;
}

.rq-qr-pin {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  padding: 0.125rem;
  transition: var(--rq-transition);
  color: var(--rq-text-muted) !important;
  flex-shrink: 0;
}

.rq-qr-pin.pinned { color: var(--rq-yellow) !important; }
.rq-qr-pin:hover { transform: scale(1.2); }

.rq-qr-category {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: var(--rq-violet);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.rq-qr-description {
  font-size: 0.75rem;
  color: var(--rq-text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rq-qr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.rq-tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--rq-bg);
  color: var(--rq-text-secondary);
  border: 1px solid var(--rq-border);
  font-weight: 500;
}

.rq-qr-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--rq-border-light);
  margin-bottom: 0.75rem;
}

.rq-qr-preview-img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--rq-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rq-qr-preview-img canvas,
.rq-qr-preview-img svg,
.rq-qr-preview-img img {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.rq-qr-meta {
  font-size: 0.75rem;
  color: var(--rq-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.rq-qr-meta strong { color: var(--rq-text); font-weight: 600; }

.rq-qr-actions {
  display: flex;
  gap: 0.375rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.rq-qr-actions .rq-btn { flex: 1; min-width: 0; font-size: 0.6875rem; padding: 0.375rem 0.5rem; }

/* Status badges */
.rq-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
}

.rq-status-approved  { background: var(--rq-green-light); color: #065f46 !important; }
.rq-status-pending   { background: #fef3c7; color: #92400e !important; }
.rq-status-rejected  { background: #fee2e2; color: #991b1b !important; }
.rq-status-inactive  { background: #f1f5f9; color: #64748b !important; }

/* ── FILTERS BAR ── */
.rq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

/* FIX: Search icon overlapping text — increased left padding */
.rq-search {
  flex: 1;
  min-width: 12rem;
  position: relative;
}

.rq-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.375rem;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius);
  font-family: var(--rq-font);
  font-size: 0.8125rem;
  background: var(--rq-bg-white);
  transition: var(--rq-transition);
  color: var(--rq-text);
}

.rq-search-input::placeholder { color: var(--rq-text-muted); }

.rq-search-input:focus {
  outline: none;
  border-color: var(--rq-primary);
  box-shadow: 0 0 0 3px rgba(44,43,113,0.1);
}

.rq-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rq-text-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

.rq-filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius);
  font-family: var(--rq-font);
  font-size: 0.75rem;
  background: var(--rq-bg-white);
  color: var(--rq-text-secondary);
  min-width: 8rem;
}

.rq-view-toggle {
  display: flex;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius);
  overflow: hidden;
}

.rq-view-toggle button {
  background: var(--rq-bg-white);
  border: none;
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--rq-text-muted) !important;
  transition: var(--rq-transition);
}

.rq-view-toggle button.active {
  background: var(--rq-primary);
  color: #fff !important;
}

.rq-view-toggle button:not(:last-child) {
  border-right: 1px solid var(--rq-border);
}

/* ── MODAL ── */
.rq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: rq-fade-in 0.2s ease;
}

.rq-modal {
  background: var(--rq-bg-white);
  border-radius: var(--rq-radius-xl);
  width: 100%;
  max-width: 40rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--rq-shadow-lg);
  animation: rq-slide-up 0.25s ease;
}

.rq-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rq-border);
  flex-shrink: 0;
}

.rq-modal-title {
  font-family: var(--rq-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rq-primary);
  margin: 0;
}

.rq-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--rq-text-muted) !important;
  padding: 0.25rem;
  border-radius: var(--rq-radius-sm);
  transition: var(--rq-transition);
}

.rq-modal-close:hover { background: var(--rq-bg); color: var(--rq-text) !important; }

.rq-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.rq-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--rq-border);
  flex-shrink: 0;
}

@keyframes rq-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rq-slide-up { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }

/* ── TOAST ── */
.rq-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.rq-toast {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--rq-radius);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--rq-shadow-lg);
  animation: rq-toast-in 0.3s ease;
  pointer-events: auto;
  max-width: 22rem;
}

.rq-toast.success { background: var(--rq-gradient-success); }
.rq-toast.error   { background: var(--rq-error); }
.rq-toast.info    { background: var(--rq-gradient-accent); }
.rq-toast.warning { background: var(--rq-gradient-warm); }

.rq-toast.removing { animation: rq-toast-out 0.3s ease forwards; }

@keyframes rq-toast-in { from { opacity: 0; transform: translateX(2rem); } to { opacity: 1; transform: translateX(0); } }
@keyframes rq-toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(2rem); } }

/* ── CHART CONTAINER ── */
.rq-chart-container {
  position: relative;
  width: 100%;
  height: 15rem;
}

.rq-chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ── EMPTY STATE ── */
.rq-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--rq-text-muted);
}

.rq-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.rq-empty-title {
  font-family: var(--rq-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rq-text-secondary);
  margin-bottom: 0.5rem;
}

.rq-empty-text {
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

/* ── PENDING CARD ── */
.rq-pending-card {
  background: var(--rq-bg-card);
  border: 1px solid var(--rq-border);
  border-left: 4px solid var(--rq-warning);
  border-radius: var(--rq-radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: all var(--rq-transition);
}

.rq-pending-card:hover { box-shadow: var(--rq-shadow-md); }

.rq-pending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.rq-pending-name {
  font-weight: 700;
  color: var(--rq-text);
  font-size: 0.875rem;
}

.rq-pending-meta {
  font-size: 0.75rem;
  color: var(--rq-text-secondary);
  margin-bottom: 0.75rem;
}

.rq-pending-actions {
  display: flex;
  gap: 0.5rem;
}

.rq-reject-reason {
  margin-top: 0.5rem;
}

/* ── BULK IMPORT ── */
.rq-dropzone {
  border: 2px dashed var(--rq-border);
  border-radius: var(--rq-radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--rq-transition);
  background: var(--rq-bg);
}

.rq-dropzone:hover,
.rq-dropzone.dragover {
  border-color: var(--rq-primary);
  background: rgba(44,43,113,0.03);
  transform: scale(1.01);
}

.rq-dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.rq-dropzone-text {
  font-size: 0.875rem;
  color: var(--rq-text-secondary);
  margin-bottom: 0.25rem;
}

.rq-dropzone-hint {
  font-size: 0.75rem;
  color: var(--rq-text-muted);
}

/* ── TABS (for scan stats) ── */
.rq-tabs {
  display: flex;
  border-bottom: 2px solid var(--rq-border);
  margin-bottom: 1rem;
  gap: 0;
}

.rq-tab {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rq-text-muted) !important;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--rq-transition);
}

.rq-tab:hover { color: var(--rq-text) !important; }

.rq-tab.active {
  color: var(--rq-primary) !important;
  border-bottom-color: var(--rq-primary);
  font-weight: 600;
}

/* ── PROGRESS BAR ── */
.rq-progress {
  width: 100%;
  height: 0.375rem;
  background: var(--rq-border-light);
  border-radius: 999px;
  overflow: hidden;
}

.rq-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
  background: var(--rq-gradient-primary);
}

/* ── QR CODE PREVIEW (full) ── */
.rq-qr-full-preview {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  background: var(--rq-bg);
  border-radius: var(--rq-radius-lg);
  margin-bottom: 1rem;
}

.rq-qr-full-preview > div {
  max-width: 12.5rem;
  max-height: 12.5rem;
}

/* Download buttons row */
.rq-download-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

/* ── INFO PAIRS ── */
.rq-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.rq-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.rq-info-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rq-text-muted);
}

.rq-info-value {
  font-size: 0.8125rem;
  color: var(--rq-text);
  word-break: break-word;
}

.rq-info-value a { color: var(--rq-blue); }

/* ── SEPARATOR ── */
.rq-separator {
  border: none;
  border-top: 1px solid var(--rq-border-light);
  margin: 1rem 0;
}

/* ── TIMELINE ── */
.rq-timeline {
  padding-left: 1.5rem;
  border-left: 2px solid var(--rq-border);
}

.rq-timeline-item {
  position: relative;
  padding-bottom: 1rem;
  padding-left: 1rem;
}

.rq-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rq-primary);
  border: 2px solid var(--rq-bg-white);
}

.rq-timeline-date {
  font-size: 0.6875rem;
  color: var(--rq-text-muted);
}

.rq-timeline-text {
  font-size: 0.8125rem;
  color: var(--rq-text);
}

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 64rem) {
  .rq-grid-2 { grid-template-columns: 1fr; }
  .rq-qr-grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
}

/* Mobile */
@media (max-width: 48rem) {
  .rq-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    z-index: 1000;
    box-shadow: var(--rq-shadow-lg);
  }

  .rq-sidebar.open { transform: translateX(0); }
  .rq-sidebar-toggle { display: block; }
  .rq-hamburger { display: block; }
  .rq-mobile-cta { display: flex; align-items: center; justify-content: center; }

  .rq-main { width: 100%; border-left: none; }
  .rq-content { padding: 1rem; }
  .rq-topbar { padding: 0 1rem; }

  .rq-stats-grid { grid-template-columns: repeat(2, 1fr); }

  .rq-stat-card {
    padding: 0.875rem;
    gap: 0.625rem;
  }

  .rq-stat-value { font-size: 1.25rem; }
  .rq-stat-icon { width: 2.25rem; height: 2.25rem; font-size: 1rem; }

  .rq-qr-grid { grid-template-columns: 1fr; }

  .rq-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .rq-search { min-width: 100%; }

  .rq-modal {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--rq-radius-lg);
  }

  .rq-modal-body { padding: 1rem; }
  .rq-chart-container { height: 12rem; }

  /* Reduce animations on mobile for performance */
  .rq-stat-card,
  .rq-qr-card {
    animation: none;
    opacity: 1;
  }
}

/* Small mobile */
@media (max-width: 30rem) {
  .rq-stats-grid { grid-template-columns: 1fr; }

  .rq-stat-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .rq-topbar-actions { display: none; }
  .rq-qr-actions { flex-direction: column; }
  .rq-qr-actions .rq-btn { flex: none; }
}

/* ── DARK OVERLAY FOR MOBILE SIDEBAR ── */
.rq-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.rq-sidebar-backdrop.visible { display: block; }

/* ── UTILITIES ── */
.rq-text-center { text-align: center; }
.rq-text-right  { text-align: right; }
.rq-text-muted  { color: var(--rq-text-muted) !important; }
.rq-text-sm     { font-size: 0.75rem; }
.rq-text-xs     { font-size: 0.6875rem; }
.rq-font-mono   { font-family: 'SF Mono', 'Fira Code', monospace; }
.rq-mt-1 { margin-top: 0.5rem; }
.rq-mt-2 { margin-top: 1rem; }
.rq-mb-1 { margin-bottom: 0.5rem; }
.rq-mb-2 { margin-bottom: 1rem; }
.rq-gap-1 { gap: 0.5rem; }
.rq-flex { display: flex; }
.rq-flex-wrap { flex-wrap: wrap; }
.rq-items-center { align-items: center; }
.rq-justify-between { justify-content: space-between; }
.rq-hidden { display: none !important; }
.rq-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ══════════════════════════════════════════
   GUIDE D'UTILISATION
   ══════════════════════════════════════════ */
.rq-guide-wrapper {
  border-radius: var(--rq-radius-xl);
  overflow: hidden;
  box-shadow: var(--rq-shadow-lg);
  border: 1px solid rgba(44, 43, 113, 0.08);
  animation: rq-guide-appear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rq-guide-appear {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero header */
.rq-guide-hero {
  background: var(--rq-gradient-hero);
  padding: 2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rq-guide-hero-shapes { pointer-events: none; }

.rq-guide-hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.rq-guide-hero-shape--1 { width: 18rem; height: 18rem; top: -6rem; right: -6rem; }
.rq-guide-hero-shape--2 { width: 12rem; height: 12rem; bottom: -4rem; left: -4rem; }

.rq-guide-hero-content { position: relative; z-index: 1; }

.rq-guide-hero-title {
  font-family: var(--rq-font-heading);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.375rem;
}

.rq-guide-hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  margin: 0;
}

/* Tabs nav */
.rq-guide-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--rq-bg);
  border-bottom: 1px solid var(--rq-border);
}

.rq-guide-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1rem 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--rq-font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rq-text-secondary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: center;
  line-height: 1.3;
}

.rq-guide-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0.25rem;
  border-radius: 0.25rem 0.25rem 0 0;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rq-guide-tab-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--rq-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.rq-guide-tab-icon--blue   { background: linear-gradient(135deg, #3A95C4, #2d7ba3); }
.rq-guide-tab-icon--violet { background: linear-gradient(135deg, #9765A7, #7d4f8c); }
.rq-guide-tab-icon--green  { background: linear-gradient(135deg, #10B981, #059669); }
.rq-guide-tab-icon--orange { background: linear-gradient(135deg, #F9B44F, #e5a03d); }

.rq-guide-tab[data-gtab="basics"]::after    { background: #3A95C4; }
.rq-guide-tab[data-gtab="basics"]:hover     { color: #1a5a7a; background: rgba(58,149,196,0.06); }
.rq-guide-tab[data-gtab="basics"]:hover .rq-guide-tab-icon { transform: scale(1.1); box-shadow: 0 0.25rem 1rem rgba(58,149,196,0.4); }
.rq-guide-tab[data-gtab="basics"].active    { color: #1a5a7a; background: var(--rq-bg-white); }
.rq-guide-tab[data-gtab="basics"].active::after { width: 70%; }

.rq-guide-tab[data-gtab="custom"]::after    { background: #9765A7; }
.rq-guide-tab[data-gtab="custom"]:hover     { color: #5d3d6c; background: rgba(151,101,167,0.06); }
.rq-guide-tab[data-gtab="custom"]:hover .rq-guide-tab-icon { transform: scale(1.1); box-shadow: 0 0.25rem 1rem rgba(151,101,167,0.4); }
.rq-guide-tab[data-gtab="custom"].active    { color: #5d3d6c; background: var(--rq-bg-white); }
.rq-guide-tab[data-gtab="custom"].active::after { width: 70%; }

.rq-guide-tab[data-gtab="download"]::after  { background: #10B981; }
.rq-guide-tab[data-gtab="download"]:hover   { color: #065f46; background: rgba(16,185,129,0.06); }
.rq-guide-tab[data-gtab="download"]:hover .rq-guide-tab-icon { transform: scale(1.1); box-shadow: 0 0.25rem 1rem rgba(16,185,129,0.4); }
.rq-guide-tab[data-gtab="download"].active  { color: #065f46; background: var(--rq-bg-white); }
.rq-guide-tab[data-gtab="download"].active::after { width: 70%; }

.rq-guide-tab[data-gtab="advanced"]::after  { background: #F9B44F; }
.rq-guide-tab[data-gtab="advanced"]:hover   { color: #8a6420; background: rgba(249,180,79,0.06); }
.rq-guide-tab[data-gtab="advanced"]:hover .rq-guide-tab-icon { transform: scale(1.1); box-shadow: 0 0.25rem 1rem rgba(249,180,79,0.4); }
.rq-guide-tab[data-gtab="advanced"].active  { color: #8a6420; background: var(--rq-bg-white); }
.rq-guide-tab[data-gtab="advanced"].active::after { width: 70%; }

/* Panels */
.rq-guide-panels {
  padding: 2rem 2.5rem 2.5rem;
  background: var(--rq-bg-white);
  transition: background 0.5s ease;
  min-height: 18rem;
}

.rq-guide-panels[data-active-panel="basics"]   { background: linear-gradient(180deg, rgba(58,149,196,0.04) 0%, #fff 100%); }
.rq-guide-panels[data-active-panel="custom"]   { background: linear-gradient(180deg, rgba(151,101,167,0.04) 0%, #fff 100%); }
.rq-guide-panels[data-active-panel="download"] { background: linear-gradient(180deg, rgba(16,185,129,0.04) 0%, #fff 100%); }
.rq-guide-panels[data-active-panel="advanced"] { background: linear-gradient(180deg, rgba(249,180,79,0.04) 0%, #fff 100%); }

.rq-guide-panel {
  display: none;
  animation: rq-guide-panel-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rq-guide-panel.active { display: block; }

@keyframes rq-guide-panel-in {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.rq-guide-panel-head {
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--rq-border-light);
}

.rq-guide-panel-head h3 {
  font-family: var(--rq-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.rq-guide-panel[data-gpanel="basics"]   .rq-guide-panel-head h3 { color: #3A95C4; }
.rq-guide-panel[data-gpanel="custom"]   .rq-guide-panel-head h3 { color: #9765A7; }
.rq-guide-panel[data-gpanel="download"] .rq-guide-panel-head h3 { color: #10B981; }
.rq-guide-panel[data-gpanel="advanced"] .rq-guide-panel-head h3 { color: #F9B44F; }

.rq-guide-panel-intro {
  font-size: 0.9375rem;
  color: var(--rq-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Accordions exclusifs */
.rq-guide-acc {
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.rq-guide-acc:hover { box-shadow: var(--rq-shadow-sm); }

.rq-guide-acc.open {
  border-color: rgba(44, 43, 113, 0.2);
  box-shadow: var(--rq-shadow-md);
}

.rq-guide-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--rq-font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rq-text);
  transition: background 0.2s ease;
}

.rq-guide-acc-trigger:hover { background: var(--rq-bg); }

.rq-guide-acc-emoji { font-size: 1.125rem; flex-shrink: 0; }

.rq-guide-acc-arrow {
  margin-left: auto;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(44, 43, 113, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  color: var(--rq-text-secondary);
}

.rq-guide-acc.open .rq-guide-acc-arrow {
  transform: rotate(180deg);
  background: var(--rq-primary);
  color: #fff;
}

.rq-guide-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rq-guide-acc.open .rq-guide-acc-body { max-height: 60rem; }

.rq-guide-acc-inner {
  padding: 0 1.25rem 1.25rem 3rem;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.75;
}

.rq-guide-acc-inner p { margin: 0 0 0.625rem 0; }
.rq-guide-acc-inner ul { margin: 0.375rem 0 0.75rem 1.25rem; padding: 0; }
.rq-guide-acc-inner ul li { margin-bottom: 0.5rem; }
.rq-guide-acc-inner ul li::marker { color: var(--rq-text-muted); }

/* Blocs info / tip / warn */
.rq-guide-tip,
.rq-guide-warn,
.rq-guide-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: var(--rq-radius-lg);
  padding: 0.875rem 1.125rem;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.rq-guide-tip {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.04));
  border-left: 0.25rem solid var(--rq-green);
  color: #065f46;
}

.rq-guide-warn {
  background: linear-gradient(135deg, rgba(249,180,79,0.12), rgba(249,180,79,0.04));
  border-left: 0.25rem solid #F9B44F;
  color: #92400e;
}

.rq-guide-info {
  background: linear-gradient(135deg, rgba(58,149,196,0.1), rgba(58,149,196,0.04));
  border-left: 0.25rem solid #3A95C4;
  color: #1a5a7a;
}

.rq-guide-info strong {
  display: block;
  font-family: var(--rq-font-heading);
  font-weight: 700;
  margin-bottom: 0.125rem;
}

/* Format cards (PNG/SVG/PDF) */
.rq-guide-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.rq-guide-format {
  background: var(--rq-bg);
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-lg);
  padding: 1.125rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rq-guide-format:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--rq-shadow-md);
  border-color: rgba(44, 43, 113, 0.2);
}

.rq-guide-format-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--rq-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin: 0 auto 0.625rem;
}

.rq-guide-format-icon--png { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.rq-guide-format-icon--svg { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.rq-guide-format-icon--pdf { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }

.rq-guide-format-name {
  font-family: var(--rq-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rq-text);
  margin-bottom: 0.25rem;
}

.rq-guide-format-full {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--rq-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.rq-guide-format-desc {
  font-size: 0.8125rem;
  color: var(--rq-text-secondary);
  line-height: 1.55;
}

.rq-guide-format-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1875rem 0.625rem;
  border-radius: 1rem;
}

.rq-guide-format-badge--png { background: rgba(58,149,196,0.12); color: #1a5a7a; }
.rq-guide-format-badge--svg { background: rgba(151,101,167,0.12); color: #5d3d6c; }
.rq-guide-format-badge--pdf { background: rgba(197,29,124,0.12); color: #9b1660; }

/* Guide responsive */
@media (max-width: 768px) {
  .rq-guide-hero { padding: 1.5rem 1.25rem; }
  .rq-guide-tabs-nav { grid-template-columns: repeat(2, 1fr); }
  .rq-guide-panels { padding: 1.5rem 1.25rem; }
  .rq-guide-formats { grid-template-columns: 1fr; }
  .rq-guide-acc-inner { padding-left: 1.25rem; }
}

@media (max-width: 480px) {
  .rq-guide-tab { padding: 0.75rem 0.375rem; font-size: 0.6875rem; }
  .rq-guide-tab-icon { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
}


/* ── PRINT ── */
@media print {
  .rq-sidebar, .rq-topbar, .rq-qr-actions, .rq-filters, .rq-mobile-cta { display: none !important; }
  .rq-main { width: 100%; border-left: none; }
  .rq-content { padding: 0; }
}