/* ============================================================
   TechUnitConv — Global Stylesheet
   https://techunitconv.com
   ============================================================ */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface2: #eef1f8;
  --border: #dde3f0;
  --navy: #0d2b55;
  --blue: #1a5fb4;
  --blue-mid: #1e6fcf;
  --blue-light: #e3eeff;
  --accent: #00b4d8;
  --accent-dark: #0090ad;
  --accent-light: #e0f7fc;
  --green: #1a7a4a;
  --green-light: #d6f0e3;
  --text: #0f1f3d;
  --text-muted: #5a6a85;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(13,43,85,0.09);
  --shadow-hover: 0 8px 32px rgba(13,43,85,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--navy); line-height: 1.2; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; color: var(--navy); margin: 2rem 0 1rem; }
h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin: 1.5rem 0 0.5rem; }
p  { margin-bottom: 0.8rem; color: var(--text-muted); }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Navigation ─────────────────────────────── */
.site-nav {
  background: var(--navy);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-right: 8px;
  flex-shrink: 0;
}
.logo-tech  { color: #ffffff; }
.logo-unit  { color: var(--accent); }
.logo-conv  { color: rgba(255,255,255,0.65); }

.nav-search-wrap {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.nav-search {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.nav-search::placeholder { color: rgba(255,255,255,0.42); }
.nav-search:focus { border-color: var(--accent); background: rgba(255,255,255,0.18); }
.nav-search-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.42);
  font-size: 0.9rem;
  pointer-events: none;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  display: none;
  z-index: 2000;
}
.search-dropdown.show { display: block; }
.search-result {
  display: block; padding: 10px 16px;
  color: var(--text) !important; font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--blue-light); text-decoration: none !important; }
.search-result-cat { font-size: 0.72rem; color: var(--text-muted); margin-left: 6px; }
.no-results { padding: 12px 16px; color: var(--text-muted); font-size: 0.88rem; }
.nav-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-link  { color: rgba(255,255,255,0.75) !important; font-size: 0.85rem; white-space: nowrap; text-decoration: none !important; }
.nav-link:hover  { color: var(--accent) !important; }
.nav-back  { color: rgba(255,255,255,0.72) !important; font-size: 0.84rem; text-decoration: none !important; transition: color 0.2s; }
.nav-back:hover  { color: var(--accent) !important; text-decoration: none !important; }

/* ── Hero ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3d6e 55%, #0a2444 100%);
  padding: 4rem 20px 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 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'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%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");
  pointer-events: none;
}
.hero h1   { color: #fff; margin-bottom: 0.75rem; position: relative; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p    { color: rgba(255,255,255,0.68); font-size: 1.05rem; margin-bottom: 2rem; position: relative; }
.hero-tag  {
  display: inline-block;
  background: rgba(0,180,216,0.18);
  border: 1px solid rgba(0,180,216,0.35);
  color: var(--accent); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px;
  margin-bottom: 1.5rem; position: relative; font-weight: 600;
}
.hero-stats {
  display: flex; justify-content: center; gap: 32px;
  margin-top: 2rem; position: relative;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat span   { font-size: 0.78rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Quick Converter ─────────────────────────── */
.quick-converter {
  max-width: 640px; margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px; padding: 20px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: center; position: relative;
}
.quick-converter input[type="number"] {
  width: 120px; padding: 11px 14px; border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12); color: #fff;
  font-size: 1.1rem; font-weight: 700; outline: none;
  font-family: 'Courier New', monospace; transition: border-color 0.2s;
}
.quick-converter input[type="number"]:focus { border-color: var(--accent); }
.quick-converter select {
  padding: 11px 14px; border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12); color: #fff;
  font-size: 0.88rem; outline: none; cursor: pointer;
  flex: 1; min-width: 145px; transition: border-color 0.2s;
}
.quick-converter select:focus { border-color: var(--accent); }
.quick-converter select option { background: #0d2b55; color: #fff; }
.swap-btn {
  background: var(--accent); color: #fff; border: none;
  border-radius: 9px; width: 40px; height: 40px;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), background 0.2s; flex-shrink: 0;
}
.swap-btn:hover { transform: rotate(180deg); background: var(--accent-dark); }
.quick-result {
  background: rgba(0,180,216,0.2); border: 1.5px solid rgba(0,180,216,0.4);
  border-radius: 9px; padding: 11px 16px; color: #fff;
  font-size: 1rem; font-weight: 700; min-width: 150px;
  text-align: center; font-family: 'Courier New', monospace;
}

/* ── Ad Containers ───────────────────────────── */
.ad-container {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 8px;
  text-align: center; overflow: hidden;
}
.ad-top { max-width: 728px; margin: 20px auto; }
.ad-mid { max-width: 336px; margin: 24px auto; }

