/* ===== FINANCES.KIEV.UA — ТЕРИТОРІЯ ФІНАНСІВ ===== */
/* v7 — redesign: larger fonts, vertical cards, editorial info portal */
:root {
    --accent:      #a91531;
    --accent-dark: #7c0f24;
    --accent-light: #f9e8eb;
    --header-bg:   #ffffff;
    --nav-bg:      #a91531;
    --page-bg:     #f0f2f5;
    --text:        #1a1a2e;
    --text-muted:  #6b7280;
    --border:      #e2e5ea;
    --card-bg:     #ffffff;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.14);
    --radius:      8px;
}

/* ===== GOOGLE FONTS — Merriweather + Inter ===== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ol, ul { list-style: none; }
table { border-collapse: collapse; }
img { vertical-align: top; max-width: 100%; height: auto; }

/* ===== BASE ===== */
body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--page-bg);
    width: 100%;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    line-height: 1.3;
    color: var(--text);
}

/* ===== SITE HEADER ===== */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.site-header-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    height: 58px;
    width: auto;
}

/* ===== LANGUAGE PILLS ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none !important;
    white-space: nowrap;
}

.lang-switcher-header .lang-pill {
    background: var(--accent-light);
    color: var(--accent);
    border: 1.5px solid transparent;
}
.lang-switcher-header .lang-pill:hover {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
}
.lang-switcher-header .lang-pill-active {
    background: var(--accent);
    color: #fff;
    border: 1.5px solid var(--accent);
    cursor: default;
}

.lang-switcher-nav { display: none; } /* shown only on mobile via media query */

/* ===== NAVIGATION ===== */
.site-nav {
    background: var(--nav-bg);
    position: relative;
}

.site-nav-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    z-index: 100;
}
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-collapse {
    display: flex;
    align-items: center;
    flex: 1;
}

.main-menu {
    display: flex !important;
    flex-wrap: nowrap;
    list-style: none;
    flex: 1;
}

.main-menu > li > a {
    display: block;
    color: rgba(255,255,255,0.92) !important;
    text-decoration: none !important;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.main-menu > li > a:hover,
.main-menu > li.active > a {
    background: rgba(0,0,0,0.18);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ===== MAIN WRAPPER ===== */
#main {
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}

/* ===== SECTION HEADING ===== */
.section-heading {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 23px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

h1.page-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 6px;
}

/* ===== ARTICLE CARDS (blog list) ===== */
.blog-list-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

/* Card */
.blog-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    display: flex;
    flex-direction: column;
}

.blog-item:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.blog-item-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #e8eaed;
    flex-shrink: 0;
}

.blog-item-image-wrapper a.blog-item-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-item:hover .blog-item-image { transform: scale(1.06); }

.blog-item-info-wrapper {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category label */
.category-label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    margin-bottom: 10px;
    align-self: flex-start;
}

/* Date */
.blog-item-publish {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.1px;
}

.blog-item-publish i { color: var(--accent); font-size: 13px; }

/* Title */
.blog-item-title-wrapper { margin-bottom: 10px; }

.blog-item-title {
    display: block;
    font-family: 'Merriweather', Georgia, serif;
    color: var(--text) !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
    transition: color 0.15s;
}

.blog-item-title:hover { color: var(--accent) !important; }

/* Description */
.blog-item-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Read more link */
.blog-item-read-more {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--accent-light);
    transition: border-color 0.15s;
}

.blog-item-read-more:hover {
    color: var(--accent-dark);
    border-color: var(--accent);
    text-decoration: none;
}

/* ===== CATEGORY FILTER BAR ===== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.category-filter a,
.category-filter .filter-btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    transition: all 0.15s;
}

.category-filter a:hover,
.category-filter .filter-btn:hover,
.category-filter a.active,
.category-filter .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 6px;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s;
    min-width: 40px;
    text-align: center;
}

.pagination li.active span,
.pagination li a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    text-decoration: none;
}

/* ===== ARTICLE VIEW PAGE ===== */
.content-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 0 32px;
}

.content-article {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: var(--card-shadow);
}

.breadcrumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--accent);
    font-weight: 500;
}

.breadcrumbs a:hover { color: var(--accent-dark); }

.breadcrumbs span { color: var(--text-muted); }

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.date-wrapper {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-wrapper i { color: var(--accent); }

.image-wrapper {
    margin: 0 0 28px 0;
    border-radius: 6px;
    overflow: hidden;
}

.image-wrapper .image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.article-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 20px;
}

.description-wrapper {
    color: var(--text);
    line-height: 1.85;
    font-size: 16px;
}

.description-wrapper p { margin-bottom: 1.2em; }

.description-wrapper h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--text);
    margin: 2em 0 0.75em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light);
}

.description-wrapper h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin: 1.75em 0 0.6em;
}

.description-wrapper h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 1.5em 0 0.5em;
}

.description-wrapper ul,
.description-wrapper ol {
    margin: 1em 0;
    padding-left: 1.8em;
}

