/* =====================================================================
   custom.css — J'aime AgriVoice  (v2 — Pro, no emojis)
   ===================================================================== */

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #196E3F;
  --green-dark:  #12472B;
  --green-xdark: #0B2919;
  --green-light: #EBF5F0;
  --green-mid:   #BBD9C8;
  --yellow:      #D97706;
  --yellow-light:#FEF3C7;
  --blue:        #2563EB;
  --blue-light:  #EFF6FF;
  --bg:          #F7F9F8;
  --surface:     #FFFFFF;
  --border:      #E2ECE6;
  --text:        #12472B;
  --muted:       #64748B;
  --muted-light: #94A3B8;
  --red:         #DC2626;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --shadow:      0 2px 12px rgba(18,71,43,.07);
  --shadow-md:   0 6px 24px rgba(18,71,43,.10);
  --shadow-lg:   0 12px 40px rgba(18,71,43,.13);
  --font:        "Plus Jakarta Sans", sans-serif;
  --transition:  .18s ease;
}

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--green-light); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 4px; }

/* ── Typography ────────────────────────────────────────────────────── */
.text-display { font-size: 2.5rem; font-weight: 900; line-height: 1.1; }
.text-heading  { font-size: 1.4rem;  font-weight: 800; line-height: 1.2; }
.text-label    { font-size: .7rem;   font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ── Layout ────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 680px;  margin: 0 auto; padding: 0 1.25rem; }

/* ── Card ──────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card-header-clean {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFCFA;
}
.card-title-clean {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}
.card-title-clean svg {
  width: 17px;
  height: 17px;
  color: var(--green);
}

/* ── Pills & Category Chips ────────────────────────────────────────── */
.pill-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.pill-list::-webkit-scrollbar { height: 3px; }
.pill-list::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 999px; }

.pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pill:hover:not(.active) {
  border-color: var(--green-mid);
  color: var(--green-dark);
  background: var(--green-light);
}
.pill.active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(25,110,63,0.25);
}

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.nav-logo-text p { font-weight: 900; font-size: 1.05rem; color: var(--text); line-height: 1.1; margin-bottom: 2px; }
.nav-logo-text span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-link.active {
  background: var(--green-light); color: var(--green);
}
.nav-score {
  background: var(--green); color: #fff;
  padding: 5px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; gap: 6px;
}

/* ── Gate (Ecran nom) ──────────────────────────────────────────────── */
.gate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.gate-card {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.gate-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}
.gate-header img { margin-bottom: 1rem; }
.gate-header svg { width: 56px; height: 56px; color: rgba(255,255,255,.9); margin-bottom: 1rem; }
.gate-header h1 { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: .4rem; }
.gate-header p  { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.5; }
.gate-body { padding: 2rem; }
.gate-body p { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.6; }

@media (max-width: 640px) {
  .gate-overlay { padding: 1rem; }
  .gate-card { border-radius: 16px; }
  .gate-header { padding: 1.5rem 1.25rem 1rem; }
  .gate-header img { width: 72px !important; height: 72px !important; margin-bottom: 0.75rem !important; border-radius: 16px !important; }
  .gate-header h1 { font-size: 1.35rem; margin-bottom: 0.25rem; }
  .gate-header p { font-size: 0.8rem; line-height: 1.3; }
  .gate-body { padding: 1.25rem; }
  .gate-body p { font-size: 0.78rem; margin-bottom: 0.85rem; line-height: 1.4; }
  .input-field { padding: 10px 14px; font-size: 0.85rem; }
}

.input-field {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  color: var(--text); background: var(--bg);
  transition: var(--transition); outline: none;
}
.input-field:focus { border-color: var(--green); background: var(--surface); }
.btn-primary {
  width: 100%; padding: 13px; border-radius: var(--radius);
  background: var(--green); color: #fff;
  font-family: var(--font); font-size: .9rem; font-weight: 800;
  border: none; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: .875rem;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 16px; height: 16px; }

