/* ==========================================================================
   TRIO PRIMÊR — ENROLLMENT PLATFORM
   Mobile-First Premium Glassmorphism Design System
   Brand: #3157D5 (Primary) | #7C3AED (Accent) | #0B192C (Dark)
   ========================================================================== */

:root {
  --enr-primary: #3157D5;
  --enr-primary-rgb: 49, 87, 213;
  --enr-accent: #7C3AED;
  --enr-accent-rgb: 124, 58, 237;
  --enr-dark: #0B192C;
  --enr-dark-rgb: 11, 25, 44;
  --enr-navy: #0e2238;
  --enr-success: #10b981;
  --enr-warning: #f59e0b;
  --enr-danger: #ef4444;
  --enr-text: #1e293b;
  --enr-muted: #64748b;
  --enr-border: rgba(255,255,255,0.18);
  --enr-glass-bg: rgba(255,255,255,0.12);
  --enr-glass-blur: blur(20px);
  --enr-card-bg: rgba(255,255,255,0.92);
  --enr-card-border: rgba(255,255,255,0.35);
  --enr-shadow: 0 8px 32px rgba(0,0,0,0.08);
  --enr-shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --enr-radius: 16px;
  --enr-radius-sm: 10px;
  --enr-radius-pill: 50px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.enr-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  color: var(--enr-text);
  background: linear-gradient(135deg, #0B192C 0%, #162d50 30%, #1e3a5f 50%, #162d50 70%, #0B192C 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Animated Background Orbs */
body.enr-body::before,
body.enr-body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
body.enr-body::before {
  width: 500px; height: 500px;
  background: var(--enr-primary);
  top: -100px; right: -100px;
  animation: enr-float 12s ease-in-out infinite alternate;
}
body.enr-body::after {
  width: 400px; height: 400px;
  background: var(--enr-accent);
  bottom: -100px; left: -100px;
  animation: enr-float 15s ease-in-out infinite alternate-reverse;
}

@keyframes enr-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}

/* --------------------------------------------------------------------------
   LAYOUT SHELL
   -------------------------------------------------------------------------- */

.enr-shell {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */

.enr-header {
  text-align: center;
  padding: 32px 0 20px;
}

.enr-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.15);
}

