/* ==========================================================================
   Romanized to Nepali Unicode Converter - style.css
   Branding: gurungdhan.com.np
   Color Theme: Dark Blue / Indigo Mix-Gradient & Frosted Glassmorphism
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-gradient: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #0f172a 100%);
  --bg-dark-base: #0a0e1a;
  --card-bg: rgba(15, 23, 42, 0.82);
  --card-border: rgba(59, 130, 246, 0.22);
  
  /* Textarea & Inner Card Colors */
  --input-bg: #0f172a;
  --output-bg: #111c38;
  --border-blue: #1d4ed8;
  --border-blue-hover: #2563eb;
  --border-blue-active: #3b82f6;
  --glow-blue: rgba(37, 99, 235, 0.4);
  --glow-accent: rgba(99, 102, 241, 0.3);

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-bright: #ffffff;
  
  /* Brand Accents */
  --accent-blue: #3b82f6;
  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-success: #10b981;
  --accent-danger: #ef4444;

  /* Typography Stacks */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-devanagari: 'Mukta', 'Noto Sans Devanagari', 'Mangal', 'Segoe UI', sans-serif;

  /* Layout & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  padding: 2.5rem 1.25rem;
}

/* Ambient Background Lighting */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.45;
}

.glow-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.5) 0%, rgba(30, 27, 75, 0) 70%);
}

.glow-2 {
  bottom: 5%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.4) 0%, rgba(15, 23, 42, 0) 70%);
}

/* Container Wrapper */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* ==========================================================================
   Header & Branding Badge
   ========================================================================== */
.app-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.header-top-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.nav-back,
.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  min-height: 44px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

.nav-back:hover,
.back-home-link:hover {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--accent-blue);
  transform: translateX(-3px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.back-icon {
  width: 16px;
  height: 16px;
}

/* Stylish Auth Button (Login / Register) */
.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  min-height: 44px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
  touch-action: manipulation;
  cursor: pointer;
}

.btn-auth:hover {
  color: #ffffff;
  background: rgba(30, 58, 138, 0.45);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.auth-icon {
  width: 16px;
  height: 16px;
  stroke: var(--accent-cyan);
}

.branding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.35);
  backdrop-filter: blur(12px);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.branding-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.7);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.badge-domain {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f1f5f9;
}

.badge-tag {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}

.main-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #bfdbfe 70%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 20px rgba(59, 130, 246, 0.25);
}

.subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #cbd5e1;
  max-width: 650px;
}

/* ==========================================================================
   Main Converter Card (Frosted Glassmorphism)
   ========================================================================== */
.converter-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 30px -5px rgba(37, 99, 235, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

/* Toolbar Controls */
.toolbar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Custom Toggle Switch */
.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  background: rgba(30, 41, 59, 0.6);
  padding: 0.5rem 1rem;
  min-height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition-fast);
  touch-action: manipulation;
}

.toggle-control:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.toggle-control input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  width: 36px;
  height: 20px;
  background: #334155;
  border-radius: 9999px;
  position: relative;
  transition: background var(--transition-smooth);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-smooth);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.toggle-control input:checked + .toggle-slider {
  background: var(--accent-blue);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.toggle-control input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

.toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* ==========================================================================
   Buttons (Touch Target >= 44px)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  outline: none;
  touch-action: manipulation;
}

.btn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
}

/* Primary Button (Copy) */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-primary.copied-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
}

/* Secondary Button (Sample Text) */
.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Danger Button (Clear) */
.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

/* Download Text Button */
.btn-text {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

.btn-text:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
}

