/* ============================================================
   TFL Mentorat — style.css
   Light/Dark theme, violet palette, mobile-first
   ============================================================ */

/* ---------- Google Font import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES — Light mode (default)
   ============================================================ */
:root,
[data-theme="light"] {
  --color-bg: #faf8ff;
  --color-surface: #ffffff;
  --color-surface-hover: #f5f3ff;
  --color-primary: #7c3aed;
  --color-primary-hover: #6d28d9;
  --color-primary-light: #ede9fe;
  --color-text: #1a1a2e;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --nav-height: 64px;
}

/* ============================================================
   CSS VARIABLES — Dark mode
   ============================================================ */
[data-theme="dark"] {
  --color-bg: #0f0f23;
  --color-surface: #1a1a2e;
  --color-surface-hover: #262640;
  --color-primary: #a78bfa;
  --color-primary-hover: #8b5cf6;
  --color-primary-light: rgba(167, 139, 250, 0.15);
  --color-text: #f0f0ff;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100dvh;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
}

/* ============================================================
   LAYOUT
   ============================================================ */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

.app-main {
  flex: 1;
  padding: 24px 16px 24px;
}

.app-main.has-nav {
  padding-bottom: calc(var(--nav-height) + 24px);
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.page-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60dvh;
  text-align: center;
  padding: 24px 16px;
}

.text-muted {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ============================================================
   AUTH
   ============================================================ */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px 16px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.auth-form {
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}

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

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

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

.form-error {
  font-size: 0.8125rem;
  color: var(--color-error);
  margin-top: 5px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-block {
  width: 100%;
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: stretch;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  padding: 6px 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 0 0 2px 2px;
}

.nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================================
   LOADING & SPINNER
   ============================================================ */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
@keyframes toast-in {
  from {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
  }
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 999;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  min-width: 220px;
  text-align: center;
}

.toast.show {
  animation: toast-in 0.3s ease forwards;
  pointer-events: auto;
  opacity: 1;
}

.toast.hide {
  animation: toast-out 0.3s ease forwards;
}

.toast-success {
  background: #f0fdf4;
  border-color: var(--color-success);
  color: #15803d;
}

[data-theme="dark"] .toast-success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.toast-error {
  background: #fef2f2;
  border-color: var(--color-error);
  color: #b91c1c;
}

[data-theme="dark"] .toast-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  width: 100%;
  background: var(--color-border);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 999px;
  transition: width 0.4s ease;
  min-width: 0;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

/* ============================================================
   ONBOARDING
   ============================================================ */
.onboarding-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px calc(var(--nav-height) + 24px);
}

.onboarding-header {
  margin-bottom: 28px;
}

.onboarding-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.onboarding-header p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.onboarding-step.completed {
  border-color: var(--color-success);
  background: rgba(34, 197, 94, 0.04);
}

[data-theme="dark"] .onboarding-step.completed {
  background: rgba(34, 197, 94, 0.07);
}

.onboarding-step.current {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.onboarding-step.locked {
  opacity: 0.5;
  pointer-events: none;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--color-border);
  color: var(--color-text-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.onboarding-step.completed .step-number {
  background: var(--color-success);
  color: #ffffff;
}

.onboarding-step.current .step-number {
  background: var(--color-primary);
  color: #ffffff;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.step-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.step-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.onboarding-step.completed .step-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

[data-theme="dark"] .onboarding-step.completed .step-badge {
  color: #86efac;
}

/* ============================================================
   START PAGE
   ============================================================ */
.start-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px calc(var(--nav-height) + 24px);
}

.start-header {
  margin-bottom: 28px;
}

.start-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.start-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: 8px;
}

.start-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 2x2 grid on mobile */
.start-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.start-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 14px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.1s ease;
  box-shadow: var(--shadow);
}

.start-card:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.start-card:active {
  transform: translateY(0);
}

.start-card-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.start-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.start-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.start-cta {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-hover)
  );
  border-radius: var(--radius);
  padding: 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.start-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #ffffff;
}

.start-cta-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.start-cta-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.start-cta-desc {
  font-size: 0.875rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* ============================================================
   WIZARD PAGE
   ============================================================ */
.wizard-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px calc(var(--nav-height) + 24px);
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.wizard-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background-color 0.2s ease, transform 0.2s ease, width 0.2s ease;
  flex-shrink: 0;
}

