*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; }
html { height: 100%; }
body{
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.heading{
    font-weight: 900;
    text-transform: uppercase;
}

.sub-heading{
    text-transform: capitalize;
    font-weight:500;
}

.text-lighty {
    color: rgb(41 152 235);
}
.header-container{
background-color: rgb(21 4 126);
}
.pair-intro { padding: 40px 0 32px; }


#output-amount, #input-amount, input#output-amount:focus, input#input-amount:focus{
    outline: none;
    box-shadow: none;
}

.currency-select, .currency-select:focus{
    border: none;
    outline: none;
    box-shadow: none;
    /* width: 100%; */
}

.amountAndCurrencyGroup{
    padding: 8px 5px;
    border: 1px solid #bdbdbd;
    border-radius: 0.5rem;
    -webkit-border-radius: 0.5rem;
    -moz-border-radius: 0.5rem;
    -ms-border-radius: 0.5rem;
    -o-border-radius: 0.5rem;
}


.exchange-btn{
    background-color: rgb(21 4 126) ;
    padding: 5x;
    color: white;
    border-radius: 1rem;
    border: none;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}

.img-flag {
    margin-right: 2px !important;
    display: inherit !important;
    /* max-width: 64px; */
    width: 22px;
    height: 20px;
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}

.select2-search__field .select2-container--default .select2-search--inline{
    width: 100% !important;
    border: none !important;
}



  [class^='select2'] {
    border-radius: 0px !important;
    border: none !important;
  }

/* .amountAndCurrencyGroup .input-group-append{

    position: relative;
} */

.amountAndCurrencyGroup>.input-group-append{
   /* width: 30%; */
   position: relative;
   margin-right: 0.5px;
}
.select2-search__field {
    border: 1px rgb(169, 168, 166) solid !important;
}

.select2-search__field:focus{
    outline: none !important;
}

.select2-results{
    border: #bdbdbd 1px solid !important;
    box-shadow: inset;
}

