:root {
  --bg-dark: #1B1E21;
  --bg-card: #2C3136;
  --bg-card-subtle: #33383D;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 210, 0, 0.4);
  --primary: #FFD200;
  --primary-light: #FFD200;
  --primary-glow: rgba(255, 210, 0, 0.25);
  --text-main: #FFFFFF;
  --text-muted: #C9CDD0;
  --text-dim: #8A8F94;
  --success: #FFD200;
  --danger: #EF4444;
  --whatsapp: #22C55E;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 90px;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glow */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 280px;
  background: radial-gradient(circle at 50% -20%, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.portal-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 1;
}

/* TOP HEADER */
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 16px;
}

.brand-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 14px var(--primary-glow);
  overflow: hidden;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFF;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

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

.btn-icon-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-icon-link:active {
  transform: scale(0.92);
}

/* PULSE STATS GRID */
.pulse-section {
  margin-bottom: 20px;
}

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

.pulse-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  display: inline-block;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pulse-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pulse-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0.8;
}

.pulse-card.highlight::after {
  background: linear-gradient(90deg, #FFD200, #FFD200);
}

.pulse-card.reward-pulse::after {
  background: var(--rk-yellow);
}

.pulse-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.1;
  margin-bottom: 4px;
}

.pulse-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* SECTION TABS (NAVIGATION) */
.nav-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tab-btn {
  flex: 1 0 auto;
  white-space: nowrap;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--bg-card-subtle);
  color: #FFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* TAB PANES */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

/* CARDS & PANELS */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}

.panel-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #FFF;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* BRANDING & COLOR PICKER */
.color-picker-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 10px;
}

.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  -webkit-appearance: none;
  padding: 0;
  background: none;
}

.color-circle::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-circle::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.color-hex {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
}

/* IMAGE UPLOADER CARD */
.upload-card {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.upload-card:hover {
  border-color: var(--primary);
  background: rgba(255, 210, 0, 0.04);
}

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

.preview-box {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  background: #000;
  margin-bottom: 8px;
  display: none;
  overflow: hidden;
  position: relative;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.upload-placeholder span {
  font-size: 24px;
}

.upload-placeholder p {
  font-size: 0.82rem;
  font-weight: 600;
}

.upload-placeholder small {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* SMART COLOR SUGGESTION BAR */
.smart-suggestions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255, 210, 0, 0.08);
  border: 1px solid rgba(255, 210, 0, 0.2);
  border-radius: var(--radius-md);
  display: none;
}

.smart-suggestions.active {
  display: flex;
}

.smart-palettes {
  display: flex;
  gap: 6px;
}

.palette-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #FFF;
  cursor: pointer;
  transition: transform 0.2s;
}

.palette-btn:hover {
  transform: scale(1.2);
}