.description-wrapper ul { list-style: disc; }
.description-wrapper ol { list-style: decimal; }
.description-wrapper li { margin-bottom: 0.5em; }

.description-wrapper blockquote {
    border-left: 4px solid var(--accent);
    background: var(--accent-light);
    margin: 1.5em 0;
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #444;
}

.description-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}

.description-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 15px;
}

.description-wrapper th,
.description-wrapper td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.description-wrapper th {
    background: #f4f6f8;
    font-weight: 600;
}

/* ===== CONTENT PAGES (About, Policy) ===== */
.main-content {
    margin: 20px auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 36px 40px;
}

.main-content h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text);
}

.content-description {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
}

.content-description p { margin-bottom: 1.1em; }

.content-description h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    margin: 2em 0 0.75em;
    color: var(--text);
}

.content-description ul,
.content-description ol {
    margin: 1em 0;
    padding-left: 1.8em;
}

.content-description ul { list-style: disc; }
.content-description ol { list-style: decimal; }
.content-description li { margin-bottom: 0.4em; }

/* ===== LABEL BLOCK ===== */
.label-block {
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.15s;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--accent);
    color: #fff !important;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff !important;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: #fff !important;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
    color: #fff !important;
}

/* ===== 404 ERROR ===== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    text-align: center;
}

.error-content { max-width: 520px; padding: 2rem; }

.error-code {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 7rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.error-message {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SITE FOOTER ===== */
.site-footer {
    background: #16213e;
    color: #9ca3af;
    padding: 32px 24px;
    margin-top: 48px;
    font-size: 15px;
    line-height: 1.7;
}

.site-footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    text-align: center;
}

.site-footer a {
    color: #9ca3af;
    transition: color 0.15s;
}

.site-footer a:hover { color: #fff; }

.site-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 14px;
    font-size: 15px;
}

.site-footer-links a {
    color: #d1d5db;
}

/* ===== UTILITIES ===== */
.clear { clear: both; }
.d-n { display: none; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .blog-list-container { grid-template-columns: repeat(2, 1fr); }
    .blog-list-container .blog-item:first-child {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    #main { padding: 20px 16px 40px; }
    .blog-list-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .blog-list-container .blog-item:first-child {
        grid-template-columns: 1fr;
    }
    .blog-list-container .blog-item:first-child .blog-item-image-wrapper {
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .content-article { padding: 20px; }
    .main-content { padding: 20px; }
    .article-title { font-size: 23px; }
    .description-wrapper { font-size: 16px; }
    .blog-item-title { font-size: 16px !important; }

    /* ── Mobile nav ── */
    .site-header-inner { padding: 10px 16px; }
    .lang-switcher-header { display: none; }  /* hidden in header on mobile — shown in nav */

    .nav-toggle { display: flex; }

    .site-nav-inner { padding: 0 16px; align-items: stretch; position: relative; }

    .nav-collapse {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        z-index: 200;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        padding-bottom: 12px;
    }
    .nav-collapse.is-open { display: flex; }

    .main-menu {
        flex-direction: column !important;
        flex-wrap: wrap;
        flex: none;
    }
    .main-menu > li > a {
        padding: 12px 20px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        white-space: normal;
    }

    .lang-switcher-nav {
        display: flex;
        padding: 12px 20px 4px;
        gap: 8px;
    }
    .lang-switcher-nav .lang-pill {
        background: rgba(255,255,255,0.15);
        color: #fff;
        border: 1.5px solid rgba(255,255,255,0.3);
    }
    .lang-switcher-nav .lang-pill:hover {
        background: rgba(255,255,255,0.3);
        color: #fff !important;
    }
    .lang-switcher-nav .lang-pill-active {
        background: rgba(255,255,255,0.9);
        color: var(--accent);
        border-color: rgba(255,255,255,0.9);
        cursor: default;
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .blog-item-info-wrapper { padding: 16px; }
    .content-article { padding: 16px; }
    .main-content { padding: 16px; }
}

/* ===== IMAGE PLACEHOLDER — hide broken alt text ===== */
.blog-item-image,
.blog-image {
    color: transparent;
}

/* ===== HOMEPAGE HERO ===== */
.home-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #a91531 100%);
    border-radius: 10px;
    padding: 48px 40px;
    margin-bottom: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.home-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' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.home-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.home-hero-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 16px;
}

.home-hero-title a {
    color: #fff !important;
    text-decoration: none;
}

.home-hero-title a:hover {
    color: rgba(255,255,255,0.85) !important;
}

.home-hero-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
    margin-bottom: 24px;
}

.home-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255,255,255,0.65);
    font-size: 15px;
}

.home-hero-meta a {
    color: #fff !important;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 1px;
}

/* ===== HOME SECTION HEADINGS ===== */
.home-section {
    margin-bottom: 44px;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.home-section-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

.home-section-viewall {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-light);
    transition: border-color 0.15s;
}

.home-section-viewall:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

/* ===== HOME LATEST GRID ===== */
.home-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-latest-grid .blog-item .blog-item-title {
    font-size: 15px !important;
}

