/* ============================================
   MAIN STYLESHEET - Article Spinner Application
   ============================================ */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  background-color: #f3f4f6;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: #374151;
}

a:hover {
  color: #2563eb;
}

strong, b {
  font-weight: 700;
}

small {
  font-size: 0.875rem;
  color: #6b7280;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: #2563eb; }
.text-secondary { color: #6b7280; }
.text-danger { color: #dc2626; }
.text-success { color: #16a34a; }
.text-muted { color: #9ca3af; }
.text-white { color: #ffffff; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

/* ============================================
   3. LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.col-6 { flex: 0 0 calc(50% - 0.75rem); }
.col-4 { flex: 0 0 calc(33.333% - 1rem); }
.col-3 { flex: 0 0 calc(25% - 1.125rem); }
.col-full { flex: 0 0 100%; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   3.5 TOPBAR
   ============================================ */
.topbar {
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.8rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 36px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.topbar-donate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-donate-label {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
}

.topbar-donate-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.topbar-donate-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.topbar-donate-link.paypal-link {
  background: #0070ba;
}

.topbar-donate-link.paypal-link:hover {
  background: #005ea6;
  color: #ffffff;
}

.topbar-donate-link.coffee-link {
  background: #ffdd00;
  color: #1a1a1a;
}

.topbar-donate-link.coffee-link:hover {
  background: #ffc800;
  color: #1a1a1a;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-share-label {
  color: #94a3b8;
  font-size: 0.75rem;
}

.topbar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.topbar-social-link:hover {
  background: #2563eb;
  color: #ffffff;
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */
.header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: #1d4ed8;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: #2563eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Language Selector Dropdown */
.language-selector {
  position: relative;
}

.language-selector-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-selector-btn:hover {
  background: #e5e7eb;
}

.language-selector-btn .flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.language-selector-btn .arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.language-selector.open .arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  overflow: hidden;
  z-index: 100;
}

.language-selector.open .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s ease;
}

.language-option:hover {
  background: #f3f4f6;
}

.language-option.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.language-option .flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu - hidden by default on desktop */
.mobile-menu {
  display: none;
}

/* ============================================
   4.5 PAGE HEADER (Inner Pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  padding: 9rem 1.5rem 3rem;
  text-align: center;
  color: #ffffff;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  padding: 9.5rem 1.5rem 4rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   6. SPINNER AREA
   ============================================ */
.spinner-section {
  padding: 3rem 0;
}

.spinner-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.spinner-card .mode-selector {
  margin-bottom: 1.5rem;
}

.spinner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.spinner-column label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.spinner-column textarea {
  width: 100%;
  min-height: 220px;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2937;
  background: #f9fafb;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.spinner-column textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

.spinner-column textarea::placeholder {
  color: #9ca3af;
}

.spinner-column textarea[readonly] {
  background: #f3f4f6;
  cursor: default;
}

.text-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.text-stats strong {
  color: #374151;
}

.spinner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.spinner-container {
  display: none;
}

/* ─── Compare Section ────────────────────────────────────────────── */
.compare-section {
  padding: 3rem 0;
  background: #f9fafb;
}

.compare-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  text-align: center;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.compare-column {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.compare-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

#compare-original,
#compare-result {
  white-space: pre-wrap;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
  min-height: 120px;
  max-height: 400px;
  overflow-y: auto;
}

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

.spinner-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

/* Mode Selector - Pill/Button Style */
.mode-selector {
  display: flex;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.mode-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  color: #374151;
  background: #e5e7eb;
}

.mode-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Textarea */
.spinner-textarea {
  width: 100%;
  min-height: 250px;
  padding: 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
  background: #f9fafb;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.spinner-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

.spinner-textarea::placeholder {
  color: #9ca3af;
}

/* Spin Button */
.spin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: #2563eb;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
}

.spin-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.spin-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.spin-btn:disabled {
  background: #93c5fd;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Result Area */
.result-area {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.result-area h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.result-box {
  width: 100%;
  min-height: 200px;
  padding: 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f0fdf4;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
  resize: vertical;
}

.result-box:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Word/Char Counters */
.counters {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.counter {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.counter strong {
  color: #2563eb;
  font-weight: 600;
}

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  background: #1e40af;
  border-color: #1e40af;
}

.btn-secondary {
  background: #6b7280;
  color: #ffffff;
  border-color: #6b7280;
}

.btn-secondary:hover {
  background: #4b5563;
  border-color: #4b5563;
}

.btn-outline {
  background: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.btn-outline:hover {
  background: #2563eb;
  color: #ffffff;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.btn-success:hover {
  background: #15803d;
  border-color: #15803d;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  border-radius: 12px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================
   8. CARDS
   ============================================ */
.card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.card-text {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
}

/* ============================================
   9. FEATURES GRID
   ============================================ */
.features-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
}

.section-title p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: #eff6ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ============================================
   10. TIPS SECTION
   ============================================ */
.tips-section {
  padding: 4rem 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tip-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
}

.tip-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: #fef3c7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.tip-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.4rem;
}

.tip-content p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ============================================
   11. AD PLACEHOLDERS
   ============================================ */
.ad-container {
  margin: 2rem 0;
  text-align: center;
}

.ad-rotation {
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.ad-rotation .ad-item {
  width: 100%;
  transition: opacity 0.5s ease;
}

.ad-rotation .ad-item a {
  display: block;
  text-decoration: none;
}

.ad-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0.75rem;
}

.ad-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.ad-dot.active {
  background: #2563eb;
}

.ad-dot:hover {
  background: #93c5fd;
}

.ad-placeholder {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: #9ca3af;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.ad-placeholder:hover {
  border-color: #93c5fd;
}

.ad-placeholder-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ad-placeholder-size {
  font-size: 0.8rem;
  color: #d1d5db;
}

.ad-sidebar {
  position: sticky;
  top: 80px;
}

/* ============================================
   12. AD ROTATION / CAROUSEL
   ============================================ */
.ad-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ad-carousel-slides {
  display: flex;
  transition: opacity 0.5s ease;
}

.ad-carousel-slide {
  min-width: 100%;
  padding: 2rem;
  text-align: center;
}

.ad-carousel-slide img {
  max-height: 90px;
  margin: 0 auto;
}

.ad-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 1rem;
}

.ad-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ad-carousel-dot.active {
  background: #2563eb;
}

.ad-carousel-dot:hover {
  background: #93c5fd;
}

/* ============================================
   13. CONTACT FORM
   ============================================ */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form-wrapper {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contact-info {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.contact-info h3 {
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.contact-info a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 3rem 0 4rem;
}

.about-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}

.about-card h2 {
  font-size: 1.5rem;
  color: #111827;
  margin-bottom: 1rem;
}

.about-card p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about-card ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.about-card li {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.about-social {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: #2563eb;
  color: #ffffff;
}

/* ============================================
   POLICY SECTION (Privacy / Terms)
   ============================================ */
.policy-section {
  padding: 3rem 0 4rem;
}

.policy-container {
  max-width: 800px;
}

.policy-intro {
  background: #f0f7ff;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #2563eb;
  margin-bottom: 2rem;
}

.policy-intro p {
  color: #1e40af;
  font-size: 1.05rem;
  margin: 0;
}

.policy-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.policy-card h2 {
  font-size: 1.3rem;
  color: #111827;
  margin-bottom: 0.75rem;
}

.policy-card p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.policy-card ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-card li {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.policy-card strong {
  color: #111827;
}

.policy-card a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.policy-card a:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  color: #1f2937;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-error {
  font-size: 0.85rem;
  color: #dc2626;
  margin-top: 0.35rem;
}

.form-hint {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.35rem;
}

/* ============================================
   14. PRIVACY / TERMS PAGES
   ============================================ */
.content-page {
  padding: 6rem 0 4rem;
}

.content-section {
  margin-bottom: 2.5rem;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.content-section p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section ul {
  list-style: disc;
}

.content-section ol {
  list-style: decimal;
}

.content-section li {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.content-section a {
  color: #2563eb;
  text-decoration: underline;
}

.content-section a:hover {
  color: #1d4ed8;
}

.content-section strong {
  font-weight: 600;
  color: #111827;
}

.content-section blockquote {
  border-left: 4px solid #2563eb;
  padding: 1rem 1.25rem;
  background: #eff6ff;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
}

.content-section code {
  background: #f3f4f6;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #dc2626;
}

/* ============================================
   15. FOOTER
   ============================================ */
.footer {
  background: #111827;
  color: #d1d5db;
  padding: 4rem 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.6;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

/* Social Icons in Footer */
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ============================================
   16. DONATE SECTION
   ============================================ */
.donate-section {
  padding: 3rem 0;
  text-align: center;
}

.donate-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 2.5rem;
}

.donate-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.donate-card p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.donate-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: #0070ba;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.paypal-btn:hover {
  background: #005ea6;
  box-shadow: 0 4px 12px rgba(0, 112, 186, 0.3);
  transform: translateY(-1px);
}

.coffee-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: #ffdd00;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coffee-btn:hover {
  background: #ffc800;
  box-shadow: 0 4px 12px rgba(255, 221, 0, 0.3);
  transform: translateY(-1px);
}

/* ============================================
   17. COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1f2937;
  color: #d1d5db;
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: none;
}

.cookie-consent.show {
  display: block;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text p {
  font-size: 0.9rem;
  color: #d1d5db;
  margin: 0;
  line-height: 1.5;
}

.cookie-consent-text a {
  color: #60a5fa;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-accept-btn {
  padding: 0.6rem 1.5rem;
  background: #16a34a;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-accept-btn:hover {
  background: #15803d;
}

.cookie-decline-btn {
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: #d1d5db;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-decline-btn:hover {
  background: #374151;
  border-color: #6b7280;
}

/* ============================================
   18. SOCIAL SHARE ICONS
   ============================================ */
.social-share {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.share-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.share-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-facebook { background: #1877f2; }
.share-facebook:hover { background: #166fe5; }

.share-twitter { background: #1da1f2; }
.share-twitter:hover { background: #1a8cd8; }

.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { background: #20bd5a; }

.share-telegram { background: #0088cc; }
.share-telegram:hover { background: #006da3; }

.share-linkedin { background: #0a66c2; }
.share-linkedin:hover { background: #095196; }

.share-pinterest { background: #e60023; }
.share-pinterest:hover { background: #cc0020; }

.share-reddit { background: #ff4500; }
.share-reddit:hover { background: #e63e00; }

.share-email { background: #6b7280; }
.share-email:hover { background: #4b5563; }

/* ============================================
   19. BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-3px);
}

/* ============================================
   20. LOADING SPINNER
   ============================================ */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.spinner-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner-sm {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.loading-spinner-lg {
  width: 64px;
  height: 64px;
  border-width: 5px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 1rem;
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

/* ============================================
   21. DARK MODE
   ============================================ */
[data-theme="dark"] body,
[data-theme="dark"] {
  background-color: #0f172a;
  color: #e2e8f0;
}

[data-theme="dark"] .header {
  background: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .topbar {
  background: #0f172a;
}

[data-theme="dark"] .topbar-donate-link {
  color: #ffffff;
}

[data-theme="dark"] .topbar-donate-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

[data-theme="dark"] .topbar-donate-label {
  color: #64748b;
}

[data-theme="dark"] .topbar-social-link {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

[data-theme="dark"] .topbar-social-link:hover {
  background: #2563eb;
  color: #ffffff;
}

[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
}

[data-theme="dark"] .nav-link {
  color: #94a3b8;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #60a5fa;
}

[data-theme="dark"] .language-selector-btn {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

[data-theme="dark"] .language-dropdown {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .language-option {
  color: #e2e8f0;
}

[data-theme="dark"] .language-option:hover {
  background: #334155;
}

[data-theme="dark"] .language-option.active {
  background: #1e3a5f;
  color: #60a5fa;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f1f5f9;
}

[data-theme="dark"] p {
  color: #cbd5e1;
}

[data-theme="dark"] .card,
[data-theme="dark"] .spinner-card,
[data-theme="dark"] .tip-card {
  background: #1e293b;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .spinner-column textarea,
[data-theme="dark"] .result-box {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .spinner-column textarea:focus,
[data-theme="dark"] .result-box:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .mode-selector {
  background: #334155;
}

[data-theme="dark"] .mode-btn {
  color: #94a3b8;
}

[data-theme="dark"] .mode-btn:hover {
  color: #e2e8f0;
  background: #475569;
}

[data-theme="dark"] .feature-icon {
  background: #1e3a5f;
}

[data-theme="dark"] .compare-section {
  background: #0f172a;
}

[data-theme="dark"] .compare-column {
  background: #1e293b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="dark"] .compare-column h4 {
  color: #e2e8f0;
  border-bottom-color: #334155;
}

[data-theme="dark"] #compare-original,
[data-theme="dark"] #compare-result {
  color: #cbd5e1;
}

[data-theme="dark"] .ad-placeholder {
  background: #1e293b;
  border-color: #334155;
  color: #64748b;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
  background: #1e293b;
}

[data-theme="dark"] .footer {
  background: #020617;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: #1e293b;
}

[data-theme="dark"] .cookie-consent {
  background: #1e293b;
}

[data-theme="dark"] .ad-carousel {
  background: #1e293b;
}

[data-theme="dark"] .back-to-top {
  background: #1d4ed8;
}

[data-theme="dark"] .contact-form-wrapper {
  background: #1e293b;
}

[data-theme="dark"] .contact-info {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .contact-info h3 {
  color: #e2e8f0;
}

[data-theme="dark"] .contact-info p {
  color: #94a3b8;
}

[data-theme="dark"] .about-card {
  background: #1e293b;
}

[data-theme="dark"] .about-card h2 {
  color: #e2e8f0;
}

[data-theme="dark"] .about-card p,
[data-theme="dark"] .about-card li {
  color: #94a3b8;
}

[data-theme="dark"] .about-social {
  border-color: #334155;
}

[data-theme="dark"] .social-icon {
  background: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .policy-intro {
  background: #172554;
  border-left-color: #60a5fa;
}

[data-theme="dark"] .policy-intro p {
  color: #93c5fd;
}

[data-theme="dark"] .policy-card {
  background: #1e293b;
}

[data-theme="dark"] .policy-card h2 {
  color: #e2e8f0;
}

[data-theme="dark"] .policy-card p,
[data-theme="dark"] .policy-card li {
  color: #94a3b8;
}

[data-theme="dark"] .policy-card strong {
  color: #e2e8f0;
}

[data-theme="dark"] .policy-card a {
  color: #60a5fa;
}

[data-theme="dark"] .donate-card {
  background: #1e293b;
}

[data-theme="dark"] .donate-card h3,
[data-theme="dark"] .donate-card p {
  color: #e2e8f0;
}

[data-theme="dark"] .lang-switch-btn:hover,
[data-theme="dark"] .lang-switch-btn.active {
  background: #1e3a8a;
}

[data-theme="dark"] .mobile-menu {
  background: #0f172a;
}

[data-theme="dark"] .mobile-nav-links li {
  border-color: #1e293b;
}

[data-theme="dark"] .toast {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] #loading-overlay {
  background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .contact-form-wrapper {
  background: #1e293b;
  border: 1px solid #334155;
}

[data-theme="dark"] .contact-form-wrapper .form-group label {
  color: #e2e8f0;
}

[data-theme="dark"] .spinner-column label {
  color: #e2e8f0;
}

[data-theme="dark"] .spinner-column textarea {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .spinner-column textarea:focus {
  background: #1e293b;
  border-color: #2563eb;
}

[data-theme="dark"] .spinner-column textarea[readonly] {
  background: #0f172a;
}

[data-theme="dark"] .text-stats {
  color: #94a3b8;
}

[data-theme="dark"] .text-stats strong {
  color: #e2e8f0;
}

[data-theme="dark"] .compare-column {
  background: #1e293b;
}

[data-theme="dark"] #compare-original,
[data-theme="dark"] #compare-result {
  color: #e2e8f0;
}

[data-theme="dark"] .spinner-section {
  background: #0f172a;
}

[data-theme="dark"] .features-section {
  background: #0f172a;
}

[data-theme="dark"] .tips-section {
  background: #0f172a;
}

/* ============================================
   22. TABLES
   ============================================ */
.table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead {
  background: #f9fafb;
}

th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

td {
  padding: 0.85rem 1rem;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
}

tbody tr:hover {
  background: #f9fafb;
}

tbody tr:last-child td {
  border-bottom: none;
}

[data-theme="dark"] table {
  border-color: #334155;
}

[data-theme="dark"] thead {
  background: #1e293b;
}

[data-theme="dark"] th {
  color: #e2e8f0;
  border-bottom-color: #334155;
}

[data-theme="dark"] td {
  color: #cbd5e1;
  border-bottom-color: #1e293b;
}

[data-theme="dark"] tbody tr:hover {
  background: #1e293b;
}

/* ============================================
   23. BREADCRUMBS
   ============================================ */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs-item a {
  color: #2563eb;
  font-weight: 500;
}

.breadcrumbs-item a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.breadcrumbs-separator {
  color: #d1d5db;
  font-size: 0.8rem;
}

.breadcrumbs-item:last-child {
  color: #374151;
  font-weight: 500;
}

/* ============================================
   24. LANGUAGE SELECTOR (Additional)
   ============================================ */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lang-switch-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.lang-switch-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* ============================================
   25. UTILITIES
   ============================================ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.relative { position: relative; }
.absolute { position: absolute; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 50%; }

.shadow { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }

.border { border: 1px solid #e5e7eb; }
.border-2 { border: 2px solid #e5e7eb; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   26. RESULT COMPARISON (Side-by-Side)
   ============================================ */
.comparison-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.comparison-panel {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.comparison-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-panel-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.comparison-panel-original .comparison-panel-header {
  background: #fef3c7;
  border-bottom-color: #fcd34d;
}

.comparison-panel-original .comparison-panel-header h4 {
  color: #92400e;
}

.comparison-panel-result .comparison-panel-header {
  background: #dcfce7;
  border-bottom-color: #86efac;
}

.comparison-panel-result .comparison-panel-header h4 {
  color: #166534;
}

.comparison-panel-body {
  padding: 1.25rem;
  min-height: 180px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
  background: #ffffff;
}

.comparison-panel-body:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  font-style: italic;
}

/* ============================================
   27. COPY NOTIFICATION (Toast)
   ============================================ */
.copy-toast {
  position: fixed;
  top: 80px;
  right: 2rem;
  background: #111827;
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.copy-toast-icon {
  color: #34d399;
  font-size: 1.1rem;
}

.copy-toast.success {
  background: #065f46;
}

.copy-toast.error {
  background: #991b1b;
}

/* ============================================
   ADDITIONAL COMPONENTS
   ============================================ */

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.5rem;
  gap: 0;
}

.tab-btn {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #2563eb;
}

.tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  line-height: 1;
}

.badge-primary {
  background: #dbeafe;
  color: #2563eb;
}

.badge-success {
  background: #dcfce7;
  color: #16a34a;
}

.badge-warning {
  background: #fef3c7;
  color: #d97706;
}

.badge-danger {
  background: #fee2e2;
  color: #dc2626;
}

/* Alert / Notification */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-danger,
.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-hide {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.toast-success {
  background: #065f46;
}

.toast-error {
  background: #991b1b;
}

.toast-info {
  background: #1e40af;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  backdrop-filter: blur(2px);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #ffffff;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  color: #374151;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: #f3f4f6;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .back-to-top,
  .cookie-consent,
  .ad-container,
  .social-share,
  .donate-section {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .container {
    max-width: 100%;
  }
}
.container p {
    color: antiquewhite;
}
