/* ==========================================================================
   hindityping.site - Exact easyhindityping.com Replica Stylesheet
   Engineered for 100/100 Google PageSpeed, Pixel-Perfect Layout & AdSense RPM
   ========================================================================== */

:root {
  --nav-dark: #2c3238;
  --nav-dark-hover: #3c434b;
  --clock-bg: #e8f4fd;
  --clock-border: #bce1fb;
  --clock-text: #0c5460;
  --primary-blue: #1a73e8;
  --primary-dark: #0d47a1;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-editor: #cbd5e1;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Noto Sans Devanagari', 'Hind', Roboto, sans-serif;
  --font-hindi: 'Hind', 'Noto Sans Devanagari', 'Mangal', sans-serif;
  --font-marathi: 'Hind', 'Noto Sans Devanagari', 'Mangal', sans-serif;
  --font-bengali: 'Noto Sans Bengali', 'Hind Siliguri', 'SolaimanLipi', sans-serif;
  --font-gujarati: 'Noto Sans Gujarati', 'Hind Vadodara', 'Shruti', sans-serif;
  --font-telugu: 'Noto Sans Telugu', 'Gautami', 'Vani', sans-serif;
  --font-tamil: 'Noto Sans Tamil', 'Latha', 'Vijaya', sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   1. TOP DARK NAVIGATION BAR
   ========================================================================== */
.top-dark-nav {
  background-color: var(--nav-dark);
  color: #ffffff;
  font-size: 0.84rem;
  border-bottom: 1px solid #1a1e22;
}

.top-dark-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-mini-link {
  color: #f1f5f9;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.brand-mini-link:hover {
  color: #38bdf8;
}

.top-nav-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  border: none;
}

.nav-badge-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

.badge-red {
  background-color: #e53935;
}

.badge-green {
  background-color: #2e7d32;
}

.badge-blue {
  background-color: #1565c0;
}

.badge-purple {
  background-color: #7c3aed;
}

.badge-orange {
  background-color: #ea580c;
}

.badge-teal {
  background-color: #0d9488;
}

.font-bengali {
  font-family: var(--font-bengali) !important;
}

.font-gujarati {
  font-family: var(--font-gujarati) !important;
}

.font-marathi {
  font-family: var(--font-marathi) !important;
}

.font-telugu {
  font-family: var(--font-telugu) !important;
}

.font-tamil {
  font-family: var(--font-tamil) !important;
}

/* ==========================================================================
   2. LIVE WORLD CLOCK BAR
   ========================================================================== */
.world-clock-bar {
  background-color: var(--clock-bg);
  border-top: 1px solid var(--clock-border);
  border-bottom: 1px solid var(--clock-border);
  padding: 7px 0;
  font-size: 0.78rem;
  color: var(--clock-text);
  overflow-x: auto;
  white-space: nowrap;
}

.clock-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  min-width: 900px;
}

.clock-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.clock-city {
  font-weight: 700;
  color: #0b4955;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.clock-time {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.75);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #c2e0f8;
}

/* ==========================================================================
   3. HEADER SECTION (TYPE IN HINDI + PREFERRED SOURCE BUTTON)
   ========================================================================== */
.header-hero {
  text-align: center;
  padding: 22px 16px 14px;
}

.hero-main-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #0d47a1;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.hero-sub-title {
  font-size: 1.15rem;
  color: #475569;
  font-weight: 500;
  margin-bottom: 14px;
}

.google-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 24px;
  padding: 7px 18px;
  color: #3c4043;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(60,64,67,0.12);
  transition: all 0.2s ease;
  cursor: pointer;
}

.google-source-btn:hover {
  background: #f8fafc;
  border-color: #1a73e8;
  color: #1a73e8;
  box-shadow: 0 2px 6px rgba(60,64,67,0.18);
  text-decoration: none;
}

.google-icon-svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   4. SECONDARY TAB MENU
   ========================================================================== */
.secondary-tab-nav {
  margin-top: 14px;
  border-bottom: 2px solid #e2e8f0;
  background: #ffffff;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.secondary-tab-list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.secondary-tab-list::-webkit-scrollbar {
  display: none;
}