/* ===== CATEGORY SECTION GRID ===== */
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== ARTICLE VIEW FIX — use existing CSS classes ===== */
/* The view.php uses .blog-article-* — add aliases */
.blog-article-content { padding: 8px 0 32px; }

.blog-article-wrapper {
    margin: 0 auto;
}

.blog-article {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: var(--card-shadow);
}

.blog-article-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(18, 140, 126, 0.12) 0%, rgba(18, 140, 126, 0.04) 100%);
    border: 1px solid rgba(18, 140, 126, 0.18);
    color: #154d46;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.blog-article h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 16px;
    border-left: none;
    padding-left: 0;
}

.blog-breadcrumbs {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.blog-breadcrumbs a,
.blog-breadcrumbs .ib {
    color: var(--accent) !important;
    font-weight: 500;
    text-decoration: none;
}

.blog-breadcrumbs a:hover { color: var(--accent-dark) !important; }

.blog-date-wrapper {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.blog-date-wrapper i { color: var(--accent); }

.blog-image-wrapper {
    margin: 0 0 28px 0;
    border-radius: 6px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.blog-description-wrapper {
    color: var(--text);
    line-height: 1.85;
    font-size: 16px;
}

.blog-description-wrapper p { margin-bottom: 1.2em; }

.blog-description-wrapper h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--text);
    margin: 2em 0 0.75em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light);
}

.blog-description-wrapper h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    margin: 1.75em 0 0.6em;
}

.blog-description-wrapper ul,
.blog-description-wrapper ol {
    margin: 1em 0;
    padding-left: 1.8em;
}

.blog-description-wrapper ul { list-style: disc; }
.blog-description-wrapper ol { list-style: decimal; }
.blog-description-wrapper li { margin-bottom: 0.5em; }

.blog-description-wrapper blockquote {
    border-left: 4px solid var(--accent);
    background: var(--accent-light);
    margin: 1.5em 0;
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.blog-description-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}

.blog-additional-info {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-muted);
}

.blog-author-label { font-weight: 600; }

.blog-author-name {
    color: var(--text);
    font-weight: 500;
}

/* ===== RESPONSIVE HOME ===== */
@media (max-width: 1024px) {
    .home-latest-grid { grid-template-columns: repeat(2, 1fr); }
    .home-hero-title { font-size: 28px; }
}

@media (max-width: 768px) {
    .home-hero { padding: 32px 24px; }
    .home-hero-title { font-size: 23px; }
    .home-latest-grid { grid-template-columns: repeat(2, 1fr); }
    .home-cat-grid { grid-template-columns: 1fr; }
    .blog-article { padding: 20px; }
}

@media (max-width: 480px) {
    .home-latest-grid { grid-template-columns: 1fr; }
}

/* ===== ARTICLE META ROW ===== */
.article-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.article-meta-row .blog-date-wrapper {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ===== CREDIT SECTION ===== */
.credit-section { margin-bottom: 40px; }

/* ── Homepage credit cards (horizontal, same style as full page) ── */
.credit-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
}

.credit-card-mini {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    grid-template-rows: auto;
    align-items: start;
    gap: 0 20px;
    transition: box-shadow .15s, transform .15s;
    cursor: pointer;
    border: 1.5px solid transparent;
}
.credit-card-mini:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
    border-color: var(--accent-light);
}

/* Column 1: logo */
.credit-card-mini-logo {
    grid-column: 1;
    grid-row: 1 / 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 8px;
    min-height: 64px;
    padding: 8px;
}
.credit-card-mini-logo span {
    font-weight: 800;
    font-size: 15px;
    color: var(--accent);
    text-align: center;
}

/* Column 2: content */
.credit-card-mini-name {
    grid-column: 2;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 2px;
}

.credit-card-mini-label {
    grid-column: 2;
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    align-self: start;
    justify-self: start;
}

.credit-card-mini-params {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 8px;
}

.credit-mini-param {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 80px;
}

.credit-mini-param-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}
.credit-mini-param-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.credit-mini-legal {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Column 3: button */
.credit-card-mini-btn {
    grid-column: 3;
    grid-row: 1 / 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    background: var(--accent);
    color: #fff !important;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
    box-shadow: 0 2px 8px rgba(169,21,49,.2);
}
.credit-card-mini-btn:hover {
    background: var(--accent-dark);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(169,21,49,.3);
}

/* unused legacy selectors kept for safety */
.credit-card-mini-info { display: none; }
.credit-card-mini-amount { display: none; }
.credit-card-mini-rate { display: none; }

/* ── Full credit list page ── */
.credit-intro {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 16px;
}

.credit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.credit-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 24px;
    transition: box-shadow .2s, transform .15s;
    cursor: pointer;
    border: 1.5px solid transparent;
}
.credit-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
    border-color: var(--accent-light);
}

.credit-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #fafafa;
    border-radius: 8px;
    min-height: 70px;
}
.credit-no-logo {
    font-weight: 800;
    font-size: 15px;
    color: var(--accent);
    text-align: center;
}

