/* ============================================================
   IA — Intersubjective Actualization
   Minimal, clean, purposeful design
   ============================================================ */

:root {
  --bg:          #080810;
  --bg-card:     #11111f;
  --bg-card2:    #18182c;
  --bg-input:    #1e1e30;
  --primary:     #7c6fff;
  --primary-dim: rgba(124,111,255,0.15);
  --accent:      #38f9d7;
  --accent-dim:  rgba(56,249,215,0.12);
  --danger:      #ff6b6b;
  --warning:     #ffd93d;
  --success:     #43e97b;
  --text:        #eeeef5;
  --text-muted:  #8888aa;
  --text-dim:    #44445a;
  --border:      #1e1e32;
  --border-light:#2a2a42;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --transition:  all 0.2s cubic-bezier(0.4,0,0.2,1);
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(124,111,255,0.2);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.15; }
h2 { font-size: 22px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 16px; font-weight: 600; }
p  { line-height: 1.65; }

.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #7c6fff, #38f9d7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.screen {
  display: none;
  min-height: 100vh;
}
.screen.active { display: flex; flex-direction: column; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,111,255,0.35);
}
.btn-primary:hover { background: #8f85ff; box-shadow: 0 6px 28px rgba(124,111,255,0.5); transform: translateY(-1px); }
.btn-primary:active { transform: none; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 14px;
  font-size: 13px;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card2); }

.btn-danger {
  background: rgba(255,107,107,0.12);
  color: var(--danger);
  border: 1px solid rgba(255,107,107,0.25);
}
.btn-danger:hover { background: rgba(255,107,107,0.22); }

.btn-full { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---- FORM ELEMENTS ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.form-input,
.form-select,
.form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,111,255,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%238888aa' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.form-select option { background: var(--bg-card2); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 2px; display: none; }
.form-error.show { display: block; }

/* ---- CARD ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-sm { padding: 18px 20px; }

/* ---- DIVIDER ---- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 12px;
  margin: 20px 0;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- BADGE ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-waiting  { background: rgba(255,217,61,0.12); color: var(--warning); }
.badge-committed{ background: rgba(124,111,255,0.15); color: #a78bfa; }
.badge-active   { background: rgba(56,249,215,0.12); color: var(--accent); }
.badge-expired  { background: rgba(255,107,107,0.12); color: var(--danger); }

/* ---- AVATAR ---- */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  flex-shrink: 0;
  color: white;
}
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 52px; height: 52px; font-size: 20px; }

/* ---- CODE DISPLAY ---- */
.code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 24px;
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: 'Courier New', monospace;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 8px;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(56,249,215,0.4);
}
.code-char {
  display: inline-block;
  animation: codePulse 2s ease-in-out infinite;
}
.code-char:nth-child(2) { animation-delay: 0.1s; }
.code-char:nth-child(3) { animation-delay: 0.2s; }
.code-char:nth-child(4) { animation-delay: 0.3s; }
.code-char:nth-child(5) { animation-delay: 0.4s; }
.code-char:nth-child(6) { animation-delay: 0.5s; }
@keyframes codePulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ---- MEMBER SLOT ---- */
.member-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.member-slot.filled {
  border-color: rgba(124,111,255,0.3);
  background: rgba(124,111,255,0.05);
}
.member-slot.empty {
  opacity: 0.5;
  border-style: dashed;
}
.member-slot-info { flex: 1; min-width: 0; }
.member-slot-name { font-size: 15px; font-weight: 600; }
.member-slot-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.member-slot-status { font-size: 18px; }

/* ---- COMMITMENT CHECK ---- */
.commit-check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.commit-check:hover { border-color: var(--primary); background: var(--primary-dim); }
.commit-check.checked { border-color: var(--accent); background: var(--accent-dim); }
.commit-check-box {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--transition);
}
.commit-check.checked .commit-check-box {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.commit-check-text { font-size: 14px; font-weight: 500; }

/* ---- TOOL CARD ---- */
.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}
.tool-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card);
  transform: translateY(-1px);
}
.tool-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tool-card-info { flex: 1; min-width: 0; }
.tool-card-label { font-size: 14px; font-weight: 600; }
.tool-card-url {
  font-size: 11px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.tool-card-actions { display: flex; gap: 4px; }
.tool-card-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none; background: transparent;
  color: var(--text-muted);
  cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.tool-card-btn:hover { background: var(--bg-card); color: var(--text); }
.tool-card-btn.delete:hover { background: rgba(255,107,107,0.12); color: var(--danger); }

/* ---- EMPTY TOOL SLOT ---- */
.tool-slot-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dim);
  font-size: 13px;
}
.tool-slot-empty:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }

/* ---- PROGRESS BAR ---- */
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ---- TIMER ---- */
.timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.timer.warning { color: var(--warning); }
.timer.expired { color: var(--danger); }

/* ---- TOAST ---- */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: slideUp 0.25s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 320px;
  min-width: 220px;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--primary); }
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header h2 { font-size: 18px; }
.modal-header p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.modal-close {
  width: 30px; height: 30px;
  border-radius: 6px; border: none;
  background: var(--bg-card2); color: var(--text-muted);
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.modal-close:hover { background: var(--border-light); color: var(--text); }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }

/* ---- SECTION HEADER ---- */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
}

