/* ═══════════════════════════════════════════════════════
   UnitConverter — Design System v2
   Identity: Indigo + Emerald, Outfit type,
   horizontal converter, mesh gradients, cool tones
   ═══════════════════════════════════════════════════════ */

:root {
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-light: #818cf8;
    --brand-bg: #eef2ff;
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #6ee7b7;
    --accent-bg: #ecfdf5;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --surface-3: #e2e8f0;
    --border: #cbd5e1;
    --border-light: #e2e8f0;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --hero-bg: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #3730a3 100%);
    --hero-mesh: radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, .12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, .15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(14, 165, 233, .08) 0%, transparent 50%);
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, .07);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, .1);
    --shadow-xl: 0 20px 50px rgba(15, 23, 42, .15);
    --shadow-brand: 0 4px 20px rgba(79, 70, 229, .18);
    --shadow-glow: 0 0 30px rgba(79, 70, 229, .22);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 100px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --container: 1100px;
}

[data-theme="dark"] {
    --bg: #020617;
    --surface: #0f172a;
    --surface-2: #1e293b;
    --surface-3: #334155;
    --border: #334155;
    --border-light: #1e293b;
    --text: #f8fafc;
    --text-2: #94a3b8;
    --text-3: #64748b;
    --brand-bg: rgba(79, 70, 229, .15);
    --accent-bg: rgba(16, 185, 129, .1);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.25;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: .15s var(--ease);
}

a:hover {
    color: var(--brand-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* ── Utilities ── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ═══════════ HEADER ═══════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(16px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: -.03em;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    transition: transform .2s var(--ease);
    object-fit: contain;
}

.logo:hover .logo-img {
    transform: rotate(-6deg) scale(1.05);
}

.logo-text span {
    color: var(--brand);
}

/* Navigation */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav a,
.nav-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-2);
    background: transparent;
    border: none;
    transition: all .15s var(--ease);
    font-family: var(--font);
}

.site-nav a:hover,
.nav-trigger:hover {
    color: var(--brand);
    background: var(--brand-bg);
}

.chevron {
    font-size: .6em;
    transition: transform .2s var(--ease);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 10px;
    min-width: 300px;
    box-shadow: var(--shadow-xl);
    z-index: 200;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
    display: none;
}

@media (hover: hover) {
    .nav-dropdown:hover::after {
        display: block;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        display: block;
    }

    .nav-dropdown:hover .chevron {
        transform: rotate(180deg);
    }
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: .88rem;
    color: var(--text);
}

.dropdown-menu a:hover {
    background: var(--brand-bg);
    color: var(--brand);
}

.dd-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    background: var(--surface-2);
}

/* Theme Toggle */
.btn-theme {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-2);
    transition: all .15s var(--ease);
}

.btn-theme:hover {
    background: var(--brand-bg);
    border-color: var(--brand-light);
    color: var(--brand);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .2s var(--ease);
}

/* ═══════════ HERO ═══════════ */
.page-hero {
    padding: 16px 0 14px;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-mesh);
    opacity: .7;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, var(--bg), transparent);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.15;
    max-width: 650px;
}

.page-hero p {
    font-size: 1rem;
    opacity: .85;
    max-width: 550px;
    margin-top: 12px;
    line-height: 1.6;
}

/* Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 600;
    font-family: var(--font);
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(4px);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .8rem;
    padding: 10px 0;
    margin-bottom: 4px;
}

.page-hero .breadcrumbs {
    color: rgba(255, 255, 255, .6);
}

.page-hero .breadcrumbs a {
    color: rgba(255, 255, 255, .75);
}

.breadcrumbs a {
    color: var(--brand-light);
    font-weight: 500;
}

.breadcrumbs .sep {
    opacity: .35;
}

/* ═══════════ PAGE BODY ═══════════ */
.page-body {
    padding: 36px 0 64px;
    position: relative;
    z-index: 2;
    margin-top: -8px;
}

.layout--with-sidebar {
    max-width: 820px;
    margin: 0 auto;
}

/* ═══════════ CONVERTER CARD ═══════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: visible;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-xl) + 1px);
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    z-index: -1;
    opacity: .5;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px 0;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-brand);
}

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
    font-family: var(--font);
}

.card-body {
    padding: 20px 28px 28px;
}

/* ═══════════ CONVERTER WIDGET (Horizontal Split) ═══════════ */
.converter-widget {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.converter-row-pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0;
    position: relative;
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.converter-row-pair:focus-within {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 4px var(--brand-bg);
}

.convert-box {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 18px;
    background: transparent;
    position: relative;
}

.convert-box:first-child {
    border-right: 1px solid var(--border-light);
}

.convert-box:last-child {
    border-left: 1px solid var(--border-light);
}

.convert-box .box-label {
    font-size: .65rem;
    font-weight: 700;
    font-family: var(--font);
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 8px;
}

.convert-box .box-amount {
    border: none;
    background: transparent;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text);
    outline: none;
    width: 100%;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.convert-box .box-amount::placeholder {
    color: var(--text-3);
    opacity: .5;
}

.convert-box .box-amount:read-only {
    color: var(--brand);
}

.convert-box .box-amount::-webkit-inner-spin-button,
.convert-box .box-amount::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.convert-box .box-amount[type="number"] {
    -moz-appearance: textfield;
}

.convert-box .box-unit {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: .78rem;
    font-weight: 700;
    font-family: var(--font);
    color: var(--text-2);
    width: fit-content;
}

.box-unit-select {
    display: block;
    margin-top: 8px;
    padding: 7px 28px 7px 14px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: .78rem;
    font-weight: 700;
    font-family: var(--font);
    color: var(--brand);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all .15s var(--ease);
    max-width: 100%;
}

.box-unit-select:hover {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px var(--brand-bg);
}

.box-unit-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-bg);
}

