/**
 * Symbols, Currencies & Gold Components Styling (Consolidated & Compact)
 */

/* ── 1. Symbol Archive Table (.sat-*) ───────────────────────────────────── */
.sat-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem 1rem; direction: rtl; }
@media (min-width: 992px) {
    .sat-grid { grid-template-columns: repeat(2, 1fr); }
    .sat-grid.sat-grid--single { grid-template-columns: 1fr; }
}

.sat-category-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}
.sat-category-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0.25rem 0 1.25rem;
    text-align: center;
}
.sat-category-title::before { display: none !important; }

.sat-table-wrap { overflow-x: auto; flex: 1; }
.sat-table { width: 100%; border-collapse: collapse; text-align: right; font-size: 0.85rem; margin: 0; }
.sat-table th {
    font-size: 0.75rem;
    color: #64748b;
    padding: 0.6rem 0.75rem;
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid #f1f5f9 !important;
    white-space: nowrap;
}
.sat-table th:first-child { text-align: right; }
.sat-table th:nth-child(2),
.sat-table th:nth-child(3),
.sat-table td.sat-price,
.sat-table td.sat-change-cell { text-align: center; }

.sat-table td {
    padding: 0.4rem;
    border: 1px solid #f1f5f9 !important;
    color: #334155;
    vertical-align: middle;
}
.sat-table tbody tr { transition: background 0.3s ease; }
.sat-table tbody tr:hover { background: #f8fafc; }

.sat-pulse-up   { animation: scf-pulse-up 1s ease-out; }
.sat-pulse-down { animation: scf-pulse-down 1s ease-out; }

.sat-item-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
    color: #0f172a;
    font-weight: 600;
    transition: color 0.2s;
}
.sat-item-link:hover { color: #3b82f6; }

.sat-icon, .ss-icon-img, .cc-widget__icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid rgba(128, 128, 128, 0.11) !important;
}
.sat-icon--gold, .ss-icon-img--gold, .cc-widget__icon--gold {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none !important;
}
.sat-icon--no-radius, .ss-icon-img--no-radius, .cc-widget__icon--no-radius {
    border-radius: 0 !important;
}

.sat-price {
    font-weight: 700;
    font-family: monospace, inherit;
    font-size: 0.92rem;
    color: #0f172a;
}
.sat-change-cell { white-space: nowrap; }

