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

/* ═══ BASE ═══ */
body {
  background: #09090b;
  color: #ccc;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  min-height: 100vh;
}

#app {
  max-width: 1000px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ═══ NOISE TEXTURE ═══ */
.noise {
  position: fixed; inset: 0; opacity: 0.03; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══ AURORA AMBIENCE ═══ */
.ambience {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 45% at 25% 20%, rgba(239,68,68,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 85%, rgba(239,68,68,0.04) 0%, transparent 70%);
  animation: breathe 10s ease-in-out infinite alternate;
}

@keyframes breathe {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ═══ GLASS CARD ═══ */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute; inset: 0;
  padding: 1px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(239,68,68,0.06), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ═══ LOGO ═══ */
.logo {
  display: inline-flex;
  align-items: baseline;
}

.logo .zh {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-weight: 400;
  color: #fafafa;
  line-height: 1;
}

.logo .en {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: #fafafa;
  line-height: 1;
}

.logo-nav .zh { font-size: 24px; }
.logo-nav .en { font-size: 19px; margin-left: 1px; }

/* ═══ NAV BAR ═══ */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.nav-glass {
  display: flex;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 4px; gap: 2px;
}

.nav-item {
  padding: 9px 20px;
  border-radius: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-item:hover {
  color: rgba(255,255,255,0.55);
}

.nav-item.active {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  font-weight: 600;
}

/* ═══ INNER CONTENT ═══ */
.inner {
  position: relative;
  z-index: 1;
  padding: 40px 48px;
}

/* ═══ TAB PANELS ═══ */
.tab-panel {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  position: absolute;
  left: 0; right: 0;
}

.tab-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}

/* ═══ REVEAL ANIMATION ═══ */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active .rv { opacity: 1; transform: translateY(0); }
.tab-panel.active .rv:nth-child(1) { transition-delay: 0.05s; }
.tab-panel.active .rv:nth-child(2) { transition-delay: 0.10s; }
.tab-panel.active .rv:nth-child(3) { transition-delay: 0.15s; }
.tab-panel.active .rv:nth-child(4) { transition-delay: 0.20s; }
.tab-panel.active .rv:nth-child(5) { transition-delay: 0.25s; }
.tab-panel.active .rv:nth-child(6) { transition-delay: 0.30s; }
.tab-panel.active .rv:nth-child(7) { transition-delay: 0.35s; }
.tab-panel.active .rv:nth-child(8) { transition-delay: 0.40s; }
.tab-panel.active .rv:nth-child(9) { transition-delay: 0.45s; }
.tab-panel.active .rv:nth-child(10) { transition-delay: 0.50s; }

/* ═══ SECTION HEAD ═══ */
.section-head {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ═══ STATS ROW ═══ */
.stats-row { display: flex; gap: 16px; margin-bottom: 40px; }

.stat-card { flex: 1; padding: 24px; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #fafafa;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -2px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ═══ CTA BUTTON ═══ */
.cta-btn {
  font-family: 'Syne', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 24px rgba(239,68,68,0.2), 0 0 48px rgba(239,68,68,0.08);
  letter-spacing: 0.5px;
}

.cta-btn:hover {
  background: #f87171;
  box-shadow: 0 0 32px rgba(239,68,68,0.3), 0 0 64px rgba(239,68,68,0.12);
  transform: translateY(-1px);
}

/* ═══ PATTERN TAG ═══ */
.pattern-tag {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 8px;
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  letter-spacing: 0.3px;
}

/* ═══ CHUNK LINES ═══ */
.chunk-lines {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 2;
}

.chunk-lines .indent {
  padding-left: 2em;
  color: rgba(255,255,255,0.28);
}

.chunk-lines .vocab {
  color: #f87171;
  border-bottom: 1px dashed rgba(239,68,68,0.35);
  cursor: help;
}

/* ═══ SENTENCE CARD ═══ */
.sentence-card { padding: 28px; margin-bottom: 32px; }

.sentence-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }

.sentence-source { font-size: 11px; color: rgba(255,255,255,0.18); }

/* ═══ FILTER CHIPS ═══ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-chip {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-chip:hover { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); }

.filter-chip.active {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.2);
  color: #fca5a5;
}

/* ═══ SENTENCE LIST ITEM (collapsed) ═══ */
.sent-item {
  padding: 20px 24px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.sent-item:hover { background: rgba(255,255,255,0.05); }

.sent-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sent-item-text {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sent-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.sent-item-domain { font-size: 11px; color: rgba(255,255,255,0.15); }
.sent-item-time { font-size: 11px; color: rgba(255,255,255,0.12); }

.sent-item-vocab-count {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #f87171;
  background: rgba(239,68,68,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ═══ SENTENCE EXPANDED ═══ */
.sent-expanded { padding: 28px; margin-bottom: 12px; }

.sent-expanded-original {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sent-section-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 20px;
}

.sent-explanation {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

.sent-expression {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  padding: 12px 16px;
  background: rgba(239,68,68,0.04);
  border-radius: 8px;
  border-left: 2px solid rgba(239,68,68,0.2);
}

.sent-expression strong {
  color: #fca5a5;
  font-weight: 600;
}

/* ═══ VOCAB PILL ═══ */
.sent-vocab-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sent-vocab-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}

.sent-vocab-word {
  font-size: 13px;
  font-weight: 500;
  color: #f87171;
}

.sent-vocab-def {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.sent-vocab-check {
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  cursor: pointer;
  margin-left: 4px;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
}

.sent-vocab-check:hover { color: #ef4444; }

/* ═══ TOGGLE ═══ */
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
  border: none;
}

.toggle.on { background: #ef4444; }

.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: none;
}

.toggle.on .toggle-thumb { transform: translateX(18px); }

/* ═══ SEGMENTED CONTROL ═══ */
.seg-control {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 3px;
}

.seg-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
}

.seg-btn.active {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  font-weight: 600;
}

/* ═══ SETTINGS ═══ */
.settings-section { margin-bottom: 36px; }

.settings-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.settings-card { padding: 24px 28px; }

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.settings-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.settings-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  margin-top: 4px;
  line-height: 1.5;
}

.settings-input {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  outline: none;
  width: 320px;
  transition: border-color 0.3s;
}

.settings-input:focus { border-color: rgba(239,68,68,0.3); }
.settings-input::placeholder { color: rgba(255,255,255,0.12); }

.settings-select {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.settings-provider-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.settings-provider-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.settings-provider-btn.active {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.2);
  color: #fca5a5;
  font-weight: 600;
}

.settings-key-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-key-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.settings-key-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.settings-model-info {
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  line-height: 1.6;
  margin-top: 8px;
}

.settings-verify-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.settings-verify-btn:hover {
  border-color: rgba(239,68,68,0.3);
  color: rgba(255,255,255,0.7);
}

.settings-verify-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.settings-verify-result {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  padding: 0 28px 12px;
}

.settings-verify-result.ok {
  color: #22c55e;
}

.settings-verify-result.error {
  color: #f87171;
}

/* ═══ DAILY REVIEW ═══ */
.learn-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fafafa;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.learn-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 40px;
  line-height: 1.5;
}

.sub-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Break point sentence */
.learn-sentence {
  font-size: 20px;
  line-height: 2;
  color: rgba(255,255,255,0.8);
  padding: 32px;
  letter-spacing: -0.2px;
}

.break-point {
  display: inline-block;
  width: 15px;
  height: 20px;
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
  background: transparent;
  position: relative;
}

.break-point::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(239,68,68,0.15);
  transition: all 0.3s;
}

.break-point:hover::before {
  background: rgba(239,68,68,0.4);
  box-shadow: 0 0 12px rgba(239,68,68,0.2);
}

.break-point.selected::before {
  background: #ef4444;
  box-shadow: 0 0 16px rgba(239,68,68,0.4);
  width: 4px;
  margin-left: -2px;
  height: 24px;
  top: -2px;
}

/* Answer section */
.answer-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Vocab grid */
.review-vocab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.review-vocab-item { padding: 16px 18px; }

.review-vocab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.review-vocab-word {
  font-size: 15px;
  font-weight: 500;
  color: #f87171;
}

.review-vocab-freq {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
}

.review-vocab-def {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

.review-vocab-mastered {
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: color 0.2s;
}

.review-vocab-mastered:hover { color: #ef4444; }

/* ═══ EMPTY STATE ═══ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-text {
  font-size: 14px;
  color: rgba(255,255,255,0.2);
  line-height: 1.6;
}

/* ═══ WEEKLY STAT ═══ */
.weekly-stat {
  font-size: 13px;
  color: rgba(255,255,255,0.2);
}

.weekly-stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fafafa;
  letter-spacing: -1px;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ═══ SELECTION ═══ */
::selection {
  background: rgba(239,68,68,0.3);
  color: #fafafa;
}

/* ═══ PROVIDER BUTTON HOVER ═══ */
.settings-provider-btn:hover:not(.active) {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
}

/* ═══ GLASS CARD HOVER LIFT ═══ */
.sent-item:hover {
  transform: translateY(-1px);
}

/* ═══ ANSWER REVEAL ANIMATION ═══ */
.answer-section {
  animation: fadeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ ONBOARDING BANNER ═══ */
.onboarding-banner {
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
  padding: 16px 24px;
  background: rgba(239,68,68,0.04);
  border: none;
  border-left: 3px solid rgba(239,68,68,0.5);
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: bannerIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes bannerIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.banner-text {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  flex: 1;
}

.banner-link {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fca5a5;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 6px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.15);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.banner-link:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.3);
}

/* ═══ PENDING SENTENCE ═══ */
.sent-pending { opacity: 0.85; }

.sent-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sent-badge-manual {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
}

.sent-badge-analyzing {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
  animation: pulse-badge 1.5s ease-in-out infinite;
}

.sent-badge-error {
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Skeleton loading */
.sent-skeleton-container { margin-top: 16px; }

.sent-skeleton {
  height: 14px;
  width: 60%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  border-radius: 4px;
  margin: 8px 0;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.sent-skeleton-wide { width: 80%; }

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sent-error-msg {
  font-size: 12px;
  color: #fbbf24;
  padding: 12px;
  background: rgba(245,158,11,0.06);
  border-radius: 6px;
  margin-top: 12px;
}

.sent-pending-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  padding: 12px 0;
}

/* ═══ PAGINATION ═══ */
.sent-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0 8px;
}

.sent-page-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.sent-page-btn:hover:not(:disabled) {
  border-color: rgba(239,68,68,0.2);
  color: #fca5a5;
}

.sent-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sent-page-info {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1px;
}

/* ═══ VOCAB MASTERED ═══ */
.vocab-mastered {
  color: inherit !important;
  border-bottom-color: transparent !important;
  cursor: default;
}

/* ═══ VOCAB TOOLTIP ═══ */
.vt {
  position: fixed;
  z-index: 1000;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35)) drop-shadow(0 12px 36px rgba(0,0,0,0.4));
  animation: vtIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vtIn {
  from { opacity: 0; transform: scale(0.96) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.vt-body {
  background: rgba(16,16,18,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  border-top-color: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 160px;
  max-width: 280px;
}

.vt-word {
  font-size: 13px;
  font-weight: 600;
  color: #f87171;
  margin-bottom: 4px;
}

.vt-def {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}

.vt-foot {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
}

.vt-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  color: rgba(255,255,255,0.2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.12s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vt-mark:hover { color: rgba(255,255,255,0.45); }

.vt-icon {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: opacity 0.12s;
}

.vt-mark:hover .vt-icon { opacity: 0.8; }

.vt-mark.is-done { color: rgba(239,68,68,0.5); }
.vt-mark.is-done .vt-icon { opacity: 0.8; }

/* Arrow (SVG inherits drop-shadow from .vt filter) */
.vt-arrow {
  position: absolute;
}

.vt-arrow-bot { bottom: -7px; }
.vt-arrow-top { top: -7px; }

/* ═══ NUDGE BANNER ═══ */
.nudge-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  margin-top: 24px;
  margin-bottom: 12px;
  background: rgba(239,68,68,0.03);
  border: 1px solid rgba(239,68,68,0.08);
  border-radius: 10px;
}

.nudge-text {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  flex: 1;
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.15s !important;
  }
  .rv { opacity: 1; transform: none; }
}