/* Swap (center column) */
.swap-float {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 0 4px;
}

.swap-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid var(--surface);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
    transition: all .25s var(--ease);
    cursor: pointer;
}

.swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Rate Strip */
.rate-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--brand-bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(79, 70, 229, .15);
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.rate-strip .rate-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-strip .rate-value {
    font-size: .9rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--brand);
}

.rate-strip .rate-inverse {
    font-size: .8rem;
    color: var(--text-3);
    font-family: var(--font-mono);
}

/* ═══════════ LIVE RATE ═══════════ */
.live-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--brand-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 70, 229, .12);
}

.live-rate .rate-value {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--brand);
}

.live-rate .rate-label {
    font-size: .72rem;
    font-weight: 700;
    font-family: var(--font);
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ═══════════ RESULT DISPLAY ═══════════ */
.conversion-result {
    text-align: center;
    padding: 28px;
    background: var(--hero-bg);
    border-radius: var(--radius-lg);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.conversion-result::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-mesh);
    opacity: .6;
}

.conversion-result .result-amount {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #c7d2fe;
    letter-spacing: -.02em;
    position: relative;
    z-index: 1;
}

.conversion-result .result-label {
    font-size: .8rem;
    opacity: .7;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    font-family: var(--font);
}

/* ═══════════ CONTENT SECTIONS ═══════════ */
.content-section {
    margin-top: 40px;
}

.content-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 14px;
    color: var(--text);
    padding-left: 16px;
    border-left: 4px solid var(--brand);
}

.content-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 20px 0 10px;
}

.content-section p {
    color: var(--text-2);
    margin-bottom: 14px;
}

.content-section ul,
.content-section ol {
    padding-left: 22px;
    color: var(--text-2);
    margin-bottom: 16px;
}

.content-section li {
    margin-bottom: 8px;
}

.content-section li strong {
    color: var(--text);
}

/* Info Box */
.info-box {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: var(--accent-bg);
    border-left: 4px solid var(--accent);
    font-size: .88rem;
    color: var(--text-2);
    margin: 16px 0;
}

/* ═══════════ REFERENCE LINKS ═══════════ */
.reference-links {
    list-style: none !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.reference-links li {
    margin: 0 !important;
}

.reference-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-2);
    transition: all .2s var(--ease);
    white-space: nowrap;
}

.reference-links a::before {
    content: "↗";
    font-size: .7rem;
    opacity: .4;
}

.reference-links a:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

/* ═══════════ STATS BAR ═══════════ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
    padding: 22px 14px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all .2s var(--ease);
    box-shadow: var(--shadow-xs);
}

.stat-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--brand-light);
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font);
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: .72rem;
    font-weight: 700;
    font-family: var(--font);
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 4px;
}

/* ═══════════ DATA TABLE ═══════════ */
.data-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--surface);
}

.data-table {
    min-width: 380px;
}

.data-table th {
    text-align: left;
    padding: 14px 18px;
    font-size: .72rem;
    font-weight: 700;
    font-family: var(--font);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-light);
}

.data-table td {
    padding: 12px 18px;
    font-size: .88rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-2);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table .highlight {
    font-weight: 700;
    color: var(--brand);
    font-family: var(--font-mono);
}

.data-table tr:hover td {
    background: var(--brand-bg);
}

/* ═══════════ FEATURE GRID (Hub links) ═══════════ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: all .2s var(--ease);
    text-decoration: none;
    color: var(--text);
}

.feature-card:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-brand);
    transform: translateY(-3px);
}

.fc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.fc-title {
    font-weight: 700;
    font-size: .92rem;
    font-family: var(--font);
}

.fc-desc {
    font-size: .76rem;
    color: var(--text-3);
    margin-top: 2px;
}

/* ═══════════ SPOKE GRID ═══════════ */
.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.currency-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border-light);
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-2);
    transition: all .2s var(--ease);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
}

.currency-card:hover {
    border-color: var(--brand-light);
    color: var(--brand);
    box-shadow: var(--shadow-brand);
    transform: translateY(-2px);
}

.amount-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    font-family: var(--font-mono);
    white-space: nowrap;
}

