.bkam-mad-home {
    --bkam-ink: #17212b;
    --bkam-soft-ink: #34495e;
    --bkam-muted: #6d7b8a;
    --bkam-line: #e4e9ef;
    --bkam-line-strong: #ccd7e2;
    --bkam-green: #0a7a50;
    --bkam-green-dark: #075b42;
    --bkam-red: #c5353e;
    --bkam-orange: #f28c28;
    --bkam-blue: #245a86;
    --bkam-paper: #ffffff;
    --bkam-soft: #f4f7fa;
    --bkam-panel: #fbfcfd;
    color: var(--bkam-ink);
    direction: rtl;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    letter-spacing: 0;
    margin: 0 calc(50% - 50vw);
    overflow-x: hidden;
    width: 100vw;
}

.bkam-mad-home *,
.bkam-mad-home *::before,
.bkam-mad-home *::after {
    box-sizing: border-box;
}

.bkam-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 22px;
}

.bkam-hero {
    background:
        linear-gradient(90deg, rgba(3, 36, 34, 0.92), rgba(12, 37, 66, 0.78)),
        url("../img/currency-hero.jpg") center / cover no-repeat;
    color: #ffffff;
    padding: 56px 0 42px;
}

.bkam-hero__grid {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    min-height: 610px;
}

.bkam-kicker {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 18px;
    min-height: 36px;
    padding: 7px 12px;
}

.bkam-kicker--light {
    border-color: var(--bkam-line);
    color: var(--bkam-blue);
    margin-bottom: 10px;
}

.bkam-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.22;
    margin: 0 0 18px;
    max-width: 720px;
}

.bkam-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 2;
    margin: 0;
    max-width: 640px;
}

.bkam-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.bkam-trust span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    min-height: 36px;
    padding: 7px 12px;
}

.bkam-converter {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(6, 20, 38, 0.28);
    color: var(--bkam-ink);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    padding: 22px;
}

