:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #121826;
  --muted: #5f6b7a;
  --line: #e6eaf0;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --soft: #e7f8f6;
  --danger: #b42318;
  --success: #027a48;
  --shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; background: var(--brand); color: white; font-size: 14px; }
.top-nav { display: flex; gap: 18px; color: var(--muted); font-weight: 650; }
.hero, .page-hero { padding: 72px 0 48px; background: radial-gradient(circle at top left, #ddfdf8, transparent 34%), linear-gradient(180deg, #fff, var(--bg)); }
.page-hero.slim { padding: 46px 0; }
.currency-hero { padding-top: 52px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 13px; margin: 0 0 8px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; margin: 0 0 16px; }
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 24px; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--muted); max-width: 720px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--brand); color: white; padding: 12px 20px; font-weight: 800; cursor: pointer; box-shadow: 0 12px 30px rgba(15,118,110,.2); }
.button:hover { background: var(--brand-dark); color: white; }
.button-ghost { color: var(--text); background: white; border: 1px solid var(--line); box-shadow: none; }
.button-small { padding: 8px 14px; font-size: 14px; }
.hero-actions, .form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.converter-card { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.converter-form { display: grid; grid-template-columns: 1fr 1fr auto 1fr; gap: 14px; align-items: end; }
.field label, .admin-form label { display: grid; gap: 7px; font-weight: 750; color: var(--text); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; font: inherit; background: white; color: var(--text); }
textarea { resize: vertical; }
.swap-button { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--soft); border-radius: 14px; cursor: pointer; font-size: 20px; }
.converter-result { margin-top: 20px; padding: 18px; background: var(--soft); border-radius: 20px; }
.converter-result strong { display: block; font-size: 22px; margin-bottom: 4px; }
.converter-result span { color: var(--muted); }
.section-grid, .currency-content-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 24px; padding: 42px 0; }
.content-panel, .seo-block, .article-card, .inline-converter-callout, .faq-section { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: 0 10px 40px rgba(15, 23, 42, .05); }
.pair-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.pair-card { display: grid; gap: 4px; padding: 16px; background: #fafcff; border: 1px solid var(--line); border-radius: 18px; }
.pair-card span, .article-list span, .article-card p, small { color: var(--muted); }
.article-list { display: grid; gap: 14px; }
.article-list a { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.seo-block { margin: 0 auto 54px; }
.site-footer { padding: 44px 0; border-top: 1px solid var(--line); background: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 32px; color: var(--muted); }
.footer-grid a { display: block; margin: 6px 0; }
.breadcrumbs { width: min(1120px, calc(100% - 32px)); margin: 18px auto 0; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; padding: 44px 0; }
.article-grid.small { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 12px 0 0; }
.article-card h2, .article-card h3 { font-size: 25px; }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-dark); font-weight: 800; text-transform: capitalize; font-size: 13px; margin-bottom: 12px; }
.text-link { color: var(--brand); font-weight: 800; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-bottom: 44px; }
.pagination a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: white; }
.pagination a.active { background: var(--brand); color: white; }
.article-layout { padding: 38px 0 60px; }
.article-header { max-width: 780px; margin-bottom: 24px; }
.article-content { background: white; border: 1px solid var(--line); border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.article-content h2 { margin-top: 34px; font-size: 34px; }
.article-content h3 { margin-top: 28px; }
.article-content a { color: var(--brand); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.inline-converter-callout, .related-section { margin-top: 24px; }
.prose ul { padding-left: 22px; }
.sidebar-links { align-self: start; position: sticky; top: 96px; }
.link-list { display: grid; gap: 10px; margin-bottom: 24px; }
.link-list a { padding: 12px; background: #fafcff; border: 1px solid var(--line); border-radius: 14px; }
.faq-list { display: grid; gap: 12px; }
details { background: #fafcff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
summary { cursor: pointer; font-weight: 850; }
.error-page { min-height: 55vh; display: grid; align-content: center; }
.admin-body { background: #0f172a; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.admin-sidebar { background: #111827; color: #d1d5db; padding: 24px; }
.admin-sidebar nav { display: grid; gap: 10px; margin-top: 28px; }
.admin-sidebar a { padding: 10px 12px; border-radius: 12px; }
.admin-sidebar a:hover { background: rgba(255,255,255,.08); color: white; }
.admin-brand { color: white; }
.admin-main { padding: 34px; background: var(--bg); }
.admin-login-main { grid-column: 1 / -1; display: grid; place-items: center; }
.login-card { width: min(440px, calc(100% - 32px)); background: white; border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.login-brand { margin-bottom: 18px; }
.admin-header { margin-bottom: 24px; }
.admin-header.with-action, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.metric-card, .admin-panel { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.metric-card span { color: var(--muted); display: block; }
.metric-card strong { font-size: 38px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.admin-table.wide input, .admin-table.wide textarea { margin-bottom: 8px; }
.actions { display: flex; gap: 10px; align-items: center; }
.link-button { border: 0; background: transparent; color: var(--brand); cursor: pointer; font: inherit; padding: 0; }
.danger { color: var(--danger); }
.status { padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status.published { color: var(--success); background: #ecfdf3; }
.status.draft { color: #7a5600; background: #fffaeb; }
.admin-form { display: grid; gap: 16px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.code-textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.small-input { max-width: 90px; }
.inline-form { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-template-links { display: flex; gap: 10px; flex-wrap: wrap; margin: -10px 0 18px; }
.admin-template-links a { padding: 8px 12px; border-radius: 999px; background: white; border: 1px solid var(--line); color: var(--brand); font-weight: 800; }
.alert { padding: 12px 14px; border-radius: 14px; }
.alert-error { background: #fef3f2; color: var(--danger); }
.alert-success { background: #ecfdf3; color: var(--success); }
@media (max-width: 900px) {
  .hero-grid, .section-grid, .currency-content-grid, .footer-grid, .admin-shell { grid-template-columns: 1fr; }
  .top-nav { display: none; }
  .converter-form, .pair-grid, .article-grid, .article-grid.small, .metric-grid, .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .swap-button { width: 100%; }
  .sidebar-links { position: static; }
  .admin-sidebar { position: static; }
  .admin-main { padding: 20px; }
}
