                                                                             
                                                                      
                                                                                

:root {
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
                                           
  --bg-app: #080c14;
  --bg-surface: #0e1526;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-stick: rgba(19, 28, 47, 0.85);
  --bg-stick-hover: rgba(26, 38, 64, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(34, 197, 94, 0.45);
  
                            
  --primary-green: #22c55e;
  --primary-green-glow: rgba(34, 197, 94, 0.25);
  --primary-green-light: #4ade80;
  --primary-green-dark: #16a34a;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;

                         
  --text-title: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-dark-contrast: #0f172a;

                       
  --radius-stick: 9999px;                             
  --radius-card: 20px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(34, 197, 94, 0.16);
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

                          
body.theme-light {
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-stick: #ffffff;
  --bg-stick-hover: #f1f5f9;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(34, 197, 94, 0.5);
  
  --text-title: #090d16;                        
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-dark-contrast: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 28px -8px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 18px rgba(34, 197, 94, 0.1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-body);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 50% -5%, rgba(34, 197, 94, 0.1) 0%, transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

                                                                             
         
                                                                                

.vocab-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

body.theme-light .vocab-navbar {
  background: rgba(248, 250, 252, 0.8);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-stick);
  color: var(--text-title);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.nav-back-btn:hover {
  background: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
  box-shadow: 0 4px 14px var(--primary-green-glow);
  transform: translateX(-2px);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-title);
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.text-green { color: var(--primary-green-light); }

                 
.study-time-tracker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-stick);
  font-size: 0.82rem;
  color: var(--primary-green-light);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-green);
  border-radius: 50%;
  animation: pulseGreen 1.8s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--primary-green); }
}

.study-time-tracker strong {
  font-family: monospace;
  font-size: 0.92rem;
  color: var(--text-title);
}

                  
.theme-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-title);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(15deg);
}

                                                                             
                                
                                                                               

.vocab-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.vocab-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 580px;
}

                         
.search-container {
  width: 100%;
  max-width: 720px;
  margin: 10px auto 0;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-stick);                                           
  padding: 6px 16px 6px 22px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px var(--primary-green-glow), var(--shadow-md);
}

.search-icon {
  color: var(--primary-green);
  font-size: 1.2rem;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: var(--text-title);
  padding: 10px 0;
  font-weight: 600;
}

.search-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.95rem;
}

.clear-search-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.clear-search-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

                        
.filter-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.level-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-stick);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.level-chip:hover {
  color: var(--text-title);
  border-color: rgba(255, 255, 255, 0.2);
}

.level-chip.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--primary-green);
  color: var(--primary-green-light);
  box-shadow: 0 2px 10px var(--primary-green-glow);
}

                                                                             
                                                                   
                                                                                

.stick-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stick-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  margin-bottom: 4px;
}

.stick-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stick-count-pill {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: var(--radius-stick);
}

                                                                        
.vocab-stick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 52px;
  padding: 0 18px 0 20px;
  background: var(--bg-stick);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-stick);                              
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.vocab-stick:hover {
  background: var(--bg-stick-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.stick-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stick-level-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.stick-level-badge.a2 { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.stick-level-badge.b1 { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.stick-level-badge.b2 { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.stick-level-badge.c1 { background: rgba(168, 85, 247, 0.18); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

.stick-word {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  white-space: nowrap;
}

.stick-phonetic {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.84rem;
  color: var(--primary-green-light);
  opacity: 0.85;
  white-space: nowrap;
}

.stick-translation {
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.stick-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-stick-audio {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--primary-green-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-stick-audio:hover {
  background: var(--primary-green);
  color: #ffffff;
  transform: scale(1.1);
}

.stick-arrow-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.vocab-stick:hover .stick-arrow-btn {
  color: var(--primary-green-light);
  transform: translateX(3px);
}

                                
.show-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-show-more {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-title);
  padding: 10px 28px;
  border-radius: var(--radius-stick);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-show-more:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--primary-green);
  color: var(--primary-green-light);
  box-shadow: 0 4px 14px var(--primary-green-glow);
  transform: translateY(-2px);
}

                                                                             
                                                    
                                               
                                                                                

.search-results-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
}

.search-meta-title {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.search-meta-title strong {
  color: var(--text-title);
}

.btn-clear-to-clean {
  background: transparent;
  border: none;
  color: var(--primary-green-light);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

                                   
.detailed-word-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: fadeInCard 0.25s ease-out;
}

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

.detailed-word-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-green), var(--accent-cyan));
}

                                                
.detail-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

                              
.detail-word-heading {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-title);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

body.theme-light .detail-word-heading {
  color: #090d16;                        
}

.detail-phonetic-badge {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-green-light);
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
}

.detail-audio-play-btn {
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-stick);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px var(--primary-green-glow);
}

.detail-audio-play-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

                               
.detail-primary-meaning-box {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
}

.detail-meaning-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-green-light);
  margin-bottom: 2px;
}

.detail-meaning-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
}

                                                           
.detail-senses-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-section-header {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sense-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sense-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sense-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
}

.context-tag {
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

.sense-when-to-use {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
}

.sense-when-to-use strong {
  color: #fbbf24;
}

                                                                    
.grammar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grammar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grammar-card-label {
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.grammar-card-label.noun { color: #38bdf8; }
.grammar-card-label.verb { color: #4ade80; }
.grammar-card-label.adj { color: #f472b6; }
.grammar-card-label.prep { color: #fbbf24; }

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

                       
.examples-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.example-sentence-row {
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid var(--primary-green);
  border-radius: 0 10px 10px 0;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sentence-en {
  font-size: 0.96rem;
  color: var(--text-title);
  line-height: 1.4;
}

.sentence-en .highlight {
  color: var(--primary-green-light);
  font-weight: 700;
}

.sentence-uz {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
}

                                   
.chips-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cloud-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  padding: 5px 12px;
  border-radius: var(--radius-stick);
  font-size: 0.82rem;
  font-weight: 500;
}

.cloud-chip.synonym {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
}

                 
.empty-state {
  text-align: center;
  padding: 50px 20px;
  max-width: 440px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 2rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-title);
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

                        
.vocab-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid var(--primary-green);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-stick);
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  z-index: 2000;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.vocab-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.vocab-toast i {
  color: var(--primary-green-light);
}

                       
@media (max-width: 768px) {
  .vocab-navbar {
    padding: 12px 16px;
  }
  
  .tracker-label, .brand-pill span {
    display: none;
  }

  .vocab-main {
    padding: 24px 14px 60px;
    gap: 22px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .vocab-stick {
    height: 48px;
    padding: 0 14px;
  }

  .stick-translation {
    display: none;                                    
  }

  .detail-word-heading {
    font-size: 1.8rem;
  }

  .grammar-grid {
    grid-template-columns: 1fr;
  }
}
/* ─────────────────────────────────────────────────────────────
   Layout qatlami — ilgari CSS faylida umuman yo'q edi.
   .app-layout va .hero-header markup'da bor edi, lekin qoida
   yo'qligi sababli so'zlar ro'yxati orasida bo'shliq ham,
   qidiruv natijalari orasida masofa ham yo'q edi.
   ───────────────────────────────────────────────────────────── */
.app-layout {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.vocab-stick-list,
.detailed-results-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 768px) {
  .app-layout { min-height: 100dvh; }
  .vocab-stick-list,
  .detailed-results-list { gap: 10px; }
}