.sec-tab-item {
  flex-shrink: 0;
}

.sec-tab-btn {
  display: block;
  padding: 12px 18px;
  color: #334155;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.sec-tab-btn:hover {
  color: #1a73e8;
  background: #f8fafc;
}

.sec-tab-btn.active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
  background: #f1f5f9;
  font-weight: 700;
}

/* ==========================================================================
   ADSENSE CONTAINERS (STRICT COMPLIANCE)
   ========================================================================== */
.ad-slot-wrapper {
  margin: 12px 0;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.ad-placeholder-box {
  min-height: 90px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.82rem;
  border-radius: 4px;
}

.ad-sidebar-box {
  min-height: 300px;
}

/* ==========================================================================
   5. TWO-COLUMN LAYOUT: MAIN TYPING AREA + SIDEBAR
   ========================================================================== */
.editor-layout-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 20px;
  margin-top: 10px;
}

@media (max-width: 992px) {
  .editor-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Editor Main Card */
.editor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-editor);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ==========================================================================
   6. THE EDITOR TOOLBAR (MATCHING easyhindityping.com EXACTLY)
   ========================================================================== */
.editor-toolbar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-editor);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-select-dropdown {
  padding: 5px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
}

.lang-select-dropdown:focus {
  border-color: #1a73e8;
}

.email-icon-btn {
  background: #16a34a;
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease;
}

.email-icon-btn:hover {
  background: #15803d;
}

.editor-action-btn {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.editor-action-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  text-decoration: none;
}

.editor-action-btn.active-subtool {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
}

/* ==========================================================================
   7. MAIN TYPING TEXTAREA & FLOATING SUGGESTIONS
   ========================================================================== */
.typing-box-container {
  position: relative;
  padding: 12px;
}