/* ── Dashboard ───────────────────────────────── */
.dashboard { padding: 3rem 20px; }
.dashboard-inner { max-width: 1140px; margin: 0 auto; }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; }
.section-title  { font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.section-count  {
  background: var(--accent-light); color: var(--accent-dark);
  font-size: 0.78rem; padding: 3px 10px; border-radius: 20px; font-weight: 700;
}
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 15px; margin-bottom: 3rem;
}
.cat-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  text-decoration: none !important; color: var(--text);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative; overflow: hidden;
}
.cat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.cat-card:hover::after { transform: scaleX(1); }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #c0cce8; text-decoration: none; }
.cat-card-header { display: flex; align-items: flex-start; justify-content: space-between; }
.cat-icon  { font-size: 2.2rem; line-height: 1; }
.cat-count { font-size: 0.7rem; background: var(--surface2); color: var(--text-muted); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.cat-title { font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.cat-desc  { font-size: 0.81rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cat-units { display: flex; flex-wrap: wrap; gap: 5px; }
.unit-chip {
  font-size: 0.67rem; background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted); padding: 2px 8px; border-radius: 12px;
  font-family: 'Courier New', monospace;
}
.cat-cta   { font-size: 0.8rem; color: var(--blue); font-weight: 600; display: flex; align-items: center; gap: 4px; margin-top: auto; }

/* ── Popular Conversions ─────────────────────── */
.popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 2rem; }
.pop-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px 16px; text-decoration: none !important; color: var(--text);
  display: flex; align-items: center; gap: 10px; font-size: 0.84rem;
  transition: border-color 0.2s, background 0.2s;
}
.pop-card:hover { border-color: var(--accent); background: var(--accent-light); text-decoration: none !important; }
.pop-card strong { display: block; font-weight: 600; color: var(--navy); }
.pop-card span   { color: var(--text-muted); font-size: 0.74rem; font-family: 'Courier New', monospace; }

/* ── Converter Page ──────────────────────────── */
.converter-page { max-width: 860px; margin: 0 auto; padding: 2rem 20px 4rem; }
.breadcrumb {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }
.page-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }

.converter-widget {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.conv-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; margin-bottom: 1.5rem; }
.conv-field label {
  display: block; font-size: 0.73rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 7px;
}
.conv-field input {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 2px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1.3rem; outline: none;
  transition: border-color 0.2s; font-family: 'Courier New', monospace; font-weight: 700;
}
.conv-field input:focus { border-color: var(--blue-mid); }
.conv-equals { font-size: 1.8rem; color: var(--text-muted); text-align: center; padding-bottom: 10px; }
.conv-result-val { color: var(--blue) !important; background: var(--blue-light) !important; border-color: var(--blue-mid) !important; cursor: default !important; }
.conv-formula {
  background: var(--surface2); border-radius: 8px; padding: 10px 16px;
  font-size: 0.84rem; color: var(--text-muted); font-family: 'Courier New', monospace;
  text-align: center; border: 1px solid var(--border);
}

/* ── Info Grid ───────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1rem 0 1.5rem; }
.info-box { background: var(--blue-light); border: 1px solid #c0d4f0; border-radius: 10px; padding: 14px 16px; }
.info-box strong { display: block; color: var(--navy); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.info-box span   { font-size: 1rem; color: var(--text); font-family: 'Courier New', monospace; font-weight: 700; }

/* ── Conversion Table ────────────────────────── */
.conv-table-wrap { overflow-x: auto; margin-bottom: 2rem; border-radius: var(--radius); border: 1.5px solid var(--border); }
.conv-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.conv-table th { background: var(--navy); color: #fff; padding: 11px 16px; text-align: left; font-weight: 700; font-size: 0.82rem; }
.conv-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-family: 'Courier New', monospace; }
.conv-table tr:last-child td { border-bottom: none; }
.conv-table tr:nth-child(even) td { background: var(--surface2); }
.conv-table tr:hover td { background: var(--blue-light); }
.conv-table td:first-child { color: var(--text); font-weight: 700; }
.conv-table td:last-child  { color: var(--blue); }

/* ── SEO Content ─────────────────────────────── */
.seo-content { margin-bottom: 2rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; }
.seo-content h2 { margin-top: 0; }
.seo-content p  { color: var(--text); line-height: 1.8; }
.seo-content ul { padding-left: 1.5rem; color: var(--text-muted); line-height: 2; }

/* ── Related Converters ──────────────────────── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 8px; margin-bottom: 2rem; }
.related-link {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 9px;
  padding: 10px 14px; font-size: 0.82rem; color: var(--blue) !important;
  display: block; transition: background 0.15s, border-color 0.15s;
}
.related-link:hover { background: var(--blue-light); border-color: var(--blue); text-decoration: none !important; }

/* ── Category Page ───────────────────────────── */
.category-page { max-width: 1020px; margin: 0 auto; padding: 2rem 20px 4rem; }
.cat-hero {
  background: linear-gradient(135deg, var(--navy), #1a3d6e);
  border-radius: 16px; padding: 2.5rem; color: white; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 24px; position: relative; overflow: hidden;
}
.cat-hero::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 160px; height: 160px; background: rgba(0,180,216,0.1); border-radius: 50%;
}
.cat-hero-icon { font-size: 3.5rem; position: relative; z-index: 1; }
.cat-hero h1   { color: #fff; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.cat-hero p    { color: rgba(255,255,255,0.72); margin: 0; position: relative; z-index: 1; }
.pairs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 9px; }
.pair-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 13px 16px; text-decoration: none !important; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; font-size: 0.87rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.pair-card:hover { border-color: var(--accent); background: var(--accent-light); text-decoration: none !important; transform: translateX(3px); }
.pair-card strong { color: var(--navy); display: block; }
.pair-card span   { color: var(--text-muted); font-family: 'Courier New', monospace; font-size: 0.76rem; }
.pair-arrow { color: var(--accent); font-size: 0.9rem; flex-shrink: 0; }

