/* ===== CSS Variables & Theme ===== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #115e59;
  --accent-hover: #0f5249;
  --accent-light: #ccfbf1;
  --border: #e2e8f0;
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
  --nav-bg: rgba(255,255,255,0.95);
  --sidebar-bg: #f8fafc;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --accent-shadow: var(--accent-shadow);
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent: #2dd4bf;
  --accent-hover: #14b8a6;
  --accent-light: #1e3a5f;
  --border: #334155;
  --code-bg: #020617;
  --code-text: #e2e8f0;
  --card-bg: #1e293b;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 8px 25px rgba(0,0,0,0.4);
  --nav-bg: rgba(15,23,42,0.95);
  --sidebar-bg: #1e293b;
  --footer-bg: #020617;
  --footer-text: #64748b;


  /* Dark mode gradient for nav logo */
  .nav-logo { background: linear-gradient(135deg, var(--accent), #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  --accent-shadow: rgba(45,212,191,0.4);
}

/* ===== Base Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-secondary); }
li { margin-bottom: 0.4rem; }
strong { color: var(--text-primary); font-weight: 600; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 64px;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #1a7a6d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a {
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--accent-light); color: var(--accent);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 220px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.5rem; box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 0.6rem 1rem; border-radius: 8px;
  font-size: 0.875rem; color: var(--text-secondary); white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--accent-light); color: var(--accent); }

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px; border: none; border-radius: 10px;
  background: var(--bg-tertiary); cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--text-secondary);
}
.theme-toggle:hover { background: var(--accent-light); color: var(--accent); }

/* Mobile Menu */
.mobile-menu-btn {
  display: none; width: 40px; height: 40px; border: none; border-radius: 10px;
  background: var(--bg-tertiary); cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 2px; background: var(--text-primary);
  transition: all 0.3s; border-radius: 2px;
}
.mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg-primary); border-bottom: 1px solid var(--border);
  padding: 1rem; z-index: 999; max-height: calc(100vh - 64px); overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.75rem 1rem; border-radius: 8px;
  color: var(--text-secondary); font-size: 0.9375rem; font-weight: 500;
}
.mobile-nav a:hover { background: var(--accent-light); color: var(--accent); }
.mobile-nav .mobile-dropdown-title {
  font-weight: 600; color: var(--text-primary); padding: 0.75rem 1rem 0.25rem;
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer;
}
.mobile-dropdown-title::after {
  content: ' ▾'; font-size: 0.7rem; opacity: 0.5;
}
.mobile-nav-links {
  display: none;
  padding: 0.25rem 0;
}
.mobile-nav-links.open {
  display: block;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ===== Hero Section ===== */
.hero {
  padding: 8rem 1.5rem 4rem; text-align: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.hero h1 {
  font-size: 3rem; font-weight: 800; max-width: 800px; margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem; color: var(--text-secondary); }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 10px; font-size: 0.9375rem;
  font-weight: 600; transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px var(--accent-shadow);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-shadow); }
.btn-secondary {
  background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

/* ===== Cards ===== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 2rem auto;
}
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; transition: all 0.3s;
  box-shadow: var(--card-shadow);
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; margin-bottom: 0; }

/* Tutorial Cards */
.tutorial-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; transition: all 0.3s;
  box-shadow: var(--card-shadow);
}
.tutorial-card:hover {
  transform: translateY(-4px); box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}