/* ── Lang Selector ─────────────────────────────────────────────────── */
.lang-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: .625rem; }
.lang-btn {
  display: flex; align-items: center; justify-content: center;
  padding: .7rem .5rem;
  border-radius: 12px;
  border: 2px solid var(--border); background: var(--surface);
  cursor: pointer; transition: var(--transition);
  font-family: var(--font); font-size: .84rem; font-weight: 800;
  color: var(--muted); min-height: 46px;
}
.lang-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.lang-btn.active-fon    { border-color: var(--green);  background: var(--green-dark); color: #fff; }
.lang-btn.active-yoruba { border-color: var(--yellow); background: var(--yellow);     color: #fff; }
.lang-btn.active-french { border-color: var(--blue);   background: var(--blue);       color: #fff; }
/* cache les icônes — on ne garde que le texte */
.lang-btn .lang-dot { display: none; }
.lang-btn .lang-label {
  font-size: .84rem; font-weight: 800;
  color: inherit;
}

/* ── Word Card ─────────────────────────────────────────────────────── */
.word-card-header {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.word-badge {
  font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.badge-fon    { background: var(--green-light); color: var(--green);  }
.badge-yoruba { background: var(--yellow-light);color: var(--yellow); }
.badge-french { background: var(--blue-light);  color: var(--blue);   }

.word-main { padding: 2rem 1.5rem 1.5rem; text-align: center; }
.word-title { font-size: 3.5rem; font-weight: 900; line-height: 1; color: var(--text); }
.word-phonetic { font-size: 1.1rem; color: var(--muted); font-weight: 500; margin-top: .4rem; }
.word-meaning { font-size: .9rem; color: var(--green); font-weight: 700; margin-top: .3rem; }

/* ── Recorder Zone ─────────────────────────────────────────────────── */
.recorder-zone {
  padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}

/* Visualiseur canvas */
.wave-container {
  width: 100%; height: 56px;
  background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.wave-placeholder {
  font-size: .75rem; color: var(--muted-light);
  position: absolute; pointer-events: none;
}
#waveCanvas { display: block; width: 100%; height: 100%; }

/* Timer + Mic Button */
.mic-wrapper { width: 96px; height: 96px; position: relative; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.mic-timer-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; width: 96px; height: 96px; }
.timer-circle {
  fill: none; stroke-width: 4; stroke-linecap: round;
  transform-origin: 50% 50%; transform: rotate(-90deg);
  transition: stroke-dashoffset .08s linear;
}
.timer-track   { stroke: var(--border); }
.timer-fill    { stroke: var(--green); }

.mic-btn {
  width: 80px; height: 80px; border-radius: 50%;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); position: relative; z-index: 1;
}
.mic-btn svg { width: 32px; height: 32px; }
.mic-idle   { background: var(--green); color: #fff; }
.mic-idle:hover { background: var(--green-dark); transform: scale(1.05); }
.mic-record { background: var(--red);   color: #fff; }
.mic-done   { background: var(--green-dark); color: #fff; }

/* Mic pulse animations */
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(25,110,63,.4); }
  60%      { box-shadow: 0 0 0 14px rgba(25,110,63,0); }
}
@keyframes pulse-red {
  0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.5); }
  60%      { box-shadow: 0 0 0 16px rgba(220,38,38,0); }
}
.mic-idle   { animation: pulse-green 2.5s ease infinite; }
.mic-record { animation: pulse-red   1s   ease infinite; }

@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.animate-pulse { animation: pulseOpacity 1.5s ease-in-out infinite; }

/* ── Waves animation pour dashboard (validate.html) ── */
@keyframes wave-bounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.8); background-color: var(--green); }
}
.wave-bar { transform-origin: center; transition: all 0.3s; }
.wave-bar.playing {
  animation: wave-bounce 1s infinite ease-in-out;
}
.wave-bar.playing:nth-child(even) {
  animation-duration: 0.7s;
  animation-delay: 0.1s;
}
.wave-bar.playing:nth-child(3n) {
  animation-duration: 1.2s;
  animation-delay: 0.2s;
}

/* Status text */
.mic-status {
  font-size: .85rem; font-weight: 700; color: var(--muted);
  text-align: center; min-height: 1.2rem;
}
.mic-status.recording { color: var(--red); }
.mic-status.done      { color: var(--green); }

/* Post-record actions */
.post-actions {
  display: none; flex-direction: column; align-items: center; gap: .75rem; width: 100%;
}
.post-actions.visible { display: flex; }

.btn-row { display: flex; gap: .75rem; width: 100%; max-width: 320px; }
.btn-outline {
  flex: 1; padding: 10px 16px; border-radius: var(--radius);
  border: 2px solid var(--border); background: var(--surface);
  font-family: var(--font); font-size: .82rem; font-weight: 700;
  color: var(--muted); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.btn-outline svg { width: 14px; height: 14px; }
.btn-outline-green {
  flex: 1; padding: 10px 16px; border-radius: var(--radius);
  border: 2px solid var(--green); background: var(--green-light);
  font-family: var(--font); font-size: .82rem; font-weight: 700;
  color: var(--green); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-outline-green svg { width: 14px; height: 14px; }

.btn-send {
  width: 100%; max-width: 320px; padding: 13px;
  border-radius: var(--radius); background: var(--green); color: #fff;
  font-family: var(--font); font-size: .9rem; font-weight: 800;
  border: none; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-send:hover { background: var(--green-dark); }
.btn-send:disabled { opacity: .6; cursor: not-allowed; }
.btn-send svg { width: 16px; height: 16px; }

/* After-send choices */
.after-send {
  display: none; flex-direction: column; align-items: center; gap: .75rem; width: 100%;
}
.after-send.visible { display: flex; }
.after-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.btn-choice {
  width: 100%; max-width: 320px; padding: 12px 16px;
  border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--surface); font-family: var(--font);
  font-size: .85rem; font-weight: 700; color: var(--text);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: space-between;
}
.btn-choice:hover { border-color: var(--green); background: var(--green-light); color: var(--green); }
.btn-choice svg { width: 16px; height: 16px; }

/* ── Stats Strip ────────────────────────────────────────────────────── */
.stats-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.stat-item { padding: .875rem; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 1.5rem; font-weight: 900; color: var(--text); }
.stat-value.green  { color: var(--green);  }
.stat-value.yellow { color: var(--yellow); }
.stat-label { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── Word list sidebar ─────────────────────────────────────────────── */
/* ── Word list sidebar ─────────────────────────────────────────────── */
.word-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.15rem; cursor: pointer; transition: var(--transition);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.word-list-item:hover { background: #F8FAF9; }
.word-list-item.current {
  background: var(--green-light);
  border-left: 3.5px solid var(--green);
}
.word-list-item .wli-word { font-weight: 800; font-size: .92rem; color: var(--green-dark); }
.word-list-item .wli-meta { font-size: .74rem; color: var(--muted); margin-top: 3px; font-weight: 500; }
.word-list-item .wli-count {
  font-size: .78rem; font-weight: 800; color: var(--green);
  background: #ffffff; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--green-mid);
  box-shadow: 0 1px 4px rgba(25,110,63,0.08);
}

/* ── Progress bar ──────────────────────────────────────────────────── */
.progress-track { width: 100%; height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 5px; }
.progress-fill  { height: 100%; border-radius: 999px; background: var(--green); transition: width .8s ease; }

/* ── Leaderboard ────────────────────────────────────────────────────── */
.lb-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1.25rem; border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.lb-row:hover { background: #F8FAF9; }
.lb-row.me    { background: var(--green-light); border-left: 3.5px solid var(--green); }
.lb-rank {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .85rem; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.rank-1 { background: #FCD34D; color: #78350F; border: 1.5px solid #F59E0B; }
.rank-2 { background: #E2E8F0; color: #334155; border: 1.5px solid #CBD5E1; }
.rank-3 { background: #FED7AA; color: #7C2D12; border: 1.5px solid #FDBA74; }
.rank-n { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.lb-name { flex: 1; font-weight: 800; font-size: .9rem; color: var(--green-dark); }
.lb-me-tag {
  font-size: .68rem; font-weight: 800; background: var(--green);
  color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 6px;
  display: inline-block;
}
.lb-validated { font-weight: 900; font-size: 1.05rem; color: var(--green); }
.lb-pending   { font-size: .72rem; color: var(--muted); margin-top: 1px; font-weight: 600; }

/* ── Hero banner with Agriculteur background & animations ─────────── */
.hero {
  position: relative;
  background-color: var(--green-xdark);
  background-image: url('../assets/agriculteur_banner.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 30%;
  color: #fff;
  padding: 1.75rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 41, 25, 0.94) 0%,
    rgba(18, 71, 43, 0.84) 50%,
    rgba(25, 110, 63, 0.50) 100%
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.hero-text-col {
  flex: 1;
  min-width: 260px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(235, 245, 240, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #A7F3D0;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}
.hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: pulseConcentric 2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-sub {
  font-size: clamp(0.78rem, 1.8vw, 0.88rem);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.35rem;
  max-width: 580px;
  line-height: 1.45;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  min-width: 290px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 0.7rem 0.6rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.hero-stat:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}
.hero-stat-val { font-size: 1.45rem; font-weight: 900; color: #fff; line-height: 1.1; }
.hero-stat-lbl { font-size: 0.65rem; color: rgba(255, 255, 255, 0.85); font-weight: 700; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }

/* ── Keyframes & Micro-animations ─────────────────────────────────── */
@keyframes pulseConcentric {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.animate-float {
  animation: floatSoft 3.5s ease-in-out infinite;
}

/* ── Modern App Banner (JaimeMaLangue impact card) ───────────────── */
.app-banner {
  background: linear-gradient(135deg, rgba(27,106,59,0.08) 0%, rgba(245,158,11,0.12) 100%);
  border: 1.5px solid rgba(27,106,59,0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.app-banner:hover {
  border-color: var(--green);
  box-shadow: 0 6px 20px rgba(25,110,63,0.08);
}
.app-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(27,106,59,0.3);
}
.app-banner-icon svg { width: 28px; height: 28px; color: #fff; }
.app-banner-content { flex: 1; min-width: 0; }
.app-banner-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 2px;
}
.app-banner-sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.app-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-dark);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ── Bottom Floating Bar (Mobile Navigation) ──────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 8px 1rem calc(8px + env(safe-area-inset-bottom));
  z-index: 150;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.07);
}
.bottom-nav-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.15s ease;
}
.bottom-nav-item:active svg { transform: scale(0.88); }
.bottom-nav-item.active {
  color: var(--green);
  background: var(--green-light);
}

/* ── iOS Safe Area ──────────────────────────────────────────────────── */
@supports (padding-top: env(safe-area-inset-top)) {
  .nav { padding-top: env(safe-area-inset-top); }
}

/* ── Responsive ≤ 860px — Tablette portrait / Téléphone large ──────── */
@media (max-width: 860px) {
  body { padding-bottom: 80px; }
  .bottom-nav { display: block; }
  .nav-links { display: none !important; }
}

/* ── Responsive ≤ 640px — Mobile portrait ──────────────────────────── */
@media (max-width: 640px) {
  /* Base */
  .container { padding: 0 .875rem; }

  /* ── Hero ── */
  .hero {
    padding: 0.95rem 0 0.95rem;
    background-position: center 30%;
    min-height: unset;
  }
  .hero-overlay {
    background: linear-gradient(
      160deg,
      rgba(11, 41, 25, 0.94) 0%,
      rgba(18, 71, 43, 0.85) 55%,
      rgba(25, 110, 63, 0.45) 100%
    );
  }
  .hero-inner {
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
  }
  .hero-text-col {
    width: 100%;
    min-width: 0;
  }
  .hero-tag {
    font-size: 0.65rem;
    padding: 3px 10px;
    margin-bottom: 0.35rem;
  }
  .hero-title {
    font-size: 1.18rem;
    line-height: 1.25;
    gap: 6px;
  }
  .hero-sub {
    font-size: 0.76rem;
    line-height: 1.38;
    max-width: 100%;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.88);
  }
  .hero-stats {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-top: 0.2rem;
  }
  .hero-stat {
    padding: 0.5rem 0.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
  .hero-stat-val {
    font-size: 1.15rem;
    line-height: 1.1;
  }
  .hero-stat-lbl {
    font-size: 0.60rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
  }

  /* ── Navigation ── */
  .nav-inner { height: 52px; }
  .nav-logo img { width: 30px; height: 30px; border-radius: 8px; }
  .nav-logo-text p { font-size: .8rem; }
  .nav-logo-text span { font-size: .65rem; }
  .nav-score { padding: 4px 10px; font-size: .72rem; }

  /* ── Language Selector ── */
  .lang-selector { gap: 0.5rem; }
  .lang-btn {
    flex-direction: row;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    gap: 0.4rem;
    border-radius: 12px;
    min-height: 44px;
  }
  .lang-btn .lang-dot { width: 18px; height: 18px; }
  .lang-btn .lang-dot svg { width: 10px; height: 10px; }
  .lang-btn .lang-label { font-size: 0.75rem; }

  /* ── App Banner ── */
  .app-banner {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
    border-radius: var(--radius);
    flex-direction: row;
    align-items: center;
  }
  .app-banner-icon { width: 42px; height: 42px; flex-shrink: 0; }
  .app-banner-icon svg { width: 20px; height: 20px; }
  .app-banner-title { font-size: 0.9rem; }
  .app-banner-sub { font-size: 0.74rem; }

  /* ── Word Card ── */
  .word-card-header { padding: 0.7rem 1rem; }
  .word-main { padding: 1.4rem 1rem 1rem; }
  .word-title { font-size: 2rem; word-break: break-word; }
  .word-phonetic { font-size: 0.9rem; }
  .word-meaning { font-size: 0.82rem; }

  /* ── Recorder ── */
  .recorder-zone { padding: 1.25rem 0.875rem; gap: 0.85rem; }
  .wave-container { height: 46px; }
  .mic-btn { width: 70px; height: 70px; }
  .mic-btn svg { width: 28px; height: 28px; }
  .mic-timer-ring { width: 86px; height: 86px; }
  .mic-status { font-size: 0.8rem; }

  /* ── Buttons ── */
  .btn-row { max-width: 100%; gap: 0.5rem; }
  .btn-outline, .btn-outline-green {
    padding: 10px 12px;
    font-size: 0.78rem;
    border-radius: 12px;
    min-height: 44px;
  }
  .btn-send {
    max-width: 100%;
    padding: 13px;
    font-size: 0.86rem;
    border-radius: 14px;
    min-height: 48px;
  }
  .btn-choice {
    max-width: 100%;
    padding: 12px 14px;
    font-size: 0.8rem;
    border-radius: 12px;
    min-height: 48px;
  }

  /* ── Stats Strip ── */
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-item { padding: 0.6rem 0.15rem; }
  .stat-value { font-size: 1.2rem; }
  .stat-label { font-size: 0.6rem; }

  /* ── Word List ── */
  .word-list-item { padding: 0.8rem 1rem; }
  .word-list-item .wli-word { font-size: 0.88rem; }
  .word-list-item .wli-meta { font-size: 0.7rem; }

  /* ── Pill Chips ── */
  .pill-list { gap: 6px; padding: 4px 0 8px; }
  .pill { padding: 5px 12px; font-size: 0.72rem; }

  /* ── Advice Card ── */
  .advice-card { padding: 0.875rem 1rem; border-radius: var(--radius); }
  .advice-card p { font-size: 0.8rem; }
  .advice-list li { font-size: 0.75rem; }

  /* ── Card paddings ── */
  .card-header-clean { padding: 0.8rem 1rem; }
  .card-title-clean { font-size: 0.83rem; }
  .post-actions { gap: 0.6rem; }

  /* ── Success bar ── */
  .success-bar { padding: 0.75rem 1rem; gap: 0.75rem; }
  .success-bar p { font-size: 0.82rem; }
  .success-bar span { font-size: 0.74rem; }
}

/* ── Very small phones ≤ 380px ─────────────────────────────────────── */
@media (max-width: 380px) {
  .hero-title { font-size: 1.15rem; }
  .lang-btn .lang-label { font-size: 0.7rem; }
  .word-title { font-size: 1.75rem; }
  .mic-btn { width: 64px; height: 64px; }
  .mic-btn svg { width: 26px; height: 26px; }
  .hero-stat-val { font-size: 1.1rem; }
  .hero-stat-lbl { font-size: 0.58rem; }
}

/* ── Illustration placeholder SVG ──────────────────────────────────── */
.illus-mic {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.illus-mic svg { width: 32px; height: 32px; color: rgba(255,255,255,.9); }

/* ─── Bouton Modification Pseudo (Crayon SVG épuré) ─── */
.btn-edit-pencil {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  vertical-align: middle;
  padding: 0;
  flex-shrink: 0;
}
.btn-edit-pencil:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #FFFFFF;
  transform: translateY(-1px);
}
.btn-edit-pencil svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* ─── Carte Surprise : Personnalisation de pseudo ─── */
.surprise-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #FDE68A 100%);
  border: 1.5px solid #F59E0B;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.18), 0 4px 6px -2px rgba(217, 119, 6, 0.06);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  animation: surprisePopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes surprisePopIn {
  0% { opacity: 0; transform: translateY(-12px) scale(0.97); }
  70% { transform: translateY(2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.surprise-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #D97706;
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.surprise-card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.surprise-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(217, 119, 6, 0.15);
  color: #B45309;
  flex-shrink: 0;
}
.surprise-card-content {
  flex: 1;
  min-width: 220px;
}
.surprise-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #78350F;
  margin: 0 0 0.25rem 0;
}
.surprise-card-text {
  font-size: 0.8rem;
  color: #92400E;
  margin: 0;
  line-height: 1.4;
}
.surprise-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-surprise-primary {
  background: linear-gradient(135deg, #196E3F 0%, #11502C 100%);
  color: #FFFFFF;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(25, 110, 63, 0.25);
  transition: all 0.2s;
}
.btn-surprise-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(25, 110, 63, 0.35);
}
.btn-surprise-dismiss {
  background: transparent;
  border: 1px solid #D97706;
  color: #92400E;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-surprise-dismiss:hover {
  background: rgba(217, 119, 6, 0.1);
}

/* ─── Modal Moderne de Personnalisation de Nom ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(11, 41, 25, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  width: 100%;
  max-width: 460px;
  background: #FFFFFF;
  border: 1px solid rgba(25, 110, 63, 0.2);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(11, 41, 25, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  animation: modalSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalSlideUp {
  0% { opacity: 0; transform: translateY(24px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header-brand {
  position: relative;
  background: linear-gradient(135deg, #0B2919 0%, #12472B 50%, #196E3F 100%);
  padding: 1.5rem 1.5rem 1.25rem;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #A7F3D0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.modal-brand-badge svg {
  width: 12px;
  height: 12px;
  color: #34D399;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.modal-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0.35rem 0 0 0;
  line-height: 1.45;
}
.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.06);
}

.modal-body {
  padding: 1.5rem;
}

.modal-input-wrapper {
  margin-bottom: 1.1rem;
}
.modal-input-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.modal-input-container {
  position: relative;
  display: flex;
  align-items: center;
}
.modal-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #94A3B8;
  pointer-events: none;
}
.modal-input-field {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: #F8FAF9;
  transition: all 0.2s;
  outline: none;
}
.modal-input-field:focus {
  border-color: var(--green);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(25, 110, 63, 0.12);
}

.modal-info-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1.35rem;
}
.modal-info-box svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.modal-info-text {
  font-size: 0.78rem;
  color: #166534;
  line-height: 1.45;
  margin: 0;
}
.modal-info-text strong {
  font-weight: 800;
  color: #14532D;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-modal-cancel {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #F1F5F9;
  color: #475569;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.btn-modal-cancel:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #1E293B;
}
.btn-modal-submit {
  flex: 1.8;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #196E3F 0%, #11502C 100%);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(25, 110, 63, 0.28);
  transition: all 0.2s;
}
.btn-modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(25, 110, 63, 0.38);
  background: linear-gradient(135deg, #145C34 0%, #0D3F22 100%);
}
.btn-modal-submit:active {
  transform: translateY(0);
}
.btn-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   MODALE INTERSTITIELLE CADEAU & SURPRISE (PLEIN ÉCRAN RECOUVRANT)
   ══════════════════════════════════════════════════════════════════════════ */
.gift-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 41, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: giftFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.gift-popup-dialog {
  position: relative;
  width: 100%;
  max-width: 490px;
  animation: giftZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes giftZoomIn {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.gift-popup-card {
  position: relative;
  background: linear-gradient(145deg, #FFFFFF 0%, #FAFCFB 60%, #FEF9EE 100%);
  border: 2px solid #F59E0B;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 45px rgba(245, 158, 11, 0.3);
  overflow: hidden;
  padding: 1.75rem 1.75rem 1.5rem;
}

.gift-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.gift-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35);
}

.gift-popup-close {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
}

.gift-popup-close:hover {
  background: #E2E8F0;
  color: #1E293B;
  transform: rotate(90deg);
}

.gift-popup-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #12472B;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.gift-popup-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.gift-popup-name-tag {
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #FDE68A;
  font-weight: 800;
}

.gift-popup-subtext {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.gift-input-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.gift-input-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #12472B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.gift-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.gift-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #94A3B8;
  pointer-events: none;
}

.gift-input-field {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 2px solid #CBD5E1;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  background: #F8FAF9;
  transition: all 0.2s;
  outline: none;
}

.gift-input-field:focus {
  border-color: #196E3F;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(25, 110, 63, 0.15);
}

.gift-popup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-gift-submit {
  flex: 1.8;
  padding: 13px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #196E3F 0%, #11502C 100%);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(25, 110, 63, 0.35);
  transition: all 0.2s;
}

.btn-gift-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(25, 110, 63, 0.45);
}

.btn-gift-later {
  flex: 1;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  background: #F1F5F9;
  color: #475569;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.btn-gift-later:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Pencil pulse highlight animation */
@keyframes pencilPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.9); }
  50% { transform: scale(1.25); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); background: #F59E0B; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pencil-highlight {
  animation: pencilPulse 1s ease-in-out 3;
}

/* ─── Bannière de notification des audios rejetés & conseils qualité ─── */
.rejected-alert-banner {
  background: #FFFBEB;
  border: 1.5px solid #F59E0B;
  border-left: 5px solid #D97706;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12);
  animation: fadeInDown 0.35s ease-out;
}

.rejected-alert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.rejected-alert-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92400E;
  font-size: 0.95rem;
  font-weight: 800;
}

.rejected-alert-title-box svg {
  color: #D97706;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.rejected-alert-close {
  background: transparent;
  border: none;
  color: #B45309;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.rejected-alert-close:hover {
  background: #FEF3C7;
  color: #78350F;
}

.rejected-alert-desc {
  font-size: 0.82rem;
  color: #78350F;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.rejected-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 0.85rem;
}

.rejected-tip-item {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rejected-tip-item svg {
  width: 16px;
  height: 16px;
  color: #B45309;
  flex-shrink: 0;
  margin-top: 2px;
}

.rejected-tip-item span {
  font-size: 0.78rem;
  color: #92400E;
  font-weight: 600;
  line-height: 1.35;
}

.rejected-tip-item strong {
  color: #78350F;
}

.rejected-alert-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-rejected-ack {
  background: #D97706;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-rejected-ack:hover {
  background: #B45309;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.25);
}


