/* ====================================================
   FitFlow – Workout Timer  |  style.css
   ==================================================== */

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

:root {
  --bg:          #0a0c14;
  --bg2:         #111422;
  --bg3:         #181c2e;
  --surface:     #1e2235;
  --surface2:    #252a42;
  --border:      rgba(255,255,255,.07);
  --accent:      #6c63ff;
  --accent2:     #ff6584;
  --accent3:     #43e97b;
  --rest-clr:    #f7971e;
  --text:        #f0f2ff;
  --text-muted:  #8b92b8;
  --radius:      18px;
  --shadow:      0 20px 60px rgba(0,0,0,.5);
  --font:        'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* subtle animated grid bg */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    linear-gradient(rgba(108,99,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 2rem;
  background: rgba(10,12,20,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: .5rem; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px; }

.header-nav { display: flex; gap: .5rem; margin: 0 auto; }
.nav-btn {
  padding: .45rem 1.2rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 30px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.nav-btn:hover { color: var(--text); border-color: var(--accent); }
.nav-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.cal-badge {
  padding: .35rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent2);
}

/* ---------- SCREENS ---------- */
.screen { display: none; position: relative; z-index: 1; }
.screen.active { display: block; }

/* ---------- PLANS SCREEN ---------- */
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { color: var(--text-muted); font-size: 1.1rem; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-card, var(--accent)) 0%, transparent 70%);
  opacity: .08;
  transition: opacity .25s;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.4); border-color: var(--accent); }