.tutorial-card-body { padding: 1.5rem; }
.tutorial-card-tag {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.tag-dart { background: #dbeafe; color: #2563eb; }
.tag-oop { background: #fce7f3; color: #db2777; }
.tag-flutter { background: #d1fae5; color: #059669; }
[data-theme="dark"] .tag-dart { background: #1e3a5f; color: #60a5fa; }
[data-theme="dark"] .tag-oop { background: #4a1942; color: #f472b6; }
[data-theme="dark"] .tag-flutter { background: #064e3b; color: #34d399; }

/* ===== Layout (Sidebar + Content) ===== */
.page-layout {
  display: grid; grid-template-columns: 260px 1fr;
  max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem 2rem;
  gap: 3rem; min-height: calc(100vh - 64px);
}
.sidebar {
  position: sticky; top: 80px; align-self: start;
  max-height: calc(100vh - 100px); overflow-y: auto;
  background: var(--sidebar-bg); border-radius: 16px;
  border: 1px solid var(--border); padding: 1.5rem;
}
.sidebar-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem;
}
.sidebar a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 8px;
  font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.125rem;
  transition: all 0.2s; border-left: 2px solid transparent;
}
.sidebar a:hover { background: var(--accent-light); color: var(--accent); }
.sidebar a.active {
  background: var(--accent-light); color: var(--accent);
  border-left-color: var(--accent); font-weight: 600;
}
.content { max-width: 800px; min-width: 0; }
.content h1 { margin-bottom: 0.5rem; }
.content .subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }

@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; padding-top: 5rem; }
  .sidebar { position: static; max-height: none; }
  .hero h1 { font-size: 2rem; }
}

/* ===== Code Blocks ===== */
pre {
  background: var(--code-bg); color: var(--code-text);
  border-radius: 12px; padding: 1.25rem 1.5rem;
  overflow-x: auto; margin: 1.25rem 0; font-size: 0.875rem;
  line-height: 1.6; border: 1px solid rgba(255,255,255,0.05);
}
code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}
:not(pre) > code {
  background: var(--bg-tertiary); color: var(--accent);
  padding: 0.15rem 0.4rem; border-radius: 6px; font-size: 0.875em;
  border: 1px solid var(--border);
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  background: #0f172a; border-radius: 12px 12px 0 0;
  padding: 0.5rem 1rem; font-size: 0.75rem; color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.05); border-bottom: none;
}
.code-header + pre { border-radius: 0 0 12px 12px; margin-top: 0; }