.page-wrap {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}
.page-wrap.narrow { width: min(720px, calc(100% - 40px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #e7e8ee;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #14122a;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.03em;
    font-size: 1.02rem;
}
.brand-mark { height: 28px; width: auto; max-width: 160px; object-fit: contain; border-radius: 6px; }
.admin-brand .brand-mark { height: 22px; max-width: 120px; }
.logo-preview { height: 48px; width: auto; max-width: 180px; object-fit: contain; border-radius: 8px; background: #f6f5fb; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    color: #3d4454;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
}
.site-nav a:hover { color: #15047e; background: #f6f5fb; }
.site-nav a.is-active { color: #15047e; box-shadow: inset 0 -2px 0 #15047e; border-radius: 0; }
.nav-toggle {
    display: none;
    border: 1px solid #d5d8e0;
    background: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font: inherit;
    color: #15047e;
}

.hero {
    padding: 48px 0 28px;
    background: #f5f6f8;
}
.hero h1, .panel h1, .panel h2 { color: #14122a; text-transform: none; font-weight: 700; letter-spacing: -0.035em; }
.hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 12px; line-height: 1.08; }
.eyebrow { margin: 0 0 8px; color: #15047e; font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.lede { color: #3d4454; max-width: 40rem; font-size: 1.05rem; line-height: 1.55; }
.lede a { color: #15047e; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 12px; font-size: 14px; }
.breadcrumbs a { color: #15047e; }
.header-container .breadcrumbs a,
.header-container .breadcrumbs span { color: #fff; }
.h1-rate { display: block; margin-top: 8px; font-size: 0.42em; font-weight: 500; text-transform: none; color: #fff; }
.related-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.related-links a { color: #15047e; }
.sitemap-list { list-style: none; padding: 0; }
.sitemap-list li { margin: 0 0 12px; }
.sitemap-list a { display: inline-block; margin-right: 12px; color: #15047e; }
.converter-card {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 22px;
    padding: 22px;
    margin-top: 22px;
    box-shadow: 0 18px 50px rgba(21, 4, 126, .08);
}
.converter-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: end;
}
.converter-field { min-width: 0; }
.converter-field label, .field-label { display: block; font-size: 14px; margin-bottom: 6px; color: #3d4454; }
.amount-input, .converter-field .select2-container { width: 100% !important; }
.amount-input {
    border: 1px solid #e0e3ea;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 12px;
    background: #f8f8fc;
    width: 100%;
}
#output-amount { background: #f4f0ff; }
.converter-swap { padding-bottom: 28px; }
.exchange-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: none;
}
.live-rate { margin: 18px 0 4px; font-size: 22px; font-weight: 700; color: #15047e; }
.rate-time { color: #5c6575; margin: 0; }
.rate-time.is-stale { color: #8a5a00; }
.same-currency { color: #8a4b08; margin: 8px 0 0; }
.result-actions { display: flex; gap: 8px; margin-top: 14px; }
.result-actions button {
    border: 1px solid #d5d8e0;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    color: #15047e;
}
.copy-status { margin: 8px 0 0; color: #0b7a3b; }
.rate-changes { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 12px; }
.rate-changes li { display: flex; gap: 8px; align-items: baseline; }
.rate-changes .is-up { color: #0b7a3b; }
.rate-changes .is-down { color: #a32020; }

.panel { padding: 36px 0; }
.panel-muted { background: #f6f7fb; }
#chart { background: #fff; border: 1px solid #e6e8ee; border-radius: 16px; padding: 8px; }
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.range-switch { display: flex; gap: 8px; }
.range-switch button {
    border: 1px solid #d5d8e0;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
}
.range-switch button.is-active { background: #15047e; color: #fff; border-color: #15047e; }

.pair-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}
.pair-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid #e6e8ee;
    border-radius: 999px;
    background: #fff;
    color: #15047e;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.pair-links a:hover { border-color: #c9c4ea; }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.steps li { background: #fff; border: 1px solid #e6e8ee; border-radius: 16px; padding: 18px; }
.steps h3 { margin-top: 0; }
.home-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.home-posts a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.home-posts img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.home-post-copy { padding: 10px 12px 12px; }
.home-posts a:hover { border-color: #c9c4ea; }
.home-posts time { color: #8b90a0; font-size: .75rem; }
.home-posts h3 {
    margin: 4px 0 6px;
    color: #14122a;
    font-size: .95rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-posts p {
    margin: 0;
    color: #3d4454;
    font-size: .82rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1eefe;
    color: #15047e;
    font-weight: 700;
    margin-bottom: 10px;
}

.site-footer { margin-top: auto; background: #14122a; color: rgba(255,255,255,.72); }
.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 32px 48px;
    align-items: start;
    padding: 40px 0 28px;
}
.footer-brand p:last-child { margin: 0; max-width: 28ch; line-height: 1.5; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; }
.footer-nav a { color: rgba(255,255,255,.88); text-decoration: none; padding: 2px 0; }
.footer-nav a:hover { color: #fff; }
.footer-name { font-weight: 700; color: #fff; margin: 0 0 6px; letter-spacing: -0.02em; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0 18px; }
.copyright { color: rgba(255,255,255,.5); margin: 0; }
.form-stack { display: grid; gap: 14px; max-width: 36rem; }
.form-stack fieldset { display: grid; gap: 14px; border: 0; margin: 0; padding: 0; }
.form-stack legend { font-weight: 700; color: #15047e; }
.form-stack label { display: grid; gap: 6px; font-weight: 500; color: #3d4454; }
.form-stack input, .form-stack textarea {
    border: 1px solid #d5d8e0;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}
.form-stack button, .error-converter button {
    border: 0;
    background: #15047e;
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    width: fit-content;
}
.form-error { color: #a32020; margin: 0; }
.form-success { color: #0b7a3b; }
.contact-details { display: grid; gap: 16px; margin: 20px 0 0; }
.contact-details div { display: grid; gap: 4px; }
.contact-details dt { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5c6575; }
.contact-details dd { margin: 0; font-size: 1.05rem; }
.contact-details a { color: #15047e; }
.error-converter {
    display: grid;
    grid-template-columns: 1fr 7rem 7rem auto;
    gap: 12px;
    align-items: end;
    margin-top: 20px;
}
.error-converter label { display: grid; gap: 6px; font-weight: 500; color: #3d4454; }
.error-converter input {
    border: 1px solid #d5d8e0;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    width: 100%;
}
.page-wrap.narrow a { color: #15047e; }
.blog-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    overflow: hidden;
}
.blog-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.blog-card-copy { padding: 12px 14px 14px; }
.blog-card h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.blog-card h2 a { color: #14122a; text-decoration: none; }
.blog-card .post-meta { margin: 8px 0; font-size: .82rem; }
.blog-card-copy > p:last-child {
    margin: 0;
    color: #3d4454;
    font-size: .9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-cover { width: 100%; border-radius: 12px; margin: 12px 0 20px; }
.post-meta { color: #5c6575; }
.post-meta a { color: #15047e; }

.admin-body { background: #f4f6fb; margin: 0; color: #1c1c1c; }
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-side {
    background: #12045f;
    color: #fff;
    padding: 22px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; padding: 0 10px 8px; }
.admin-side-nav { display: grid; gap: 4px; }
.admin-side-nav p { margin: 14px 10px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.admin-side-nav a { color: rgba(255,255,255,.86); text-decoration: none; border-radius: 8px; padding: 8px 10px; }
.admin-side-nav a:hover, .admin-side-nav a.is-active { background: rgba(255,255,255,.14); color: #fff; }
.admin-logout { margin-top: auto; }
.admin-logout button { width: 100%; text-align: left; background: transparent; color: rgba(255,255,255,.86); border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; }
.admin-logout button:hover { background: rgba(255,255,255,.14); color: #fff; }
.admin-content { min-width: 0; }
.admin-main { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 64px; }
.admin-page-head h1, .admin-main h1 { margin: 0 0 6px; color: #15047e; font-size: 1.7rem; }
.admin-page-head p, .admin-main > p { color: #5c6575; }
.admin-anchor { scroll-margin-top: 24px; }
.toasts {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: grid;
    gap: 8px;
    width: min(280px, calc(100% - 32px));
    pointer-events: none;
}
.toast {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #15047e;
    color: #fff;
    font-size: .9rem;
    line-height: 1.35;
    box-shadow: 0 12px 28px rgba(16, 8, 60, .28);
    animation: toast-in .28s ease;
}
.toast-bad { background: #8d1d1d; }
.toast.is-leaving { animation: toast-out .28s ease forwards; }
@keyframes toast-in {
    from { transform: translateX(16px); opacity: 0; }
    to { transform: none; opacity: 1; }
}
@keyframes toast-out {
    to { transform: translateX(16px); opacity: 0; }
}
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.admin-stats article, .stat-link, .admin-panel, .admin-main form.form-stack {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.stat-link { color: inherit; text-decoration: none; display: block; }
.stat-link:hover { border-color: #c9c4ea; }
.stat-label { margin: 0; color: #5c6575; font-size: .85rem; }
.stat-value { margin: 6px 0 8px; font-size: 1.45rem; font-weight: 700; color: #15047e; }
.admin-panel { margin: 16px 0; }
.admin-panel h2 { margin-top: 0; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; margin: 0; }
.admin-table th, .admin-table td { text-align: left; padding: 12px; border-bottom: 1px solid #eef0f4; vertical-align: top; }
.admin-table th { color: #5c6575; font-size: .82rem; font-weight: 600; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table a { color: #15047e; }
.rate-board { border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.rate-board thead th { background: #f6f5fb; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.rate-board td { vertical-align: middle; }
.rate-board tr.is-off { opacity: .55; }
.bank-cell { min-width: 9rem; }
.bank-cell strong { display: block; color: #1a1333; }
.bank-cell span { display: block; margin-top: 2px; color: #8b90a0; font-size: .75rem; }
.bank-cell .pill { display: inline-block; margin-top: 6px; }
.rate-nums { display: flex; gap: 16px; font-variant-numeric: tabular-nums; font-weight: 700; color: #15047e; font-size: 1.02rem; }
.rate-nums small { display: block; font-weight: 600; color: #8b90a0; font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; }
.rate-sub, .rate-missing { display: block; margin-top: 4px; color: #8b90a0; font-size: .75rem; }
.rate-sub a { margin-left: 4px; }
.status-cell { min-width: 7.5rem; }
.status-cell small { display: block; margin-top: 4px; color: #8b90a0; font-size: .75rem; }
.pill.is-bad { background: #fde8e8; color: #8d1d1d; }
.pill.is-warn { background: #fff4d6; color: #8a5a00; }
.rate-board button { background: #fff; border: 1px solid #d9d6ea; }
.admin-main form.seo-form { max-width: 46rem; }
.seo-block { display: grid; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #eef0f4; }
.seo-block h2 { margin: 8px 0 0; font-size: 1.05rem; color: #15047e; }
.seo-help, .seo-count { margin: 0; color: #5c6575; font-size: .85rem; font-weight: 500; }
.seo-count.is-long { color: #8a5a00; }
.seo-preview { margin: 0; background: #f6f5fb; border-radius: 10px; padding: 10px 12px; color: #1a1333; font-size: .9rem; }
.admin-table form { display: inline; }
.admin-table button, .admin-main button[type="submit"] {
    border: 0;
    background: #15047e;
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font: inherit;
}
.admin-table button { background: #f1f2f8; color: #15047e; }
.admin-table button.is-danger, .admin-main button.is-danger { background: #8d1d1d; color: #fff; }
.admin-table.rate-board button { background: #fff; color: #15047e; border: 1px solid #d9d6ea; padding: 6px 12px; }
.admin-main button[type="submit"]:disabled, .admin-table button:disabled { opacity: .7; cursor: progress; }
.admin-main button.is-loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: admin-spin .7s linear infinite;
}
@keyframes admin-spin { to { transform: rotate(360deg); } }
.pill { display: inline-block; background: #e7f6ee; color: #0b7a3b; border-radius: 999px; padding: 2px 8px; font-size: .82rem; }
.pill.is-off { background: #f4f5f7; color: #5c6575; }
.check-line { display: flex; gap: 8px; align-items: center; }
.admin-main select, .form-stack select { border: 1px solid #d5d8e0; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.text-button { color: #15047e; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; }
    .admin-side-nav { grid-template-columns: 1fr 1fr; }
    .admin-side-nav p { grid-column: 1 / -1; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-main { width: min(1080px, calc(100% - 28px)); }
    .section-head { flex-direction: column; align-items: start; }
}

.section-gap { margin-top: 28px; }
.directory-search { display: grid; gap: 6px; max-width: 28rem; margin-top: 16px; font-weight: 500; color: #3d4454; }
.directory-search input, .currency-directory { width: 100%; }
.directory-search input {
    border: 1px solid #d5d8e0;
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
}
.currency-directory { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.currency-directory li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    padding: 12px 14px;
}
.currency-main { display: flex; align-items: center; gap: 12px; color: #1c1c1c; text-decoration: none; min-width: 0; }
.currency-main strong { color: #15047e; margin-right: 6px; }
.currency-main small { display: block; color: #5c6575; }
.currency-action {
    border: 1px solid #d5d8e0;
    border-radius: 999px;
    padding: 6px 12px;
    color: #15047e;
    text-decoration: none;
    white-space: nowrap;
}
.table-scroll { overflow-x: auto; }
.rate-matrix { width: 100%; border-collapse: collapse; background: #fff; }
.rate-matrix caption { text-align: left; font-weight: 700; color: #15047e; padding: 0 0 8px; }
.rate-matrix th, .rate-matrix td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e6e8ee; white-space: nowrap; }
.rate-matrix a { color: #15047e; }
.amount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero h1 .img-flag { vertical-align: -2px; margin-right: 8px; }
.login-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 16px;
    background: #f6f7fb;
}
.login-screen h1 { margin: 0; color: #15047e; text-align: center; font-size: 1.6rem; }
.login-card {
    width: min(100%, 24rem);
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    padding: 28px 24px;
}
#clerk-sign-in { display: flex; justify-content: center; width: 100%; }
.login-status { margin: 0; color: #3d4454; text-align: center; }

#chart { width: 100%; min-height: 320px; }
.select2-container { max-width: 100%; }
.img-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }

@media (max-width: 767px) {
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none;
        flex-direction: column;
        padding: 0 0 12px;
    }
    .site-nav.is-open { display: flex; }
    .site-header-inner { flex-wrap: wrap; }
    .site-nav { width: 100%; }
    .site-footer-inner, .footer-nav { grid-template-columns: 1fr; }
    .converter-row, .error-converter { grid-template-columns: 1fr; }
    .converter-swap { justify-self: center; padding: 0; }
    .steps, .amount-grid { grid-template-columns: 1fr; }
    .amount-input { font-size: 22px; }
    .table-responsive { overflow-x: auto; }
}

/* Bank rate board */
.bank-tabs { display: inline-flex; gap: 4px; background: #f1f2f6; border-radius: 10px; padding: 4px; margin: 12px 0 16px; }
.bank-tabs a { padding: 6px 12px; border-radius: 8px; color: #5c6575; text-decoration: none; font-weight: 500; }
.bank-tabs a.is-active { background: #fff; color: #1c1c1c; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.bank-board td small { display: block; color: #5c6575; font-size: .85em; }
.bank-board tr.is-reference { background: #f6f7fb; }
.bank-board tr.is-stale td { color: #8a91a0; }
.bank-board tr.is-missing td:not(:first-child) { color: #a0a6b2; }
.bank-board .bank-up { color: #0b7a3b; font-size: .75em; }
.bank-board .bank-down { color: #a32020; font-size: .75em; }
.bank-board .bank-stale { color: #9a6700; }
.bank-note { color: #5c6575; font-size: .92em; margin-top: 14px; }

/* Phones and tablets */
img, video { max-width: 100%; }
.page-wrap, .page-wrap.narrow, .converter-card, .panel, .hero { min-width: 0; }
h1, h2, h3, p, li, a, td, th, label { overflow-wrap: break-word; }
.breadcrumbs a, .breadcrumbs span { overflow-wrap: anywhere; }
.live-rate, .pair-links a, .related-links a { max-width: 100%; }
.pair-links a { white-space: normal; }
.table-scroll, .table-responsive { max-width: 100%; -webkit-overflow-scrolling: touch; }
.amount-grid .rate-matrix th,
.amount-grid .rate-matrix td { white-space: normal; }
.bank-tabs { flex-wrap: wrap; max-width: 100%; }
.bank-board th:first-child,
.bank-board td:first-child,
.rate-board th:first-child,
.rate-board td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
}
.bank-board tr.is-reference td:first-child { background: #f6f7fb; }
.rate-board thead th:first-child { background: #f6f5fb; z-index: 2; }
.result-actions { flex-wrap: wrap; }
.site-header, .site-footer { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
#clerk-sign-in, #clerk-sign-in iframe { max-width: 100%; }
.header-container .container, .container.my-4 { max-width: 100%; }
.pair-page .hero h1 { font-size: clamp(1.55rem, 4.5vw, 2.4rem); }

@media (max-width: 1024px) {
    .converter-row { grid-template-columns: 1fr; }
    .converter-swap { justify-self: center; padding: 0; }
    .steps { grid-template-columns: 1fr; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
    .footer-nav { grid-template-columns: 1fr 1fr; }
    .converter-card { padding: 16px; }
    .amount-input { font-size: 26px; }
    .admin-stats { grid-template-columns: 1fr; }
    .home-posts, .blog-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .hero { padding: 28px 0 12px; }
    .hero h1 { font-size: 1.7rem; }
    .panel { padding: 24px 0; }
    .page-wrap, .page-wrap.narrow { width: min(1080px, calc(100% - 28px)); }
    .site-nav a { padding: 12px; }
    .nav-toggle { min-height: 40px; }
    .footer-nav { grid-template-columns: 1fr; }
    .home-posts, .blog-list { grid-template-columns: 1fr; gap: 10px; }
    .amount-grid { grid-template-columns: 1fr; }
    #chart { min-height: 220px; }
    .live-rate { font-size: 1.15rem; }
    .heading { font-size: 1.55rem; line-height: 1.2; }
    .header-container { padding: 28px 16px; }
    .login-screen { min-height: auto; padding: 28px 16px; }
    .login-card { padding: 22px 16px; }
    .form-stack input, .form-stack textarea, .form-stack select, .directory-search input { font-size: 16px; }
    .currency-directory li { flex-direction: column; align-items: flex-start; }
    .rate-changes { gap: 6px 12px; }
    .range-switch { width: 100%; }
    .range-switch button { flex: 1; min-height: 40px; }
    .panel-head { align-items: stretch; }
    .admin-main { padding-top: 20px; }
    .admin-table th, .admin-table td { padding: 8px; }
    .rate-nums { gap: 10px; font-size: .95rem; }
    .toasts { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); }
    .form-stack button[type="submit"] { width: 100%; }
}

@media (max-width: 420px) {
    .admin-side-nav { grid-template-columns: 1fr; }
    .brand { font-size: .95rem; }
    .home-posts { gap: 8px; }
    .home-post-copy { padding: 8px; }
    .home-posts h3 { font-size: .85rem; }
    .home-posts p { display: none; }
}
