.page-hero {
    text-align: center;
    padding: 3rem 1.5rem 2rem
}

.page-hero .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px 5px 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink2);
    margin-bottom: 1.4rem
}

.page-hero .hero-pill-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff
}

.page-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -1px;
    margin-bottom: .8rem
}

.page-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.page-hero p {
    font-size: .95rem;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7
}

.tool-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem
}

/* MAIN CONVERTER CARD */
.converter-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 16px
}

.rate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 20px
}

.rate-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #48C9B0;
    animation: pulse 1.5s ease infinite;
    flex-shrink: 0
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}

/* Amount Input */
.conv-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px
}

.conv-field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.conv-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted)
}

.conv-input-wrap {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s
}

.conv-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 79, 233, .1)
}

.amount-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    padding: 14px 16px;
    text-align: right
}

.currency-select-wrap {
    padding: 0 14px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border)
}

.flag {
    font-size: 18px
}

.currency-select {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink2);
    cursor: pointer;
    flex: 1
}

/* Swap button */
.swap-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all .15s;
    flex-shrink: 0;
    margin-top: 22px
}

.swap-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: rotate(180deg)
}

/* Result display */
.result-display {
    background: linear-gradient(135deg, var(--primary-light), rgba(168, 85, 247, .08));
    border: 1.5px solid rgba(91, 79, 233, .2);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    display: none
}

.result-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Fira Code', monospace;
    margin-bottom: 4px
}

.result-rate {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500
}

.result-rate strong {
    color: var(--ink2)
}

/* Quick amounts */
.quick-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px
}

.quick-btn {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink2);
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all .15s
}

.quick-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light)
}

/* POPULAR PAIRS */
.pairs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px
}

.pair-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 13px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all .15s
}

.pair-card:hover {
    border-color: var(--primary);
    box-shadow: 0 3px 14px rgba(91, 79, 233, .08);
    transform: translateY(-2px)
}

.pair-from {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em
}

.pair-rate {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    font-family: 'Fira Code', monospace;
    margin: 3px 0
}

.pair-name {
    font-size: 11px;
    color: var(--muted)
}

/* MULTI CURRENCY TABLE */
.multi-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px
}

.multi-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.multi-head-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted)
}

.multi-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    transition: background .1s
}

.multi-row:last-child {
    border-bottom: none
}

.multi-row:hover {
    background: var(--bg)
}

.multi-left {
    display: flex;
    align-items: center;
    gap: 10px
}

.multi-flag {
    font-size: 20px
}

.multi-code {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink)
}

.multi-name {
    font-size: 11px;
    color: var(--muted)
}

.multi-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Fira Code', monospace
}

/* SEC HEADER */
.sec-hd {
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
    gap: 8px
}

.sec-hd::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border)
}

/* FAQ */
.faq-box {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem
}

.faq-item {
    border-bottom: 1px solid var(--border)
}

.faq-item:last-child {
    border-bottom: none
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    font-size: .875rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: background .12s
}

.faq-q:hover {
    background: var(--bg)
}

.faq-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s
}

.faq-icon svg {
    width: 11px;
    height: 11px;
    color: var(--muted);
    transition: transform .2s
}

.faq-item.open .faq-q {
    color: var(--primary)
}

.faq-item.open .faq-icon {
    background: var(--primary-light);
    border-color: var(--primary)
}

.faq-item.open .faq-icon svg {
    color: var(--primary);
    transform: rotate(180deg)
}

.faq-a {
    font-size: .855rem;
    color: var(--ink2);
    line-height: 1.85;
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding: 0 18px 14px
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
    z-index: 999
}

.toast-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2EC99A
}

.toast.show {
    transform: translateX(-50%) translateY(0)
}

@media(max-width:640px) {
    .conv-row {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .swap-btn {
        margin: 0 auto;
        transform: rotate(90deg)
    }

    .swap-btn:hover {
        transform: rotate(270deg)
    }

    .pairs-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:420px) {
    .pairs-grid {
        grid-template-columns: 1fr
    }
}