/* ==========================================================================
   AprendeConmigo - Mobile & Tablet First Stylesheet
   ========================================================================== */

:root {
  --bg-main: #0b0f19;
  --bg-card: #151d30;
  --bg-card-hover: #1e293b;
  --bg-surface: #1a233a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #0284c7;
  --primary-light: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.25);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.2);
  
  --border: #273552;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --safe-top: env(safe-area-inset-top, 0px);
  --header-height: calc(58px + var(--safe-top));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  touch-action: manipulation;
}

/* App Container */
#app {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: calc(75px + var(--safe-bottom));
}

/* Top App Header */
header.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  box-sizing: border-box;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: calc(12px + var(--safe-top)) 18px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}

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

.profile-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-pill:active {
  transform: scale(0.96);
  background: var(--bg-card-hover);
}

.profile-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

/* Tab Screens */
.screen {
  display: none;
  padding: 16px;
  flex: 1;
  animation: fadeIn 0.22s ease-out;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

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

/* Section Titles & Cards */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 3px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Big Action Button */
.btn-primary-action {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.btn-primary-action:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Filter Chips Carousel */
.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.chips-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary-light);
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* ==========================================================================
   Flashcards (Tarjetas) Module - 3D Flip & Touch Gestures
   ========================================================================== */
.card-stack-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  position: relative;
  perspective: 1200px;
}

.flashcard {
  width: 100%;
  max-width: 440px;
  min-height: 340px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
  cursor: pointer;
  border-radius: var(--radius-lg);
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px;
  justify-content: space-between;
}

.card-face.back {
  transform: rotateY(180deg);
  background: #111a2e;
  border-color: #3b82f6;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-light);
}

.card-content-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.card-main-word {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.card-sub-hint {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.card-footer-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-speaker {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--primary-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.15s ease;
}

.btn-speaker:active {
  transform: scale(0.9);
  background: var(--primary);
  color: white;
}

/* Rating Controls (SRS SM-2) */
.rating-buttons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
  width: 100%;
}

.btn-rate {
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform 0.15s ease;
}

.btn-rate span.interval {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}

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

.btn-rate.again { background: #7f1d1d; color: #fecaca; }
.btn-rate.hard { background: #78350f; color: #fde68a; }
.btn-rate.good { background: #064e3b; color: #a7f3d0; }
.btn-rate.easy { background: #0c4a6e; color: #bae6fd; }

/* ==========================================================================
   Grammar & Practice Module (Word Tiles & Cloze)
   ========================================================================== */
.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exercise-prompt {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  padding: 14px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-light);
}

.exercise-sentence-display {
  font-size: 1.25rem;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
}

.word-tile {
  background: var(--bg-surface);
  border: 1px solid #334155;
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.word-tile:active {
  transform: scale(0.93);
}

.word-tile.placed {
  background: #0369a1;
  border-color: #38bdf8;
  color: white;
}

.tiles-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.btn-check-exercise {
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}
.btn-check-exercise:active { transform: scale(0.97); }

.feedback-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  display: none;
}
.feedback-box.correct {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--success);
  color: #6ee7b7;
}
.feedback-box.wrong {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: #fca5a5;
}

/* ==========================================================================
   Dictionary / Search List
   ========================================================================== */
.search-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px 18px 14px 44px;
  color: white;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 12px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1.1rem;
}

.dict-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.dict-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.dict-item:active {
  background: var(--bg-card-hover);
}

.dict-es {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dict-pl {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.dict-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--primary-light);
  border: 1px solid var(--border);
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 10px;
}

/* ==========================================================================
   Bottom Navigation Bar (Thumb Friendly)
   ========================================================================== */
nav.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 6px 12px calc(6px + var(--safe-bottom)) 12px;
  display: flex;
  justify-content: space-around;
  max-width: 540px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 4px;
  cursor: pointer;
  border-radius: 10px;
  gap: 3px;
  transition: all 0.15s ease;
  flex: 1;
  min-width: 0;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.nav-item.active svg {
  stroke: var(--primary-light);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.nav-item:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Grammar Lessons (Lekcje Gramatyki)
   ========================================================================== */
.grammar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.grammar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.grammar-card:active {
  transform: scale(0.98);
  background: var(--bg-card-hover);
}

.grammar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.grammar-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.grammar-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-light);
  flex-shrink: 0;
}

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

/* Detailed Grammar Modal / View */
.grammar-detail-view {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gram-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.85rem;
}

.gram-table th {
  background: var(--bg-surface);
  color: var(--primary-light);
  padding: 10px 8px;
  text-align: left;
  border: 1px solid var(--border);
  font-weight: 700;
}

.gram-table td {
  padding: 9px 8px;
  border: 1px solid var(--border);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.4);
}