.bkam-operation {
    background: var(--bkam-soft);
    border: 1px solid var(--bkam-line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    padding: 8px;
}

.bkam-operation label {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 18px minmax(0, 1fr);
    min-height: 66px;
    padding: 10px;
}

.bkam-operation input {
    accent-color: var(--bkam-green);
    margin-top: 5px;
}

.bkam-operation span {
    color: var(--bkam-ink);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.45;
}

.bkam-operation small {
    color: var(--bkam-muted);
    font-size: 0.8rem;
    grid-column: 2;
    line-height: 1.55;
}

.bkam-operation label:has(input:checked) {
    border-color: rgba(10, 122, 80, 0.36);
    box-shadow: 0 0 0 3px rgba(10, 122, 80, 0.08);
}

.bkam-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.bkam-field--amount {
    grid-column: 1 / -1;
}

.bkam-field label {
    color: var(--bkam-soft-ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.bkam-field input,
.bkam-field select {
    background: #ffffff;
    border: 1px solid var(--bkam-line-strong);
    border-radius: 8px;
    color: var(--bkam-ink);
    font: inherit;
    height: 54px;
    outline: none;
    padding: 0 14px;
    width: 100%;
}

.bkam-field input:focus,
.bkam-field select:focus {
    border-color: var(--bkam-green);
    box-shadow: 0 0 0 3px rgba(10, 122, 80, 0.12);
}

.bkam-swap {
    align-self: end;
    background: #ffffff;
    border: 1px solid var(--bkam-line-strong);
    border-radius: 8px;
    color: var(--bkam-green);
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 800;
    height: 54px;
    line-height: 1;
    width: 54px;
}

.bkam-submit {
    background: var(--bkam-green);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    grid-column: 1 / -1;
    min-height: 56px;
    padding: 12px 18px;
}

.bkam-submit:hover,
.bkam-swap:hover,
.bkam-range button:hover,
.bkam-quick__grid button:hover {
    filter: brightness(0.97);
}

.bkam-result {
    background: linear-gradient(135deg, #f7fbf9, #ffffff);
    border: 1px solid var(--bkam-line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-column: 1 / -1;
    min-height: 118px;
    padding: 18px;
}

.bkam-result__label,
.bkam-result small {
    color: var(--bkam-muted);
    font-size: 0.9rem;
}

.bkam-result strong {
    color: var(--bkam-green-dark);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.bkam-meta {
    align-items: center;
    color: var(--bkam-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.88rem;
    gap: 10px 16px;
    grid-column: 1 / -1;
    justify-content: space-between;
}

.bkam-meta a {
    color: var(--bkam-blue);
    font-weight: 800;
    text-decoration: none;
}

.bkam-quick,
.bkam-market,
.bkam-content {
    background: #ffffff;
}

.bkam-quick {
    border-bottom: 1px solid var(--bkam-line);
    padding: 34px 0;
}

.bkam-section-head {
    margin-bottom: 18px;
}

.bkam-quick h2,
.bkam-market h2,
.bkam-content h2 {
    color: var(--bkam-ink);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 18px;
}

.bkam-market h2 {
    margin-bottom: 0;
}

.bkam-quick__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bkam-quick__grid button {
    background: var(--bkam-panel);
    border: 1px solid var(--bkam-line);
    border-radius: 8px;
    color: var(--bkam-blue);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    min-height: 50px;
    padding: 10px;
}

.bkam-market {
    background: var(--bkam-soft);
    border-bottom: 1px solid var(--bkam-line);
    padding: 42px 0;
}

.bkam-market__toolbar {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    margin-bottom: 16px;
}

.bkam-range {
    background: #ffffff;
    border: 1px solid var(--bkam-line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 6px;
}

.bkam-range button {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--bkam-soft-ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    min-height: 42px;
    padding: 8px 6px;
}

.bkam-range button.is-active {
    background: var(--bkam-orange);
    color: #ffffff;
}

.bkam-market__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
}

.bkam-chart-panel,
.bkam-table-panel {
    background: #ffffff;
    border: 1px solid var(--bkam-line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(29, 54, 78, 0.08);
    min-width: 0;
    padding: 18px;
}

.bkam-chart-panel__head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bkam-chart-panel h3,
.bkam-table-panel h3 {
    color: var(--bkam-blue);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.bkam-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bkam-legend span {
    align-items: center;
    color: var(--bkam-muted);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 6px;
}

.bkam-legend__dot {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    width: 10px;
}

.bkam-legend__dot--sell {
    background: var(--bkam-orange);
}

.bkam-legend__dot--buy {
    background: #69717a;
}

.bkam-chart {
    background:
        linear-gradient(180deg, rgba(244, 247, 250, 0.74), rgba(255, 255, 255, 0.96));
    border: 1px solid var(--bkam-line);
    border-radius: 8px;
    min-height: 330px;
    overflow: hidden;
}

.bkam-chart svg {
    display: block;
    height: auto;
    width: 100%;
}

.bkam-chart-grid {
    stroke: #d8e0e8;
    stroke-width: 1;
}

.bkam-chart-label,
.bkam-chart-date {
    fill: var(--bkam-soft-ink);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 12px;
}

.bkam-chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.bkam-chart-line--sell {
    stroke: var(--bkam-orange);
}

.bkam-chart-line--buy {
    stroke: #69717a;
}

.bkam-chart-dot {
    stroke: #ffffff;
    stroke-width: 1.5;
}

.bkam-chart-dot--sell {
    fill: var(--bkam-orange);
}

.bkam-chart-dot--buy {
    fill: #69717a;
}

.bkam-empty {
    color: var(--bkam-muted);
    font-size: 0.92rem;
    line-height: 1.8;
    margin: 12px 0 0;
}

.bkam-table-wrap {
    border: 1px solid var(--bkam-line);
    border-radius: 8px;
    margin-top: 14px;
    max-height: 330px;
    overflow: auto;
}

.bkam-table-panel table {
    border-collapse: collapse;
    min-width: 420px;
    width: 100%;
}

.bkam-table-panel th,
.bkam-table-panel td {
    border-bottom: 1px solid var(--bkam-line);
    color: var(--bkam-soft-ink);
    font-size: 0.88rem;
    padding: 11px 12px;
    text-align: right;
    white-space: nowrap;
}

.bkam-table-panel th {
    background: #eef3f7;
    color: var(--bkam-blue);
    font-weight: 800;
    position: sticky;
    top: 0;
}

.bkam-table-panel tr:nth-child(even) td {
    background: #fbfcfd;
}

.bkam-content {
    padding: 52px 0 68px;
}

.bkam-content__grid {
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
}

.bkam-content article {
    min-width: 0;
}

.bkam-content p {
    color: var(--bkam-soft-ink);
    font-size: 1rem;
    line-height: 2.05;
    margin: 0 0 16px;
}

.bkam-content details {
    border-bottom: 1px solid var(--bkam-line);
    padding: 15px 0;
}

.bkam-content summary {
    color: var(--bkam-ink);
    cursor: pointer;
    font-weight: 800;
}

.bkam-content details p {
    color: var(--bkam-muted);
    margin-top: 10px;
}

@media (max-width: 1040px) {
    .bkam-hero__grid,
    .bkam-market__grid,
    .bkam-content__grid {
        grid-template-columns: 1fr;
    }

    .bkam-hero__grid {
        min-height: auto;
    }

    .bkam-market__toolbar {
        grid-template-columns: 1fr;
    }

    .bkam-quick__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .bkam-shell {
        padding: 0 14px;
    }

    .bkam-hero {
        padding: 38px 0 30px;
    }

    .bkam-hero h1 {
        font-size: 2rem;
    }

    .bkam-lead {
        font-size: 1rem;
    }

    .bkam-converter {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .bkam-operation,
    .bkam-range {
        grid-template-columns: 1fr;
    }

    .bkam-swap {
        justify-self: stretch;
        width: 100%;
    }

    .bkam-result strong {
        font-size: 1.52rem;
    }

    .bkam-quick__grid {
        grid-template-columns: 1fr 1fr;
    }

    .bkam-chart-panel,
    .bkam-table-panel {
        padding: 14px;
    }
}

@media (max-width: 440px) {
    .bkam-quick__grid {
        grid-template-columns: 1fr;
    }
}