/* ═══════════ FAQ ═══════════ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .2s var(--ease);
    box-shadow: var(--shadow-xs);
}

.faq-item:hover {
    border-color: var(--brand-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 22px;
    text-align: left;
    font-size: .92rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .15s var(--ease);
}

.faq-question:hover {
    color: var(--brand);
}

.faq-icon {
    font-style: normal;
    font-weight: 300;
    font-size: 1.3rem;
    color: var(--brand);
    transition: transform .25s var(--ease);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-answer {
    display: none;
    padding: 0 22px 18px;
    font-size: .88rem;
    color: var(--text-2);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
    animation: fadeSlide .25s var(--ease);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-item.open {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-brand);
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════ QUICK CONVERSION ═══════════ */
.quick-convert {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.quick-convert-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-family: var(--font-mono);
}

.quick-convert-item .qc-from {
    color: var(--text-2);
}

.quick-convert-item .qc-to {
    font-weight: 600;
    color: var(--brand);
}

/* ═══════════ AUTHOR BYLINE ═══════════ */
.author-byline {
    max-width: 800px;
    margin: 2.5rem auto 0;
    padding: 1.5rem;
    border-top: 2px solid var(--brand-bg);
    text-align: center;
    font-size: .85rem;
    color: var(--text-3);
    font-family: var(--font);
}

.author-byline a {
    color: var(--brand);
    font-weight: 600;
}

/* ═══════════ RATING WIDGET ═══════════ */
.rating-widget-wrap {
    margin: 2rem 0;
}

/* ═══════════ FOOTER ═══════════ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    padding: 52px 0 28px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 36px;
}

.footer-brand p {
    font-size: .85rem;
    color: var(--text-3);
    margin-top: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: .72rem;
    font-weight: 700;
    font-family: var(--font);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-3);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: .88rem;
    color: var(--text-2);
}

.footer-col a:hover {
    color: var(--brand);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
    padding-top: 22px;
    font-size: .78rem;
    color: var(--text-3);
    font-family: var(--font);
}

/* ═══════════ 404 ═══════════ */
.page-404 {
    text-align: center;
    padding: 80px 20px;
}

.page-404 .big-num {
    font-size: 7rem;
    font-weight: 900;
    font-family: var(--font);
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.page-404 h1 {
    font-size: 1.5rem;
    margin: 16px 0;
}

.page-404 p {
    color: var(--text-3);
    margin-bottom: 28px;
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: .88rem;
    font-weight: 600;
    font-family: var(--font);
    transition: all .2s var(--ease);
    cursor: pointer;
}

.btn--primary {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* ═══════════ PULSE ═══════════ */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
    animation: pulse 2s infinite;
    margin-right: 6px;
}

/* ═══════════ DOWNLOAD CARDS ═══════════ */
.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: all .2s var(--ease);
    text-decoration: none;
    color: var(--text);
    margin-bottom: 12px;
}

.download-card:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-brand);
    transform: translateY(-2px);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 700px) {
    .site-header .container {
        height: 58px;
    }

    .nav-toggle {
        display: flex;
    }

    .header-right .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        z-index: 999;
        padding: 12px 24px 24px;
        border-top: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
    }

    .header-right .site-nav.open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .site-nav a,
    .nav-trigger {
        padding: 14px 18px;
        width: 100%;
        font-size: 1rem;
        border-radius: var(--radius-md);
        justify-content: flex-start;
    }

    .nav-dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding: 4px 0 4px 20px;
        min-width: unset;
        background: transparent;
    }

    .dropdown-menu a {
        padding: 12px 16px;
        font-size: .95rem;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .page-hero {
        padding: 36px 0 32px;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .converter-row-pair {
        grid-template-columns: 1fr;
    }

    .convert-box:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .convert-box:last-child {
        border-left: none;
        border-top: 1px solid var(--border-light);
    }

    .swap-float {
        padding: 8px 0;
        justify-content: center;
    }

    .swap-btn {
        transform: rotate(90deg);
    }

    .swap-btn:hover {
        transform: rotate(270deg) scale(1.1);
    }

    .convert-box .box-amount {
        font-size: 1.4rem;
    }

    .card-body {
        padding: 16px 20px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .currency-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .quick-convert {
        grid-template-columns: 1fr;
    }

    .conversion-result .result-amount {
        font-size: 1.6rem;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Download / Print buttons */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 2px solid var(--brand);
    cursor: pointer;
    transition: all .2s var(--ease);
    box-shadow: var(--shadow-sm);
}

.btn-download:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-download--outline {
    background: transparent;
    color: var(--brand);
}

.btn-download--outline:hover {
    background: var(--brand-bg);
    color: var(--brand-dark);
}

/* Print styles for PDF download */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .site-header,
    .site-footer,
    .page-hero,
    .sidebar-col,
    .btn-download,
    .swap-float,
    .hero-badges,
    .breadcrumb-nav,
    .currency-grid,
    .rate-strip,
    .rating-widget {
        display: none !important;
    }

    .layout--with-sidebar {
        display: block !important;
    }

    .main-col {
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    table {
        font-size: 11pt !important;
    }

    h1,
    h2 {
        color: #000 !important;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}