/* Web Converter — static site styles */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-container { max-width: 1024px; margin: 0 auto; padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--primary-hover); }
.nav-links { display: none; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.lang-switcher { display: flex; align-items: center; gap: 0.5rem; }
.lang-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 0.4rem 0.7rem; border-radius: 6px; cursor: pointer; font-size: 0.875rem; }
.lang-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-btn:hover { background: var(--primary-hover); color: #fff; }
.menu-btn { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
/* Mobile nav */
.mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-nav a { display: block; padding: 0.5rem; border-radius: 6px; color: var(--text); }
.mobile-nav a:hover { background: var(--surface); color: var(--primary); text-decoration: none; }
.mobile-nav .lang-switcher { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }
/* Hero */
.hero { text-align: center; padding: 4rem 1rem 3rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: #fff; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; }
.btn:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface); text-decoration: none; }
/* Converters grid */
.converters { padding: 3rem 1rem; }
.section-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1024px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 1rem; }
/* Convert page */
.convert-page { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.convert-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; }
.file-drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.file-drop:hover { border-color: var(--primary); background: #eff6ff; }
.file-drop.dragover { border-color: var(--primary); background: #dbeafe; }
.file-input { display: none; }
.type-select { width: 100%; padding: 0.6rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 1rem; margin-bottom: 1rem; }
.result { margin-top: 1.5rem; text-align: center; }
.download-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: #fff; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; margin-top: 1rem; }
.download-btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn-block { width: 100%; justify-content: center; }
.field-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.drop-hint { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; }
.error-msg { color: #dc2626; margin-top: 1rem; }
.lang-btn:focus-visible, .menu-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Legal / text pages */
.legal h1 { margin-bottom: 1rem; }
.legal h2 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.legal p { margin-bottom: 0.75rem; }
/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 1rem 2rem; margin-top: auto; }
.footer-container { max-width: 1024px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--primary); text-decoration: none; }
/* Donate page */
.donate-page { max-width: 1024px; text-align: center; }
.donate-page h1 { margin-bottom: 1rem; }
.donate-page > p { max-width: 640px; margin: 0 auto 1rem; }
.donate-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: var(--radius); padding: 1rem; text-align: left; }
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.donate-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.donate-card h2 { font-size: 1.125rem; margin: 0.75rem 0 0.25rem; }
.coin-badge { display: inline-block; background: var(--primary); color: #fff; padding: 0.25rem 0.75rem; border-radius: 999px; font-weight: 700; font-size: 0.875rem; }
.network { color: var(--text-muted); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em; }
.donate-address { display: block; word-break: break-all; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8125rem; margin: 1rem 0; }
.donate-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.copy-btn { background: var(--primary); color: #fff; border: 1px solid var(--primary); padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.copy-btn:hover { background: var(--primary-hover); }
.copy-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.copied-msg { color: #16a34a; font-size: 0.875rem; min-height: 1.25rem; margin-top: 0.5rem; }
/* Responsive */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .header-container { padding: 1rem 2rem; }
}