.btn-icon-sm {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Dual Editor Workspace (Desktop >= 1024px side-by-side, Tablet/Mobile < 900px stack)
   ========================================================================== */
.conversion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .conversion-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.editor-pane {
  background: var(--input-bg);
  border: 2px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.output-pane {
  background: var(--output-bg);
}

/* Prominent Dark Blue Border Glow on Focus */
.editor-pane:focus-within {
  border-color: var(--border-blue-active);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 0 24px var(--glow-blue);
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pane-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pane-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.indicator-input {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.indicator-output {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.pane-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #f1f5f9;
}

.helper-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Textareas */
.textarea-wrapper {
  position: relative;
  flex: 1;
}

textarea {
  width: 100%;
  min-height: 280px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  color: var(--text-bright);
  font-size: 1.15rem; /* >= 16px eliminates iOS auto-zoom */
  line-height: 1.7;
  padding: 0.5rem 0.25rem;
  font-family: var(--font-devanagari);
}

#inputText {
  font-family: var(--font-sans);
  color: #f8fafc;
}

#outputText {
  font-family: var(--font-devanagari);
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.3px;
}

textarea::placeholder {
  color: #475569;
  font-style: italic;
  font-size: 1rem;
}

/* Custom Scrollbar for Textareas */
textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

/* Pane Footer with Counters */
.pane-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.counter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.counter-item strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

.counter-divider {
  color: var(--text-dim);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: #064e3b;
  color: #ecfdf5;
  border: 1px solid #10b981;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.4);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 9999;
}

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

.toast-icon {
  width: 18px;
  height: 18px;
  stroke: #34d399;
}

/* ==========================================================================
   Quick Reference & Cheat Sheet Section
   ========================================================================== */
.cheatsheet-section {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.cheatsheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cheatsheet-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-icon-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.section-icon-badge svg {
  width: 22px;
  height: 22px;
}

.cheatsheet-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
}

.cheatsheet-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cheatsheet-search-wrap input {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  min-width: 260px;
  transition: all var(--transition-fast);
}

.cheatsheet-search-wrap input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* Category Filter Tabs */
.cheat-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
}

.cheat-tab {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cheat-tab:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #ffffff;
}

.cheat-tab.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

/* Cheatsheet Grid */
.cheatsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.cheatsheet-grid::-webkit-scrollbar {
  width: 6px;
}

.cheatsheet-grid::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border-radius: 3px;
}

.cheat-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.cheat-card:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.cheat-card:active {
  transform: scale(0.96);
}

.cheat-nepali {
  font-family: var(--font-devanagari);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.cheat-roman {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(15, 23, 42, 0.6);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.cheat-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Typing Tips Guide
   ========================================================================== */
.guide-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  color: #e2e8f0;
}

.guide-icon {
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.guide-item {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.guide-item strong {
  color: #f1f5f9;
}

.guide-item code {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.85rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* ==========================================================================
   Feedback & Contact Section
   ========================================================================== */
.feedback-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.feedback-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-indigo), transparent);
  opacity: 0.8;
}

.feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.feedback-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.feedback-icon-badge {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feedback-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.feedback-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-top: 0.35rem;
  line-height: 1.6;
}

/* Contact Links Grid */
.feedback-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.feedback-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #e2e8f0;
  transition: all var(--transition-smooth);
  min-height: 56px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feedback-btn:hover {
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.85);
}

.feedback-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feedback-btn:hover .feedback-btn-icon {
  transform: scale(1.08);
}

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

.feedback-btn-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.feedback-btn-platform {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.feedback-btn-handle {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedback-arrow {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
  margin-left: auto;
}

.feedback-btn:hover .feedback-arrow {
  color: #ffffff;
  transform: translate(2px, -2px);
}

/* Individual Brand Accents & Glows */
.feedback-email .feedback-btn-icon {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.feedback-email:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.22);
}

.feedback-facebook .feedback-btn-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.feedback-facebook:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.22);
}

.feedback-instagram .feedback-btn-icon {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}
.feedback-instagram:hover {
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.22);
}

.feedback-youtube .feedback-btn-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.feedback-youtube:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.22);
}

.feedback-tiktok .feedback-btn-icon {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
}
.feedback-tiktok:hover {
  border-color: rgba(45, 212, 191, 0.6);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.22);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.copyright {
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 640px) {
  body {
    padding: 1.25rem 0.75rem;
  }

  .header-top-nav {
    gap: 0.5rem;
  }

  .nav-back,
  .back-home-link,
  .btn-auth {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    min-height: 42px;
  }

  .converter-card, .cheatsheet-section, .guide-card, .feedback-card {
    padding: 1rem;
    border-radius: var(--radius-lg);
  }

  .toolbar-section {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .toolbar-left, .toolbar-right {
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
  }

  .toolbar-right .btn {
    flex: 1;
  }

  .cheatsheet-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cheatsheet-search-wrap input {
    width: 100%;
    min-height: 44px;
    font-size: 1rem;
  }

  .cheatsheet-grid {
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 0.5rem;
  }

  textarea {
    min-height: 200px;
    font-size: 1.12rem; /* Always >= 16px */
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .feedback-links {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .feedback-btn {
    padding: 0.65rem 0.85rem;
    min-height: 50px;
  }

  .feedback-title {
    font-size: 1.1rem;
  }

  .feedback-desc {
    font-size: 0.86rem;
  }

  .toast {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
    text-align: center;
  }

  .cheat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .cheat-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