/* Syntax Highlighting Keywords */
.kw { color: #c084fc; }
.fn { color: #67e8f9; }
.str { color: #86efac; }
.num { color: #fbbf24; }
.cmt { color: #64748b; font-style: italic; }
.type { color: #7dd3fc; }
.ann { color: #f472b6; }
.param { color: #fb923c; }

/* ===== Table ===== */
table {
  width: 100%; border-collapse: collapse; margin: 1.25rem 0;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
th, td {
  padding: 0.75rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 0.9375rem;
}
th {
  background: var(--bg-tertiary); font-weight: 600;
  color: var(--text-primary); font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-secondary); }

/* ===== Callout Boxes ===== */
.callout {
  padding: 1rem 1.25rem; border-radius: 12px; margin: 1.25rem 0;
  border-left: 4px solid; font-size: 0.9375rem;
}
.callout-info { background: #eff6ff; border-color: #3b82f6; }
.callout-warning { background: #fffbeb; border-color: #f59e0b; }
.callout-tip { background: #ecfdf5; border-color: #10b981; }
[data-theme="dark"] .callout-info { background: #1e293b; }
[data-theme="dark"] .callout-warning { background: #1e293b; }
[data-theme="dark"] .callout-tip { background: #1e293b; }
.callout strong { display: block; margin-bottom: 0.25rem; }

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding: 3rem 1.5rem 1.5rem; margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer h4 { color: #f1f5f9; font-size: 0.9375rem; margin-bottom: 1rem; }
.footer a { color: var(--footer-text); font-size: 0.875rem; transition: color 0.2s; }
.footer a:hover { color: #f1f5f9; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid #334155; text-align: center;
  font-size: 0.8125rem;
}

/* ===== Page Header ===== */
.page-header {
  padding: 6rem 1.5rem 2rem; text-align: center;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header .breadcrumb { color: var(--text-muted); font-size: 0.875rem; }
.page-header .breadcrumb a { color: var(--accent); }

/* ===== Section Spacing ===== */
.section { padding: 4rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: 2rem; margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center; color: var(--text-muted); max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== Form Styles ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-primary); font-size: 0.9375rem;
  transition: border-color 0.2s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-shadow);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* ===== Responsive Helpers ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 800;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: #fff; border: none;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  font-size: 1.25rem; box-shadow: 0 4px 14px var(--accent-shadow);
  transition: all 0.3s;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: translateY(-2px); }

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--card-bg); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-consent.visible { transform: translateY(0); }
.cookie-consent-inner {
  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: 280px;
}
.cookie-consent-text p {
  margin: 0 0 0.25rem; font-size: 0.9375rem; color: var(--text-secondary);
  line-height: 1.6;
}
.cookie-consent-text a {
  color: var(--accent); font-weight: 500;
  text-decoration: underline; text-underline-offset: 2px;
}
.cookie-consent-text a:hover { color: var(--accent-hover); }
.cookie-consent-actions {
  display: flex; gap: 0.75rem; flex-shrink: 0;
}
.cookie-btn {
  padding: 0.625rem 1.25rem; border-radius: 10px; font-size: 0.875rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px var(--accent-shadow);
}
.cookie-btn-accept:hover {
  background: var(--accent-hover);
  transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-shadow);
}
.cookie-btn-reject {
  background: var(--bg-tertiary); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.cookie-btn-reject:hover {
  background: var(--bg-secondary); color: var(--text-primary);
  border-color: var(--text-muted);
}
@media (max-width: 640px) {
  .cookie-consent-inner { flex-direction: column; align-items: stretch; }
  .cookie-consent-actions { justify-content: stretch; }
  .cookie-consent-actions .cookie-btn { flex: 1; text-align: center; }
}

/* ===== Manage Cookies Link ===== */
.manage-cookies-link {
  display: block; padding: 0.5rem 0; font-size: 0.875rem;
  color: var(--footer-text); transition: color 0.2s; cursor: pointer;
}
.manage-cookies-link:hover { color: #f1f5f9; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease-out forwards; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .card:hover, .tutorial-card:hover, .btn-primary:hover,
  .cookie-btn-accept:hover, .back-to-top:hover {
    transform: none;
  }
  .cookie-consent {
    transition: none;
  }
  .cookie-consent.visible {
    transform: translateY(0) !important;
  }
}

/* ===== Email Copy Button ===== */
.email-copy-btn {
  transition: all 0.2s ease;
  position: relative;
}
.email-copy-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.email-copy-btn:active {
  transform: translateY(0);
}
.email-copy-btn.copied {
  background: #059669 !important;
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Author Bio ===== */
.author-bio {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.5rem; border-radius: 16px; margin: 2.5rem 0 1.5rem;
  background: var(--bg-secondary); border: 1px solid var(--border);
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #1a7a6d);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; font-weight: 700;
}
.author-info { flex: 1; }
.author-name {
  font-weight: 700; font-size: 1rem; color: var(--text-primary); margin-bottom: 0.25rem;
}
.author-role {
  font-size: 0.8125rem; color: var(--accent); font-weight: 500; margin-bottom: 0.5rem;
}
.author-desc {
  font-size: 0.875rem; color: var(--text-secondary); margin: 0; line-height: 1.6;
}

/* ===== Feedback Widget ===== */
.feedback-widget {
  padding: 2rem; border-radius: 16px; margin: 1.5rem 0 2rem;
  background: var(--bg-secondary); border: 1px solid var(--border);
  text-align: center;
}
.feedback-question {
  font-size: 1.125rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 1rem;
}
.feedback-buttons {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
}
.feedback-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 12px; font-size: 0.9375rem;
  font-weight: 600; cursor: pointer; border: 2px solid var(--border);
  background: var(--card-bg); color: var(--text-secondary);
  transition: all 0.25s ease;
}
.feedback-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light); transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-shadow);
}
.feedback-btn.selected {
  border-color: var(--accent); color: #fff;
  background: var(--accent); transform: scale(1.05);
}
.feedback-btn-icon {
  font-size: 1.25rem;
}
.feedback-thanks {
  display: none; font-size: 0.9375rem; color: var(--accent);
  font-weight: 500; margin-top: 0.5rem;
}
.feedback-thanks.visible { display: block; }
.feedback-comment {
  display: none; margin-top: 1rem;
}
.feedback-comment.visible { display: block; }
.feedback-comment textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card-bg);
  color: var(--text-primary); font-size: 0.9375rem; font-family: inherit;
  resize: vertical; min-height: 80px; transition: border-color 0.2s;
}
.feedback-comment textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-shadow);
}
.feedback-submit {
  margin-top: 0.75rem; padding: 0.625rem 1.25rem; border-radius: 10px;
  background: var(--accent); color: #fff; border: none; font-size: 0.875rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.feedback-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ===== About Section (Homepage) ===== */
.about-content {
  max-width: 800px; margin: 0 auto;
  text-align: left;
}
.about-content p {
  font-size: 1.0625rem; line-height: 1.8;
  color: var(--text-secondary);
}

/* ===== Stats Grid (Homepage) ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem; max-width: 800px; margin: 2rem auto;
}
.stat-card {
  text-align: center; padding: 1.5rem 1rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; transition: all 0.3s;
}
.stat-card:hover {
  transform: translateY(-2px); box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}
.stat-number {
  font-size: 2rem; font-weight: 800; color: var(--accent);
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.875rem; color: var(--text-muted); font-weight: 500;
}

/* ===== Responsive (new) ===== */
@media (max-width: 640px) {
  .author-bio { flex-direction: column; align-items: center; text-align: center; }
  .feedback-buttons { flex-direction: column; align-items: center; }
  .feedback-btn { width: 100%; max-width: 260px; justify-content: center; }
}

