/* ============================================
   Lee Byung-hun Global Fan Project — style.css
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #f0ece6;
  --bg-warm: #e8e2d8;
  --surface: #ffffff;
  --surface-hover: #faf8f5;
  --accent: #2c2c2c;
  --accent-light: #555;
  --brown: #8b7355;
  --brown-light: #a8956f;
  --brown-dark: #6b5335;
  --gold: #c4a87c;
  --border: #d4cfc8;
  --border-light: #e6e1da;
  --shadow: rgba(44, 44, 44, 0.08);
  --shadow-md: rgba(44, 44, 44, 0.12);
  --shadow-lg: rgba(44, 44, 44, 0.16);
  --font-display: 'Dancing Script', cursive;
  --font-body: 'Lato', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --max-w: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 72px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--accent);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Thai font override */
[data-lang="th"] .section-title,[data-lang="th"] .section-subtitle,
[data-lang="th"] .card-title,[data-lang="th"] .card-desc,[data-lang="th"] .card-badge,
[data-lang="th"] .about-text,[data-lang="th"] .hero-tagline,[data-lang="th"] .hero-subtitle,
[data-lang="th"] .stat-item,[data-lang="th"] .faq-question,[data-lang="th"] .faq-answer p,
[data-lang="th"] .timeline-label,[data-lang="th"] .submit-actions a,
[data-lang="th"] .messages-note,[data-lang="th"] .footer-disclaimer,
[data-lang="th"] .nav-links a,[data-lang="th"] .message-text,[data-lang="th"] .btn-primary
{font-family:'Noto Sans Thai','Lato',sans-serif}

/* Language toggle (shared) */
.lang-toggle{display:flex;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:50px;padding:3px;flex-shrink:0;margin-left:12px}
.lang-btn{padding:5px 14px;border-radius:50px;font-weight:600;color:var(--accent-light);transition:all var(--transition);font-size:.8rem;letter-spacing:.04em}
.lang-btn.active{background:var(--brown);color:#fff}
.lang-btn:hover:not(.active){background:var(--bg-warm)}

/* --- Utility --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(240, 236, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brown);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  transition: color var(--transition);
  font-weight: 500;
}
.nav-links a:hover { color: var(--brown); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; order: 2; }
  .lang-toggle { order: 1; margin-left: auto; margin-right: 12px; }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(240, 236, 230, 0.97);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding-top: 100px;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(196, 168, 124, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1.2;
  font-weight: 700;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 28px;
  font-weight: 400;
}

.flag-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 1.5rem;
}
.flag-emoji {
  display: inline-block;
  transition: transform 0.2s ease;
  cursor: default;
}
.flag-emoji:hover { transform: scale(1.25); }
.flag-note {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  color: var(--accent-light);
  opacity: 0.7;
  margin-top: 4px;
  font-style: italic;
}

.hero-image-wrapper {
  max-width: 560px;
  margin: 0 auto 36px;
  position: relative;
}
.hero-image-frame {
  background: var(--bg-warm);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--shadow-md), 0 2px 8px var(--shadow);
}
.hero-image-frame img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-light);
  margin-bottom: 8px;
  font-style: italic;
}
.hero-book-title {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

/* CTA Button */
.btn-primary {
  display: inline-block;
  background: var(--brown);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(139, 115, 85, 0.25);
}
.btn-primary:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 115, 85, 0.35);
}
.btn-primary.closed {
  background: var(--border);
  color: var(--accent-light);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--brown);
  color: var(--brown);
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--brown);
  color: #fff;
}

/* ============================================
   LIVE STATS BAR
   ============================================ */
.stats-bar {
  position: sticky;
  top: 60px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  padding: 14px 0 10px;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.stat-item {
  font-size: 0.88rem;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-item .stat-number {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}
.progress-track {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--brown));
  border-radius: 4px;
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 600px) {
  .stats-row { gap: 16px; }
  .stat-item { font-size: 0.8rem; }
}

/* ============================================
   WORLD MAP SECTION
   ============================================ */
.map-section {
  padding: 80px 0 60px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 12px;
  color: var(--accent);
}
.section-subtitle {
  text-align: center;
  color: var(--accent-light);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.map-container {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 24px var(--shadow);
  position: relative;
  overflow: hidden;
}
#world-map {
  width: 100%;
  height: 420px;
}
@media (max-width: 768px) {
  #world-map { height: 280px; }
  .map-container { padding: 12px; }
}

/* Map tooltip override */
.jvm-tooltip {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
  border: none !important;
}

/* ============================================
   COUNTRY MODAL
   ============================================ */