.plan-card:hover::before { opacity: .15; }
.plan-card:active { transform: scale(.97); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

.plan-emoji { font-size: 3rem; margin-bottom: 1rem; display: block; }
.plan-name { font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.plan-meta { display: flex; gap: 1rem; margin-bottom: .75rem; }
.plan-badge {
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  background: var(--surface2);
  color: var(--text-muted);
}
.plan-badge.diff-easy   { background: rgba(67,233,123,.15); color: #43e97b; }
.plan-badge.diff-medium { background: rgba(247,151,30,.15);  color: #f7971e; }
.plan-badge.diff-hard   { background: rgba(255,101,132,.15); color: #ff6584; }
.plan-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.plan-start-btn {
  margin-top: 1.25rem;
  width: 100%;
  padding: .7rem;
  background: linear-gradient(135deg, var(--accent), #8b53ff);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  user-select: none;
  pointer-events: none; /* card handles the click */
  transition: opacity .2s, transform .2s;
}
.plan-card:hover .plan-start-btn { opacity: .9; }

/* ---------- WEEKLY SPLIT COMPONENT ---------- */
.weekly-container {
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}
.weekly-header {
  margin-bottom: 1.25rem;
}
.weekly-header h2 {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.weekly-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.weekly-days {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.weekly-days::-webkit-scrollbar {
  height: 6px;
}
.weekly-days::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
.weekly-day-card {
  flex: 0 0 160px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.weekly-day-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--accent);
  opacity: 0.5;
  transition: opacity 0.3s, height 0.3s;
}
.weekly-day-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface);
}
.weekly-day-card:hover::before {
  opacity: 1;
  height: 6px;
}
.weekly-day-card .day-badge {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.weekly-day-card .day-emoji {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}
.weekly-day-card .day-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

/* ---------- CUSTOM BUILDER ---------- */
.custom-builder {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
}
.custom-builder h2 { font-size: 2rem; font-weight: 900; margin-bottom: 2rem; }
.builder-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.form-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.form-label { font-size: .9rem; color: var(--text-muted); display: flex; align-items: center; gap: .75rem; }
.form-select, .form-input {
  flex: 1;
  padding: .75rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.form-select:focus, .form-input:focus { border-color: var(--accent); }
.form-input.small { width: 80px; flex: none; }
.btn-add-ex {
  padding: .75rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-add-ex:hover { opacity: .85; }

.custom-ex-list { display: flex; flex-direction: column; gap: .5rem; }
.custom-ex-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
}
.custom-ex-item .ex-icon { font-size: 1.4rem; }
.custom-ex-item .ex-info { flex: 1; }
.custom-ex-item .ex-info strong { display: block; }
.custom-ex-item .ex-info small { color: var(--text-muted); }
.custom-ex-item .del-btn {
  background: none; border: none; color: var(--accent2); cursor: pointer; font-size: 1.1rem; padding: 0 .25rem;
}

.btn-start-custom {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; border-radius: 12px;
  color: #fff; font-family: var(--font); font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: opacity .2s, transform .2s;
}
.btn-start-custom:hover:not(:disabled) { opacity: .9; transform: scale(1.01); }
.btn-start-custom:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- ACTIVE WORKOUT ---------- */
.workout-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  min-height: calc(100vh - 60px);
  gap: 0;
}

/* ---- QUEUE PANEL ---- */
.queue-panel {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.queue-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.25rem .75rem;
  font-weight: 700; font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.queue-count { font-size: .8rem; color: var(--text-muted); background: var(--surface); padding: .2rem .6rem; border-radius: 10px; }
.queue-list {
  list-style: none; overflow-y: auto;
  flex: 1; padding: .5rem 0;
}
.queue-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem;
  border-left: 3px solid transparent;
  transition: background .2s;
  cursor: default;
}
.queue-item.active-ex {
  background: rgba(108,99,255,.15);
  border-left-color: var(--accent);
}
.queue-item.done-ex { opacity: .35; }
.queue-item.rest-item { opacity: .6; }
.queue-item-emoji { font-size: 1.4rem; }
.queue-item-info { flex: 1; min-width: 0; }
.queue-item-info strong { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item-info small { color: var(--text-muted); font-size: .75rem; }
.queue-item-check { color: var(--accent3); font-size: .9rem; }

/* ---- TIMER PANEL ---- */
.timer-panel {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 1rem;
  background: var(--bg);
}

.phase-badge {
  padding: .35rem 1.4rem;
  border-radius: 30px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all .4s;
}
.phase-badge.exercise {
  background: rgba(108,99,255,.2);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.phase-badge.rest {
  background: rgba(247,151,30,.2);
  color: var(--rest-clr);
  border: 1px solid var(--rest-clr);
}
.phase-badge.complete {
  background: rgba(67,233,123,.2);
  color: var(--accent3);
  border: 1px solid var(--accent3);
}

.exercise-name {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: -.5px;
}
.exercise-detail {
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Ring */
.ring-container {
  position: relative; width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.ring-svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--surface2); stroke-width: 12; }
.ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 597;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s linear, stroke .4s;
  filter: drop-shadow(0 0 8px var(--accent));
}
.ring-progress.rest { stroke: var(--rest-clr); filter: drop-shadow(0 0 8px var(--rest-clr)); }

.ring-center {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.timer-display {
  font-size: 3.2rem; font-weight: 900; letter-spacing: -2px; line-height: 1;
}
.timer-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; margin-top: .2rem; }

.ex-emoji {
  font-size: 3rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* Controls */
.controls { display: flex; align-items: center; gap: 1rem; }
.ctrl-btn {
  width: 52px; height: 52px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.ctrl-btn:hover { background: var(--surface2); transform: scale(1.08); }
.ctrl-btn.primary {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), #8b53ff);
  border-color: transparent;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(108,99,255,.4);
}

/* Overall progress */
.overall-progress { width: 100%; max-width: 360px; }
.prog-labels {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: var(--text-muted);
  margin-bottom: .4rem;
}
.prog-bar-track {
  height: 6px; border-radius: 4px;
  background: var(--surface2);
  overflow: hidden;
}
.prog-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%; transition: width .6s ease;
}

.btn-end {
  padding: .5rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255,101,132,.3);
  border-radius: 30px;
  color: var(--accent2);
  font-family: var(--font); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-end:hover { background: rgba(255,101,132,.1); border-color: var(--accent2); }

/* ---- NEXT PANEL ---- */
.next-panel {
  background: var(--bg2);
  border-left: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.next-header { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }
.next-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all .4s;
}
.next-emoji { font-size: 3rem; margin-bottom: .75rem; }
.next-name { font-size: 1.1rem; font-weight: 800; margin-bottom: .35rem; }
.next-duration { font-size: .85rem; color: var(--text-muted); }

.stats-panel {
  display: flex; gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem .75rem;
  margin-top: auto;
}
.stat-item { flex: 1; text-align: center; }
.stat-value { font-size: 1.6rem; font-weight: 900; }
.stat-label { font-size: .7rem; color: var(--text-muted); margin-top: .2rem; }

/* ---------- DONE SCREEN ---------- */
#screen-done { text-align: center; }
.done-container {
  max-width: 500px;
  margin: 6rem auto;
  padding: 2rem;
}
.done-trophy {
  font-size: 5rem;
  animation: bounceIn 1s cubic-bezier(.36,.07,.19,.97);
  display: inline-block;
  margin-bottom: 1rem;
}
@keyframes bounceIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  80%  { transform: scale(.95); }
  100% { transform: scale(1); opacity: 1; }
}
.done-title { font-size: 2.5rem; font-weight: 900; margin-bottom: .5rem; }
.done-sub { color: var(--text-muted); margin-bottom: 2rem; }
.done-stats {
  display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 2.5rem;
}
.done-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  min-width: 100px;
}
.done-stat span { font-size: 2.5rem; font-weight: 900; display: block; }
.done-stat small { color: var(--text-muted); font-size: .85rem; }
.done-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-done {
  padding: .75rem 2rem;
  border-radius: 12px;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
.btn-done.primary { background: linear-gradient(135deg, var(--accent), #8b53ff); border: none; color: #fff; }
.btn-done:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }

/* ---------- ANIMATIONS ---------- */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.plan-card { animation: slideIn .4s ease both; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .workout-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  .queue-panel {
    border-right: none; border-bottom: 1px solid var(--border);
    max-height: 180px;
  }
  .queue-list { flex-direction: row; display: flex; overflow-x: auto; overflow-y: hidden; padding: .5rem; }
  .queue-item { flex-direction: column; gap: .25rem; text-align: center; min-width: 90px; border-left: none; border-bottom: 3px solid transparent; }
  .queue-item.active-ex { border-bottom-color: var(--accent); border-left: none; background: rgba(108,99,255,.1); }
  .next-panel { border-left: none; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 580px) {
  .plans-grid { gap: 1rem; padding: 1rem; grid-template-columns: 1fr; }
  .header { padding: .8rem 1rem; }
  .hero { padding: 2rem 1rem 1rem; }
  .next-panel { grid-template-columns: 1fr; }
  .done-stats { flex-direction: column; align-items: center; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ---------- CATEGORY CHIPS ON PLAN CARDS ---------- */
.plan-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .65rem;
}
.plan-cat-chip {
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(108,99,255,.12);
  color: var(--accent);
  border: 1px solid rgba(108,99,255,.25);
  letter-spacing: .3px;
  white-space: nowrap;
}

/* ---------- EXERCISE VISUAL PANEL ---------- */
.ex-visual-panel {
  width: 100%;
  max-width: 340px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  transition: border-color .3s;
}
.ex-visual-panel.loaded { border-color: rgba(108,99,255,.3); }

/* Wger image */
.visual-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  animation: fadeIn .4s ease;
}

/* Skeleton loader */
.visual-skeleton {
  width: 100%; height: 100%;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}
.skeleton-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.06) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* CSS Fallback container */
.visual-fallback {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: 4.5rem;
  background: var(--surface);
}
.breathe-label {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .5px;
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- CSS FALLBACK ANIMATIONS ---- */

/* Cardio: bouncing jump */
.anim-jump span {
  display: inline-block;
  animation: jumpAnim 0.6s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
@keyframes jumpAnim {
  0%   { transform: translateY(0) scale(1,1); }
  100% { transform: translateY(-28px) scale(.95,1.08); }
}

/* Upper body: push-up bob */
.anim-pushup span {
  display: inline-block;
  animation: pushupAnim .8s ease-in-out infinite alternate;
}
@keyframes pushupAnim {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(10px) rotate(-5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Lower body: squat */
.anim-squat span {
  display: inline-block;
  animation: squatAnim .9s ease-in-out infinite alternate;
}
@keyframes squatAnim {
  0%   { transform: scaleY(1) translateY(0); }
  100% { transform: scaleY(.82) translateY(14px); }
}

/* Core: plank pulse */
.anim-plank span {
  display: inline-block;
  animation: plankAnim 1.5s ease-in-out infinite;
}
@keyframes plankAnim {
  0%,100% { transform: rotate(0deg) scale(1); }
  50%     { transform: rotate(-8deg) scale(1.05); }
}

/* Mobility: gentle stretch */
.anim-stretch span {
  display: inline-block;
  animation: stretchAnim 2s ease-in-out infinite alternate;
}
@keyframes stretchAnim {
  0%   { transform: scale(1) rotate(-5deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}

/* Rest: breathe in/out */
.anim-breathe span {
  display: inline-block;
  animation: breatheAnim 3s ease-in-out infinite;
}
@keyframes breatheAnim {
  0%,100% { transform: scale(1);    opacity: .8; }
  50%     { transform: scale(1.25); opacity: 1;  }
}

/* Generic pulse */
.anim-pulse span {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.flip-h { transform: scaleX(-1); }
