/* ============================================================
   PRR — Components
   Cards, Buttons, Forms, Badges, Charts, Gauge, etc.
   ============================================================ */

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px var(--space-5);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
  border: 1px solid transparent;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--accent-line);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(239,68,68,0.3);
}
.btn-danger:hover {
  background: rgba(239,68,68,0.2);
  box-shadow: 0 4px 16px rgba(239,68,68,0.25);
}

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(16,185,129,0.3);
}
.btn-success:hover {
  background: rgba(16,185,129,0.2);
  box-shadow: 0 4px 16px rgba(16,185,129,0.25);
}

.btn-sm {
  padding: 6px var(--space-3);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 13px var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition);
}

.card:hover { border-color: var(--border); }

.card-glass {
  background: rgba(21, 31, 48, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59,130,246,0.1);
}

.card-accent {
  border-color: var(--accent-line);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59,130,246,0.05) 100%);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon svg { width: 20px; height: 20px; }
.card-icon.accent   { background: var(--accent-glow); color: var(--accent); }
.card-icon.success  { background: var(--success-bg);  color: var(--success); }
.card-icon.warning  { background: var(--warning-bg);  color: var(--warning); }
.card-icon.danger   { background: var(--danger-bg);   color: var(--danger); }
.card-icon.info     { background: var(--info-bg);     color: var(--info); }

.card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1;
  margin-top: var(--space-2);
}

.card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.card-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}
.card-delta.up   { color: var(--success); background: var(--success-bg); }
.card-delta.down { color: var(--danger);  background: var(--danger-bg); }
.card-delta.flat { color: var(--text-muted); background: var(--bg-elevated); }

/* ─── Stat Card (compact) ─────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition);
  cursor: default;
}
.stat-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ─── Forms ───────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: var(--text-xs);
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  padding: 10px var(--space-4);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Slider */
.form-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  outline: none;
  cursor: pointer;
}

.form-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(59,130,246,0.4);
  transition: box-shadow var(--transition);
}

.form-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px rgba(59,130,246,0.6);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge svg { width: 11px; height: 11px; }

.badge-accent  { background: var(--accent-glow); color: var(--accent); border: 1px solid var(--accent-line); }
.badge-success { background: var(--success-bg);  color: var(--success); }
.badge-warning { background: var(--warning-bg);  color: var(--warning); }
.badge-danger  { background: var(--danger-bg);   color: var(--danger); }
.badge-neutral { background: var(--bg-elevated); color: var(--text-secondary); }

