/* صفحات حاسبة العملات (/convert) — بهوية الموقع: DroidKufi و Bootstrap 5 والألوان الحالية */

.convert-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: rgba(0, 17, 51, .07) 0 3px 15px;
    padding: 16px;
}

.convert-box {
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8faff;
}

.convert-box-to {
    background: var(--bl-calculator-bg, #025899);
    border-color: transparent;
    color: #fff;
}

.convert-label {
    display: block;
    font-size: 13px;
    opacity: .75;
    margin-bottom: 4px;
}

.convert-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.convert-amount,
.convert-result {
    flex: 1;
    min-width: 0;
    font-size: clamp(1.6rem, 7vw, 2.3rem);
    font-weight: 700;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    text-align: start;
}

.convert-amount {
    border: 0;
    background: transparent;
    color: #0f172a;
    padding: 0;
    outline: none;
    width: 100%;
}

.convert-result {
    overflow-wrap: anywhere;
}

.convert-currency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    border: 1px solid #d9e0ec;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    padding: 6px 12px;
    font-size: 15px;
}

.convert-currency img {
    border-radius: 50%;
}

.convert-currency-static {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.convert-name {
    font-size: 13px;
    margin-top: 2px;
    opacity: .8;
}

.convert-swap-row {
    display: flex;
    justify-content: center;
    margin: -8px 0;
    position: relative;
    z-index: 1;
}

.convert-swap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #0194fe;
    color: #fff;
    box-shadow: rgba(0, 17, 51, .15) 0 2px 8px;
}

.convert-swap:hover,
.convert-swap:focus-visible {
    background: #0037a6;
}

.convert-rate-line {
    text-align: center;
    margin: 14px 0 10px;
    font-weight: 700;
    color: #2f4f4f;
}

/* القايمة المنسدلة: علم ورمز واسم، ومربع بحث فوق */
.convert-menu {
    width: min(320px, calc(100vw - 32px));
    padding-top: 8px;
}

.convert-menu-list {
    max-height: 320px;
    overflow-y: auto;
}

.convert-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: normal;
    padding: 6px 12px;
}

.convert-menu .dropdown-item img {
    border-radius: 50%;
    flex-shrink: 0;
}

.convert-menu .dropdown-item span {
    font-size: 13px;
    opacity: .75;
}

.convert-menu .dropdown-item.active span {
    opacity: 1;
}

/* أعلى بنك + جدول البنوك */
.convert-banks {
    margin-top: 24px;
}

.convert-top {
    background: #ecfdf5;
    color: #065f46;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.convert-no-banks {
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    padding: 10px 14px;
}

.convert-table-wrap {
    border: 1px solid #eceef4;
    border-radius: 10px;
    overflow-x: auto;
}

.convert-table {
    font-size: 15px;
}

/* كل الخلايا والعناوين بمحاذاة اتجاه الصفحة: يمين في العربي وشمال في الإنجليزي */
.convert-table th,
.convert-table td {
    text-align: start;
}

.convert-table thead th {
    background: #eceef4;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.convert-table td {
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

/* الأرقام بنفس ارتفاع سطر اللوجو (28px) عشان الصف كله يبقى على خط واحد */
.convert-table td > span {
    display: inline-block;
    line-height: 28px;
}

.convert-bank span {
    line-height: 1.5;
}

.convert-table td:first-child {
    min-width: 9rem;
}

.convert-bank {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    text-decoration: none;
}

.convert-bank:hover span {
    color: #0037a6;
    text-decoration: underline;
}

.convert-bank img {
    border-radius: 6px;
    flex-shrink: 0;
}

/* main-app.css فيه p{text-align:left} للموقع كله، فالفقرات هنا بترجع لاتجاه الصفحة:
   يمين في العربي وشمال في الإنجليزي */
.convert-summary p,
.convert-top,
.convert-no-banks {
    text-align: start;
}

/* الفقرة والروابط */
.convert-summary {
    margin-top: 24px;
    line-height: 1.9;
    color: #334155;
}

.convert-links {
    margin-top: 24px;
}

.convert-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.convert-chips a {
    border: 1px solid #d9e0ec;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 14px;
    text-decoration: none;
    direction: ltr;
}

.convert-others {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px 12px;
}

.convert-others a,
.convert-others button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 14px;
    text-decoration: none;
    min-width: 0;
}

.convert-others a span,
.convert-others button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #475569;
}

.convert-others [aria-current] {
    font-weight: 700;
}

.convert-others img {
    border-radius: 50%;
    flex-shrink: 0;
}

/* عملات المستوى C في "باقي العملات": زرار بشكل اللينك بالظبط (الانتقال بالـ JS) */
.convert-others button {
    width: 100%;
    border: 0;
    background: none;
    color: var(--bs-link-color, #0d6efd);
    text-align: start;
    cursor: pointer;
}

.convert-others button:hover span,
.convert-others a:hover span {
    text-decoration: underline;
}

.convert-region {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin: 16px 0 8px;
}

.convert-rate-line [data-role="inverse-line"] {
    font-weight: 400;
    font-size: 14px;
    margin-top: 2px;
}

.convert-updated {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin: -4px 0 10px;
}

.convert-quick {
    margin-top: 24px;
}