/* LIVE MOCKUP PREVIEW */
.mockup-preview-container {
  background: #1B1E21;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.mockup-card-body {
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-reward-thumb {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 12px;
  display: block;
}

.mockup-stamps-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.mockup-stamp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.mockup-stamp.stamped {
  border-style: solid;
  border-color: #FFF;
  background: rgba(255, 255, 255, 0.2);
}

/* CUSTOMER LIST (CRM) */
.customer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.customer-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.customer-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.customer-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-stamps {
  background: rgba(255, 210, 0, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(255, 210, 0, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-whatsapp-chat {
  background: #25D366;
  color: #FFF;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-whatsapp-chat:active {
  transform: scale(0.92);
}

/* SAVE BUTTON BAR */
.btn-primary-action {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #23272B;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary-action:active {
  transform: scale(0.97);
}

/* FLOATING FOOTER / TOAST */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2C3136;
  color: #FFF;
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* MODAL OVERLAY & CARD (PORTAL SUPPORT) */
.portal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.portal-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.25s ease;
}

/* CAMPAIGN TEMPLATE BUTTONS & DISPATCH LIST */
.btn-template {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  transition: all 0.2s;
}

.btn-template:hover, .btn-template.active {
  background: rgba(255, 210, 0, 0.12);
  border-color: var(--primary-light);
  color: #FFF;
}

.dispatch-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.dispatch-btn {
  background: #FFD200;
  color: #23272B;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


/* ==========================================
   CALCULADORA DE RENTABILIDAD DEL PREMIO
   ========================================== */
.calc-box {
  margin: 8px 0 16px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.calc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.calc-intro,
.calc-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.calc-intro {
  margin: 0 0 12px;
}

.calc-hint {
  display: block;
  margin-top: 4px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.calc-results {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.calc-empty {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.calc-row strong {
  font-size: 0.95rem;
  white-space: nowrap;
}

.calc-verdict {
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.calc-verdict.good { background: rgba(255, 210, 0, 0.12); border-color: rgba(255, 210, 0, 0.4); }
.calc-verdict.warn { background: rgba(255, 210, 0, 0.12); border-color: rgba(255, 210, 0, 0.4); }
.calc-verdict.bad  { background: rgba(239, 68, 68, 0.12);  border-color: rgba(239, 68, 68, 0.4); }

/* ==========================================
   PUNTOS Y CATÁLOGO
   ========================================== */
.points-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.points-stat {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
}

.points-stat strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
}

.points-stat span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.catalog-list {
  display: grid;
  gap: 8px;
}

.catalog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
}

.catalog-item.inactive {
  opacity: 0.5;
}

.catalog-item-info strong {
  display: block;
  font-size: 0.88rem;
}

.catalog-item-info span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.catalog-item button {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================
   SORTEOS
   ========================================== */
.raffle-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.raffle-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.raffle-chip {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid;
}

.raffle-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.raffle-note {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.raffle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
}

.raffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.raffle-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #23272B;
}

.draw-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: radial-gradient(circle at top, #2C3136, #1B1E21);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.draw-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  text-align: center;
  padding: 24px 16px;
}

.draw-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
}

.draw-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 6px 0 10px;
}

.draw-prize-img {
  max-width: 220px;
  max-height: 160px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 8px;
}

.draw-reel {
  font-size: clamp(4rem, 22vw, 8rem);
  font-weight: 900;
  color: var(--primary-light);
  margin: 18px 0;
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s ease;
}

.draw-reel.landed {
  transform: scale(1.12);
}

.draw-winners {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
}

.draw-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 210, 0, 0.12);
  border: 1px solid rgba(255, 210, 0, 0.35);
}

.draw-winner.alt {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color);
}

.draw-winner .raffle-actions {
  margin-top: 0;
}

/* Identidad rekompra (Manual v1.0): base gris carbón, amarillo para acción y recompensa */
:root {
  --bg-dark: #1B1E21;
  --bg-card: var(--rk-ink);
  --bg-card-subtle: #2C3136;
  --border-focus: rgba(255, 210, 0, 0.45);
  --primary: var(--rk-yellow);
  --primary-light: var(--rk-yellow);
  --primary-glow: rgba(255, 210, 0, 0.25);
  --text-main: var(--rk-white);
  --text-muted: var(--rk-gray-300);
  --text-dim: var(--rk-gray-500);
  --success: var(--rk-yellow);
}
body { font-family: var(--rk-font-body); }
h1, h2, h3, h4 { font-family: var(--rk-font-display); }
/* Sin resplandor de color en el encabezado: fondo carbón limpio */
.bg-ambient { display: none; }

/* Ficha del negocio */
.ficha-progress { margin: 4px 0 18px; padding: 14px; border-radius: var(--rk-radius-md); background: #2C3136; }
.ficha-progress-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }
.ficha-progress-head span { color: var(--rk-gray-300); font-size: 0.8rem; }
.ficha-progress-bar { height: 8px; margin-top: 10px; border-radius: var(--rk-radius-full); background: var(--rk-gray-700); overflow: hidden; }
.ficha-progress-bar span { display: block; height: 100%; width: 0; background: var(--rk-yellow); transition: width 0.3s; }
.ficha-panel.complete .ficha-progress { background: rgba(255, 210, 0, 0.12); border: 1px solid rgba(255, 210, 0, 0.4); }
.form-hint { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--rk-gray-300); }
.form-optional { font-weight: 500; color: var(--rk-gray-500); text-transform: none; }

/* Baja de cliente (derecho al olvido) */
.danger-zone { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rk-gray-700); }
.danger-zone p { font-size: 0.78rem; color: var(--rk-gray-300); margin-bottom: 8px; }
.btn-danger-link { background: none; border: 1px solid #F04438; color: #FDA29B; border-radius: var(--rk-radius-md); padding: 10px 14px; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; width: 100%; }
.btn-danger-link:hover { background: rgba(240, 68, 56, 0.12); }

/* Sorteos: aviso de bases oficiales */
.raffle-legal-note { margin-bottom: 12px; padding: 12px 14px; border-radius: var(--rk-radius-md); background: rgba(255, 210, 0, 0.1); border: 1px solid rgba(255, 210, 0, 0.35); font-size: 0.8rem; color: var(--rk-gray-300); line-height: 1.45; }
.raffle-legal-note strong { display: block; color: var(--rk-white); margin-bottom: 4px; }
#rf-cap-hint.over { color: #FDA29B; font-weight: 600; }

/* Equipo: acciones por persona */
.staff-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.staff-btn { background: transparent; border: 1px solid var(--rk-gray-700); color: var(--rk-white); border-radius: var(--rk-radius-sm); padding: 6px 10px; font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.staff-btn:hover { border-color: var(--rk-yellow); }
.staff-btn.danger { color: #FDA29B; border-color: rgba(240, 68, 56, 0.5); }
.staff-badge { font-size: 0.72rem; padding: 3px 8px; border-radius: var(--rk-radius-full); font-weight: 700; }
.staff-badge.on { background: rgba(255, 210, 0, 0.15); color: var(--rk-yellow); }
.staff-badge.off { background: rgba(240, 68, 56, 0.15); color: #FDA29B; }
.customer-item.inactive { opacity: 0.6; }

/* Email de recuperación del dueño */
.recovery-email-box { margin-bottom: 18px; padding: 14px; border-radius: var(--rk-radius-md); background: #2C3136; }
.recovery-email-box.missing { border: 1px solid rgba(255, 210, 0, 0.5); }
.recovery-email-row { display: flex; gap: 8px; align-items: stretch; }
.recovery-email-row .form-input { flex: 1; }
