/* ============================================================
 * TIER 14 — User Verification & Correction
 * Prefix: t14-
 * ============================================================ */

/* ============ VERIFICATION BAR ============ */
.t14-verify-bar {
  margin: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  animation: t14-slideIn 0.25s ease-out;
}

.t14-verify-bar.t14-already {
  padding: 10px 14px;
}

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

.t14-verify-bar.t14-fade-out {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .t14-verify-bar {
    animation: none;
  }
  .t14-verify-bar.t14-fade-out {
    transition: none;
  }
}

/* Question row */
.t14-verify-question {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.t14-verify-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.t14-verify-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.1px;
}

/* Button group */
.t14-verify-btns {
  display: flex;
  gap: 8px;
  transition: opacity 0.2s ease, max-height 0.25s ease;
  overflow: hidden;
}

.t14-verify-btns.t14-hidden {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Buttons */
.t14-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s, background 0.15s;
  line-height: 1.3;
}

.t14-btn:active {
  transform: scale(0.96);
}

.t14-btn-yes {
  background: rgba(54, 179, 126, 0.12);
  color: var(--green);
  border: 1px solid rgba(54, 179, 126, 0.2);
  flex: 1;
}

.t14-btn-yes:hover {
  background: rgba(54, 179, 126, 0.18);
}

.t14-btn-no {
  background: rgba(255, 171, 0, 0.1);
  color: var(--amber);
  border: 1px solid rgba(255, 171, 0, 0.18);
  flex: 1;
}

.t14-btn-no:hover {
  background: rgba(255, 171, 0, 0.16);
}

.t14-btn-check,
.t14-btn-x {
  font-size: 11px;
  opacity: 0.8;
}

/* ============ CORRECTION PANEL ============ */
.t14-correction-panel {
  display: none;
  padding-top: 2px;
  animation: t14-expandIn 0.2s ease-out;
}

.t14-correction-panel.t14-visible {
  display: block;
}

@keyframes t14-expandIn {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t14-correction-panel {
    animation: none;
  }
}

.t14-correction-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.t14-correction-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color 0.2s;
  line-height: 1.4;
}

.t14-correction-input:focus {
  border-color: var(--amber);
}

.t14-correction-input::placeholder {
  color: var(--text-muted);
}

.t14-correction-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.t14-btn-submit {
  background: var(--amber);
  color: #1a1a2e;
  flex: 1;
  font-weight: 700;
}

.t14-btn-submit:hover {
  background: #ffc233;
}

.t14-btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.t14-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============ CONFIRMATION MESSAGE ============ */
.t14-confirm-msg {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}

.t14-confirm-msg.t14-visible {
  display: flex;
  animation: t14-confirmIn 0.3s ease-out;
}

@keyframes t14-confirmIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .t14-confirm-msg.t14-visible {
    animation: none;
  }
}

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

.t14-confirm-icon.t14-green {
  color: var(--green);
}

.t14-confirm-icon.t14-amber {
  color: var(--amber);
}

.t14-confirm-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ============ ALREADY VERIFIED/CORRECTED ============ */
.t14-already-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 0;
  border-radius: 6px;
}

.t14-already-msg.t14-green-bg {
  color: var(--green);
}

.t14-already-msg.t14-amber-bg {
  color: var(--amber);
}

.t14-already-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* ============ RESULT SCREEN BADGE ============ */
.t14-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 2px;
  animation: t14-badgeIn 0.2s ease-out;
}

@keyframes t14-badgeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .t14-result-badge {
    animation: none;
  }
}

.t14-badge-verified {
  background: rgba(54, 179, 126, 0.1);
  border: 1px solid rgba(54, 179, 126, 0.2);
}

.t14-badge-verified .t14-badge-text {
  color: var(--green);
}

.t14-badge-correction {
  background: rgba(255, 171, 0, 0.08);
  border: 1px solid rgba(255, 171, 0, 0.18);
}

.t14-badge-correction .t14-badge-text {
  color: var(--amber);
}

.t14-badge-partial {
  background: rgba(76, 154, 255, 0.08);
  border: 1px solid rgba(76, 154, 255, 0.15);
}

.t14-badge-partial .t14-badge-text {
  color: var(--accent);
}

.t14-badge-unverified {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.t14-badge-unverified .t14-badge-text {
  color: var(--text-muted);
}

/* Badge dots */
.t14-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.t14-dot-green {
  background: var(--green);
}

.t14-dot-amber {
  background: var(--amber);
}

.t14-dot-blue {
  background: var(--accent);
}

.t14-dot-grey {
  background: var(--text-muted);
}

.t14-badge-text {
  letter-spacing: 0.2px;
}

/* ============ HOME SCREEN COUNTER ============ */
.t14-home-counter {
  margin-bottom: 16px;
  animation: t14-slideIn 0.25s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .t14-home-counter {
    animation: none;
  }
}

.t14-home-counter-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(54, 179, 126, 0.06);
  border: 1px solid rgba(54, 179, 126, 0.12);
  border-radius: var(--radius);
}

.t14-home-counter-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.t14-home-counter-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

.t14-home-counter-num {
  font-weight: 800;
  color: var(--green);
  font-size: 14px;
}

.t14-home-counter-corrections {
  font-size: 11px;
  color: var(--amber);
  font-weight: 600;
}