.hindi-typing-textarea {
  width: 100%;
  min-height: 290px;
  padding: 14px;
  font-family: var(--font-hindi);
  font-size: 1.28rem;
  line-height: 1.85;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hindi-typing-textarea:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.hindi-typing-textarea::placeholder {
  color: #94a3b8;
  font-family: var(--font-hindi);
  font-size: 1.15rem;
}

/* Word Suggestions Dropdown */
.word-suggestions-box {
  position: absolute;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  display: none;
  overflow: hidden;
  min-width: 200px;
}

.word-suggestions-box.visible {
  display: block;
}

.suggestion-header {
  background: #f1f5f9;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.suggestion-item {
  padding: 8px 12px;
  font-family: var(--font-hindi);
  font-size: 1.2rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s ease;
}

.suggestion-item:hover, .suggestion-item.active {
  background: #e0f2fe;
  color: #0369a1;
}

.suggestion-key {
  font-size: 0.75rem;
  color: #64748b;
  font-family: var(--font-family);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* Voice Bar & Action Footer */
.voice-toolbar {
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.mic-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mic-toggle-btn:hover {
  background: #b91c1c;
}

.mic-toggle-btn.listening {
  background: #16a34a;
  animation: micPulse 1.5s infinite;
}

@keyframes micPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.action-buttons-strip {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-utility {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-utility:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-utility.btn-copy {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
}

.btn-utility.btn-copy:hover {
  background: #1557b0;
}

.btn-utility.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.btn-utility.btn-whatsapp:hover {
  background: #1eb757;
}

.btn-utility.btn-clear {
  color: #dc2626;
  border-color: #fecaca;
}

.btn-utility.btn-clear:hover {
  background: #fef2f2;
}

/* Live Stats */
.live-stats-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #475569;
  flex-wrap: wrap;
  gap: 12px;
}

.stats-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   8. VIRTUAL DEVANAGARI KEYBOARD
   ========================================================================== */
.virtual-keyboard-panel {
  display: none;
  background: #ffffff;
  border-top: 1px solid #cbd5e1;
  padding: 12px;
  user-select: none;
}

.virtual-keyboard-panel.visible {
  display: block;
}

.vk-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  margin: 6px 0 3px;
}

.vk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.vk-key {
  min-width: 34px;
  height: 36px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: var(--font-hindi);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.1s ease;
}

.vk-key:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.vk-key:active {
  background: #cbd5e1;
}

.vk-key.key-wide {
  min-width: 60px;
  font-size: 0.82rem;
  font-family: var(--font-family);
}

.vk-key.key-space {
  flex-grow: 1;
  font-size: 0.84rem;
  font-family: var(--font-family);
}

.vk-key.key-matra {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

/* ==========================================================================
   9. SIDEBAR WIDGETS & TOOLS
   ========================================================================== */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.sidebar-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-links-list {
  list-style: none;
}

.sidebar-links-list li {
  margin-bottom: 6px;
}

.sidebar-links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.sidebar-links-list a:hover {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
  text-decoration: none;
}

/* Tab Panels */
.tab-content-panel {
  display: none;
}

.tab-content-panel.active {
  display: block;
}

/* ==========================================================================
   10. SEO ARTICLE & KEYWORD INJECTION
   ========================================================================== */
.seo-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.seo-section h2 {
  font-size: 1.4rem;
  margin: 20px 0 10px;
  color: #0d47a1;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 6px;
}

.seo-section h3 {
  font-size: 1.15rem;
  margin: 16px 0 8px;
  color: #1e293b;
}

.seo-section p {
  font-size: 0.96rem;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.7;
}

.seo-section ol, .seo-section ul {
  margin: 10px 0 16px 22px;
  color: #334155;
  font-size: 0.95rem;
}

.seo-section li {
  margin-bottom: 6px;
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.seo-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.seo-feature-card h4 {
  color: #0d47a1;
  font-size: 1rem;
  margin-bottom: 5px;
}

/* FAQ Accordion */
.faq-box {
  margin: 18px 0;
}

.faq-row {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-q-btn {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q-btn:hover {
  background: #f1f5f9;
}

.faq-ans-text {
  padding: 14px 16px;
  font-size: 0.92rem;
  color: #334155;
  border-top: 1px solid #e2e8f0;
  display: none;
  background: #ffffff;
}

.faq-row.open .faq-ans-text {
  display: block;
}

/* ==========================================================================
   11. FOOTER SECTION (ADSENSE ESSENTIALS)
   ========================================================================== */
.page-footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 36px 0 20px;
  margin-top: 40px;
  border-top: 3px solid #1a73e8;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 8px;
}

.footer-links-list a {
  color: #94a3b8;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
}

.footer-links-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom-bar {
  border-top: 1px solid #334155;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #64748b;
}

/* Modals */
.legal-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  z-index: 2000;
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.legal-modal-overlay.active {
  display: flex;
}

.legal-modal-card {
  background: #ffffff;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-modal-title {
  font-size: 1.15rem;
  color: #0f172a;
}

.modal-close-cross {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.legal-modal-body {
  padding: 18px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
}

.legal-modal-footer {
  padding: 10px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: right;
}

/* Toast Notice */
.toast-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.toast-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Dual-Pane Translation Grid */
.dual-pane-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .dual-pane-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Character Guide Map (for Telugu and Tamil Typing) */
.char-guide-panel {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.char-guide-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.char-guide-group {
  margin-bottom: 12px;
}

.char-guide-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 6px;
}

.char-grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.char-badge {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
}

.char-badge:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.char-badge strong {
  font-size: 1.05rem;
  color: #0f172a;
}

.char-badge span {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

/* Translation Helper Banner directly above Textarea */
.translation-switch-banner {
  margin: 0;
  padding: 10px 14px;
  background: #eff6ff;
  border-top: 1px solid #bfdbfe;
  border-bottom: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: #1e3a8a;
}

.translation-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.translation-switch-btn:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* Top Nav Dropdown for Translation Tools */
.top-nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.top-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  z-index: 1000;
  padding: 6px 0;
}

.top-nav-dropdown-wrapper:hover .top-nav-dropdown-menu,
.top-nav-dropdown-wrapper.open .top-nav-dropdown-menu {
  display: block;
}

.top-nav-dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.top-nav-dropdown-item:hover {
  background: #f1f5f9;
  color: #0284c7;
}