.sat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    direction: ltr;
    white-space: nowrap;
}
.sat-badge--up      { background: #dcfce7; color: #15803d; }
.sat-badge--down    { background: #fee2e2; color: #b91c1c; }
.sat-badge--neutral { background: #f1f5f9; color: #64748b; }

.sat-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}
.sat-page-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sat-page-btn:hover { border-color: #cbd5e1; background: #f8fafc; color: #0f172a; }
.sat-page-btn.is-active { background: #3b82f6; border-color: #3b82f6; color: #ffffff; }
.sat-category-box[data-type="gold"] .sat-page-btn.is-active { background: #d97706; border-color: #d97706; }
.sat-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 768px) {
    .sat-category-box { padding: 0.75rem 0.35rem !important; border-radius: 12px !important; }
    .sat-category-title { font-size: 0.98rem !important; margin-bottom: 0.75rem !important; }
    .sat-table th { font-size: 0.68rem !important; padding: 0.4rem 0.25rem !important; }
    .sat-table td { padding: 0.35rem 0.2rem !important; }
    .sat-item-link { gap: 0.25rem !important; font-size: 0.73rem !important; white-space: nowrap !important; }
    .sat-price { font-size: 0.75rem !important; padding: 0 0.15rem !important; white-space: nowrap !important; }
    .sat-badge { font-size: 0.65rem !important; padding: 0.2rem 0.3rem !important; border-radius: 4px !important; }
    .sat-icon { width: 16px !important; height: 11px !important; }
    .sat-icon--gold { width: 16px !important; height: 16px !important; }
}

/* ── 2. Homepage Currency Card & Chart Component (.ncc*) ─────────────────── */
.ncc {
    background: #fff;
    border-radius: 2rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}
.ncc__chart table, .ncc__chart td { border: unset; }
.ncc_data { display: flex; justify-content: space-between; align-items: start; }
.ncc__header { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; margin-bottom: 1.75rem; }
.ncc__title { font-size: 1.0625rem; font-weight: 700; color: #111827; margin: 0; line-height: 1.3; }
.ncc__title a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.ncc__title a:hover { opacity: 0.8; }
.ncc__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background: #f9f9f9;
    border: 1px solid #ececec;
    color: #555;
    flex-shrink: 0;
}
.ncc__price-row { display: flex; align-items: flex-end; justify-content: flex-end; gap: 0.5rem; margin-bottom: 0.25rem; }
.ncc__unit { font-size: 1.0625rem; color: #888; font-weight: 500; padding-bottom: 0.5rem; }
.ncc__price { font-size: 3.5rem; font-weight: 900; color: #0A1128; letter-spacing: -0.02em; line-height: 1; }
.ncc__change-row { display: flex; justify-content: flex-end; margin-bottom: 1.75rem; }
.ncc__change { display: flex; align-items: center; gap: 0.2rem; font-size: 1.0625rem; font-weight: 700; color: #10b981; }
.ncc__change--down { color: #ef4444; }
.ncc__change-arrow { flex-shrink: 0; }
.ncc__chart-wrap { position: relative; width: 100%; height: 6.5rem; margin-bottom: 1.75rem; }
.ncc__chart { width: 100%; height: 100%; cursor: crosshair; }
.ncc__tooltip {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.4rem 0.7rem;
    background: #0A1128;
    color: #fff;
    border-radius: 0.625rem;
    font-size: 0.75rem;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(10, 17, 40, 0.25);
}
.ncc__tooltip[hidden], .ncc__chart-loader[hidden] { display: none; }
.ncc__tooltip-date  { color: #9ca3af; font-weight: 500; }
.ncc__tooltip-price { font-weight: 700; }
.ncc__chart-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    pointer-events: none;
    z-index: 1;
}
.ncc__periods { display: flex; gap: 0.625rem; justify-content: space-between; }
.ncc__period {
    flex: 1;
    padding: 0.625rem 0;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 1rem;
    border: 1px solid #ececec;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
    line-height: 1;
}
.ncc__period:hover:not(.ncc__period--active) { background: #f5f5f5; color: #555; }
.ncc__period--active { background: #0A1128; color: #fff; border-color: #0A1128; box-shadow: 0 2px 10px rgba(10, 17, 40, 0.22); }
.ncc__period:disabled { opacity: 0.45; cursor: default; }

@media (max-width: 960px) {
    .ncc_data { flex-direction: column; align-items: center; }
    .ncc__change-row { justify-content: center; }
}

/* ── 3. Currency Live Price Component (.clp*) ────────────────────────────── */
.clp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border-radius: 0.875rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid #eef0f2;
    font-family: inherit;
    box-sizing: border-box;
    min-width: 340px;
    position: relative;
}
.clp__title-container { position: relative; display: inline-block; }
.clp__title-h1 { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.clp__title-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 0.7rem;
    cursor: pointer;
    font-family: inherit;
    color: #0a1128;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
    text-align: right;
}
.clp__title-btn:hover, .clp__title-btn:focus-visible { background: #f1f5f9; border-color: #cbd5e1; }
.clp__title-container.is-open .clp__title-btn { background: #ffffff; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.clp__title-icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; }
.clp-icon { object-fit: contain; border-radius: 50%; }
.clp-icon--no-radius { border-radius: 2px; }
.clp__title-content { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.clp__title-main { font-size: 0.85rem; font-weight: 700; color: #0a1128; white-space: nowrap; }
.clp__title-sub { font-size: 0.6875rem; color: #64748b; font-weight: 500; white-space: nowrap; direction: ltr; }
.clp__title-chevron { color: #64748b; flex-shrink: 0; transition: transform 0.2s ease; margin-right: 0.125rem; }
.clp__title-container.is-open .clp__title-chevron { transform: rotate(180deg); color: #3b82f6; }

.clp__dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 270px;
    max-width: 90vw;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    box-sizing: border-box;
}
.clp__title-container.is-open .clp__dropdown-menu { display: flex; }
.clp__search-wrap { position: relative; margin-bottom: 0.5rem; }
.clp__search-input {
    width: 100% !important;
    padding: 0.45rem 2rem 0.45rem 0.625rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.78125rem !important;
    font-family: inherit !important;
    outline: none !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    transition: all 0.2s !important;
    height: auto !important;
    line-height: 1.4 !important;
}
.clp__search-input:focus { background: #ffffff !important; border-color: #3b82f6 !important; }
.clp__search-icon { position: absolute; right: 0.625rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.clp__dropdown-list { max-height: 260px; overflow-y: auto; scrollbar-width: thin; padding-left: 2px; }
.clp__cat-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 0.375rem 0.5rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px dashed #f1f5f9;
    margin-bottom: 0.25rem;
}
.clp__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none !important;
    color: #334155 !important;
    transition: background 0.15s ease;
    font-size: 0.8125rem;
    gap: 0.5rem;
}
.clp__item:hover { background: #f1f5f9; color: #0f172a !important; }
.clp__item.is-active { background: #eff6ff; color: #2563eb !important; font-weight: 700; }
.clp__item-main { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.clp__item-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.clp__item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clp__item-ticker { font-size: 0.72rem; color: #94a3b8; direction: ltr; font-weight: 500; flex-shrink: 0; }
.clp__item.is-active .clp__item-ticker { color: #3b82f6; }
.clp__no-results { padding: 1rem 0.5rem; text-align: center; font-size: 0.8125rem; color: #94a3b8; }

.clp__price-box { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.clp__price-top { display: flex; align-items: center; gap: 0.5rem; line-height: 1; }
.clp__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    animation: scf-pulse 2s infinite;
}
.clp__live-dot--off { background: #d1d5db; animation: none; }
.clp__price { font-size: 1.75rem; font-weight: 900; color: #0a1128; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; transition: color 0.3s; }
.clp__price--flash-up   { color: #10b981; }
.clp__price--flash-down { color: #ef4444; }

.clp__change-badge-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.clp__change-period { font-size: 0.7rem; color: #94a3b8; font-weight: 500; line-height: 1; }
.clp__change { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.8125rem; font-weight: 700; color: #10b981; line-height: 1; direction: ltr; }
.clp__change--down { color: #ef4444; }
.clp__change-arrow { flex-shrink: 0; transition: transform 0.2s ease; }
.clp__change--down .clp__change-arrow { transform: rotate(180deg); }
.clp__price-bottom { display: flex; align-items: center; gap: 0.25rem; font-size: 0.8125rem; color: #64748b; font-weight: 500; padding-left: 1rem; }
.clp__change-toman { font-weight: 600; }
.clp__unit { font-size: 0.8125rem; color: #64748b; }

@media (max-width: 768px) {
    .clp { min-width: 0; width: 100%; gap: 0.5rem; padding: 0.75rem 0.625rem; }
    .clp__title-btn { gap: 0.35rem; }
    .clp__title-main { font-size: 0.78125rem; }
    .clp__title-sub { font-size: 0.625rem; }
    .clp__dropdown-menu { width: 260px; max-width: 85vw; }
    .clp__price { font-size: 1.35rem; }
}

/* ── 4. Currency Calculator Component (.cc-widget*) ──────────────────────── */
.cc-widget {
    background: #f5f8fc;
    border-radius: 24px;
    padding: 30px;
    font-family: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}
.cc-widget__title { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 24px; color: #1e293b; }
.cc-widget__container { display: flex; flex-direction: column; gap: 16px; position: relative; }
.cc-widget__row {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 8px 16px;
    height: 64px;
    box-sizing: border-box;
    position: relative;
    transition: border-color 0.2s ease;
}
.cc-widget__row:focus-within { border-color: #0fbcf9; }
.cc-widget__select-wrap {
    position: relative;
    flex-shrink: 0;
    border-left: 1px solid #e2e8f0;
    padding-left: 12px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    width: 160px;
    box-sizing: border-box;
}
.cc-widget__select-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 5px;
    border-radius: 8px;
}
.cc-widget__select-btn:hover, .cc-widget__select-btn:focus { background: rgba(128, 128, 128, 0.18); }
.cc-widget__icon-box, .cc-widget__item-icon-box { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cc-widget__name { flex: 1; font-size: 14px; font-weight: 700; color: #0f172a; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-widget__chevron { font-size: 11px; color: #64748b; margin-right: auto; flex-shrink: 0; }
.cc-widget__input {
    border: none;
    background: none;
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    text-align: left;
    padding: 0;
    margin: 0;
    outline: none;
    font-family: monospace;
    direction: ltr;
}
.cc-widget__swap-wrap { display: flex; justify-content: center; position: absolute; right: 28px; top: 48px; z-index: 10; }
.cc-widget__swap-btn {
    background: #00b894;
    color: #ffffff;
    border: 4px solid #f5f8fc;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
    transition: transform 0.3s ease;
}
.cc-widget__swap-btn:hover { transform: rotate(180deg); }
.cc-widget__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    width: 250px;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 8px;
}
.cc-widget__search-wrap { padding: 8px 12px; border-bottom: 1px solid #f1f5f9; position: sticky; top: 0; background: #ffffff; }
.cc-widget__search { width: 100%; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 10px; font-size: 13px; font-family: inherit; outline: none; }
.cc-widget__list { list-style: none; padding: 0; margin: 0; }
.cc-widget__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; transition: background 0.15s ease; }
.cc-widget__item:hover { background: #f8fafc; }
.cc-widget__item-name { font-size: 13px; font-weight: 500; color: #334155; }
.cc-widget__item-code { font-size: 11px; font-weight: 600; color: #94a3b8; margin-right: auto; }
.cc-widget__promo { margin-top: 8px; display: flex; justify-content: center; }
.cc-widget__promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00b894;
    color: #ffffff;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.cc-widget__promo-btn:hover { background: #009c7d; }
.cc-widget__info-panel { background: #ffffff; border-radius: 16px; padding: 20px; margin-top: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01); }
.cc-widget__info-title { text-align: center; font-size: 18px; font-weight: 700; color: #1e293b; margin: 0 0 20px; }
.cc-widget__summary-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.cc-widget__summary-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.cc-widget__summary-label { font-size: 12px; color: #64748b; }
.cc-widget__summary-value { font-size: 16px; font-weight: 700; color: #0f172a; }
.cc-widget__table { width: 100%; border-collapse: collapse; }
.cc-widget__table td { padding: 10px 0; border: 1px solid #d6d9dc; font-size: 13px; color: #334155; text-align: center; }
.cc-widget__table tr:last-child td { border-bottom: none; }
.cc-widget__table-value { font-weight: 700; color: #0f172a; text-align: left; padding-left: 10px !important; }
.cc-widget__table-change { font-weight: 600; text-align: left; width: 70px; }
.cc-widget__change--up   { color: #10b981; }
.cc-widget__change--down { color: #ef4444; }

@media (max-width: 720px) {
    .cc-widget { padding: 20px 12px; }
    .cc-widget__table td { padding: 6px 4px !important; font-size: 11px !important; border: none; border-bottom: 1px solid #e2e8f0; }
    .cc-widget__table tr:last-child td { border-bottom: none; }
    .cc-widget__table-label { padding: 6px 4px !important; text-align: right; }
    .cc-widget__table-value { padding-left: 4px !important; }
}

/* ── 5. Quick Search Component (.ss-*) ───────────────────────────────────── */
.ss-wrapper { position: relative; width: 100% !important; direction: rtl !important; font-family: inherit !important; }
.ss-input-box { position: relative; display: flex; align-items: center; width: 100% !important; }
.ss-input {
    width: 100% !important;
    padding: 1rem 3.5rem 1rem 1.5rem !important;
    border-radius: 15px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 1rem !important;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s !important;
    background: #fff !important;
    color: #0f172a !important;
    line-height: 1.5 !important;
    height: auto !important;
}
.ss-input:focus { border-color: #3b82f6 !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important; }
.ss-input::placeholder { color: #94a3b8 !important; }
.ss-search-icon { position: absolute; right: 1.2rem; color: #94a3b8; pointer-events: none; }
.ss-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 350px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 1px solid #f1f5f9;
}
.ss-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.2s;
}
.ss-result-item:last-child { border-bottom: none; }
.ss-result-item:hover { background: #f8fafc; }
.ss-result-item:hover .ss-result-name { color: #3b82f6; }
.ss-result-left { display: flex; align-items: center; gap: 0.6rem; }
.ss-result-name { font-weight: 700; font-size: 0.95rem; transition: color 0.2s; }
.ss-result-slug { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; background: #f1f5f9; padding: 0.2rem 0.5rem; border-radius: 4px; }
.ss-loading { padding: 1.5rem; text-align: center; color: #64748b; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.ss-spinner { width: 1rem; height: 1rem; border: 2px solid #e2e8f0; border-top-color: #3b82f6; border-radius: 50%; animation: scf-spin 1s linear infinite; }
.ss-no-results { padding: 1.5rem; text-align: center; color: #ef4444; font-size: 0.9rem; }

/* ── 6. AI Currency Analysis & Forecast (.sarafee-ai-*) ───────────────────── */
.sarafee-ai-card {
    background: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.08);
    direction: rtl;
    text-align: right;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sarafee-ai-card:hover {
    box-shadow: 0 12px 35px -8px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.25);
}
.sarafee-ai-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}
.sarafee-ai-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 15px; }
.sarafee-ai-title { display: flex; align-items: center; gap: 12px; }
.sarafee-ai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    flex-shrink: 0;
}
.sarafee-ai-icon svg { width: 20px; height: 20px; }
.sarafee-ai-title h3 { margin: 0 !important; font-size: 1.15rem; font-weight: 700; color: #1f2937; }
.sarafee-ai-body p { font-size: 0.95rem; line-height: 1.8; color: #4b5563; margin: 0; text-align: justify; }

.sarafee-ai-chart-wrap {
    position: relative;
    margin-bottom: 24px;
    border-radius: 12px;
    background: rgba(249, 250, 251, 0.5);
    border: 1px dashed rgba(139, 92, 246, 0.12);
    padding: 16px;
}
.sarafee-ai-chart { height: 220px; width: 100%; }
.sarafee-ai-chart td, .sarafee-ai-chart table { border: unset; }
.sarafee-ai-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
    transform: translate(-50%, -100%);
    margin-top: -10px;
}
.sarafee-ai-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.9) transparent transparent;
}
.sarafee-ai-tooltip-date { color: #94a3b8; font-weight: 500; }
.sarafee-ai-tooltip-price { font-weight: 700; color: #c084fc; }

.sarafee-ai-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 15px; }
.sarafee-ai-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
}
.sarafee-ai-day:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.06);
    transform: translateY(-2px);
}
.sarafee-ai-day .day-name { font-size: 0.8rem; color: #6b7280; font-weight: 500; }
.sarafee-ai-day .day-price { font-size: 0.9rem; font-weight: 700; color: #1f2937; }
.sarafee-ai-day .day-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sarafee-ai-day .trend-up      { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.sarafee-ai-day .trend-down    { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.sarafee-ai-day .trend-neutral { color: #9ca3af; background: rgba(156, 163, 175, 0.1); }

@media (max-width: 768px) {
    .sarafee-ai-card { padding: 16px; margin-bottom: 16px; }
    .sarafee-ai-header { margin-bottom: 14px; }
    .sarafee-ai-chart-wrap { margin-bottom: 16px; padding: 8px; }
    .sarafee-ai-chart { height: 160px; }
    .sarafee-ai-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 4px 2px;
        margin-top: 10px;
        scrollbar-width: none;
    }
    .sarafee-ai-grid::-webkit-scrollbar { display: none; }
    .sarafee-ai-day {
        flex: 0 0 27%;
        min-width: unset;
        width: auto;
        gap: 6px;
        padding: 10px 6px;
    }
}
