/* drawer.css - LingoWay 单词本 Premium Theme System */

:root {
  --primary: #FF6442;
  --primary-hover: #E54E2D;
  --primary-light: #FFF0ED;
  
  --success: #10B981;
  --success-hover: #059669;
  --success-light: #E6F4EA;

  --accent-blue: #3B82F6;
  
  --bg-page: #F9FAFB;
  --bg-card: #FFFFFF;
  --border: #F3F4F6;
  --border-focus: #FFB3A3;
  
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.08);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: 'Outfit', 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D1D5DB;
}

#drawer-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Page base structure */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  z-index: 1;
}

/* Slide-in Subpages */
.sub-page {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background-color: var(--bg-page);
  z-index: 10;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.05);
}

.sub-page.active {
  transform: translateX(-100%);
}

/* Buttons and icons */
.btn-icon {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-icon-outline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.btn-icon-outline:hover {
  border-color: var(--text-light);
  color: var(--text-main);
}

.btn-icon-outline svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-icon-outline.loading {
  border-color: var(--primary) !important;
  background-color: rgba(255, 100, 66, 0.08) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.btn-icon-outline.loading svg {
  color: var(--primary) !important;
  animation: pulse-translation 1.5s ease-in-out infinite;
}

@keyframes pulse-translation {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Headers */
.main-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

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

.logo-text {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.badge-beta {
  font-size: 10px;
  font-weight: 600;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 10px;
}

.header-streak {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 2px 6px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.header-streak:hover {
  transform: scale(1.08);
}

.sub-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.sub-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge.success {
  background-color: var(--success-light);
  color: var(--success);
}

/* Navigation Cards */
.nav-cards-container {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background-color: var(--bg-card);
}

.nav-card {
  flex: 1;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.card-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-wrapper.orange {
  background-color: var(--primary-light);
  color: var(--primary);
}

.card-icon-wrapper.green {
  background-color: var(--success-light);
  color: var(--success);
}

.card-icon-wrapper svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.card-info {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.card-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Tabs */
.tabs-container {
  display: flex;
  padding: 0 20px;
  background-color: var(--bg-card);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.tab.active {
  color: var(--primary);
  font-weight: 600;
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  z-index: 1;
}

/* Search Bar */
.search-filter-bar, .sub-search-bar {
  padding: 12px 20px;
  display: flex;
  gap: 10px;
}

.sub-search-bar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.search-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--text-light);
  pointer-events: none;
}

.search-wrapper input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 100, 66, 0.15);
}

/* Word List Containers */
.list-container, .sub-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 20px 20px;
}

.words-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Word Row Item */
.word-row {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideIn 0.25s ease-out;
}

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

.word-row:hover {
  transform: translateX(4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.word-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  cursor: pointer;
  user-select: text; /* Re-enabled for external dictionary extensions */
}

.word-row-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.list-pos-badge {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #2563EB !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  margin-right: 4px !important;
  margin-left: 2px !important;
  display: inline-block !important;
  line-height: 1 !important;
  font-family: 'Inter', sans-serif !important;
  flex-shrink: 0 !important;
}

/* Left-aligned Copy Button */
.btn-action-left {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.15s ease;
  margin-right: 8px;
  flex-shrink: 0;
}

.btn-action-left:hover {
  background-color: var(--bg-page);
  color: var(--primary);
}

.btn-action-left svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.word-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.word-freq-badge {
  font-size: 10px;
  background-color: #F3F4F6;
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
}

.word-translation {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  width: 100%;
  text-align: left;
  margin-top: 1px;
  transition: opacity 0.25s ease;
  opacity: 0.85;
}

.word-translation-trigger {
  font-size: 11px;
  color: var(--text-light);
  border: 1px dashed var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  background-color: var(--bg-page);
  display: inline-block;
  transition: all 0.15s ease;
}

.word-row:hover .word-translation-trigger {
  color: var(--primary);
  border-color: var(--primary-light);
  background-color: var(--primary-light);
}

.word-translation-loading {
  font-size: 11px;
  color: var(--primary);
  animation: pulse 1.2s infinite ease-in-out;
}

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

/* Actions in Word Row */
.word-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.btn-action {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.15s ease;
}

.btn-action:hover {
  background-color: var(--bg-page);
}

.btn-action.heart:hover, .btn-action.heart.active {
  color: #EF4444; /* red */
}
.btn-action.heart.active svg {
  fill: #EF4444;
}

.btn-action.check:hover, .btn-action.check.active {
  color: var(--success);
}

.btn-action.tts:hover {
  color: var(--accent-blue);
}

.btn-action.trash:hover {
  color: #EF4444;
}

.btn-action.restore:hover {
  color: var(--accent-blue);
}

.btn-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.divider {
  width: 1px;
  height: 16px;
  background-color: var(--border);
}

/* Word Row removal animation */
.word-row.removing {
  opacity: 0;
  transform: translateX(-100px);
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  box-shadow: none;
  margin-bottom: -10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-illustration {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.empty-subtext {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

/* Footer Bar */
.main-footer {
  height: 56px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
}

.btn-footer-item {
  flex: 1;
  background: transparent;
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.btn-footer-item:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-footer-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-footer-item span {
  font-size: 11px;
  font-weight: 500;
}

/* Settings and Configurations Page styling */
.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-section {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.title-icon {
  width: 18px;
  height: 18px;
  fill: var(--primary);
}

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

.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 100, 66, 0.12);
}

.form-group select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-main);
  background-color: var(--bg-card);
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 100, 66, 0.12);
}

.btn-primary {
  width: 100%;
  height: 38px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.status-msg {
  font-size: 12px;
  color: var(--success);
  font-weight: 500;
  margin-top: 8px;
  text-align: center;
}

/* Exclude words tag manager */
.exclude-add-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.exclude-add-wrapper input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.exclude-add-wrapper input:focus {
  border-color: var(--primary);
}

.btn-accent {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(255, 100, 66, 0.2);
  padding: 0 16px;
  height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accent:hover {
  background-color: var(--primary);
  color: white;
}

.exclude-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.exclude-count {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-text {
  background: transparent;
  border: none;
  font-size: 11px;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.btn-text:hover {
  color: var(--primary);
}

.exclude-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--bg-page);
}

.exclude-tag {
  font-size: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 4px 10px 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeInTag 0.2s ease-out;
}

@keyframes fadeInTag {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.exclude-tag:hover {
  border-color: var(--primary-light);
  background-color: var(--primary-light);
  color: var(--primary);
}

.btn-tag-delete {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding: 2px;
}

.btn-tag-delete:hover {
  color: #EF4444;
}

.btn-tag-delete svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

/* Bulk Import Section Styling */
.import-section {
  padding: 16px 20px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.import-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.import-title svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

#textarea-import, #textarea-import-mastered {
  width: 100%;
  height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-main);
  background-color: var(--bg-page);
  resize: none;
  outline: none;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

#textarea-import:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 100, 66, 0.12);
}

#textarea-import-mastered:focus {
  border-color: var(--success);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.import-status {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  transition: all 0.25s ease;
  margin-top: 4px;
}

.import-status.success {
  color: var(--success);
}

.import-status.error {
  color: #EF4444;
}

/* iOS Style Switch Slider */
.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.toggle-label-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-main-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.toggle-sub-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E5E7EB;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ================= LOCAL DICTIONARY PAGE STYLES ================= */
.card-icon-wrapper.blue {
  background-color: #EBF5FF;
  color: var(--accent-blue);
}

.info-badge {
  background-color: #DBEAFE;
  color: #1E40AF;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.dict-scroll-container {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dict-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dict-stat-glow {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.04);
  position: relative;
  overflow: hidden;
}

.dict-stat-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.stat-glow-content h4 {
  font-family: var(--font-title);
  color: #1E40AF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-glow-content p {
  color: #3B82F6;
  font-size: 13px;
  line-height: 1.5;
}

.stat-glow-content strong {
  font-size: 18px;
  color: #1D4ED8;
}

.dict-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-bullet {
  color: var(--accent-blue);
  font-size: 14px;
  line-height: 1.4;
}

.feature-desc {
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.5;
}

.feature-desc em {
  font-style: normal;
  background-color: #EFF6FF;
  color: var(--accent-blue);
  padding: 0px 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* Results Panel Styles */
.dict-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dict-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
}

.dict-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.dict-result-word-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dict-result-word {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-title);
}

.dict-result-phonetic {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.dict-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.dict-status-badge.found {
  background-color: #E6F4EA;
  color: #137333;
}

.dict-status-badge.morph {
  background-color: #E8F0FE;
  color: #1a73e8;
}

.dict-status-badge.not-found {
  background-color: #FEF7E0;
  color: #b06000;
}

.dict-alert-box {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dict-alert-box.info {
  background-color: #EFF6FF;
  border: 1px dashed rgba(59, 130, 246, 0.3);
  color: #1E40AF;
}

.dict-alert-box.warning {
  background-color: #FFFBEB;
  border: 1px dashed rgba(245, 158, 11, 0.3);
  color: #92400E;
}

.dict-definitions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dict-def-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  align-items: flex-start;
}

.dict-pos-tag {
  font-size: 10.5px;
  font-weight: 600;
  background-color: #F3F4F6;
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: lowercase;
  margin-top: 2px;
  white-space: nowrap;
}

.dict-def-text {
  color: var(--text-main);
}

.dict-action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.dict-btn-action {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.dict-btn-action:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.dict-btn-action.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.dict-btn-action.active.mastered {
  background-color: var(--success);
  color: white;
  border-color: var(--success);
}

.dict-btn-action.active.excluded {
  background-color: var(--text-muted);
  color: white;
  border-color: var(--text-muted);
}

/* Manual Form Styles */
.dict-manual-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.dict-manual-form h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.dict-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dict-form-group label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.dict-form-group input,
.dict-form-group textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-family: var(--font-sans);
  outline: none;
  background-color: var(--bg-page);
  transition: border-color 0.2s ease;
}

.dict-form-group input:focus,
.dict-form-group textarea:focus {
  border-color: var(--border-focus);
  background-color: white;
}

.dict-form-group textarea {
  resize: vertical;
  min-height: 50px;
}

.dict-form-row {
  display: flex;
  gap: 8px;
}

/* ================= DAILY REVIEW (SRS) STYLE ================= */
.card-icon-wrapper.purple {
  background-color: #F3E8FF;
  color: #7E22CE;
}

.review-progress-wrapper {
  padding: 16px 20px 8px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.review-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.review-progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.review-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #A855F7, #7E22CE);
  width: 0%;
  transition: width 0.3s ease;
}

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

.review-card {
  width: 100%;
  max-width: 340px;
  min-height: 280px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card-front, .review-card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  flex: 1;
  text-align: center;
}

.review-word-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.review-word {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.review-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 24px;
}

.review-translation-container {
  margin-top: 10px;
  width: 100%;
}

.review-translation-container h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.review-translation {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
  background: var(--bg-page);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border-left: 4px solid #7E22CE;
}


.review-grade-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}

.review-grades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.btn-grade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-grade:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.grade-score {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.grade-label {
  font-size: 9px;
  font-weight: 500;
}

.grade-forgot {
  color: #DC2626;
  border-color: #FECACA;
}
.grade-forgot:hover {
  background-color: #FEF2F2;
  border-color: #DC2626;
}

.grade-vague {
  color: #D97706;
  border-color: #FDE68A;
}
.grade-vague:hover {
  background-color: #FFFBEB;
  border-color: #D97706;
}

.grade-good {
  color: #059669;
  border-color: #A7F3D0;
}
.grade-good:hover {
  background-color: #ECFDF5;
  border-color: #059669;
}

.grade-easy {
  color: #2563EB;
  border-color: #BFDBFE;
}
.grade-easy:hover {
  background-color: #EFF6FF;
  border-color: #2563EB;
}

.complete-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 16px;
}

.complete-icon-wrapper svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

/* ================= COMPACT VERTICAL REVIEW CARDS ================= */
.review-card-wrapper-vertical {
  width: 100%;
  max-width: 360px;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.review-card-compact {
  width: 100%;
  max-width: 360px;
  min-height: 64px;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 10px 14px;
  box-sizing: border-box;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-card-wrapper-vertical:hover .review-card-compact {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 100, 66, 0.3);
}

.review-card-compact.flipped {
  transform: rotateY(180deg);
}

.review-card-wrapper-vertical:hover .review-card-compact.flipped {
  transform: rotateY(180deg) translateY(-2px);
}

.review-card-compact .review-card-front {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  flex: 1;
  text-align: left;
  margin: 0;
  padding: 0;
}

.review-card-compact .review-word-container {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.review-card-compact .review-word {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.review-card-compact .btn-spawned-tts {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.review-card-compact .btn-spawned-tts:hover {
  background-color: var(--primary-light) !important;
  color: var(--primary-hover) !important;
}

.review-card-compact .btn-reveal-answer-spawned {
  font-size: 11px;
  padding: 4px 0;
  width: 56px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg, #FF6442, #FF8469);
  border: none;
  color: white;
  transition: all 0.2s ease;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.review-card-compact .btn-reveal-answer-spawned:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(255, 100, 66, 0.2);
  background: linear-gradient(135deg, #FF502B, #FF7354) !important;
}

.review-card-compact .review-card-back {
  display: flex;
  flex-direction: column;
  transform: rotateY(180deg);
  gap: 10px;
  width: 100%;
  height: 100%;
  flex: 1;
  text-align: left;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.review-card-compact .review-translation-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-card-compact .review-translation-container h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.review-card-compact .review-translation-text {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
  border-top: 1px dashed rgba(0,0,0,0.06);
  padding-top: 6px;
}

.review-card-compact .review-grade-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 4px;
  font-weight: 500;
}

.review-card-compact .review-grades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  width: 100%;
}

.review-card-compact .btn-grade {
  padding: 5px 2px;
  border-radius: 8px;
  font-size: 10px;
  display: flex;
  flex-direction: row;
  gap: 4px;
  justify-content: center;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.review-card-compact .btn-grade .grade-score {
  font-size: 12px;
  margin: 0;
  font-weight: 700;
}

.review-card-compact .btn-grade .grade-label {
  font-size: 10px;
  color: var(--text-muted);
}

.review-card-compact .btn-review-mastered {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.06);
  color: #10B981;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.review-card-actions-front {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin: 0;
  flex-shrink: 0;
}

.review-card-compact .btn-forgot-instant-spawned {
  font-size: 11px;
  padding: 4px 0;
  width: 56px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.review-card-compact .btn-forgot-instant-spawned:hover {
  background-color: var(--primary-light) !important;
  border-color: rgba(255, 100, 66, 0.25) !important;
  color: var(--primary) !important;
  transform: scale(1.03);
}

.review-forgot-confirm-wrapper {
  width: 100%;
}

.review-card-compact .btn-forgot-confirm {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF6442, #FF8469);
  border: none;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.review-card-compact .btn-forgot-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 100, 66, 0.25);
  background: linear-gradient(135deg, #FF502B, #FF7354) !important;
}

.review-back-word-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.review-card-compact .btn-back-tts {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 20px;
  height: 20px;
}

.review-card-compact .btn-back-tts:hover {
  background-color: var(--primary-light) !important;
  color: var(--primary-hover) !important;
}

.word-list-phonetic {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  opacity: 0.8;
  margin-left: 2px;
}

.review-phonetic {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  margin-left: 2px;
}

/* Candidate Tags for Fuzzy Search */
.dict-fuzzy-tag {
  transition: all 0.2s ease !important;
}
.dict-fuzzy-tag:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15) !important;
  opacity: 0.95;
}
.dict-fuzzy-tag:active {
  transform: translateY(0px) !important;
}

/* ================= FAMILIARITY FILTER BAR & CHIPS ================= */
.familiarity-filter-bar {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.familiarity-filter-bar::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--border);
  background-color: var(--bg-page);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.filter-chip:hover {
  background-color: #F3F4F6;
  color: var(--text-main);
  border-color: var(--text-light);
}
.filter-chip.active {
  background: linear-gradient(135deg, #FF6442, #FF8469);
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 4px 10px rgba(255, 100, 66, 0.25);
  font-weight: 700;
}
.filter-chip .filter-count {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.85;
}

/* Custom Active Colors for specific familiarity levels */
.filter-chip[data-filter="unreviewed"].active {
  background: linear-gradient(135deg, #6B7280, #9CA3AF);
  box-shadow: 0 4px 10px rgba(107, 114, 128, 0.25);
}
.filter-chip.grade-0.active {
  background: linear-gradient(135deg, #EF4444, #F87171);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}
.filter-chip.grade-3.active {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}
.filter-chip.grade-4.active {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.filter-chip.grade-5.active {
  background: linear-gradient(135deg, #059669, #10B981);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

/* ================= WORD FAMILIARITY TAGS IN WORD ROW ================= */
.word-familiarity-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  margin-right: 12px;
  font-family: var(--font-sans);
  flex-shrink: 0;
}
.word-familiarity-tag:hover {
  transform: scale(1.06);
  opacity: 0.95;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Unreviewed tag styling */
.word-familiarity-tag.grade-unreviewed {
  background-color: #F3F4F6;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}
/* Forgot tag styling */
.word-familiarity-tag.grade-0 {
  background-color: #FEE2E2;
  color: #EF4444;
  border: 1px solid #FCA5A5;
}
/* Vague tag styling */
.word-familiarity-tag.grade-3 {
  background-color: #FEF3C7;
  color: #D97706;
  border: 1px solid #FCD34D;
}
/* Remembered tag styling */
.word-familiarity-tag.grade-4 {
  background-color: #DBEAFE;
  color: #2563EB;
  border: 1px solid #93C5FD;
}
/* Easy tag styling */
.word-familiarity-tag.grade-5 {
  background-color: #D1FAE5;
  color: #059669;
  border: 1px solid #6EE7B7;
}

/* ================= GAMIFICATION PANEL & HEATMAP ================= */
.gamification-panel {
  padding: 10px 20px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.heatmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.heatmap-title {
  font-weight: 600;
  color: var(--text-muted);
}

.streak-text {
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 8px);
  grid-auto-flow: column;
  grid-auto-columns: 8px;
  gap: 3px;
  justify-content: center;
  overflow-x: auto;
  padding: 4px 0;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.heatmap-grid::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.heatmap-cell {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: #E5E7EB;
  transition: all 0.2s ease;
}

/* Green theme colors for cells */
.heatmap-cell.level-0 { background-color: #F3F4F6; }
.heatmap-cell.level-1 { background-color: #D1FAE5; }
.heatmap-cell.level-2 { background-color: #A7F3D0; }
.heatmap-cell.level-3 { background-color: #34D399; }
.heatmap-cell.level-4 { background-color: #059669; }

/* ================= WEB PAGE LAYOUT & CENTERING OVERRIDES ================= */
body {
  margin: 0;
  padding: 0;
  background-color: #f3f4f6; /* Modern light gray background for desktop */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
}

#drawer-container {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  width: 100vw !important;
  max-width: 460px; /* iPhone / Android typical viewport width */
  height: 100vh !important;
  margin: 0 auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  background-color: var(--bg-main);
  overflow: hidden;
  border-radius: 0;
}

@media (max-width: 480px) {
  #drawer-container {
    max-width: 100vw;
    box-shadow: none;
  }
}

/* ================= LOGIN OVERLAY STYLING ================= */
.login-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.login-card {
  width: 90%;
  max-width: 380px;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  animation: loginFadeIn 0.3s ease-out;
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.login-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 10px;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

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