/* ─── Progress Bar ────────────────────────────────────────── */
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill.accent   { background: linear-gradient(90deg, var(--accent), #818CF8); }
.progress-fill.success  { background: linear-gradient(90deg, var(--success), #34D399); }
.progress-fill.warning  { background: linear-gradient(90deg, var(--warning), #FCD34D); }
.progress-fill.danger   { background: linear-gradient(90deg, var(--danger), #F87171); }

/* ─── Score Gauge ─────────────────────────────────────────── */
.gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.gauge-svg {
  width: 160px;
  height: 100px;
  overflow: visible;
}

.gauge-track {
  fill: none;
  stroke: var(--bg-elevated);
  stroke-width: 10;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 800ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke 500ms ease;
}

.gauge-label {
  font-size: var(--text-2xl);
  font-weight: 800;
  fill: var(--text-primary);
  font-family: var(--font-mono);
  text-anchor: middle;
}

.gauge-sublabel {
  font-size: 11px;
  fill: var(--text-muted);
  text-anchor: middle;
}

/* ─── Chart Canvas ────────────────────────────────────────── */
.chart-wrapper {
  position: relative;
  width: 100%;
}

.chart-wrapper canvas { width: 100% !important; }

.chart-legend {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── XP Toast / Notification ──────────────────────────────── */
#xp-toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.xp-toast-item {
  background: var(--bg-elevated);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
  animation: toastIn 300ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             toastOut 400ms ease 2600ms forwards;
  pointer-events: none;
}

.xp-toast-item .xp-amount {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-md);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

/* ─── Alert Boxes ─────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-left: 3px solid var(--info); }
.alert-success { background: var(--success-bg); color: var(--success); border-left: 3px solid var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-left: 3px solid var(--warning); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border-left: 3px solid var(--danger); }

/* ─── Divider ─────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-light);
  margin: var(--space-6) 0;
}

/* ─── Chat / Simulator ────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 420px;
  overflow-y: auto;
  padding: var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.chat-message {
  display: flex;
  gap: var(--space-3);
  animation: msgIn 250ms ease;
}

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

.chat-message.user { flex-direction: row-reverse; }

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-avatar.ai   { background: linear-gradient(135deg, #7C3AED, #4F46E5); color: #fff; }
.chat-avatar.user { background: linear-gradient(135deg, var(--accent), #2563EB); color: #fff; }

.chat-bubble {
  max-width: 75%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.chat-message.ai .chat-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg);
}

.chat-message.user .chat-bubble {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg) 4px var(--radius-lg) var(--radius-lg);
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
}
.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.2s ease infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-4px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.chat-input-area .form-input {
  flex: 1;
}

/* ─── Score Card ──────────────────────────────────────────── */
.score-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}

.score-number {
  font-size: 56px;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
}

.score-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.score-bar-item .label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  width: 120px;
  flex-shrink: 0;
  text-align: right;
}

.score-bar-item .val {
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* ─── Quiz / Roleta ───────────────────────────────────────── */
.quiz-scenario {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  position: relative;
  overflow: hidden;
}

.quiz-scenario::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
}

.quiz-scenario-text {
  font-size: var(--text-md);
  color: var(--text-primary);
  line-height: 1.7;
  padding-left: var(--space-4);
}

.quiz-timer-bar {
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width linear;
  margin-bottom: var(--space-5);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quiz-option {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
}

.quiz-option-letter {
  width: 26px;
  height: 26px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all var(--transition);
}

.quiz-option:hover {
  border-color: var(--accent-line);
  background: var(--bg-hover);
}

.quiz-option:hover .quiz-option-letter {
  background: var(--accent);
  color: #fff;
}

.quiz-option.correct {
  border-color: var(--success);
  background: var(--success-bg);
  pointer-events: none;
}
.quiz-option.correct .quiz-option-letter {
  background: var(--success);
  color: #fff;
}

.quiz-option.wrong {
  border-color: var(--danger);
  background: var(--danger-bg);
  pointer-events: none;
}
.quiz-option.wrong .quiz-option-letter {
  background: var(--danger);
  color: #fff;
}

.quiz-option.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* ─── Checklist ───────────────────────────────────────────── */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.checklist-item:hover {
  border-color: var(--border);
  background: var(--bg-elevated);
}

.checklist-item.checked {
  border-color: rgba(16,185,129,0.2);
  background: rgba(16,185,129,0.05);
}

.checklist-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.checklist-item.checked .checklist-checkbox {
  background: var(--success);
  border-color: var(--success);
}

.checklist-checkbox svg {
  width: 11px;
  height: 11px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
}

.checklist-item.checked .checklist-checkbox svg { opacity: 1; }

.checklist-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.5;
  transition: color var(--transition);
}

.checklist-item.checked .checklist-text {
  color: var(--text-muted);
}

.checklist-score {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.checklist-item.checked .checklist-score {
  color: var(--success);
  background: var(--success-bg);
}

/* ─── Daily Tracker ───────────────────────────────────────── */
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.tracker-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition);
}

.tracker-item:hover { border-color: var(--border); }

.tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.tracker-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.tracker-label svg { width: 15px; height: 15px; }

.tracker-value {
  font-size: var(--text-xl);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* ─── Streak Calendar ─────────────────────────────────────── */
.streak-calendar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.streak-day {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
}

.streak-day.filled {
  background: var(--success-bg);
  border-color: rgba(16,185,129,0.3);
  color: var(--success);
}

.streak-day.today {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Table ───────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--bg-elevated);
  padding: var(--space-3) var(--space-4);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

tbody td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ─── Wizard Steps ────────────────────────────────────────── */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.wizard-step.active { color: var(--accent); }
.wizard-step.done   { color: var(--success); }

.wizard-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: all var(--transition);
  flex-shrink: 0;
}

.wizard-step.active .wizard-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.wizard-step.done .wizard-step-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.wizard-connector {
  flex: 1;
  height: 1px;
  background: var(--border-light);
  min-width: 20px;
}

/* ─── Empty State ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-12) var(--space-8);
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.empty-state h3 {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 300px;
}

/* ─── Countdown Timer ─────────────────────────────────────── */
.countdown-display {
  font-size: var(--text-3xl);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.countdown-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-2);
}

/* ─── Mini Bar Chart ──────────────────────────────────────── */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}

.mini-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  background: var(--accent);
  opacity: 0.5;
  transition: all var(--transition);
}
.mini-bar:hover { opacity: 1; }
.mini-bar.today { opacity: 1; background: var(--accent); }

/* ─── Protocol Output ─────────────────────────────────────── */
.protocol-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.protocol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #818CF8);
}

.protocol-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}

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