/* ── 404 ─────────────────────────────────────── */
.not-found { max-width: 500px; margin: 0 auto; padding: 6rem 20px; text-align: center; }
.not-found .code { font-size: 6rem; font-weight: 800; color: var(--navy); opacity: 0.12; line-height: 1; }
.not-found h1 { color: var(--navy); margin-bottom: 1rem; }
.not-found p  { margin-bottom: 2rem; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff !important; padding: 12px 24px; border-radius: 9px; font-weight: 600; text-decoration: none !important; transition: background 0.2s; }
.btn:hover { background: var(--blue-mid); text-decoration: none !important; }
.btn-outline { background: transparent; color: var(--navy) !important; border: 2px solid var(--navy); margin-left: 12px; }
.btn-outline:hover { background: var(--navy); color: #fff !important; }

/* ── Static Pages ────────────────────────────── */
.static-page { max-width: 800px; margin: 0 auto; padding: 2.5rem 20px 4rem; }
.static-page .page-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }
.static-page h2 { font-size: 1.2rem; border-left: 4px solid var(--accent); padding-left: 12px; }
.static-page p, .static-page li { color: var(--text); line-height: 1.8; }
.static-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ── Footer ──────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 3rem 20px 1.5rem; margin-top: 4rem; }
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 8px; }
.footer-logo-icon { width: 28px; height: 28px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.footer-desc { font-size: 0.84rem; line-height: 1.75; }
.footer-col h4   { color: #fff; font-size: 0.84rem; font-weight: 700; margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.09em; }
.footer-col a    { display: block; color: rgba(255,255,255,0.56); font-size: 0.83rem; margin-bottom: 7px; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.55); margin-left: 16px; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .conv-row { grid-template-columns: 1fr; gap: 12px; }
  .conv-equals { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-grid   { grid-template-columns: 1fr; }
  .cat-hero    { flex-direction: column; text-align: center; padding: 2rem; }
  .nav-links   { display: none; }
  .hero-stats  { gap: 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .quick-converter { flex-direction: column; }
  .quick-converter input[type="number"] { width: 100%; }
  .hero-stats  { gap: 14px; }
  .hero-stat strong { font-size: 1.3rem; }
}

/* ── Quick Converter — Category-first layout ─────────────────────────────────── */
.quick-converter {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Row 1: Category selector spanning full width */
.qc-row { display: flex; align-items: flex-end; gap: 12px; width: 100%; }

.qc-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }

.qc-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

/* Category dropdown — full width, prominent */
#qCat {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid rgba(0,180,216,0.5);
  background: rgba(0,180,216,0.15);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300b4d8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color 0.2s, background 0.2s;
}
#qCat:focus { border-color: var(--accent); background-color: rgba(0,180,216,0.22); }
#qCat option { background: #0d2b55; color: #fff; font-weight: 500; }

/* Convert row: [Value + From] [⇄] [Result + To] */
.qc-convert-row { align-items: flex-start; }

/* Value input */
#qVal {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px 9px 0 0;
  border: 2px solid rgba(255,255,255,0.2);
  border-bottom: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  outline: none;
  font-family: 'Courier New', monospace;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
#qVal:focus { border-color: rgba(255,255,255,0.5); }

/* From / To unit dropdowns — attached below the value/result box */
#qFrom, #qTo {
  width: 100%;
  padding: 9px 14px;
  border-radius: 0 0 9px 9px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 0.84rem;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
#qFrom:focus, #qTo:focus { border-color: var(--accent); }
#qFrom option, #qTo option { background: #0d2b55; color: #fff; }

/* Result display — same visual weight as input */
.quick-result {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px 9px 0 0;
  border: 2px solid rgba(0,180,216,0.45);
  border-bottom: none;
  background: rgba(0,180,216,0.13);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  text-align: left;
  min-height: 50px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Swap button — centred between the two columns */
.swap-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 8px;            /* align with top of input boxes */
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), background 0.2s;
}
.swap-btn:hover { transform: rotate(180deg); background: var(--accent-dark); }

/* Responsive */
@media (max-width: 600px) {
  .qc-convert-row { flex-wrap: wrap; }
  .qc-convert-row .qc-field { flex: 1 1 calc(50% - 28px); min-width: 130px; }
  .swap-btn { margin: 0 auto; order: 3; margin-top: 4px; }
}