.gram-table strong {
  color: #38bdf8;
}

.gram-tip {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.88rem;
  color: #fde68a;
  line-height: 1.45;
  margin: 12px 0;
}

.grammar-example-item {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.grammar-quiz-box {
  background: rgba(30, 41, 59, 0.7);
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

/* Responsive adjustments for Tablets (iPad) */
@media (min-width: 768px) {
  #app {
    max-width: 700px;
  }
  .flashcard {
    min-height: 400px;
  }
  .card-main-word {
    font-size: 2.2rem;
  }
  .stats-grid {
    gap: 16px;
  }
}

/* ==========================================================================
   Verb Conjugation Module Styles
   ========================================================================== */
.verb-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.verb-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.verb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.verb-infinitive {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: -0.01em;
}

.verb-translation {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.verb-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.verb-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.conjugation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

@media (min-width: 480px) {
  .conjugation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.person-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.person-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.person-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.person-form {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.person-form.highlight {
  color: #38bdf8;
}

.verb-example-box {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-top: 8px;
}

.verb-tip-badge {
  background: rgba(245, 158, 11, 0.12);
  border-left: 3px solid var(--warning);
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #fde68a;
  border-radius: 4px;
  margin-bottom: 10px;
  line-height: 1.35;
}

/* Pinned / Sticky Tense Selector Bar */
.verb-sticky-tense-bar {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-left: -16px;
  margin-right: -16px;
  padding: 8px 16px 4px 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.verb-sticky-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.verb-sticky-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.active-tense-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-tense-guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-tense-guide-toggle:active {
  transform: scale(0.96);
  background: rgba(245, 158, 11, 0.25);
}

.verb-tenses-chips {
  margin-bottom: 6px;
  padding-bottom: 4px;
}

/* Quick Tense Explanation Box */
.verb-tense-quick-guide {
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 6px;
  margin-bottom: 8px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tense-guide-section {
  margin-bottom: 8px;
}

.tense-guide-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tense-guide-text {
  font-size: 0.83rem;
  color: var(--text-main);
  line-height: 1.45;
}

.tense-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.tense-guide-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.74rem;
  color: #fde68a;
  font-family: monospace;
}

.tense-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.tense-guide-header-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-light);
}

.tense-guide-btn-lesson {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tense-guide-btn-lesson:hover {
  background: rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.tense-guide-tip {
  background: rgba(245, 158, 11, 0.12);
  border-left: 3px solid #f59e0b;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #fde68a;
  margin-top: 8px;
  line-height: 1.45;
}

/* Modo Selector Tabs inside Sticky Bar */
.modo-tabs-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.modo-tabs-row::-webkit-scrollbar {
  display: none;
}

.modo-tab-btn {
  flex: 1;
  min-width: 105px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-align: center;
}

.modo-tab-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--primary-light);
  color: var(--primary-light);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* Formas no personales row on Verb Card */
.verb-non-personal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 8px 0 12px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.verb-non-personal-row strong {
  color: var(--primary-light);
}

.btn-open-full-conj {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.btn-open-full-conj:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  transform: translateY(-1px);
}

/* Modal Dialog Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.full-conjugation-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.6);
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-modal-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.full-conj-body {
  padding: 16px 20px;
  overflow-y: auto;
  line-height: 1.5;
}

.full-conj-group {
  margin-bottom: 20px;
}

.full-conj-group-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.full-conj-tense-block {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.full-conj-tense-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fbbf24;
  margin-bottom: 6px;
}

.full-conj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.full-conj-table td {
  padding: 4px 6px;
}

.full-conj-table td.person-col {
  color: var(--text-muted);
  width: 140px;
}

.full-conj-table td.form-col {
  color: #f1f5f9;
  font-weight: 600;
}