.wizard-dot.done {
  background: var(--color-primary);
  opacity: 0.5;
}

.wizard-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 999px;
  transform: none;
}

.wizard-count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.wizard-section {
  margin-bottom: 24px;
}

.wizard-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.wizard-section p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.wizard-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.wizard-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wizard-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.wizard-textarea::placeholder {
  color: var(--color-text-muted);
}

.wizard-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.wizard-nav .btn {
  flex: 1;
}

/* ============================================================
   OBJECTIVES PAGE
   ============================================================ */
.objectives-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px calc(var(--nav-height) + 24px);
}

.objectives-page .page-header {
  margin-bottom: 20px;
}

.objectives-page .page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.objectives-page .page-header p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVE — tablets / larger screens
   ============================================================ */
@media (min-width: 480px) {
  .app-container {
    padding: 0 24px;
  }

  .auth-container {
    padding: 40px 24px;
  }

  .start-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .start-title {
    font-size: 2rem;
  }

  .auth-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .app-main {
    padding: 32px 24px 32px;
  }

  .app-main.has-nav {
    padding-bottom: calc(var(--nav-height) + 32px);
  }

  .start-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius) var(--radius) 0 0;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.w-full { width: 100%; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================================
   THEME TOGGLE BUTTON (optional utility)
   ============================================================ */
.theme-toggle {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--color-primary);
  background: var(--color-surface-hover);
}

/* ============================================================
   Admin Panel
   ============================================================ */

.admin-cursanti-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-cursant {
  padding: 16px;
}

.admin-cursant-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-badge {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.admin-cursant-progress {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.admin-days {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-day {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.admin-day.completed {
  background: rgba(34, 197, 94, 0.1);
}

.admin-day.available {
  background: var(--color-primary-light);
}

.admin-day.locked {
  opacity: 0.5;
}

.admin-day-label {
  font-weight: 700;
  min-width: 24px;
  color: var(--color-primary);
}

.admin-day-name {
  flex: 1;
  color: var(--color-text);
}

.admin-day-status {
  font-size: 16px;
}

.btn-sm {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
}

/* Admin Details (expandable per cursant) */
.admin-details {
  margin-top: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.detail-section {
  margin-bottom: 16px;
}

.detail-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

.detail-item {
  margin-bottom: 10px;
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.detail-value {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Onboarding incomplete banner */
.onboarding-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-warning);
  color: #1a1a2e;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.onboarding-banner:hover {
  opacity: 0.9;
  color: #1a1a2e;
}

.onboarding-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.onboarding-banner-text strong {
  font-weight: 700;
}

/* ============================================================
   Top Bar
   ============================================================ */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-link {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.top-bar-link:hover {
  color: var(--color-primary);
  background: var(--color-surface-hover);
}

/* ============================================================
   TRACKER PAGE
   ============================================================ */

.tracker-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}

/* --- Streak --- */
.streak-card {
  padding: 16px 20px;
}

.streak-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.streak-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.streak-day-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.streak-day {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.streak-day.empty {
  background: var(--color-border);
  border: 2px solid transparent;
}

.streak-day.filled {
  background: var(--color-primary);
  border: 2px solid transparent;
}

.streak-day.today {
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.streak-day.empty.today {
  background: var(--color-primary-light);
}

.streak-day-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* --- Tracker form sections --- */
.tracker-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tracker-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 20px 0 12px;
}

/* --- AB Fields --- */
.ab-field {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}

.ab-field:last-of-type {
  margin-bottom: 0;
}

.ab-field-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.ab-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 32px;
}

.ab-desc {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.ab-buttons {
  display: flex;
  gap: 8px;
}

.ab-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}

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

.ab-btn.ab-yes.active {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
}

.ab-btn.ab-partial.active {
  background: #fef9c3;
  border-color: #eab308;
  color: #a16207;
}

.ab-btn.ab-no.active {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

[data-theme="dark"] .ab-btn.ab-yes.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
  color: #4ade80;
}

[data-theme="dark"] .ab-btn.ab-partial.active {
  background: rgba(234, 179, 8, 0.18);
  border-color: #eab308;
  color: #facc15;
}

[data-theme="dark"] .ab-btn.ab-no.active {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #f87171;
}

/* --- Slider --- */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

#slider-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 24px;
  text-align: center;
}

.tracker-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--color-primary) 0%,
    var(--color-primary) calc((var(--slider-pct, 44.4%))),
    var(--color-border) calc((var(--slider-pct, 44.4%)))
  );
  outline: none;
  cursor: pointer;
}

.tracker-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 1.5px var(--color-primary), var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.tracker-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 1.5px var(--color-primary), var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.tracker-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

/* --- Color buttons --- */
.color-buttons {
  display: flex;
  gap: 10px;
}

.color-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  font-family: var(--font-family);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

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

.color-btn-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--btn-color, #ccc);
  transition: transform 0.15s ease;
}

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