.credit-card-org {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.credit-card-label {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: .2px;
}

.credit-card-params {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.credit-param {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.credit-param-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
}
.credit-param-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.credit-card-action { flex-shrink: 0; }

.credit-card-legal {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 10px;
}
.credit-legal-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(169,21,49,.3);
    cursor: pointer;
    line-height: 1.5;
}
.credit-legal-link:hover { text-decoration-color: var(--accent); color: var(--accent-dark); }
.credit-legal-na {
    color: var(--text-muted);
    text-decoration: none;
    cursor: default;
}

.credit-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
    letter-spacing: .2px;
    box-shadow: 0 2px 8px rgba(169,21,49,.25);
}
.credit-btn:hover {
    background: var(--accent-dark);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(169,21,49,.35);
}

.credit-disclaimer {
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 13px;
    color: #7c6400;
    margin-top: 24px;
    line-height: 1.7; 
}

/* ===== CREDIT ARTICLE CONTENT ===== */
.credit-article { 
    margin: 40px auto 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 32px 36px;
}
.credit-article h2 {
    font-size: 23px;
    margin: 0 0 16px;
    color: var(--text);
}
.credit-article h3 {
    font-size: 18px;
    margin: 28px 0 10px;
    color: var(--accent);
    padding-top: 4px;
    border-top: 1px solid var(--border);
}
.credit-article p {
    margin: 0 0 14px;
    line-height: 1.75;
    font-size: 16px;
    color: #374151;
}
.credit-faq {
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}
.credit-faq-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.faq-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    user-select: none;
    gap: 12px;
}
.faq-question:hover { background: var(--accent-light); }
.faq-arrow {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--accent);
    transition: transform 0.2s;
}
.faq-item.is-open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    display: none;
    padding: 0 20px 16px;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    border-top: 1px solid var(--border);
}
.faq-item.is-open .faq-answer { display: block; }

@media (max-width: 640px) {
    .credit-article { padding: 20px 18px; }
    .credit-article h2 { font-size: 18px; }
    .credit-article h3 { font-size: 16px; }
    .credit-article p { font-size: 15px; }
}

@media (max-width: 900px) {
    /* Full credit page cards */
    .credit-card { grid-template-columns: 110px 1fr; }
    .credit-card-action { grid-column: 1/-1; text-align: center; }

    /* Homepage mini cards: shrink logo column */
    .credit-card-mini { grid-template-columns: 90px 1fr auto; gap: 0 12px; }
    .credit-card-mini-btn { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 640px) {
    /* Full credit page cards: stack vertically */
    .credit-card { grid-template-columns: 1fr; text-align: center; }
    .credit-card-logo { margin: 0 auto; min-height: 56px; }
    .credit-card-params { justify-content: center; }
    .credit-card-action { grid-column: 1; text-align: center; }

    /* Homepage mini cards: vertical flex stack */
    .credit-card-mini {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 14px 16px;
    }
    .credit-card-mini-logo {
        display: flex;
        grid-column: unset;
        grid-row: unset;
        width: 80px;
        min-height: 44px;
        margin-bottom: 10px;
        padding: 6px;
    }
    .credit-card-mini-name {
        grid-column: unset;
        font-size: 16px;
        margin-bottom: 4px;
    }
    .credit-card-mini-label {
        grid-column: unset;
        margin-bottom: 10px;
    }
    .credit-card-mini-params {
        grid-column: unset;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        margin-bottom: 10px;
    }
    .credit-mini-param-value { font-size: 13px; }
    .credit-mini-legal {
        grid-column: unset;
        margin-bottom: 12px;
    }
    .credit-card-mini-btn {
        grid-column: unset;
        grid-row: unset;
        width: 100%;
        text-align: center;
        padding: 11px;
        font-size: 15px;
        align-self: unset;
    }
}

/* ── Currency rates page ──────────────────────────────────────── */
.currency-update-date {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 24px;
}
.currency-update-date a {
    color: var(--accent);
}

.currency-table-wrapper {
    overflow-x: auto;
    margin: 0 0 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.currency-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    font-size: 16px;
}
.currency-table thead tr {
    background: var(--accent);
    color: #fff;
}
.currency-table th {
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}
.currency-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.currency-row:last-child td { border-bottom: none; }
.currency-row:hover { background: var(--bg-hover, #f7f9ff); }

.cur-col-flag { width: 40px; font-size: 23px; }
.cur-col-code { width: 70px; font-weight: 600; color: var(--text-primary); }
.cur-col-name { color: var(--text-muted); }
.cur-col-rate { text-align: center; font-family: monospace; }
.currency-table th.cur-col-rate { text-align: center; }

.currency-rate {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.currency-all-toggle {
    text-align: center;
    margin: 8px 0 32px;
}
.currency-all-btn {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background .18s, color .18s;
}
.currency-all-btn:hover {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 600px) {
    .currency-table th,
    .currency-table td { padding: 9px 10px; font-size: 15px; }
    .currency-rate { font-size: 15px; }
    .cur-col-flag { font-size: 18px; width: 30px; }
}

/* ── Currency homepage widget ─────────────────────────────────── */
.currency-widget-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.currency-widget-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s, border-color .18s;
}
.currency-widget-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    border-color: var(--accent);
}
.cwc-flag { font-size: 28px; line-height: 1; }
.cwc-code { font-size: 15px; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; }
.cwc-name { font-size: 13px; color: var(--text-muted); text-align: center; }
.cwc-rate { font-size: 23px; font-weight: 800; color: var(--accent); margin-top: 4px; font-family: monospace; }
.cwc-unit { font-size: 13px; color: var(--text-muted); margin-top: -2px; }

@media (max-width: 700px) {
    .currency-widget-grid { grid-template-columns: repeat(2, 1fr); }
    .cwc-rate { font-size: 18px; }
}
@media (max-width: 380px) {
    .currency-widget-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ── Bank registry (/banky) ───────────────────────────────────── */
.banky-h1 { font-size: clamp(20px, 4vw, 28px); }

/* Filter tabs */
.banky-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}
.banky-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--card-bg);
    transition: border-color .15s, background .15s, color .15s;
}
.banky-filter-tab:hover,
.banky-filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.banky-filter-count {
    font-size: 13px;
    font-weight: 700;
    background: rgba(0,0,0,.12);
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 20px;
    text-align: center;
}
.banky-filter-tab.active .banky-filter-count { background: rgba(255,255,255,.25); }