.enr-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.enr-brand-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.enr-brand-sub {
  font-size: 0.85rem;
  color: #dce7f8;
  font-weight: 650;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

/* --------------------------------------------------------------------------
   PROGRESS BAR
   -------------------------------------------------------------------------- */

.enr-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: var(--enr-glass-blur);
  -webkit-backdrop-filter: var(--enr-glass-blur);
  border-radius: var(--enr-radius);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.enr-progress-step {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.enr-progress-step.done {
  background: var(--enr-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.enr-progress-step.active {
  background: var(--enr-primary);
  box-shadow: 0 0 12px rgba(var(--enr-primary-rgb), 0.5);
  animation: enr-pulse 2s ease-in-out infinite;
}

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

.enr-progress-label {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 0 0;
}

.enr-progress-label .current {
  color: var(--enr-primary);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   GLASS CARD (Main Content)
   -------------------------------------------------------------------------- */

.enr-card {
  background: var(--enr-card-bg);
  backdrop-filter: var(--enr-glass-blur);
  -webkit-backdrop-filter: var(--enr-glass-blur);
  border: 1px solid var(--enr-card-border);
  border-radius: var(--enr-radius);
  padding: 28px 24px;
  box-shadow: var(--enr-shadow);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.enr-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--enr-primary), var(--enr-accent));
  border-radius: var(--enr-radius) var(--enr-radius) 0 0;
}

.enr-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--enr-text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.enr-card-title .step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--enr-primary), var(--enr-accent));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.enr-card-desc {
  font-size: 0.85rem;
  color: var(--enr-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   FORM ELEMENTS
   -------------------------------------------------------------------------- */

.enr-field {
  margin-bottom: 18px;
}

.enr-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--enr-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.enr-field .help {
  font-size: 0.72rem;
  color: var(--enr-muted);
  margin-top: 4px;
}

.enr-field .required::after {
  content: ' *';
  color: var(--enr-danger);
}

.enr-input,
.enr-select,
.enr-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--enr-radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--enr-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.enr-input:focus,
.enr-select:focus,
.enr-textarea:focus {
  outline: none;
  border-color: var(--enr-primary);
  box-shadow: 0 0 0 4px rgba(var(--enr-primary-rgb), 0.12);
}

.enr-input::placeholder { color: #94a3b8; }

.enr-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.enr-textarea {
  min-height: 100px;
  resize: vertical;
}

.enr-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   CHECKBOXES & RADIO (Custom)
   -------------------------------------------------------------------------- */

.enr-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.enr-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: var(--enr-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.88rem;
  font-weight: 500;
  background: #fff;
  min-width: 120px;
  flex: 1;
}

.enr-check-item:hover { border-color: var(--enr-primary); }
.enr-check-item.selected {
  border-color: var(--enr-primary);
  background: rgba(var(--enr-primary-rgb), 0.06);
  color: var(--enr-primary);
  font-weight: 700;
}

.enr-check-item input[type="checkbox"],
.enr-check-item input[type="radio"] {
  width: 20px; height: 20px;
  accent-color: var(--enr-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   DECLARATION CHECKBOX
   -------------------------------------------------------------------------- */

.enr-declaration-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--enr-radius-sm);
  margin-bottom: 10px;
  transition: all 0.2s;
}

.enr-declaration-item:hover { border-color: var(--enr-primary); }

.enr-declaration-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--enr-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.enr-declaration-item span {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--enr-text);
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */

.enr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border: none;
  border-radius: var(--enr-radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 52px;
}

.enr-btn-primary {
  background: linear-gradient(135deg, var(--enr-primary), var(--enr-accent));
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--enr-primary-rgb), 0.35);
}
.enr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--enr-primary-rgb), 0.45);
}
.enr-btn-primary:active { transform: translateY(0); }

.enr-btn-outline {
  background: rgba(255,255,255,0.8);
  color: var(--enr-text);
  border: 2px solid #e2e8f0;
}
.enr-btn-outline:hover {
  border-color: var(--enr-primary);
  color: var(--enr-primary);
  background: rgba(var(--enr-primary-rgb), 0.04);
}

.enr-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}
.enr-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.enr-btn-danger {
  background: var(--enr-danger);
  color: #fff;
}

.enr-btn-success {
  background: var(--enr-success);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.enr-btn-block {
  width: 100%;
}

.enr-btn-lg {
  min-height: 56px;
  font-size: 1.05rem;
  padding: 18px 32px;
}

/* Button group for wizard navigation */
.enr-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.enr-btn-group .enr-btn { flex: 1; }

/* --------------------------------------------------------------------------
   SIGNATURE PAD
   -------------------------------------------------------------------------- */

.enr-signature-wrap {
  margin-top: 20px;
}

.enr-signature-canvas-wrap {
  border: 2px dashed #cbd5e1;
  border-radius: var(--enr-radius-sm);
  background: #f0f7ff;
  padding: 8px;
  position: relative;
  margin-bottom: 12px;
}

.enr-signature-canvas {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
  display: block;
}

.enr-signature-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  color: #94a3b8;
  pointer-events: none;
  transition: opacity 0.3s;
}

.enr-signature-hint.hidden { opacity: 0; }

.enr-signature-controls {
  display: flex;
  gap: 8px;
}

.enr-signature-status {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.enr-signature-status.accepted { color: var(--enr-success); }
.enr-signature-status.error { color: var(--enr-danger); }

/* --------------------------------------------------------------------------
   AUTH CARD (Login/Register)
   -------------------------------------------------------------------------- */

.enr-auth-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: var(--enr-glass-blur);
  -webkit-backdrop-filter: var(--enr-glass-blur);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: var(--enr-shadow-lg);
  max-width: 440px;
  margin: 40px auto;
}