.country-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 44, 44, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.country-modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 16px 64px var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  min-width: 240px;
}
.country-modal.active .modal-card { transform: scale(1); }
.modal-flag { font-size: 3.5rem; line-height: 1; margin-bottom: 12px; }
.modal-country-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.modal-sub { color: var(--accent-light); font-size: 0.95rem; }
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--accent-light);
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
}
.modal-close-btn:hover { color: var(--accent); }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 80px 0;
}
.about-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 4px 24px var(--shadow);
  text-align: center;
}
.about-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--accent-light);
  margin-bottom: 40px;
  font-style: italic;
}

/* Timeline */
.timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
}
.timeline-icon {
  width: 52px;
  height: 52px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.timeline-step:hover .timeline-icon {
  border-color: var(--brown);
  background: rgba(139, 115, 85, 0.08);
}
.timeline-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.timeline-connector {
  width: 40px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .about-card { padding: 32px 24px; }
  .timeline { flex-direction: column; gap: 12px; }
  .timeline-connector {
    width: 2px;
    height: 24px;
  }
}

/* ============================================
   HOW TO SUBMIT
   ============================================ */
.submit-section {
  padding: 80px 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.submit-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.submit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--brown));
  opacity: 0;
  transition: opacity var(--transition);
}
.submit-card:hover::before { opacity: 1; }
.submit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-md);
}
.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--accent-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.card-example {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--border);
}
.card-badge {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: auto;
}

.submit-actions {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.submit-notice {
  max-width: 640px;
  padding: 14px 20px;
  background: rgba(196, 168, 105, 0.1);
  border: 1px solid rgba(196, 168, 105, 0.4);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--brown);
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .submit-section { padding: 48px 0; }
  .hero { padding: 84px 0 60px; }
  .hero-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .flag-row { font-size: 1.2rem; gap: 4px; margin-bottom: 20px; }
  .hero-image-wrapper { max-width: 320px; }
  .submit-card { padding: 28px 20px; }
  .card-example { max-width: 200px; }
}

/* ============================================
   MESSAGE WALL
   ============================================ */
.messages-section {
  padding: 80px 0;
}
.masonry-grid {
  columns: 3;
  column-gap: 20px;
}
.message-card {
  break-inside: avoid;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px var(--shadow);
  transition: all var(--transition);
}
.message-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--shadow-md);
}
.message-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
}
.message-text::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  position: absolute;
  top: -14px;
  left: -4px;
  line-height: 1;
  opacity: 0.6;
}
.message-translation {
  font-size: 0.88rem;
  color: var(--accent-light);
  font-style: italic;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 2px solid var(--gold);
  opacity: 0.8;
  line-height: 1.5;
}
.message-author {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 500;
}

.messages-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--accent-light);
  font-style: italic;
}

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

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: 80px 0;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: 0 4px 20px var(--shadow-md);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--brown); }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--accent-light);
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 16px;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent-light);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-socials a:hover {
  border-color: var(--brown);
  color: var(--brown);
  background: rgba(139, 115, 85, 0.06);
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--accent-light);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 8px;
  opacity: 0.8;
}
.footer-copyright {
  font-size: 0.75rem;
  color: var(--border);
}
.footer-visitors {
  margin-top: 16px;
  text-align: center;
}
.footer-visitors img {
  height: 28px;
}

/* ============================================
   SUPPORT / BUY ME A COFFEE BUTTON
   ============================================ */
.support-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 243, 224, 0.92);
  border: 1px solid rgba(196, 164, 105, 0.35);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #8b6a3e;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px var(--shadow);
  transition: all 0.2s ease;
  cursor: pointer;
}
.support-btn:hover {
  border-color: #c4a46c;
  color: #6b4f2d;
  background: rgba(255, 238, 210, 0.95);
  box-shadow: 0 4px 18px var(--shadow);
  transform: translateY(-1px);
}
.support-btn svg {
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .support-btn span { display: none; }
  .support-btn { padding: 10px 12px; border-radius: 50%; }
}

/* ============================================
   BUG REPORT BUTTON
   ============================================ */
.bug-report-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent-light);
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px var(--shadow);
  transition: all 0.2s ease;
  cursor: pointer;
}
.bug-report-btn:hover {
  border-color: var(--brown-light);
  color: var(--brown);
  box-shadow: 0 4px 18px var(--shadow);
  transform: translateY(-1px);
}
.bug-report-btn svg {
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .bug-report-btn span { display: none; }
  .bug-report-btn { padding: 10px 12px; border-radius: 50%; }
}

/* ============================================
   SPECIAL DECORATIVE ELEMENTS
   ============================================ */
.divider-ornament {
  text-align: center;
  padding: 12px 0;
  font-size: 1.2rem;
  letter-spacing: 8px;
  color: var(--gold);
  opacity: 0.5;
}

/* Subtle grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: 1;
}

/* Focus-visible for keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brown-light); }