.color-btn.active {
  border-color: var(--btn-color, var(--color-primary));
  background: var(--color-surface);
}

.color-btn.active .color-btn-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.color-btn.active .color-btn-label {
  color: var(--color-text);
}

/* --- Save button --- */
.tracker-save-btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  font-size: 1rem;
}

/* --- GRS card --- */
.grs-card {
  margin-top: 4px;
  opacity: 0.7;
}

.grs-card.grs-card-active {
  opacity: 1;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.grs-card.grs-card-active:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.grs-card-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.grs-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.grs-card-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.grs-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.grs-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.grs-card-arrow {
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  flex-shrink: 0;
}

/* ============================================================
   GRS FORM / MONTHLY REPORT / SIMPLIFIED
   ============================================================ */

.grs-form-page,
.monthly-report-page,
.simplified-form-page {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 24px;
}

/* Readonly value block */
.grs-readonly-value {
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  min-height: 40px;
}

/* Tri-radio buttons (Da / Partial / Nu) */
.grs-tri-radio {
  display: flex;
  gap: 8px;
}

.grs-tri-btn {
  flex: 1;
  padding: 10px 6px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.grs-tri-btn:hover {
  border-color: var(--color-primary);
}

.grs-tri-btn.active.grs-tri-da {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
}

.grs-tri-btn.active.grs-tri-partial {
  background: #fef9c3;
  border-color: #f59e0b;
  color: #92400e;
}

.grs-tri-btn.active.grs-tri-nu {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

/* Generic active for non-typed tri-btns */
.grs-tri-btn.active:not(.grs-tri-da):not(.grs-tri-partial):not(.grs-tri-nu) {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* AB comparison table */
.grs-ab-table {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.grs-ab-header {
  display: flex;
  background: var(--color-surface);
  border-bottom: 1.5px solid var(--color-border);
  padding: 8px 0;
}

.grs-ab-header .grs-ab-col-label,
.grs-ab-header .grs-ab-col {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.grs-ab-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.grs-ab-row:last-child {
  border-bottom: none;
}

.grs-ab-col-label {
  width: 80px;
  flex-shrink: 0;
  padding-left: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.grs-ab-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Number input inside AB table */
.grs-num-field {
  display: flex;
  align-items: center;
  gap: 4px;
}

.grs-num-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.grs-num-input {
  width: 52px;
  padding: 6px 8px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  text-align: center;
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease;
}

.grs-num-input:focus {
  border-color: var(--color-primary);
}

.grs-readonly-num {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Checkboxes */
.grs-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grs-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--color-surface);
}

.grs-checkbox-label:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.grs-checkbox-label input[type="checkbox"] {
  accent-color: var(--color-primary);
}

/* Color buttons in GRS form */
.grs-color-buttons {
  justify-content: center;
  margin-top: 16px;
}

/* Review section */
.grs-review {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.grs-review-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  gap: 12px;
}

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

.grs-review-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  flex-shrink: 0;
  min-width: 90px;
}

.grs-review-value {
  font-size: 0.875rem;
  color: var(--color-text);
  text-align: right;
}

.grs-review-color.verde { color: #22c55e; font-weight: 700; }
.grs-review-color.galben { color: #f59e0b; font-weight: 700; }
.grs-review-color.rosu { color: #ef4444; font-weight: 700; }

/* Need type radio (simplified form) */
.sf-need-radio {
  flex-wrap: wrap;
}

.sf-need-radio .grs-tri-btn {
  min-width: calc(50% - 8px);
}

/* Monthly table readonly */
.grs-monthly-table .grs-ab-col {
  padding: 4px 0;
}

/* Dark mode overrides for GRS */
[data-theme="dark"] .grs-tri-btn.active.grs-tri-da {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #4ade80;
}

[data-theme="dark"] .grs-tri-btn.active.grs-tri-partial {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
}

[data-theme="dark"] .grs-tri-btn.active.grs-tri-nu {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #f87171;
}

[data-theme="dark"] .grs-checkbox-label:has(input:checked) {
  background: rgba(124, 58, 237, 0.15);
}

/* ============================================================
   COMMUNITY
   ============================================================ */

.community-page {
  padding-bottom: 8px;
}

/* --- Composer --- */
.post-composer {
  margin-bottom: 16px;
  padding: 14px;
}

.post-composer-textarea {
  resize: vertical;
  min-height: 80px;
  font-size: 0.9375rem;
}

.post-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}

.post-char-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.post-submit-btn {
  padding: 8px 20px;
  font-size: 0.9375rem;
}

/* --- Feed --- */
.community-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-empty {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  padding: 40px 16px;
}

/* --- Post card --- */
.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}

.post-card-pinned {
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 1.5px var(--color-primary-light), var(--shadow);
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.post-author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.post-actions-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.post-pin-btn,
.post-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.post-pin-btn:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.post-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

/* --- Badges --- */
.post-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.post-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.post-badge-pinned {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.post-badge-grs {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

[data-theme="dark"] .post-badge-grs {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

/* --- Content --- */
.post-content {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.65;
  word-break: break-word;
  white-space: pre-wrap;
  margin-bottom: 10px;
}

/* --- Footer / heart --- */
.post-footer {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  margin-top: 2px;
}

.heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.heart-btn:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.07);
  color: #ef4444;
}

.heart-btn.reacted {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.heart-btn:active {
  transform: scale(0.94);
}

.heart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.heart-icon {
  font-size: 1rem;
  line-height: 1;
}

.heart-count {
  font-weight: 600;
  min-width: 14px;
  text-align: left;
}

/* --- New posts banner --- */
.new-posts-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.new-posts-banner::before {
  content: '⬆️';
  font-size: 1rem;
}

.new-posts-banner-visible {
  transform: translateY(0);
  opacity: 1;
}

.new-posts-banner:hover {
  filter: brightness(1.08);
}

/* --- Announcement post style --- */
.post-card-announcement {
  background: linear-gradient(135deg, #f5f0ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
  box-shadow: 0 0 0 1.5px rgba(139, 92, 246, 0.2), var(--shadow);
}

[data-theme="dark"] .post-card-announcement {
  background: linear-gradient(135deg, rgba(88, 28, 235, 0.12) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-color: rgba(167, 139, 250, 0.4);
}

.post-card-announcement .post-content {
  font-size: 1rem;
  font-weight: 500;
}

.post-badge-announcement {
  background: rgba(139, 92, 246, 0.15);
  color: #6d28d9;
}

[data-theme="dark"] .post-badge-announcement {
  background: rgba(167, 139, 250, 0.2);
  color: #a78bfa;
}

/* --- Announcement checkbox in composer --- */
.post-announcement-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
}

.post-announcement-label input[type="checkbox"] {
  accent-color: #7c3aed;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* --- Composer footer layout update --- */
.post-composer-footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- Infinite scroll sentinel & spinner --- */
#infinite-scroll-sentinel {
  padding: 16px 0 8px;
}

.infinite-scroll-spinner {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

/* --- Post links --- */
.post-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--color-primary-rgb, 79, 70, 229), 0.4);
  word-break: break-all;
}

.post-link:hover {
  text-decoration-color: var(--color-primary);
}

/* --- Unread badge on bottom nav --- */
.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.25rem;
  line-height: 1;
}

.nav-unread-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--color-surface);
}

/* ============================================================
   MATERIALS PAGE
   ============================================================ */

.materials-page {
  padding-bottom: 8px;
}

/* --- Summary card --- */
.mat-summary {
  margin-bottom: 20px;
}

.mat-summary-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mat-summary-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.mat-summary-text {
  flex: 1;
  min-width: 0;
}

.mat-summary-count {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

.mat-summary-bar {
  height: 6px;
  background: var(--color-border);
  border-radius: 100px;
  overflow: hidden;
}

.mat-summary-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 100px;
  transition: width 0.4s ease;
}

.mat-summary-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Module list --- */
.mat-modules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Module accordion --- */
.mat-module {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.mat-module:not(.mat-module-locked):hover {
  box-shadow: var(--shadow-md);
}

.mat-module-locked {
  opacity: 0.65;
}

.mat-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  text-align: left;
  gap: 12px;
  color: var(--color-text);
  transition: background 0.15s ease;
}

.mat-module-header:not([disabled]):hover {
  background: var(--color-surface-hover);
}

.mat-module-header[disabled] {
  cursor: default;
}

.mat-module-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mat-module-num {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

.mat-module-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mat-module-header-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.mat-chevron {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.mat-module-header[aria-expanded="true"] .mat-chevron {
  transform: rotate(90deg);
}

.mat-lock-icon {
  font-size: 0.95rem;
}

.mat-locked-label {
  padding: 0 18px 14px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* --- Module body --- */
.mat-module-body {
  border-top: 1px solid var(--color-border);
  padding: 14px 18px 16px;
}

/* --- Module progress bar --- */
.mat-module-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mat-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--color-border);
  border-radius: 100px;
  overflow: hidden;
}

.mat-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 100px;
  transition: width 0.4s ease;
}

.mat-progress-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}

/* --- Material items --- */
.mat-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s ease;
  border-radius: var(--radius-sm);
}

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

.mat-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mat-item-name {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.35;
}

/* --- Status indicators --- */
.mat-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.mat-status-notstarted {
  background: var(--color-border);
}

.mat-status-inprogress {
  background: var(--color-warning);
}

.mat-status-completed {
  background: var(--color-success);
  color: #fff;
}

/* --- Toggle button --- */
.mat-toggle-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 4px 11px;
  font-family: var(--font-family);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.mat-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.mat-toggle-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mat-empty {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 4px 0;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}

/* --- Header card --- */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
}

.profile-header-info {
  flex: 1;
  min-width: 0;
}

.profile-header-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-header-email {
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.profile-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.profile-tier-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
}

.tier-group {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.tier-1on1 {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

[data-theme="dark"] .tier-1on1 {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.profile-member-since {
  font-size: 0.75rem;
}

/* --- Section cards --- */
.profile-card {
  /* inherits .card */
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.profile-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.profile-edit-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
}

.profile-edit-link:hover {
  color: var(--color-primary-hover);
}

.profile-empty {
  font-size: 0.875rem;
  padding: 4px 0;
}

/* --- Objectives --- */
.profile-obj-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.profile-obj-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.profile-obj-value {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.5;
}

.profile-obj-divider {
  height: 1px;
  background: var(--color-border);
  margin: 12px 0;
}

.profile-priority-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.priority-num {
  font-weight: 700;
  color: var(--color-primary);
  min-width: 18px;
  flex-shrink: 0;
}

.profile-declaration {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.65;
  font-style: italic;
  border-left: 3px solid var(--color-primary);
  padding-left: 12px;
  margin-top: 8px;
}

/* --- Mission & color history --- */
.profile-mission-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-mission-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-primary-light);
  flex-shrink: 0;
}

.mission-number {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.mission-day {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1;
  margin-top: 3px;
}

.profile-mission-info {
  flex: 1;
}

.profile-mission-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.profile-mission-sub {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.profile-color-history {
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.color-dots-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-dot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.color-dot {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}

.color-dot-item:hover .color-dot {
  transform: scale(1.15);
}

.color-dot-date {
  font-size: 0.6rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.2;
  max-width: 32px;
}

/* --- Settings --- */
.profile-settings-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.profile-settings-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-settings-group:first-child {
  padding-top: 0;
}

.profile-settings-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.profile-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.profile-inline-input {
  flex: 1;
  min-width: 0;
}

.profile-inline-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 0.875rem;
}

.profile-password-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-password-form .form-group {
  margin-bottom: 10px;
}

.profile-password-form .btn {
  margin-top: 4px;
  width: 100%;
}

/* --- Theme toggle row --- */
.profile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface-hover);
  cursor: pointer;
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.profile-theme-toggle:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.profile-theme-toggle:active {
  transform: scale(0.92);
}

/* ============================================================
   TODAY — Daily Mission Screen
   ============================================================ */

.today-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}

/* Mission header */
.today-mission-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.today-mission-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.today-mission-day {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.today-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.today-progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
  transition: width 0.4s ease;
  min-width: 4px;
}

.today-progress-pct {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Info cards */
.today-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.today-card-icon {
  font-size: 1.375rem;
  line-height: 1;
}

.today-card-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.today-card-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.today-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.today-card-value {
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
}

.today-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Post type badge */
.today-post-type-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  width: fit-content;
}

.today-post-type-servire {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1.5px solid rgba(34, 197, 94, 0.3);
}
[data-theme="dark"] .today-post-type-servire {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
}

.today-post-type-autenticitate {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
}
[data-theme="dark"] .today-post-type-autenticitate {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
}

.today-post-type-transformare {
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary);
  border: 1.5px solid rgba(124, 58, 237, 0.25);
}

.today-post-type-flex {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1.5px solid rgba(59, 130, 246, 0.25);
}
[data-theme="dark"] .today-post-type-flex {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
}

.today-post-type-reflectie {
  background: rgba(100, 116, 139, 0.1);
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}

/* Reflection blockquote */
.today-reflection {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  border-left: 3px solid var(--color-primary);
  padding-left: 14px;
  margin: 4px 0 0 0;
}

/* CTA button */
.today-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 20px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  margin-top: 4px;
}

.today-cta-btn:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
}