.enr-auth-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.enr-auth-card .subtitle {
  text-align: center;
  color: var(--enr-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.enr-auth-divider {
  text-align: center;
  color: var(--enr-muted);
  font-size: 0.82rem;
  margin: 20px 0;
  position: relative;
}

.enr-auth-divider::before,
.enr-auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: #e2e8f0;
}

.enr-auth-divider::before { left: 0; }
.enr-auth-divider::after { right: 0; }

/* --------------------------------------------------------------------------
   ALERTS & NOTICES
   -------------------------------------------------------------------------- */

.enr-alert {
  padding: 14px 18px;
  border-radius: var(--enr-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.enr-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.enr-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.enr-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.enr-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.enr-alert .icon { font-size: 1.2rem; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   STATUS BADGES
   -------------------------------------------------------------------------- */

.enr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.enr-header .enr-badge-primary {
  color: #17233b;
  background: linear-gradient(135deg, #fff2b8 0%, #f8c94d 55%, #e9aa22 100%);
  border: 1px solid rgba(255, 246, 200, 0.9);
  box-shadow: 0 6px 18px rgba(224, 166, 35, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-shadow: none;
}

/* --------------------------------------------------------------------------
   SIBLING ROWS (Repeater)
   -------------------------------------------------------------------------- */

.enr-sibling-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px 40px;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

.enr-sibling-row .enr-input,
.enr-sibling-row .enr-select {
  padding: 10px 12px;
  font-size: 0.88rem;
}

.enr-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.enr-btn-icon.remove { background: #fef2f2; color: var(--enr-danger); }
.enr-btn-icon.remove:hover { background: var(--enr-danger); color: #fff; }
.enr-btn-icon.add { background: #eff6ff; color: var(--enr-primary); }
.enr-btn-icon.add:hover { background: var(--enr-primary); color: #fff; }

/* --------------------------------------------------------------------------
   SUCCESS / CONFIRMATION PAGE
   -------------------------------------------------------------------------- */

.enr-success-page {
  text-align: center;
  padding: 40px 20px;
}

.enr-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--enr-success), #059669);
  color: #fff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
  animation: enr-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes enr-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.enr-success-ref {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--enr-primary);
  letter-spacing: 0.02em;
  margin: 16px 0;
  padding: 12px 24px;
  background: rgba(var(--enr-primary-rgb), 0.06);
  border-radius: var(--enr-radius-sm);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   CLOSED STATE
   -------------------------------------------------------------------------- */

.enr-closed-card {
  text-align: center;
  padding: 48px 32px;
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  margin: 60px auto;
  max-width: 480px;
}

.enr-closed-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.enr-closed-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--enr-text);
  margin-bottom: 12px;
}

.enr-closed-msg {
  font-size: 0.95rem;
  color: var(--enr-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   PARENT DASHBOARD
   -------------------------------------------------------------------------- */

.enr-dash-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--enr-card-border);
  border-radius: var(--enr-radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--enr-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.enr-dash-info h3 { font-size: 1rem; font-weight: 800; }
.enr-dash-info p { font-size: 0.82rem; color: var(--enr-muted); margin-top: 4px; }
.enr-dash-info .ref { font-family: 'Courier New', monospace; color: var(--enr-primary); font-weight: 700; }

/* --------------------------------------------------------------------------
   ADMIN SPECIFIC
   -------------------------------------------------------------------------- */

.enr-admin-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.enr-admin-kpi-card {
  background: var(--enr-card-bg);
  border: 1px solid var(--enr-card-border);
  border-radius: var(--enr-radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: var(--enr-shadow);
}

.enr-admin-kpi-val {
  font-size: 2rem;
  font-weight: 900;
  color: var(--enr-primary);
}

.enr-admin-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--enr-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Table in admin */
.enr-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--enr-card-bg);
  border-radius: var(--enr-radius-sm);
  overflow: hidden;
  box-shadow: var(--enr-shadow);
}

.enr-admin-table th {
  background: #f8fafc;
  padding: 12px 14px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--enr-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e2e8f0;
}

.enr-admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.enr-admin-table tbody tr:hover { background: #f8fafc; }

/* Closed public state */
.enr-closed-state { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(24px, 7vw, 54px) 18px; }
.enr-closed-visual { width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 30px; color: #fff8dc; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,220,115,.76)); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 22px 44px rgba(42,61,112,.22), inset 0 2px 2px #fff, inset 0 -8px 14px rgba(197,139,21,.18); transform: perspective(500px) rotateX(7deg) rotateY(-7deg); }
.enr-closed-lock { font-size: 2.5rem; color: #b77908; filter: drop-shadow(0 5px 5px rgba(99,67,3,.25)); }
.enr-closed-kicker { color: #9a6705; font-size: .74rem; font-weight: 900; letter-spacing: .13em; }
.enr-closed-state h2 { margin: 8px 0; color: var(--enr-dark); font-size: clamp(1.45rem, 5vw, 2rem); }
.enr-closed-state > p { max-width: 620px; color: #405672; font-size: clamp(.96rem, 2.6vw, 1.06rem); line-height: 1.55; margin: 8px auto 0; }
.enr-phone-nowrap { white-space: nowrap; font-weight: 750; color: #213b5d; }
.enr-closed-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.enr-closed-contact span, .enr-closed-contact a { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 999px; color: #20324d; background: rgba(255,255,255,.78); border: 1px solid rgba(148,163,184,.36); box-shadow: 0 7px 16px rgba(31,50,84,.10), inset 0 1px 0 #fff; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.enr-closed-contact a:hover { transform: translateY(-2px); color: #173ea8; box-shadow: 0 11px 22px rgba(31,50,84,.16), inset 0 1px 0 #fff; }
@media (max-width: 420px) {
  .enr-closed-state { min-height: 0; padding: 28px 14px 34px; }
  .enr-closed-state h2 { font-size: clamp(1.55rem, 8.2vw, 2rem); line-height: 1.16; }
  .enr-closed-contact { width: 100%; }
  .enr-closed-contact > * { justify-content: center; }
}

/* Premium administration command bar */
.enr-admin-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 8px 0 24px; padding: 18px; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; background: linear-gradient(125deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); box-shadow: 0 22px 48px rgba(3,12,31,.24), inset 0 1px 0 rgba(255,255,255,.28); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.enr-admin-hero::after { content: ''; position: absolute; z-index: -1; width: 230px; height: 230px; right: 22%; top: -170px; border-radius: 50%; background: rgba(69,131,255,.28); filter: blur(24px); }
.enr-admin-identity { display: flex; align-items: center; gap: 14px; min-width: 260px; }
.enr-admin-logo { width: 62px; height: 62px; min-width: 62px; margin: 0; border-radius: 20px; box-shadow: 0 14px 30px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.38); }
.enr-admin-eyebrow { display: block; margin-bottom: 3px; color: #ffd66b; font-size: .68rem; font-weight: 900; letter-spacing: .13em; }
.enr-admin-titleblock h1 { color: #fff; font-size: clamp(1.2rem, 2.4vw, 1.65rem); font-weight: 900; letter-spacing: -.025em; }
.enr-admin-titleblock p { color: #d9e5fa; font-size: .8rem; }
.enr-admin-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.enr-admin-live-state { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 13px; border-radius: 999px; color: #fff; background: rgba(4,17,39,.32); border: 1px solid rgba(255,255,255,.19); font-size: .74rem; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.enr-admin-live-state > span { width: 9px; height: 9px; border-radius: 50%; }
.enr-admin-live-state.is-open > span { background: #38e8a2; box-shadow: 0 0 12px #38e8a2; }
.enr-admin-live-state.is-closed > span { background: #ffb64a; box-shadow: 0 0 12px #ffb64a; }
.enr-3d-glass-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 15px; border: 1px solid rgba(255,255,255,.48); border-radius: 15px; color: #15233d; background: linear-gradient(155deg, rgba(255,255,255,.97), rgba(210,225,255,.76)); box-shadow: 0 8px 0 rgba(9,23,52,.22), 0 14px 25px rgba(2,11,29,.24), inset 0 2px 0 #fff; font: inherit; font-size: .78rem; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.enr-3d-glass-btn:hover { transform: translateY(-3px); filter: brightness(1.04); box-shadow: 0 10px 0 rgba(9,23,52,.2), 0 19px 30px rgba(2,11,29,.3), inset 0 2px 0 #fff; }
.enr-3d-glass-btn:active { transform: translateY(4px); box-shadow: 0 3px 0 rgba(9,23,52,.22), 0 7px 13px rgba(2,11,29,.2), inset 0 2px 0 #fff; }
.enr-3d-glass-btn:focus-visible { outline: 3px solid #ffd35a; outline-offset: 3px; }
.enr-3d-btn-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg,#4a7aff,#2448cd); box-shadow: 0 4px 0 #172f94, inset 0 1px 0 rgba(255,255,255,.52); font-size: 1rem; }
.enr-3d-glass-btn-home { color: #fff; background: linear-gradient(155deg, rgba(53,105,235,.96), rgba(35,64,172,.88)); border-color: rgba(151,184,255,.75); }
.enr-3d-glass-btn-home .enr-3d-btn-icon { background: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 4px 0 rgba(8,25,80,.4); }
.enr-3d-glass-btn-logout { color: #ffe8e8; background: linear-gradient(155deg, rgba(136,38,65,.72), rgba(86,20,47,.78)); border-color: rgba(255,153,174,.42); }
.enr-3d-glass-btn-logout .enr-3d-btn-icon { background: linear-gradient(145deg,#ff6b87,#b6244e); box-shadow: 0 4px 0 #771432, inset 0 1px 0 rgba(255,255,255,.42); }
.metric-card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 32px rgba(5,18,48,.14), inset 0 1px 0 #fff !important; transition: transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { transform: translateY(-4px); box-shadow: 0 20px 38px rgba(5,18,48,.2), inset 0 1px 0 #fff !important; }
.admin-shell > .enr-card { border: 1px solid rgba(255,255,255,.72); box-shadow: 0 24px 60px rgba(3,15,40,.22), inset 0 1px 0 #fff; }
.modal-box { border: 1px solid rgba(255,255,255,.9); box-shadow: 0 32px 80px rgba(2,11,29,.34), inset 0 1px 0 #fff !important; }
.enr-settings-status-panel { margin-bottom: 20px; padding: 16px; border: 1px solid rgba(99,129,180,.2); border-radius: 18px; background: linear-gradient(145deg, rgba(241,246,255,.96), rgba(255,255,255,.9)); box-shadow: 0 12px 28px rgba(36,61,105,.11), inset 0 1px 0 #fff; }
.enr-settings-switch-row { display:flex;align-items:center;gap:18px;flex-wrap:wrap; }
.enr-settings-switch { position:relative;display:inline-flex;align-items:center;gap:12px;min-height:62px;color:var(--enr-dark);cursor:pointer; }
.enr-settings-switch > input { position:absolute;width:1px;height:1px;opacity:0; }
.enr-settings-switch-track { position:relative;display:block;width:104px;height:54px;flex:0 0 104px;border:2px solid rgba(255,255,255,.8);border-radius:999px;background:linear-gradient(145deg,#ff858e,#dc354d 52%,#9f1832);box-shadow:inset 0 4px 9px rgba(75,9,23,.4),inset 0 -2px 4px rgba(255,255,255,.26),0 12px 24px rgba(188,40,66,.25),0 2px 3px rgba(70,18,34,.2);transition:background .22s,box-shadow .22s; }
.enr-settings-switch-track::before { content:'AF';position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:11px;font-weight:900;letter-spacing:.08em;color:#fff;text-shadow:0 1px 2px #6b1428; }
.enr-settings-switch-track > span { position:absolute;top:5px;left:5px;display:block;width:40px;height:40px;border-radius:50%;background:linear-gradient(145deg,#fff,#d9e5f1 58%,#a8b9cb);box-shadow:inset 0 2px 3px #fff,0 5px 10px rgba(23,39,58,.36),0 0 0 1px rgba(255,255,255,.9);transition:transform .22s; }
.enr-settings-switch input:checked + .enr-settings-switch-track { background:linear-gradient(145deg,#68f4b5,#14b976 52%,#087b54);box-shadow:inset 0 4px 9px rgba(7,77,51,.35),inset 0 -2px 4px rgba(255,255,255,.3),0 12px 24px rgba(10,164,103,.28),0 2px 3px rgba(16,69,48,.2); }
.enr-settings-switch input:checked + .enr-settings-switch-track::before { content:'AAN';left:12px;right:auto;text-shadow:0 1px 2px #075337; }
.enr-settings-switch input:checked + .enr-settings-switch-track > span { transform:translateX(50px); }
.enr-settings-switch input:focus-visible + .enr-settings-switch-track { outline: 3px solid rgba(49,87,213,.35); outline-offset: 3px; }
.enr-settings-switch-note { flex:1 1 260px;padding:14px 18px;border:1px solid rgba(105,135,175,.3);border-radius:16px;background:linear-gradient(145deg,rgba(226,236,250,.82),rgba(255,255,255,.8));box-shadow:inset 0 3px 8px rgba(29,50,83,.12),inset 0 -1px 2px #fff,0 8px 22px rgba(26,45,75,.09);color:#193149;line-height:1.45; }
.enr-settings-switch-note[data-state="on"] { border-color:rgba(16,185,129,.4); }
.enr-settings-switch-note[data-state="off"] { border-color:rgba(220,53,77,.4); }
.enr-settings-switch-note strong { display:block;font-size:.87rem;font-weight:900; }
.enr-settings-switch-note small { display:block;margin-top:3px;color:#445b73;font-size:.77rem;line-height:1.4; }
@media(max-width:600px){.enr-settings-switch-note{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.enr-settings-switch-track,.enr-settings-switch-track > span{transition:none}}

/* --------------------------------------------------------------------------
   MOBILE RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .enr-shell { padding: 10px; }
  .enr-card { padding: 20px 16px; }
  .enr-auth-card { padding: 28px 20px; margin: 20px auto; }
  .enr-field-row { grid-template-columns: 1fr; }
  .enr-sibling-row { grid-template-columns: 1fr; }
  .enr-btn-group { flex-direction: column-reverse; }
  .enr-btn-group .enr-btn { width: 100%; }
  .enr-header { padding: 20px 0 12px; }
  .enr-brand-title { font-size: 1.3rem; }
  .enr-admin-kpi { grid-template-columns: repeat(2, 1fr); }
  .enr-admin-table { font-size: 0.78rem; }
  .enr-admin-table th, .enr-admin-table td { padding: 10px 8px; }
  .enr-admin-hero { align-items: stretch; padding: 14px; border-radius: 20px; }
  .enr-admin-identity { min-width: 0; }
  .enr-admin-actions { justify-content: stretch; }
  .enr-admin-live-state { width: 100%; justify-content: center; }
  .enr-3d-glass-btn { flex: 1 1 145px; }
}

@media (min-width: 768px) {
  .enr-shell { padding: 24px; }
  .enr-card { padding: 36px 32px; }
  .enr-field-row { grid-template-columns: 1fr 1fr; }
  .enr-header { padding: 48px 0 28px; }
  body.enr-body { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   PRINT
   -------------------------------------------------------------------------- */

@media print {
  body.enr-body { background: #fff; }
  body.enr-body::before, body.enr-body::after { display: none; }
  .enr-card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
  .enr-btn, .enr-btn-group, .enr-progress { display: none !important; }
}
