/* =====================================================================
   CURRENCIES — list + converter
   ===================================================================== */

.cur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.cur-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 18px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: .2s;
    --accent: #6c5ce7;
}
.cur-card::before {
    content: ""; position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent);
}
.cur-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }
.cur-card.inactive { opacity: .65; background: #fafafa; }
.cur-card.inactive::before { background: #d1d5db; }

.cur-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cur-symbol {
    width: 56px; height: 56px; border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    display: grid; place-items: center;
    font-size: 24px; font-weight: 800;
    flex-shrink: 0;
}
.cur-titles { flex: 1; min-width: 0; }
.c-name {
    font-size: 17px; font-weight: 800; color: var(--c-text);
    display: flex; align-items: center; gap: 8px;
}
.c-base-pill {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff; font-size: 10.5px; font-weight: 800;
    padding: 2px 10px; border-radius: 999px;
}
.c-code { font-size: 12px; color: var(--c-text-muted); margin-top: 3px; direction: ltr; }

.cur-status {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
}
.cur-status.on { background: var(--c-green-soft); color: var(--c-green); }
.cur-status.off { background: #f3f4f6; color: var(--c-text-muted); }
.cur-status .material-symbols-rounded { font-size: 22px; }

.cur-rate-row {
    background: rgba(108,92,231,.04);
    border: 1px dashed rgba(108,92,231,.2);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 12px;
}
.cur-rate-label {
    font-size: 13px; font-weight: 700; color: var(--c-text);
    direction: ltr;
}
.cur-rate-val {
    margin-inline-start: auto;
    font-size: 19px; font-weight: 800;
    color: var(--accent);
    direction: ltr;
    display: flex; align-items: center; gap: 8px;
}
.cur-rate-unit { font-size: 13px; color: var(--c-text-muted); font-weight: 700; }

.cur-rate-edit-btn {
    width: 28px; height: 28px;
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    cursor: pointer;
    display: grid; place-items: center;
    color: var(--c-text-muted);
    transition: .15s;
}
.cur-rate-edit-btn:hover { color: var(--c-primary); border-color: var(--c-primary); }
.cur-rate-edit-btn .material-symbols-rounded { font-size: 14px; }

.cur-rate-edit {
    margin-inline-start: auto;
    display: flex; align-items: center; gap: 6px;
    direction: ltr;
}
.cur-rate-edit input {
    width: 120px;
    padding: 6px 10px;
    border: 1px solid var(--c-primary);
    border-radius: 8px;
    text-align: end;
    font-weight: 800;
}
.cur-rate-edit .btn.sm { padding: 6px 8px; }

.cur-when {
    display: flex; align-items: center; gap: 6px;
    color: var(--c-text-muted);
    font-size: 11.5px;
    margin-bottom: 10px;
    direction: ltr;
    justify-content: flex-end;
}
.cur-when .material-symbols-rounded { font-size: 14px; }

.cur-actions {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--c-border);
}
.cur-actions .btn.sm {
    padding: 6px 12px;
    font-size: 12.5px;
}
.cur-actions .btn.sm.danger {
    color: var(--c-red);
    border-color: #fecaca;
}
.cur-actions .btn.sm.danger:hover { background: var(--c-red-soft); }

/* Multi-currency badge used elsewhere (POS, invoices) */
.cur-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(108,92,231,.08);
    color: var(--c-primary);
    font-size: 11px; font-weight: 800;
    direction: ltr;
}