/* ============================================================
   SCREEN: HOME
   ============================================================ */
#home-screen {
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(124,111,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(56,249,215,0.07) 0%, transparent 50%),
    var(--bg);
}

.home-inner {
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; gap: 0;
}

.home-logo {
  text-align: center;
  margin-bottom: 40px;
}
.home-logo-mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #7c6fff, #38f9d7);
  border-radius: 20px;
  font-size: 30px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(124,111,255,0.35);
}
.home-logo h1 {
  font-size: 36px; font-weight: 900; letter-spacing: -1px;
}
.home-logo p {
  font-size: 13px; color: var(--text-muted);
  letter-spacing: 0.5px; margin-top: 6px;
}

.home-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.home-actions {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 4px;
}

.home-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
}
.home-footer a { color: var(--text-dim); text-decoration: none; }
.home-footer a:hover { color: var(--text-muted); }

/* ============================================================
   SCREEN: WAITING ROOM
   ============================================================ */
#waiting-screen {
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,111,255,0.1) 0%, transparent 55%),
    var(--bg);
}

.waiting-inner {
  width: 100%; max-width: 500px;
  display: flex; flex-direction: column; gap: 24px;
}

.waiting-header { text-align: center; }
.waiting-header .project-icon {
  font-size: 48px; margin-bottom: 12px;
}
.waiting-header h2 { margin-bottom: 6px; }
.waiting-header p { color: var(--text-muted); font-size: 14px; }

.waiting-members {
  display: flex; flex-direction: column; gap: 8px;
}

.waiting-code-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.waiting-code-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.6px; margin-bottom: 14px;
}
.waiting-code-actions {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 14px;
}
.waiting-code-expiry {
  font-size: 12px; color: var(--text-dim);
  margin-top: 10px;
}

.waiting-progress {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.waiting-progress-label {
  display: flex; justify-content: space-between;
  font-size: 13px; margin-bottom: 10px;
}
.waiting-progress-label span:last-child { color: var(--text-muted); }

/* ============================================================
   SCREEN: COMMITMENT
   ============================================================ */
#commit-screen {
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(124,111,255,0.15) 0%, transparent 60%),
    var(--bg);
}

.commit-inner {
  width: 100%; max-width: 520px;
  display: flex; flex-direction: column; gap: 24px;
}

.commit-hero {
  text-align: center;
  padding: 16px 0;
}
.commit-hero .ritual-icon {
  font-size: 56px; margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.commit-hero h2 { font-size: 26px; margin-bottom: 8px; }
.commit-hero p { color: var(--text-muted); font-size: 15px; max-width: 380px; margin: 0 auto; }

.commit-members {
  display: flex; flex-direction: column; gap: 8px;
}

.commit-date {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.commit-date h3 { margin-bottom: 12px; font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.commit-your-turn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

/* ============================================================
   SCREEN: ACTIVE PROJECT
   ============================================================ */
#active-screen {
  flex-direction: column;
  min-height: 100vh;
}

/* NAV */
.project-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  flex-shrink: 0;
}
.project-nav-left {
  display: flex; align-items: center; gap: 14px;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #7c6fff, #38f9d7);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.nav-brand { font-size: 14px; font-weight: 800; }
.nav-sep { width: 1px; height: 20px; background: var(--border); }
.nav-project-name { font-size: 14px; font-weight: 600; color: var(--text-muted); max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-nav-right { display: flex; align-items: center; gap: 10px; }

/* ACTIVE BODY */
.active-body {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  height: calc(100vh - 60px);
}

/* LEFT PANEL */
.left-panel {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.left-panel-inner {
  flex: 1; overflow-y: auto;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 24px;
}

/* RIGHT PANEL */
.right-panel {
  overflow-y: auto;
  padding: 28px 32px;
  display: flex; flex-direction: column; gap: 28px;
}

/* TOOL CATEGORIES */
.tool-category { display: flex; flex-direction: column; gap: 8px; }
.tool-category-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.tool-category-name {
  font-size: 12px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 6px;
}

/* MEMBERS PANEL */
.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.member-row-info { flex: 1; min-width: 0; }
.member-row-name { font-size: 13px; font-weight: 600; }
.member-row-you { font-size: 10px; color: var(--primary); font-weight: 600; }

/* PROJECT INFO CARD */
.project-info-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.project-info-name {
  font-size: 17px; font-weight: 700; margin-bottom: 4px;
}
.project-info-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}
.project-info-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.info-chip {
  font-size: 11px; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 100px;
  display: flex; align-items: center; gap: 4px;
}

/* WELCOME BANNER */
.welcome-banner {
  background: linear-gradient(135deg, rgba(124,111,255,0.15), rgba(56,249,215,0.08));
  border: 1px solid rgba(124,111,255,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.welcome-banner h3 { font-size: 16px; margin-bottom: 4px; }
.welcome-banner p { font-size: 13px; color: var(--text-muted); }

/* TOOL SUGGESTION CHIPS */
.suggestion-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
}
.suggestion-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 100px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  color: var(--text-muted);
}
.suggestion-chip:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-dim);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .active-body { grid-template-columns: 1fr; }
  .left-panel { display: none; }
  .right-panel { padding: 20px 16px; }
}

/* ANIMATIONS */
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}