.today-cta-btn:active {
  transform: translateY(0);
}

/* Tracker done state */
.today-tracker-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1.5px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  color: #16a34a;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 4px;
}

[data-theme="dark"] .today-tracker-done {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.today-tracker-done-icon {
  font-size: 1.25rem;
}

/* ============================================
   Admin Extended Dashboard
   ============================================ */

/* Filter pills */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-filter-pill {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.admin-filter-pill.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Sort row */
.admin-sort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-sort-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-sort-btn:hover {
  color: var(--color-text);
}

.admin-sort-btn.active {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Cursant row (clickable list item) */
.admin-cursant-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
}

.admin-cursant-row:hover {
  opacity: 0.85;
}

.admin-cursant-name {
  font-size: 14px;
}

.admin-cursant-email {
  font-size: 12px;
}

.admin-module-label {
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: 4px;
}

.admin-last-active {
  font-size: 12px;
  margin-left: auto;
}

.admin-cursant-expanded {
  border-left: 3px solid var(--color-primary);
}

/* Color dots */
.admin-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin: 16px 0 0;
  overflow-x: auto;
}

.admin-tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.15s;
}

.admin-tab:hover {
  color: var(--color-text);
}

.admin-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.admin-tab-content {
  padding: 16px 0;
}

/* Expanded detail */
.admin-expanded-detail {
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
}