/* Search input */
.banky-search-wrap { margin: 0 0 24px; }
.banky-search {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: border-color .15s;
}
.banky-search:focus { border-color: var(--accent); }

/* Bank card grid */
.banky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.banky-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 18px 18px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s, border-color .18s, transform .15s;
}
.banky-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Type badges */
.banky-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
}
.badge-state   { background: #e3f0ff; color: #1565c0; }
.badge-foreign { background: #f3e5f5; color: #6a1b9a; }
.badge-private { background: #e8f5e9; color: #2e7d32; }
.badge-other   { background: #f5f5f5; color: #555; }
.banky-badge-lg { font-size: 15px; padding: 5px 14px; }

/* Logo initial circle */
.banky-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.banky-initial {
    font-size: 23px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
/* Per-type initial colors */
.banky-type-a .banky-logo { background: linear-gradient(135deg, #1565c0, #0d47a1); }
.banky-type-b .banky-logo { background: linear-gradient(135deg, #6a1b9a, #4a148c); }
.banky-type-e .banky-logo { background: linear-gradient(135deg, #2e7d32, #1b5e20); }

.banky-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.banky-mfo {
    font-size: 13px;
    color: var(--text-muted);
    font-family: monospace;
}
.banky-address,
.banky-meta {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}
.banky-icon { flex-shrink: 0; margin-top: 1px; }
.banky-meta-center {
    align-self: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}
.banky-empty { text-align: center; color: var(--text-muted); padding: 32px; font-size: 16px; }

/* Bank detail view */
.banky-view-card {
    max-width: 680px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 36px 40px;
    margin: 24px 0 40px;
}
.banky-view-name {
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 800;
    margin: 12px 0 4px;
    color: var(--text-primary);
}
.banky-view-fullname {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 20px;
}
.banky-view-details {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.banky-detail-row {
    display: flex;
    gap: 12px;
    align-items: baseline;
}
.banky-detail-label {
    min-width: 130px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}
.banky-detail-value {
    font-size: 15px;
    color: var(--text-primary);
}
.banky-view-description {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
}
.banky-view-back { margin-top: 28px; }
.banky-back-btn {
    display: inline-block;
    padding: 9px 20px;
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.banky-back-btn:hover { background: var(--accent); color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .banky-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .banky-grid { grid-template-columns: 1fr; gap: 12px; }
    .banky-view-card { padding: 24px 18px; }
    .banky-detail-row { flex-direction: column; gap: 2px; }
    .banky-detail-label { min-width: unset; }
}

/* ===== Bank logo image styles (v19) ===== */
.banky-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 14px;
    margin: 0 auto 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    flex-shrink: 0;
}

.banky-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* Initials fallback - keep type colours only when no image */
.banky-logo .banky-initial {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.banky-logo.banky-logo-badge-state   { background: #1565c0; border-color: #1565c0; }
.banky-logo.banky-logo-badge-foreign { background: #6a1b9a; border-color: #6a1b9a; }
.banky-logo.banky-logo-badge-private { background: #2e7d32; border-color: #2e7d32; }

/* When image is present, show white bg regardless of type */
.banky-logo:has(.banky-logo-img) {
    background: #fff !important;
    border-color: #e8e8e8 !important;
}

/* Bank detail view logo */
.banky-view-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.banky-view-logo-img {
    max-width: 160px;
    max-height: 100px;
    object-fit: contain;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* Bank card website link (v19+) */
.banky-website {
    font-size: .75rem;
    color: var(--accent, #1a73e8);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.banky-website-link {
    color: var(--accent, #1a73e8);
    text-decoration: none;
}

.banky-website-link:hover {
    text-decoration: underline;
}

/* ===== Banks sub-nav ===== */
.banky-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}
.banky-subnav-link {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.banky-subnav-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.banky-subnav-link.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== Kurs currency sub-tabs ===== */
.kurs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 20px;
    border-bottom: 2px solid var(--border-color);
}
.kurs-tab {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 6px 6px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    text-decoration: none;
    transition: color .15s, background .15s, border-color .15s;
    margin-bottom: -2px;
}
.kurs-tab:hover {
    color: var(--accent);
    background: var(--card-bg);
    border-color: var(--border-color);
}
.kurs-tab.active {
    color: var(--accent);
    background: var(--bg-main, #fff);
    border-color: var(--border-color);
    border-bottom-color: var(--bg-main, #fff);
}
.kurs-detail-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}
.kurs-detail-link:hover { text-decoration: underline; }

/* ===== Banks data table ===== */
.banky-table-wrap {
    overflow-x: auto;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.banky-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: var(--card-bg);
}
.banky-table thead tr {
    background: var(--accent);
}
.banky-table th {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 11px 12px;
    text-align: left;
    white-space: nowrap;
}
.banky-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.banky-table tbody tr:last-child td { border-bottom: none; }
.banky-table tbody tr:hover { background: rgba(0,0,0,.025); }
.banky-th-rank, .banky-td-rank {
    width: 36px;
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;
}
.banky-th-logo, .banky-td-logo {
    width: 60px;
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
}
.banky-th-num, .banky-td-num,
.banky-table th.banky-th-num {
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.banky-th-updated { text-align: center; white-space: nowrap; }
.banky-td-updated {
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-muted);
}
.banky-table-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    background: #fff;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.banky-table-logo-lg {
    width: 48px;
    height: 48px;
}
.banky-table-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto;
}
.banky-table-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}
.banky-table-link:hover { color: var(--accent); text-decoration: underline; }
.banky-table-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}
/* Kurs table colour hints */
.banky-th-buy, .banky-td-buy  { color: #2a7a2a; }
.banky-th-sell, .banky-td-sell { color: #c0392b; }

/* ===== Nav dropdown (Banks submenu) ===== */
.main-menu > li.has-dropdown {
    position: relative;
}
.main-menu > li.has-dropdown > a::after {
    content: ' ▾';
    font-size: 13px;
    opacity: .7;
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #1a1a2e;
    border-top: 2px solid var(--accent);
    border-radius: 0 0 6px 6px;
    list-style: none;
    padding: 4px 0;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.nav-dropdown li a {
    display: block;
    padding: 9px 18px;
    color: rgba(255,255,255,.85) !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .12s, color .12s;
}
.nav-dropdown li a:hover {
    background: var(--accent);
    color: #fff !important;
}
.main-menu > li.has-dropdown:hover .nav-dropdown,
.main-menu > li.has-dropdown:focus-within .nav-dropdown {
    display: block;
}
@media (max-width: 768px) {
    .nav-dropdown {
        position: static;
        display: block;
        border-top: none;
        border-left: 3px solid var(--accent);
        background: rgba(0,0,0,.15);
        box-shadow: none;
        border-radius: 0;
    }
    .main-menu > li.has-dropdown > a::after { content: ''; }
}

/* ===== Bank NBU status badges ===== */
.banky-stan-badge { margin-left: 4px; }
.stan-active       { background: #2e7d32; color: #fff; }
.stan-liquidation  { background: #c62828; color: #fff; }
.stan-revoked      { background: #6d4c41; color: #fff; }
.stan-reorganization { background: #ef6c00; color: #fff; }

/* ===== Bank view — stats bar ===== */
.banky-view-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.banky-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 20px 0 4px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}
.banky-stat {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 16px;
    border-right: 1px solid var(--border-color);
    text-align: center;
}
.banky-stat:last-child { border-right: none; }
.banky-stat-value {
    font-size: 23px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}
.banky-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.banky-stats-date {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px;
    text-align: right;
}

/* ===== Bank view — footer ===== */
.banky-view-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.banky-view-subnav {
    display: flex;
    gap: 12px;
}
.banky-view-subnav a {
    font-size: 15px;
    color: var(--accent);
    text-decoration: none;
}
.banky-view-subnav a:hover { text-decoration: underline; }

.banky-card-badges { display: flex; flex-wrap: wrap; gap: 4px; }

/* ── NBU Indicators bar ────────────────────────────────────────── */
.nbu-indicators-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 12px 0 20px;
}
.nbu-indicator {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    min-width: 160px;
}
.nbu-ind-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.nbu-ind-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}
.nbu-ind-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Currency converter ────────────────────────────────────────── */
.currency-converter {
    margin: 28px 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
}
.currency-converter h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.conv-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.conv-input {
    width: 120px;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg);
    color: var(--text-primary);
}
.conv-select {
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg);
    color: var(--text-primary);
}
.conv-eq { font-size: 16px; color: var(--text-muted); }
.conv-result {
    font-size: 23px;
    font-weight: 700;
    color: var(--accent);
}
.conv-unit { font-size: 16px; color: var(--text-muted); }
.conv-note { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }

/* ── Rate history ──────────────────────────────────────────────── */
.currency-history { margin: 28px 0; }
.currency-history h2 { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.currency-history-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.cur-hist-tab {
    padding: 6px 18px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--card-bg);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    transition: background .15s, color .15s, border-color .15s;
}
.cur-hist-tab.active, .cur-hist-tab:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.cur-hist-hidden { display: none; }

/* ── Crypto table ──────────────────────────────────────────────── */
.crypto-table { width: 100%; }
.crypto-th-num { width: 48px; text-align: center; }
.crypto-td-num { width: 48px; font-size: 15px; color: var(--text-muted); text-align: center; }
.crypto-td-name { display: flex; flex-direction: column; gap: 2px; }
.crypto-code { font-weight: 700; font-size: 16px; }
.crypto-name { font-size: 13px; color: var(--text-muted); }
.crypto-td-price { font-weight: 600; }
.crypto-up   { color: #2a7a2a; font-weight: 600; }
.crypto-down { color: #c0392b; font-weight: 600; }
.crypto-th-mcap { min-width: 110px; }
@media (max-width: 640px) {
    .crypto-th-mcap, .banky-table td:last-child { display: none; }
}

/* ── Crypto converter ──────────────────────────────────────────── */
.crypto-converter {
    margin: 28px 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
}
.crypto-converter h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.crypto-conv-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.crypto-conv-input, .crypto-conv-select {
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg);
    color: var(--text-primary);
}
.crypto-conv-input { width: 100px; }
.crypto-conv-eq, .crypto-conv-sep, .crypto-conv-unit { color: var(--text-muted); font-size: 16px; }
.crypto-conv-result-uah, .crypto-conv-result-usd {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

/* ── Fear & Greed index colors ─────────────────────────────────── */
.fear-greed-value { font-size: 18px; font-weight: 700; }
.fg-extreme-fear  { color: #c0392b; }
.fg-fear          { color: #e67e22; }
.fg-neutral       { color: #f39c12; }
.fg-greed         { color: #27ae60; }
.fg-extreme-greed { color: #1a7a40; }

/* ── Crypto asset link ─────────────────────────────────────────── */
.crypto-asset-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}
.crypto-asset-link:hover .crypto-code { color: var(--accent); }

/* ── Crypto code badge (coin view h1) ──────────────────────────── */
.crypto-code-badge {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-light, #f5f5f5);
    border-radius: 6px;
    padding: 2px 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Crypto stats grid (coin view) ────────────────────────────── */
.crypto-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.crypto-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
}
.crypto-stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.crypto-stat-value { font-size: 23px; font-weight: 700; color: var(--text-primary); }

/* ── Full crypto converter page ───────────────────────────────── */
.crypto-conv-full-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}
.conv-full-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.conv-full-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; display: block; }
.conv-full-input {
    width: 130px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg);
    color: var(--text-primary);
}
.conv-full-select {
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg);
    color: var(--text-primary);
    min-width: 200px;
}
.conv-full-arrow { font-size: 23px; color: var(--text-muted); padding-bottom: 4px; }
.conv-full-result-wrap { margin-top: 20px; display: flex; align-items: baseline; gap: 10px; }
.conv-full-result {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}
.conv-full-result-code { font-size: 18px; color: var(--text-muted); }
.conv-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
@media (max-width: 640px) {
    .conv-full-row { flex-direction: column; align-items: flex-start; }
    .conv-full-input, .conv-full-select { width: 100%; }
    .crypto-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Home currency converter ===== */
.home-converter {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(18, 32, 48, 0.06);
}

.home-converter-grid {
    display: grid;
    grid-template-columns: minmax(170px, 190px) minmax(240px, 1fr) minmax(220px, 260px);
    gap: 14px;
    align-items: end;
}

.home-converter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-converter-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.home-converter .home-converter-input,
.home-converter .home-converter-select {
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.home-converter .home-converter-input {
    font-size: 22px;
    font-weight: 700;
}

.home-converter .home-converter-select {
    font-size: 16px;
    font-weight: 500;
    min-width: 0;
}

.home-converter .home-converter-input:focus,
.home-converter .home-converter-select:focus {
    outline: none;
    background: #fff;
    border-color: rgba(18, 140, 126, 0.5);
    box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.10);
}

.home-converter-result-card {
    min-height: 54px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #d7dde5;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-converter-result-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.hc-result-value {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.home-converter-result-unit {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
}

.home-converter-result-caption {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.home-converter .conv-note {
    margin: 12px 2px 0;
}

@media (max-width: 900px) {
    .home-converter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-converter-result-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .home-converter {
        padding: 16px;
        border-radius: 16px;
    }

    .home-converter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-converter .home-converter-input {
        font-size: 20px;
    }

    .hc-result-value {
        font-size: 26px;
    }
}

/* ===== Readability refinements (v31) ===== */
/* Ensure table cells are never below 15px */
table td, table th { font-size: 15px; }
/* Crypto sub-name and stat labels stay intentionally smaller */
.crypto-name    { font-size: 13px; }
.crypto-stat-label { font-size: 13px; }
.bv-stat-label  { font-size: 13px; }
.bv-rate-label  { font-size: 13px; }
.bv-detail-label{ font-size: 14px; }
.bv-detail-value{ font-size: 15px; }
/* Footnotes & hints stay small */
.conv-note, .banky-table-note, .bv-stats-note, .bv-rate-date,
.banky-stats-date, .currency-update-date { font-size: 13px; }
/* Nav dropdown stays readable but compact */
.nav-dropdown li a { font-size: 14px; }
/* Blog excerpt */
.blog-item-excerpt { font-size: 15px; line-height: 1.6; }
/* Credit card params */
.credit-mini-param-label { font-size: 13px; }
.credit-mini-param-value { font-size: 15px; }

.blog-related-section {
    margin-top: 36px;
    padding-top: 10px;
}

.blog-related-header {
    margin-bottom: 18px;
}

.blog-related-list {
    margin-top: 0;
}

/* ===== Bank detail page — full card (light theme) ===== */
.bv-card {
    margin: 0 auto;
    padding: 0 0 40px;
}

/* ── Hero ── */
.bv-hero {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}
.bv-hero-logo {
    flex-shrink: 0;
    width: 130px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    padding: 8px;
}
.bv-logo-img {
    max-width: 114px;
    max-height: 64px;
    object-fit: contain;
}
.bv-logo-initials {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    width: 100%;
    text-align: center;
}
.bv-hero-info { flex: 1; min-width: 0; }
.bv-name {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 5px;
    line-height: 1.25;
}
.bv-fullname {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 14px;
}
.bv-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bv-website-btn {
    display: inline-block;
    font-size: 14px;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 6px 16px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.bv-website-btn:hover { background: var(--accent); color: #fff; }

/* ── Stats grid ── */
.bv-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 6px;
}
.bv-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
}
.bv-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 5px;
}
.bv-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.bv-stats-note {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0 24px;
}

/* ── Sections ── */
.bv-section { margin-bottom: 28px; }
.bv-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

/* ── Exchange rate cards ── */
.bv-rates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.bv-rate-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 26px;
    min-width: 150px;
    box-shadow: var(--card-shadow);
}
.bv-rate-code {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}
.bv-rate-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 15px;
    margin-bottom: 5px;
}
.bv-rate-label { color: var(--text-muted); }
.bv-rate-val   { font-weight: 600; color: var(--text); }
.bv-rate-date  { font-size: 13px; color: var(--text-muted); margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }

/* ── Detail rows ── */
.bv-details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.bv-detail-row {
    display: flex;
    gap: 16px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    align-items: baseline;
}
.bv-detail-row:last-child { border-bottom: none; }
.bv-detail-row:nth-child(even) { background: #f8f9fa; }
.bv-detail-label {
    min-width: 170px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.bv-detail-value {
    color: var(--text);
    font-size: 15px;
}
.bv-detail-value code {
    font-family: monospace;
    font-size: 14px;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text);
}
.bv-detail-value a { color: var(--accent); text-decoration: none; }
.bv-detail-value a:hover { text-decoration: underline; }

/* ── Description ── */
.bv-description {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 22px 26px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    box-shadow: var(--card-shadow);
}

/* ── Footer nav ── */
.bv-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}
.bv-subnav { display: flex; gap: 16px; flex-wrap: wrap; }
.bv-subnav a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
}
.bv-subnav a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .bv-hero { flex-direction: column; gap: 16px; padding: 20px; }
    .bv-hero-logo { width: 100px; height: 64px; }
    .bv-name { font-size: 18px; }
    .bv-stats-grid { grid-template-columns: 1fr 1fr; }
    .bv-detail-row { flex-direction: column; gap: 3px; padding: 12px 16px; }
    .bv-detail-label { min-width: unset; }
    .bv-footer-nav { flex-direction: column; align-items: flex-start; }
}

/* ─── Contact page ──────────────────────────────────────────────────────── */
.contact-wrap {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 640px;
    margin: 0 0 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.contact-alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 15px;
}
.contact-alert-success {
    background: #e6f4ea;
    color: #1e6b3a;
    border: 1px solid #b7dfc4;
}
.contact-alert-error {
    background: #fde8ea;
    color: #9b1c2a;
    border: 1px solid #f5b8be;
}
.contact-field { margin-bottom: 18px; }
.contact-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.contact-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}
.contact-input:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-textarea { resize: vertical; min-height: 130px; }
.contact-error {
    display: block;
    color: var(--accent);
    font-size: 13px;
    margin-top: 4px;
}
.contact-submit { margin-top: 8px; }
.contact-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.contact-btn:hover { background: var(--accent-dark); }
@media (max-width: 600px) {
    .contact-wrap { padding: 20px; }
    .contact-btn { width: 100%; text-align: center; }
}