.protocol-num {
  width: 22px;
  height: 22px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.protocol-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.protocol-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ─── Registro de Campo e Ativos - Custom Containers ──────── */
.context-options-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.context-options-container .context-opt {
  padding: var(--space-2) var(--space-3);
}
.resultado-options-container {
  display: flex;
  gap: var(--space-2);
}
.resultado-options-container .result-opt {
  display: flex;
  flex-direction: column;
  padding: 10px;
  font-size: 12px;
}
.resultado-options-container .result-opt .opt-desc {
  display: none;
}

@media (max-width: 768px) {
  /* Tracker Grid */
  .tracker-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Registro de Campo - Mobile Redesign */
  .context-options-container {
    grid-template-columns: 1fr !important;
    gap: var(--space-2) !important;
  }
  .context-options-container .context-opt {
    padding: var(--space-3) var(--space-4) !important;
    font-size: var(--text-sm) !important;
  }
  
  .resultado-options-container {
    flex-direction: column !important;
    gap: var(--space-3) !important;
  }
  .resultado-options-container .result-opt {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: var(--space-3) var(--space-4) !important;
    border-radius: var(--radius-md) !important;
    width: 100% !important;
    white-space: normal !important;
    transition: all 0.2s ease !important;
  }
  .resultado-options-container .result-opt .opt-label {
    font-size: var(--text-sm) !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
  }
  .resultado-options-container .result-opt .opt-desc {
    display: block !important;
    font-size: 11px !important;
    color: var(--text-secondary) !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
  }
  
  /* Selected states for result buttons on mobile */
  .resultado-options-container .result-opt.btn-primary[data-result="positivo"] {
    background: var(--success-bg) !important;
    border-color: var(--success) !important;
    color: var(--success) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
  }
  .resultado-options-container .result-opt.btn-primary[data-result="positivo"] .opt-desc {
    color: var(--text-primary) !important;
    opacity: 0.9 !important;
  }
  
  .resultado-options-container .result-opt.btn-primary[data-result="neutro"] {
    background: var(--bg-hover) !important;
    border-color: var(--border-focus) !important;
    color: var(--text-primary) !important;
  }
  .resultado-options-container .result-opt.btn-primary[data-result="neutro"] .opt-desc {
    color: var(--text-secondary) !important;
  }
  
  .resultado-options-container .result-opt.btn-primary[data-result="rejeicao"] {
    background: var(--danger-bg) !important;
    border-color: var(--danger) !important;
    color: var(--danger) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2) !important;
  }
  .resultado-options-container .result-opt.btn-primary[data-result="rejeicao"] .opt-desc {
    color: var(--text-primary) !important;
    opacity: 0.9 !important;
  }
  
  .resultado-options-container .result-opt.btn-primary[data-result="incompleto"] {
    background: var(--warning-bg) !important;
    border-color: var(--warning) !important;
    color: var(--warning) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2) !important;
  }
  .resultado-options-container .result-opt.btn-primary[data-result="incompleto"] .opt-desc {
    color: var(--text-primary) !important;
    opacity: 0.9 !important;
  }
}