/* Mini table for tracker */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-mini-table th,
.admin-mini-table td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.admin-mini-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-reflection-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* GRS items */
.admin-grs-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.admin-grs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--color-surface);
  transition: background 0.15s;
}

.admin-grs-header:hover {
  background: var(--color-bg);
}

.admin-grs-week {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text);
}

.admin-grs-toggle {
  margin-left: auto;
  font-size: 14px;
  color: var(--color-text-muted);
}

.admin-grs-body {
  padding: 12px;
  border-top: 1px solid var(--color-border);
}

/* Intervention items */
.admin-intervention-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.admin-intervention-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.admin-intervention-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.admin-intervention-type--message {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.admin-intervention-type--call {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.admin-intervention-type--reset {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.admin-intervention-type--note {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.admin-intervention-channel {
  font-size: 12px;
  color: var(--color-text-muted);
}

.admin-intervention-note {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Observation form */
.admin-obs-form .form-group {
  margin-bottom: 12px;
}

.admin-obs-form .form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Color timeline */
.admin-color-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-color-timeline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.admin-color-timeline-date {
  color: var(--color-text-muted);
  font-size: 12px;
  min-width: 120px;
}

.admin-color-timeline-source {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.admin-color-timeline-reason {
  color: var(--color-text);
  font-size: 13px;
}

/* Admin form helpers */
.admin-form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-form-row .form-input {
  flex: 1;
}

.admin-add-form {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}
